Skip to content

Commit

Permalink
feat(dashboard): new dashboard version (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
mijailr authored May 7, 2024
1 parent ee8cb9f commit e1da8a7
Show file tree
Hide file tree
Showing 421 changed files with 15,625 additions and 51,120 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: dashboard/package.json

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Build and Publish
uses: ./.github/actions/publish-image
Expand All @@ -113,22 +107,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: ./dashboard/package.json

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Dowload Server Jar artifact
uses: actions/download-artifact@v4
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: ./dashboard/package.json

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install --frozen-lockfile
pnpm build
npm ci
npm run build
- name: Build and Publish
uses: ./.github/actions/publish-image
Expand All @@ -126,22 +120,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
package_json_file: ./dashboard/package.json

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm build
npm ci
npm run build
- name: Dowload Server Jar artifact
uses: actions/download-artifact@v4
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
package_json_file: ./dashboard/package.json

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache-dependency-path: dashboard/pnpm-lock.yaml
cache: pnpm

- name: Build Dashboard
working-directory: ./dashboard
run: |
pnpm install
pnpm test
npm ci
npm run test
21 changes: 21 additions & 0 deletions dashboard/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space

[*.{ts,json,js,tsx,jsx}]
indent_style = space
indent_size = 2

[*.md]
indent_size = 2
indent_style = space

[Dockerfile]
indent_style = space
indent_size = 2

[*.{yml,yaml}]
indent_size = 2
16 changes: 16 additions & 0 deletions dashboard/.env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Littlehorse configuration
LHC_API_HOST=localhost
LHC_API_PORT=2023

LHD_OAUTH_ENABLED=false
LHS_CA_CERT=


# Next-Auth configuration
NEXTAUTH_SECRET=
NEXTAUTH_URL=

# Keycloak
KEYCLOAK_CLIENT_ID=
KEYCLOAK_CLIENT_SECRET=
KEYCLOAK_ISSUER_URI=
8 changes: 0 additions & 8 deletions dashboard/.env.sample

This file was deleted.

10 changes: 0 additions & 10 deletions dashboard/.eslintrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions dashboard/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
30 changes: 14 additions & 16 deletions dashboard/.gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.idea/

# dependencies
node_modules
.pnp
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
coverage
/coverage

# next.js
.next/
out/
build
/.next/
/out/

# production
/build

# misc
.DS_Store
Expand All @@ -23,16 +26,11 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo
.env*.local

# vercel
.vercel

.vscode
# typescript
*.tsbuildinfo
next-env.d.ts
2 changes: 0 additions & 2 deletions dashboard/.npmrc

This file was deleted.

1 change: 0 additions & 1 deletion dashboard/.nvmrc

This file was deleted.

1 change: 1 addition & 0 deletions dashboard/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
10 changes: 10 additions & 0 deletions dashboard/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 120,
"semi": false,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"arrowParens": "avoid",
"trailingComma": "es5",
"plugins": ["prettier-plugin-tailwindcss"]
}
Loading

0 comments on commit e1da8a7

Please sign in to comment.