Skip to content

Commit

Permalink
refactor: drop monorepo, migrate to mantine
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed May 16, 2023
1 parent cea0ce8 commit 92d9c8c
Show file tree
Hide file tree
Showing 80 changed files with 4,171 additions and 3,636 deletions.
11 changes: 4 additions & 7 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
root: true
parser: "@typescript-eslint/parser"
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
Expand All @@ -8,7 +8,7 @@ parserOptions:
env:
node: true
plugins:
- "@typescript-eslint"
- '@typescript-eslint'
- react
- import
extends:
Expand All @@ -24,20 +24,17 @@ extends:
settings:
import/resolver:
typescript:
project:
- dashboard/tsconfig.json
- packages/*/tsconfig.json
node: true
react:
version: detect
rules:
padding-line-between-statements:
- error
- blankLine: always
prev: "*"
prev: '*'
next: return
- blankLine: always
prev: "*"
prev: '*'
next: if
react/prop-types: off
react/display-name: off
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ dist-ssr
*.ntvs*
*.njsproj
*.sln
*.sw?

.turbo
*.sw?
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"printWidth": 120,
"semi": false,
"singleQuote": true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FROM caddy:alpine

WORKDIR /srv

COPY --from=builder /build/dashboard/dist/. .
COPY --from=builder /build/dist/. .
COPY Caddyfile .

CMD ["caddy", "run"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

A Web Dashboard For [dae](https://github.com/v2raya/dae)

![preview](dashboard/public/preview.png)
![preview](public/preview.png)

Project Goals:

Expand Down
12 changes: 6 additions & 6 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { CodegenConfig } from "@graphql-codegen/cli";
import { CodegenConfig } from '@graphql-codegen/cli'

// eslint-disable-next-line import/no-default-export
export default {
overwrite: true,
schema: process.env.SCHEMA_PATH,
documents: "dashboard/src/**/*",
documents: 'src/**/*',
generates: {
"packages/schemas/gql/": {
preset: "client",
'src/schemas/gql/': {
preset: 'client',
},
},
hooks: { afterOneFileWrite: ["prettier -w"] },
} as CodegenConfig;
hooks: { afterOneFileWrite: ['prettier -w'] },
} satisfies CodegenConfig
19 changes: 0 additions & 19 deletions dashboard/package.json

This file was deleted.

125 changes: 0 additions & 125 deletions dashboard/src/App.tsx

This file was deleted.

Loading

0 comments on commit 92d9c8c

Please sign in to comment.