@live-change/db-admin 0.5.9 → 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.
@@ -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>
@@ -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">
@@ -2,19 +2,21 @@
2
2
  export function routes(config = {}) {
3
3
  const { prefix = '/', route = (r) => r } = config
4
4
 
5
- return [
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: true
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: true
27
+ props: (route) => ({ ...route.params, dbApi })
26
28
  }),
27
29
 
28
30
  ]
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { routes as dbAdminRoutes } from "./front/src/router.js"
2
+
3
+ export { dbAdminRoutes }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/db-admin",
3
- "version": "0.5.9",
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.1",
21
- "@live-change/dao": "0.4.6",
22
- "@live-change/dao-vue3": "0.4.6",
23
- "@live-change/dao-websocket": "0.4.6",
24
- "@live-change/framework": "0.6.1",
25
- "@live-change/message-authentication-service": "0.2.28",
26
- "@live-change/secret-code-service": "0.2.28",
27
- "@live-change/secret-link-service": "0.2.28",
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.7",
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.5",
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.5",
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.0",
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": "3e27e47bddae99c97898a119b97a13745fb03f70"
71
+ "gitHead": "6236c001558f60998b0e5bce5e97e7ebb1f50e45"
72
72
  }