generated from kevisual/vite-react-template
feat: 更新README,添加云开发(cloud-dev)说明;新增Skeleton组件
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
1. 对话管理
|
1. 对话管理
|
||||||
2. 仓库管理
|
2. 仓库管理
|
||||||
3. 云开发
|
3. 云开发(cloud-dev)
|
||||||
4. 应用管理
|
4. 应用管理
|
||||||
5. Agent管理
|
5. Agent管理
|
||||||
6. 配置
|
6. 配置
|
||||||
13
src/components/ui/skeleton.tsx
Normal file
13
src/components/ui/skeleton.tsx
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="skeleton"
|
||||||
|
className={cn("animate-pulse rounded-md bg-muted", className)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Skeleton }
|
||||||
@@ -15,6 +15,7 @@ import { Route as IndexRouteImport } from './routes/index'
|
|||||||
import { Route as WorkspacesIndexRouteImport } from './routes/workspaces/index'
|
import { Route as WorkspacesIndexRouteImport } from './routes/workspaces/index'
|
||||||
import { Route as RepoIndexRouteImport } from './routes/repo/index'
|
import { Route as RepoIndexRouteImport } from './routes/repo/index'
|
||||||
import { Route as ConfigIndexRouteImport } from './routes/config/index'
|
import { Route as ConfigIndexRouteImport } from './routes/config/index'
|
||||||
|
import { Route as CloudEnvIndexRouteImport } from './routes/cloud-env/index'
|
||||||
import { Route as ConfigGiteaRouteImport } from './routes/config/gitea'
|
import { Route as ConfigGiteaRouteImport } from './routes/config/gitea'
|
||||||
|
|
||||||
const LoginRoute = LoginRouteImport.update({
|
const LoginRoute = LoginRouteImport.update({
|
||||||
@@ -47,6 +48,11 @@ const ConfigIndexRoute = ConfigIndexRouteImport.update({
|
|||||||
path: '/config/',
|
path: '/config/',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
|
const CloudEnvIndexRoute = CloudEnvIndexRouteImport.update({
|
||||||
|
id: '/cloud-env/',
|
||||||
|
path: '/cloud-env/',
|
||||||
|
getParentRoute: () => rootRouteImport,
|
||||||
|
} as any)
|
||||||
const ConfigGiteaRoute = ConfigGiteaRouteImport.update({
|
const ConfigGiteaRoute = ConfigGiteaRouteImport.update({
|
||||||
id: '/config/gitea',
|
id: '/config/gitea',
|
||||||
path: '/config/gitea',
|
path: '/config/gitea',
|
||||||
@@ -58,6 +64,7 @@ export interface FileRoutesByFullPath {
|
|||||||
'/demo': typeof DemoRoute
|
'/demo': typeof DemoRoute
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/config/gitea': typeof ConfigGiteaRoute
|
'/config/gitea': typeof ConfigGiteaRoute
|
||||||
|
'/cloud-env/': typeof CloudEnvIndexRoute
|
||||||
'/config/': typeof ConfigIndexRoute
|
'/config/': typeof ConfigIndexRoute
|
||||||
'/repo/': typeof RepoIndexRoute
|
'/repo/': typeof RepoIndexRoute
|
||||||
'/workspaces/': typeof WorkspacesIndexRoute
|
'/workspaces/': typeof WorkspacesIndexRoute
|
||||||
@@ -67,6 +74,7 @@ export interface FileRoutesByTo {
|
|||||||
'/demo': typeof DemoRoute
|
'/demo': typeof DemoRoute
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/config/gitea': typeof ConfigGiteaRoute
|
'/config/gitea': typeof ConfigGiteaRoute
|
||||||
|
'/cloud-env': typeof CloudEnvIndexRoute
|
||||||
'/config': typeof ConfigIndexRoute
|
'/config': typeof ConfigIndexRoute
|
||||||
'/repo': typeof RepoIndexRoute
|
'/repo': typeof RepoIndexRoute
|
||||||
'/workspaces': typeof WorkspacesIndexRoute
|
'/workspaces': typeof WorkspacesIndexRoute
|
||||||
@@ -77,6 +85,7 @@ export interface FileRoutesById {
|
|||||||
'/demo': typeof DemoRoute
|
'/demo': typeof DemoRoute
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/config/gitea': typeof ConfigGiteaRoute
|
'/config/gitea': typeof ConfigGiteaRoute
|
||||||
|
'/cloud-env/': typeof CloudEnvIndexRoute
|
||||||
'/config/': typeof ConfigIndexRoute
|
'/config/': typeof ConfigIndexRoute
|
||||||
'/repo/': typeof RepoIndexRoute
|
'/repo/': typeof RepoIndexRoute
|
||||||
'/workspaces/': typeof WorkspacesIndexRoute
|
'/workspaces/': typeof WorkspacesIndexRoute
|
||||||
@@ -88,6 +97,7 @@ export interface FileRouteTypes {
|
|||||||
| '/demo'
|
| '/demo'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/config/gitea'
|
| '/config/gitea'
|
||||||
|
| '/cloud-env/'
|
||||||
| '/config/'
|
| '/config/'
|
||||||
| '/repo/'
|
| '/repo/'
|
||||||
| '/workspaces/'
|
| '/workspaces/'
|
||||||
@@ -97,6 +107,7 @@ export interface FileRouteTypes {
|
|||||||
| '/demo'
|
| '/demo'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/config/gitea'
|
| '/config/gitea'
|
||||||
|
| '/cloud-env'
|
||||||
| '/config'
|
| '/config'
|
||||||
| '/repo'
|
| '/repo'
|
||||||
| '/workspaces'
|
| '/workspaces'
|
||||||
@@ -106,6 +117,7 @@ export interface FileRouteTypes {
|
|||||||
| '/demo'
|
| '/demo'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/config/gitea'
|
| '/config/gitea'
|
||||||
|
| '/cloud-env/'
|
||||||
| '/config/'
|
| '/config/'
|
||||||
| '/repo/'
|
| '/repo/'
|
||||||
| '/workspaces/'
|
| '/workspaces/'
|
||||||
@@ -116,6 +128,7 @@ export interface RootRouteChildren {
|
|||||||
DemoRoute: typeof DemoRoute
|
DemoRoute: typeof DemoRoute
|
||||||
LoginRoute: typeof LoginRoute
|
LoginRoute: typeof LoginRoute
|
||||||
ConfigGiteaRoute: typeof ConfigGiteaRoute
|
ConfigGiteaRoute: typeof ConfigGiteaRoute
|
||||||
|
CloudEnvIndexRoute: typeof CloudEnvIndexRoute
|
||||||
ConfigIndexRoute: typeof ConfigIndexRoute
|
ConfigIndexRoute: typeof ConfigIndexRoute
|
||||||
RepoIndexRoute: typeof RepoIndexRoute
|
RepoIndexRoute: typeof RepoIndexRoute
|
||||||
WorkspacesIndexRoute: typeof WorkspacesIndexRoute
|
WorkspacesIndexRoute: typeof WorkspacesIndexRoute
|
||||||
@@ -165,6 +178,13 @@ declare module '@tanstack/react-router' {
|
|||||||
preLoaderRoute: typeof ConfigIndexRouteImport
|
preLoaderRoute: typeof ConfigIndexRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
|
'/cloud-env/': {
|
||||||
|
id: '/cloud-env/'
|
||||||
|
path: '/cloud-env'
|
||||||
|
fullPath: '/cloud-env/'
|
||||||
|
preLoaderRoute: typeof CloudEnvIndexRouteImport
|
||||||
|
parentRoute: typeof rootRouteImport
|
||||||
|
}
|
||||||
'/config/gitea': {
|
'/config/gitea': {
|
||||||
id: '/config/gitea'
|
id: '/config/gitea'
|
||||||
path: '/config/gitea'
|
path: '/config/gitea'
|
||||||
@@ -180,6 +200,7 @@ const rootRouteChildren: RootRouteChildren = {
|
|||||||
DemoRoute: DemoRoute,
|
DemoRoute: DemoRoute,
|
||||||
LoginRoute: LoginRoute,
|
LoginRoute: LoginRoute,
|
||||||
ConfigGiteaRoute: ConfigGiteaRoute,
|
ConfigGiteaRoute: ConfigGiteaRoute,
|
||||||
|
CloudEnvIndexRoute: CloudEnvIndexRoute,
|
||||||
ConfigIndexRoute: ConfigIndexRoute,
|
ConfigIndexRoute: ConfigIndexRoute,
|
||||||
RepoIndexRoute: RepoIndexRoute,
|
RepoIndexRoute: RepoIndexRoute,
|
||||||
WorkspacesIndexRoute: WorkspacesIndexRoute,
|
WorkspacesIndexRoute: WorkspacesIndexRoute,
|
||||||
|
|||||||
Reference in New Issue
Block a user