@live-change/balance-frontend 0.9.3 → 0.9.5
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/App.vue +6 -5
- package/front/vite.config.ts +2 -8
- package/package.json +38 -38
package/front/src/App.vue
CHANGED
|
@@ -23,13 +23,17 @@
|
|
|
23
23
|
import { useI18n } from 'vue-i18n'
|
|
24
24
|
const i18n = useI18n()
|
|
25
25
|
|
|
26
|
+
import { client as useClient, useApi } from '@live-change/vue3-ssr'
|
|
27
|
+
const api = useApi()
|
|
28
|
+
const client = useClient()
|
|
29
|
+
|
|
26
30
|
useHead(computed(() => ({
|
|
27
|
-
title:
|
|
31
|
+
title: api.metadata.config.value.brandName,
|
|
28
32
|
meta: [
|
|
29
33
|
{ charset: 'utf-8' },
|
|
30
34
|
{ name: 'viewport',
|
|
31
35
|
content: "user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1," +
|
|
32
|
-
|
|
36
|
+
" width=device-width, viewport-fit=cover" }
|
|
33
37
|
],
|
|
34
38
|
htmlAttrs: {
|
|
35
39
|
lang: i18n.locale.value,
|
|
@@ -38,13 +42,10 @@
|
|
|
38
42
|
})))
|
|
39
43
|
|
|
40
44
|
import { watch } from 'vue'
|
|
41
|
-
import { client as useClient, useApi } from '@live-change/vue3-ssr'
|
|
42
|
-
const client = useClient()
|
|
43
45
|
watch(client, (newClient, oldClient) => {
|
|
44
46
|
console.log("WATCH CLIENT", oldClient, '=>', newClient)
|
|
45
47
|
})
|
|
46
48
|
|
|
47
|
-
const api = useApi()
|
|
48
49
|
import emailValidator from "@live-change/email-service/clientEmailValidator.js"
|
|
49
50
|
import passwordValidator from "@live-change/password-authentication-service/clientPasswordValidator.js"
|
|
50
51
|
api.validators.email = emailValidator
|
package/front/vite.config.ts
CHANGED
|
@@ -4,30 +4,24 @@ import Pages from 'vite-plugin-pages'
|
|
|
4
4
|
import { fileURLToPath } from 'url'
|
|
5
5
|
import { dirname, join } from 'path'
|
|
6
6
|
import { accessSync, readFileSync } from 'fs'
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
const packageJsonPath = dirname(fileURLToPath(import.meta.url))
|
|
9
9
|
.split('/').map((part, i, arr) =>
|
|
10
10
|
join(arr.slice(0, arr.length - i).join('/'), 'package.json')
|
|
11
11
|
).find(p => { try { accessSync(p); return true } catch(e) { return false }})
|
|
12
12
|
const packageJson = packageJsonPath ? JSON.parse(readFileSync(packageJsonPath, 'utf-8')) : {}
|
|
13
|
-
const name = packageJson.name ?? "Example"
|
|
14
13
|
const version = process.env.VERSION ?? packageJson.version ?? 'unknown'
|
|
15
|
-
const homepage = process.env.BASE_HREF ?? packageJson.homepage
|
|
16
|
-
const domain = (homepage && homepage.match(/https\:\/\/([^\/]+)/)?.[1]) || 'example.com'
|
|
17
14
|
|
|
18
15
|
// @ts-ignore
|
|
19
16
|
import baseViteConfig from '@live-change/frontend-base/vite-config.js'
|
|
20
17
|
|
|
21
18
|
export default defineConfig(async ({ command, mode }) => {
|
|
22
|
-
const baseConfig = (await baseViteConfig({ command, mode }))
|
|
19
|
+
const baseConfig = (await baseViteConfig({ command, mode, version }))
|
|
23
20
|
return {
|
|
24
21
|
...baseConfig,
|
|
25
22
|
|
|
26
23
|
define: {
|
|
27
24
|
...baseConfig.define,
|
|
28
|
-
ENV_VERSION: JSON.stringify(version),
|
|
29
|
-
ENV_BRAND_NAME: JSON.stringify(name[0].toUpperCase() + name.slice(1)),
|
|
30
|
-
ENV_BRAND_DOMAIN: JSON.stringify(domain),
|
|
31
25
|
},
|
|
32
26
|
|
|
33
27
|
plugins: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/balance-frontend",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
|
|
@@ -35,41 +35,41 @@
|
|
|
35
35
|
"@codemirror/language": "6.10.1",
|
|
36
36
|
"@dotenvx/dotenvx": "0.27.0",
|
|
37
37
|
"@fortawesome/fontawesome-free": "^6.5.2",
|
|
38
|
-
"@live-change/access-control-frontend": "^0.9.
|
|
39
|
-
"@live-change/access-control-service": "^0.9.
|
|
40
|
-
"@live-change/backup-service": "^0.9.
|
|
41
|
-
"@live-change/blog-frontend": "^0.9.
|
|
42
|
-
"@live-change/blog-service": "^0.9.
|
|
43
|
-
"@live-change/cli": "^0.9.
|
|
44
|
-
"@live-change/content-frontend": "^0.9.
|
|
45
|
-
"@live-change/content-service": "^0.9.
|
|
46
|
-
"@live-change/dao": "^0.9.
|
|
47
|
-
"@live-change/dao-vue3": "^0.9.
|
|
48
|
-
"@live-change/dao-websocket": "^0.9.
|
|
49
|
-
"@live-change/db-client": "^0.9.
|
|
50
|
-
"@live-change/email-service": "^0.9.
|
|
51
|
-
"@live-change/framework": "^0.9.
|
|
52
|
-
"@live-change/frontend-auto-form": "^0.9.
|
|
53
|
-
"@live-change/frontend-base": "^0.9.
|
|
54
|
-
"@live-change/geoip-service": "^0.9.
|
|
55
|
-
"@live-change/image-frontend": "^0.9.
|
|
56
|
-
"@live-change/locale-settings-service": "^0.9.
|
|
57
|
-
"@live-change/password-authentication-service": "^0.9.
|
|
58
|
-
"@live-change/prosemirror-service": "^0.9.
|
|
59
|
-
"@live-change/secret-code-service": "^0.9.
|
|
60
|
-
"@live-change/secret-link-service": "^0.9.
|
|
61
|
-
"@live-change/session-service": "^0.9.
|
|
62
|
-
"@live-change/task-service": "^0.9.
|
|
63
|
-
"@live-change/upload-frontend": "^0.9.
|
|
64
|
-
"@live-change/url-frontend": "^0.9.
|
|
65
|
-
"@live-change/url-service": "^0.9.
|
|
66
|
-
"@live-change/user-frontend": "^0.9.
|
|
67
|
-
"@live-change/user-identification-service": "^0.9.
|
|
68
|
-
"@live-change/user-service": "^0.9.
|
|
69
|
-
"@live-change/vote-service": "^0.9.
|
|
70
|
-
"@live-change/vue3-components": "^0.9.
|
|
71
|
-
"@live-change/vue3-ssr": "^0.9.
|
|
72
|
-
"@live-change/wysiwyg-frontend": "^0.9.
|
|
38
|
+
"@live-change/access-control-frontend": "^0.9.5",
|
|
39
|
+
"@live-change/access-control-service": "^0.9.5",
|
|
40
|
+
"@live-change/backup-service": "^0.9.5",
|
|
41
|
+
"@live-change/blog-frontend": "^0.9.5",
|
|
42
|
+
"@live-change/blog-service": "^0.9.5",
|
|
43
|
+
"@live-change/cli": "^0.9.5",
|
|
44
|
+
"@live-change/content-frontend": "^0.9.5",
|
|
45
|
+
"@live-change/content-service": "^0.9.5",
|
|
46
|
+
"@live-change/dao": "^0.9.5",
|
|
47
|
+
"@live-change/dao-vue3": "^0.9.5",
|
|
48
|
+
"@live-change/dao-websocket": "^0.9.5",
|
|
49
|
+
"@live-change/db-client": "^0.9.5",
|
|
50
|
+
"@live-change/email-service": "^0.9.5",
|
|
51
|
+
"@live-change/framework": "^0.9.5",
|
|
52
|
+
"@live-change/frontend-auto-form": "^0.9.5",
|
|
53
|
+
"@live-change/frontend-base": "^0.9.5",
|
|
54
|
+
"@live-change/geoip-service": "^0.9.5",
|
|
55
|
+
"@live-change/image-frontend": "^0.9.5",
|
|
56
|
+
"@live-change/locale-settings-service": "^0.9.5",
|
|
57
|
+
"@live-change/password-authentication-service": "^0.9.5",
|
|
58
|
+
"@live-change/prosemirror-service": "^0.9.5",
|
|
59
|
+
"@live-change/secret-code-service": "^0.9.5",
|
|
60
|
+
"@live-change/secret-link-service": "^0.9.5",
|
|
61
|
+
"@live-change/session-service": "^0.9.5",
|
|
62
|
+
"@live-change/task-service": "^0.9.5",
|
|
63
|
+
"@live-change/upload-frontend": "^0.9.5",
|
|
64
|
+
"@live-change/url-frontend": "^0.9.5",
|
|
65
|
+
"@live-change/url-service": "^0.9.5",
|
|
66
|
+
"@live-change/user-frontend": "^0.9.5",
|
|
67
|
+
"@live-change/user-identification-service": "^0.9.5",
|
|
68
|
+
"@live-change/user-service": "^0.9.5",
|
|
69
|
+
"@live-change/vote-service": "^0.9.5",
|
|
70
|
+
"@live-change/vue3-components": "^0.9.5",
|
|
71
|
+
"@live-change/vue3-ssr": "^0.9.5",
|
|
72
|
+
"@live-change/wysiwyg-frontend": "^0.9.5",
|
|
73
73
|
"@vueuse/core": "^10.11.0",
|
|
74
74
|
"codeceptjs-assert": "^0.0.5",
|
|
75
75
|
"compression": "^1.7.4",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"vue3-scroll-border": "0.1.6"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@live-change/codeceptjs-helper": "^0.9.
|
|
94
|
+
"@live-change/codeceptjs-helper": "^0.9.5",
|
|
95
95
|
"codeceptjs": "^3.6.5",
|
|
96
96
|
"generate-password": "1.7.1",
|
|
97
97
|
"playwright": "1.48.1",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
103
103
|
"license": "ISC",
|
|
104
104
|
"description": "",
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "59f1d66de3a64b751308593e282e8635c0ecab7e"
|
|
106
106
|
}
|