Skip to content

Commit

Permalink
refactor: 前端主页
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Mar 3, 2024
1 parent d396e3c commit 82dfc0e
Show file tree
Hide file tree
Showing 53 changed files with 2,519 additions and 1,710 deletions.
4 changes: 2 additions & 2 deletions cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/nopdan/gosmq/pkg/util"
"github.com/nopdan/gosmq/internal/gen"
"github.com/nopdan/ku"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -96,6 +96,6 @@ func _gen() {

func gen_write(conf gen.Config) {
table := conf.Gen()
path := "dict/" + ku.GetFileName(conf.Path) + ".txt"
path := "dict/" + util.GetFileName(conf.Path) + ".txt"
gen.Write(table, path)
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 35 additions & 3 deletions web/components.d.ts → frontend/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,61 @@ declare module '@vue/runtime-core' {
CombsDescription: typeof import('./src/components/Result/CombsDescription.vue')['default']
CombsDistBar: typeof import('./src/components/Result/CombsDistBar.vue')['default']
ComparedBars: typeof import('./src/components/Result/comparedBars.vue')['default']
Dict: typeof import('./src/components/Dict.vue')['default']
Dict: typeof import('./src/components/Home/Dict.vue')['default']
FingerPie: typeof import('./src/components/Result/FingerPie.vue')['default']
FingersDescription: typeof import('./src/components/Result/FingersDescription.vue')['default']
HandComp: typeof import('./src/components/Result/HandComp.vue')['default']
HandsDescription: typeof import('./src/components/Result/HandsDescription.vue')['default']
Input: typeof import('./src/components/Input.vue')['default']
Input: typeof import('./src/components/Home/Input.vue')['default']
Jisu: typeof import('./src/components/Jisu.vue')['default']
KeyHeatSorted: typeof import('./src/components/Result/KeyHeatSorted.vue')['default']
Main: typeof import('./src/components/Main.vue')['default']
NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard']
NCheckbox: typeof import('naive-ui')['NCheckbox']
NCheckboxGroup: typeof import('naive-ui')['NCheckboxGroup']
NDatePicker: typeof import('naive-ui')['NDatePicker']
NDescriptions: typeof import('naive-ui')['NDescriptions']
NDescriptionsItem: typeof import('naive-ui')['NDescriptionsItem']
NDivider: typeof import('naive-ui')['NDivider']
NDrawer: typeof import('naive-ui')['NDrawer']
NDrawerContent: typeof import('naive-ui')['NDrawerContent']
NewText: typeof import('./src/components/NewText.vue')['default']
NFlex: typeof import('naive-ui')['NFlex']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid']
NH2: typeof import('naive-ui')['NH2']
NH3: typeof import('naive-ui')['NH3']
NIcon: typeof import('naive-ui')['NIcon']
NInput: typeof import('naive-ui')['NInput']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLayout: typeof import('naive-ui')['NLayout']
NLayoutFooter: typeof import('naive-ui')['NLayoutFooter']
NLayoutHeader: typeof import('naive-ui')['NLayoutHeader']
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
NP: typeof import('naive-ui')['NP']
NRadio: typeof import('naive-ui')['NRadio']
NRadioButton: typeof import('naive-ui')['NRadioButton']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
NSelect: typeof import('naive-ui')['NSelect']
NSlider: typeof import('naive-ui')['NSlider']
NSpace: typeof import('naive-ui')['NSpace']
NSwitch: typeof import('naive-ui')['NSwitch']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag']
NText: typeof import('naive-ui')['NText']
NTimePicker: typeof import('naive-ui')['NTimePicker']
NTransfer: typeof import('naive-ui')['NTransfer']
NUpload: typeof import('naive-ui')['NUpload']
NUploadDragger: typeof import('naive-ui')['NUploadDragger']
Result: typeof import('./src/components/Result/Result.vue')['default']
ResultBasic: typeof import('./src/components/Result/ResultBasic.vue')['default']
ResultKeyHeat: typeof import('./src/components/Result/ResultKeyHeat.vue')['default']
Text: typeof import('./src/components/Text.vue')['default']
Text: typeof import('./src/components/Home/Text.vue')['default']
WordsDescription: typeof import('./src/components/Result/WordsDescription.vue')['default']
WordsDistBar: typeof import('./src/components/Result/WordsDistBar.vue')['default']
}
Expand Down
5 changes: 0 additions & 5 deletions web/index.html → frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<style>
body {
background-color: rgb(240, 244, 245);
}
</style>
</html>
18 changes: 11 additions & 7 deletions web/package.json → frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
"preview": "vite preview"
},
"dependencies": {
"echarts": "^5.4.2",
"vue": "^3.2.47",
"vue-echarts": "^6.5.4"
"echarts": "^5.5.0",
"monaco-editor": "0.46.0",
"monaco-editor-nls": "^3.1.0",
"vue": "^3.4.20",
"vue-echarts": "^6.6.9"
},
"devDependencies": {
"@vicons/ionicons5": "^0.12.0",
"@vitejs/plugin-vue": "^4.1.0",
"naive-ui": "^2.34.3",
"@vitejs/plugin-vue": "^5.0.4",
"jsdoc": "^4.0.2",
"naive-ui": "^2.38.1",
"typescript": "^4.9.5",
"unplugin-auto-import": "^0.11.5",
"unplugin-vue-components": "^0.22.12",
"vite": "^4.2.1",
"vite": "^5.1.4",
"vite-plugin-monaco-editor": "^1.1.0",
"vue-tsc": "^0.39.5"
}
}
}
Loading

0 comments on commit 82dfc0e

Please sign in to comment.