Compare commits

..

62 Commits

Author SHA1 Message Date
Lea Anthony ce28215300 Update blog 2022-09-22 10:30:11 +10:00
Lea Anthony 5b4129ba07 Update changelog, blog post, workflow 2022-09-22 08:27:55 +10:00
Lea Anthony be0f358b4a update wails init 2022-09-22 08:07:50 +10:00
Lea Anthony 10cee781a7 Add -ci flag to wails init 2022-09-22 08:00:41 +10:00
Lea Anthony aebd50db0a Update release workflow 2022-09-22 07:00:56 +10:00
Lea Anthony e9e22434f7 Update release workflow 2022-09-22 06:40:44 +10:00
Lea Anthony 6748e2f983 Update release workflow 2022-09-22 06:32:53 +10:00
Lea Anthony 4cfe7124b2 Update release workflow 2022-09-22 06:20:54 +10:00
Lea Anthony 157619d942 Update release workflow 2022-09-22 05:59:26 +10:00
Lea Anthony 5003c8d7a5 Update workflow 2022-09-22 05:52:18 +10:00
Misite Bao 118fd95646 chore: update stale lable 2022-09-22 00:04:45 +08:00
Misite Bao 5ce650d08b Update README 2022-09-22 00:04:22 +08:00
Misite Bao b92953aa96 feat(website): remove redundant files and sync documents 2022-09-21 23:59:34 +08:00
Lea Anthony 8e4ce3a2bb v2.0.0 docs 2022-09-21 20:37:15 +10:00
Lea Anthony 0bb8147f5c Revert "feat: remove documentation for "beta" and "rc" versions"
This reverts commit f587457e7e.
2022-09-21 20:30:21 +10:00
Lea Anthony 76338d4e50 Update contributors. Remove ko/ru lang for now. 2022-09-21 12:16:05 +10:00
Lea Anthony ac5cd0dd90 crwodin -> crowdin 2022-09-21 12:03:52 +10:00
Lea Anthony 16119187be chore: update sponsors.svg 2022-09-21 01:28:37 +00:00
Lea Anthony 84ef7e1e82 Update sponsor image workflow 2022-09-21 11:27:59 +10:00
Lea Anthony 98bc3d5bb7 Update sponsor image workflow 2022-09-21 11:21:14 +10:00
Lea Anthony 1918401240 Update sponsor image workflow 2022-09-21 11:16:31 +10:00
Lea Anthony 7bb74d7ffe Update sponsor image workflow 2022-09-21 11:15:55 +10:00
Lea Anthony ded9b1fa28 Update sponsor image workflow 2022-09-21 11:07:14 +10:00
Lea Anthony 74c63799d1 Update sponsor image workflow 2022-09-21 10:57:22 +10:00
Lea Anthony 16e80913bf Update architecture diagram - Thanks @bketelsen 2022-09-21 10:54:44 +10:00
Misite Bao 1022d3cd61 chore: migrate to script 2022-09-21 02:06:26 +08:00
Misite Bao 2238d6b206 fix(website): fix broken links 2022-09-21 01:27:35 +08:00
Misite Bao 2dd2deadc1 feat(website): update Chinese and Japanese and temporarily remove other language translations
Reason: The translation progress of other languages has not yet met the requirements
2022-09-21 00:39:42 +08:00
Misite Bao 11d54cc875 feat(website): update en docs 2022-09-20 23:41:42 +08:00
Misite Bao f587457e7e feat: remove documentation for "beta" and "rc" versions 2022-09-20 23:06:51 +08:00
Lea Anthony 3dee8a931a update sponsorkit generation 2022-09-20 21:59:28 +10:00
Lea Anthony d3b8a7e4af Add package.json 2022-09-20 21:57:58 +10:00
Lea Anthony db70a0de58 Update scheduler workflow 2022-09-20 21:55:42 +10:00
Lea Anthony 15759b38bf Add sponsor label workflow. Generate sponsor svg. 2022-09-20 21:52:20 +10:00
Lea Anthony 449764943f Slight text change 2022-09-20 19:52:00 +10:00
Lea Anthony 7254c575d6 More CSS changes 2022-09-20 18:20:53 +10:00
Lea Anthony 7a59bdd09b More CSS changes 2022-09-20 17:41:11 +10:00
Lea Anthony ba3e697a00 Better mobile experience 2 2022-09-20 17:25:55 +10:00
Lea Anthony b370e0e7f0 Better mobile experience 2022-09-20 17:05:23 +10:00
Lea Anthony 6805b5a3e9 Fix LHS blog navigation. Updated blog. Add missing garble flags in CLI doc 2022-09-20 10:29:27 +10:00
Lea Anthony 01ea9496e7 Fix RHS page navigation. Add OnSuspend and OnResume to options example. 2022-09-20 09:57:24 +10:00
Lea Anthony 2661eca2cc Rename TranslucencyType -> BackdropType. Rename BackdropType consts. Add documentation for this option. 2022-09-20 09:49:13 +10:00
Lea Anthony 23593b3c4d Fix bullet-points of community guide 2022-09-20 07:48:02 +10:00
Lea Anthony e323b04bb2 Make frontpage container rules more specific 2022-09-20 07:44:04 +10:00
Lea Anthony 32af38875f Remove "Built with docusaurus" text 2022-09-20 07:36:25 +10:00
Lea Anthony c4964d6f46 Fix features spacing + blockqoute spacing 2022-09-20 07:32:48 +10:00
Lea Anthony 2a3cd47d0c Fix 2 column layout, quote and footer 2022-09-20 07:12:48 +10:00
Lea Anthony 662a406e85 2 column 2022-09-19 20:37:45 +08:00
Misite Bao b2a79e656f feat(website): add Chinese translation 2022-09-19 20:35:29 +08:00
Misite Bao 07a3973f9a feat(website): optimize and improve documentation 2022-09-19 20:02:30 +08:00
Lea Anthony 840d3f1e85 Set maximum carousel width 2022-09-19 19:03:31 +10:00
Lea Anthony 2de06a0684 Tidy CSS 2022-09-19 16:49:22 +08:00
Lea Anthony 08ed902b7a Improved CSS 2022-09-19 16:49:22 +08:00
Lea Anthony 3c17905155 Fix slider images. Resize varly image and limit max width. Remove announcement. 2022-09-19 16:49:22 +08:00
Lea Anthony 7bd1355663 Add quote 2022-09-19 16:49:21 +08:00
Misite Bao a17aeee712 feat: add translation 2022-09-19 16:49:21 +08:00
Misite Bao 428f839c84 feat: move blog images to a separate directory 2022-09-19 16:49:21 +08:00
Lea Anthony 7ab969195c Updated blog 2022-09-19 16:49:20 +08:00
Lea Anthony 1a6f308494 Updated README.md + copy to v2 directory 2022-09-19 16:49:19 +08:00
Lea Anthony 21b4f643dd Updated README.md + copy to v2 directory 2022-09-19 16:49:19 +08:00
Lea Anthony a07dbb2368 Updated README.md 2022-09-19 16:49:18 +08:00
Lea Anthony c4f9a43ff6 Blog post 2022-09-19 16:49:17 +08:00
3649 changed files with 116762 additions and 217715 deletions
-511
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -0,0 +1 @@
runtime/assets/default.html
+30
View File
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
+3 -7
View File
@@ -1,23 +1,19 @@
name: Bug Report
description: Create a report to help us improve
# title: ""
labels: ["Bug"]
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
***Please note: No bug reports are currently being accepted for Wails v3***
***Please note: No new bug reports are being accepted for Wails v1***
Before submitting this issue, please do the following:
- Do a web search for your error. This usually leads to a much better understanding of the issue.
- Prove that the error is indeed a Wails bug and not an application bug, with a specific set of steps to reproduce.
- Search the issue tracker using [this link](https://github.com/wailsapp/wails/issues?q=is%3Aissue+).
- Search the [discussion forums](https://github.com/wailsapp/wails/discussions?discussions_q=type+your+issue+here).
- Read the [Troubleshooting Guide](https://wails.io/docs/next/guides/troubleshooting).
- Create a [Minimal Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) and link to it in the issue.
- If your issue is related to TypeScript generation, please open a ticket and create a PR with a failing test case.
TS tests can be found [here](https://github.com/wailsapp/wails/tree/master/v2/internal/binding/binding_test). Remember to add
your test to the `binding_test.go` file.
- Try to fix it yourself. Keep a list of things you have done to fix the problem.
If after doing all the above, the problem remains, please continue with this ticket providing *all* the information requested.
@@ -84,4 +80,4 @@ body:
description: Add any other context about the problem here.
placeholder: Add any other context about the problem here.
validations:
required: false
required: false
-4
View File
@@ -1,9 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Discord Chat
url: https://discord.gg/BrRSWTaxVK
about: Ask questions and discuss with other Wails users in real time.
- name: GitHub Community Discussions
url: https://github.com/wailsapp/wails/discussions
about: If your question is not a feature or a bug, please go to the discussion panel and retrieve if your question already exists before submitting.
+1 -1
View File
@@ -1,7 +1,7 @@
name: Documentation
description: Report an issue related to documentation.
# title: ""
labels: ["Documentation"]
labels: ["documentation"]
body:
- type: markdown
+1 -1
View File
@@ -1,7 +1,7 @@
name: Feature request
description: Suggest an idea for this project
# title: ""
labels: ["Enhancement"]
labels: ["enhancement"]
body:
- type: markdown
-37
View File
@@ -1,37 +0,0 @@
# Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
# How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using `wails doctor`.
- [ ] Windows
- [ ] macOS
- [ ] Linux
## Test Configuration
Please paste the output of `wails doctor`. If you are unable to run this command, please describe your environment in as much detail as possible.
# Checklist:
- [ ] I have updated `website/src/pages/changelog.mdx` with details of this PR
- [ ] My code follows the general coding style of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
-118
View File
@@ -1,118 +0,0 @@
name: Build + Test v2
on:
push:
branches: [release/*, master]
workflow_dispatch:
jobs:
test_go:
name: Run Go Tests
if: github.repository == 'wailsapp/wails'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: [1.18, 1.19]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install linux dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Run tests (mac)
if: matrix.os == 'macos-latest'
env:
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
working-directory: ./v2
run: go test -v ./...
- name: Run tests (!mac)
if: matrix.os != 'macos-latest'
working-directory: ./v2
run: go test -v ./...
test_js:
name: Run JS Tests
if: github.repository == 'wailsapp/wails'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
working-directory: v2/internal/frontend/runtime
- name: Run tests
run: npm test
working-directory: v2/internal/frontend/runtime
test_templates:
name: Test Templates
needs: test_go
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
template:
[
svelte,
svelte-ts,
vue,
vue-ts,
react,
react-ts,
preact,
preact-ts,
lit,
lit-ts,
vanilla,
vanilla-ts,
plain,
]
go-version: [1.18, 1.19]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Build Wails CLI
run: |
cd ./v2/cmd/wails
go install
wails -help
- name: Install linux dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
- name: Generate template '${{ matrix.template }}'
run: |
mkdir -p ./test-${{ matrix.template }}
cd ./test-${{ matrix.template }}
wails init -n ${{ matrix.template }} -t ${{ matrix.template }} -ci
cd ${{ matrix.template }}
wails build -v 2
+36
View File
@@ -0,0 +1,36 @@
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-v2:
name: v2 Build
if: github.repository == 'wailsapp/wails'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: "master"
submodules: true
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ">=1.18.0"
- name: Build Wails CLI
run: |
cd ./v2/cmd/wails
go install
wails -help
@@ -1,33 +0,0 @@
name: Format Markdown Files
jobs:
format_markdown_files:
runs-on: ubuntu-latest
if: github.repository == 'wailsapp/wails'
steps:
- uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Format All Markdown Files
run: task format-all-md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "docs: format document"
title: "docs: format document"
body: "- [x] Format all Markdown(x) documents"
branch: chore/format-markdown-files
delete-branch: true
draft: false
+11 -13
View File
@@ -4,32 +4,30 @@ on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches: [ master ]
jobs:
update-sponsors:
name: Update Sponsors
runs-on: ubuntu-latest
if: github.repository == 'wailsapp/wails'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Set Node
- name: Set node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Update Sponsors
- name: Update sponsors
run: cd scripts/sponsors && chmod 755 ./generate-sponsor-image.sh && ./generate-sponsor-image.sh
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: wailsapp
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
- name: Commit
uses: EndBug/add-and-commit@v4
with:
commit-message: "chore: update sponsors.svg"
add-paths: "website/static/img/sponsors.svg"
title: Update Sponsor Image
body: Generated new image
branch: update-sponsors
delete-branch: true
message: "chore: update sponsors.svg"
add: "website/static/img/sponsors.svg"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+14
View File
@@ -0,0 +1,14 @@
name: Label sponsors
on:
pull_request:
types: [ opened ]
issues:
types: [ opened ]
jobs:
build:
name: is-sponsor-label
runs-on: ubuntu-latest
steps:
- uses: JasonEtco/is-sponsor-label-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-61
View File
@@ -1,61 +0,0 @@
name: PR Checks
on:
pull_request:
pull_request_review:
types: [submitted]
jobs:
check_docs:
name: Check Docs
if: ${{github.repository == 'wailsapp/wails' && contains(github.head_ref,'feature/')}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v11.1
id: verify-changed-files
with:
files: |
website/**/*.mdx
website/**/*.md
- name: Run step only when files change.
if: steps.verify-changed-files.outputs.files_changed != 'true'
run: |
echo "::warning::Feature branch does not contain any changes to the website."
test_go:
name: Run Go Tests
runs-on: ${{ matrix.os }}
if: github.event.review.state == 'approved'
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: [1.18, 1.19]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install linux dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Run tests (mac)
if: matrix.os == 'macos-latest'
env:
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
working-directory: ./v2
run: go test -v ./...
- name: Run tests (!mac)
if: matrix.os != 'macos-latest'
working-directory: ./v2
run: go test -v ./...
-17
View File
@@ -1,17 +0,0 @@
name: Update Project
on:
project_card:
types: [ moved ]
jobs:
projectcardautolabel_job:
runs-on: ubuntu-latest
if: github.repository == 'wailsapp/wails'
steps:
- name: Run ProjectCard AutoLabel
id: runprojectcardautolabel
uses: Matticusau/projectcard-autolabel@v1.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
autolabel-config: '[{"column": "TODO", "add_labels":["TODO"], "remove_labels":["In Progress", "Ready For Testing"]},{"column":"In progress", "add_labels":["In Progress"], "remove_labels":["TODO", "Ready For Testing"]},{"column":"In review", "add_labels":["Ready For Testing"], "remove_labels":["TODO", "In Progress"]}, {"column":"Done", "add_labels":["Done"], "remove_labels":["TODO", "In Progress", "Ready For Testing"]}]'
+71
View File
@@ -0,0 +1,71 @@
name: Release
on:
push:
branches: [ release/* ]
pull_request:
branches: [ release/* ]
workflow_dispatch:
jobs:
test:
name: Run Go Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
go-version: [ 1.18, 1.19 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install linux dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: go test -v ./...
test_templates:
name: Test Templates
needs: test
if: github.repository == 'wailsapp/wails'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
template: [ svelte, svelte-ts, vue, vue-ts, react, react-ts, preact, preact-ts, lit, lit-ts, vanilla, vanilla-ts, plain ]
go-version: [ 1.18, 1.19 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Build Wails CLI
run: |
cd ./v2/cmd/wails
go install
wails -help
- name: Install linux dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
- name: Generate template '${{ matrix.template }}'
run: |
mkdir -p ./test-${{ matrix.template }}
cd ./test-${{ matrix.template }}
wails init -n ${{ matrix.template }} -t ${{ matrix.template }} -ci
cd ${{ matrix.template }}
wails build -v 2
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
name: Rebuild the runtime
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.17.6
@@ -1,41 +0,0 @@
name: Sync Translations
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
sync-translated-documents:
runs-on: ubuntu-latest
if: github.repository == 'wailsapp/wails'
steps:
- uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Sync Translated Documents
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
working-directory: ./website
run: task crowdin:pull
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "docs: sync translations"
title: "docs: sync translations"
body: "- [x] Sync translated documents"
branch: chore/sync-translations
labels: translation
delete-branch: true
draft: true
@@ -1,41 +0,0 @@
name: Upload Source Documents
on:
push:
branches: [master]
workflow_dispatch:
jobs:
push_files_to_crowdin:
name: Push files to Crowdin
if: github.repository == 'wailsapp/wails'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Verify Changed files
id: changed-files
uses: tj-actions/changed-files@v35
with:
files: |
website/**/*.mdx
website/**/*.md
website/**/*.json
- name: Setup Nodejs
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Setup Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload source documents
if: steps.changed-files.outputs.any_changed == 'true'
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
working-directory: ./website
run: task crowdin:push
-5
View File
@@ -31,8 +31,3 @@ v2/test/kitchensink/frontend/package.json.md5
v2/cmd/wails/internal/commands/initialise/templates/testtemplates/
.env
/website/static/img/.cache.json
/v3/.task
/v3/examples/build/bin/testapp
/websitev3/site/
/v3/examples/plugins/bin/testapp

Some files were not shown because too many files have changed in this diff Show More