@forsakringskassan/vite-lib-config 5.13.5 → 5.13.6
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/fallback.mjs +10 -10
- package/package.json +1 -1
package/dist/fallback.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.fallback[data-v-090dc392]{font-family:system-ui,Arial,sans-serif;font-weight:400}header[data-v-090dc392]{color:#fff;background-color:#116a3e;padding:1rem}a[data-v-090dc392]{color:#2358af;text-decoration:none}a[data-v-090dc392]:hover{color:#1b478d;text-decoration:underline}h1[data-v-090dc392]{margin:0;font-size:1.5rem}.fallback-content[data-v-090dc392]{padding:1rem}html,body{margin:0;padding:0}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
import { Fragment as e, createBlock as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, getCurrentInstance as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
3
3
|
import { RouterLink as p, RouterView as m, createRouter as h, createWebHashHistory as g } from "vue-router";
|
|
4
4
|
// src/fallback/FallbackHome.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var _ = { key: 0 },
|
|
5
|
+
var _ = { class: "fallback" }, v = { class: "fallback-content" }, y = { key: 0 }, b = { key: 1 }, x = /*#__PURE__*/ ((e, t) => {
|
|
6
6
|
let n = e.__vccOpts || e;
|
|
7
7
|
for (let [e, r] of t) n[e] = r;
|
|
8
8
|
return n;
|
|
@@ -13,11 +13,11 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
13
13
|
examples: {}
|
|
14
14
|
},
|
|
15
15
|
setup(t) {
|
|
16
|
-
return (o, s) => (c(), n("div",
|
|
16
|
+
return (o, s) => (c(), n("div", _, [r("header", null, [r("h1", null, "Start - " + u(t.name), 1)]), r("div", v, [t.examples.length === 0 ? (c(), n("p", y, [...s[0] ||= [
|
|
17
17
|
i("Create a new vue example at ", -1),
|
|
18
18
|
r("b", null, "./src/examples/**", -1),
|
|
19
19
|
i(" to get started.", -1)
|
|
20
|
-
]])) : (c(), n("div",
|
|
20
|
+
]])) : (c(), n("div", b, [
|
|
21
21
|
s[1] ||= r("p", null, "Start one of the following examples directly:", -1),
|
|
22
22
|
r("ul", null, [(c(!0), n(e, null, l(t.examples, (e) => (c(), n("li", { key: e }, [a(d(p), { to: `/${e}` }, {
|
|
23
23
|
default: f(() => [i(u(e), 1)]),
|
|
@@ -25,9 +25,9 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
25
25
|
}, 1032, ["to"])]))), 128))]),
|
|
26
26
|
s[2] ||= r("p", null, "Or from your terminal, type:", -1),
|
|
27
27
|
r("pre", null, "$ npm start -- " + u(t.examples[0]), 1)
|
|
28
|
-
]))]));
|
|
28
|
+
]))])]));
|
|
29
29
|
}
|
|
30
|
-
}), [["__scopeId", "data-v-
|
|
30
|
+
}), [["__scopeId", "data-v-090dc392"]]), S = /* @__PURE__ */ o({
|
|
31
31
|
__name: "NotFound",
|
|
32
32
|
setup(e) {
|
|
33
33
|
return (e, t) => (c(), n("div", null, [
|
|
@@ -39,7 +39,7 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
39
39
|
})
|
|
40
40
|
]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), C = /* @__PURE__ */ o({
|
|
43
43
|
__name: "App",
|
|
44
44
|
setup(e) {
|
|
45
45
|
let n = __AVAILABLE_EXAMPLES__, r = __PACKAGE_NAME__, i = n.map((e) => ({
|
|
@@ -53,7 +53,7 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
53
53
|
routes: [
|
|
54
54
|
{
|
|
55
55
|
path: "/",
|
|
56
|
-
component:
|
|
56
|
+
component: x,
|
|
57
57
|
props: {
|
|
58
58
|
examples: n,
|
|
59
59
|
name: r
|
|
@@ -62,11 +62,11 @@ var _ = { key: 0 }, v = { key: 1 }, y = /*#__PURE__*/ ((e, t) => {
|
|
|
62
62
|
...i,
|
|
63
63
|
{
|
|
64
64
|
path: "/:pathMatch(.*)*",
|
|
65
|
-
component:
|
|
65
|
+
component: S
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
});
|
|
69
69
|
return s().appContext.app.use(a), (e, n) => (c(), t(d(m)));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
export {
|
|
72
|
+
export { C as default };
|