Skip to content

Commit

Permalink
feat(dashboard): setup initial dashboard (#14)
Browse files Browse the repository at this point in the history
* chore(cspell): update cspell dict

* chore: setup fronted end env

* feat: add file size example

* chore: rename to `@noctisynth/grassator`

* chore(cspell): add `primeicons` to dict

* feat(config): add config for grassator

* chore(changeset): add changeset

* chore(fmt): add rust fmt config

* chore(lint): setup prettier

* chore(lint): fix code style lint

* feat(logo): setup logo

* feat(dashboard): setup dashboard

* chore(changeset): add changeset

* refactor(dashboard): disable buttons for unimplemented

* chore(changeset): disable unimplemented buttons
  • Loading branch information
fu050409 authored Jul 13, 2024
1 parent 6b7194f commit 0229f85
Show file tree
Hide file tree
Showing 74 changed files with 675 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-terms-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@noctisynth/grassator': patch
---

Setup initial dashboard user interface
5 changes: 5 additions & 0 deletions .changeset/fifty-rabbits-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"grassator": patch
---

Add `config` state for tauri backend
5 changes: 5 additions & 0 deletions .changeset/honest-camels-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@noctisynth/grassator': patch
---

Disable unimplemented buttons
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Unplugin
components.d.ts
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
3 changes: 3 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
"grassator",
"icns",
"noctisynth",
"pinia",
"primeicons",
"primevue",
"reqwest",
"serde",
"staticlib",
"tauri",
"toastservice",
"unocss",
"unplugin"
],
Expand Down
15 changes: 13 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Vue + TS</title>
<title>Grassator</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<style>
html,
body,
#app {
height: 100%;
width: 100%;
margin: unset;
border: unset;
padding: unset;
}
</style>
</html>
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"prepare": "husky",
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
Expand All @@ -13,19 +14,33 @@
"@primevue/themes": "^4.0.0",
"@tauri-apps/api": "2.0.0-beta.14",
"@tauri-apps/plugin-shell": "2.0.0-beta.7",
"pinia": "^2.1.7",
"primeicons": "^7.0.0",
"primevue": "^4.0.0",
"unocss": "^0.61.3",
"vue": "^3.4.31"
"vue": "^3.4.31",
"vue-router": "^4.4.0"
},
"devDependencies": {
"@primevue/auto-import-resolver": "^4.0.0",
"@tauri-apps/cli": "2.0.0-beta.21",
"@vitejs/plugin-vue": "^5.0.5",
"husky": "^9.0.11",
"internal-ip": "^8.0.0",
"lint-staged": "^15.2.7",
"prettier": "3.3.2",
"typescript": "^5.5.3",
"unplugin-turbo-console": "^1.9.3",
"unplugin-vue-components": "^0.27.2",
"vite": "^5.3.3",
"vue-tsc": "^2.0.26"
},
"lint-staged": {
"src/**/*.{ts,vue}": [
"prettier --write --ignore-unknown"
],
"src-tauri/**/*.rs": [
"cargo fmt --all"
]
}
}
Loading

0 comments on commit 0229f85

Please sign in to comment.