Skip to content

feat: add dashboard as monorepo #1156

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

Merged
merged 5 commits into from
Jan 1, 2025
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
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ updates:
schedule:
interval: daily
target-branch: develop
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: daily
target-branch: develop
- package-ecosystem: gomod
directory: /
schedule:
Expand Down
33 changes: 32 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,35 @@ graphql-docs
.build_docs_tmp
swiftwave_service/dashboard/www
*.dot
swiftwave_snapshot_*.tar.gz
swiftwave_snapshot_*.tar.gz

# Logs
dashboard/logs
dashboard/*.log
dashboard/npm-debug.log*
dashboard/yarn-debug.log*
dashboard/yarn-error.log*
dashboard/pnpm-debug.log*
dashboard/lerna-debug.log*

dashboard/node_modules
dashboard/.DS_Store
dashboard/dist
dashboard/dist-ssr
dashboard/coverage
dashboard/*.local

dashboard/cypress/videos/
dashboard/cypress/screenshots/

# Editor directories and files
dashboard/.vscode/*
dashboard/!.vscode/extensions.json
dashboard/.idea
dashboard/*.suo
dashboard/*.ntvs*
dashboard/*.njsproj
dashboard/*.sln
dashboard/*.sw?

dashboard/*.tsbuildinfo
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion dashboard
Submodule dashboard deleted from 3df7a4
3 changes: 3 additions & 0 deletions dashboard/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_GRAPHQL_HTTP_BASE_URL=https://example.com:3333
VITE_GRAPHQL_WS_BASE_URL=wss://example.com:3333
VITE_HTTP_BASE_URL=https://example.com:3333
17 changes: 17 additions & 0 deletions dashboard/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'vue/multi-word-component-names': 'off'
}
}
30 changes: 30 additions & 0 deletions dashboard/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
30 changes: 30 additions & 0 deletions dashboard/.mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pull_request_rules:
- name: backport to develop
conditions:
- label="backport-develop"
actions:
backport:
branches:
- develop
assignees:
- "{{ author }}"

- name: backport to v2
conditions:
- label="backport-v2"
actions:
backport:
branches:
- v2
assignees:
- "{{ author }}"

- name: backport to v1
conditions:
- label="backport-v1"
actions:
backport:
branches:
- v1
assignees:
- "{{ author }}"
12 changes: 12 additions & 0 deletions dashboard/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": true,
"bracketSameLine": true,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "none",
"arrowParens": "always",
"singleAttributePerLine": false,
"plugins": ["prettier-plugin-tailwindcss"]
}
43 changes: 43 additions & 0 deletions dashboard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# dashboard

This template should help get you started developing with Vue 3 in Vite.

## 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).

## Customize configuration

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

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Compile and Minify for Production

```sh
npm run build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```

### Terminology

- **Application** : On the client side presented application is same as application in the backend.
- **Project** : Project is a collection of applications. It's known as `Project` in the client side but it's
called `Application Group` in the backend.
13 changes: 13 additions & 0 deletions dashboard/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SwiftWave</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions dashboard/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Loading
Loading