Skip to content

Commit

Permalink
[chore]: fix ci issue and add checker for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
LZS911 committed Dec 3, 2024
1 parent b90a13c commit 3dbc010
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 291 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"build": "pnpm --filter base build",
"build:ee": "pnpm --filter base build:ee",
"build:demo": "pnpm --filter base build:demo",
"prettier:w": "prettier -w packages/*/src/ packages/*/lib/",
"prettier:c": "prettier -c packages/*/src/ packages/*/lib/",
"eslint": "eslint packages/*/src/ packages/*/lib/",
"prettier:w": "prettier -w packages/*/src/ packages/*/lib/ scripts/cli/*/src",
"prettier:c": "prettier -c packages/*/src/ packages/*/lib/ scripts/cli/*/src",
"eslint": "eslint packages/*/src/ packages/*/lib/ scripts/cli/*/src",
"stylelint": "stylelint packages/*/{src,lib}/**/{*.less,style.ts,element.ts}",
"ts-check": "tsc --noEmit",
"checker": "pnpm ts-check && pnpm eslint && pnpm stylelint && pnpm prettier:c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ exports[`base/router-base-ee render base route data snap 1`] = `
"path": ":projectID/cloud-beaver",
},
],
"element": <UNDEFINED />,
"element": <ProjectDetail />,
"key": "projectDetail",
"path": "/project/*",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports[`base/router-base-ce render base route data snap 1`] = `
"path": ":projectID/cloud-beaver",
},
],
"element": <UNDEFINED />,
"element": <ProjectDetail />,
"key": "projectDetail",
"path": "/project/*",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ exports[`base/router-sqle-ce render sqle route data snap 1`] = `
},
],
"element": <UNDEFINED />,
"key": "projectDetail",
"key": "sqleProjectDetail",
"path": "/sqle/project/*",
},
{
Expand Down
17 changes: 15 additions & 2 deletions packages/base/src/router/test/data.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import { RouteObject, useRoutes, Outlet } from 'react-router-dom';
import { RouterConfigItem } from '@actiontech/shared/lib/types/common.type';
import { AuthRouterConfig, unAuthRouterConfig } from '../router';
import { BaseRouterConfig } from '../router.base';
import {
BaseGlobalRouterConfig,
BaseProjectRouterConfig
} from '../router.base';
import { ROUTE_PATHS } from '@actiontech/shared/lib/data/routePaths';
import ProjectDetail from '../../page/Project/Detail';

const routeData = {
base: BaseRouterConfig,
base: [
...BaseGlobalRouterConfig,
{
key: 'projectDetail',
path: ROUTE_PATHS.BASE.PROJECT_DETAIL,
element: <ProjectDetail />,
children: BaseProjectRouterConfig
}
],
sqle: AuthRouterConfig,
unAuth: unAuthRouterConfig
};
Expand Down
Loading

0 comments on commit 3dbc010

Please sign in to comment.