@live-change/balance-frontend 0.8.75 → 0.8.77

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.
@@ -44,7 +44,7 @@
44
44
  <InputText id="name" type="text" class="w-full"
45
45
  aria-describedby="email-help" :class="{ 'p-invalid': data.nameError }"
46
46
  v-model="data.name" />
47
- <small id="email-help" class="p-error">{{ data.nameError }}</small>
47
+ <small id="email-help" class="p-error">{{ t(`errors.${data.nameError}`) }}</small>
48
48
  </div>
49
49
  </div>
50
50
  <div class="col-12 md:col-6 py-1">
@@ -55,7 +55,7 @@
55
55
  <InputNumber id="name" type="text" class="w-full" :min="-1000000" :max="1000000" showButtons :step="1000"
56
56
  aria-describedby="email-help" :class="{ 'p-invalid': data.changeError }"
57
57
  v-model="data.change" />
58
- <small id="email-help" class="p-error">{{ data.changeError }}</small>
58
+ <small id="email-help" class="p-error">{{ t(`errors.${data.changeError}`) }}</small>
59
59
  </div>
60
60
  </div>
61
61
  <Button label="Start operation" icon="pi pi-plus" type="submit" />
@@ -72,9 +72,9 @@
72
72
  Name
73
73
  </label>
74
74
  <InputText id="name" type="text" class="w-full"
75
- aria-describedby="email-help" :class="{ 'p-invalid': data.nameError }"
75
+ aria-describedby="name-help" :class="{ 'p-invalid': data.nameError }"
76
76
  v-model="data.name" />
77
- <small id="email-help" class="p-error">{{ data.nameError }}</small>
77
+ <small v-if="data.nameError" id="name-help" class="p-error">{{ t(`errors.${data.nameError}`) }}</small>
78
78
  </div>
79
79
  </div>
80
80
  <div class="col-12 md:col-6 py-1">
@@ -83,9 +83,9 @@
83
83
  Change
84
84
  </label>
85
85
  <InputNumber id="name" type="text" class="w-full" :min="-1000000" :max="1000000" showButtons :step="1000"
86
- aria-describedby="email-help" :class="{ 'p-invalid': data.changeError }"
86
+ aria-describedby="change-help" :class="{ 'p-invalid': data.changeError }"
87
87
  v-model="data.change" />
88
- <small id="email-help" class="p-error">{{ data.changeError }}</small>
88
+ <small v-if="data.changeError" id="change-help" class="p-error">{{ t(`errors.${data.changeError}`) }}</small>
89
89
  </div>
90
90
  </div>
91
91
  <Button label="Do operation" icon="pi pi-plus" type="submit" />
@@ -140,6 +140,9 @@
140
140
  const path = usePath()
141
141
  const actions = useActions()
142
142
 
