@dative-gpi/foundation-shared-services 0.0.46 → 0.0.48
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/composables/useShared.ts +10 -11
- package/package.json +3 -3
package/composables/useShared.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref } from "vue";
|
|
2
2
|
|
|
3
3
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui";
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ let called = false;
|
|
|
10
10
|
|
|
11
11
|
const ready = ref(false);
|
|
12
12
|
|
|
13
|
-
export function useShared() {
|
|
13
|
+
export async function useShared() {
|
|
14
14
|
if (called) {
|
|
15
15
|
return {
|
|
16
16
|
ready
|
|
@@ -24,15 +24,14 @@ export function useShared() {
|
|
|
24
24
|
const { getMany, entities } = useTranslations();
|
|
25
25
|
const { set } = useTranslationsProvider();
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
27
|
+
await languageCodeReady;
|
|
28
|
+
await timeZoneReady;
|
|
29
|
+
|
|
30
|
+
if (languageCode.value) {
|
|
31
|
+
await getMany(languageCode.value);
|
|
32
|
+
set(entities.value.map(t => ({ code: t.code, value: t.value })));
|
|
33
|
+
}
|
|
34
|
+
ready.value = true;
|
|
36
35
|
|
|
37
36
|
return {
|
|
38
37
|
ready
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@dative-gpi/bones-ui": "^0.0.61",
|
|
14
|
-
"@dative-gpi/foundation-shared-domain": "0.0.
|
|
14
|
+
"@dative-gpi/foundation-shared-domain": "0.0.48",
|
|
15
15
|
"@microsoft/signalr": "^8.0.0",
|
|
16
16
|
"date-fns": "^3.2.0",
|
|
17
17
|
"vue": "^3.2.0",
|
|
18
18
|
"vue-router": "^4.2.5"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "0029f53ff50ea72e704647e64d3419266ae680fa"
|
|
21
21
|
}
|