mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Compare commits
9 commits
master
...
vk-c5bd-co
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43436de2d2 | ||
|
|
d7b1d8b52f | ||
|
|
5e6f981f19 | ||
|
|
fd5a8595ee | ||
|
|
e5b416b719 | ||
|
|
87360afa0d | ||
|
|
c1f6ff13c4 | ||
|
|
15da58de60 | ||
|
|
7fe90b4137 |
9 changed files with 2461 additions and 9052 deletions
|
|
@ -19,7 +19,7 @@ includes:
|
|||
tasks:
|
||||
contributors:check:
|
||||
cmds:
|
||||
- npx -y all-contributors-cli check
|
||||
- bunx all-contributors-cli check
|
||||
|
||||
contributors:update:
|
||||
cmds:
|
||||
|
|
@ -27,16 +27,27 @@ tasks:
|
|||
|
||||
contributors:build:
|
||||
cmds:
|
||||
- npx -y all-contributors-cli generate
|
||||
- bunx all-contributors-cli generate
|
||||
|
||||
format:md:
|
||||
cmds:
|
||||
- npx prettier --write "**/*.md"
|
||||
- bunx prettier --write "**/*.{md,mdx}"
|
||||
|
||||
format:
|
||||
cmds:
|
||||
- task: format:md
|
||||
|
||||
syncfork:
|
||||
cmds:
|
||||
- git remote get-url upstream || (echo "Error: upstream remote not found. Please add it with: git remote add upstream <url>" && exit 1)
|
||||
- git fetch upstream
|
||||
- git checkout master || git checkout main || (echo "Error: Neither master nor main branch found" && exit 1)
|
||||
- git rebase upstream/master || git rebase upstream/main
|
||||
- git push --force-with-lease origin master || git push --force-with-lease origin main
|
||||
- (git checkout --track origin/v3-alpha 2>/dev/null || git checkout v3-alpha) || echo "v3-alpha branch not found, skipping"
|
||||
- git rebase upstream/v3-alpha || echo "Could not rebase v3-alpha"
|
||||
- git push --force-with-lease origin v3-alpha || echo "Could not push v3-alpha"
|
||||
|
||||
format-all-md:
|
||||
cmds:
|
||||
- task: format:md
|
||||
|
|
|
|||
|
|
@ -1,2 +1,19 @@
|
|||
i18n
|
||||
versioned_docs
|
||||
versioned_docs
|
||||
|
||||
# Dependencies
|
||||
node_modules/
|
||||
|
||||
# Production
|
||||
build/
|
||||
dist/
|
||||
|
||||
# Generated files
|
||||
.docusaurus/
|
||||
.cache-loader/
|
||||
|
||||
# Lock files
|
||||
bun.lock
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
pnpm-lock.yaml
|
||||
|
|
@ -7,48 +7,46 @@ tasks:
|
|||
desc: Install Dependencies
|
||||
aliases: [i]
|
||||
cmds:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@8.3.1 --activate
|
||||
- pnpm install
|
||||
- bun install --frozen-lockfile
|
||||
sources:
|
||||
- package.json
|
||||
- pnpm-lock.yaml
|
||||
- bun.lock
|
||||
|
||||
default:
|
||||
desc: Start Website
|
||||
deps: [install]
|
||||
aliases: [s, start]
|
||||
cmds:
|
||||
- npx docusaurus start
|
||||
- bun run start
|
||||
|
||||
build:
|
||||
desc: Build Website
|
||||
deps: [install]
|
||||
cmds:
|
||||
- npx docusaurus build
|
||||
- bun run build
|
||||
|
||||
preview:
|
||||
desc: Preview Website
|
||||
deps: [build]
|
||||
aliases: [serve]
|
||||
cmds:
|
||||
- npx docusaurus serve
|
||||
- bun run serve
|
||||
|
||||
crowdin:push:
|
||||
desc: Upload source files to Crowdin
|
||||
deps: [install]
|
||||
cmds:
|
||||
- npx crowdin push -b v2
|
||||
- bunx crowdin push -b v2
|
||||
|
||||
crowdin:pull:
|
||||
desc: Download approved translation files from Crowdin to local
|
||||
deps: [install]
|
||||
cmds:
|
||||
- npx crowdin pull -b v2 --export-only-approved
|
||||
- bunx crowdin pull -b v2 --export-only-approved
|
||||
|
||||
format:md:
|
||||
cmds:
|
||||
- npx prettier --write "**/*.{md,mdx}"
|
||||
- bunx prettier --write "**/*.{md,mdx}"
|
||||
|
||||
format:
|
||||
cmds:
|
||||
|
|
|
|||
2414
website/bun.lock
Normal file
2414
website/bun.lock
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -94,8 +94,8 @@ wails dev
|
|||
- +layout.server.ts, +page.server.ts, +server.ts or any file with "server" in the name will fail to build as all routes are prerendered.
|
||||
|
||||
##### The Wails runtime unloads with full page navigations!
|
||||
- Anything that causes full page navigations: `window.location.href = '/<some>/<page>'` or Context menu reload when using wails dev. What this means is that you can end up losing the ability to call any runtime breaking the app. There are two ways to work around this.
|
||||
- Use `import { goto } from '$app/navigation'` then call `goto('/<some>/<page>')` in your +page.svelte. This will prevent a full page navigation.
|
||||
- Anything that causes full page navigations: `window.location.href = '/some/page'` or Context menu reload when using wails dev. What this means is that you can end up losing the ability to call any runtime breaking the app. There are two ways to work around this.
|
||||
- Use `import { goto } from '$app/navigation'` then call `goto('/some/page')` in your +page.svelte. This will prevent a full page navigation.
|
||||
- If full page navigation can't be prevented the Wails runtime can be added to all pages by adding the below into the `<head>` of myapp/frontend/src/app.html
|
||||
```
|
||||
<head>
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ wails dev
|
|||
|
||||
##### Le runtime Wails se décharge avec des pages de navigation complètes !
|
||||
|
||||
- Tout ce qui provoque la navigation de page complète : \`window.location.href = '/<some>/<page>' ou le menu contextuel se recharge lorsque vous utilisez wails dev. Cela signifie que vous pouvez finir par perdre la possibilité d'appeler n'importe quel runtime cassant l'application. Il y a deux façons de contourner ce problème.
|
||||
- Tout ce qui provoque la navigation de page complète : `window.location.href = '/<some>/<page>'` ou le menu contextuel se recharge lorsque vous utilisez wails dev. Cela signifie que vous pouvez finir par perdre la possibilité d'appeler n'importe quel runtime cassant l'application. Il y a deux façons de contourner ce problème.
|
||||
- Utilisez `import { goto } de '$app/navigation'` puis appelez `goto('/<some>/<page>')` dans votre +page.svelte. Cela empêchera la navigation de la page complète.
|
||||
- Si la navigation de la page complète ne peut pas être empêchée, le runtime Wails peut être ajouté à toutes les pages en ajoutant ce qui suit dans le `<head>` de myapp/frontend/src/app.html
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
"write-heading-ids": "docusaurus write-heading-ids"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.14.0",
|
||||
"pnpm": ">=8.3.1"
|
||||
"node": ">=18.14.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@crowdin/crowdin-api-client": "^1.33.1",
|
||||
|
|
@ -47,6 +46,5 @@
|
|||
"devDependencies": {
|
||||
"@crowdin/cli": "^3.19.4",
|
||||
"prettier": "^2.8.7"
|
||||
},
|
||||
"packageManager": "pnpm@8.3.1+sha512.d264f6640bf4f09de7cfcc547568515bcf0613cf485a03e8ff16616fa69c4172b6f9a0a2925ee44fb060df565c9c9a8eaf061749e77af318cb77f6684a7051f3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9029
website/pnpm-lock.yaml
generated
9029
website/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -94,8 +94,8 @@ wails dev
|
|||
- +layout.server.ts, +page.server.ts, +server.ts or any file with "server" in the name will fail to build as all routes are prerendered.
|
||||
|
||||
##### The Wails runtime unloads with full page navigations!
|
||||
- Anything that causes full page navigations: `window.location.href = '/<some>/<page>'` or Context menu reload when using wails dev. What this means is that you can end up losing the ability to call any runtime breaking the app. There are two ways to work around this.
|
||||
- Use `import { goto } from '$app/navigation'` then call `goto('/<some>/<page>')` in your +page.svelte. This will prevent a full page navigation.
|
||||
- Anything that causes full page navigations: `window.location.href = '/some/page'` or Context menu reload when using wails dev. What this means is that you can end up losing the ability to call any runtime breaking the app. There are two ways to work around this.
|
||||
- Use `import { goto } from '$app/navigation'` then call `goto('/some/page')` in your +page.svelte. This will prevent a full page navigation.
|
||||
- If full page navigation can't be prevented the Wails runtime can be added to all pages by adding the below into the `<head>` of myapp/frontend/src/app.html
|
||||
```
|
||||
<head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue