@highstate/designer 0.9.18 → 0.9.19
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/.output/nitro.json +3 -3
- package/.output/public/_nuxt/00PavPNr.js +1 -0
- package/.output/public/_nuxt/{xVLoeQ-B.js → 24pzIZRr.js} +1 -1
- package/.output/public/_nuxt/B2umP1rN.js +1 -0
- package/.output/public/_nuxt/B8z64P5r.js +1 -0
- package/.output/public/_nuxt/BEFlL3Zb.js +1 -0
- package/.output/public/_nuxt/BH2j9ZdL.js +2 -0
- package/.output/public/_nuxt/BLIjXRbp.js +1 -0
- package/.output/public/_nuxt/BLPLmiCg.js +1 -0
- package/.output/public/_nuxt/BODfYi5x.js +1 -0
- package/.output/public/_nuxt/BSVaCi82.js +1 -0
- package/.output/public/_nuxt/BeBKEPaV.js +1 -0
- package/.output/public/_nuxt/BhWccYlK.js +276 -0
- package/.output/public/_nuxt/{CNBtkm4J.js → Bj2v5zwu.js} +2 -2
- package/.output/public/_nuxt/BjQbGaFu.js +1 -0
- package/.output/public/_nuxt/BkhU0P2a.js +1 -0
- package/.output/public/_nuxt/Bq9zGKGH.js +1 -0
- package/.output/public/_nuxt/Bwy6lXZI.js +1 -0
- package/.output/public/_nuxt/C28Ky4mM.js +5 -0
- package/.output/public/_nuxt/{CPSgaaQ0.js → C39wRh4i.js} +1 -1
- package/.output/public/_nuxt/CAEVHbCq.js +1 -0
- package/.output/public/_nuxt/CBdGpnmw.js +1 -0
- package/.output/public/_nuxt/CF5B4EM_.js +1 -0
- package/.output/public/_nuxt/CHdpI9cE.js +1 -0
- package/.output/public/_nuxt/CIv7p5Hd.js +16 -0
- package/.output/public/_nuxt/CND6o3oI.js +1 -0
- package/.output/public/_nuxt/{B7grBCAR.js → COCm9MC_.js} +1 -1
- package/.output/public/_nuxt/CasefD2V.js +1 -0
- package/.output/public/_nuxt/Ck1nftBx.js +1 -0
- package/.output/public/_nuxt/CzVLS6f1.js +2 -0
- package/.output/public/_nuxt/D1TquUAQ.js +1 -0
- package/.output/public/_nuxt/D2AD0cA7.js +1 -0
- package/.output/public/_nuxt/D9qQxcz2.js +1 -0
- package/.output/public/_nuxt/D9rAj-Tm.js +1 -0
- package/.output/public/_nuxt/DDCXd-ua.js +1 -0
- package/.output/public/_nuxt/DEKgA0CD.js +1 -0
- package/.output/public/_nuxt/DFPGdAue.js +1 -0
- package/.output/public/_nuxt/DInZfUJa.js +1 -0
- package/.output/public/_nuxt/DIpLW5D5.js +1 -0
- package/.output/public/_nuxt/DLQCiJf0.js +1 -0
- package/.output/public/_nuxt/DLaRxjQz.js +1 -0
- package/.output/public/_nuxt/DO3LUuFM.js +12 -0
- package/.output/public/_nuxt/DP4clH6m.js +1 -0
- package/.output/public/_nuxt/DPWtH2b9.js +1 -0
- package/.output/public/_nuxt/DTnN7l_n.js +1 -0
- package/.output/public/_nuxt/DYtuF1mO.js +1 -0
- package/.output/public/_nuxt/DarxiN41.js +1 -0
- package/.output/public/_nuxt/DbnWrFmt.js +1 -0
- package/.output/public/_nuxt/DcrT2YVS.js +1 -0
- package/.output/public/_nuxt/{ClbN2oa7.js → DjVGtenp.js} +2 -2
- package/.output/public/_nuxt/DoLmvh98.js +1 -0
- package/.output/public/_nuxt/DuztTtWK.js +1 -0
- package/.output/public/_nuxt/DwmUhPpj.js +1 -0
- package/.output/public/_nuxt/DxOL29Up.js +1 -0
- package/.output/public/_nuxt/Dy4MTz6g.js +1 -0
- package/.output/public/_nuxt/HgwTqqUo.js +1 -0
- package/.output/public/_nuxt/JJ2MHRK2.js +1 -0
- package/.output/public/_nuxt/JokPmHXv.js +1 -0
- package/.output/public/_nuxt/N0qQ3IYs.js +2 -0
- package/.output/public/_nuxt/O074qcLn.js +1 -0
- package/.output/public/_nuxt/SecretValueField.SMGlmIfE.css +1 -0
- package/.output/public/_nuxt/T7hNoCXG.js +1 -0
- package/.output/public/_nuxt/UczlX-c9.js +1 -0
- package/.output/public/_nuxt/_d0M4KuU.js +1 -0
- package/.output/public/_nuxt/_pageId_.Be9XJqQA.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/c89eb61d-80e1-4ca1-b13e-521c420f664e.json +1 -0
- package/.output/public/_nuxt/{entry.YsT17dxl.css → entry.B__IA1SB.css} +1 -1
- package/.output/public/_nuxt/error-404.Ctkhr_Pq.css +1 -0
- package/.output/public/_nuxt/error-500.BsWzRwYo.css +1 -0
- package/.output/public/_nuxt/fqUPtzRv.js +1 -0
- package/.output/public/_nuxt/{graph-resolver-ClVztv7P.js → graph-resolver-DwBTX8MB.js} +100 -100
- package/.output/public/_nuxt/gt3opOQe.js +1 -0
- package/.output/public/_nuxt/i3Pf1NPu.js +2 -0
- package/.output/public/_nuxt/index.CdaM9XKS.css +1 -0
- package/.output/public/_nuxt/kFPB2rqp.js +1 -0
- package/.output/public/_nuxt/koatKMQr.js +26 -0
- package/.output/public/_nuxt/mwDqsUrW.js +1 -0
- package/.output/public/_nuxt/oZs8U75K.js +1 -0
- package/.output/public/_nuxt/operations.3bVU1gWl.css +1 -0
- package/.output/public/_nuxt/settings.DE1a_g5Y.css +1 -0
- package/.output/public/_nuxt/ttev5MDP.js +1 -0
- package/.output/public/_nuxt/v9bSWb7m.js +1 -0
- package/.output/public/_nuxt/{vuetify.C_sYHwU6.css → vuetify.uXRHzFBB.css} +1 -1
- package/.output/server/index.mjs +3699 -2226
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +7 -2
- package/.output/server/node_modules/@babel/parser/package.json +2 -2
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +24 -25
- package/.output/server/node_modules/@vue/compiler-core/package.json +4 -4
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +4 -4
- package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +51 -47
- package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +18 -16
- package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +26 -4
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +14 -3
- package/.output/server/node_modules/@vue/shared/package.json +1 -1
- package/.output/server/node_modules/copy-anything/dist/index.js +36 -0
- package/.output/server/node_modules/copy-anything/package.json +108 -0
- package/.output/server/node_modules/is-what/dist/index.js +171 -0
- package/.output/server/node_modules/is-what/package.json +128 -0
- package/.output/server/node_modules/superjson/dist/accessDeep.js +123 -0
- package/.output/server/node_modules/superjson/dist/class-registry.js +22 -0
- package/.output/server/node_modules/superjson/dist/custom-transformer-registry.js +16 -0
- package/.output/server/node_modules/superjson/dist/double-indexed-kv.js +21 -0
- package/.output/server/node_modules/superjson/dist/index.js +89 -0
- package/.output/server/node_modules/superjson/dist/is.js +35 -0
- package/.output/server/node_modules/superjson/dist/pathstringifier.js +29 -0
- package/.output/server/node_modules/superjson/dist/plainer.js +173 -0
- package/.output/server/node_modules/superjson/dist/registry.js +26 -0
- package/.output/server/node_modules/superjson/dist/transformer.js +197 -0
- package/.output/server/node_modules/superjson/dist/util.js +45 -0
- package/.output/server/node_modules/superjson/package.json +79 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +14 -8
- package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.C13swrCa.mjs → unhead.BYvz9V1x.mjs} +1 -6
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Di5OD67x.mjs → unhead.BpRRHAhY.mjs} +4 -0
- package/.output/server/node_modules/unhead/dist/shared/{unhead.CAk5S5m6.mjs → unhead.DH45uomy.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DeCxexjU.mjs → unhead.Djo8ep_Y.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/vue/package.json +6 -6
- package/.output/server/node_modules/vue-bundle-renderer/package.json +13 -13
- package/.output/server/package.json +16 -13
- package/package.json +16 -12
- package/.output/public/_nuxt/84XNjSIe.js +0 -1
- package/.output/public/_nuxt/BKmAPqal.js +0 -1
- package/.output/public/_nuxt/BLOpwnqT.js +0 -1
- package/.output/public/_nuxt/BTEhxafZ.js +0 -1
- package/.output/public/_nuxt/B_wu9Dqv.js +0 -1
- package/.output/public/_nuxt/BebE75YV.js +0 -1
- package/.output/public/_nuxt/Bm_zuxCd.js +0 -1
- package/.output/public/_nuxt/BvYfgXkl.js +0 -1
- package/.output/public/_nuxt/C-_oQ9hf.js +0 -1
- package/.output/public/_nuxt/COWjEZnb.js +0 -1
- package/.output/public/_nuxt/CYRjgJw9.js +0 -26
- package/.output/public/_nuxt/Cj-b45ZR.js +0 -1
- package/.output/public/_nuxt/CtMxL075.js +0 -21
- package/.output/public/_nuxt/D-pF80u_.js +0 -1
- package/.output/public/_nuxt/D0Gq3ULd.js +0 -1
- package/.output/public/_nuxt/DCWrMWBD.js +0 -1
- package/.output/public/_nuxt/DEsY2yuF.js +0 -1
- package/.output/public/_nuxt/DPvdOr2J.js +0 -1
- package/.output/public/_nuxt/DbtIzDGy.js +0 -1
- package/.output/public/_nuxt/DwheRqRn.js +0 -1
- package/.output/public/_nuxt/SVGiTNnK.js +0 -1
- package/.output/public/_nuxt/SettingsDataTable.BLJqwlEK.css +0 -1
- package/.output/public/_nuxt/UQxqNY8s.js +0 -273
- package/.output/public/_nuxt/about.fWlW3EhQ.css +0 -1
- package/.output/public/_nuxt/builds/meta/b0e10f5e-bdc5-4007-9281-161aa323adf1.json +0 -1
- package/.output/public/_nuxt/error-404.CH3riSrg.css +0 -1
- package/.output/public/_nuxt/error-500.C8Qk6cR7.css +0 -1
- package/.output/public/_nuxt/index.smtD6lYF.css +0 -1
- package/.output/public/_nuxt/instances.CGwVkdDM.css +0 -1
- package/.output/public/_nuxt/oVh4WQ21.js +0 -1
- package/.output/public/_nuxt/operations.BfCOaoAx.css +0 -1
- package/.output/public/_nuxt/operations.DvUkbQbt.css +0 -1
- package/.output/public/_nuxt/p5ZwBirz.js +0 -1
- package/.output/public/_nuxt/secrets._PitGGJK.css +0 -1
- package/.output/public/_nuxt/settings.BCRf8MgD.css +0 -1
- package/.output/public/_nuxt/terminals.B07MGsh3.css +0 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { isBigint, isDate, isInfinite, isMap, isNaNValue, isRegExp, isSet, isUndefined, isSymbol, isArray, isError, isTypedArray, isURL, } from './is.js';
|
|
2
|
+
import { findArr } from './util.js';
|
|
3
|
+
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
4
|
+
return {
|
|
5
|
+
isApplicable,
|
|
6
|
+
annotation,
|
|
7
|
+
transform,
|
|
8
|
+
untransform,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
const simpleRules = [
|
|
12
|
+
simpleTransformation(isUndefined, 'undefined', () => null, () => undefined),
|
|
13
|
+
simpleTransformation(isBigint, 'bigint', v => v.toString(), v => {
|
|
14
|
+
if (typeof BigInt !== 'undefined') {
|
|
15
|
+
return BigInt(v);
|
|
16
|
+
}
|
|
17
|
+
console.error('Please add a BigInt polyfill.');
|
|
18
|
+
return v;
|
|
19
|
+
}),
|
|
20
|
+
simpleTransformation(isDate, 'Date', v => v.toISOString(), v => new Date(v)),
|
|
21
|
+
simpleTransformation(isError, 'Error', (v, superJson) => {
|
|
22
|
+
const baseError = {
|
|
23
|
+
name: v.name,
|
|
24
|
+
message: v.message,
|
|
25
|
+
};
|
|
26
|
+
superJson.allowedErrorProps.forEach(prop => {
|
|
27
|
+
baseError[prop] = v[prop];
|
|
28
|
+
});
|
|
29
|
+
return baseError;
|
|
30
|
+
}, (v, superJson) => {
|
|
31
|
+
const e = new Error(v.message);
|
|
32
|
+
e.name = v.name;
|
|
33
|
+
e.stack = v.stack;
|
|
34
|
+
superJson.allowedErrorProps.forEach(prop => {
|
|
35
|
+
e[prop] = v[prop];
|
|
36
|
+
});
|
|
37
|
+
return e;
|
|
38
|
+
}),
|
|
39
|
+
simpleTransformation(isRegExp, 'regexp', v => '' + v, regex => {
|
|
40
|
+
const body = regex.slice(1, regex.lastIndexOf('/'));
|
|
41
|
+
const flags = regex.slice(regex.lastIndexOf('/') + 1);
|
|
42
|
+
return new RegExp(body, flags);
|
|
43
|
+
}),
|
|
44
|
+
simpleTransformation(isSet, 'set',
|
|
45
|
+
// (sets only exist in es6+)
|
|
46
|
+
// eslint-disable-next-line es5/no-es6-methods
|
|
47
|
+
v => [...v.values()], v => new Set(v)),
|
|
48
|
+
simpleTransformation(isMap, 'map', v => [...v.entries()], v => new Map(v)),
|
|
49
|
+
simpleTransformation((v) => isNaNValue(v) || isInfinite(v), 'number', v => {
|
|
50
|
+
if (isNaNValue(v)) {
|
|
51
|
+
return 'NaN';
|
|
52
|
+
}
|
|
53
|
+
if (v > 0) {
|
|
54
|
+
return 'Infinity';
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return '-Infinity';
|
|
58
|
+
}
|
|
59
|
+
}, Number),
|
|
60
|
+
simpleTransformation((v) => v === 0 && 1 / v === -Infinity, 'number', () => {
|
|
61
|
+
return '-0';
|
|
62
|
+
}, Number),
|
|
63
|
+
simpleTransformation(isURL, 'URL', v => v.toString(), v => new URL(v)),
|
|
64
|
+
];
|
|
65
|
+
function compositeTransformation(isApplicable, annotation, transform, untransform) {
|
|
66
|
+
return {
|
|
67
|
+
isApplicable,
|
|
68
|
+
annotation,
|
|
69
|
+
transform,
|
|
70
|
+
untransform,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const symbolRule = compositeTransformation((s, superJson) => {
|
|
74
|
+
if (isSymbol(s)) {
|
|
75
|
+
const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
|
|
76
|
+
return isRegistered;
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}, (s, superJson) => {
|
|
80
|
+
const identifier = superJson.symbolRegistry.getIdentifier(s);
|
|
81
|
+
return ['symbol', identifier];
|
|
82
|
+
}, v => v.description, (_, a, superJson) => {
|
|
83
|
+
const value = superJson.symbolRegistry.getValue(a[1]);
|
|
84
|
+
if (!value) {
|
|
85
|
+
throw new Error('Trying to deserialize unknown symbol');
|
|
86
|
+
}
|
|
87
|
+
return value;
|
|
88
|
+
});
|
|
89
|
+
const constructorToName = [
|
|
90
|
+
Int8Array,
|
|
91
|
+
Uint8Array,
|
|
92
|
+
Int16Array,
|
|
93
|
+
Uint16Array,
|
|
94
|
+
Int32Array,
|
|
95
|
+
Uint32Array,
|
|
96
|
+
Float32Array,
|
|
97
|
+
Float64Array,
|
|
98
|
+
Uint8ClampedArray,
|
|
99
|
+
].reduce((obj, ctor) => {
|
|
100
|
+
obj[ctor.name] = ctor;
|
|
101
|
+
return obj;
|
|
102
|
+
}, {});
|
|
103
|
+
const typedArrayRule = compositeTransformation(isTypedArray, v => ['typed-array', v.constructor.name], v => [...v], (v, a) => {
|
|
104
|
+
const ctor = constructorToName[a[1]];
|
|
105
|
+
if (!ctor) {
|
|
106
|
+
throw new Error('Trying to deserialize unknown typed array');
|
|
107
|
+
}
|
|
108
|
+
return new ctor(v);
|
|
109
|
+
});
|
|
110
|
+
export function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
111
|
+
if (potentialClass?.constructor) {
|
|
112
|
+
const isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
|
|
113
|
+
return isRegistered;
|
|
114
|
+
}
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
const classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
|
|
118
|
+
const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
|
|
119
|
+
return ['class', identifier];
|
|
120
|
+
}, (clazz, superJson) => {
|
|
121
|
+
const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
122
|
+
if (!allowedProps) {
|
|
123
|
+
return { ...clazz };
|
|
124
|
+
}
|
|
125
|
+
const result = {};
|
|
126
|
+
allowedProps.forEach(prop => {
|
|
127
|
+
result[prop] = clazz[prop];
|
|
128
|
+
});
|
|
129
|
+
return result;
|
|
130
|
+
}, (v, a, superJson) => {
|
|
131
|
+
const clazz = superJson.classRegistry.getValue(a[1]);
|
|
132
|
+
if (!clazz) {
|
|
133
|
+
throw new Error(`Trying to deserialize unknown class '${a[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
134
|
+
}
|
|
135
|
+
return Object.assign(Object.create(clazz.prototype), v);
|
|
136
|
+
});
|
|
137
|
+
const customRule = compositeTransformation((value, superJson) => {
|
|
138
|
+
return !!superJson.customTransformerRegistry.findApplicable(value);
|
|
139
|
+
}, (value, superJson) => {
|
|
140
|
+
const transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
141
|
+
return ['custom', transformer.name];
|
|
142
|
+
}, (value, superJson) => {
|
|
143
|
+
const transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
144
|
+
return transformer.serialize(value);
|
|
145
|
+
}, (v, a, superJson) => {
|
|
146
|
+
const transformer = superJson.customTransformerRegistry.findByName(a[1]);
|
|
147
|
+
if (!transformer) {
|
|
148
|
+
throw new Error('Trying to deserialize unknown custom value');
|
|
149
|
+
}
|
|
150
|
+
return transformer.deserialize(v);
|
|
151
|
+
});
|
|
152
|
+
const compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
|
|
153
|
+
export const transformValue = (value, superJson) => {
|
|
154
|
+
const applicableCompositeRule = findArr(compositeRules, rule => rule.isApplicable(value, superJson));
|
|
155
|
+
if (applicableCompositeRule) {
|
|
156
|
+
return {
|
|
157
|
+
value: applicableCompositeRule.transform(value, superJson),
|
|
158
|
+
type: applicableCompositeRule.annotation(value, superJson),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const applicableSimpleRule = findArr(simpleRules, rule => rule.isApplicable(value, superJson));
|
|
162
|
+
if (applicableSimpleRule) {
|
|
163
|
+
return {
|
|
164
|
+
value: applicableSimpleRule.transform(value, superJson),
|
|
165
|
+
type: applicableSimpleRule.annotation,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
return undefined;
|
|
169
|
+
};
|
|
170
|
+
const simpleRulesByAnnotation = {};
|
|
171
|
+
simpleRules.forEach(rule => {
|
|
172
|
+
simpleRulesByAnnotation[rule.annotation] = rule;
|
|
173
|
+
});
|
|
174
|
+
export const untransformValue = (json, type, superJson) => {
|
|
175
|
+
if (isArray(type)) {
|
|
176
|
+
switch (type[0]) {
|
|
177
|
+
case 'symbol':
|
|
178
|
+
return symbolRule.untransform(json, type, superJson);
|
|
179
|
+
case 'class':
|
|
180
|
+
return classRule.untransform(json, type, superJson);
|
|
181
|
+
case 'custom':
|
|
182
|
+
return customRule.untransform(json, type, superJson);
|
|
183
|
+
case 'typed-array':
|
|
184
|
+
return typedArrayRule.untransform(json, type, superJson);
|
|
185
|
+
default:
|
|
186
|
+
throw new Error('Unknown transformation: ' + type);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
const transformation = simpleRulesByAnnotation[type];
|
|
191
|
+
if (!transformation) {
|
|
192
|
+
throw new Error('Unknown transformation: ' + type);
|
|
193
|
+
}
|
|
194
|
+
return transformation.untransform(json, superJson);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=transformer.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function valuesOfObj(record) {
|
|
2
|
+
if ('values' in Object) {
|
|
3
|
+
// eslint-disable-next-line es5/no-es6-methods
|
|
4
|
+
return Object.values(record);
|
|
5
|
+
}
|
|
6
|
+
const values = [];
|
|
7
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
8
|
+
for (const key in record) {
|
|
9
|
+
if (record.hasOwnProperty(key)) {
|
|
10
|
+
values.push(record[key]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return values;
|
|
14
|
+
}
|
|
15
|
+
export function find(record, predicate) {
|
|
16
|
+
const values = valuesOfObj(record);
|
|
17
|
+
if ('find' in values) {
|
|
18
|
+
// eslint-disable-next-line es5/no-es6-methods
|
|
19
|
+
return values.find(predicate);
|
|
20
|
+
}
|
|
21
|
+
const valuesNotNever = values;
|
|
22
|
+
for (let i = 0; i < valuesNotNever.length; i++) {
|
|
23
|
+
const value = valuesNotNever[i];
|
|
24
|
+
if (predicate(value)) {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
export function forEach(record, run) {
|
|
31
|
+
Object.entries(record).forEach(([key, value]) => run(value, key));
|
|
32
|
+
}
|
|
33
|
+
export function includes(arr, value) {
|
|
34
|
+
return arr.indexOf(value) !== -1;
|
|
35
|
+
}
|
|
36
|
+
export function findArr(record, predicate) {
|
|
37
|
+
for (let i = 0; i < record.length; i++) {
|
|
38
|
+
const value = record[i];
|
|
39
|
+
if (predicate(value)) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.2.2",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"typings": "dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=16"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"lint": "tsdx lint",
|
|
20
|
+
"prepack": "yarn build",
|
|
21
|
+
"prepare": "husky install",
|
|
22
|
+
"publish-please": "publish-please",
|
|
23
|
+
"prepublishOnly": "publish-please guard"
|
|
24
|
+
},
|
|
25
|
+
"importSort": {
|
|
26
|
+
".ts": {
|
|
27
|
+
"style": "module"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"prettier": {
|
|
31
|
+
"printWidth": 80,
|
|
32
|
+
"semi": true,
|
|
33
|
+
"singleQuote": true,
|
|
34
|
+
"trailingComma": "es5"
|
|
35
|
+
},
|
|
36
|
+
"name": "superjson",
|
|
37
|
+
"author": {
|
|
38
|
+
"name": "Simon Knott",
|
|
39
|
+
"email": "info@simonknott.de",
|
|
40
|
+
"url": "https://simonknott.de"
|
|
41
|
+
},
|
|
42
|
+
"contributors": [
|
|
43
|
+
{
|
|
44
|
+
"name": "Dylan Brookes",
|
|
45
|
+
"email": "dylan@brookes.net",
|
|
46
|
+
"url": "https://github.com/merelinguist"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "Brandon Bayer",
|
|
50
|
+
"email": "b@bayer.w",
|
|
51
|
+
"url": "https://twitter.com/flybayer"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "https://github.com/blitz-js/superjson"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/debug": "^4.1.5",
|
|
60
|
+
"@types/mongodb": "^3.6.12",
|
|
61
|
+
"@types/node": "^18.7.18",
|
|
62
|
+
"benchmark": "^2.1.4",
|
|
63
|
+
"decimal.js": "^10.3.1",
|
|
64
|
+
"eslint-plugin-es5": "^1.5.0",
|
|
65
|
+
"husky": "^6.0.0",
|
|
66
|
+
"mongodb": "^3.6.6",
|
|
67
|
+
"publish-please": "^5.5.2",
|
|
68
|
+
"tsdx": "^0.14.1",
|
|
69
|
+
"typescript": "^4.2.4",
|
|
70
|
+
"vitest": "^0.34.6"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"copy-anything": "^3.0.2"
|
|
74
|
+
},
|
|
75
|
+
"resolutions": {
|
|
76
|
+
"**/@typescript-eslint/eslint-plugin": "^4.11.1",
|
|
77
|
+
"**/@typescript-eslint/parser": "^4.11.1"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.
|
|
1
|
+
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.Djo8ep_Y.mjs';
|
|
2
2
|
import { d as defineHeadPlugin } from './shared/unhead.CApf5sj3.mjs';
|
|
3
3
|
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.CApf5sj3.mjs';
|
|
4
4
|
import './shared/unhead.DZbvapt-.mjs';
|
|
5
|
-
import './shared/unhead.
|
|
5
|
+
import './shared/unhead.BYvz9V1x.mjs';
|
|
6
6
|
import './shared/unhead.DQc16pHI.mjs';
|
|
7
7
|
import './shared/unhead.yem5I2v_.mjs';
|
|
8
8
|
|
|
9
|
+
const META_TRANSFORMABLE_URL = [
|
|
10
|
+
"og:url",
|
|
11
|
+
"og:image",
|
|
12
|
+
"og:image:secure_url",
|
|
13
|
+
"twitter:image",
|
|
14
|
+
"twitter:image:src",
|
|
15
|
+
"og:video",
|
|
16
|
+
"og:video:secure_url",
|
|
17
|
+
"og:see_also"
|
|
18
|
+
];
|
|
9
19
|
function CanonicalPlugin(options) {
|
|
10
20
|
return (head) => {
|
|
11
21
|
let host = options.canonicalHost || (!head.ssr ? window.location.origin : "");
|
|
@@ -30,12 +40,8 @@ function CanonicalPlugin(options) {
|
|
|
30
40
|
hooks: {
|
|
31
41
|
"tags:resolve": (ctx) => {
|
|
32
42
|
for (const tag of ctx.tags) {
|
|
33
|
-
if (tag.tag === "meta") {
|
|
34
|
-
|
|
35
|
-
tag.props.content = resolvePath(tag.props.content);
|
|
36
|
-
} else if (tag.props?.property === "og:url") {
|
|
37
|
-
tag.props.content = resolvePath(tag.props.content);
|
|
38
|
-
}
|
|
43
|
+
if (tag.tag === "meta" && (META_TRANSFORMABLE_URL.includes(tag.props?.property) || META_TRANSFORMABLE_URL.includes(tag.props?.name))) {
|
|
44
|
+
tag.props.content = resolvePath(tag.props.content);
|
|
39
45
|
} else if (tag.tag === "link" && tag.props.rel === "canonical") {
|
|
40
46
|
tag.props.href = resolvePath(tag.props.href);
|
|
41
47
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as createUnhead } from './shared/unhead.
|
|
1
|
+
import { a as createUnhead } from './shared/unhead.DH45uomy.mjs';
|
|
2
2
|
import { T as TagsWithInnerContent, S as SelfClosingTags$1 } from './shared/unhead.yem5I2v_.mjs';
|
|
3
3
|
import 'hookable';
|
|
4
|
-
import './shared/unhead.
|
|
4
|
+
import './shared/unhead.BpRRHAhY.mjs';
|
|
5
5
|
import './shared/unhead.DZbvapt-.mjs';
|
|
6
6
|
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -67,7 +67,7 @@ function createHead(options = {}) {
|
|
|
67
67
|
return unhead;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
const Attrs = /(\w+)(?:=["']([^"']*)["'])?/g;
|
|
70
|
+
const Attrs = /(\w+-?\w+)(?:=["']([^"']*)["'])?/g;
|
|
71
71
|
const HtmlTag = /<html[^>]*>/;
|
|
72
72
|
const BodyTag = /<body[^>]*>/;
|
|
73
73
|
const HeadContent = /<head[^>]*>(.*?)<\/head>/s;
|
package/.output/server/node_modules/unhead/dist/shared/{unhead.C13swrCa.mjs → unhead.BYvz9V1x.mjs}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const SepSub = "%separator";
|
|
2
|
-
const SepSubRE = new RegExp(`${SepSub}(?:\\s*${SepSub})*`, "g");
|
|
3
2
|
function sub(p, token, isJson = false) {
|
|
4
3
|
let val;
|
|
5
4
|
if (token === "s" || token === "pageTitle") {
|
|
@@ -36,11 +35,7 @@ function processTemplateParams(s, p, sep, isJson = false) {
|
|
|
36
35
|
return re !== void 0 ? re : token;
|
|
37
36
|
}).trim();
|
|
38
37
|
if (hasSepSub) {
|
|
39
|
-
|
|
40
|
-
s = s.slice(0, -SepSub.length);
|
|
41
|
-
if (s.startsWith(SepSub))
|
|
42
|
-
s = s.slice(SepSub.length);
|
|
43
|
-
s = s.replace(SepSubRE, sep || "").trim();
|
|
38
|
+
s = s.split(SepSub).map((part) => part.trim()).filter((part) => part !== "").join(sep ? ` ${sep} ` : " ");
|
|
44
39
|
}
|
|
45
40
|
return s;
|
|
46
41
|
}
|
package/.output/server/node_modules/unhead/dist/shared/{unhead.Di5OD67x.mjs → unhead.BpRRHAhY.mjs}
RENAMED
|
@@ -112,6 +112,10 @@ function normalizeProps(tag, input) {
|
|
|
112
112
|
if (!input) {
|
|
113
113
|
return tag;
|
|
114
114
|
}
|
|
115
|
+
if (tag.tag === "templateParams") {
|
|
116
|
+
tag.props = input;
|
|
117
|
+
return tag;
|
|
118
|
+
}
|
|
115
119
|
Object.entries(input).forEach(([key, value]) => {
|
|
116
120
|
if (value === null) {
|
|
117
121
|
tag.props[key] = null;
|
package/.output/server/node_modules/unhead/dist/shared/{unhead.CAk5S5m6.mjs → unhead.DH45uomy.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHooks } from 'hookable';
|
|
2
|
-
import { n as normalizeEntryToTags, d as dedupeKey, i as isMetaArrayDupeKey } from './unhead.
|
|
2
|
+
import { n as normalizeEntryToTags, d as dedupeKey, i as isMetaArrayDupeKey } from './unhead.BpRRHAhY.mjs';
|
|
3
3
|
import { t as tagWeight, s as sortTags } from './unhead.DZbvapt-.mjs';
|
|
4
4
|
import { c as UsesMergeStrategy, V as ValidHeadTags } from './unhead.yem5I2v_.mjs';
|
|
5
5
|
|
package/.output/server/node_modules/unhead/dist/shared/{unhead.DeCxexjU.mjs → unhead.Djo8ep_Y.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defineHeadPlugin } from './unhead.CApf5sj3.mjs';
|
|
2
2
|
import { s as sortTags } from './unhead.DZbvapt-.mjs';
|
|
3
|
-
import { p as processTemplateParams } from './unhead.
|
|
3
|
+
import { p as processTemplateParams } from './unhead.BYvz9V1x.mjs';
|
|
4
4
|
|
|
5
5
|
const formatKey = (k) => !k.includes(":key") ? k.split(":").join(":key:") : k;
|
|
6
6
|
const AliasSortingPlugin = defineHeadPlugin({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { D as DupeableTags, H as HasElementTags, M as MetaTagsArrayable, b as ScriptNetworkEvents, S as SelfClosingTags, a as TagConfigKeys, T as TagsWithInnerContent, U as UniqueTags, c as UsesMergeStrategy, V as ValidHeadTags } from './shared/unhead.yem5I2v_.mjs';
|
|
2
|
-
export { d as dedupeKey, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, a as normalizeProps, w as walkResolver } from './shared/unhead.
|
|
2
|
+
export { d as dedupeKey, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, a as normalizeProps, w as walkResolver } from './shared/unhead.BpRRHAhY.mjs';
|
|
3
3
|
export { r as resolveMetaKeyType, a as resolveMetaKeyValue, b as resolvePackedMetaObjectValue, u as unpackMeta } from './shared/unhead.DQc16pHI.mjs';
|
|
4
4
|
export { s as sortTags, t as tagWeight } from './shared/unhead.DZbvapt-.mjs';
|
|
5
|
-
export { p as processTemplateParams } from './shared/unhead.
|
|
5
|
+
export { p as processTemplateParams } from './shared/unhead.BYvz9V1x.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20",
|
|
4
4
|
"description": "The progressive JavaScript framework for building modern web UI.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/vue.runtime.esm-bundler.js",
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
},
|
|
96
96
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@vue/shared": "3.5.
|
|
99
|
-
"@vue/
|
|
100
|
-
"@vue/
|
|
101
|
-
"@vue/compiler-sfc": "3.5.
|
|
102
|
-
"@vue/server-renderer": "3.5.
|
|
98
|
+
"@vue/shared": "3.5.20",
|
|
99
|
+
"@vue/compiler-dom": "3.5.20",
|
|
100
|
+
"@vue/runtime-dom": "3.5.20",
|
|
101
|
+
"@vue/compiler-sfc": "3.5.20",
|
|
102
|
+
"@vue/server-renderer": "3.5.20"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"typescript": "*"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-bundle-renderer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Bundle Renderer for Vue 3.0",
|
|
5
5
|
"repository": "nuxt-contrib/vue-bundle-renderer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"test": "pnpm lint && pnpm vitest run --coverage && tsc --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"ufo": "^1.
|
|
35
|
+
"ufo": "^1.6.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^
|
|
39
|
-
"@vitest/coverage-v8": "^2.
|
|
40
|
-
"changelogen": "^0.
|
|
41
|
-
"eslint": "^9.
|
|
42
|
-
"typescript": "^5.
|
|
43
|
-
"unbuild": "^
|
|
44
|
-
"vite": "^
|
|
45
|
-
"vitest": "2.
|
|
46
|
-
"vue": "3.5.
|
|
47
|
-
"@nuxt/eslint-config": "^
|
|
38
|
+
"@types/node": "^22.16.5",
|
|
39
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
40
|
+
"changelogen": "^0.6.2",
|
|
41
|
+
"eslint": "^9.32.0",
|
|
42
|
+
"typescript": "^5.8.3",
|
|
43
|
+
"unbuild": "^3.6.0",
|
|
44
|
+
"vite": "^7.0.6",
|
|
45
|
+
"vitest": "3.2.4",
|
|
46
|
+
"vue": "3.5.18",
|
|
47
|
+
"@nuxt/eslint-config": "^1.7.1"
|
|
48
48
|
},
|
|
49
|
-
"packageManager": "pnpm@
|
|
49
|
+
"packageManager": "pnpm@10.13.1"
|
|
50
50
|
}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highstate/designer-prod",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@babel/parser": "7.28.
|
|
7
|
+
"@babel/parser": "7.28.3",
|
|
8
8
|
"@trpc/server": "11.4.3",
|
|
9
|
-
"@vue/compiler-core": "3.5.
|
|
10
|
-
"@vue/compiler-dom": "3.5.
|
|
11
|
-
"@vue/compiler-ssr": "3.5.
|
|
12
|
-
"@vue/reactivity": "3.5.
|
|
13
|
-
"@vue/runtime-core": "3.5.
|
|
14
|
-
"@vue/runtime-dom": "3.5.
|
|
15
|
-
"@vue/server-renderer": "3.5.
|
|
16
|
-
"@vue/shared": "3.5.
|
|
9
|
+
"@vue/compiler-core": "3.5.20",
|
|
10
|
+
"@vue/compiler-dom": "3.5.20",
|
|
11
|
+
"@vue/compiler-ssr": "3.5.20",
|
|
12
|
+
"@vue/reactivity": "3.5.20",
|
|
13
|
+
"@vue/runtime-core": "3.5.20",
|
|
14
|
+
"@vue/runtime-dom": "3.5.20",
|
|
15
|
+
"@vue/server-renderer": "3.5.20",
|
|
16
|
+
"@vue/shared": "3.5.20",
|
|
17
|
+
"copy-anything": "3.0.5",
|
|
17
18
|
"devalue": "5.1.1",
|
|
18
19
|
"entities": "4.5.0",
|
|
19
20
|
"estree-walker": "2.0.2",
|
|
20
21
|
"hookable": "5.5.3",
|
|
22
|
+
"is-what": "4.1.16",
|
|
21
23
|
"source-map-js": "1.2.1",
|
|
24
|
+
"superjson": "2.2.2",
|
|
22
25
|
"ufo": "1.6.1",
|
|
23
|
-
"unhead": "2.0.
|
|
24
|
-
"vue": "3.5.
|
|
25
|
-
"vue-bundle-renderer": "2.1.
|
|
26
|
+
"unhead": "2.0.14",
|
|
27
|
+
"vue": "3.5.20",
|
|
28
|
+
"vue-bundle-renderer": "2.1.2",
|
|
26
29
|
"ws": "8.18.3",
|
|
27
30
|
"zod": "4.0.5"
|
|
28
31
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highstate/designer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
|
-
"dev": "FORCE_COLOR=true nuxt dev --host | pino-pretty",
|
|
7
|
+
"dev": "FORCE_COLOR=true NODE_OPTIONS=--trace-warnings nuxt dev --host | pino-pretty",
|
|
8
8
|
"generate": "nuxt generate",
|
|
9
9
|
"preview": "nuxt preview",
|
|
10
10
|
"prepare": "nuxt prepare"
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@xterm/addon-web-links": "^0.11.0",
|
|
45
45
|
"@xterm/addon-webgl": "^0.18.0",
|
|
46
46
|
"@xterm/xterm": "^5.5.0",
|
|
47
|
+
"age-encryption": "^0.2.3",
|
|
47
48
|
"async-mutex": "^0.5.0",
|
|
48
49
|
"codemirror": "^6.0.1",
|
|
49
50
|
"dockview-vue": "^4.2.3",
|
|
@@ -56,32 +57,35 @@
|
|
|
56
57
|
"marked": "^15.0.7",
|
|
57
58
|
"marked-highlight": "^2.2.1",
|
|
58
59
|
"monaco-editor": "^0.52.2",
|
|
59
|
-
"
|
|
60
|
-
"nuxt": "^4.0.
|
|
60
|
+
"monaco-yaml": "^5.3.1",
|
|
61
|
+
"nuxt": "^4.0.3",
|
|
61
62
|
"pinia": "^2.2.7",
|
|
62
63
|
"pino": "^9.6.0",
|
|
63
64
|
"pino-pretty": "^13.0.0",
|
|
64
65
|
"qrcode": "^1.5.4",
|
|
65
66
|
"remeda": "^2.21.0",
|
|
66
67
|
"shiki": "^3.3.0",
|
|
68
|
+
"superjson": "^2.2.2",
|
|
67
69
|
"trpc-nuxt": "^1.0.4",
|
|
68
70
|
"typescript": "^5.7.2",
|
|
69
71
|
"vite-plugin-node-polyfills": "^0.24.0",
|
|
72
|
+
"vitest": "^3.2.4",
|
|
70
73
|
"vue": "^3.5.13",
|
|
71
74
|
"vue-codemirror6": "^1.3.8",
|
|
72
75
|
"vue-qrcode": "^2.2.2",
|
|
73
76
|
"vue-router": "latest",
|
|
74
|
-
"vuetify-nuxt-module": "^0.18.
|
|
77
|
+
"vuetify-nuxt-module": "^0.18.7",
|
|
75
78
|
"ws": "^8.18.0",
|
|
76
79
|
"yaml": "^2.7.0",
|
|
77
|
-
"zod": "^4.0.5"
|
|
80
|
+
"zod": "^4.0.5",
|
|
81
|
+
"zxcvbn-typescript": "^5.0.1"
|
|
78
82
|
},
|
|
79
83
|
"dependencies": {
|
|
80
|
-
"@highstate/backend": "^0.9.
|
|
81
|
-
"@highstate/backend-api": "^0.9.
|
|
82
|
-
"@highstate/contract": "^0.9.
|
|
83
|
-
"
|
|
84
|
-
"
|
|
84
|
+
"@highstate/backend": "^0.9.19",
|
|
85
|
+
"@highstate/backend-api": "^0.9.19",
|
|
86
|
+
"@highstate/contract": "^0.9.19",
|
|
87
|
+
"@paralleldrive/cuid2": "^2.2.2",
|
|
88
|
+
"@prisma/internals": "^6.14.0"
|
|
85
89
|
},
|
|
86
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "e77d292335556c6e5b6275acda1a3d1609d786a1"
|
|
87
91
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as m,_ as N}from"./B_wu9Dqv.js";import{l as P,m as U,_ as A}from"./UQxqNY8s.js";import{F as D,aL as g,a as $,j as v,L as E,W as H,$ as a,X as u,a1 as r,G as i,b as _,aM as C,a2 as S,a3 as y,a0 as O}from"./CYRjgJw9.js";import"./SQImb3Xm.js";import"./0A0GXgOL.js";const Q={class:"instances-page"},R={class:"instances-table"},W={class:"d-flex align-center"},q={class:"d-flex flex-column"},F={class:"text-body-1 font-weight-medium"},G={class:"text-caption text-medium-emphasis"},M=D({__name:"instances",async setup(X){let n,o;const{projectStore:c,instancesStore:x,libraryStore:p}=P();c.initializing?([n,o]=g(()=>U(()=>c.initialized).toBe(!0)),await n,o(),c.addLibraryRoot()):([n,o]=g(()=>c.initialize1()),await n,o(),[n,o]=g(()=>c.initialize2()),await n,o());const k=$({search:void 0,count:10,sort:"asc"}),{itemsPerPage:d,sortBy:f,searchQuery:l}=useSettingsTable(k),z=[m.name,m.id,m.created,{title:"Type",key:"type",sortable:!1},{title:"Status",key:"status",sortable:!1},m.actions],T=v(()=>Array.from(x.instances.values()).map(e=>({...e,meta:{displayName:e.name,description:`Instance of ${e.type}`,createdAt:new Date().getTime(),updatedAt:new Date().getTime(),id:e.id}}))),b=v(()=>{let e=T.value;if(l.value){const t=l.value.toLowerCase();e=e.filter(s=>s.name.toLowerCase().includes(t)||s.id.toLowerCase().includes(t)||s.type.toLowerCase().includes(t))}return e}),V=v(()=>{const t=d.value;return b.value.slice(0,t)}),L=e=>p.library.components[e.type]?.meta.title||e.type||"Unknown",h=e=>{const t=x.getValidationOutput(e.id);return t?.status==="error"?{text:"Error",color:"error"}:t?.status==="warning"?{text:"Warning",color:"warning"}:t?.status==="ok"?{text:"Valid",color:"success"}:{text:"Unknown",color:"grey"}},w=e=>p.library.components[e.type]?.meta.icon||"mdi-cube-outline",I=e=>p.library.components[e.type]?.meta.iconColor||"primary",j=e=>e.name||"Unnamed Instance",B=e=>p.library.components[e.type]?.meta.description||`Instance of ${e.type}`;return(e,t)=>(H(),E("div",Q,[t[4]||(t[4]=a("div",{class:"page-header mb-6"},[a("div",{class:"d-flex align-center justify-space-between"},[a("div",null,[a("h2",{class:"text-h5 font-weight-medium mb-1"},"Project Instances"),a("p",{class:"text-body-2 text-medium-emphasis ma-0"}," View and manage instances in your project. Instances are deployed components that make up your infrastructure. ")])])],-1)),a("div",R,[u(i(N),{"items-per-page":i(d),"onUpdate:itemsPerPage":t[0]||(t[0]=s=>_(d)?d.value=s:null),"sort-by":i(f),"onUpdate:sortBy":t[1]||(t[1]=s=>_(f)?f.value=s:null),search:i(l),"onUpdate:search":t[2]||(t[2]=s=>_(l)?l.value=s:null),headers:z,items:i(V),"items-length":i(b).length,loading:!1,"search-placeholder":"Search instances..."},{"item.meta.title":r(({item:s})=>[a("div",W,[u(O,{icon:w(s),color:I(s),class:"mr-4",size:"24"},null,8,["icon","color"]),a("div",q,[a("div",F,y(j(s)),1),a("div",G,y(B(s)),1)])])]),"item.type":r(({item:s})=>[u(C,{color:I(s),"prepend-icon":w(s),variant:"flat",size:"small",class:"text-capitalize"},{default:r(()=>[S(y(L(s)),1)]),_:2},1032,["color","prepend-icon"])]),"item.status":r(({item:s})=>[u(C,{color:h(s).color,variant:"flat",size:"small"},{default:r(()=>[S(y(h(s).text),1)]),_:2},1032,["color"])]),"item.actions":r(({})=>t[3]||(t[3]=[a("div",{class:"text-caption text-medium-emphasis"},"No actions",-1)])),_:2},1032,["items-per-page","sort-by","search","items","items-length"])])]))}}),te=A(M,[["__scopeId","data-v-cc27d2d3"]]);export{te as default};
|