@panomc/theme-core 1.2.1-dev.1 → 1.2.1-dev.3
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 +27 -7
- package/bin/bundle-internal-libs.js +5 -4
- package/bin/generate-runtime-shims.js +4 -4
- package/bin/remove-dir.js +37 -0
- package/lang/tr.json +2 -2
- package/package.json +3 -3
- package/skin-contract.json +1 -1
- package/src/lib/__tests__/engineParts.helper.js +2 -2
- package/src/lib/__tests__/engineSidebars.helper.js +2 -2
- package/src/lib/__tests__/engineStyles.test.js +3 -2
- package/src/lib/__tests__/fixtures/engine-parts.ssr.json +2 -2
- package/src/lib/__tests__/fixtures/engine-sidebars.ssr.json +12 -12
- package/src/lib/__tests__/skinContract.test.js +1 -1
- package/src/lib/__tests__/tc03.test.js +6 -5
- package/src/lib/components/Footer.svelte +6 -23
- package/src/lib/components/NoContent.svelte +6 -4
- package/src/lib/components/OnlineAdmins.svelte +8 -2
- package/src/lib/components/sidebars/ProfileNavCard.svelte +2 -5
- package/src/lib/pages/LoginPage.svelte +11 -0
- package/src/lib/views/CreateTicketView.svelte +7 -1
- package/src/lib/views/LoginView.svelte +2 -0
- package/src/lib/views/NotificationsView.svelte +1 -1
- package/src/lib/views/TicketDetailView.svelte +10 -1
- package/src/lib/views/parts/HomeSidebar.svelte +7 -1
- package/src/lib/views/parts/Posts.svelte +0 -5
- package/src/lib/views/parts/ProfileSidebar.svelte +1 -1
- package/src/lib/views/parts/SupportSidebar.svelte +9 -1
- package/src/lib/views/parts/TicketCreateAndDetailSidebar.svelte +9 -1
- package/src/lib/views/parts/Tickets.svelte +1 -1
- package/src/lib/views/parts/engine-views.generated.js +1 -1
|
@@ -2149,6 +2149,30 @@
|
|
|
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
|
+
}
|
|
2152
2176
|
.list-group-flush {
|
|
2153
2177
|
border-radius: 0;
|
|
2154
2178
|
}
|
|
@@ -2697,10 +2721,6 @@
|
|
|
2697
2721
|
color: #fff;
|
|
2698
2722
|
background-color: color-mix(in srgb, var(--bs-warning) calc(var(--bs-bg-opacity, 1) * 100%), transparent);
|
|
2699
2723
|
}
|
|
2700
|
-
.text-bg-purple {
|
|
2701
|
-
color: #fff;
|
|
2702
|
-
background-color: RGBA(var(--bs-purple-rgb), var(--bs-bg-opacity, 1));
|
|
2703
|
-
}
|
|
2704
2724
|
.link-primary {
|
|
2705
2725
|
color: color-mix(in srgb, var(--bs-primary) calc(var(--bs-link-opacity, 1) * 100%), transparent);
|
|
2706
2726
|
text-decoration-color: color-mix(in srgb, var(--bs-primary) calc(var(--bs-link-underline-opacity, 1) * 100%), transparent);
|
|
@@ -2750,6 +2770,9 @@
|
|
|
2750
2770
|
.object-fit-cover {
|
|
2751
2771
|
object-fit: cover;
|
|
2752
2772
|
}
|
|
2773
|
+
.opacity-25 {
|
|
2774
|
+
opacity: 0.25;
|
|
2775
|
+
}
|
|
2753
2776
|
.opacity-50 {
|
|
2754
2777
|
opacity: 0.5;
|
|
2755
2778
|
}
|
|
@@ -2962,9 +2985,6 @@
|
|
|
2962
2985
|
.mb-1 {
|
|
2963
2986
|
margin-bottom: 0.25rem;
|
|
2964
2987
|
}
|
|
2965
|
-
.mb-2 {
|
|
2966
|
-
margin-bottom: 0.5rem;
|
|
2967
|
-
}
|
|
2968
2988
|
.mb-3 {
|
|
2969
2989
|
margin-bottom: 1rem;
|
|
2970
2990
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import {
|
|
8
8
|
existsSync,
|
|
9
9
|
mkdirSync,
|
|
10
|
-
rmSync,
|
|
11
10
|
writeFileSync,
|
|
12
11
|
readFileSync,
|
|
13
12
|
readdirSync,
|
|
@@ -19,6 +18,8 @@ import { dirname, join } from "node:path";
|
|
|
19
18
|
import { createRequire } from "node:module";
|
|
20
19
|
import { createHash } from "node:crypto";
|
|
21
20
|
|
|
21
|
+
import { removeDir } from "./remove-dir.js";
|
|
22
|
+
|
|
22
23
|
const libRootDir = "./static/lib";
|
|
23
24
|
const tempBundleDir = "./.lib-bundle-output";
|
|
24
25
|
const internalLibsModulePath = "./src/lib/internalLibs.js";
|
|
@@ -54,7 +55,7 @@ function hashDirectory(dir) {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
if (existsSync(tempBundleDir))
|
|
57
|
-
|
|
58
|
+
removeDir(tempBundleDir);
|
|
58
59
|
mkdirSync(join(tempBundleDir, "bootstrap"), { recursive: true });
|
|
59
60
|
|
|
60
61
|
// Resolved from the theme's package.json, not from ./node_modules: inside a Bun workspace the
|
|
@@ -87,7 +88,7 @@ mkdirSync(libRootDir, { recursive: true });
|
|
|
87
88
|
const targetDir = join(libRootDir, internalLibsHash);
|
|
88
89
|
if (existsSync(targetDir)) {
|
|
89
90
|
// Same content already staged (e.g. repeated install) — nothing to move.
|
|
90
|
-
|
|
91
|
+
removeDir(tempBundleDir);
|
|
91
92
|
} else {
|
|
92
93
|
renameSync(tempBundleDir, targetDir);
|
|
93
94
|
}
|
|
@@ -102,7 +103,7 @@ const staleDirs = readdirSync(libRootDir)
|
|
|
102
103
|
|
|
103
104
|
for (const dir of staleDirs) {
|
|
104
105
|
console.log(`Pruning old lib dir ${dir}`);
|
|
105
|
-
|
|
106
|
+
removeDir(dir);
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
mkdirSync("./src/lib", { recursive: true });
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import {
|
|
25
25
|
mkdirSync,
|
|
26
|
-
rmSync,
|
|
27
26
|
writeFileSync,
|
|
28
27
|
readdirSync,
|
|
29
28
|
readFileSync,
|
|
@@ -32,6 +31,7 @@ import {
|
|
|
32
31
|
import { join } from "node:path";
|
|
33
32
|
import { createHash } from "node:crypto";
|
|
34
33
|
import { SVELTE_SPECIFIERS, SDK_SPECIFIERS } from "../src/kit/specifiers.js";
|
|
34
|
+
import { removeDir } from "./remove-dir.js";
|
|
35
35
|
|
|
36
36
|
const outputRootDir = "./static/runtime";
|
|
37
37
|
const tempEntryDir = "./.runtime-shims-temp";
|
|
@@ -167,8 +167,8 @@ function hashDirectory(dir) {
|
|
|
167
167
|
return hasher.digest("hex").slice(0, 16);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
removeDir(outputRootDir);
|
|
171
|
+
removeDir(tempEntryDir);
|
|
172
172
|
mkdirSync(join(outputRootDir, "svelte"), { recursive: true });
|
|
173
173
|
mkdirSync(join(outputRootDir, "sdk"), { recursive: true });
|
|
174
174
|
mkdirSync(tempEntryDir, { recursive: true });
|
|
@@ -191,7 +191,7 @@ writeFileSync(
|
|
|
191
191
|
`export const runtimeShimsHash = ${JSON.stringify(runtimeShimsHash)};\n`,
|
|
192
192
|
);
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
removeDir(tempEntryDir);
|
|
195
195
|
|
|
196
196
|
console.log(
|
|
197
197
|
`Runtime shims generated into ${outputRootDir} (hash ${runtimeShimsHash})`,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Removes a directory tree. `rmSync(dir, { recursive: true, force: true })` alone is not enough: Bun on
|
|
2
|
+
// Windows (seen on 1.4.4) returns without an error and leaves the tree in place, so the install scripts'
|
|
3
|
+
// temp folders (`.lib-bundle-output`, `.runtime-shims-temp`) stayed in every repo. When the tree is still
|
|
4
|
+
// there afterwards it is walked and removed file by file.
|
|
5
|
+
import { existsSync, readdirSync, rmdirSync, rmSync, unlinkSync } from "node:fs";
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
|
|
8
|
+
/** @param {string} dir */
|
|
9
|
+
function removeTree(dir) {
|
|
10
|
+
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
11
|
+
const full = join(dir, entry.name);
|
|
12
|
+
|
|
13
|
+
if (entry.isDirectory()) {
|
|
14
|
+
removeTree(full);
|
|
15
|
+
} else {
|
|
16
|
+
unlinkSync(full);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
rmdirSync(dir);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Removes `dir` and everything in it; a missing `dir` is fine.
|
|
25
|
+
* @param {string} dir
|
|
26
|
+
*/
|
|
27
|
+
export function removeDir(dir) {
|
|
28
|
+
if (!existsSync(dir)) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
rmSync(dir, { recursive: true, force: true });
|
|
33
|
+
|
|
34
|
+
if (existsSync(dir)) {
|
|
35
|
+
removeTree(dir);
|
|
36
|
+
}
|
|
37
|
+
}
|
package/lang/tr.json
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"server-status": "Sunucu Durumu",
|
|
58
58
|
"online": "Çevrimiçi",
|
|
59
59
|
"offline": "Çevrimdışı",
|
|
60
|
-
"last-registrants": "Son
|
|
60
|
+
"last-registrants": "Son Kaydolanlar",
|
|
61
61
|
"game-client-version": "Oyun Versiyonu",
|
|
62
62
|
"playing": "{playerCount}/{maxPlayerCount} oynuyor",
|
|
63
63
|
"click-to-copy": "Kopyalamak için tıkla"
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"left": "Sol",
|
|
410
410
|
"right": "Sağ"
|
|
411
411
|
},
|
|
412
|
-
"last-registrants": "Son
|
|
412
|
+
"last-registrants": "Son Kaydolanlar Kartı",
|
|
413
413
|
"online-admins": "Çevrimiçi Yöneticiler Kartı (Destek)",
|
|
414
414
|
"play-card-style": "Kart Stili",
|
|
415
415
|
"play-card-styles": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panomc/theme-core",
|
|
3
|
-
"version": "1.2.1-dev.
|
|
3
|
+
"version": "1.2.1-dev.3",
|
|
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.3",
|
|
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.3",
|
|
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
|
@@ -101,8 +101,8 @@ export async function renderPart({ svelteDir, root = pkgDir, extraSvelte = {}, e
|
|
|
101
101
|
let sourceDir = pkgDir;
|
|
102
102
|
if (loc.kind === "svelte") {
|
|
103
103
|
const source = loc.source ?? readFileSync(loc.file, "utf-8");
|
|
104
|
-
if (loc.file &&
|
|
105
|
-
code = compiler.compile(source, { generate: "server", filename: loc.file
|
|
104
|
+
if (loc.file && !/^(stub|extra):/.test(loc.file)) sourceDir = dirname(loc.file);
|
|
105
|
+
code = compiler.compile(source, { generate: "server", filename: /^(stub|extra):/.test(loc.file) ? "Part.svelte" : loc.file.slice(pkgDir.length + 1).replaceAll("\\", "/") }).js.code;
|
|
106
106
|
} else {
|
|
107
107
|
code = loc.source;
|
|
108
108
|
}
|
|
@@ -130,8 +130,8 @@ export async function openSession({ svelteDir, root = pkgDir, extraJs = {}, extr
|
|
|
130
130
|
let sourceDir = pkgDir;
|
|
131
131
|
if (loc.kind === "svelte") {
|
|
132
132
|
const source = loc.source ?? readFileSync(loc.file, "utf-8");
|
|
133
|
-
if (!loc.file.
|
|
134
|
-
code = compiler.compile(source, { generate: "server", filename: loc.file.
|
|
133
|
+
if (!loc.file.startsWith("stub:")) sourceDir = dirname(loc.file);
|
|
134
|
+
code = compiler.compile(source, { generate: "server", filename: loc.file.startsWith("stub:") ? "Part.svelte" : loc.file.split(/[\\/]/).pop() }).js.code;
|
|
135
135
|
} else {
|
|
136
136
|
code = loc.source;
|
|
137
137
|
}
|
|
@@ -80,7 +80,6 @@ describe("engine semantic classes (doc 03 section 1, ns = pano)", () => {
|
|
|
80
80
|
const KNOWN_BADGE_DEBT = {
|
|
81
81
|
"components/Footer.svelte|style-block-scope": 1,
|
|
82
82
|
"components/Footer.svelte|class-allowed": 2,
|
|
83
|
-
"components/Footer.svelte|dynamic-class": 1,
|
|
84
83
|
"components/Footer.svelte|style-attr": 1,
|
|
85
84
|
"components/Header.svelte|class-allowed": 3,
|
|
86
85
|
"components/Header.svelte|style-attr": 3,
|
|
@@ -113,7 +112,9 @@ const KNOWN_BADGE_DEBT = {
|
|
|
113
112
|
"views/parts/HomeSidebar.svelte|class-allowed": 6,
|
|
114
113
|
"views/parts/HomeSidebar.svelte|dynamic-class": 6,
|
|
115
114
|
"views/parts/HomeSidebar.svelte|style-attr": 4,
|
|
116
|
-
"views/parts/HomeSidebar.svelte|style-block-scope":
|
|
115
|
+
"views/parts/HomeSidebar.svelte|style-block-scope": 6,
|
|
116
|
+
"views/parts/SupportSidebar.svelte|style-block-scope": 1,
|
|
117
|
+
"views/parts/TicketCreateAndDetailSidebar.svelte|style-block-scope": 1,
|
|
117
118
|
"views/parts/PlayerDetailSidebar.svelte|class-allowed": 1,
|
|
118
119
|
"views/parts/PlayerDetailSidebar.svelte|style-block-scope": 3,
|
|
119
120
|
"views/parts/ProfileSidebar.svelte|class-allowed": 1,
|
|
@@ -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\"><!--[
|
|
19
|
+
"Posts/empty": "<!--[--><!--[--><div class=\"pano-posts row g-3\"><!--[--><!--]--></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
|
|
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> <!--[-1--><!--]--> <!--[--><!--]--></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><!--]--><!--]--><!--]-->",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"HomeSidebar/style-2": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><!--[0--><div class=\"card position-relative overflow-hidden square-card-desktop svelte-1hwb5cb\"><div class=\"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=\"list-group list-group-flush text-center bg-transparent position-relative z-1\"><li class=\"list-group-item border-0 py-2 bg-transparent\"><button class=\"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=\"list-group-item border-0 py-2 bg-transparent\"><!--[0--><span class=\"badge text-bg-success\">sidebars.home.online</span><!--]--></li><!--]--> <!--[0--><li class=\"list-group-item border-0 py-2 bg-transparent\">sidebars.home.playing{\"playerCount\":3,\"maxPlayerCount\":20}</li><!--]--> <!--[0--><li class=\"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=\"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=\"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=\"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><!--]--><!--]-->",
|
|
3
|
-
"HomeSidebar/style-1-settings": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><!--[-1--><div class=\"card border-0 square-card-desktop svelte-1hwb5cb\"><div class=\"card-header text-bg-danger p-0 rounded-top border-bottom border-5 border-danger svelte-1hwb5cb\"><button class=\"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=\"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=\"list-group list-group-flush text-center bg-transparent position-relative z-1\"><!--[0--><li class=\"list-group-item border-0 py-2 bg-transparent\"><!--[-1--><span class=\"badge text-bg-danger rounded-pill\">sidebars.home.offline</span><!--]--></li><!--]--> <!--[0--><li class=\"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=\"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=\"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=\"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
|
-
"HomeSidebar/style-2-minimal-and-hidden-registrants": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><!--[0--><div class=\"card position-relative overflow-hidden square-card-desktop svelte-1hwb5cb\"><div class=\"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=\"list-group list-group-flush text-center bg-transparent position-relative z-1\"><li class=\"list-group-item border-0 py-2 bg-transparent\"><button class=\"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=\"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=\"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=\"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=\"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
|
-
"HomeSidebar/plugin-item": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><!--[0--><div class=\"card position-relative overflow-hidden square-card-desktop svelte-1hwb5cb\"><div class=\"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=\"list-group list-group-flush text-center bg-transparent position-relative z-1\"><li class=\"list-group-item border-0 py-2 bg-transparent\"><button class=\"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=\"list-group-item border-0 py-2 bg-transparent\"><!--[0--><span class=\"badge text-bg-success\">sidebars.home.online</span><!--]--></li><!--]--> <!--[0--><li class=\"list-group-item border-0 py-2 bg-transparent\">sidebars.home.playing{\"playerCount\":3,\"maxPlayerCount\":20}</li><!--]--> <!--[0--><li class=\"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=\"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=\"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=\"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=\"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 active\" aria-current=\"page\" href=\"/profile\"
|
|
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=\"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=\"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 active\" aria-current=\"page\" href=\"/profile\"
|
|
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=\"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 active\" aria-current=\"page\" href=\"/profile\"
|
|
9
|
-
"SupportSidebar/admins": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card
|
|
10
|
-
"SupportSidebar/no-admins-plugin-item": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[0--><div class=\"card
|
|
2
|
+
"HomeSidebar/style-2": "<!--[--><!--[--><!--[--><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><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
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
|
+
"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
|
+
"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 list-group-horizontal-md\"><!--[--><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 list-group-horizontal-md\"><!--[--><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 list-group-horizontal-md\"><!--[--><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><!----> <div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><!--[0--><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\" 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><!----> <div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><!--[-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> <!--[-1--><!--]--> <!--[--><!--]--></div></div><!--]--></div></div><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"faq\" data-keys=\"data,extra\"></div><!--]--><!--]--><!--]--><!--]--></div><!--]--><!--]--></aside><!--]--><!--]--><!--]-->",
|
|
11
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
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\"><!--[--><!--[1--><!--[0--><button class=\"btn btn-danger w-100\" type=\"button\"><i class=\"fas fa-times me-2\"></i> buttons.close-ticket</button><!--]--><!--]--><!--[0--><div class=\"card
|
|
14
|
-
"TicketCreateAndDetailSidebar/closed-ticket": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-last\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[1--><!--[-1--><!--]--><!--]--><!--[0--><div class=\"card
|
|
15
|
-
"TicketCreateAndDetailSidebar/create-page-plugin-item": "<!--[--><!--[--><aside class=\"pano-sidebar col-lg-4 order-first order-lg-first\"><!--[--><!--[--><div class=\"vstack gap-3\"><!--[--><!--[1--><!--[-1--><!--]--><!--]--><!--[-1--><!--[0--><!--[--><div class=\"plugin-item\" data-extra=\"ticket-help\" data-keys=\"data,extra,ticketData\"></div><!--]--><!--]--><!--]--><!--[0--><div class=\"card
|
|
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><!----> <div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><!--[0--><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\"><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><!----> <div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><!--[-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> <!--[-1--><!--]--> <!--[--><!--]--></div></div><!--]--></div></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><!----> <div class=\"card-body pt-3 d-flex flex-column justify-content-start\"><!--[0--><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
|
}
|
|
@@ -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(["
|
|
138
|
+
expect(engineViews.Posts.uses).toEqual(["Post"]);
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
test("the table registers with the registry", () => {
|
|
@@ -227,7 +227,7 @@ describe.skipIf(!svelteDir)("server render", () => {
|
|
|
227
227
|
String(text).replace(/\\{(\\w+)\\}/g, (m, k) => (options.values && k in options.values ? options.values[k] : m)));
|
|
228
228
|
`;
|
|
229
229
|
|
|
230
|
-
test("ProfileNavCard renders list-group links, the active one
|
|
230
|
+
test("ProfileNavCard renders list-group links, the active one and badge (no icons)", async () => {
|
|
231
231
|
const { body } = await renderSvelte({
|
|
232
232
|
svelteDir,
|
|
233
233
|
components: { "#card": join(sidebars, "ProfileNavCard.svelte") },
|
|
@@ -239,13 +239,14 @@ describe.skipIf(!svelteDir)("server render", () => {
|
|
|
239
239
|
},
|
|
240
240
|
});
|
|
241
241
|
|
|
242
|
-
expect(body).toContain('<div class="card"><div class="list-group list-group-flush">');
|
|
243
|
-
expect(body.match(/list-group-item list-group-item-action d-flex align-items-center/g).length).toBe(2);
|
|
244
|
-
expect(body).toMatch(/class="list-group-item list-group-item-action d-flex align-items-center active"[^>]*href="\/profile\/orders"/);
|
|
242
|
+
expect(body).toContain('<div class="card"><div class="list-group list-group-flush list-group-horizontal-md">');
|
|
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
|
+
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
247
|
expect(body).toContain('<span class="badge text-bg-primary ms-auto">3</span>');
|
|
248
|
-
|
|
248
|
+
// the horizontal nav shows text only: an entry's icon is not rendered
|
|
249
|
+
expect(body).not.toContain("fas fa-user");
|
|
249
250
|
});
|
|
250
251
|
|
|
251
252
|
test("ProfileNavCard escapes text coming from a plugin", async () => {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
<div class="col-lg-4 d-flex justify-content-center align-items-center">
|
|
84
84
|
<button
|
|
85
85
|
type="button"
|
|
86
|
-
class="pano-footer__badge badge fs-6
|
|
86
|
+
class="pano-footer__badge badge fs-6 text-bg-secondary rounded-pill border-0"
|
|
87
87
|
on:click={onCopyIpClick}
|
|
88
88
|
aria-label={$session.siteInfo.ipAddress}
|
|
89
89
|
use:tooltip={[
|
|
@@ -100,18 +100,12 @@
|
|
|
100
100
|
href={PANO_WEBSITE_URL}
|
|
101
101
|
target="_blank"
|
|
102
102
|
rel="noreferrer"
|
|
103
|
-
class="d-inline-flex align-items-center justify-content-center bg-primary rounded-3
|
|
104
|
-
style="width:
|
|
105
|
-
title="Pano"
|
|
106
|
-
|
|
103
|
+
class="d-inline-flex align-items-center justify-content-center bg-primary rounded-3 focus-ring"
|
|
104
|
+
style="width: 40px; height: 40px; --bs-focus-ring-color: rgba(255, 255, 255, 0.5);"
|
|
105
|
+
title="Powered by Pano"
|
|
106
|
+
aria-label="Powered by Pano">
|
|
107
|
+
<img src="/assets/img/logo.svg" width="24" height="24" alt="Pano" />
|
|
107
108
|
</a>
|
|
108
|
-
<small>
|
|
109
|
-
{@html sanitizeRichHtml($_("footer.been-created-with", {
|
|
110
|
-
values: {
|
|
111
|
-
pano: `<a href="${PANO_WEBSITE_URL}" class="rounded focus-ring" target="_blank" rel="noreferrer">Pano</a>`,
|
|
112
|
-
},
|
|
113
|
-
}))}
|
|
114
|
-
</small>
|
|
115
109
|
</div>
|
|
116
110
|
</div>
|
|
117
111
|
</div>
|
|
@@ -146,17 +140,6 @@
|
|
|
146
140
|
},
|
|
147
141
|
];
|
|
148
142
|
|
|
149
|
-
$: ipBadgeClass =
|
|
150
|
-
themeSettings.themeColor === "emerald"
|
|
151
|
-
? "text-bg-success"
|
|
152
|
-
: themeSettings.themeColor === "midnight"
|
|
153
|
-
? "text-bg-purple"
|
|
154
|
-
: themeSettings.themeColor === "crimson"
|
|
155
|
-
? "text-bg-danger"
|
|
156
|
-
: themeSettings.themeColor === "copper"
|
|
157
|
-
? "text-bg-warning"
|
|
158
|
-
: "text-bg-secondary";
|
|
159
|
-
|
|
160
143
|
$: displayLinks = (() => {
|
|
161
144
|
// Check if footer links are globally disabled
|
|
162
145
|
if (themeSettings.footerLinksEnabled === false) return [];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
<div class="pano-no-content
|
|
2
|
-
<div class="pano-no-content__body
|
|
1
|
+
<div class="pano-no-content border-0 opacity-25 bg-transparent">
|
|
2
|
+
<div class="pano-no-content__body vstack gap-3 text-center py-2">
|
|
3
3
|
<span class={icon}></span>
|
|
4
|
-
|
|
4
|
+
{#if text}
|
|
5
|
+
<p class="mb-0">{text}</p>
|
|
6
|
+
{/if}
|
|
5
7
|
<slot />
|
|
6
8
|
</div>
|
|
7
9
|
</div>
|
|
@@ -9,6 +11,6 @@
|
|
|
9
11
|
<script>
|
|
10
12
|
import { _ } from "svelte-i18n";
|
|
11
13
|
|
|
12
|
-
export let icon = "fa-
|
|
14
|
+
export let icon = "fa-regular fa-square fa-3x";
|
|
13
15
|
export let text = $_("components.no-content.text");
|
|
14
16
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Online Admins Card -->
|
|
2
2
|
<div
|
|
3
|
-
class="card
|
|
3
|
+
class="online-admins-card card mb-3 mb-lg-0"
|
|
4
4
|
hidden={typeof themeSettings.sidebarCarts?.onlineAdmins === "undefined"
|
|
5
5
|
? false
|
|
6
6
|
: !themeSettings.sidebarCarts.onlineAdmins}>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
{/each}
|
|
29
29
|
</div>
|
|
30
30
|
{:else}
|
|
31
|
-
<NoContent />
|
|
31
|
+
<NoContent text="" />
|
|
32
32
|
{/if}
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
@@ -51,6 +51,12 @@
|
|
|
51
51
|
<style>
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
@media (min-width: 992px) {
|
|
55
|
+
.online-admins-card {
|
|
56
|
+
aspect-ratio: 1 / 1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
54
60
|
.online-admin-link {
|
|
55
61
|
display: block;
|
|
56
62
|
flex-shrink: 0;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
<div class="card">
|
|
2
|
-
<div class="list-group list-group-flush">
|
|
2
|
+
<div class="list-group list-group-flush list-group-horizontal-md">
|
|
3
3
|
{#each entries as entry (entry.id)}
|
|
4
4
|
<a
|
|
5
|
-
class="list-group-item list-group-item-action d-flex align-items-center"
|
|
5
|
+
class="list-group-item list-group-item-action d-flex align-items-center justify-content-center text-center"
|
|
6
6
|
class:active={entry.active}
|
|
7
7
|
aria-current={entry.active ? "page" : undefined}
|
|
8
8
|
href={entry.href}>
|
|
9
|
-
{#if entry.icon}
|
|
10
|
-
<i class="{entry.icon} fa-fw me-2" aria-hidden="true"></i>
|
|
11
|
-
{/if}
|
|
12
9
|
{entry.text}
|
|
13
10
|
{#if entry.badge}
|
|
14
11
|
<span class="badge text-bg-primary ms-auto">{entry.badge}</span>
|
|
@@ -106,12 +106,21 @@
|
|
|
106
106
|
|
|
107
107
|
const session = getContext("session");
|
|
108
108
|
|
|
109
|
+
// The username the password step was opened for. A browser or password manager that autofills the form fires
|
|
110
|
+
// `input` on the username field with the same value: that must not close the password step again, or the
|
|
111
|
+
// manager refills, the field closes again, and the form flickers forever.
|
|
112
|
+
let passwordStepIdentifier = null;
|
|
113
|
+
|
|
109
114
|
function onUsernameOrEmailFieldInput() {
|
|
110
115
|
const c = stripIdentifierWhitespace($usernameOrEmail);
|
|
111
116
|
if (c !== $usernameOrEmail) {
|
|
112
117
|
$usernameOrEmail = c;
|
|
113
118
|
}
|
|
119
|
+
if ($passwordVisible && passwordStepIdentifier !== null && c === passwordStepIdentifier) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
114
122
|
if (!$emailRequired && !($session?.siteInfo?.isDemo && $usernameOrEmail === "demo")) {
|
|
123
|
+
passwordStepIdentifier = null;
|
|
115
124
|
$passwordVisible = false;
|
|
116
125
|
$password = "";
|
|
117
126
|
}
|
|
@@ -143,6 +152,7 @@
|
|
|
143
152
|
$error = null;
|
|
144
153
|
$autoVerifyDone = false;
|
|
145
154
|
$linkCode = "";
|
|
155
|
+
passwordStepIdentifier = null;
|
|
146
156
|
$passwordVisible = false;
|
|
147
157
|
$emailRequired = false;
|
|
148
158
|
$email = "";
|
|
@@ -333,6 +343,7 @@
|
|
|
333
343
|
}
|
|
334
344
|
|
|
335
345
|
if (errorCode === "LOGIN_IS_INVALID" && !$passwordVisible) {
|
|
346
|
+
passwordStepIdentifier = stripIdentifierWhitespace($usernameOrEmail);
|
|
336
347
|
$passwordVisible = true;
|
|
337
348
|
if ($session?.siteInfo?.isDemo && $usernameOrEmail === "demo") {
|
|
338
349
|
$password = "123456";
|
|
@@ -25,10 +25,15 @@
|
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
27
|
import { _ } from "svelte-i18n";
|
|
28
|
+
import { onMount } from "svelte";
|
|
28
29
|
|
|
29
30
|
import ErrorAlert from "$pano/lib/components/ErrorAlert.svelte";
|
|
30
31
|
import TicketFieldsForm from "$pano/lib/components/TicketFieldsForm.svelte";
|
|
31
32
|
|
|
33
|
+
let titleInput;
|
|
34
|
+
|
|
35
|
+
onMount(() => titleInput?.focus());
|
|
36
|
+
|
|
32
37
|
export let data;
|
|
33
38
|
export let error;
|
|
34
39
|
export let title;
|
|
@@ -49,7 +54,8 @@
|
|
|
49
54
|
type="text"
|
|
50
55
|
class="pano-create-ticket-view__input form-control form-control-lg rounded-bottom-0"
|
|
51
56
|
placeholder={$_("pages.create-ticket.inputs.title")}
|
|
52
|
-
bind:value={$title}
|
|
57
|
+
bind:value={$title}
|
|
58
|
+
bind:this={titleInput} />
|
|
53
59
|
|
|
54
60
|
<select
|
|
55
61
|
class="pano-create-ticket-view__select form-select form-select-lg rounded-top-0"
|
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
bind:value={$usernameOrEmail}
|
|
122
122
|
class="pano-login-view__input form-control {$passwordVisible ? 'rounded-bottom-0' : 'rounded'}"
|
|
123
123
|
id="usernameOrEmail"
|
|
124
|
+
autocomplete="username"
|
|
124
125
|
on:input={onUsernameOrEmailFieldInput}
|
|
125
126
|
disabled={$loading || $emailRequired}
|
|
126
127
|
type="text" />
|
|
@@ -135,6 +136,7 @@
|
|
|
135
136
|
bind:value={$password}
|
|
136
137
|
class="pano-login-view__input-2 form-control rounded-0 {$emailRequired ? '' : 'rounded-bottom'}"
|
|
137
138
|
id="password"
|
|
139
|
+
autocomplete="current-password"
|
|
138
140
|
on:input={() => {
|
|
139
141
|
$error = null;
|
|
140
142
|
}}
|
|
@@ -119,7 +119,8 @@
|
|
|
119
119
|
<textarea
|
|
120
120
|
placeholder={$_("pages.ticket-detail.inputs.message.placeholder")}
|
|
121
121
|
class="pano-ticket-detail-view__input form-control"
|
|
122
|
-
bind:value={$message}
|
|
122
|
+
bind:value={$message}
|
|
123
|
+
bind:this={replyInput}></textarea>
|
|
123
124
|
<button
|
|
124
125
|
class="pano-ticket-detail-view__send btn btn-secondary border-left-0"
|
|
125
126
|
disabled={$messageSendLoading || isSendButtonDisabled}
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
|
|
145
146
|
<script>
|
|
146
147
|
import { _ } from "svelte-i18n";
|
|
148
|
+
import { onMount } from "svelte";
|
|
147
149
|
|
|
148
150
|
import { route } from "$pano/registry/routes.js";
|
|
149
151
|
|
|
@@ -170,5 +172,12 @@
|
|
|
170
172
|
export let loadMore;
|
|
171
173
|
export let sendMessage;
|
|
172
174
|
|
|
175
|
+
let replyInput;
|
|
176
|
+
|
|
177
|
+
// Focus the reply box on open, only when the ticket is still open.
|
|
178
|
+
onMount(() => {
|
|
179
|
+
if ($ticket.status !== TicketStatuses.CLOSED) replyInput?.focus();
|
|
180
|
+
});
|
|
181
|
+
|
|
173
182
|
$: isSendButtonDisabled = $message === "";
|
|
174
183
|
</script>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
showPlayCardVersionInfo boolean - show the game version
|
|
28
28
|
-->
|
|
29
29
|
<Sidebar side={side}>
|
|
30
|
-
<div class="vstack gap-3">
|
|
30
|
+
<div class="vstack gap-3 pano-sidebar-cards">
|
|
31
31
|
{#each $items as item (item.id)}
|
|
32
32
|
{#if item.id === "play-button"}
|
|
33
33
|
{#if (themeSettings.playCardStyle || "style-2") === "style-2"}
|
|
@@ -331,4 +331,10 @@
|
|
|
331
331
|
justify-content: center;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
+
|
|
335
|
+
/* Sidebar card headers (title and actions) are centered */
|
|
336
|
+
.pano-sidebar-cards :global(.card-header .row > div) {
|
|
337
|
+
text-align: center !important;
|
|
338
|
+
justify-content: center !important;
|
|
339
|
+
}
|
|
334
340
|
</style>
|
|
@@ -9,17 +9,12 @@
|
|
|
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>
|
|
16
12
|
{/each}
|
|
17
13
|
</div>
|
|
18
14
|
|
|
19
15
|
<!-- Post Card End -->
|
|
20
16
|
<script>
|
|
21
17
|
import Post from "$pano/lib/components/Post.svelte";
|
|
22
|
-
import NoContent from "$pano/lib/components/NoContent.svelte";
|
|
23
18
|
|
|
24
19
|
export let posts;
|
|
25
20
|
</script>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
{:else if showCreateTicket}
|
|
31
31
|
<div class="order-last order-lg-first w-100">
|
|
32
32
|
<a
|
|
33
|
-
class="pano-profile-sidebar__create-ticket btn btn-
|
|
33
|
+
class="pano-profile-sidebar__create-ticket btn btn-secondary w-100"
|
|
34
34
|
role="button"
|
|
35
35
|
href={route("/ticket/create")}>
|
|
36
36
|
<i class="fas fa-plus me-2"></i>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
data store of { onlineAdmins: string[] }
|
|
11
11
|
-->
|
|
12
12
|
<Sidebar side="{side}">
|
|
13
|
-
<div class="vstack gap-3">
|
|
13
|
+
<div class="vstack gap-3 pano-sidebar-cards">
|
|
14
14
|
{#each $items as item (item.id)}
|
|
15
15
|
{#if item.id === 'online-admins'}
|
|
16
16
|
<!-- Online Admins Snippet -->
|
|
@@ -32,3 +32,11 @@
|
|
|
32
32
|
export let items;
|
|
33
33
|
export let data;
|
|
34
34
|
</script>
|
|
35
|
+
|
|
36
|
+
<style>
|
|
37
|
+
/* Sidebar card headers (title and actions) are centered */
|
|
38
|
+
.pano-sidebar-cards :global(.card-header .row > div) {
|
|
39
|
+
text-align: center !important;
|
|
40
|
+
justify-content: center !important;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
onCloseTicketClick function(ticket) - opens the confirmation for closing the ticket
|
|
13
13
|
-->
|
|
14
14
|
<Sidebar side={side}>
|
|
15
|
-
<div class="vstack gap-3">
|
|
15
|
+
<div class="vstack gap-3 pano-sidebar-cards">
|
|
16
16
|
{#each $items as item (item.id)}
|
|
17
17
|
{#if item.id === 'online-admins'}
|
|
18
18
|
<!-- Online Admins Snippet -->
|
|
@@ -49,3 +49,11 @@
|
|
|
49
49
|
export let ticketData;
|
|
50
50
|
export let onCloseTicketClick = () => {};
|
|
51
51
|
</script>
|
|
52
|
+
|
|
53
|
+
<style>
|
|
54
|
+
/* Sidebar card headers (title and actions) are centered */
|
|
55
|
+
.pano-sidebar-cards :global(.card-header .row > div) {
|
|
56
|
+
text-align: center !important;
|
|
57
|
+
justify-content: center !important;
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
@@ -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: ["
|
|
36
|
+
"Posts": { contract: 1, component: () => import("./Posts.svelte"), uses: ["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") },
|