diff --git a/.gitignore b/.gitignore index cdbda26..fb46af9 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,11 @@ outputs/* temp/* data/* +frontend/node_modules +frontend/.next +frontend/out +frontend/next-env.d.ts + # User-specific stuff .idea/**/workspace.xml .idea/**/tasks.xml diff --git a/Dockerfile.development b/dev.Dockerfile similarity index 100% rename from Dockerfile.development rename to dev.Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 86cd446..3faab6e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: tars-server: build: context: . - dockerfile: Dockerfile.development + dockerfile: dev.Dockerfile restart: unless-stopped volumes: - ./backend/src/:/app/src diff --git a/frontend/.dockerignore b/frontend/.dockerignore deleted file mode 100644 index 18ed09f..0000000 --- a/frontend/.dockerignore +++ /dev/null @@ -1,12 +0,0 @@ -node_modules -.env.local -.env.sample - -.next -.idea -.vscode - -!/.next/standalone/** -!/.next/static/** -!/public/** -!/next.config.js \ No newline at end of file diff --git a/frontend/.gitignore b/frontend/.gitignore deleted file mode 100644 index a800a37..0000000 --- a/frontend/.gitignore +++ /dev/null @@ -1,37 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local -.env - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/frontend/Dockerfile b/frontend/Dockerfile deleted file mode 100644 index b002608..0000000 --- a/frontend/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM node:18-slim AS builder - -ENV NEXT_TELEMETRY_DISABLED 1 -WORKDIR /app -COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile --production=false -COPY ../../TARS-UI . -RUN yarn build - -FROM gcr.io/distroless/nodejs:18 AS runner -ENV NODE_ENV=production - -WORKDIR /app - -COPY --from=builder /app/next.config.js ./ -COPY --from=builder /app/.next/static ./.next/static - -COPY --from=builder /app/.next/standalone ./ -CMD ["server.js"] \ No newline at end of file diff --git a/frontend/LICENSE b/frontend/LICENSE deleted file mode 100644 index 18c0012..0000000 --- a/frontend/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 quadseed - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/frontend/README.md b/frontend/README.md deleted file mode 100644 index 8975815..0000000 --- a/frontend/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# TARS-UI -#### TARS Server Web Manager -[![Build Test](https://github.com/clustlight/TARS-UI/actions/workflows/build-test.yml/badge.svg)](https://github.com/clustlight/TARS-UI/actions/workflows/build-test.yml) -[![Lint](https://github.com/clustlight/TARS-UI/actions/workflows/lint.yml/badge.svg)](https://github.com/clustlight/TARS-UI/actions/workflows/lint.yml) \ No newline at end of file diff --git a/frontend/docker-compose.yml b/frontend/docker-compose.yml deleted file mode 100644 index cf4d9c1..0000000 --- a/frontend/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: "3" -services: - tars-ui: - build: - context: ../../TARS-UI - dockerfile: Dockerfile - restart: unless-stopped - ports: - - 80:3000 - environment: - TZ: Asia/Tokyo \ No newline at end of file diff --git a/frontend/pages/index.tsx b/frontend/pages/index.tsx index f89a6cb..7ecef00 100644 --- a/frontend/pages/index.tsx +++ b/frontend/pages/index.tsx @@ -139,7 +139,9 @@ export default function Home() {