Skip to content

Modular logistics and supply chain operating system (LSOS)

added grid stack

Turtuvshin59f01832ef3c
diff --git a/console/app/components/dashboard/count.hbs b/console/app/components/dashboard/count.hbs
index fc501018..9458e91e 100644
--- a/console/app/components/dashboard/count.hbs
+++ b/console/app/components/dashboard/count.hbs
@@ -1,4 +1,4 @@
-<div class="dashboard-component-count lg:col-span-2">
+<div class="dashboard-component-count lg:col-span-2 h-full">
<h3 class="text-sm dark:text-gray-100 text-black mb-4">{{@options.title}}</h3>
<h1 class="text-3xl font-bold dark:text-gray-100 text-black mb-4">
{{this.displayValue}}
diff --git a/console/app/components/dashboard/create.hbs b/console/app/components/dashboard/create.hbs
index 64a7df6d..e8b1fd86 100644
--- a/console/app/components/dashboard/create.hbs
+++ b/console/app/components/dashboard/create.hbs
@@ -10,9 +10,13 @@
<Dashboard::QueryParams @params={{@dashboard.queryParams}} @onChange={{this.onQueryParamsChanged}} />
</div>
</div>
- <div class="grid grid-cols-2 lg:grid-cols-12 gap-4">
- {{#each this.dashboard.widgets as |widget|}}
- {{component (concat "dashboard/" widget.component) options=widget.options}}
+ <GridStack @options={{hash float=true animate=true}} @onChange={{this.change}} class="w-full">
+
+ {{#each this.dashboard.widgets as |widget index|}}
+ <GridStackItem @options={{hash w=2 h=2}}>
+ {{component (concat "dashboard/" widget.component) options=widget.options}}
+ </GridStackItem>
{{/each}}
- </div>
+ </GridStack>
+
</div>
\ No newline at end of file
diff --git a/console/package.json b/console/package.json
index 004bed1c..bcbe19eb 100644
--- a/console/package.json
+++ b/console/package.json
@@ -26,15 +26,15 @@
"test:ember": "ember test"
},
"dependencies": {
+ "@ember/legacy-built-in-components": "^0.4.1",
+ "@fleetbase/dev-engine": "^0.2.0",
"@fleetbase/ember-core": "^0.1.9",
"@fleetbase/ember-ui": "^0.2.8",
- "@fleetbase/storefront-engine": "^0.2.6",
- "@fleetbase/fleetops-engine": "^0.3.8",
"@fleetbase/fleetops-data": "^0.1.6",
- "@fleetbase/dev-engine": "^0.2.0",
+ "@fleetbase/fleetops-engine": "^0.3.8",
"@fleetbase/iam-engine": "^0.0.8",
"@fleetbase/leaflet-routing-machine": "^3.2.16",
- "@ember/legacy-built-in-components": "^0.4.1",
+ "@fleetbase/storefront-engine": "^0.2.6",
"@fortawesome/ember-fontawesome": "^0.4.1",
"ember-changeset": "^4.1.2",
"ember-changeset-validations": "^4.1.1",
@@ -87,6 +87,7 @@
"ember-data": "^4.12.5",
"ember-engines": "^0.8.23",
"ember-fetch": "^8.1.2",
+ "ember-gridstack": "^4.0.0",
"ember-leaflet": "^5.1.1",
"ember-load-initializers": "^2.1.2",
"ember-modifier": "^4.1.0",