@mongoosejs/studio 0.0.15 → 0.0.16
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.
|
Binary file
|
package/frontend/src/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const vanillatoasts = require('vanillatoasts');
|
|
4
|
+
|
|
3
5
|
const app = Vue.createApp({
|
|
4
6
|
template: '<app-component />'
|
|
5
7
|
});
|
|
@@ -31,7 +33,15 @@ app.component('app-component', {
|
|
|
31
33
|
<router-view :key="$route.fullPath" />
|
|
32
34
|
</div>
|
|
33
35
|
</div>
|
|
34
|
-
|
|
36
|
+
`,
|
|
37
|
+
errorCaptured(err) {
|
|
38
|
+
vanillatoasts.create({
|
|
39
|
+
title: `Error: ${err.message}`,
|
|
40
|
+
icon: 'images/failure.jpg',
|
|
41
|
+
timeout: 10000,
|
|
42
|
+
positionClass: 'bottomRight'
|
|
43
|
+
});
|
|
44
|
+
}
|
|
35
45
|
});
|
|
36
46
|
|
|
37
47
|
const routes = require('./routes');
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
const api = require('../api');
|
|
4
4
|
const template = require('./models.html');
|
|
5
|
-
const EJSON = require('ejson');
|
|
6
5
|
const mpath = require('mpath');
|
|
6
|
+
const { BSON, EJSON } = require('bson');
|
|
7
|
+
|
|
8
|
+
const ObjectId = new Proxy(BSON.ObjectId, {
|
|
9
|
+
apply (target, thisArg, argumentsList) {
|
|
10
|
+
return new target(...argumentsList);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
7
13
|
|
|
8
14
|
const appendCSS = require('../appendCSS');
|
|
9
15
|
|
|
@@ -240,4 +246,4 @@ module.exports = app => app.component('models', {
|
|
|
240
246
|
this.edittingDoc = null;
|
|
241
247
|
}
|
|
242
248
|
}
|
|
243
|
-
});
|
|
249
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongoosejs/studio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"archetype": "0.13.0",
|
|
6
6
|
"csv-stringify": "6.3.0",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"vanillatoasts": "^1.6.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
+
"bson": "^5.5.1",
|
|
13
14
|
"express": "4.x",
|
|
14
15
|
"mongoose": "7.x || 8.0.0-rc0 || 8.x"
|
|
15
16
|
},
|