Skip to content

Commit

Permalink
fix: upload file
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Mar 9, 2024
1 parent 2631808 commit 63bdf7c
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 650 deletions.
1 change: 1 addition & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cd frontend
bun install
bun run build
cd ..
rm pkg/server/dist -r
xcopy frontend\dist\ pkg\server\dist\ /E /Y

go mod tidy
Expand Down
5 changes: 0 additions & 5 deletions frontend/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ declare module "@vue/runtime-core" {
CollisionDistBar: (typeof import("./src/components/Result/CollisionDistBar.vue"))["default"];
CombsDescription: (typeof import("./src/components/Result/CombsDescription.vue"))["default"];
CombsDistBar: (typeof import("./src/components/Result/CombsDistBar.vue"))["default"];
Compare: (typeof import("./src/components/Compare.vue"))["default"];
ComparedBars: (typeof import("./src/components/Result/comparedBars.vue"))["default"];
Data: (typeof import("./src/components/Data.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"];
Expand All @@ -28,8 +26,6 @@ declare module "@vue/runtime-core" {
MultiResult: (typeof import("./src/components/MultiResult.vue"))["default"];
NButton: (typeof import("naive-ui"))["NButton"];
NCard: (typeof import("naive-ui"))["NCard"];
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"];
Expand All @@ -41,7 +37,6 @@ declare module "@vue/runtime-core" {
NRadio: (typeof import("naive-ui"))["NRadio"];
NRadioGroup: (typeof import("naive-ui"))["NRadioGroup"];
NSelect: (typeof import("naive-ui"))["NSelect"];
NSpace: (typeof import("naive-ui"))["NSpace"];
NSwitch: (typeof import("naive-ui"))["NSwitch"];
NTag: (typeof import("naive-ui"))["NTag"];
NText: (typeof import("naive-ui"))["NText"];
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const _Type = computed(() => {
function tidyPath(path: string) {
const index = path.lastIndexOf(props._type);
let name = path;
if (index > 0) {
if (index != -1) {
name = path.substring(index + 5);
}
name = name.replace(".txt", "");
Expand Down
310 changes: 0 additions & 310 deletions internal/serve/assets/tmpl.html

This file was deleted.

Loading

0 comments on commit 63bdf7c

Please sign in to comment.