@ditojs/admin 2.6.10 → 2.7.0
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.
- package/dist/dito-admin.es.js +221 -225
- package/dist/dito-admin.umd.js +5 -5
- package/package.json +4 -4
- package/src/DitoAdmin.js +6 -2
- package/src/components/DitoRoot.vue +2 -2
- package/src/utils/deprecate.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"not ie_mob > 0"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ditojs/ui": "^2.
|
|
37
|
-
"@ditojs/utils": "^2.
|
|
36
|
+
"@ditojs/ui": "^2.7.0",
|
|
37
|
+
"@ditojs/utils": "^2.7.0",
|
|
38
38
|
"@kyvg/vue3-notification": "^2.9.0",
|
|
39
39
|
"@lk77/vue3-color": "^3.0.6",
|
|
40
40
|
"@tiptap/core": "^2.0.3",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"vite": "^4.3.4"
|
|
84
84
|
},
|
|
85
85
|
"types": "types",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "874c68d5807ba97b67867f6b8d13f8fcb4990533",
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "vite build",
|
|
89
89
|
"watch": "yarn build --mode 'development' --watch",
|
package/src/DitoAdmin.js
CHANGED
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
merge,
|
|
8
8
|
hyphenate,
|
|
9
9
|
camelize,
|
|
10
|
-
defaultFormats
|
|
10
|
+
defaultFormats,
|
|
11
|
+
deprecate
|
|
11
12
|
} from '@ditojs/utils'
|
|
12
13
|
import * as components from './components/index.js'
|
|
13
14
|
import * as types from './types/index.js'
|
|
@@ -15,7 +16,6 @@ import DitoRoot from './components/DitoRoot.vue'
|
|
|
15
16
|
import DitoTypeComponent from './DitoTypeComponent.js'
|
|
16
17
|
import ResizeDirective from './directives/resize.js'
|
|
17
18
|
import { getResource } from './utils/resource.js'
|
|
18
|
-
import { deprecate } from './utils/deprecate.js'
|
|
19
19
|
import { formatQuery } from './utils/route.js'
|
|
20
20
|
import verbs from './verbs.js'
|
|
21
21
|
|
|
@@ -194,6 +194,10 @@ export default class DitoAdmin {
|
|
|
194
194
|
})
|
|
195
195
|
}))
|
|
196
196
|
|
|
197
|
+
// Prevent endless loops of error messages during render functions by
|
|
198
|
+
// setting a custom error handler.
|
|
199
|
+
app.config.errorHandler = console.error
|
|
200
|
+
|
|
197
201
|
app.use(VueNotifications, {
|
|
198
202
|
name: 'notify',
|
|
199
203
|
componentName: 'VueNotifications'
|
|
@@ -449,8 +449,8 @@ let dialogId = 0
|
|
|
449
449
|
function addRoutes(router, routes) {
|
|
450
450
|
const removers = []
|
|
451
451
|
for (const route of routes) {
|
|
452
|
-
const
|
|
453
|
-
removers.push(
|
|
452
|
+
const remove = router.addRoute(route)
|
|
453
|
+
removers.push(remove)
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
return () => {
|
package/src/utils/deprecate.js
DELETED