@live-change/url-frontend 0.8.75 → 0.8.76
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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
aria-describedby="title-help" :class="{ 'p-invalid': data.titleError }"
|
|
13
13
|
placeholder="enter title"
|
|
14
14
|
v-model="data.title" />
|
|
15
|
-
<small id="title-help" class="p-error">{{ data.titleError }}</small>
|
|
15
|
+
<small v-if="data.titleError" id="title-help" class="p-error">{{ t(`errors.${data.titleError}`) }}</small>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="p-field mb-3">
|
|
18
18
|
<label for="path" class="block text-900 font-medium mb-2">
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
aria-describedby="path-help" :class="{ 'p-invalid': data.pathError }"
|
|
23
23
|
placeholder="or enter path"
|
|
24
24
|
v-model="data.path" />
|
|
25
|
-
<small id="path-help" class="p-error">{{ data.pathError }}</small>
|
|
25
|
+
<small v-if="data.pathError" id="path-help" class="p-error">{{ t(`errors.${data.pathError}`) }}</small>
|
|
26
26
|
</div>
|
|
27
27
|
<div class="p-field mb-3">
|
|
28
28
|
<label for="maxLength" class="block text-900 font-medium mb-2">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
:step="1" decrementButtonClass="p-button-danger" incrementButtonClass="p-button-success"
|
|
34
34
|
incrementButtonIcon="pi pi-plus" decrementButtonIcon="pi pi-minus"
|
|
35
35
|
mode="decimal" :useGrouping="false" :class="{ 'p-invalid': data.maxLengthError }" />
|
|
36
|
-
<small id="maxLength-help" class="p-error">{{ data.maxLengthError }}</small>
|
|
36
|
+
<small v-if="data.maxLengthError" id="maxLength-help" class="p-error">{{ t(`errors.${data.maxLengthError}`) }}</small>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<div class="p-field mb-3">
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
aria-describedby="charset-help" :class="{ 'p-invalid': data.charsetError }"
|
|
45
45
|
placeholder="select charset"
|
|
46
46
|
v-model="data.charset" :options="charsets" optionLabel="label" optionValue="value" />
|
|
47
|
-
<small id="charset-help" class="p-error">{{ data.charsetError }}</small>
|
|
47
|
+
<small v-if="data.charsetError" id="charset-help" class="p-error">{{ t(`errors.${data.charsetError}`) }}</small>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
50
|
<div class="p-field mb-3">
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
aria-describedby="domain-help" :class="{ 'p-invalid': data.domainError }"
|
|
56
56
|
placeholder="any"
|
|
57
57
|
v-model="data.domain" />
|
|
58
|
-
<small id="domain-help" class="p-error">{{ data.domainError }}</small>
|
|
58
|
+
<small v-if="data.domainError" id="domain-help" class="p-error">{{ t(`errors.${data.domainError}`) }}</small>
|
|
59
59
|
</div>
|
|
60
60
|
|
|
61
61
|
<div class="p-field mb-3">
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
aria-describedby="prefix-help" :class="{ 'p-invalid': data.prefixError }"
|
|
67
67
|
placeholder="or enter prefix"
|
|
68
68
|
v-model="data.prefix" />
|
|
69
|
-
<small id="prefix-help" class="p-error">{{ data.prefixError }}</small>
|
|
69
|
+
<small v-if="data.prefixError" id="prefix-help" class="p-error">{{ t(`errors.${data.prefixError}`) }}</small>
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
72
|
<div class="p-field mb-3">
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
aria-describedby="suffix-help" :class="{ 'p-invalid': data.suffixError }"
|
|
78
78
|
placeholder="enter suffix"
|
|
79
79
|
v-model="data.suffix" />
|
|
80
|
-
<small id="suffix-help" class="p-error">{{ data.suffixError }}</small>
|
|
80
|
+
<small v-if="data.suffixError" id="suffix-help" class="p-error">{{ t(`errors.${data.suffixError}`) }}</small>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
83
|
<div class="flex flex-row flex-wrap">
|
|
@@ -119,6 +119,9 @@
|
|
|
119
119
|
emit('taken')
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
import { useI18n } from 'vue-i18n'
|
|
123
|
+
const { t } = useI18n()
|
|
124
|
+
|
|
122
125
|
const charsets = [
|
|
123
126
|
{ label: 'All', value: 'all' },
|
|
124
127
|
{ label: 'Digits', value: 'digits' },
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
aria-describedby="path-help" :class="{ 'p-invalid': data.pathError }"
|
|
12
12
|
placeholder="enter/absolute/path"
|
|
13
13
|
v-model="data.path" />
|
|
14
|
-
<small id="path-help" class="p-error">{{ data.pathError }}</small>
|
|
14
|
+
<small v-if="data.pathError" id="path-help" class="p-error">{{ t(`errors.${data.pathError}`) }}</small>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="p-field mb-3">
|
|
17
17
|
<label for="domain" class="block text-900 font-medium mb-2">
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
aria-describedby="domain-help" :class="{ 'p-invalid': data.domainError }"
|
|
22
22
|
placeholder="any"
|
|
23
23
|
v-model="data.domain" />
|
|
24
|
-
<small id="domain-help" class="p-error">{{ data.domainError }}</small>
|
|
24
|
+
<small v-if="data.domainError" id="domain-help" class="p-error">{{ t(`errors.${data.domainError}`) }}</small>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
<div class="flex flex-row flex-wrap">
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
const isMounted = ref(false)
|
|
84
84
|
onMounted(() => isMounted.value = true)
|
|
85
85
|
|
|
86
|
+
import { useI18n } from 'vue-i18n'
|
|
87
|
+
const { t } = useI18n()
|
|
88
|
+
|
|
86
89
|
</script>
|
|
87
90
|
|
|
88
91
|
<style scoped>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/url-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.76",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@fortawesome/fontawesome-free": "^6.5.2",
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/framework": "^0.8.
|
|
30
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
31
|
-
"@live-change/prosemirror-service": "^0.8.
|
|
32
|
-
"@live-change/secret-code-service": "^0.8.
|
|
33
|
-
"@live-change/secret-link-service": "^0.8.
|
|
34
|
-
"@live-change/session-service": "^0.8.
|
|
35
|
-
"@live-change/vue3-components": "^0.8.
|
|
36
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
25
|
+
"@live-change/cli": "^0.8.76",
|
|
26
|
+
"@live-change/dao": "^0.8.76",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.76",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.76",
|
|
29
|
+
"@live-change/framework": "^0.8.76",
|
|
30
|
+
"@live-change/password-authentication-service": "^0.8.76",
|
|
31
|
+
"@live-change/prosemirror-service": "^0.8.76",
|
|
32
|
+
"@live-change/secret-code-service": "^0.8.76",
|
|
33
|
+
"@live-change/secret-link-service": "^0.8.76",
|
|
34
|
+
"@live-change/session-service": "^0.8.76",
|
|
35
|
+
"@live-change/vue3-components": "^0.8.76",
|
|
36
|
+
"@live-change/vue3-ssr": "^0.8.76",
|
|
37
37
|
"@vueuse/core": "^10.11.0",
|
|
38
38
|
"codeceptjs-assert": "^0.0.5",
|
|
39
39
|
"compression": "^1.7.4",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"vue3-scroll-border": "0.1.6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
54
|
+
"@live-change/codeceptjs-helper": "^0.8.76",
|
|
55
55
|
"codeceptjs": "^3.6.5",
|
|
56
56
|
"generate-password": "1.7.1",
|
|
57
57
|
"playwright": "^1.41.2",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
63
63
|
"license": "ISC",
|
|
64
64
|
"description": "",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "70c9a5ffb257f57b77754027d9c543584ca3423b"
|
|
66
66
|
}
|