diff --git a/Web/packages/web/src/feature.js b/Web/packages/web/src/feature.js index 0fccb245e..545e00dd2 100644 --- a/Web/packages/web/src/feature.js +++ b/Web/packages/web/src/feature.js @@ -13,29 +13,30 @@ import HelloWorld from './components/ToolHelloWorld' import Resource from './plugins/resources/index' import ApiMock from './plugins/api-mock/index' import WebVitals from './plugins/web-vitals-time/index' +import memoryMonitoring from './plugins/memory-monitoring' -import {IndependPlugin, RouterPlugin} from '@dokit/web-core' +import { IndependPlugin, RouterPlugin } from '@dokit/web-core' export const BasicFeatures = { - title: '常用工具', - list: [Console, AppInfo, Resource, Network, Storage, DemoPlugin, DemoIndependPlugin, H5DoorPlugin, WebVitals, Element, OneMachineWithMultipleControls, scanCode] - // list: [Console, AppInfo, Resource, Network, Storage, H5DoorPlugin] + title: '常用工具', + list: [Console, AppInfo, Resource, Network, Storage, DemoPlugin, DemoIndependPlugin, H5DoorPlugin, WebVitals, Element, OneMachineWithMultipleControls, scanCode, memoryMonitoring] + // list: [Console, AppInfo, Resource, Network, Storage, H5DoorPlugin] } export const DokitFeatures = { - title: '平台功能', - list: [ApiMock] + title: '平台功能', + list: [ApiMock] } export const UIFeatures = { - title: '视觉功能', - list: [AlignRuler] - // list: [AlignRuler, - // new RouterPlugin({ - // nameZh: 'UI结构', - // name: 'view-selector', - // icon: 'https://pt-starimg.didistatic.com/static/starimg/img/XNViIWzG7N1618997548483.png', - // component: HelloWorld - // })] + title: '视觉功能', + list: [AlignRuler] + // list: [AlignRuler, + // new RouterPlugin({ + // nameZh: 'UI结构', + // name: 'view-selector', + // icon: 'https://pt-starimg.didistatic.com/static/starimg/img/XNViIWzG7N1618997548483.png', + // component: HelloWorld + // })] } -export const Features = [BasicFeatures, DokitFeatures, UIFeatures] +export const Features = [BasicFeatures, DokitFeatures, UIFeatures] \ No newline at end of file diff --git a/Web/packages/web/src/plugins/memory-monitoring/IndependPluginDemo.vue b/Web/packages/web/src/plugins/memory-monitoring/IndependPluginDemo.vue new file mode 100644 index 000000000..df791b220 --- /dev/null +++ b/Web/packages/web/src/plugins/memory-monitoring/IndependPluginDemo.vue @@ -0,0 +1,85 @@ + + + \ No newline at end of file diff --git a/Web/packages/web/src/plugins/memory-monitoring/index.js b/Web/packages/web/src/plugins/memory-monitoring/index.js new file mode 100644 index 000000000..2f2720b7f --- /dev/null +++ b/Web/packages/web/src/plugins/memory-monitoring/index.js @@ -0,0 +1,9 @@ +import IndependPluginDemo from './IndependPluginDemo.vue' +import { IndependPlugin } from '@dokit/web-core' + +export default new IndependPlugin({ + nameZh: '内存实时监测', + name: 'test', + icon: 'https://pt-starimg.didistatic.com/static/starimg/img/z1346TQD531618997547642.png', + component: IndependPluginDemo +}) \ No newline at end of file