Skip to content

Commit

Permalink
refactor: remove web-dashboard-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Mar 9, 2024
1 parent 9eea0e8 commit 73c5552
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 152 deletions.
13 changes: 10 additions & 3 deletions libs/web/core/feature/src/lib/web-core-routes-user.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -15,7 +14,7 @@ const links: UiDashboardItem[] = [

const routes: RouteObject[] = [
// User Dashboard Routes are added by the web-crud generator
{ path: '/dashboard', element: <DashboardFeature links={links} /> },
{ path: '/dashboard', element: <Dashboard /> },
{ path: '/settings/*', element: <SettingsFeature /> },
{ path: '/solana/*', element: <SolanaFeature /> },
{ path: '/u/*', element: <UserFeature /> },
Expand All @@ -24,3 +23,11 @@ const routes: RouteObject[] = [
export default function WebCoreRoutesUser() {
return useRoutes(routes)
}

function Dashboard() {
return (
<UiContainer>
<UiDashboardGrid links={links} />
</UiContainer>
)
}
12 changes: 0 additions & 12 deletions libs/web/dashboard/feature/.babelrc

This file was deleted.

18 changes: 0 additions & 18 deletions libs/web/dashboard/feature/.eslintrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions libs/web/dashboard/feature/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions libs/web/dashboard/feature/jest.config.ts

This file was deleted.

20 changes: 0 additions & 20 deletions libs/web/dashboard/feature/project.json

This file was deleted.

3 changes: 0 additions & 3 deletions libs/web/dashboard/feature/src/index.ts

This file was deleted.

14 changes: 0 additions & 14 deletions libs/web/dashboard/feature/src/lib/dashboard-feature.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions libs/web/dashboard/feature/tsconfig.json

This file was deleted.

23 changes: 0 additions & 23 deletions libs/web/dashboard/feature/tsconfig.lib.json

This file was deleted.

20 changes: 0 additions & 20 deletions libs/web/dashboard/feature/tsconfig.spec.json

This file was deleted.

1 change: 0 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 73c5552

Please sign in to comment.