-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial integration of vite + lit for new admin
icon tests font size reset link to vscode plugin
- Loading branch information
Showing
11 changed files
with
1,466 additions
and
0 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,24 @@ | ||
# 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? |
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,25 @@ | ||
#Frontend for admin | ||
|
||
Use lit element + shoelace style. | ||
|
||
Created with vite: `npm create vite@latest admin -- --template lit-ts` | ||
|
||
See https://vitejs.dev/guide/backend-integration.html | ||
|
||
See https://stackoverflow.com/a/76446465 for icon/static assets | ||
|
||
## run dev server | ||
|
||
`npm run dev` | ||
|
||
Then you can launch alf.io normally and go to localhost:8080/admin/ -> all the components exported in the main.ts will be available. | ||
|
||
## todo | ||
|
||
- find a decent way to inline the icons as data uri | ||
- static build integration | ||
|
||
|
||
## vscode plugins | ||
|
||
- https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin |
Oops, something went wrong.