@shwfed/nuxt 0.1.60 → 0.1.62
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/dist/module.json
CHANGED
|
@@ -113,6 +113,7 @@ const palette = computed(() => {
|
|
|
113
113
|
if ($dsl.evaluate`${child.external}`() !== true) {
|
|
114
114
|
tabs.value.add(toNavigationKey(navigation2.id, child.id));
|
|
115
115
|
activeTab.value = toNavigationKey(navigation2.id, child.id);
|
|
116
|
+
router.replace(child.target);
|
|
116
117
|
}
|
|
117
118
|
})
|
|
118
119
|
}))
|
|
@@ -132,6 +133,7 @@ const palette = computed(() => {
|
|
|
132
133
|
if ($dsl.evaluate`${navigation2.external}`() !== true) {
|
|
133
134
|
tabs.value.add(toNavigationKey("", navigation2.id));
|
|
134
135
|
activeTab.value = toNavigationKey("", navigation2.id);
|
|
136
|
+
router.replace(navigation2.target);
|
|
135
137
|
}
|
|
136
138
|
})
|
|
137
139
|
});
|
|
@@ -2,6 +2,7 @@ import { Environment, EvaluationError, Optional } from "@marcbachmann/cel-js";
|
|
|
2
2
|
import { startOfDay, startOfWeek, startOfYear, startOfMonth, endOfDay, endOfWeek, endOfYear, endOfMonth, addYears, addMonths, addDays, addWeeks, setDate, setMonth, setYear, formatDate, isBefore, isAfter, isEqual } from "date-fns";
|
|
3
3
|
import { TZDate } from "@date-fns/tz";
|
|
4
4
|
import { BigNumber } from "bignumber.js";
|
|
5
|
+
import Nzh from "nzh";
|
|
5
6
|
export function createEnvironment() {
|
|
6
7
|
const env = new Environment({
|
|
7
8
|
enableOptionalTypes: true,
|
|
@@ -94,6 +95,10 @@ export function createEnvironment() {
|
|
|
94
95
|
return number.toLocaleString(navigator.language, options);
|
|
95
96
|
}).registerFunction("int.toLocaleString(dyn): string", (number, options) => {
|
|
96
97
|
return number.toLocaleString(navigator.language, options);
|
|
98
|
+
}).registerFunction("double.encodeSimplifiedChineseUppercase(): string", (number) => {
|
|
99
|
+
return Nzh.cn.encodeB(number);
|
|
100
|
+
}).registerFunction("int.encodeSimplifiedChineseUppercase(): string", (number) => {
|
|
101
|
+
return Nzh.cn.encodeB(number.toString());
|
|
97
102
|
}).registerFunction("parseJSON(string): dyn", (string) => {
|
|
98
103
|
return JSON.parse(string);
|
|
99
104
|
}).registerFunction("string.slice(int): string", (s, start) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shwfed/nuxt",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"effect": "^3.19.15",
|
|
55
55
|
"markdown-it": "^14.1.0",
|
|
56
56
|
"mutative": "^1.3.0",
|
|
57
|
+
"nzh": "^1.0.14",
|
|
57
58
|
"reka-ui": "^2.7.0",
|
|
58
59
|
"tailwind-merge": "^3.4.0",
|
|
59
60
|
"vue": "^3.5.27",
|