@live-change/balance-frontend 0.9.3 → 0.9.4

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 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: ENV_BRAND_NAME,
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
- " width=device-width, viewport-fit=cover" }
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
@@ -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
- const currentModuleDir = dirname(fileURLToPath(import.meta.url))
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",
3
+ "version": "0.9.4",
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.3",
39
- "@live-change/access-control-service": "^0.9.3",
40
- "@live-change/backup-service": "^0.9.3",
41
- "@live-change/blog-frontend": "^0.9.3",
42
- "@live-change/blog-service": "^0.9.3",
43
- "@live-change/cli": "^0.9.3",
44
- "@live-change/content-frontend": "^0.9.3",
45
- "@live-change/content-service": "^0.9.3",
46
- "@live-change/dao": "^0.9.3",
47
- "@live-change/dao-vue3": "^0.9.3",
48
- "@live-change/dao-websocket": "^0.9.3",
49
- "@live-change/db-client": "^0.9.3",
50
- "@live-change/email-service": "^0.9.3",
51
- "@live-change/framework": "^0.9.3",
52
- "@live-change/frontend-auto-form": "^0.9.3",
53
- "@live-change/frontend-base": "^0.9.3",
54
- "@live-change/geoip-service": "^0.9.3",
55
- "@live-change/image-frontend": "^0.9.3",
56
- "@live-change/locale-settings-service": "^0.9.3",
57
- "@live-change/password-authentication-service": "^0.9.3",
58
- "@live-change/prosemirror-service": "^0.9.3",
59
- "@live-change/secret-code-service": "^0.9.3",
60
- "@live-change/secret-link-service": "^0.9.3",
61
- "@live-change/session-service": "^0.9.3",
62
- "@live-change/task-service": "^0.9.3",
63
- "@live-change/upload-frontend": "^0.9.3",
64
- "@live-change/url-frontend": "^0.9.3",
65
- "@live-change/url-service": "^0.9.3",
66
- "@live-change/user-frontend": "^0.9.3",
67
- "@live-change/user-identification-service": "^0.9.3",
68
- "@live-change/user-service": "^0.9.3",
69
- "@live-change/vote-service": "^0.9.3",
70
- "@live-change/vue3-components": "^0.9.3",
71
- "@live-change/vue3-ssr": "^0.9.3",
72
- "@live-change/wysiwyg-frontend": "^0.9.3",
38
+ "@live-change/access-control-frontend": "^0.9.4",
39
+ "@live-change/access-control-service": "^0.9.4",
40
+ "@live-change/backup-service": "^0.9.4",
41
+ "@live-change/blog-frontend": "^0.9.4",
42
+ "@live-change/blog-service": "^0.9.4",
43
+ "@live-change/cli": "^0.9.4",
44
+ "@live-change/content-frontend": "^0.9.4",
45
+ "@live-change/content-service": "^0.9.4",
46
+ "@live-change/dao": "^0.9.4",
47
+ "@live-change/dao-vue3": "^0.9.4",
48
+ "@live-change/dao-websocket": "^0.9.4",
49
+ "@live-change/db-client": "^0.9.4",
50
+ "@live-change/email-service": "^0.9.4",
51
+ "@live-change/framework": "^0.9.4",
52
+ "@live-change/frontend-auto-form": "^0.9.4",
53
+ "@live-change/frontend-base": "^0.9.4",
54
+ "@live-change/geoip-service": "^0.9.4",
55
+ "@live-change/image-frontend": "^0.9.4",
56
+ "@live-change/locale-settings-service": "^0.9.4",
57
+ "@live-change/password-authentication-service": "^0.9.4",
58
+ "@live-change/prosemirror-service": "^0.9.4",
59
+ "@live-change/secret-code-service": "^0.9.4",
60
+ "@live-change/secret-link-service": "^0.9.4",
61
+ "@live-change/session-service": "^0.9.4",
62
+ "@live-change/task-service": "^0.9.4",
63
+ "@live-change/upload-frontend": "^0.9.4",
64
+ "@live-change/url-frontend": "^0.9.4",
65
+ "@live-change/url-service": "^0.9.4",
66
+ "@live-change/user-frontend": "^0.9.4",
67
+ "@live-change/user-identification-service": "^0.9.4",
68
+ "@live-change/user-service": "^0.9.4",
69
+ "@live-change/vote-service": "^0.9.4",
70
+ "@live-change/vue3-components": "^0.9.4",
71
+ "@live-change/vue3-ssr": "^0.9.4",
72
+ "@live-change/wysiwyg-frontend": "^0.9.4",
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.3",
94
+ "@live-change/codeceptjs-helper": "^0.9.4",
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": "79f98e67cb1a52a38ced5deb20b0d62d395313cb"
105
+ "gitHead": "98fd51a1a5fea3ff8adff3662ef1e4a00774eed6"
106
106
  }