143
+ import { useI18n } from 'vue-i18n'
144
+ const { t } = useI18n()
145
+
143
146
  const balancePath = computed(() => path.balance.ownerOwnedBalance({
144
147
  ownerType: 'balanceTest_balance',
145
148
  owner: name.value
@@ -32,9 +32,9 @@
32
32
  Name
33
33
  </label>
34
34
  <InputText id="name" type="text" class="w-full"
35
- aria-describedby="email-help" :class="{ 'p-invalid': data.nameError }"
35
+ aria-describedby="name-help" :class="{ 'p-invalid': data.nameError }"
36
36
  v-model="data.name" />
37
- <small id="email-help" class="p-error">{{ data.nameError }}</small>
37
+ <small v-if="data.nameError" id="name-help" class="p-error">{{ t(`errors.${data.nameError}`) }}</small>
38
38
  </div>
39
39
  </div>
40
40
  <Button label="Add balance" icon="pi pi-plus" type="submit" />
@@ -56,6 +56,9 @@
56
56
  const path = usePath()
57
57
  const actions = useActions()
58
58
 
59
+ import { useI18n } from 'vue-i18n'
60
+ const { t } = useI18n()
61
+
59
62
  const allBalancesPath = computed(() => path.balanceTest.allBalances({}))
60
63
 
61
64
  const [allBalances] = await Promise.all([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/balance-frontend",
3
- "version": "0.8.75",
3
+ "version": "0.8.77",
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.8.75",
39
- "@live-change/access-control-service": "^0.8.75",
40
- "@live-change/backup-service": "^0.8.75",
41
- "@live-change/blog-frontend": "^0.8.75",
42
- "@live-change/blog-service": "^0.8.75",
43
- "@live-change/cli": "^0.8.75",
44
- "@live-change/content-frontend": "^0.8.75",
45
- "@live-change/content-service": "^0.8.75",
46
- "@live-change/dao": "^0.8.75",
47
- "@live-change/dao-vue3": "^0.8.75",
48
- "@live-change/dao-websocket": "^0.8.75",
49
- "@live-change/db-client": "^0.8.75",
50
- "@live-change/email-service": "^0.8.75",
51
- "@live-change/framework": "^0.8.75",
52
- "@live-change/frontend-auto-form": "^0.8.75",
53
- "@live-change/frontend-base": "^0.8.75",
54
- "@live-change/geoip-service": "^0.8.75",
55
- "@live-change/image-frontend": "^0.8.75",
56
- "@live-change/locale-settings-service": "^0.8.75",
57
- "@live-change/password-authentication-service": "^0.8.75",
58
- "@live-change/prosemirror-service": "^0.8.75",
59
- "@live-change/secret-code-service": "^0.8.75",
60
- "@live-change/secret-link-service": "^0.8.75",
61
- "@live-change/session-service": "^0.8.75",
62
- "@live-change/task-service": "^0.8.75",
63
- "@live-change/upload-frontend": "^0.8.75",
64
- "@live-change/url-frontend": "^0.8.75",
65
- "@live-change/url-service": "^0.8.75",
66
- "@live-change/user-frontend": "^0.8.75",
67
- "@live-change/user-identification-service": "^0.8.75",
68
- "@live-change/user-service": "^0.8.75",
69
- "@live-change/vote-service": "^0.8.75",
70
- "@live-change/vue3-components": "^0.8.75",
71
- "@live-change/vue3-ssr": "^0.8.75",
72
- "@live-change/wysiwyg-frontend": "^0.8.75",
38
+ "@live-change/access-control-frontend": "^0.8.77",
39
+ "@live-change/access-control-service": "^0.8.77",
40
+ "@live-change/backup-service": "^0.8.77",
41
+ "@live-change/blog-frontend": "^0.8.77",
42
+ "@live-change/blog-service": "^0.8.77",
43
+ "@live-change/cli": "^0.8.77",
44
+ "@live-change/content-frontend": "^0.8.77",
45
+ "@live-change/content-service": "^0.8.77",
46
+ "@live-change/dao": "^0.8.77",
47
+ "@live-change/dao-vue3": "^0.8.77",
48
+ "@live-change/dao-websocket": "^0.8.77",
49
+ "@live-change/db-client": "^0.8.77",
50
+ "@live-change/email-service": "^0.8.77",
51
+ "@live-change/framework": "^0.8.77",
52
+ "@live-change/frontend-auto-form": "^0.8.77",
53
+ "@live-change/frontend-base": "^0.8.77",
54
+ "@live-change/geoip-service": "^0.8.77",
55
+ "@live-change/image-frontend": "^0.8.77",
56
+ "@live-change/locale-settings-service": "^0.8.77",
57
+ "@live-change/password-authentication-service": "^0.8.77",
58
+ "@live-change/prosemirror-service": "^0.8.77",
59
+ "@live-change/secret-code-service": "^0.8.77",
60
+ "@live-change/secret-link-service": "^0.8.77",
61
+ "@live-change/session-service": "^0.8.77",
62
+ "@live-change/task-service": "^0.8.77",
63
+ "@live-change/upload-frontend": "^0.8.77",
64
+ "@live-change/url-frontend": "^0.8.77",
65
+ "@live-change/url-service": "^0.8.77",
66
+ "@live-change/user-frontend": "^0.8.77",
67
+ "@live-change/user-identification-service": "^0.8.77",
68
+ "@live-change/user-service": "^0.8.77",
69
+ "@live-change/vote-service": "^0.8.77",
70
+ "@live-change/vue3-components": "^0.8.77",
71
+ "@live-change/vue3-ssr": "^0.8.77",
72
+ "@live-change/wysiwyg-frontend": "^0.8.77",
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.8.75",
94
+ "@live-change/codeceptjs-helper": "^0.8.77",
95
95
  "codeceptjs": "^3.6.5",
96
96
  "generate-password": "1.7.1",
97
97
  "playwright": "^1.41.2",
@@ -102,5 +102,5 @@
102
102
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
103
103
  "license": "ISC",
104
104
  "description": "",
105
- "gitHead": "9380bbf47a2a9087840cc71afe5b3eace66fa6ab"
105
+ "gitHead": "9efe599ccee5a7011c934efb91666f0716e9af05"
106
106
  }