forked from maxnet/pico-webserver
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Frontend build process to CI workflow (#17)
* Remove compiled JS files * Added initial frontend code * Added variable retry time * npm audit fix * remove lint call * Using now Vite to build frontend * Using now Vite to build frontend * Build a local dev proxy based on ofetch * Added cleanup mechanic for broken images in store Simplified fetch to download endpoint * Query status before attempting to download * Fix images being deleted from storage * Change try/catch order * Make "Select all" a toggle * Make whole item clickable for selection * Slight style improvements * Slight style improvements * Slight style improvements * Fix average error message for non-selected items * Added connection indicator * Strogner indication for selected items
- Loading branch information
1 parent
184b40f
commit 18c6ad7
Showing
45 changed files
with
1,926 additions
and
435 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = crlf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.svg] | ||
insert_final_newline = false |
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 |
---|---|---|
|
@@ -16,6 +16,22 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Install npm dependencies | ||
run: | | ||
cd frontend | ||
npm cache clear -f | ||
npm install | ||
- name: Build frontend | ||
run: | | ||
cd frontend | ||
npm run build | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
|
@@ -43,4 +59,4 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pico-gb-printer-firmware | ||
path: build/pico_gb_printer.uf2 | ||
path: build/pico_gb_printer.uf2 |
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,7 @@ | ||
.vscode | ||
.idea | ||
build | ||
unused | ||
gen_build.bat | ||
fs/ | ||
frontend/node_modules |
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
Oops, something went wrong.