@mongoosejs/studio 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2505,7 +2505,7 @@ module.exports = "<div class=\"document-details\">\n <div v-for=\"path in schem
2505
2505
  /***/ ((module) => {
2506
2506
 
2507
2507
  "use strict";
2508
- module.exports = "<div>\n <h2>\n Are you sure you want to save the following changes?\n </h2>\n <pre><code ref=\"code\" class=\"language-javascript\" v-text=\"displayValue\"></code></pre>\n <div class=\"flex gap-2 mt-2\">\n <async-button\n class=\"rounded-md bg-green-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600\"\n @click=\"startSave\">\n Confirm\n </async-button>\n <button \n class=\"rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-black shadow-sm hover:bg-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-300\"\n @click=\"closeConfirm\">\n Cancel\n </button>\n </div>\n</div>\n";
2508
+ module.exports = "<div>\n <h2>\n Are you sure you want to save the following changes?\n </h2>\n <pre class=\"max-h-[50vh] overflow-auto\"><code ref=\"code\" class=\"language-javascript\" v-text=\"displayValue\"></code></pre>\n <div class=\"flex gap-2 mt-2\">\n <async-button\n class=\"rounded-md bg-green-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600\"\n @click=\"startSave\">\n Confirm\n </async-button>\n <button \n class=\"rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-black shadow-sm hover:bg-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-300\"\n @click=\"closeConfirm\">\n Cancel\n </button>\n </div>\n</div>";
2509
2509
 
2510
2510
  /***/ }),
2511
2511
 
@@ -726,6 +726,10 @@ video {
726
726
  height: 100%;
727
727
  }
728
728
 
729
+ .max-h-\[50vh\] {
730
+ max-height: 50vh;
731
+ }
732
+
729
733
  .w-5 {
730
734
  width: 1.25rem;
731
735
  }
@@ -824,6 +828,10 @@ video {
824
828
  border-color: rgb(209 213 219 / var(--tw-divide-opacity));
825
829
  }
826
830
 
831
+ .overflow-auto {
832
+ overflow: auto;
833
+ }
834
+
827
835
  .overflow-x-auto {
828
836
  overflow-x: auto;
829
837
  }
@@ -65,10 +65,10 @@ if (config__isLambda) {
65
65
  return client.post('/Dashboard/createDashboard', params).then(res => res.data);
66
66
  },
67
67
  getDashboard: function getDashboard(params) {
68
- return client.get('/Dashboard/getDashboard', params).then(res => res.data);
68
+ return client.put('/Dashboard/getDashboard', params).then(res => res.data);
69
69
  },
70
70
  getDashboards: function getDashboards(params) {
71
- return client.get('/Dashboard/getDashboards', params).then(res => res.data);
71
+ return client.put('/Dashboard/getDashboards', params).then(res => res.data);
72
72
  },
73
73
  updateDashboard: function updateDashboard(params) {
74
74
  return client.post('/Dashboard/updateDashboard', params).then(res => res.data);
@@ -24,7 +24,7 @@ module.exports = app => app.component('dashboard', {
24
24
  },
25
25
  mounted: async function() {
26
26
  const dashboardId = this.$route.query.dashboardId;
27
- const { dashboard, result } = await api.Dashboard.getDashboard({ params: { dashboardId: dashboardId, evaluate: true } });
27
+ const { dashboard, result } = await api.Dashboard.getDashboard({ dashboardId: dashboardId, evaluate: true });
28
28
  if (!dashboard) {
29
29
  return;
30
30
  }
@@ -2,7 +2,7 @@
2
2
  <h2>
3
3
  Are you sure you want to save the following changes?
4
4
  </h2>
5
- <pre><code ref="code" class="language-javascript" v-text="displayValue"></code></pre>
5
+ <pre class="max-h-[50vh] overflow-auto"><code ref="code" class="language-javascript" v-text="displayValue"></code></pre>
6
6
  <div class="flex gap-2 mt-2">
7
7
  <async-button
8
8
  class="rounded-md bg-green-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600"
@@ -15,4 +15,4 @@
15
15
  Cancel
16
16
  </button>
17
17
  </div>
18
- </div>
18
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongoosejs/studio",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "dependencies": {
5
5
  "archetype": "0.13.0",
6
6
  "csv-stringify": "6.3.0",
@@ -2,7 +2,7 @@
2
2
 
3
3
  module.exports = {
4
4
  mode: 'jit',
5
- content: ['./frontend/src/**/*.html', './frontend/src/**/*.js'],
5
+ content: ['./frontend/src/**/*.html', './frontend/src/**/*.js', './frontend/src/**/**/*.html', './frontend/src/**/**/*.js'],
6
6
  corePlugins: {
7
7
  container: true
8
8
  },