Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] use next app instead of nuxt app #1169 #1171

Merged
merged 7 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/agdb_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npx nuxt prepare
- run: npm run lint

agdb_web_coverage:
Expand All @@ -41,8 +40,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npx nuxt prepare
- run: npm run test:unit
- run: npm run test
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
4 changes: 2 additions & 2 deletions .vscode/terminals.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"description": "For running web dev server",
"open": true,
"focus": false,
"commands": ["cd agdb_web_next", "npm run dev"]
"commands": ["cd agdb_web", "npm run dev"]
},
{
"name": "web SCRIPTS",
"description": "For running web scripts",
"open": true,
"focus": false,
"commands": ["cd agdb_web_next"]
"commands": ["cd agdb_web"]
}
]
}
24 changes: 0 additions & 24 deletions agdb_web/.eslintrc.cjs

This file was deleted.

File renamed without changes.
44 changes: 35 additions & 9 deletions agdb_web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.data
.env
dist
coverage
/.pnp
.pnp.js
.yarn/install-state.gz

# 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

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
/test-results/
/playwright-report/
/blob-report/
Expand Down
2 changes: 0 additions & 2 deletions agdb_web/.npmrc

This file was deleted.

3 changes: 1 addition & 2 deletions agdb_web/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.nuxt
build
.next
coverage
54 changes: 0 additions & 54 deletions agdb_web/README.md
Original file line number Diff line number Diff line change
@@ -1,55 +1 @@
# agdb webpage

**Note: This project is still under construction.**

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

Make sure to install the dependencies:

```bash
# npm
npm install
```

## Development Server

Start the development server on http://localhost:3000

```bash
npm run dev
```

## Production

Build the application for production:

```bash
npm run build
```

Locally preview production build:

```bash
npm run preview
```

Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
5 changes: 0 additions & 5 deletions agdb_web/app.vue

This file was deleted.

105 changes: 0 additions & 105 deletions agdb_web/assets/less/main.less

This file was deleted.

22 changes: 0 additions & 22 deletions agdb_web/components/common/LinkItem.vue

This file was deleted.

33 changes: 0 additions & 33 deletions agdb_web/components/layout/MainContainer.vue

This file was deleted.

21 changes: 0 additions & 21 deletions agdb_web/components/layout/MainFooter.vue

This file was deleted.

Loading