@live-change/db-admin 0.5.7 → 0.5.10
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/front/src/Database.vue +1 -1
- package/front/src/Databases.vue +1 -1
- package/front/src/main.js +0 -6
- package/front/src/routes.js +6 -4
- package/front/vite.config.js +0 -2
- package/index.js +3 -0
- package/package.json +14 -14
package/front/src/Database.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="surface-card p-4 shadow-2 border-round w-full">
|
|
3
3
|
<div class="text-center mb-3">
|
|
4
|
-
<div class="text-900 text-3xl font-medium mb-3">Database "{{ dbName }}"</div>
|
|
4
|
+
<div class="text-900 text-3xl font-medium mb-3">Database "{{ dbName }}" @ {{ dbApi }}</div>
|
|
5
5
|
</div>
|
|
6
6
|
<div class="text-center mb-3">
|
|
7
7
|
<div v-if="tables.length > 0" class="text-900 text-2xl font-medium mb-3">Tables</div>
|
package/front/src/Databases.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<Toast v-if="isMounted"></Toast>
|
|
5
5
|
|
|
6
6
|
<div class="text-center mb-5">
|
|
7
|
-
<div class="text-900 text-3xl font-medium mb-3">Databases</div>
|
|
7
|
+
<div class="text-900 text-3xl font-medium mb-3">Databases @ {{ dbApi }}</div>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<DataTable :value="databases" responsiveLayout="scroll">
|
package/front/src/main.js
CHANGED
|
@@ -17,16 +17,10 @@ import App from './App.vue'
|
|
|
17
17
|
import Page from './Page.vue'
|
|
18
18
|
import { createRouter } from './router'
|
|
19
19
|
|
|
20
|
-
import emailValidator from "@live-change/email-service/clientEmailValidator.js"
|
|
21
|
-
import passwordValidator from "@live-change/password-authentication-service/clientPasswordValidator.js"
|
|
22
|
-
|
|
23
20
|
// SSR requires a fresh app instance per request, therefore we export a function
|
|
24
21
|
// that creates a fresh app instance. If using Vuex, we'd also be creating a
|
|
25
22
|
// fresh store here.
|
|
26
23
|
export function createApp(api) {
|
|
27
|
-
api.validators.email = emailValidator
|
|
28
|
-
api.validators.password = passwordValidator
|
|
29
|
-
|
|
30
24
|
const app = createSSRApp(App)
|
|
31
25
|
app.config.devtools = true
|
|
32
26
|
|
package/front/src/routes.js
CHANGED
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
export function routes(config = {}) {
|
|
3
3
|
const { prefix = '/', route = (r) => r } = config
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const { dbApi = 'serverDatabase' } = config
|
|
6
6
|
|
|
7
|
+
return [
|
|
7
8
|
route({
|
|
8
9
|
path: prefix,
|
|
9
10
|
name: 'db:databases',
|
|
10
|
-
component: () => import("./Databases.vue")
|
|
11
|
+
component: () => import("./Databases.vue"),
|
|
12
|
+
props: (route) => ({ ...route.params, dbApi })
|
|
11
13
|
}),
|
|
12
14
|
|
|
13
15
|
route({
|
|
14
16
|
path: prefix+'db/:dbName',
|
|
15
17
|
name: 'db:database',
|
|
16
18
|
component: () => import("./Database.vue"),
|
|
17
|
-
props:
|
|
19
|
+
props: (route) => ({ ...route.params, dbApi })
|
|
18
20
|
}),
|
|
19
21
|
|
|
20
22
|
route({
|
|
@@ -22,7 +24,7 @@ export function routes(config = {}) {
|
|
|
22
24
|
name: 'db:data',
|
|
23
25
|
meta: { pageType: 'wide' },
|
|
24
26
|
component: () => import("./Data.vue"),
|
|
25
|
-
props:
|
|
27
|
+
props: (route) => ({ ...route.params, dbApi })
|
|
26
28
|
}),
|
|
27
29
|
|
|
28
30
|
]
|
package/front/vite.config.js
CHANGED
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-admin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --initScript ./init.js --dbAccess",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"debug": "node --inspect-brk server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@live-change/cli": "0.6.
|
|
21
|
-
"@live-change/dao": "0.4.
|
|
22
|
-
"@live-change/dao-vue3": "0.4.
|
|
23
|
-
"@live-change/dao-websocket": "0.4.
|
|
24
|
-
"@live-change/framework": "0.6.
|
|
25
|
-
"@live-change/message-authentication-service": "0.2.
|
|
26
|
-
"@live-change/secret-code-service": "0.2.
|
|
27
|
-
"@live-change/secret-link-service": "0.2.
|
|
20
|
+
"@live-change/cli": "0.6.3",
|
|
21
|
+
"@live-change/dao": "0.4.10",
|
|
22
|
+
"@live-change/dao-vue3": "0.4.11",
|
|
23
|
+
"@live-change/dao-websocket": "0.4.10",
|
|
24
|
+
"@live-change/framework": "0.6.4",
|
|
25
|
+
"@live-change/message-authentication-service": "0.2.29",
|
|
26
|
+
"@live-change/secret-code-service": "0.2.29",
|
|
27
|
+
"@live-change/secret-link-service": "0.2.29",
|
|
28
28
|
"@live-change/vue3-components": "0.2.8",
|
|
29
|
-
"@live-change/vue3-ssr": "0.2.
|
|
29
|
+
"@live-change/vue3-ssr": "0.2.9",
|
|
30
30
|
"@vitejs/plugin-vue": "^2.3.1",
|
|
31
31
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
32
32
|
"@vue/compiler-sfc": "^3.2.33",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"javascript-stringify": "^2.1.0",
|
|
39
39
|
"primeflex": "^3.1.3",
|
|
40
40
|
"primeicons": "^5.0.0",
|
|
41
|
-
"primevue": "^3.12.
|
|
41
|
+
"primevue": "^3.12.6",
|
|
42
42
|
"prism-es6": "^1.2.0",
|
|
43
43
|
"prismjs": "^1.28.0",
|
|
44
44
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"serialize-javascript": "^6.0.0",
|
|
47
47
|
"serve-static": "^1.15.0",
|
|
48
48
|
"v-shared-element": "3.1.0",
|
|
49
|
-
"vite": "^2.9.
|
|
49
|
+
"vite": "^2.9.6",
|
|
50
50
|
"vite-plugin-compression": "0.5.1",
|
|
51
51
|
"vite-plugin-vue-images": "^0.6.1",
|
|
52
52
|
"vue": "^3.2.33",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@live-change/codeceptjs-helper": "0.6.0",
|
|
60
60
|
"@wdio/selenium-standalone-service": "^7.19.5",
|
|
61
|
-
"codeceptjs": "^3.3.
|
|
61
|
+
"codeceptjs": "^3.3.1",
|
|
62
62
|
"generate-password": "1.7.0",
|
|
63
63
|
"playwright": "^1.21.1",
|
|
64
64
|
"random-profile-generator": "^2.3.0",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"author": "",
|
|
69
69
|
"license": "ISC",
|
|
70
70
|
"description": "",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "6236c001558f60998b0e5bce5e97e7ebb1f50e45"
|
|
72
72
|
}
|