Преглед изворни кода

feat(link): add link module

Lind пре 4 година
родитељ
комит
18ff36ab52

+ 41 - 0
config/routes.ts

@@ -139,6 +139,47 @@
     ],
   },
   {
+    path: '/link',
+    name: 'link',
+    icon: 'crown',
+    routes: [
+      {
+        path: '/link',
+        redirect: '/link/certificate',
+      },
+      {
+        path: '/link/certificate',
+        name: 'certificate',
+        icon: 'smile',
+        component: './link/Certificate',
+      },
+      {
+        path: '/link/gateway',
+        name: 'gateway',
+        icon: 'smile',
+        component: './link/Gateway',
+      },
+      {
+        path: '/link/opcua',
+        name: 'opcua',
+        icon: 'smile',
+        component: './link/Opcua',
+      },
+      {
+        path: '/link/protocol',
+        name: 'protocol',
+        icon: 'smile',
+        component: './link/Protocol',
+      },
+      {
+        path: 'link/type',
+        name: 'type',
+        icon: 'smile',
+        component: './link/Type',
+      },
+    ],
+  },
+  {
     path: '/log',
     name: 'log',
     icon: 'crown',

+ 6 - 0
src/pages/link/Certificate/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Certificate = () => {
+  return <PageContainer>Certificate</PageContainer>;
+};
+export default Certificate;

+ 4 - 0
src/pages/link/Certificate/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};

+ 6 - 0
src/pages/link/Gateway/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Gateway = () => {
+  return <PageContainer>Gateway</PageContainer>;
+};
+export default Gateway;

+ 4 - 0
src/pages/link/Gateway/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};

+ 6 - 0
src/pages/link/Opcua/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Opcua = () => {
+  return <PageContainer>Opcua</PageContainer>;
+};
+export default Opcua;

+ 4 - 0
src/pages/link/Opcua/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};

+ 6 - 0
src/pages/link/Protocol/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Protocol = () => {
+  return <PageContainer>Protocol</PageContainer>;
+};
+export default Protocol;

+ 4 - 0
src/pages/link/Protocol/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};

+ 6 - 0
src/pages/link/Type/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Type = () => {
+  return <PageContainer>Type</PageContainer>;
+};
+export default Type;

+ 4 - 0
src/pages/link/Type/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};