@panomc/theme-core 1.2.1-dev.3 → 1.3.0-dev.1
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/assets/css/pano-fallback.css +8 -24
- package/lang/en-US.json +2 -1
- package/lang/ru.json +2 -1
- package/lang/tr.json +2 -1
- package/package.json +3 -3
- package/skin-contract.json +2 -2
- package/src/kit/vite-config.js +9 -0
- package/src/lib/__tests__/contentI18n.test.js +20 -0
- package/src/lib/__tests__/engineParts.test.js +16 -0
- package/src/lib/__tests__/fixtures/engine-parts.ssr.json +9 -9
- package/src/lib/__tests__/fixtures/engine-sidebars.ssr.json +10 -10
- package/src/lib/__tests__/pageTitle.util.test.js +9 -1
- package/src/lib/__tests__/profileNav.util.test.js +4 -4
- package/src/lib/__tests__/skinContract.test.js +1 -1
- package/src/lib/__tests__/tc03.test.js +14 -4
- package/src/lib/__tests__/ticketFields.test.js +16 -0
- package/src/lib/components/Breadcrumb.svelte +2 -0
- package/src/lib/components/Navbar.svelte +1 -1
- package/src/lib/components/OnlineAdmins.svelte +5 -7
- package/src/lib/components/sidebars/ProfileNavCard.svelte +5 -2
- package/src/lib/components/sidebars/profileNav.util.js +3 -2
- package/src/lib/contentI18n.js +8 -0
- package/src/lib/pageTitle.util.js +8 -1
- package/src/lib/pages/ticket/CreateTicketPage.svelte +4 -1
- package/src/lib/ticketFields.js +28 -0
- package/src/lib/views/CreateTicketView.svelte +39 -21
- package/src/lib/views/NotificationsView.svelte +1 -1
- package/src/lib/views/TicketDetailView.svelte +1 -1
- package/src/lib/views/parts/Breadcrumb.svelte +13 -6
- package/src/lib/views/parts/Main.svelte +37 -1
- package/src/lib/views/parts/Posts.svelte +5 -0
- package/src/lib/views/parts/Tickets.svelte +1 -1
- package/src/lib/views/parts/engine-views.generated.js +1 -1
|
@@ -2149,30 +2149,6 @@
|
|
|
2149
2149
|
color: var(--bs-list-group-action-active-color);
|
|
2150
2150
|
background-color: var(--bs-list-group-action-active-bg);
|
|
2151
2151
|
}
|
|
2152
|
-
@media (min-width: 768px) {
|
|
2153
|
-
.list-group-horizontal-md {
|
|
2154
|
-
flex-direction: row;
|
|
2155
|
-
}
|
|
2156
|
-
.list-group-horizontal-md > .list-group-item:first-child:not(:last-child) {
|
|
2157
|
-
border-bottom-left-radius: var(--bs-list-group-border-radius);
|
|
2158
|
-
border-top-right-radius: 0;
|
|
2159
|
-
}
|
|
2160
|
-
.list-group-horizontal-md > .list-group-item:last-child:not(:first-child) {
|
|
2161
|
-
border-top-right-radius: var(--bs-list-group-border-radius);
|
|
2162
|
-
border-bottom-left-radius: 0;
|
|
2163
|
-
}
|
|
2164
|
-
.list-group-horizontal-md > .list-group-item.active {
|
|
2165
|
-
margin-top: 0;
|
|
2166
|
-
}
|
|
2167
|
-
.list-group-horizontal-md > .list-group-item + .list-group-item {
|
|
2168
|
-
border-top-width: var(--bs-list-group-border-width);
|
|
2169
|
-
border-left-width: 0;
|
|
2170
|
-
}
|
|
2171
|
-
.list-group-horizontal-md > .list-group-item + .list-group-item.active {
|
|
2172
|
-
margin-left: calc(-1 * var(--bs-list-group-border-width));
|
|
2173
|
-
border-left-width: var(--bs-list-group-border-width);
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
2152
|
.list-group-flush {
|
|
2177
2153
|
border-radius: 0;
|
|
2178
2154
|
}
|
|
@@ -2721,6 +2697,10 @@
|
|
|
2721
2697
|
color: #fff;
|
|
2722
2698
|
background-color: color-mix(in srgb, var(--bs-warning) calc(var(--bs-bg-opacity, 1) * 100%), transparent);
|
|
2723
2699
|
}
|
|
2700
|
+
.text-bg-info {
|
|
2701
|
+
color: #fff;
|
|
2702
|
+
background-color: color-mix(in srgb, var(--bs-info) calc(var(--bs-bg-opacity, 1) * 100%), transparent);
|
|
2703
|
+
}
|
|
2724
2704
|
.link-primary {
|
|
2725
2705
|
color: color-mix(in srgb, var(--bs-primary) calc(var(--bs-link-opacity, 1) * 100%), transparent);
|
|
2726
2706
|
text-decoration-color: color-mix(in srgb, var(--bs-primary) calc(var(--bs-link-underline-opacity, 1) * 100%), transparent);
|
|
@@ -3256,5 +3236,9 @@
|
|
|
3256
3236
|
background-color: var(--pano-color-warning);
|
|
3257
3237
|
color: #000;
|
|
3258
3238
|
}
|
|
3239
|
+
.text-bg-info {
|
|
3240
|
+
background-color: var(--pano-color-info);
|
|
3241
|
+
color: #000;
|
|
3242
|
+
}
|
|
3259
3243
|
}
|
|
3260
3244
|
}
|
package/lang/en-US.json
CHANGED
package/lang/ru.json
CHANGED
|
@@ -194,7 +194,8 @@
|
|
|
194
194
|
"title": "Создать тикет поддержки",
|
|
195
195
|
"inputs": {
|
|
196
196
|
"title": "Заголовок",
|
|
197
|
-
"no-category": "Без категории"
|
|
197
|
+
"no-category": "Без категории",
|
|
198
|
+
"description": "Подробно опишите вашу проблему..."
|
|
198
199
|
},
|
|
199
200
|
"fields": {
|
|
200
201
|
"choose": "Выберите...",
|
package/lang/tr.json
CHANGED
|
@@ -194,7 +194,8 @@
|
|
|
194
194
|
"title": "Destek Talebi Oluştur",
|
|
195
195
|
"inputs": {
|
|
196
196
|
"title": "Başlık",
|
|
197
|
-
"no-category": "Kategorisiz"
|
|
197
|
+
"no-category": "Kategorisiz",
|
|
198
|
+
"description": "Sorununuzu ayrıntılı olarak anlatın..."
|
|
198
199
|
},
|
|
199
200
|
"fields": {
|
|
200
201
|
"choose": "Seçin...",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panomc/theme-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-dev.1",
|
|
4
4
|
"description": "The Pano theme engine: hooks factories, plugin engine, headless page controllers, default views and the theme CLI. Themes depend on this package instead of forking vanilla-theme.",
|
|
5
5
|
"author": "PanoMC",
|
|
6
6
|
"pano": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@fortawesome/fontawesome-free": "^6.7.2"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@panomc/sdk": "^2.0.0-dev.
|
|
64
|
+
"@panomc/sdk": "^2.0.0-dev.1",
|
|
65
65
|
"@sveltejs/adapter-node": "^6.0.0",
|
|
66
66
|
"@sveltejs/kit": "^3.1.0",
|
|
67
67
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"vite": "^8.3.4"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@panomc/sdk": "2.0.0-dev.
|
|
74
|
+
"@panomc/sdk": "2.0.0-dev.1",
|
|
75
75
|
"@sveltejs/adapter-node": "^6.0.0",
|
|
76
76
|
"@sveltejs/kit": "^3.1.0",
|
|
77
77
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
package/skin-contract.json
CHANGED
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
"hooks": [],
|
|
607
607
|
"slotProps": {},
|
|
608
608
|
"props": {
|
|
609
|
-
"items": "array — the normalized trail [{ label, href?, icon?, html }]; label is already translated, the last item is the current page, an empty array renders nothing"
|
|
609
|
+
"items": "array — the normalized trail [{ label, href?, icon?, html, variant? }]; label is already translated, variant='bootstrap' uses plain Bootstrap 5 styling, the last item is the current page, an empty array renders nothing"
|
|
610
610
|
},
|
|
611
611
|
"locked": {
|
|
612
612
|
"contract": 1,
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
"kind": "component",
|
|
636
636
|
"contract": 1,
|
|
637
637
|
"source": "src/lib/views/parts/Posts.svelte",
|
|
638
|
-
"uses": ["Post"],
|
|
638
|
+
"uses": ["NoContent", "Post"],
|
|
639
639
|
"hooks": [],
|
|
640
640
|
"slotProps": {},
|
|
641
641
|
"props": {
|
package/src/kit/vite-config.js
CHANGED
|
@@ -379,6 +379,15 @@ export function createViteConfig(opts = {}) {
|
|
|
379
379
|
: {}),
|
|
380
380
|
},
|
|
381
381
|
allowedHosts: true,
|
|
382
|
+
watch: {
|
|
383
|
+
// plugins/ holds the installed plugin bundles. They are read from disk per request
|
|
384
|
+
// (routes/plugins-*-file.js), never through vite's module graph, so the watcher has
|
|
385
|
+
// nothing to do there. Watching it is harmful on Windows: a plugin reinstall deletes and
|
|
386
|
+
// recreates plugins/<id>/client and server under a running dev server, the watchers on
|
|
387
|
+
// the old directories start firing endless "rename" events, and every vite process
|
|
388
|
+
// rescans the tree at ~2 CPU cores until it is restarted.
|
|
389
|
+
ignored: [path.resolve(process.cwd(), "plugins").replace(/\\/g, "/") + "/**"],
|
|
390
|
+
},
|
|
382
391
|
hmr: {
|
|
383
392
|
path: base ? `${base}/` : "/",
|
|
384
393
|
},
|
|
@@ -214,3 +214,23 @@ describe("localizePosts", () => {
|
|
|
214
214
|
expect(localizePosts(undefined, "en-US")).toEqual([]);
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
|
+
|
|
218
|
+
describe("localizeCategory form placeholders", () => {
|
|
219
|
+
test("the placeholders of the category's form follow the locale", () => {
|
|
220
|
+
const category = {
|
|
221
|
+
id: 1,
|
|
222
|
+
title: "Bugs",
|
|
223
|
+
description: "",
|
|
224
|
+
form: { titleEnabled: true, titlePlaceholder: "Kısa özet", messageEnabled: true, messagePlaceholder: "" },
|
|
225
|
+
i18n: { "en-US": { titlePlaceholder: "Short summary", messagePlaceholder: "What happened?" } }
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
expect(localizeCategory(category, "en-US").form).toEqual({
|
|
229
|
+
titleEnabled: true,
|
|
230
|
+
titlePlaceholder: "Short summary",
|
|
231
|
+
messageEnabled: true,
|
|
232
|
+
messagePlaceholder: "What happened?"
|
|
233
|
+
});
|
|
234
|
+
expect(localizeCategory(category, "tr").form.titlePlaceholder).toBe("Kısa özet");
|
|
235
|
+
});
|
|
236
|
+
});
|
|
@@ -144,6 +144,22 @@ describe.skipIf(!svelteDir)("engine parts: an override renders", () => {
|
|
|
144
144
|
expect(html).toContain("row g-3");
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
+
test("a Bootstrap breadcrumb variant uses the plain Bootstrap 5 markup", async () => {
|
|
148
|
+
registry.resetRegistryForTests();
|
|
149
|
+
registry.setThemeConfig({});
|
|
150
|
+
const html = await renderPart({
|
|
151
|
+
svelteDir,
|
|
152
|
+
entry: "$pano/lib/components/Breadcrumb.svelte",
|
|
153
|
+
context: new Map([
|
|
154
|
+
["breadcrumbs", writable([{ label: "Store", href: "/store", variant: "bootstrap" }, { label: "Product" }])],
|
|
155
|
+
]),
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
expect(html).toMatch(/<ol class="breadcrumb[ "]/);
|
|
159
|
+
expect(html).not.toContain("justify-content-center");
|
|
160
|
+
expect(html).not.toContain("pano-breadcrumb__badge");
|
|
161
|
+
});
|
|
162
|
+
|
|
147
163
|
test("an override of Main receives the resolved props and the slot", async () => {
|
|
148
164
|
const html = await renderWithOverride(
|
|
149
165
|
"Main",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Main/default": "<!--[--><!--[--><main class=\"pano-main container\"><!--[0--><div class=\"row\"><div class=\"col-12 mb-3\"><!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->home.title<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----></div></div><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[--><aside class=\"stub-sidebar\" data-side=\"right\" data-foo=\"1\"></aside><!--]--><!--]--> <div class=\"col-lg-8\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
3
|
-
"Main/left-sidebar-from-props": "<!--[--><!--[--><main class=\"pano-main container\"><!--[0--><div class=\"row\"><div class=\"col-12 mb-3\"><!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->Raw<!--]--><!--]--><!--]--></h1> <!--[0--><p class=\"mb-0 mt-2 opacity-75\"><!--[-1-->Sub<!--]--></p><!--]--> <!--[--><!--]--></div><!--]--><!----></div></div><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[--><aside class=\"stub-sidebar\" data-side=\"left\" data-foo=\"\"></aside><!--]--><!--]--> <div class=\"col-lg-8\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
4
|
-
"Main/no-sidebar-setting": "<!--[--><!--[--><main class=\"pano-main container\"><!--[-1--><!--]--> <div class=\"row gx-3 align-items-start\"><!--[-1--><!--]--> <div class=\"col\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
5
|
-
"Main/hidden-title-left-setting": "<!--[--><!--[--><main class=\"pano-main container\"><!--[-1--><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[--><aside class=\"stub-sidebar\" data-side=\"left\" data-foo=\"\"></aside><!--]--><!--]--> <div class=\"col-lg-8\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
6
|
-
"Main/no-sidebar-component": "<!--[--><!--[--><main class=\"pano-main container\"><!--[0--><div class=\"row\"><div class=\"col-12 mb-3\"><!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->t<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----></div></div><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[!--><!--]--><!--]--> <div><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
2
|
+
"Main/default": "<!--[--><!--[--><main class=\"pano-main container svelte-1lhcjca\"><!--[-1--><!--]--> <!--[0--><div class=\"row\"><div class=\"col-12 mb-3\"><!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->home.title<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----></div></div><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[--><aside class=\"stub-sidebar\" data-side=\"right\" data-foo=\"1\"></aside><!--]--><!--]--> <div class=\"col-lg-8\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
3
|
+
"Main/left-sidebar-from-props": "<!--[--><!--[--><main class=\"pano-main container svelte-1lhcjca\"><!--[-1--><!--]--> <!--[0--><div class=\"row\"><div class=\"col-12 mb-3\"><!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->Raw<!--]--><!--]--><!--]--></h1> <!--[0--><p class=\"mb-0 mt-2 opacity-75\"><!--[-1-->Sub<!--]--></p><!--]--> <!--[--><!--]--></div><!--]--><!----></div></div><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[--><aside class=\"stub-sidebar\" data-side=\"left\" data-foo=\"\"></aside><!--]--><!--]--> <div class=\"col-lg-8\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
4
|
+
"Main/no-sidebar-setting": "<!--[--><!--[--><main class=\"pano-main container svelte-1lhcjca\"><!--[-1--><!--]--> <!--[-1--><!--]--> <div class=\"row gx-3 align-items-start\"><!--[-1--><!--]--> <div class=\"col\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
5
|
+
"Main/hidden-title-left-setting": "<!--[--><!--[--><main class=\"pano-main container svelte-1lhcjca\"><!--[-1--><!--]--> <!--[-1--><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[--><aside class=\"stub-sidebar\" data-side=\"left\" data-foo=\"\"></aside><!--]--><!--]--> <div class=\"col-lg-8\"><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
6
|
+
"Main/no-sidebar-component": "<!--[--><!--[--><main class=\"pano-main container svelte-1lhcjca\"><!--[-1--><!--]--> <!--[0--><div class=\"row\"><div class=\"col-12 mb-3\"><!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->t<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----></div></div><!--]--> <div class=\"row gx-3 align-items-start\"><!--[0--><!--[!--><!--]--><!--]--> <div><!--[--><!--[--><p id=\"slot\">content</p><!--]--><!--]--></div></div></main><!--]--><!--]-->",
|
|
7
7
|
"Sidebar/default": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><i>w</i><!--]--><!--]--></aside><!--]--><!--]-->",
|
|
8
8
|
"Sidebar/left": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><i>w</i><!--]--><!--]--></aside><!--]--><!--]-->",
|
|
9
|
-
"Breadcrumb/items": "<!--[--><!--[--><!--[0--><nav class=\"pano-breadcrumb\" aria-label=\"breadcrumb\"><ol class=\"breadcrumb justify-content-center mb-0 svelte-1dyslg6\"><!--[--><li class=\"breadcrumb-item\"><!--[0--><!--[-1-->nav.home<!--]--><!--]--></li><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/profile\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1\"><!--[0--><i class=\"fas fa-user svelte-1dyslg6\"></i><!--]--></a><!--]--></li><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/raw\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1\"><!--[1--><!--1mtpokm--><b>Raw</b><!----><!--]--></a><!--]--></li><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/plain\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1\"><!--[-1-->Plain<!--]--></a><!--]--></li><li class=\"breadcrumb-item active\" aria-current=\"page\"><!--[0--><!--[-1-->nav.last<!--]--><!--]--></li><!--]--></ol></nav><!--]--><!--]--><!--]-->",
|
|
10
|
-
"Breadcrumb/last-icon-html": "<!--[--><!--[--><!--[0--><nav class=\"pano-breadcrumb\" aria-label=\"breadcrumb\"><ol class=\"breadcrumb justify-content-center mb-0 svelte-1dyslg6\"><!--[--><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/x\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1\"><!--[-1-->x<!--]--></a><!--]--></li><li class=\"breadcrumb-item active\" aria-current=\"page\"><!--[0--><!--[1--><!--14ktohh--><i>y</i><!----><!--]--><!--]--></li><!--]--></ol></nav><!--]--><!--]--><!--]-->",
|
|
9
|
+
"Breadcrumb/items": "<!--[--><!--[--><!--[0--><nav class=\"pano-breadcrumb svelte-1dyslg6\" aria-label=\"breadcrumb\"><ol class=\"breadcrumb justify-content-center mb-0 svelte-1dyslg6\"><!--[--><li class=\"breadcrumb-item\"><!--[0--><!--[-1-->nav.home<!--]--><!--]--></li><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/profile\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1 svelte-1dyslg6\"><!--[0--><i class=\"fas fa-user svelte-1dyslg6\"></i><!--]--></a><!--]--></li><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/raw\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1 svelte-1dyslg6\"><!--[1--><!--1mtpokm--><b>Raw</b><!----><!--]--></a><!--]--></li><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/plain\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1 svelte-1dyslg6\"><!--[-1-->Plain<!--]--></a><!--]--></li><li class=\"breadcrumb-item active\" aria-current=\"page\"><!--[0--><!--[-1-->nav.last<!--]--><!--]--></li><!--]--></ol></nav><!--]--><!--]--><!--]-->",
|
|
10
|
+
"Breadcrumb/last-icon-html": "<!--[--><!--[--><!--[0--><nav class=\"pano-breadcrumb svelte-1dyslg6\" aria-label=\"breadcrumb\"><ol class=\"breadcrumb justify-content-center mb-0 svelte-1dyslg6\"><!--[--><li class=\"breadcrumb-item\"><!--[-1--><a href=\"/x\" class=\"pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1 svelte-1dyslg6\"><!--[-1-->x<!--]--></a><!--]--></li><li class=\"breadcrumb-item active\" aria-current=\"page\"><!--[0--><!--[1--><!--14ktohh--><i>y</i><!----><!--]--><!--]--></li><!--]--></ol></nav><!--]--><!--]--><!--]-->",
|
|
11
11
|
"Breadcrumb/empty": "<!--[--><!--[--><!--[-1--><!--]--><!--]--><!--]-->",
|
|
12
12
|
"Breadcrumb/not-array": "<!--[--><!--[--><!--[-1--><!--]--><!--]--><!--]-->",
|
|
13
13
|
"Post/overlay-thumbnail": "<!--[--><!--[--><div class=\"pano-post card vanilla-post-card h-100 rounded-4 focus-ring position-relative overflow-hidden svelte-1c4r335 post-clickable is-overlay has-thumbnail\"><!--[0--><img src=\"/img/p1.png\" class=\"pano-post__image card-img h-100 object-fit-cover svelte-1c4r335\" alt=\"Post 1\"/><!--]--> <!--[-1--><!--]--> <div class=\"pano-post__body d-flex flex-column justify-content-end svelte-1c4r335 card-img-overlay\"><div class=\"d-flex justify-content-between align-items-start mb-3 gap-2 mt-auto\"><a class=\"text-decoration-none rounded text-reset flex-grow-1 z-1 stretched-link\" href=\"/post/post-1\"><h3 class=\"pano-post__title mb-0 text-break h4 fw-bold clamp-title svelte-1c4r335\" title=\"Post 1\">Post 1</h3></a></div> <div class=\"card-text text-break word-break mb-4 svelte-1c4r335 clamp-text\"><!--[-1-->Body 1 lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem ...<!--]--></div> <div class=\"d-flex align-items-center justify-content-between\"><!--[-1--><!--[0--><a class=\"pano-post__badge badge category-badge text-decoration-none rounded-pill focus-ring z-2 svelte-1c4r335\" href=\"/?category=cat-1\">News</a><!--]--> <div class=\"d-flex align-items-center gap-2 z-2\"><span class=\"date-stub small\">1700000000000</span><!----> <a class=\"d-inline-block rounded focus-ring rounded-circle\" href=\"/player/writer1\"><img src=\"/api/v1/profile/picture/writer1?v7\" alt=\"writer1\" width=\"28\" height=\"28\" class=\"pano-post__image-4 rounded-circle border border-2 border-white\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!--]-->",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"Post/detail": "<!--[--><!--[--><div class=\"pano-post card vanilla-post-card h-100 rounded-4 focus-ring position-relative overflow-hidden svelte-1c4r335 post-detail\"><!--[-1--><!--]--> <!--[0--><div class=\"post-card-thumbnail-wrapper d-block svelte-1c4r335\"><div class=\"ratio ratio-16x9\"><img src=\"/img/p1.png\" class=\"pano-post__image-2 card-img-top svelte-1c4r335\" alt=\"Post 1\" title=\"Post 1\"/></div></div><!--]--> <div class=\"pano-post__body d-flex flex-column justify-content-end svelte-1c4r335 card-body\"><div class=\"d-flex justify-content-between align-items-start mb-3 gap-2 mt-auto\"><a class=\"text-decoration-none rounded text-reset flex-grow-1 z-1\" href=\"/post/post-1\"><h3 class=\"pano-post__title mb-0 text-break h4 fw-bold clamp-title svelte-1c4r335\" title=\"Post 1\">Post 1</h3></a></div> <div class=\"card-text text-break word-break mb-4 svelte-1c4r335 text-muted\"><!--[0--><!--1a4siq6--><p>Body <b>1</b> lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem </p><!----><!--]--></div> <div class=\"d-flex align-items-center justify-content-between\"><!--[0--><!--[0--><div class=\"text-muted small d-flex align-items-center\"><i class=\"fas fa-eye me-2\"></i> 10</div><!--]--> <div class=\"d-flex align-items-center gap-2\"><span class=\"date-stub text-muted small\">1700000000000</span><!----> <a href=\"/player/writer1\" class=\"d-inline-block rounded focus-ring rounded-circle\"><img src=\"/api/v1/profile/picture/writer1?v7\" alt=\"writer1\" width=\"32\" height=\"32\" class=\"pano-post__image-3 rounded-circle border\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!--]-->",
|
|
17
17
|
"Post/detail-settings-off": "<!--[--><!--[--><div class=\"pano-post card vanilla-post-card h-100 rounded-4 focus-ring position-relative overflow-hidden svelte-1c4r335 post-detail\"><!--[-1--><!--]--> <!--[-1--><!--]--> <div class=\"pano-post__body d-flex flex-column justify-content-end svelte-1c4r335 card-body\"><div class=\"d-flex justify-content-between align-items-start mb-3 gap-2 mt-auto\"><a class=\"text-decoration-none rounded text-reset flex-grow-1 z-1\" href=\"/post/post-4\"><h3 class=\"pano-post__title mb-0 text-break h4 fw-bold clamp-title svelte-1c4r335\" title=\"Post 4\">Post 4</h3></a></div> <div class=\"card-text text-break word-break mb-4 svelte-1c4r335 text-muted\"><!--[0--><!--1n3k17x--><p>Body <b>4</b> lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem </p><!----><!--]--></div> <div class=\"d-flex align-items-center justify-content-between\"><!--[0--><!--[-1--><div></div><!--]--> <div class=\"d-flex align-items-center gap-2\"><span class=\"date-stub text-muted small\">1700000000000</span><!----> <a href=\"/player/writer4\" class=\"d-inline-block rounded focus-ring rounded-circle\" hidden=\"\"><img src=\"/api/v1/profile/picture/writer4?v7\" alt=\"writer4\" width=\"32\" height=\"32\" class=\"pano-post__image-3 rounded-circle border\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!--]-->",
|
|
18
18
|
"Posts/list": "<!--[--><!--[--><div class=\"pano-posts row g-3\"><!--[--><div class=\"col-md-6\"><!--[--><div class=\"pano-post card vanilla-post-card h-100 rounded-4 focus-ring position-relative overflow-hidden svelte-1c4r335 post-clickable is-overlay has-thumbnail\"><!--[0--><img src=\"/img/p1.png\" class=\"pano-post__image card-img h-100 object-fit-cover svelte-1c4r335\" alt=\"Post 1\"/><!--]--> <!--[-1--><!--]--> <div class=\"pano-post__body d-flex flex-column justify-content-end svelte-1c4r335 card-img-overlay\"><div class=\"d-flex justify-content-between align-items-start mb-3 gap-2 mt-auto\"><a class=\"text-decoration-none rounded text-reset flex-grow-1 z-1 stretched-link\" href=\"/post/post-1\"><h3 class=\"pano-post__title mb-0 text-break h4 fw-bold clamp-title svelte-1c4r335\" title=\"Post 1\">Post 1</h3></a></div> <div class=\"card-text text-break word-break mb-4 svelte-1c4r335 clamp-text\"><!--[-1-->Body 1 lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem ...<!--]--></div> <div class=\"d-flex align-items-center justify-content-between\"><!--[-1--><!--[0--><a class=\"pano-post__badge badge category-badge text-decoration-none rounded-pill focus-ring z-2 svelte-1c4r335\" href=\"/?category=cat-1\">News</a><!--]--> <div class=\"d-flex align-items-center gap-2 z-2\"><span class=\"date-stub small\">1700000000000</span><!----> <a class=\"d-inline-block rounded focus-ring rounded-circle\" href=\"/player/writer1\"><img src=\"/api/v1/profile/picture/writer1?v7\" alt=\"writer1\" width=\"28\" height=\"28\" class=\"pano-post__image-4 rounded-circle border border-2 border-white\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!----></div><div class=\"col-md-6\"><!--[--><div class=\"pano-post card vanilla-post-card h-100 rounded-4 focus-ring position-relative overflow-hidden svelte-1c4r335 post-clickable is-overlay\"><!--[-1--><!--]--> <!--[-1--><!--]--> <div class=\"pano-post__body d-flex flex-column justify-content-end svelte-1c4r335 card-img-overlay\"><div class=\"d-flex justify-content-between align-items-start mb-3 gap-2 mt-auto\"><a class=\"text-decoration-none rounded text-reset flex-grow-1 z-1 stretched-link\" href=\"/post/post-2\"><h3 class=\"pano-post__title mb-0 text-break h4 fw-bold clamp-title svelte-1c4r335\" title=\"Post 2\">Post 2</h3></a></div> <div class=\"card-text text-break word-break mb-4 svelte-1c4r335 text-muted clamp-text\"><!--[-1-->Body 2 lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem ...<!--]--></div> <div class=\"d-flex align-items-center justify-content-between\"><!--[-1--><!--[-1--><div></div><!--]--> <div class=\"d-flex align-items-center gap-2 z-2\"><span class=\"date-stub small\">1700000000000</span><!----> <a class=\"d-inline-block rounded focus-ring rounded-circle\" href=\"/player/writer2\"><img src=\"/api/v1/profile/picture/writer2?v7\" alt=\"writer2\" width=\"28\" height=\"28\" class=\"pano-post__image-4 rounded-circle border border-2 border-white\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!----></div><div class=\"col-md-6\"><!--[--><div class=\"pano-post card vanilla-post-card h-100 rounded-4 focus-ring position-relative overflow-hidden svelte-1c4r335 post-clickable is-overlay\"><!--[-1--><!--]--> <!--[-1--><!--]--> <div class=\"pano-post__body d-flex flex-column justify-content-end svelte-1c4r335 card-img-overlay\"><div class=\"d-flex justify-content-between align-items-start mb-3 gap-2 mt-auto\"><a class=\"text-decoration-none rounded text-reset flex-grow-1 z-1 stretched-link\" href=\"/post/post-3\"><h3 class=\"pano-post__title mb-0 text-break h4 fw-bold clamp-title svelte-1c4r335\" title=\"Post 3\">Post 3</h3></a></div> <div class=\"card-text text-break word-break mb-4 svelte-1c4r335 text-muted clamp-text\"><!--[-1-->Body 3 lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem lorem ...<!--]--></div> <div class=\"d-flex align-items-center justify-content-between\"><!--[-1--><!--[0--><a class=\"pano-post__badge badge category-badge text-decoration-none rounded-pill focus-ring z-2 svelte-1c4r335\" href=\"/?category=cat-3\">News</a><!--]--> <div class=\"d-flex align-items-center gap-2 z-2\"><span class=\"date-stub small\">1700000000000</span><!----> <a class=\"d-inline-block rounded focus-ring rounded-circle\" href=\"/player/writer3\"><img src=\"/api/v1/profile/picture/writer3?v7\" alt=\"writer3\" width=\"28\" height=\"28\" class=\"pano-post__image-4 rounded-circle border border-2 border-white\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!----></div><!--]--></div><!--]--><!--]-->",
|
|
19
|
-
"Posts/empty": "<!--[--><!--[--><div class=\"pano-posts row g-3\"><!--[--><!--]--></div><!--]--><!--]-->",
|
|
19
|
+
"Posts/empty": "<!--[--><!--[--><div class=\"pano-posts row g-3\"><!--[!--><div class=\"col-12\"><div class=\"pano-no-content border-0 opacity-25 bg-transparent\"><div class=\"pano-no-content__body vstack gap-3 text-center py-2\"><span class=\"fa-regular fa-square fa-3x\"></span> <!--[0--><p class=\"mb-0\">components.no-content.text</p><!--]--> <!--[--><!--]--></div></div><!----></div><!--]--></div><!--]--><!--]-->",
|
|
20
20
|
"Tickets/list": "<!--[--><!--[--><!--[0--><div class=\"pano-tickets table-responsive\"><table class=\"pano-tickets__table table table-hover\"><thead><tr><th class=\"align-middle\" scope=\"col\"></th><th class=\"align-middle\" scope=\"col\">components.tickets.table.title</th><th class=\"align-middle\" scope=\"col\">components.tickets.table.status</th><th class=\"align-middle\" scope=\"col\">components.tickets.table.category</th><th class=\"align-middle\" scope=\"col\">components.tickets.table.last-reply</th></tr></thead><tbody><!--[--><!--[--><tr class=\"pano-ticket-row\"><th scope=\"row\" class=\"text-center align-middle\"><!--[0--><button type=\"button\" title=\"buttons.close-ticket\" aria-label=\"buttons.close-ticket\" class=\"pano-ticket-row__action btn btn-link\"><i class=\"fas fa-check\"></i></button><!--]--></th><td class=\"align-middle\" style=\"max-width: 300px;\"><div class=\"text-truncate\"><a class=\"rounded focus-ring text-decoration-none d-block text-truncate\" href=\"/ticket/1\" title=\"#1 Ticket 1\">#1 Ticket 1</a></div></td><td class=\"align-middle\"><!--[--><!--[0--><span class=\"pano-ticket-status pano-ticket-status__badge badge text-bg-success rounded-pill\">ticket-statuses.new</span><!--]--><!--]--><!----></td><td class=\"align-middle text-nowrap\"><a class=\"pano-ticket-row__badge badge rounded-pill text-bg-primary text-decoration-none focus-ring\" href=\"/tickets?category=c1\">components.ticket-row.no-category</a></td><td class=\"align-middle text-nowrap\"><span><span class=\"date-stub \">1700000000000</span><!----></span></td></tr><!--]--><!--[--><tr class=\"pano-ticket-row table-active\"><th scope=\"row\" class=\"text-center align-middle\"><!--[0--><button type=\"button\" title=\"buttons.close-ticket\" aria-label=\"buttons.close-ticket\" class=\"pano-ticket-row__action btn btn-link\"><i class=\"fas fa-check\"></i></button><!--]--></th><td class=\"align-middle\" style=\"max-width: 300px;\"><div class=\"text-truncate\"><a class=\"rounded focus-ring text-decoration-none d-block text-truncate\" href=\"/ticket/2\" title=\"#2 Ticket 2\">#2 Ticket 2</a></div></td><td class=\"align-middle\"><!--[--><!--[1--><span class=\"pano-ticket-status pano-ticket-status__badge badge text-bg-warning rounded-pill\">ticket-statuses.replied</span><!--]--><!--]--><!----></td><td class=\"align-middle text-nowrap\"><a class=\"pano-ticket-row__badge badge rounded-pill text-bg-secondary text-decoration-none focus-ring\" href=\"/tickets?category=c2\">Bug</a></td><td class=\"align-middle text-nowrap\"><span><span class=\"date-stub \">1700000000000</span><!----></span></td></tr><!--]--><!--[--><tr class=\"pano-ticket-row\"><th scope=\"row\" class=\"text-center align-middle\"><!--[-1--><!--]--></th><td class=\"align-middle\" style=\"max-width: 300px;\"><div class=\"text-truncate\"><a class=\"rounded focus-ring text-decoration-none d-block text-truncate\" href=\"/ticket/3\" title=\"#3 Ticket 3\">#3 Ticket 3</a></div></td><td class=\"align-middle\"><!--[--><!--[2--><span class=\"pano-ticket-status pano-ticket-status__badge badge text-bg-danger rounded-pill\">ticket-statuses.closed</span><!--]--><!--]--><!----></td><td class=\"align-middle text-nowrap\"><a class=\"pano-ticket-row__badge badge rounded-pill text-bg-primary text-decoration-none focus-ring\" href=\"/tickets?category=c3\">components.ticket-row.no-category</a></td><td class=\"align-middle text-nowrap\"><span><span class=\"date-stub \">1700000000000</span><!----></span></td></tr><!--]--><!--]--></tbody></table></div><!--]--><!--]--><!--]-->",
|
|
21
|
-
"Tickets/empty": "<!--[--><!--[--><!--[-1--><div class=\"pano-no-content border-0 opacity-25 bg-transparent\"><div class=\"pano-no-content__body vstack gap-3 text-center py-2\"><span class=\"fa-regular fa-square fa-3x\"></span> <!--[-
|
|
21
|
+
"Tickets/empty": "<!--[--><!--[--><!--[-1--><div class=\"pano-no-content border-0 opacity-25 bg-transparent\"><div class=\"pano-no-content__body vstack gap-3 text-center py-2\"><span class=\"fa-regular fa-square fa-3x\"></span> <!--[0--><p class=\"mb-0\">components.no-content.text</p><!--]--> <!--[--><!--]--></div></div><!--]--><!--]--><!--]-->",
|
|
22
22
|
"TicketRow/new": "<!--[--><!--[--><tr class=\"pano-ticket-row\"><th scope=\"row\" class=\"text-center align-middle\"><!--[0--><button type=\"button\" title=\"buttons.close-ticket\" aria-label=\"buttons.close-ticket\" class=\"pano-ticket-row__action btn btn-link\"><i class=\"fas fa-check\"></i></button><!--]--></th><td class=\"align-middle\" style=\"max-width: 300px;\"><div class=\"text-truncate\"><a class=\"rounded focus-ring text-decoration-none d-block text-truncate\" href=\"/ticket/1\" title=\"#1 Ticket 1\">#1 Ticket 1</a></div></td><td class=\"align-middle\"><!--[--><!--[0--><span class=\"pano-ticket-status pano-ticket-status__badge badge text-bg-success rounded-pill\">ticket-statuses.new</span><!--]--><!--]--><!----></td><td class=\"align-middle text-nowrap\"><a class=\"pano-ticket-row__badge badge rounded-pill text-bg-primary text-decoration-none focus-ring\" href=\"/tickets?category=c1\">components.ticket-row.no-category</a></td><td class=\"align-middle text-nowrap\"><span><span class=\"date-stub \">1700000000000</span><!----></span></td></tr><!--]--><!--]-->",
|
|
23
23
|
"TicketRow/closed-selected": "<!--[--><!--[--><tr class=\"pano-ticket-row table-active\"><th scope=\"row\" class=\"text-center align-middle\"><!--[-1--><!--]--></th><td class=\"align-middle\" style=\"max-width: 300px;\"><div class=\"text-truncate\"><a class=\"rounded focus-ring text-decoration-none d-block text-truncate\" href=\"/ticket/2\" title=\"#2 Ticket 2\">#2 Ticket 2</a></div></td><td class=\"align-middle\"><!--[--><!--[2--><span class=\"pano-ticket-status pano-ticket-status__badge badge text-bg-danger rounded-pill\">ticket-statuses.closed</span><!--]--><!--]--><!----></td><td class=\"align-middle text-nowrap\"><a class=\"pano-ticket-row__badge badge rounded-pill text-bg-secondary text-decoration-none focus-ring\" href=\"/tickets?category=c2\">Bug</a></td><td class=\"align-middle text-nowrap\"><span><span class=\"date-stub \">1700000000000</span><!----></span></td></tr><!--]--><!--]-->",
|
|
24
24
|
"TicketStatus/default": "<!--[--><!--[--><!--[0--><span class=\"pano-ticket-status pano-ticket-status__badge badge text-bg-success rounded-pill\">ticket-statuses.new</span><!--]--><!--]--><!--]-->",
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"HomeSidebar/style-1-settings": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1hwb5cb\"><!--[--><!--[0--><!--[-1--><div class=\"card border-0 square-card-desktop svelte-1hwb5cb\"><div class=\"pano-home-sidebar__header card-header text-bg-danger p-0 rounded-top border-bottom border-5 border-danger svelte-1hwb5cb\"><button class=\"pano-home-sidebar__copied btn btn-warning border-0 shadow-none text-decoration-none w-100 focus-ring py-2 play-card-ip svelte-1hwb5cb\" style=\"--ip-len: 29; --ip-max: 24px;\" type=\"button\"><b class=\"d-block svelte-1hwb5cb\">mc.custom-network.example.org</b></button></div> <div class=\"pano-home-sidebar__body-2 card-body position-relative z-1 overflow-hidden border border-2 border-danger border-top-0 rounded-bottom svelte-1hwb5cb\"><div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background-image: url(/api/v1/theme/file/bg.png); background-size: cover; background-position: top; opacity: 0.3; z-index: -2;\"></div> <div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background: linear-gradient(180deg, transparent 0%, var(--bs-body-bg) 100%); z-index: -1;\"></div> <ul class=\"pano-home-sidebar__list-2 list-group list-group-flush text-center bg-transparent position-relative z-1\"><!--[0--><li class=\"pano-home-sidebar__item-3 list-group-item border-0 py-2 bg-transparent\"><!--[-1--><span class=\"pano-home-sidebar__badge-3 badge text-bg-danger rounded-pill\">sidebars.home.offline</span><!--]--></li><!--]--> <!--[0--><li class=\"pano-home-sidebar__item-4 list-group-item border-0 py-2 bg-transparent\">sidebars.home.playing{\"playerCount\":0,\"maxPlayerCount\":0}</li><!--]--> <!--[-1--><!--]--></ul></div></div><!--]--><!--]--><!--[2--><div class=\"card position-relative overflow-hidden mb-lg-0 mb-3 square-card-desktop svelte-1hwb5cb\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">sidebars.home.last-registrants</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <div class=\"pano-home-sidebar__body-3 card-body pt-3 d-flex flex-column justify-content-start\"><div class=\"row g-3 justify-content-evenly align-items-start align-content-start\"><!--[--><div class=\"col-auto\"><a href=\"/player/alex\" class=\"d-inline-block rounded focus-ring\"><img alt=\"alex\" class=\"pano-home-sidebar__image rounded\" src=\"/api/v1/profile/picture/alex?v7\" width=\"48\" height=\"48\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><div class=\"col-auto\"><a href=\"/player/steve\" class=\"d-inline-block rounded focus-ring\"><img alt=\"steve\" class=\"pano-home-sidebar__image rounded border border-2 border-success\" src=\"/api/v1/profile/picture/steve?v7\" width=\"48\" height=\"48\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
4
4
|
"HomeSidebar/style-2-minimal-and-hidden-registrants": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1hwb5cb\"><!--[--><!--[0--><!--[0--><div class=\"card position-relative overflow-hidden square-card-desktop svelte-1hwb5cb\"><div class=\"pano-home-sidebar__body card-body position-relative z-1 rounded overflow-hidden border border-2 border-secondary svelte-1hwb5cb\"><div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background-image: url(/assets/img/default-header-bg.png); background-size: cover; background-position: center; opacity: 0.5; z-index: -2;\"></div> <div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background-color: color-mix(in srgb, var(--bs-body-bg) 70%, transparent); z-index: -1;\"></div> <ul class=\"pano-home-sidebar__list list-group list-group-flush text-center bg-transparent position-relative z-1\"><li class=\"pano-home-sidebar__item list-group-item border-0 py-2 bg-transparent\"><button class=\"pano-home-sidebar__action btn btn-link link-secondary border-0 shadow-none text-decoration-none w-100 focus-ring play-card-ip svelte-1hwb5cb\" style=\"--ip-len: 16; --ip-max: 28px;\" type=\"button\"><b class=\"d-block svelte-1hwb5cb\">play.example.com</b></button></li> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[0--><li class=\"pano-home-sidebar__item-2 list-group-item border-0 py-2 bg-transparent\">1.21</li><!--]--></ul></div></div><!--]--><!--]--><!--[2--><div class=\"card position-relative overflow-hidden mb-lg-0 mb-3 square-card-desktop svelte-1hwb5cb\" hidden=\"\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">sidebars.home.last-registrants</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <div class=\"pano-home-sidebar__body-3 card-body pt-3 d-flex flex-column justify-content-start\"><div class=\"row g-3 justify-content-evenly align-items-start align-content-start\"><!--[--><div class=\"col-auto\"><a href=\"/player/alex\" class=\"d-inline-block rounded focus-ring\"><img alt=\"alex\" class=\"pano-home-sidebar__image rounded\" src=\"/api/v1/profile/picture/alex?v7\" width=\"48\" height=\"48\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><div class=\"col-auto\"><a href=\"/player/steve\" class=\"d-inline-block rounded focus-ring\"><img alt=\"steve\" class=\"pano-home-sidebar__image rounded border border-2 border-success\" src=\"/api/v1/profile/picture/steve?v7\" width=\"48\" height=\"48\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
5
5
|
"HomeSidebar/plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1hwb5cb\"><!--[--><!--[0--><!--[0--><div class=\"card position-relative overflow-hidden square-card-desktop svelte-1hwb5cb\"><div class=\"pano-home-sidebar__body card-body position-relative z-1 rounded overflow-hidden border border-2 border-secondary svelte-1hwb5cb\"><div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background-image: url(/assets/img/default-header-bg.png); background-size: cover; background-position: center; opacity: 0.5; z-index: -2;\"></div> <div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background-color: color-mix(in srgb, var(--bs-body-bg) 70%, transparent); z-index: -1;\"></div> <ul class=\"pano-home-sidebar__list list-group list-group-flush text-center bg-transparent position-relative z-1\"><li class=\"pano-home-sidebar__item list-group-item border-0 py-2 bg-transparent\"><button class=\"pano-home-sidebar__action btn btn-link link-secondary border-0 shadow-none text-decoration-none w-100 focus-ring play-card-ip svelte-1hwb5cb\" style=\"--ip-len: 16; --ip-max: 28px;\" type=\"button\"><b class=\"d-block svelte-1hwb5cb\">play.example.com</b></button></li> <!--[0--><li class=\"pano-home-sidebar__online list-group-item border-0 py-2 bg-transparent\"><!--[0--><span class=\"pano-home-sidebar__badge badge text-bg-success\">sidebars.home.online</span><!--]--></li><!--]--> <!--[0--><li class=\"pano-home-sidebar__playing list-group-item border-0 py-2 bg-transparent\">sidebars.home.playing{\"playerCount\":3,\"maxPlayerCount\":20}</li><!--]--> <!--[0--><li class=\"pano-home-sidebar__item-2 list-group-item border-0 py-2 bg-transparent\">1.21</li><!--]--></ul></div></div><!--]--><!--]--><!--[2--><div class=\"card position-relative overflow-hidden mb-lg-0 mb-3 square-card-desktop svelte-1hwb5cb\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">sidebars.home.last-registrants</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <div class=\"pano-home-sidebar__body-3 card-body pt-3 d-flex flex-column justify-content-start\"><div class=\"row g-3 justify-content-evenly align-items-start align-content-start\"><!--[--><div class=\"col-auto\"><a href=\"/player/alex\" class=\"d-inline-block rounded focus-ring\"><img alt=\"alex\" class=\"pano-home-sidebar__image rounded\" src=\"/api/v1/profile/picture/alex?v7\" width=\"48\" height=\"48\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><div class=\"col-auto\"><a href=\"/player/steve\" class=\"d-inline-block rounded focus-ring\"><img alt=\"steve\" class=\"pano-home-sidebar__image rounded border border-2 border-success\" src=\"/api/v1/profile/picture/steve?v7\" width=\"48\" height=\"48\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div></div><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"shop-teaser\" data-keys=\"data,extra\"></div><!--]--><!--]--><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
6
|
-
"ProfileSidebar/default": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"d-flex flex-column gap-3\"><!--[-1--><!--]--> <div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card square-card-desktop svelte-9vesf3\"><div class=\"pano-profile-sidebar__body card-body vstack gap-3\"><div class=\"d-block\"><img class=\"player-head-stub\" alt=\"alex\" data-check=\"0\" data-in-game=\"false\"/><!----></div> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->alex<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"false\" data-in-game=\"false\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">Member</span><!----></div></div></div><!--]--><!--[1--><div class=\"card\"><div class=\"list-group list-group-flush
|
|
7
|
-
"ProfileSidebar/delete-all-and-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"d-flex flex-column gap-3\"><!--[0--><div class=\"order-last order-lg-first w-100\"><button class=\"pano-profile-sidebar__action btn btn-danger w-100\" type=\"button\"><i class=\"fas fa-trash-alt me-2\"></i> buttons.delete-all</button></div><!--]--> <div class=\"vstack gap-3 order-first order-lg-last\"><!--[--><!--[0--><div class=\"card square-card-desktop svelte-9vesf3\"><div class=\"pano-profile-sidebar__body card-body vstack gap-3\"><div class=\"d-block\"><img class=\"player-head-stub\" alt=\"alex\" data-check=\"0\" data-in-game=\"true\"/><!----></div> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->alex<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"true\" data-in-game=\"true\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">Member</span><!----></div></div></div><!--]--><!--[1--><div class=\"card\"><div class=\"list-group list-group-flush
|
|
8
|
-
"ProfileSidebar/visitor": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"d-flex flex-column gap-3\"><!--[-1--><!--]--> <div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card square-card-desktop svelte-9vesf3\"><div class=\"pano-profile-sidebar__body card-body vstack gap-3\"><div class=\"d-block\"><img class=\"player-head-stub\" data-check=\"0\" data-in-game=\"false\"/><!----></div> <!--[-1--><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"false\" data-in-game=\"false\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">Member</span><!----></div></div></div><!--]--><!--[1--><div class=\"card\"><div class=\"list-group list-group-flush
|
|
9
|
-
"SupportSidebar/admins": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1o8minl\"><!--[--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!---->
|
|
10
|
-
"SupportSidebar/no-admins-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1o8minl\"><!--[--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\" hidden=\"\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!---->
|
|
11
|
-
"PlayerDetailSidebar/default": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card border-0 square-card-desktop svelte-1g4upfs\"><div class=\"card-body vstack gap-3\"><img class=\"player-head-stub\" alt=\"steve\" data-check=\"0\" data-in-game=\"true\"/><!----> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->steve<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"false\" data-in-game=\"true\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">VIP</span><!----></div></div></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]-->",
|
|
12
|
-
"PlayerDetailSidebar/banned-plugin-item": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card border-0 square-card-desktop svelte-1g4upfs\"><div class=\"card-body vstack gap-3\"><img class=\"player-head-stub\" alt=\"alex\" data-check=\"0\" data-in-game=\"false\"/><!----> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->alex<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"true\" data-in-game=\"false\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\"></span><!----></div></div></div><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"stats\" data-keys=\"checkTime,data,extra\"></div><!--]--><!--]--><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]-->",
|
|
13
|
-
"TicketCreateAndDetailSidebar/open-ticket": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1fitmw4\"><!--[--><!--[1--><!--[0--><button class=\"pano-ticket-create-and-detail-sidebar__action btn btn-danger w-100\" type=\"button\"><i class=\"fas fa-times me-2\"></i> buttons.close-ticket</button><!--]--><!--]--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!---->
|
|
14
|
-
"TicketCreateAndDetailSidebar/closed-ticket": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1fitmw4\"><!--[--><!--[1--><!--[-1--><!--]--><!--]--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!---->
|
|
15
|
-
"TicketCreateAndDetailSidebar/create-page-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1fitmw4\"><!--[--><!--[1--><!--[-1--><!--]--><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"ticket-help\" data-keys=\"data,extra,ticketData\"></div><!--]--><!--]--><!--]--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!---->
|
|
6
|
+
"ProfileSidebar/default": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"d-flex flex-column gap-3\"><!--[-1--><!--]--> <div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card square-card-desktop svelte-9vesf3\"><div class=\"pano-profile-sidebar__body card-body vstack gap-3\"><div class=\"d-block\"><img class=\"player-head-stub\" alt=\"alex\" data-check=\"0\" data-in-game=\"false\"/><!----></div> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->alex<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"false\" data-in-game=\"false\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">Member</span><!----></div></div></div><!--]--><!--[1--><div class=\"card\"><div class=\"list-group list-group-flush\"><!--[--><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center active\" aria-current=\"page\" href=\"/profile\">buttons.profile <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/profile/settings\">buttons.settings <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/tickets\">buttons.tickets <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/notifications\">buttons.notifications <!--[-1--><!--]--></a><!--]--></div></div><!--]--><!--]--></div></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
7
|
+
"ProfileSidebar/delete-all-and-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"d-flex flex-column gap-3\"><!--[0--><div class=\"order-last order-lg-first w-100\"><button class=\"pano-profile-sidebar__action btn btn-danger w-100\" type=\"button\"><i class=\"fas fa-trash-alt me-2\"></i> buttons.delete-all</button></div><!--]--> <div class=\"vstack gap-3 order-first order-lg-last\"><!--[--><!--[0--><div class=\"card square-card-desktop svelte-9vesf3\"><div class=\"pano-profile-sidebar__body card-body vstack gap-3\"><div class=\"d-block\"><img class=\"player-head-stub\" alt=\"alex\" data-check=\"0\" data-in-game=\"true\"/><!----></div> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->alex<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"true\" data-in-game=\"true\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">Member</span><!----></div></div></div><!--]--><!--[1--><div class=\"card\"><div class=\"list-group list-group-flush\"><!--[--><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center active\" aria-current=\"page\" href=\"/profile\">buttons.profile <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/profile/settings\">buttons.settings <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/tickets\">buttons.tickets <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/notifications\">buttons.notifications <!--[-1--><!--]--></a><!--]--></div></div><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"badges\" data-keys=\"checkTime,data,extra,user\"></div><!--]--><!--]--><!--]--><!--]--></div></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
8
|
+
"ProfileSidebar/visitor": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"d-flex flex-column gap-3\"><!--[-1--><!--]--> <div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card square-card-desktop svelte-9vesf3\"><div class=\"pano-profile-sidebar__body card-body vstack gap-3\"><div class=\"d-block\"><img class=\"player-head-stub\" data-check=\"0\" data-in-game=\"false\"/><!----></div> <!--[-1--><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"false\" data-in-game=\"false\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">Member</span><!----></div></div></div><!--]--><!--[1--><div class=\"card\"><div class=\"list-group list-group-flush\"><!--[--><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center active\" aria-current=\"page\" href=\"/profile\">buttons.profile <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/profile/settings\">buttons.settings <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/tickets\">buttons.tickets <!--[-1--><!--]--></a><a class=\"list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center\" href=\"/notifications\">buttons.notifications <!--[-1--><!--]--></a><!--]--></div></div><!--]--><!--]--></div></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
9
|
+
"SupportSidebar/admins": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1o8minl\"><!--[--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent \"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <!--[0--><div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><div class=\"row g-3 justify-content-evenly align-items-start align-content-start\"><!--[--><div class=\"col-auto\"><a href=\"/player/root\" class=\"online-admin-link focus-ring rounded position-relative d-inline-block svelte-1acjpf7\"><img src=\"/api/v1/profile/picture/root?v7\" class=\"online-admin-avatar rounded border border-3 border-success svelte-1acjpf7\" alt=\"root\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><div class=\"col-auto\"><a href=\"/player/mod\" class=\"online-admin-link focus-ring rounded position-relative d-inline-block svelte-1acjpf7\"><img src=\"/api/v1/profile/picture/mod?v7\" class=\"online-admin-avatar rounded border border-3 border-success svelte-1acjpf7\" alt=\"mod\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div><!--]--></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
10
|
+
"SupportSidebar/no-admins-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1o8minl\"><!--[--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7 online-admins-card--empty\" hidden=\"\"><div class=\"card-header py-3 bg-transparent border-bottom-0\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <!--[-1--><!--]--></div><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"faq\" data-keys=\"data,extra\"></div><!--]--><!--]--><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
11
|
+
"PlayerDetailSidebar/default": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card border-0 square-card-desktop svelte-1g4upfs\"><div class=\"pano-player-detail-sidebar__body card-body vstack gap-3\"><img class=\"player-head-stub\" alt=\"steve\" data-check=\"0\" data-in-game=\"true\"/><!----> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->steve<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"false\" data-in-game=\"true\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\">VIP</span><!----></div></div></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
12
|
+
"PlayerDetailSidebar/banned-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card border-0 square-card-desktop svelte-1g4upfs\"><div class=\"pano-player-detail-sidebar__body card-body vstack gap-3\"><img class=\"player-head-stub\" alt=\"alex\" data-check=\"0\" data-in-game=\"false\"/><!----> <!--[0--><div class=\"pano-page-title text-center animate__animated animate__fadeIn\"><h1 class=\"pano-page-title__title fs-3 mb-0 text-break word-break\"><!--[--><!--[0--><!--[-1-->alex<!--]--><!--]--><!--]--></h1> <!--[-1--><!--]--> <!--[--><!--]--></div><!--]--><!----> <div class=\"text-center\"><span class=\"player-status-stub\" data-banned=\"true\" data-in-game=\"false\"></span><!----></div> <div class=\"text-center\"><span class=\"player-permission-stub\"></span><!----></div></div></div><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"stats\" data-keys=\"checkTime,data,extra\"></div><!--]--><!--]--><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
13
|
+
"TicketCreateAndDetailSidebar/open-ticket": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1fitmw4\"><!--[--><!--[1--><!--[0--><button class=\"pano-ticket-create-and-detail-sidebar__action btn btn-danger w-100\" type=\"button\"><i class=\"fas fa-times me-2\"></i> buttons.close-ticket</button><!--]--><!--]--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent \"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <!--[0--><div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><div class=\"row g-3 justify-content-evenly align-items-start align-content-start\"><!--[--><div class=\"col-auto\"><a href=\"/player/root\" class=\"online-admin-link focus-ring rounded position-relative d-inline-block svelte-1acjpf7\"><img src=\"/api/v1/profile/picture/root?v7\" class=\"online-admin-avatar rounded border border-3 border-success svelte-1acjpf7\" alt=\"root\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div><!--]--></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
14
|
+
"TicketCreateAndDetailSidebar/closed-ticket": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1fitmw4\"><!--[--><!--[1--><!--[-1--><!--]--><!--]--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7 online-admins-card--empty\"><div class=\"card-header py-3 bg-transparent border-bottom-0\"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <!--[-1--><!--]--></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
15
|
+
"TicketCreateAndDetailSidebar/create-page-plugin-item": "<!--[--><!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3 pano-sidebar-cards svelte-1fitmw4\"><!--[--><!--[1--><!--[-1--><!--]--><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"ticket-help\" data-keys=\"data,extra,ticketData\"></div><!--]--><!--]--><!--]--><!--[0--><div class=\"online-admins-card card mb-3 mb-lg-0 svelte-1acjpf7\"><div class=\"card-header py-3 bg-transparent \"><div class=\"row d-flex align-items-center gx-0 gy-2\"><div class=\"col-12 d-flex justify-content-lg-start justify-content-center text-center text-lg-start text-truncate text-nowrap \"><!--[--><div slot=\"left\">components.online-admins.online-admins</div><!--]--></div> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <!--[0--><div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><div class=\"row g-3 justify-content-evenly align-items-start align-content-start\"><!--[--><div class=\"col-auto\"><a href=\"/player/root\" class=\"online-admin-link focus-ring rounded position-relative d-inline-block svelte-1acjpf7\"><img src=\"/api/v1/profile/picture/root?v7\" class=\"online-admin-avatar rounded border border-3 border-success svelte-1acjpf7\" alt=\"root\" onload=\"this.__e=event\" onerror=\"this.__e=event\"/></a></div><!--]--></div></div><!--]--></div><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->"
|
|
16
16
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { resolvePageTitle } from "../pageTitle.util.js";
|
|
2
|
+
import { resolvePageTitle, safeBackgroundImage } from "../pageTitle.util.js";
|
|
3
|
+
|
|
4
|
+
test("background images must be safe same-origin paths", () => {
|
|
5
|
+
expect(safeBackgroundImage({ backgroundImage: "/api/plugins/market/image.png" })).toBe("/api/plugins/market/image.png");
|
|
6
|
+
for (const url of ["//evil.test/image.png", "/\\evil.test/image.png", "https://evil.test/image.png", "/image.png?x=1", ""]) {
|
|
7
|
+
expect(safeBackgroundImage({ backgroundImage: url })).toBe("");
|
|
8
|
+
}
|
|
9
|
+
expect(safeBackgroundImage("title")).toBe("");
|
|
10
|
+
});
|
|
3
11
|
|
|
4
12
|
const dict = { "page.home": "Home", "page.hello": "Hello {name}", "page.sub": "Subtitle" };
|
|
5
13
|
// Mimics svelte-i18n: unknown keys come back as the key itself, {name} is interpolated.
|
|
@@ -95,7 +95,7 @@ describe("isProfileNavActive", () => {
|
|
|
95
95
|
describe("buildProfileNavEntries", () => {
|
|
96
96
|
const items = [
|
|
97
97
|
{ id: "a", priority: 100, props: { href: "/profile", text: "buttons.profile", icon: "fas fa-user" } },
|
|
98
|
-
{ id: "b", priority: 90, props: { href: "/profile/orders", text: "Orders", startsWith: true, badge: 3 } },
|
|
98
|
+
{ id: "b", priority: 90, props: { href: "/profile/orders", text: "Orders", startsWith: true, badge: 3, badgeVariant: "info" } },
|
|
99
99
|
{ id: "bad", priority: 80, props: { href: "https://evil.com", text: "Evil" } },
|
|
100
100
|
{ id: "noprops", priority: 70 },
|
|
101
101
|
{ id: "empty-badge", priority: 60, props: { href: "/x", text: "X", badge: "" } },
|
|
@@ -105,9 +105,9 @@ describe("buildProfileNavEntries", () => {
|
|
|
105
105
|
const entries = buildProfileNavEntries(items, { pathname: "/app/profile/orders/7", base: "/app", translate });
|
|
106
106
|
|
|
107
107
|
expect(entries).toEqual([
|
|
108
|
-
{ id: "a", href: "/app/profile", text: "T(buttons.profile)", icon: "fas fa-user", badge: null, active: false },
|
|
109
|
-
{ id: "b", href: "/app/profile/orders", text: "Orders", icon: null, badge: "3", active: true },
|
|
110
|
-
{ id: "empty-badge", href: "/app/x", text: "X", icon: null, badge: null, active: false },
|
|
108
|
+
{ id: "a", href: "/app/profile", text: "T(buttons.profile)", icon: "fas fa-user", badge: null, badgeVariant: null, active: false },
|
|
109
|
+
{ id: "b", href: "/app/profile/orders", text: "Orders", icon: null, badge: "3", badgeVariant: "info", active: true },
|
|
110
|
+
{ id: "empty-badge", href: "/app/x", text: "X", icon: null, badge: null, badgeVariant: null, active: false },
|
|
111
111
|
]);
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -135,7 +135,7 @@ describe("skin-contract.json (TC-32)", () => {
|
|
|
135
135
|
}
|
|
136
136
|
expect(engineViews.ToastContainer.uses).toEqual(["DefaultToast"]);
|
|
137
137
|
expect(engineViews.DefaultToast.uses).toEqual(["Toast"]);
|
|
138
|
-
expect(engineViews.Posts.uses).toEqual(["Post"]);
|
|
138
|
+
expect(engineViews.Posts.uses).toEqual(["NoContent", "Post"]);
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
test("the table registers with the registry", () => {
|
|
@@ -234,21 +234,31 @@ describe.skipIf(!svelteDir)("server render", () => {
|
|
|
234
234
|
props: {
|
|
235
235
|
entries: [
|
|
236
236
|
{ id: "profile", href: "/profile", text: "Profile", icon: "fas fa-user", badge: null, active: false },
|
|
237
|
-
{ id: "orders", href: "/profile/orders", text: "Orders", icon: null, badge: "3", active: true },
|
|
237
|
+
{ id: "orders", href: "/profile/orders", text: "Orders", icon: null, badge: "3", badgeVariant: "info", active: true },
|
|
238
238
|
],
|
|
239
239
|
},
|
|
240
240
|
});
|
|
241
241
|
|
|
242
|
-
expect(body).toContain('<div class="card"><div class="list-group list-group-flush
|
|
242
|
+
expect(body).toContain('<div class="card"><div class="list-group list-group-flush">');
|
|
243
243
|
expect(body.match(/list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center/g).length).toBe(2);
|
|
244
244
|
expect(body).toMatch(/class="list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center active"[^>]*href="\/profile\/orders"/);
|
|
245
245
|
expect(body).toContain('aria-current="page"');
|
|
246
246
|
expect(body.match(/aria-current/g).length).toBe(1);
|
|
247
|
-
expect(body).toContain('<span class="badge text-bg-
|
|
248
|
-
//
|
|
247
|
+
expect(body).toContain('<span class="badge ms-2 text-bg-info">3</span>');
|
|
248
|
+
// The nav shows text only: an entry's icon is not rendered.
|
|
249
249
|
expect(body).not.toContain("fas fa-user");
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
+
test("ProfileNavCard keeps the default badge color for other entries", async () => {
|
|
253
|
+
const { body } = await renderSvelte({
|
|
254
|
+
svelteDir,
|
|
255
|
+
components: { "#card": join(sidebars, "ProfileNavCard.svelte") },
|
|
256
|
+
props: { entries: [{ id: "x", href: "/x", text: "X", badge: "1" }] },
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
expect(body).toContain('<span class="badge ms-2 text-bg-primary">1</span>');
|
|
260
|
+
});
|
|
261
|
+
|
|
252
262
|
test("ProfileNavCard escapes text coming from a plugin", async () => {
|
|
253
263
|
const { body } = await renderSvelte({
|
|
254
264
|
svelteDir,
|
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
isEmpty,
|
|
9
9
|
isValidDate,
|
|
10
10
|
prepareFieldValues,
|
|
11
|
+
ticketFormOf,
|
|
12
|
+
DEFAULT_TICKET_FORM,
|
|
11
13
|
validateValue,
|
|
12
14
|
visibleFields,
|
|
13
15
|
} from "../ticketFields.js";
|
|
@@ -256,3 +258,17 @@ describe("server errors and display", () => {
|
|
|
256
258
|
expect(hasValue({ type: "CHECKBOX", value: false })).toBe(false);
|
|
257
259
|
});
|
|
258
260
|
});
|
|
261
|
+
|
|
262
|
+
describe("ticketFormOf", () => {
|
|
263
|
+
test("an older website that sends no form shows everything", () => {
|
|
264
|
+
expect(ticketFormOf({}, null)).toEqual(DEFAULT_TICKET_FORM);
|
|
265
|
+
expect(ticketFormOf(undefined, { id: 1 })).toEqual(DEFAULT_TICKET_FORM);
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
test("the chosen category's form wins, without one the no-category form", () => {
|
|
269
|
+
const data = { noCategoryForm: { messageEnabled: false } };
|
|
270
|
+
|
|
271
|
+
expect(ticketFormOf(data, null).messageEnabled).toBe(false);
|
|
272
|
+
expect(ticketFormOf(data, { form: { titleEnabled: false } })).toEqual({ ...DEFAULT_TICKET_FORM, titleEnabled: false });
|
|
273
|
+
});
|
|
274
|
+
});
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
* labelValues?: object, // i18n interpolation values
|
|
25
25
|
* href?: string, // makes the item a link
|
|
26
26
|
* icon?: string, // e.g. "fas fa-home"
|
|
27
|
+
* variant?: "bootstrap", // use the plain Bootstrap 5 breadcrumb for this trail
|
|
27
28
|
* raw?: boolean, // bypass i18n, use label as-is
|
|
28
29
|
* html?: boolean // render label as HTML (raw implied)
|
|
29
30
|
* }
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
label: resolveLabel(item),
|
|
50
51
|
href: item?.href,
|
|
51
52
|
icon: item?.icon,
|
|
53
|
+
variant: item?.variant,
|
|
52
54
|
html: !!item?.html
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
<!-- Online Admins Card -->
|
|
2
2
|
<div
|
|
3
3
|
class="online-admins-card card mb-3 mb-lg-0"
|
|
4
|
+
class:online-admins-card--empty={!onlineAdmins?.length}
|
|
4
5
|
hidden={typeof themeSettings.sidebarCarts?.onlineAdmins === "undefined"
|
|
5
6
|
? false
|
|
6
7
|
: !themeSettings.sidebarCarts.onlineAdmins}>
|
|
7
|
-
<CardHeader headerClasses="bg-transparent">
|
|
8
|
+
<CardHeader headerClasses="bg-transparent {onlineAdmins?.length ? '' : 'border-bottom-0'}">
|
|
8
9
|
<div slot="left">{$_("components.online-admins.online-admins")}</div>
|
|
9
10
|
</CardHeader>
|
|
11
|
+
{#if onlineAdmins && onlineAdmins.length > 0}
|
|
10
12
|
<div class="card-body pt-3 d-flex flex-column justify-content-start">
|
|
11
|
-
{#if onlineAdmins && onlineAdmins.length > 0}
|
|
12
13
|
<div class="row g-3 justify-content-evenly align-items-start align-content-start">
|
|
13
14
|
{#each onlineAdmins as onlineAdmin, index (onlineAdmin)}
|
|
14
15
|
<div class="col-auto">
|
|
@@ -27,10 +28,8 @@
|
|
|
27
28
|
</div>
|
|
28
29
|
{/each}
|
|
29
30
|
</div>
|
|
30
|
-
{:else}
|
|
31
|
-
<NoContent text="" />
|
|
32
|
-
{/if}
|
|
33
31
|
</div>
|
|
32
|
+
{/if}
|
|
34
33
|
</div>
|
|
35
34
|
|
|
36
35
|
<!-- Online Admins Card End -->
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
import { route } from "$pano/registry/routes.js";
|
|
41
40
|
import tooltip from "$pano/lib/tooltip.util";
|
|
42
41
|
import { getContext } from "svelte";
|
|
43
|
-
import NoContent from "./NoContent.svelte";
|
|
44
42
|
import CardHeader from "./CardHeader.svelte";
|
|
45
43
|
|
|
46
44
|
export let onlineAdmins;
|
|
@@ -52,7 +50,7 @@
|
|
|
52
50
|
|
|
53
51
|
|
|
54
52
|
@media (min-width: 992px) {
|
|
55
|
-
.online-admins-card {
|
|
53
|
+
.online-admins-card:not(.online-admins-card--empty) {
|
|
56
54
|
aspect-ratio: 1 / 1;
|
|
57
55
|
}
|
|
58
56
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="card">
|
|
2
|
-
<div class="list-group list-group-flush
|
|
2
|
+
<div class="list-group list-group-flush">
|
|
3
3
|
{#each entries as entry (entry.id)}
|
|
4
4
|
<a
|
|
5
5
|
class="list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center"
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
href={entry.href}>
|
|
9
9
|
{entry.text}
|
|
10
10
|
{#if entry.badge}
|
|
11
|
-
<span
|
|
11
|
+
<span
|
|
12
|
+
class="badge ms-2"
|
|
13
|
+
class:text-bg-info={entry.badgeVariant === "info"}
|
|
14
|
+
class:text-bg-primary={entry.badgeVariant !== "info"}>{entry.badge}</span>
|
|
12
15
|
{/if}
|
|
13
16
|
</a>
|
|
14
17
|
{/each}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pure helpers for the profile sidebar navigation (market plugin spec 15 section 4.6).
|
|
3
3
|
*
|
|
4
|
-
* The `profile-nav` view slot holds `{ id, priority, hidden?, props: { href, text, icon?, startsWith?, badge? } }`
|
|
4
|
+
* The `profile-nav` view slot holds `{ id, priority, hidden?, props: { href, text, icon?, startsWith?, badge?, badgeVariant? } }`
|
|
5
5
|
* items. The built-ins below are registered by the profile sidebar's `load`; plugins add their own
|
|
6
6
|
* through `pano.ui.profile.nav.edit`.
|
|
7
7
|
*/
|
|
@@ -79,7 +79,7 @@ export function isProfileNavActive(pathname, base, props) {
|
|
|
79
79
|
*
|
|
80
80
|
* @param {Array<object>} items visible items of the `profile-nav` slot
|
|
81
81
|
* @param {{ pathname: string, base?: string, translate: (key: string) => string }} context
|
|
82
|
-
* @returns {Array<{ id: string, href: string, text: string, icon: string | null, badge: string | null, active: boolean }>}
|
|
82
|
+
* @returns {Array<{ id: string, href: string, text: string, icon: string | null, badge: string | null, badgeVariant: string | null, active: boolean }>}
|
|
83
83
|
*/
|
|
84
84
|
export function buildProfileNavEntries(items, { pathname, base = "", translate }) {
|
|
85
85
|
const entries = [];
|
|
@@ -97,6 +97,7 @@ export function buildProfileNavEntries(items, { pathname, base = "", translate }
|
|
|
97
97
|
text: text.includes(".") ? translate(text) : text,
|
|
98
98
|
icon: typeof props.icon === "string" && props.icon ? props.icon : null,
|
|
99
99
|
badge: props.badge === undefined || props.badge === null || props.badge === "" ? null : String(props.badge),
|
|
100
|
+
badgeVariant: props.badgeVariant === "info" ? "info" : null,
|
|
100
101
|
active: isProfileNavActive(pathname, base, props),
|
|
101
102
|
});
|
|
102
103
|
}
|
package/src/lib/contentI18n.js
CHANGED
|
@@ -168,6 +168,14 @@ export function localizeCategory(category, locale) {
|
|
|
168
168
|
if ("title" in source && source.title !== "-") copy.title = localized(source.title, source.i18n, locale, "title");
|
|
169
169
|
if ("description" in source) copy.description = localized(source.description, source.i18n, locale, "description");
|
|
170
170
|
if (Array.isArray(source.fields)) copy.fields = source.fields.map((field) => localizeField(field, locale));
|
|
171
|
+
// the placeholders of the create-ticket form in this category
|
|
172
|
+
if (source.form && typeof source.form === "object") {
|
|
173
|
+
copy.form = {
|
|
174
|
+
...source.form,
|
|
175
|
+
titlePlaceholder: localized(source.form.titlePlaceholder, source.i18n, locale, "titlePlaceholder"),
|
|
176
|
+
messagePlaceholder: localized(source.form.messagePlaceholder, source.i18n, locale, "messagePlaceholder")
|
|
177
|
+
};
|
|
178
|
+
}
|
|
171
179
|
|
|
172
180
|
return remember(copy, source);
|
|
173
181
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
// Pure helper for the `pageTitle` a load() may return (spec 15 section 4.4).
|
|
2
2
|
//
|
|
3
3
|
// Forms: a string (i18n key), or an object { title, titleValues, subtitle, subtitleValues, html,
|
|
4
|
-
// subtitleHtml, raw, hidden }. `raw` uses title / subtitle verbatim (no translation); `hidden`
|
|
4
|
+
// subtitleHtml, raw, hidden, backgroundImage }. `raw` uses title / subtitle verbatim (no translation); `hidden`
|
|
5
5
|
// keeps the value for the document <title> only (no visible <PageTitle>).
|
|
6
|
+
// `backgroundImage` is an optional same-origin path used by the default Main view.
|
|
7
|
+
|
|
8
|
+
/** Only same-origin absolute paths can be used as decorative backgrounds. */
|
|
9
|
+
export function safeBackgroundImage(pt) {
|
|
10
|
+
const url = pt && typeof pt === "object" ? pt.backgroundImage : null;
|
|
11
|
+
return typeof url === "string" && /^\/(?!\/)[A-Za-z0-9/_\-.]+$/.test(url) ? url : "";
|
|
12
|
+
}
|
|
6
13
|
|
|
7
14
|
/**
|
|
8
15
|
* @param {unknown} pt the pageTitle value (null, a string or an object)
|
|
@@ -46,8 +46,11 @@
|
|
|
46
46
|
let title = writable("");
|
|
47
47
|
let message = writable("");
|
|
48
48
|
// Where a ticket must have a category the form starts on the first one, not on "no category".
|
|
49
|
+
// Without a category choice (`categoryEnabled: false`) every ticket goes without one.
|
|
49
50
|
let categoryId = writable(
|
|
50
|
-
data.allowNoCategory === false && data.categories?.length
|
|
51
|
+
data.categoryEnabled !== false && data.allowNoCategory === false && data.categories?.length
|
|
52
|
+
? data.categories[0].id
|
|
53
|
+
: -1,
|
|
51
54
|
);
|
|
52
55
|
let loading = writable(false);
|
|
53
56
|
|
package/src/lib/ticketFields.js
CHANGED
|
@@ -31,6 +31,34 @@
|
|
|
31
31
|
*/
|
|
32
32
|
export const TICKET_FIELDS_CONTEXT = "pano:ticket-fields";
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* @typedef {object} TicketForm
|
|
36
|
+
* @property {boolean} titleEnabled the form asks for a title (off: the site names the ticket)
|
|
37
|
+
* @property {string} titlePlaceholder empty: the theme's own placeholder
|
|
38
|
+
* @property {boolean} messageEnabled the form asks for a description (off: no first message)
|
|
39
|
+
* @property {string} messagePlaceholder empty: the theme's own placeholder
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/** What the create-ticket form shows when the website says nothing (older Pano): everything. */
|
|
43
|
+
export const DEFAULT_TICKET_FORM = Object.freeze({
|
|
44
|
+
titleEnabled: true,
|
|
45
|
+
titlePlaceholder: "",
|
|
46
|
+
messageEnabled: true,
|
|
47
|
+
messagePlaceholder: ""
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The form of the chosen category, or of a ticket without one (`data.noCategoryForm` of the
|
|
52
|
+
* categories answer), over the defaults.
|
|
53
|
+
*
|
|
54
|
+
* @param {{ noCategoryForm?: Partial<TicketForm> } | null | undefined} data
|
|
55
|
+
* @param {{ form?: Partial<TicketForm> } | null | undefined} category
|
|
56
|
+
* @returns {TicketForm}
|
|
57
|
+
*/
|
|
58
|
+
export function ticketFormOf(data, category) {
|
|
59
|
+
return { ...DEFAULT_TICKET_FORM, ...((category ? category.form : data?.noCategoryForm) ?? {}) };
|
|
60
|
+
}
|
|
61
|
+
|
|
34
62
|
/** The error codes the create call answers per field (`error.fields["fields.<key>"]`). */
|
|
35
63
|
export const FIELD_ERROR_CODES = ["REQUIRED", "INVALID", "TOO_SHORT", "TOO_LONG", "OUT_OF_RANGE", "UNKNOWN_OPTION"];
|
|
36
64
|
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
title writable store — ticket title field value
|
|
8
8
|
message writable store — ticket message textarea value
|
|
9
9
|
categoryId writable store — selected category id (-1 = no category); its custom fields render in <TicketFieldsForm>
|
|
10
|
+
(data.categoryEnabled === false: the form has no category choice)
|
|
11
|
+
The form of the chosen category (ticketFormOf from $pano/lib/ticketFields.js) says whether the title
|
|
12
|
+
and the description are asked for and gives their placeholders (empty: the theme's own).
|
|
10
13
|
loading writable store — request in-flight flag
|
|
11
14
|
submit function — (error, loading, title, message, categoryId) sends the create-ticket request
|
|
12
15
|
Override from a theme:
|
|
@@ -29,6 +32,7 @@
|
|
|
29
32
|
|
|
30
33
|
import ErrorAlert from "$pano/lib/components/ErrorAlert.svelte";
|
|
31
34
|
import TicketFieldsForm from "$pano/lib/components/TicketFieldsForm.svelte";
|
|
35
|
+
import { ticketFormOf } from "$pano/lib/ticketFields.js";
|
|
32
36
|
|
|
33
37
|
let titleInput;
|
|
34
38
|
|
|
@@ -42,33 +46,41 @@
|
|
|
42
46
|
export let loading;
|
|
43
47
|
export let submit;
|
|
44
48
|
|
|
45
|
-
$: isButtonDisabled = $title === "" || $message === "";
|
|
46
49
|
$: selectedCategory = (data.categories ?? []).find((category) => String(category.id) === String($categoryId)) ?? null;
|
|
50
|
+
$: categoryShown = data.categoryEnabled !== false;
|
|
51
|
+
$: form = ticketFormOf(data, selectedCategory);
|
|
52
|
+
$: isButtonDisabled = (form.titleEnabled && $title === "") || (form.messageEnabled && $message === "");
|
|
47
53
|
</script>
|
|
48
54
|
|
|
49
55
|
<div class="pano-create-ticket-view vstack gap-3">
|
|
50
56
|
<ErrorAlert error={$error} />
|
|
51
57
|
<div class="vstack gap-0">
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
{#if form.titleEnabled}
|
|
59
|
+
<input
|
|
60
|
+
id="ticketTitle"
|
|
61
|
+
type="text"
|
|
62
|
+
class="pano-create-ticket-view__input form-control form-control-lg"
|
|
63
|
+
class:rounded-bottom-0={categoryShown}
|
|
64
|
+
placeholder={form.titlePlaceholder || $_("pages.create-ticket.inputs.title")}
|
|
65
|
+
bind:value={$title}
|
|
66
|
+
bind:this={titleInput} />
|
|
67
|
+
{/if}
|
|
59
68
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
{#if categoryShown}
|
|
70
|
+
<select
|
|
71
|
+
class="pano-create-ticket-view__select form-select form-select-lg"
|
|
72
|
+
class:rounded-top-0={form.titleEnabled}
|
|
73
|
+
id="datalistOptions"
|
|
74
|
+
bind:value={$categoryId}>
|
|
75
|
+
<!-- Offered unless the website asks for a category (the categories answer says so). -->
|
|
76
|
+
{#if data.allowNoCategory !== false}
|
|
77
|
+
<option value={-1}>{$_("pages.create-ticket.inputs.no-category")}</option>
|
|
78
|
+
{/if}
|
|
79
|
+
{#each data.categories as category, index (category)}
|
|
80
|
+
<option value={category.id}>{category.title}</option>
|
|
81
|
+
{/each}
|
|
82
|
+
</select>
|
|
83
|
+
{/if}
|
|
72
84
|
</div>
|
|
73
85
|
|
|
74
86
|
<!-- The chosen category's custom fields (nothing when it has none) -->
|
|
@@ -76,7 +88,13 @@
|
|
|
76
88
|
|
|
77
89
|
<!-- Ticket Editor -->
|
|
78
90
|
|
|
79
|
-
|
|
91
|
+
{#if form.messageEnabled}
|
|
92
|
+
<textarea
|
|
93
|
+
bind:value={$message}
|
|
94
|
+
class="pano-create-ticket-view__input-2 form-control"
|
|
95
|
+
placeholder={form.messagePlaceholder || $_("pages.create-ticket.inputs.description")}
|
|
96
|
+
rows="6"></textarea>
|
|
97
|
+
{/if}
|
|
80
98
|
|
|
81
99
|
<button
|
|
82
100
|
class="pano-create-ticket-view__action btn btn-lg btn-secondary w-100"
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Default markup of the engine's <Breadcrumb> (registry name "Breadcrumb", contract 1).
|
|
3
3
|
|
|
4
4
|
Props:
|
|
5
|
-
items array - the normalized trail: { label, href?, icon?, html } (label already translated);
|
|
6
|
-
the last item is the current page
|
|
5
|
+
items array - the normalized trail: { label, href?, icon?, html, variant? } (label already translated);
|
|
6
|
+
variant="bootstrap" uses the plain Bootstrap 5 style; the last item is the current page
|
|
7
7
|
-->
|
|
8
8
|
{#if items.length > 0}
|
|
9
|
-
<nav
|
|
10
|
-
|
|
9
|
+
<nav
|
|
10
|
+
class={["pano-breadcrumb", bootstrapStyle && "pano-breadcrumb--bootstrap"]}
|
|
11
|
+
aria-label="breadcrumb">
|
|
12
|
+
<ol class={bootstrapStyle ? "breadcrumb" : "breadcrumb justify-content-center mb-0"}>
|
|
11
13
|
{#each items as crumb, i}
|
|
12
14
|
{@const isLast = i === items.length - 1}
|
|
13
15
|
<li
|
|
@@ -23,7 +25,11 @@
|
|
|
23
25
|
{crumb.label}
|
|
24
26
|
{/if}
|
|
25
27
|
{:else}
|
|
26
|
-
<a
|
|
28
|
+
<a
|
|
29
|
+
href={publicHref(crumb.href)}
|
|
30
|
+
class={bootstrapStyle
|
|
31
|
+
? undefined
|
|
32
|
+
: "pano-breadcrumb__badge text-decoration-none badge text-bg-primary rounded-pill px-1"}>
|
|
27
33
|
{#if crumb.icon}
|
|
28
34
|
<i class={crumb.icon}></i>
|
|
29
35
|
{:else if crumb.html}
|
|
@@ -40,7 +46,7 @@
|
|
|
40
46
|
{/if}
|
|
41
47
|
|
|
42
48
|
<style>
|
|
43
|
-
.breadcrumb {
|
|
49
|
+
.pano-breadcrumb:not(.pano-breadcrumb--bootstrap) .breadcrumb {
|
|
44
50
|
--bs-breadcrumb-divider: "•";
|
|
45
51
|
}
|
|
46
52
|
</style>
|
|
@@ -50,4 +56,5 @@
|
|
|
50
56
|
import { publicHref } from "$pano/lib/views/parts/publicHref.js";
|
|
51
57
|
|
|
52
58
|
export let items = [];
|
|
59
|
+
$: bootstrapStyle = items.some((item) => item.variant === "bootstrap");
|
|
53
60
|
</script>
|
|
@@ -20,7 +20,12 @@
|
|
|
20
20
|
</svelte:head>
|
|
21
21
|
|
|
22
22
|
<!-- Main Container -->
|
|
23
|
-
<main class="pano-main container">
|
|
23
|
+
<main class="pano-main container {backgroundImage ? 'has-background' : ''}">
|
|
24
|
+
{#if backgroundImage}
|
|
25
|
+
<div class="pano-main__background" aria-hidden="true">
|
|
26
|
+
<img src={backgroundImage} alt="" />
|
|
27
|
+
</div>
|
|
28
|
+
{/if}
|
|
24
29
|
|
|
25
30
|
{#if $pageTitle && !resolvedTitle.hidden}
|
|
26
31
|
{@const isString = typeof $pageTitle === "string"}
|
|
@@ -56,6 +61,7 @@
|
|
|
56
61
|
<!-- Main Container End -->
|
|
57
62
|
<script>
|
|
58
63
|
import PageTitle from "$pano/lib/components/PageTitle.svelte";
|
|
64
|
+
import { safeBackgroundImage } from "$pano/lib/pageTitle.util.js";
|
|
59
65
|
|
|
60
66
|
export let dev = false;
|
|
61
67
|
export let devUi = false;
|
|
@@ -66,6 +72,36 @@
|
|
|
66
72
|
export let sidebarEnabled = true;
|
|
67
73
|
export let sidebarPosition = "RIGHT";
|
|
68
74
|
|
|
75
|
+
$: backgroundImage = safeBackgroundImage($pageTitle);
|
|
76
|
+
|
|
69
77
|
// The theme's compiled stylesheet, served by the dev server only (a static asset, not a route).
|
|
70
78
|
const stylesheet = "/style.css";
|
|
71
79
|
</script>
|
|
80
|
+
|
|
81
|
+
<style>
|
|
82
|
+
.pano-main.has-background {
|
|
83
|
+
position: relative;
|
|
84
|
+
isolation: isolate;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pano-main__background {
|
|
88
|
+
position: absolute;
|
|
89
|
+
z-index: -1;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: 50%;
|
|
92
|
+
width: 100vw;
|
|
93
|
+
height: min(460px, 70vh);
|
|
94
|
+
transform: translateX(-50%);
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pano-main__background img {
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
object-fit: cover;
|
|
104
|
+
object-position: center;
|
|
105
|
+
opacity: 0.32;
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -9,12 +9,17 @@
|
|
|
9
9
|
<div class="col-md-6">
|
|
10
10
|
<Post post="{post}" />
|
|
11
11
|
</div>
|
|
12
|
+
{:else}
|
|
13
|
+
<div class="col-12">
|
|
14
|
+
<NoContent />
|
|
15
|
+
</div>
|
|
12
16
|
{/each}
|
|
13
17
|
</div>
|
|
14
18
|
|
|
15
19
|
<!-- Post Card End -->
|
|
16
20
|
<script>
|
|
17
21
|
import Post from "$pano/lib/components/Post.svelte";
|
|
22
|
+
import NoContent from "$pano/lib/components/NoContent.svelte";
|
|
18
23
|
|
|
19
24
|
export let posts;
|
|
20
25
|
</script>
|
|
@@ -33,7 +33,7 @@ export const engineViews = {
|
|
|
33
33
|
"Sidebar": { contract: 1, component: () => import("./Sidebar.svelte") },
|
|
34
34
|
"Breadcrumb": { contract: 1, component: () => import("./Breadcrumb.svelte") },
|
|
35
35
|
"Post": { contract: 1, component: () => import("./Post.svelte"), uses: ["Date"] },
|
|
36
|
-
"Posts": { contract: 1, component: () => import("./Posts.svelte"), uses: ["Post"] },
|
|
36
|
+
"Posts": { contract: 1, component: () => import("./Posts.svelte"), uses: ["NoContent","Post"] },
|
|
37
37
|
"Tickets": { contract: 1, component: () => import("./Tickets.svelte"), uses: ["NoContent","TicketRow"] },
|
|
38
38
|
"TicketRow": { contract: 1, component: () => import("./TicketRow.svelte"), uses: ["Date","TicketStatus"] },
|
|
39
39
|
"TicketStatus": { contract: 1, component: () => import("./TicketStatus.svelte") },
|