added web version 2
This commit is contained in:
parent
8121b9b975
commit
795c221453
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mt-5">
|
<div class="mt-5">
|
||||||
<Modal v-if="actionModal.open" :title="actionModal.title">
|
<Modal v-if="actionModal.open" :title="actionModal.title" @click="actionModal.func">
|
||||||
WIP
|
<Select v-model="actionModal.reason" :options="[{ name: 'Griefing', value: 'griefing' }]">Reason</Select>
|
||||||
</Modal>
|
</Modal>
|
||||||
<h1 class="text-2xl font-bold text-primary">
|
<h1 class="text-2xl font-bold text-primary">
|
||||||
Users
|
Users
|
||||||
@ -48,6 +48,7 @@ const { data: teams } = useFetch('/api/team/all')
|
|||||||
const actionModal = ref({
|
const actionModal = ref({
|
||||||
open: false,
|
open: false,
|
||||||
title: '',
|
title: '',
|
||||||
|
reason: '',
|
||||||
userId: '',
|
userId: '',
|
||||||
func: null,
|
func: null,
|
||||||
})
|
})
|
||||||
|
5
webv2/.eslintrc
Normal file
5
webv2/.eslintrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"@nuxt/eslint-config"
|
||||||
|
]
|
||||||
|
}
|
11
webv2/.gitignore
vendored
Normal file
11
webv2/.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
node_modules
|
||||||
|
*.log*
|
||||||
|
.nuxt
|
||||||
|
.nitro
|
||||||
|
.cache
|
||||||
|
.output
|
||||||
|
.env
|
||||||
|
dist
|
||||||
|
.DS_Store
|
||||||
|
.fleet
|
||||||
|
.idea
|
2
webv2/.npmrc
Normal file
2
webv2/.npmrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
shamefully-hoist=true
|
||||||
|
strict-peer-dependencies=false
|
42
webv2/README.md
Normal file
42
webv2/README.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Nuxt 3 Minimal Starter
|
||||||
|
|
||||||
|
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Make sure to install the dependencies:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# yarn
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# npm
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# pnpm
|
||||||
|
pnpm 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
|
||||||
|
```
|
||||||
|
|
||||||
|
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
5
webv2/app.vue
Normal file
5
webv2/app.vue
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<NuxtWelcome />
|
||||||
|
</div>
|
||||||
|
</template>
|
6
webv2/nuxt.config.ts
Normal file
6
webv2/nuxt.config.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
|
export default defineNuxtConfig({
|
||||||
|
typescript: {
|
||||||
|
typeCheck: true,
|
||||||
|
}
|
||||||
|
})
|
18707
webv2/package-lock.json
generated
Normal file
18707
webv2/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
22
webv2/package.json
Normal file
22
webv2/package.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "nuxt-app",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"build": "nuxt build",
|
||||||
|
"dev": "nuxt dev",
|
||||||
|
"generate": "nuxt generate",
|
||||||
|
"preview": "nuxt preview",
|
||||||
|
"postinstall": "nuxt prepare"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
||||||
|
"@types/node": "^18",
|
||||||
|
"eslint": "^8.41.0",
|
||||||
|
"nuxt": "^3.5.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@nuxt/eslint-config": "^0.1.1",
|
||||||
|
"typescript": "^5.0.4",
|
||||||
|
"vue-tsc": "^1.6.5"
|
||||||
|
}
|
||||||
|
}
|
BIN
webv2/public/favicon.ico
Normal file
BIN
webv2/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
5
webv2/server/api/auth.ts
Normal file
5
webv2/server/api/auth.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export default defineEventHandler(async (event) => {
|
||||||
|
return {
|
||||||
|
hello: 'world'
|
||||||
|
}
|
||||||
|
})
|
5
webv2/server/api/teams/[id]/index.get.ts
Normal file
5
webv2/server/api/teams/[id]/index.get.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export default defineEventHandler((event) => {
|
||||||
|
return {
|
||||||
|
hello: 'world'
|
||||||
|
}
|
||||||
|
})
|
5
webv2/server/api/users/[id]/index.get.ts
Normal file
5
webv2/server/api/users/[id]/index.get.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export default defineEventHandler((event) => {
|
||||||
|
return {
|
||||||
|
hello: 'world'
|
||||||
|
}
|
||||||
|
})
|
5
webv2/server/api/users/index.post.ts
Normal file
5
webv2/server/api/users/index.post.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export default defineEventHandler((event) => {
|
||||||
|
return {
|
||||||
|
hello: 'world'
|
||||||
|
}
|
||||||
|
})
|
4
webv2/tsconfig.json
Normal file
4
webv2/tsconfig.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
|
"extends": "./.nuxt/tsconfig.json"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user