w-web-perm 1.0.26 → 1.0.28
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/index.tmp +2 -9
- package/dist/js/app-legacy.5f39a4e2.js +2 -0
- package/dist/js/app-legacy.5f39a4e2.js.map +1 -0
- package/dist/js/app.5f39a4e2.js +2 -0
- package/dist/js/app.5f39a4e2.js.map +1 -0
- package/dist/w-web-perm.umd.js +2 -2
- package/dist/w-web-perm.umd.js.map +1 -1
- package/docs/WWebPerm.html +1 -1
- package/docs/WWebPerm.mjs.html +29 -9
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/public/index.html +1 -8
- package/server/WWebPerm.mjs +28 -8
- package/src/App.vue +16 -5
- package/src/components/Layout.vue +76 -32
- package/src/components/LayoutContentGrups.vue +12 -2
- package/src/components/LayoutContentPemis.vue +12 -2
- package/src/components/LayoutContentTargets.vue +12 -2
- package/src/components/LayoutContentUsers.vue +15 -0
- package/src/components/LayoutState.vue +20 -8
- package/src/main.js +5 -10
- package/src/plugins/mLang.mjs +746 -0
- package/src/plugins/mUI.mjs +73 -20
- package/src/store/mutations.mjs +3 -723
- package/srv.mjs +4 -0
- package/tableTags-web-perm.json +1 -1
- package/dist/js/app-legacy.b0850281.js +0 -2
- package/dist/js/app-legacy.b0850281.js.map +0 -1
- package/dist/js/app.db01fef5.js +0 -2
- package/dist/js/app.db01fef5.js.map +0 -1
- package/src/plugins/mDataSupport.mjs +0 -23
package/src/main.js
CHANGED
|
@@ -9,7 +9,6 @@ import App from './App.vue'
|
|
|
9
9
|
import store from './store/index.mjs'
|
|
10
10
|
import ui from './plugins/mUI.mjs'
|
|
11
11
|
import mDataSelectorSchema from './plugins/mDataSelectorSchema.mjs'
|
|
12
|
-
// import mDataSupport from './plugins/mDataSupport.mjs'
|
|
13
12
|
import * as s from './plugins/mShare.mjs'
|
|
14
13
|
import ds from './schema/index.mjs'
|
|
15
14
|
// console.log('ds', ds)
|
|
@@ -30,15 +29,11 @@ Vue.prototype.$alert = function() {
|
|
|
30
29
|
//dssm
|
|
31
30
|
let dssm = mDataSelectorSchema(ds)
|
|
32
31
|
|
|
33
|
-
// //dspt
|
|
34
|
-
// let dspt = mDataSupport(Vue.prototype)
|
|
35
|
-
|
|
36
32
|
//prototype
|
|
37
33
|
Vue.prototype.$ui = ui
|
|
38
34
|
Vue.prototype.$t = ui.getKpText
|
|
39
35
|
Vue.prototype.$s = s
|
|
40
36
|
Vue.prototype.$dssm = dssm
|
|
41
|
-
// Vue.prototype.$dspt = dspt
|
|
42
37
|
Vue.prototype.$ds = ds
|
|
43
38
|
Vue.prototype.$dg = {}
|
|
44
39
|
|
|
@@ -61,20 +56,20 @@ WServHapiClient({
|
|
|
61
56
|
return token
|
|
62
57
|
},
|
|
63
58
|
getServerMethods: (_fapi) => {
|
|
64
|
-
console.log('$fapi', _fapi)
|
|
59
|
+
// console.log('$fapi', _fapi)
|
|
65
60
|
Vue.prototype.$fapi = _fapi
|
|
66
61
|
_fapi.getWebInfor() //已有fapi時優先取得web資訊
|
|
67
62
|
.then((wi) => {
|
|
68
|
-
console.log('$fapi getWebInfor', wi)
|
|
63
|
+
// console.log('$fapi getWebInfor', wi)
|
|
69
64
|
Vue.prototype.$store.commit(Vue.prototype.$store.types.UpdateWebInfor, wi)
|
|
70
|
-
ui.setLang() //因更新webInfor得要重刷語系才能依照語言取得顯示文字
|
|
65
|
+
ui.setLang(null, 'get webInfor') //因更新webInfor可取得webName與webDescription, 得要重刷語系才能依照語言取得顯示文字
|
|
71
66
|
})
|
|
72
67
|
.catch((err) => {
|
|
73
68
|
console.log(err)
|
|
74
69
|
})
|
|
75
70
|
},
|
|
76
71
|
recvData: (r) => {
|
|
77
|
-
console.log('sync data', r.tableName, r.data)
|
|
72
|
+
// console.log('sync data', r.tableName, r.data)
|
|
78
73
|
Vue.prototype.$store.commit(Vue.prototype.$store.types.UpdateTableData, r)
|
|
79
74
|
},
|
|
80
75
|
getAfterUpdateTableTags: (r) => {
|
|
@@ -83,7 +78,7 @@ WServHapiClient({
|
|
|
83
78
|
return
|
|
84
79
|
}
|
|
85
80
|
bFirstSync = true
|
|
86
|
-
console.log('first-sync')
|
|
81
|
+
// console.log('first-sync')
|
|
87
82
|
Vue.prototype.$store.commit(Vue.prototype.$store.types.UpdateSyncState, true)
|
|
88
83
|
},
|
|
89
84
|
})
|