diff --git a/libs/web/core/feature/src/lib/web-core-routes-user.tsx b/libs/web/core/feature/src/lib/web-core-routes-user.tsx index 2f66941..d92e93b 100644 --- a/libs/web/core/feature/src/lib/web-core-routes-user.tsx +++ b/libs/web/core/feature/src/lib/web-core-routes-user.tsx @@ -1,8 +1,7 @@ -import { DashboardFeature } from '@pubkey-stack/web-dashboard-feature' import { SettingsFeature } from '@pubkey-stack/web-settings-feature' import { SolanaFeature } from '@pubkey-stack/web-solana-feature' import { UserFeature } from '@pubkey-stack/web-user-feature' -import { UiDashboardItem } from '@pubkey-ui/core' +import { UiContainer, UiDashboardGrid, UiDashboardItem } from '@pubkey-ui/core' import { IconCurrencySolana, IconSettings, IconUsers } from '@tabler/icons-react' import { RouteObject, useRoutes } from 'react-router-dom' @@ -15,7 +14,7 @@ const links: UiDashboardItem[] = [ const routes: RouteObject[] = [ // User Dashboard Routes are added by the web-crud generator - { path: '/dashboard', element: }, + { path: '/dashboard', element: }, { path: '/settings/*', element: }, { path: '/solana/*', element: }, { path: '/u/*', element: }, @@ -24,3 +23,11 @@ const routes: RouteObject[] = [ export default function WebCoreRoutesUser() { return useRoutes(routes) } + +function Dashboard() { + return ( + + + + ) +} diff --git a/libs/web/dashboard/feature/.babelrc b/libs/web/dashboard/feature/.babelrc deleted file mode 100644 index 1ea870e..0000000 --- a/libs/web/dashboard/feature/.babelrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "presets": [ - [ - "@nx/react/babel", - { - "runtime": "automatic", - "useBuiltIns": "usage" - } - ] - ], - "plugins": [] -} diff --git a/libs/web/dashboard/feature/.eslintrc.json b/libs/web/dashboard/feature/.eslintrc.json deleted file mode 100644 index 772a43d..0000000 --- a/libs/web/dashboard/feature/.eslintrc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": ["plugin:@nx/react", "../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/libs/web/dashboard/feature/README.md b/libs/web/dashboard/feature/README.md deleted file mode 100644 index 3a5ebc3..0000000 --- a/libs/web/dashboard/feature/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# web-dashboard-feature - -This library was generated with [Nx](https://nx.dev). - -## Running unit tests - -Run `nx test web-dashboard-feature` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/web/dashboard/feature/jest.config.ts b/libs/web/dashboard/feature/jest.config.ts deleted file mode 100644 index dd1df9b..0000000 --- a/libs/web/dashboard/feature/jest.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -export default { - displayName: 'web-dashboard-feature', - preset: '../../../../jest.preset.js', - transform: { - '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest', - '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }], - }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - coverageDirectory: '../../../../coverage/libs/web/dashboard/feature', -} diff --git a/libs/web/dashboard/feature/project.json b/libs/web/dashboard/feature/project.json deleted file mode 100644 index 6ba120c..0000000 --- a/libs/web/dashboard/feature/project.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "web-dashboard-feature", - "$schema": "../../../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/web/dashboard/feature/src", - "projectType": "library", - "tags": [], - "targets": { - "lint": { - "executor": "@nx/eslint:lint", - "outputs": ["{options.outputFile}"] - }, - "test": { - "executor": "@nx/jest:jest", - "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], - "options": { - "jestConfig": "libs/web/dashboard/feature/jest.config.ts" - } - } - } -} diff --git a/libs/web/dashboard/feature/src/index.ts b/libs/web/dashboard/feature/src/index.ts deleted file mode 100644 index 02939d5..0000000 --- a/libs/web/dashboard/feature/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { lazy } from 'react' - -export const DashboardFeature = lazy(() => import('./lib/dashboard-feature')) diff --git a/libs/web/dashboard/feature/src/lib/dashboard-feature.tsx b/libs/web/dashboard/feature/src/lib/dashboard-feature.tsx deleted file mode 100644 index 70dcb82..0000000 --- a/libs/web/dashboard/feature/src/lib/dashboard-feature.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { useAuth } from '@pubkey-stack/web-auth-data-access' -import { UiContainer, UiDashboardGrid, UiDashboardItem } from '@pubkey-ui/core' - -export default function DashboardFeature({ links }: { links: UiDashboardItem[] }) { - const { user } = useAuth() - - if (!user) return null - - return ( - - - - ) -} diff --git a/libs/web/dashboard/feature/tsconfig.json b/libs/web/dashboard/feature/tsconfig.json deleted file mode 100644 index c88d07d..0000000 --- a/libs/web/dashboard/feature/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "jsx": "react-jsx", - "allowJs": false, - "esModuleInterop": false, - "allowSyntheticDefaultImports": true, - "strict": true - }, - "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ], - "extends": "../../../../tsconfig.base.json" -} diff --git a/libs/web/dashboard/feature/tsconfig.lib.json b/libs/web/dashboard/feature/tsconfig.lib.json deleted file mode 100644 index 1547ea0..0000000 --- a/libs/web/dashboard/feature/tsconfig.lib.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../dist/out-tsc", - "types": ["node"] - }, - "files": [ - "../../../../node_modules/@nx/react/typings/cssmodule.d.ts", - "../../../../node_modules/@nx/react/typings/image.d.ts" - ], - "exclude": [ - "jest.config.ts", - "src/**/*.spec.ts", - "src/**/*.test.ts", - "src/**/*.spec.tsx", - "src/**/*.test.tsx", - "src/**/*.spec.js", - "src/**/*.test.js", - "src/**/*.spec.jsx", - "src/**/*.test.jsx" - ], - "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] -} diff --git a/libs/web/dashboard/feature/tsconfig.spec.json b/libs/web/dashboard/feature/tsconfig.spec.json deleted file mode 100644 index 1033686..0000000 --- a/libs/web/dashboard/feature/tsconfig.spec.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "../../../../dist/out-tsc", - "module": "commonjs", - "types": ["jest", "node"] - }, - "include": [ - "jest.config.ts", - "src/**/*.test.ts", - "src/**/*.spec.ts", - "src/**/*.test.tsx", - "src/**/*.spec.tsx", - "src/**/*.test.js", - "src/**/*.spec.js", - "src/**/*.test.jsx", - "src/**/*.spec.jsx", - "src/**/*.d.ts" - ] -} diff --git a/tsconfig.base.json b/tsconfig.base.json index 1ac6aa2..698780a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -32,7 +32,6 @@ "@pubkey-stack/web-core-data-access": ["libs/web/core/data-access/src/index.ts"], "@pubkey-stack/web-core-feature": ["libs/web/core/feature/src/index.ts"], "@pubkey-stack/web-core-ui": ["libs/web/core/ui/src/index.ts"], - "@pubkey-stack/web-dashboard-feature": ["libs/web/dashboard/feature/src/index.ts"], "@pubkey-stack/web-dev-feature": ["libs/web/dev/feature/src/index.ts"], "@pubkey-stack/web-home-feature": ["libs/web/home/feature/src/index.ts"], "@pubkey-stack/web-identity-data-access": ["libs/web/identity/data-access/src/index.ts"],