Skip to content

Commit

Permalink
initial integration of vite + lit for new admin
Browse files Browse the repository at this point in the history
icon tests

font size reset

link to vscode plugin
  • Loading branch information
syjer committed Apr 11, 2024
1 parent e24f909 commit 5d54b3d
Show file tree
Hide file tree
Showing 11 changed files with 1,466 additions and 0 deletions.
24 changes: 24 additions & 0 deletions frontend/admin/.gitignore
@@ -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?
25 changes: 25 additions & 0 deletions frontend/admin/README.md
@@ -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

0 comments on commit 5d54b3d

Please sign in to comment.