Skip to content

Commit b7e27a3

Browse files
authored
feat: add dashboard as monorepo (#1156)
1 parent f030c51 commit b7e27a3

File tree

150 files changed

+27470
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+27470
-12
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ updates:
55
schedule:
66
interval: daily
77
target-branch: develop
8-
- package-ecosystem: "gitsubmodule"
9-
directory: "/"
10-
schedule:
11-
interval: daily
12-
target-branch: develop
138
- package-ecosystem: gomod
149
directory: /
1510
schedule:

.gitignore

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,35 @@ graphql-docs
2020
.build_docs_tmp
2121
swiftwave_service/dashboard/www
2222
*.dot
23-
swiftwave_snapshot_*.tar.gz
23+
swiftwave_snapshot_*.tar.gz
24+
25+
# Logs
26+
dashboard/logs
27+
dashboard/*.log
28+
dashboard/npm-debug.log*
29+
dashboard/yarn-debug.log*
30+
dashboard/yarn-error.log*
31+
dashboard/pnpm-debug.log*
32+
dashboard/lerna-debug.log*
33+
34+
dashboard/node_modules
35+
dashboard/.DS_Store
36+
dashboard/dist
37+
dashboard/dist-ssr
38+
dashboard/coverage
39+
dashboard/*.local
40+
41+
dashboard/cypress/videos/
42+
dashboard/cypress/screenshots/
43+
44+
# Editor directories and files
45+
dashboard/.vscode/*
46+
dashboard/!.vscode/extensions.json
47+
dashboard/.idea
48+
dashboard/*.suo
49+
dashboard/*.ntvs*
50+
dashboard/*.njsproj
51+
dashboard/*.sln
52+
dashboard/*.sw?
53+
54+
dashboard/*.tsbuildinfo

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

dashboard

Lines changed: 0 additions & 1 deletion
This file was deleted.

dashboard/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VITE_GRAPHQL_HTTP_BASE_URL=https://example.com:3333
2+
VITE_GRAPHQL_WS_BASE_URL=wss://example.com:3333
3+
VITE_HTTP_BASE_URL=https://example.com:3333

dashboard/.eslintrc.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-prettier/skip-formatting'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 'latest'
13+
},
14+
rules: {
15+
'vue/multi-word-component-names': 'off'
16+
}
17+
}

dashboard/.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
*.tsbuildinfo

dashboard/.mergify.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pull_request_rules:
2+
- name: backport to develop
3+
conditions:
4+
- label="backport-develop"
5+
actions:
6+
backport:
7+
branches:
8+
- develop
9+
assignees:
10+
- "{{ author }}"
11+
12+
- name: backport to v2
13+
conditions:
14+
- label="backport-v2"
15+
actions:
16+
backport:
17+
branches:
18+
- v2
19+
assignees:
20+
- "{{ author }}"
21+
22+
- name: backport to v1
23+
conditions:
24+
- label="backport-v1"
25+
actions:
26+
backport:
27+
branches:
28+
- v1
29+
assignees:
30+
- "{{ author }}"

dashboard/.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": true,
4+
"bracketSameLine": true,
5+
"tabWidth": 2,
6+
"singleQuote": true,
7+
"printWidth": 120,
8+
"trailingComma": "none",
9+
"arrowParens": "always",
10+
"singleAttributePerLine": false,
11+
"plugins": ["prettier-plugin-tailwindcss"]
12+
}

dashboard/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# dashboard
2+
3+
This template should help get you started developing with Vue 3 in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and
8+
disable
9+
Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
10+
11+
## Customize configuration
12+
13+
See [Vite Configuration Reference](https://vitejs.dev/config/).
14+
15+
## Project Setup
16+
17+
```sh
18+
npm install
19+
```
20+
21+
### Compile and Hot-Reload for Development
22+
23+
```sh
24+
npm run dev
25+
```
26+
27+
### Compile and Minify for Production
28+
29+
```sh
30+
npm run build
31+
```
32+
33+
### Lint with [ESLint](https://eslint.org/)
34+
35+
```sh
36+
npm run lint
37+
```
38+
39+
### Terminology
40+
41+
- **Application** : On the client side presented application is same as application in the backend.
42+
- **Project** : Project is a collection of applications. It's known as `Project` in the client side but it's
43+
called `Application Group` in the backend.

dashboard/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>SwiftWave</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

dashboard/jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

0 commit comments

Comments
 (0)