-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cli): optimize default templates (#1214)
* refactor(cli): optimize the template that generates the base template * refactor: optimize the default vanilla template * feat(cli): add script to default vanilla template * refactor(cli): refactor default svelte template and add script * fix: remove manually added assetdir fields Manually specified values are removed as the application will automatically infer from embed.FS. * fix: remove drag attribute within page * Update v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/frontend/README.md Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
- Loading branch information
1 parent
7d8f224
commit d36e130
Showing
50 changed files
with
1,382 additions
and
4,176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 0 additions & 80 deletions
80
...ernal/commands/generate/template/base/frontend/dist/assets/images/logo-dark.svg
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+147 KB
.../commands/generate/template/base/frontend/dist/assets/images/logo-universal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 18 additions & 16 deletions
34
v2/cmd/wails/internal/commands/generate/template/base/frontend/dist/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="/main.css" /> | ||
</head> | ||
|
||
<head> | ||
<link rel="stylesheet" href="/main.css"> | ||
</head> | ||
|
||
<body data-wails-drag> | ||
<div class="logo"></div> | ||
<div class="result" id="result">Please enter your name below 👇</div> | ||
<div class="input-box" id="input" data-wails-no-drag> | ||
<input class="input" id="name" type="text" autocomplete="off"> | ||
<button class="btn" onclick="greet()">Greet</button> | ||
</div> | ||
|
||
<script src="/main.js"></script> | ||
</body> | ||
|
||
</html> | ||
<body> | ||
<div id="app" class="app"> | ||
<div class="logo"></div> | ||
<div class="result" id="result">Please enter your name below 👇</div> | ||
<div class="input-box" id="input"> | ||
<input class="input" id="name" type="text" autocomplete="off" /> | ||
<button class="btn" onclick="greet()">Greet</button> | ||
</div> | ||
</div> | ||
<script src="/main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 22 additions & 2 deletions
24
v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/frontend/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
/node_modules/ | ||
/dist/build/ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
3 changes: 3 additions & 0 deletions
3
.../internal/commands/initialise/templates/templates/svelte/frontend/.vscode/extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["svelte.svelte-vscode"] | ||
} |
Oops, something went wrong.