From 9c93982c97f60ec7e366f65cdf4005d8e32c0e7f Mon Sep 17 00:00:00 2001 From: LinkunGao Date: Mon, 14 Oct 2024 15:50:15 +1300 Subject: [PATCH] update UI --- docker-compose.yml | 8 ++ dockerfile | 15 ++++ frontend/assets/sass/global.scss | 7 +- frontend/components/model/LeftModel.vue | 9 ++- frontend/components/model/Model.vue | 48 ++++++++--- frontend/components/model/PanelControls.vue | 23 +++++- frontend/components/navigation/RightPane.vue | 64 ++------------- frontend/layouts/default.vue | 83 +++++++++----------- frontend/nuxt.config.js | 2 +- frontend/plugins/copper.js | 2 +- 10 files changed, 139 insertions(+), 122 deletions(-) create mode 100644 docker-compose.yml create mode 100644 dockerfile diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c2c839e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3" +services: + web: + build: + context: ./ + dockerfile: dockerfile + ports: + - "3158:3158" diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..8666dcd --- /dev/null +++ b/dockerfile @@ -0,0 +1,15 @@ +FROM node:16-alpine + +WORKDIR /app + +COPY frontend . + +RUN yarn \ + && yarn generate + + +ENV PORT 3158 + +EXPOSE 3158 + +CMD ["yarn", "start"] \ No newline at end of file diff --git a/frontend/assets/sass/global.scss b/frontend/assets/sass/global.scss index f1cb1df..2ca80d1 100644 --- a/frontend/assets/sass/global.scss +++ b/frontend/assets/sass/global.scss @@ -5,9 +5,10 @@ body { background-color: #f8cdd6; } -html { - overflow-y:hidden !important; -} +// html { +// overflow-y:hidden; +// @apply overflow-y-auto md:overflow-y-hidden; +// } canvas { width: 100%; diff --git a/frontend/components/model/LeftModel.vue b/frontend/components/model/LeftModel.vue index 0c8351f..5886635 100644 --- a/frontend/components/model/LeftModel.vue +++ b/frontend/components/model/LeftModel.vue @@ -1,4 +1,5 @@