Skip to content

Commit

Permalink
Merge branch 'ABI-CTT-Group:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkunGao authored Oct 14, 2024
2 parents 9b90867 + 31c86c6 commit 9234958
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3"
services:
web:
build:
context: ./
dockerfile: dockerfile
ports:
- "3158:3158"
15 changes: 15 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:16-alpine

WORKDIR /app

COPY frontend .

RUN yarn \
&& yarn generate


ENV PORT 3158

EXPOSE 3158

CMD ["yarn", "start"]
4 changes: 3 additions & 1 deletion frontend/components/model/LeftModel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ export default {
},
onNavChange(modelName) {
this.navPanelName = modelName;
this.loadModel(this.modelUrlsArray[this.navPanelName][0], this.navPanelName+"left");
// this.loadModel(this.modelUrlsArray[this.navPanelName][0], this.navPanelName+"left");
},
start() {
if (this.navPanelName === null) {
this.loadModel(this.modelUrlsArray.normal[0], this.navPanelName+"left");
}else{
Expand All @@ -105,6 +106,7 @@ export default {
},
loadModel(model_url, model_name) {
let viewURL = "";
if (this.navPanelName === null) {
viewURL = this.modelUrlsArray.normal[1];
Expand Down
2 changes: 1 addition & 1 deletion frontend/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
],
server: {
host: "0.0.0.0", // default: localhost
port: 3055, // default: 3000
port: 3158, // default: 3000
},

// Global CSS: https://go.nuxtjs.dev/config-css
Expand Down

0 comments on commit 9234958

Please sign in to comment.