Commit 439025d1166a87bc9008f4e7973b75cd774ec13b
1 parent
079da0be
perf(src/packages): 注释此项目侧边栏新增的其他,保留待用,移动其他里的内容到信息里的更多
Showing
22 changed files
with
40 additions
and
36 deletions
| 1 | -import { CameraConfig } from './Camera/index' | |
| 2 | -import { SingleCameraConfig } from './SingleCamera/index' | |
| 3 | -import { OverrideILoadConfigurationframeConfig } from './OverrideILoadConfigurationframe/index' | |
| 4 | - | |
| 5 | -export default [SingleCameraConfig, CameraConfig, OverrideILoadConfigurationframeConfig] | |
| 1 | +/** | |
| 2 | + * 此项目扩展侧边栏功能,保留待用 | |
| 3 | + */ | |
| \ No newline at end of file | ... | ... |
| 1 | -export enum ChatCategoryEnum { | |
| 2 | - MORE = 'Mores' | |
| 3 | -} | |
| 1 | +// export enum ChatCategoryEnum { | |
| 2 | +// MORE = 'Mores' | |
| 3 | +// } | |
| 4 | 4 | |
| 5 | -export enum ChatCategoryEnumName { | |
| 6 | - MORE = '更多' | |
| 7 | -} | |
| 5 | +// export enum ChatCategoryEnumName { | |
| 6 | +// MORE = '更多' | |
| 7 | +// } | |
| 8 | 8 | |
| 9 | -export enum PackagesCategoryEnum { | |
| 10 | - WORD_CLOUD = 'WordCloud' | |
| 11 | -} | |
| 9 | +// export enum PackagesCategoryEnum { | |
| 10 | +// WORD_CLOUD = 'WordCloud' | |
| 11 | +// } | ... | ... |
src/packages/components/external/Informations/Mores/Camera/components/CameraItem.vue
renamed from
src/packages/components/external/Composes/Mores/Camera/components/CameraItem.vue
src/packages/components/external/Informations/Mores/Camera/components/index.ts
renamed from
src/packages/components/external/Composes/Mores/Camera/components/index.ts
src/packages/components/external/Informations/Mores/Camera/config.ts
renamed from
src/packages/components/external/Composes/Mores/Camera/config.ts
src/packages/components/external/Informations/Mores/Camera/config.vue
renamed from
src/packages/components/external/Composes/Mores/Camera/config.vue
src/packages/components/external/Informations/Mores/Camera/index.ts
renamed from
src/packages/components/external/Composes/Mores/Camera/index.ts
| 1 | -import { ChartFrameEnum, ConfigType } from '@/packages/index.d' | |
| 2 | -import { EPackagesCategoryEnum } from '@/packages/components/external/types' | |
| 3 | -import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' | |
| 1 | +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' | |
| 2 | +import { ChatCategoryEnum, ChatCategoryEnumName } from '@/packages/components/Informations/index.d' | |
| 4 | 3 | import { useWidgetKey } from '@/packages/external/useWidgetKey' |
| 5 | 4 | |
| 6 | -const { key, chartKey, conKey } = useWidgetKey('Camera') | |
| 5 | +const { key, conKey, chartKey } = useWidgetKey('Camera', true) | |
| 6 | + | |
| 7 | 7 | export const CameraConfig: ConfigType = { |
| 8 | 8 | key, |
| 9 | 9 | chartKey, |
| ... | ... | @@ -11,7 +11,7 @@ export const CameraConfig: ConfigType = { |
| 11 | 11 | title: '多个摄像头', |
| 12 | 12 | category: ChatCategoryEnum.MORE, |
| 13 | 13 | categoryName: ChatCategoryEnumName.MORE, |
| 14 | - package: EPackagesCategoryEnum.COMPOSES, | |
| 15 | - chartFrame: ChartFrameEnum.NAIVE_UI, | |
| 14 | + package: PackagesCategoryEnum.INFORMATIONS, | |
| 15 | + chartFrame: ChartFrameEnum.NAIVE_UI, | |
| 16 | 16 | image: 'camera.png' |
| 17 | 17 | } | ... | ... |
src/packages/components/external/Informations/Mores/Camera/index.vue
renamed from
src/packages/components/external/Composes/Mores/Camera/index.vue
src/packages/components/external/Informations/Mores/Camera/static/left.svg
renamed from
src/packages/components/external/Composes/Mores/Camera/static/left.svg
src/packages/components/external/Informations/Mores/Camera/static/right.svg
renamed from
src/packages/components/external/Composes/Mores/Camera/static/right.svg
src/packages/components/external/Informations/Mores/OverrideILoadConfigurationframe/config.ts
renamed from
src/packages/components/external/Composes/Mores/OverrideILoadConfigurationframe/config.ts
src/packages/components/external/Informations/Mores/OverrideILoadConfigurationframe/config.vue
renamed from
src/packages/components/external/Composes/Mores/OverrideILoadConfigurationframe/config.vue
src/packages/components/external/Informations/Mores/OverrideILoadConfigurationframe/index.ts
renamed from
src/packages/components/external/Composes/Mores/OverrideILoadConfigurationframe/index.ts
| 1 | -import { ChartFrameEnum, ConfigType } from '@/packages/index.d' | |
| 2 | -import { EPackagesCategoryEnum } from '@/packages/components/external/types' | |
| 3 | -import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' | |
| 1 | +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' | |
| 2 | +import { ChatCategoryEnum, ChatCategoryEnumName } from '@/packages/components/Informations/index.d' | |
| 4 | 3 | import { useWidgetKey } from '@/packages/external/useWidgetKey' |
| 5 | 4 | |
| 6 | -const { key, conKey, chartKey } = useWidgetKey('OverrideILoadConfigurationframe') | |
| 5 | +const { key, conKey, chartKey } = useWidgetKey('OverrideILoadConfigurationframe', true) | |
| 7 | 6 | |
| 8 | 7 | export const OverrideILoadConfigurationframeConfig: ConfigType = { |
| 9 | 8 | key, |
| ... | ... | @@ -12,7 +11,7 @@ export const OverrideILoadConfigurationframeConfig: ConfigType = { |
| 12 | 11 | title: '加载组态', |
| 13 | 12 | category: ChatCategoryEnum.MORE, |
| 14 | 13 | categoryName: ChatCategoryEnumName.MORE, |
| 15 | - package: EPackagesCategoryEnum.COMPOSES, | |
| 14 | + package: PackagesCategoryEnum.INFORMATIONS, | |
| 16 | 15 | chartFrame: ChartFrameEnum.COMMON, |
| 17 | 16 | image: 'configuration.png' |
| 18 | 17 | } | ... | ... |
src/packages/components/external/Informations/Mores/OverrideILoadConfigurationframe/index.vue
renamed from
src/packages/components/external/Composes/Mores/OverrideILoadConfigurationframe/index.vue
src/packages/components/external/Informations/Mores/SingleCamera/components/VideoPlay.vue
renamed from
src/packages/components/external/Composes/Mores/SingleCamera/components/VideoPlay.vue
src/packages/components/external/Informations/Mores/SingleCamera/components/index.ts
renamed from
src/packages/components/external/Composes/Mores/SingleCamera/components/index.ts
src/packages/components/external/Informations/Mores/SingleCamera/config.ts
renamed from
src/packages/components/external/Composes/Mores/SingleCamera/config.ts
src/packages/components/external/Informations/Mores/SingleCamera/config.vue
renamed from
src/packages/components/external/Composes/Mores/SingleCamera/config.vue
src/packages/components/external/Informations/Mores/SingleCamera/index.ts
renamed from
src/packages/components/external/Composes/Mores/SingleCamera/index.ts
| 1 | -import { ChartFrameEnum, ConfigType } from '@/packages/index.d' | |
| 2 | -import { EPackagesCategoryEnum } from '@/packages/components/external/types' | |
| 3 | -import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' | |
| 1 | +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' | |
| 2 | +import { ChatCategoryEnum, ChatCategoryEnumName } from '@/packages/components/Informations/index.d' | |
| 4 | 3 | import { useWidgetKey } from '@/packages/external/useWidgetKey' |
| 5 | 4 | |
| 6 | -const { key, chartKey, conKey } = useWidgetKey('SingleCamera') | |
| 5 | +const { key, conKey, chartKey } = useWidgetKey('SingleCamera', true) | |
| 6 | + | |
| 7 | 7 | export const SingleCameraConfig: ConfigType = { |
| 8 | 8 | key, |
| 9 | 9 | chartKey, |
| ... | ... | @@ -11,7 +11,7 @@ export const SingleCameraConfig: ConfigType = { |
| 11 | 11 | title: '单个摄像头', |
| 12 | 12 | category: ChatCategoryEnum.MORE, |
| 13 | 13 | categoryName: ChatCategoryEnumName.MORE, |
| 14 | - package: EPackagesCategoryEnum.COMPOSES, | |
| 15 | - chartFrame: ChartFrameEnum.NAIVE_UI, | |
| 14 | + package: PackagesCategoryEnum.INFORMATIONS, | |
| 15 | + chartFrame: ChartFrameEnum.NAIVE_UI, | |
| 16 | 16 | image: 'camera.png' |
| 17 | 17 | } | ... | ... |
src/packages/components/external/Informations/Mores/SingleCamera/index.vue
renamed from
src/packages/components/external/Composes/Mores/SingleCamera/index.vue
| 1 | -import { EPackagesCategoryEnum, EPackagesType } from '@/packages/components/external/types' | |
| 2 | -import { ComposesList } from '@/packages/components/external/Composes' | |
| 1 | +// import { EPackagesCategoryEnum, EPackagesType } from '@/packages/components/external/types' | |
| 2 | +import { EPackagesType } from '@/packages/components/external/types' | |
| 3 | +// import { ComposesList } from '@/packages/components/external/Composes'//此项目扩展侧边栏功能,保留待用 | |
| 3 | 4 | import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' |
| 4 | 5 | import { PickIconConfig } from '@/packages/components/external/Decorates/Mores/PickIcon' |
| 5 | 6 | import { WeatherConfig } from '@/packages/components/external/Decorates/Mores/Weather' |
| ... | ... | @@ -37,12 +38,15 @@ import { Decorates07Config } from '@/packages/components/external/Decorates/Deco |
| 37 | 38 | import { Decorates08Config } from '@/packages/components/external/Decorates/Decorates/Decorates08' |
| 38 | 39 | import { Decorates09Config } from '@/packages/components/external/Decorates/Decorates/Decorates09' |
| 39 | 40 | import { Decorates10Config } from '@/packages/components/external/Decorates/Decorates/Decorates10' |
| 41 | +import { CameraConfig } from '@/packages/components/external/Informations/Mores/Camera' | |
| 42 | +import { SingleCameraConfig } from '@/packages/components/external/Informations/Mores/SingleCamera' | |
| 43 | +import { OverrideILoadConfigurationframeConfig } from '@/packages/components/external/Informations/Mores/OverrideILoadConfigurationframe' | |
| 40 | 44 | |
| 41 | 45 | /** |
| 42 | 46 | * 重写动态注入 |
| 43 | 47 | */ |
| 44 | 48 | export function useInjectLib(packagesList: EPackagesType) { |
| 45 | - packagesList[EPackagesCategoryEnum.COMPOSES] = ComposesList | |
| 49 | + // packagesList[EPackagesCategoryEnum.COMPOSES] = ComposesList //此项目扩展侧边栏功能,保留待用 | |
| 46 | 50 | |
| 47 | 51 | //小组件 |
| 48 | 52 | addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.DECORATES, PickIconConfig)//新增小组件图标 |
| ... | ... | @@ -76,6 +80,9 @@ export function useInjectLib(packagesList: EPackagesType) { |
| 76 | 80 | addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.INFORMATIONS, OverrideTextBarrageConfig)//重写信息下的弹幕文字 |
| 77 | 81 | addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.INFORMATIONS, OverrideTextGradientConfig)//重写信息下的渐变文字 |
| 78 | 82 | addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.INFORMATIONS, OverrideVideoConfig)//重写信息下的视频 |
| 83 | + addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.INFORMATIONS, CameraConfig)//新增信息下的多个摄像头 | |
| 84 | + addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.INFORMATIONS, SingleCameraConfig)//新增信息下的单个摄像头 | |
| 85 | + addWidgetToCategoryByCategoryName(packagesList, PackagesCategoryEnum.INFORMATIONS, OverrideILoadConfigurationframeConfig)//新增信息下的加载组态 | |
| 79 | 86 | // |
| 80 | 87 | |
| 81 | 88 | //图表 | ... | ... |