Skip to content

Commit

Permalink
added sample widget code, remove demo widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
etrousset committed Apr 29, 2024
1 parent 09b7d81 commit 57b3b25
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 1,238 deletions.
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"main": "app.ts",
"license": "Apache-2.0",
"dependencies": {
"@kuzzleio/iot-platform-backend": "3.1.0-beta.43",
"@kuzzleio/iot-platform-backend": "3.1.0-beta.44",
"kuzzle": "^2",
"lodash": "^4.17.21"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lodash": "^4.17.21",
"vue-plugin-kuzzle": "^4.5.0",
"@fortawesome/fontawesome-free": "6.2.*",
"@kuzzleio/iot-platform-frontend": "^3.1.0-beta.43",
"@kuzzleio/iot-platform-frontend": "3.1.0-beta.44",
"@types/lodash": "4.17.*",
"@vuelidate/core": "2.0.*",
"kuzzle-device-manager-types": "2.4.0-beta.15"
Expand Down
67 changes: 24 additions & 43 deletions apps/web/src/appDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ import {
} from '@kuzzleio/iot-platform-frontend';

import BulkImport from '~/views/bulkImport/BulkImport.vue';
import CatalogList from '~/views/catalog/CatalogList.vue';
import LevelWidget from '~/widgets/level-widget/LevelWidget.vue';
import LevelWidgetForm from '~/widgets/level-widget/LevelWidgetForm.vue';
import OnOffWidget from '~/widgets/on-off-widget/OnOffWidget.vue';
import OnOffWidgetForm from '~/widgets/on-off-widget/OnOffWidgetForm.vue';
import StatusMapWidget from '~/widgets/statusMap-widget/StatusMapWidget.vue';
import StatusMapWidgetForm from '~/widgets/statusMap-widget/StatusMapWidgetForm.vue';
import SampleWidget from '~/widgets/sample-widget/SampleWidget.vue';
import SampleWidgetForm from '~/widgets/sample-widget/SampleWidgetForm.vue';
// import CatalogList from '~/views/catalog/CatalogList.vue';

const admin = IoTPlatformChunks.find((chunk) => chunk.name === 'admin');
if (admin?.children !== undefined) {
Expand Down Expand Up @@ -48,45 +44,30 @@ if (admin?.children !== undefined) {

export const appDefinitions: AppChunk[] = [
...IoTPlatformChunks,
{
name: 'catalog',
label: 'locales.sidebar.catalog',
icon: faBookmark,
vuejsRoute: {
path: '/catalog',
component: KRouteWrapper,
children: [
{
path: '',
name: 'catalog',
component: CatalogList,
},
],
},
},
// {
// name: 'catalog',
// label: 'locales.sidebar.catalog',
// icon: faBookmark,
// vuejsRoute: {
// path: '/catalog',
// component: KRouteWrapper,
// children: [
// {
// path: '',
// name: 'catalog',
// component: CatalogList,
// },
// ],
// },
// },
];

export const dashboardWidgets: DashboardWidget[] = [
// Public Lighting
{
name: 'statusMap',
label: 'locales.widget.status-map.label',
component: StatusMapWidget,
formComponent: StatusMapWidgetForm,
icon: 'map',
},
{
name: 'light-level',
label: 'locales.widget.level.label',
component: LevelWidget,
formComponent: LevelWidgetForm,
icon: 'sun',
},
{
name: 'on-off',
label: 'locales.widget.on-off.label',
component: OnOffWidget,
formComponent: OnOffWidgetForm,
icon: 'toggle-on',
name: 'pie',
label: 'locales.widget.pie.label',
component: SampleWidget,
formComponent:SampleWidgetForm,
icon: 'chart-pie',
},
];
118 changes: 0 additions & 118 deletions apps/web/src/widgets/level-widget/LevelWidget.vue

This file was deleted.

91 changes: 0 additions & 91 deletions apps/web/src/widgets/level-widget/LevelWidgetForm.vue

This file was deleted.

Loading

0 comments on commit 57b3b25

Please sign in to comment.