@panomc/theme-core 1.0.0-dev.60 → 1.0.0-dev.61
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-legacy.css +12381 -0
- package/assets/css/pano-fallback.css +3222 -0
- package/bin/__tests__/check/fixtures/plugin-contracts/market/controllers.json +4 -0
- package/bin/__tests__/check/fixtures/plugin-contracts/market/views.json +67 -0
- package/bin/__tests__/check/fixtures/routes.json +5 -0
- package/bin/__tests__/check/helpers.js +55 -0
- package/bin/__tests__/check/overrides.test.js +287 -0
- package/bin/__tests__/check/theme.test.js +332 -0
- package/bin/__tests__/cli/accept-and-list.test.js +159 -0
- package/bin/__tests__/cli/config-edit.test.js +213 -0
- package/bin/__tests__/cli/contracts-pull.test.js +187 -0
- package/bin/__tests__/cli/core-meta.test.js +305 -0
- package/bin/__tests__/cli/eject-view.test.js +356 -0
- package/bin/__tests__/cli/helpers.js +258 -0
- package/bin/__tests__/scaffold/scaffold.test.js +84 -0
- package/bin/bundle-internal-libs.js +14 -2
- package/bin/check.js +1150 -213
- package/bin/contracts.js +1643 -0
- package/bin/generate-contract.js +378 -0
- package/bin/generate-licenses.js +14 -2
- package/bin/generate-runtime-shims.js +27 -9
- package/bin/new.js +101 -2
- package/bin/package-zip.js +16 -2
- package/bin/sync.js +360 -7
- package/bin/theme-core.js +65 -107
- package/lang/en-US.json +1 -0
- package/lang/ru.json +1 -0
- package/lang/tr.json +1 -0
- package/package.json +7 -3
- package/skin-contract.json +864 -19
- package/src/kit/__tests__/hooks-server-fetch.test.js +56 -0
- package/src/kit/__tests__/route-map.test.js +154 -0
- package/src/kit/__tests__/theme-meta.test.js +249 -0
- package/src/kit/hooks-client.js +3 -0
- package/src/kit/hooks-server.js +79 -21
- package/src/kit/route-map.js +300 -0
- package/src/kit/specifiers.js +3 -0
- package/src/kit/svelte-config.js +3 -0
- package/src/kit/theme-meta.js +405 -0
- package/src/kit/vite-config.js +156 -12
- package/src/lib/NotificationManager.js +18 -0
- package/src/lib/PluginAPI.js +313 -9
- package/src/lib/Store.js +18 -5
- package/src/lib/__tests__/avatarVersion.test.js +25 -0
- package/src/lib/__tests__/check.test.js +201 -0
- package/src/lib/__tests__/controllerHost.test.js +363 -0
- package/src/lib/__tests__/cx03.test.js +245 -0
- package/src/lib/__tests__/engineBoot.test.js +151 -0
- package/src/lib/__tests__/engineParts.helper.js +284 -0
- package/src/lib/__tests__/engineParts.test.js +179 -0
- package/src/lib/__tests__/engineSidebars.helper.js +353 -0
- package/src/lib/__tests__/engineSidebars.test.js +273 -0
- package/src/lib/__tests__/engineStyles.test.js +227 -0
- package/src/lib/__tests__/engineWiring.test.js +1000 -0
- package/src/lib/__tests__/fallbackStyles.test.js +1254 -0
- package/src/lib/__tests__/fixtures/Probe.svelte +5 -0
- package/src/lib/__tests__/fixtures/engine-parts.ssr.json +29 -0
- package/src/lib/__tests__/fixtures/engine-sidebars.ssr.json +16 -0
- package/src/lib/__tests__/home.test.js +563 -0
- package/src/lib/__tests__/injectedScope.test.js +490 -0
- package/src/lib/__tests__/languageConcurrency.test.js +55 -0
- package/src/lib/__tests__/languageLayers.test.js +286 -0
- package/src/lib/__tests__/pageHead.test.js +167 -0
- package/src/lib/__tests__/pageMeta.util.test.js +216 -0
- package/src/lib/__tests__/pageTitle.util.test.js +96 -0
- package/src/lib/__tests__/pluginApiViews.test.js +529 -0
- package/src/lib/__tests__/plugins.test.js +53 -0
- package/src/lib/__tests__/profileNav.util.test.js +145 -0
- package/src/lib/__tests__/registryReady.test.js +26 -0
- package/src/lib/__tests__/returnTo.util.test.js +294 -0
- package/src/lib/__tests__/routeConfig.test.js +361 -0
- package/src/lib/__tests__/sidebarSpec.util.test.js +152 -0
- package/src/lib/__tests__/skinContract.test.js +558 -0
- package/src/lib/__tests__/svelteSsr.helper.js +68 -0
- package/src/lib/__tests__/tc03.test.js +427 -0
- package/src/lib/__tests__/tc11.test.js +184 -0
- package/src/lib/__tests__/translationLayers.test.js +161 -0
- package/src/lib/avatarVersion.js +39 -0
- package/src/lib/components/Breadcrumb.svelte +9 -40
- package/src/lib/components/Date.svelte +1 -1
- package/src/lib/components/DefaultToast.svelte +13 -3
- package/src/lib/components/FallbackLinks.svelte +28 -0
- package/src/lib/components/FallbackScope.svelte +24 -0
- package/src/lib/components/Footer.svelte +8 -8
- package/src/lib/components/Header.svelte +3 -3
- package/src/lib/components/Hook.svelte +12 -1
- package/src/lib/components/LoginFormBody.svelte +5 -5
- package/src/lib/components/Main.svelte +22 -47
- package/src/lib/components/Navbar.svelte +30 -29
- package/src/lib/components/NoContent.svelte +2 -2
- package/src/lib/components/NotificationContainer.svelte +31 -82
- package/src/lib/components/OnlineAdmins.svelte +3 -2
- package/src/lib/components/PageActions.svelte +1 -1
- package/src/lib/components/PageHead.svelte +50 -0
- package/src/lib/components/PageTitle.svelte +2 -2
- package/src/lib/components/Pagination.svelte +6 -6
- package/src/lib/components/PlayerHead.svelte +4 -4
- package/src/lib/components/PluginBlock.svelte +132 -0
- package/src/lib/components/PluginSlot.svelte +40 -0
- package/src/lib/components/Post.svelte +13 -230
- package/src/lib/components/Posts.svelte +7 -14
- package/src/lib/components/RegisterForm.svelte +12 -11
- package/src/lib/components/Sidebar.svelte +9 -7
- package/src/lib/components/TicketRow.svelte +8 -48
- package/src/lib/components/TicketStatus.svelte +10 -16
- package/src/lib/components/Tickets.svelte +8 -30
- package/src/lib/components/Toast.svelte +16 -14
- package/src/lib/components/ToastContainer.svelte +16 -9
- package/src/lib/components/ViewComponent.svelte +13 -1
- package/src/lib/components/modals/CloseTicketConfirmModal.svelte +15 -46
- package/src/lib/components/modals/ConfirmRemoveAllNotificationsModal.svelte +17 -39
- package/src/lib/components/modals/LogoutSessionConfirmModal.svelte +12 -30
- package/src/lib/components/sidebars/HomeSidebar.svelte +33 -284
- package/src/lib/components/sidebars/PlayerDetailSidebar.svelte +14 -63
- package/src/lib/components/sidebars/PluginSidebar.svelte +21 -0
- package/src/lib/components/sidebars/ProfileNavCard.svelte +24 -0
- package/src/lib/components/sidebars/ProfileSidebar.svelte +44 -84
- package/src/lib/components/sidebars/SupportSidebar.svelte +19 -22
- package/src/lib/components/sidebars/TicketCreateAndDetailSidebar.svelte +23 -35
- package/src/lib/components/sidebars/profileNav.util.js +105 -0
- package/src/lib/components/sidebars/sidebarSpec.util.js +92 -0
- package/src/lib/controllerHost.js +261 -0
- package/src/lib/fallbackStyles.js +317 -0
- package/src/lib/home.js +202 -0
- package/src/lib/language.util.js +70 -37
- package/src/lib/layouts/AppLayout.svelte +16 -8
- package/src/lib/layouts/AuthLayout.svelte +6 -4
- package/src/lib/layouts/MainLayout.svelte +17 -12
- package/src/lib/layouts/ProfileLayout.svelte +6 -4
- package/src/lib/layouts/ThemeSettingsLayout.svelte +6 -4
- package/src/lib/layouts/TicketsLayout.svelte +6 -5
- package/src/lib/pageMeta.util.js +212 -0
- package/src/lib/pageShape.js +33 -0
- package/src/lib/pageTitle.util.js +32 -0
- package/src/lib/pages/ActivateEmailPage.svelte +2 -7
- package/src/lib/pages/ConfirmNewEmailPage.svelte +2 -7
- package/src/lib/pages/ErrorPage.svelte +5 -2
- package/src/lib/pages/HomePage.svelte +31 -8
- package/src/lib/pages/LoginPage.svelte +38 -41
- package/src/lib/pages/NotificationsPage.svelte +2 -7
- package/src/lib/pages/PlayerDetailPage.svelte +2 -7
- package/src/lib/pages/PostDetailPage.svelte +2 -7
- package/src/lib/pages/PreviewPostPage.svelte +2 -7
- package/src/lib/pages/RegisterPage.svelte +10 -13
- package/src/lib/pages/RenewPasswordPage.svelte +2 -7
- package/src/lib/pages/ResetPasswordPage.svelte +2 -7
- package/src/lib/pages/RulesPage.svelte +3 -8
- package/src/lib/pages/SupportPage.svelte +2 -7
- package/src/lib/pages/ThemeSettingsPage.svelte +2 -7
- package/src/lib/pages/profile/ProfilePage.svelte +2 -7
- package/src/lib/pages/profile/SettingsPage.svelte +2 -7
- package/src/lib/pages/profile/TicketsPage.svelte +2 -7
- package/src/lib/pages/ticket/CreateTicketPage.svelte +2 -7
- package/src/lib/pages/ticket/TicketDetailPage.svelte +2 -7
- package/src/lib/plugins.js +61 -0
- package/src/lib/returnTo.util.js +116 -0
- package/src/lib/services/auth.js +11 -11
- package/src/lib/services/posts.js +21 -10
- package/src/lib/services/profile.js +5 -5
- package/src/lib/services/theme-setting.js +1 -1
- package/src/lib/services/tickets.js +36 -15
- package/src/lib/siteRealtime.js +55 -8
- package/src/lib/themePageLoad.js +38 -0
- package/src/lib/translationLayers.js +144 -0
- package/src/lib/ui-logics/layout-logics/AppLayoutLogics.js +160 -6
- package/src/lib/ui-logics/layout-logics/AuthLayoutLogics.js +3 -2
- package/src/lib/ui-logics/layout-logics/ProfileLayoutLogics.js +3 -2
- package/src/lib/ui-logics/layout-logics/TicketsLayoutLogics.js +3 -2
- package/src/lib/ui-logics/page-logics/ActiveEmailPageLogics.js +4 -4
- package/src/lib/ui-logics/page-logics/ConfirmNewEmailPageLogics.js +4 -4
- package/src/lib/ui-logics/page-logics/CreateTicketPageLogics.js +5 -5
- package/src/lib/ui-logics/page-logics/HomePageLogics.js +5 -3
- package/src/lib/ui-logics/page-logics/NotificationsPageLogics.js +40 -16
- package/src/lib/ui-logics/page-logics/PlayerDetailPageLogics.js +3 -3
- package/src/lib/ui-logics/page-logics/PostDetailPageLogics.js +3 -3
- package/src/lib/ui-logics/page-logics/PreviewPostPageLogics.js +1 -1
- package/src/lib/ui-logics/page-logics/RenewPasswordPageLogics.js +4 -4
- package/src/lib/ui-logics/page-logics/ResetPasswordPageLogics.js +6 -6
- package/src/lib/ui-logics/page-logics/SettingsPageLogics.js +8 -8
- package/src/lib/ui-logics/page-logics/TicketDetailPageLogics.js +3 -3
- package/src/lib/ui-logics/page-logics/TicketsPageLogics.js +5 -3
- package/src/lib/views/ActivateEmailView.samples.js +22 -0
- package/src/lib/views/ActivateEmailView.svelte +4 -4
- package/src/lib/views/AppLayoutView.samples.js +17 -0
- package/src/lib/views/AppLayoutView.svelte +1 -1
- package/src/lib/views/AuthLayoutView.samples.js +4 -0
- package/src/lib/views/AuthLayoutView.svelte +1 -1
- package/src/lib/views/Breadcrumb.samples.js +15 -0
- package/src/lib/views/CloseTicketConfirmModal.samples.js +12 -0
- package/src/lib/views/ConfirmNewEmailView.samples.js +22 -0
- package/src/lib/views/ConfirmNewEmailView.svelte +4 -4
- package/src/lib/views/ConfirmRemoveAllNotificationsModal.samples.js +9 -0
- package/src/lib/views/CreateTicketView.samples.js +21 -0
- package/src/lib/views/CreateTicketView.svelte +5 -5
- package/src/lib/views/Date.samples.js +9 -0
- package/src/lib/views/DefaultToast.samples.js +7 -0
- package/src/lib/views/ErrorView.samples.js +8 -0
- package/src/lib/views/ErrorView.svelte +4 -2
- package/src/lib/views/Footer.samples.js +8 -0
- package/src/lib/views/Header.samples.js +8 -0
- package/src/lib/views/HomeSidebar.samples.js +59 -0
- package/src/lib/views/HomeView.samples.js +34 -0
- package/src/lib/views/HomeView.svelte +14 -6
- package/src/lib/views/LoginFormBody.samples.js +8 -0
- package/src/lib/views/LoginView.samples.js +50 -0
- package/src/lib/views/LoginView.svelte +24 -22
- package/src/lib/views/LogoutSessionConfirmModal.samples.js +8 -0
- package/src/lib/views/Main.samples.js +23 -0
- package/src/lib/views/MainLayoutView.svelte +3 -4
- package/src/lib/views/Navbar.samples.js +8 -0
- package/src/lib/views/NoContent.samples.js +7 -0
- package/src/lib/views/NotificationContainer.samples.js +25 -0
- package/src/lib/views/NotificationsView.samples.js +36 -0
- package/src/lib/views/NotificationsView.svelte +21 -12
- package/src/lib/views/PageActions.samples.js +7 -0
- package/src/lib/views/PageTitle.samples.js +8 -0
- package/src/lib/views/Pagination.samples.js +7 -0
- package/src/lib/views/PlayerDetailSidebar.samples.js +35 -0
- package/src/lib/views/PlayerDetailView.samples.js +8 -0
- package/src/lib/views/PlayerDetailView.svelte +3 -3
- package/src/lib/views/PlayerHead.samples.js +8 -0
- package/src/lib/views/Post.samples.js +10 -0
- package/src/lib/views/PostDetailView.samples.js +28 -0
- package/src/lib/views/PostDetailView.svelte +24 -16
- package/src/lib/views/Posts.samples.js +9 -0
- package/src/lib/views/PreviewPostView.samples.js +20 -0
- package/src/lib/views/PreviewPostView.svelte +10 -10
- package/src/lib/views/ProfileLayoutView.samples.js +4 -0
- package/src/lib/views/ProfileSidebar.samples.js +33 -0
- package/src/lib/views/ProfileView.samples.js +29 -0
- package/src/lib/views/ProfileView.svelte +2 -2
- package/src/lib/views/RegisterForm.samples.js +7 -0
- package/src/lib/views/RegisterView.samples.js +28 -0
- package/src/lib/views/RegisterView.svelte +5 -3
- package/src/lib/views/RenewPasswordView.samples.js +24 -0
- package/src/lib/views/RenewPasswordView.svelte +6 -6
- package/src/lib/views/ResetPasswordView.samples.js +24 -0
- package/src/lib/views/ResetPasswordView.svelte +3 -3
- package/src/lib/views/RulesView.samples.js +14 -0
- package/src/lib/views/RulesView.svelte +3 -3
- package/src/lib/views/SettingsView.svelte +48 -17
- package/src/lib/views/Sidebar.samples.js +7 -0
- package/src/lib/views/SupportSidebar.samples.js +24 -0
- package/src/lib/views/SupportView.samples.js +16 -0
- package/src/lib/views/SupportView.svelte +8 -6
- package/src/lib/views/ThemeSettingsLayoutView.samples.js +9 -0
- package/src/lib/views/ThemeSettingsLayoutView.svelte +1 -1
- package/src/lib/views/ThemeSettingsView.svelte +89 -89
- package/src/lib/views/TicketCreateAndDetailSidebar.samples.js +33 -0
- package/src/lib/views/TicketDetailView.samples.js +34 -0
- package/src/lib/views/TicketDetailView.svelte +17 -15
- package/src/lib/views/TicketRow.samples.js +10 -0
- package/src/lib/views/TicketStatus.samples.js +8 -0
- package/src/lib/views/Tickets.samples.js +9 -0
- package/src/lib/views/TicketsLayoutView.samples.js +4 -0
- package/src/lib/views/TicketsView.samples.js +23 -0
- package/src/lib/views/TicketsView.svelte +11 -9
- package/src/lib/views/Toast.samples.js +9 -0
- package/src/lib/views/ToastContainer.samples.js +8 -0
- package/src/lib/views/parts/Breadcrumb.svelte +53 -0
- package/src/lib/views/parts/CloseTicketConfirmModal.svelte +63 -0
- package/src/lib/views/parts/ConfirmRemoveAllNotificationsModal.svelte +55 -0
- package/src/lib/views/parts/DefaultToast.svelte +22 -0
- package/src/lib/views/parts/HomeSidebar.svelte +334 -0
- package/src/lib/views/parts/LogoutSessionConfirmModal.svelte +46 -0
- package/src/lib/views/parts/Main.svelte +71 -0
- package/src/lib/views/parts/NotificationContainer.svelte +109 -0
- package/src/lib/views/parts/PlayerDetailSidebar.svelte +81 -0
- package/src/lib/views/parts/Post.svelte +255 -0
- package/src/lib/views/parts/Posts.svelte +25 -0
- package/src/lib/views/parts/ProfileSidebar.svelte +115 -0
- package/src/lib/views/parts/Sidebar.svelte +19 -0
- package/src/lib/views/parts/SupportSidebar.svelte +34 -0
- package/src/lib/views/parts/TicketCreateAndDetailSidebar.svelte +51 -0
- package/src/lib/views/parts/TicketRow.svelte +63 -0
- package/src/lib/views/parts/TicketStatus.svelte +24 -0
- package/src/lib/views/parts/Tickets.svelte +45 -0
- package/src/lib/views/parts/Toast.svelte +27 -0
- package/src/lib/views/parts/ToastContainer.svelte +17 -0
- package/src/lib/views/parts/engine-views.generated.js +63 -0
- package/src/lib/views/parts/publicHref.js +18 -0
- package/src/lib/views/parts/ticketStatuses.js +7 -0
- package/src/plugin-engine/__tests__/engine.test.js +161 -0
- package/src/plugin-engine/engine.js +80 -12
- package/src/registry/__tests__/registry.test.js +510 -0
- package/src/registry/__tests__/view.test.js +52 -0
- package/src/registry/index.js +700 -51
- package/src/registry/routes.js +62 -0
- package/src/registry/view.js +69 -0
- package/src/routes/RootLayout.svelte +24 -1
- package/src/routes/catalogue/List.svelte +163 -0
- package/src/routes/catalogue/Stage.svelte +355 -0
- package/src/routes/catalogue/__tests__/browserSafe.test.js +13 -0
- package/src/routes/catalogue/__tests__/catalogue.test.js +539 -0
- package/src/routes/catalogue/catalogue.js +129 -0
- package/src/routes/catalogue/deps.js +147 -0
- package/src/routes/catalogue/engineSamples.js +63 -0
- package/src/routes/catalogue/fixtures.js +77 -0
- package/src/routes/catalogue/list.js +37 -0
- package/src/routes/catalogue/model.js +286 -0
- package/src/routes/catalogue/stage.js +69 -0
- package/src/routes/catalogue/views-json.js +24 -0
- package/src/routes/plugin-ui/Layout.svelte +29 -4
- package/src/routes/plugin-ui/Page.svelte +86 -31
- package/src/routes/plugin-ui/load.js +173 -0
- package/src/routes/plugins-client-file.js +8 -3
- package/src/routes/plugins-ui-file.js +60 -0
- package/src/routes/root-layout-load.js +59 -2
package/skin-contract.json
CHANGED
|
@@ -2,13 +2,27 @@
|
|
|
2
2
|
"$schema_note": "Machine-readable Pano theme contract, generated from the controller/view split. Consumed by 'theme-core check' and store-side CI.",
|
|
3
3
|
"views": {
|
|
4
4
|
"HomeView": {
|
|
5
|
+
"contract": 1,
|
|
6
|
+
"source": "src/lib/views/HomeView.svelte",
|
|
7
|
+
"uses": ["Pagination", "Posts"],
|
|
8
|
+
"hooks": ["page:home:top"],
|
|
9
|
+
"slotProps": {},
|
|
5
10
|
"props": {
|
|
6
|
-
"data": "object — load result (posts, postCount, page,
|
|
11
|
+
"data": "object — load result (posts, postCount, page, totalPages, category, categoryUrl, sidebar, hookProps) plus View",
|
|
7
12
|
"themeSettings": "plain object — from getContext('themeSettings') in the controller; postsEnabled gates the post list and pagination",
|
|
8
13
|
"onPageClick": "function(data, page) — pagination navigation handler imported from HomePageLogics"
|
|
14
|
+
},
|
|
15
|
+
"locked": {
|
|
16
|
+
"contract": 1,
|
|
17
|
+
"props": ["data", "onPageClick", "themeSettings"]
|
|
9
18
|
}
|
|
10
19
|
},
|
|
11
20
|
"LoginView": {
|
|
21
|
+
"contract": 1,
|
|
22
|
+
"source": "src/lib/views/LoginView.svelte",
|
|
23
|
+
"uses": ["PageTitle", "RegisterForm"],
|
|
24
|
+
"hooks": [],
|
|
25
|
+
"slotProps": {},
|
|
12
26
|
"props": {
|
|
13
27
|
"data": "object — page data (initialError, pageTitle, View)",
|
|
14
28
|
"session": "store — session context from getContext('session') (siteInfo, user, csrfToken)",
|
|
@@ -35,9 +49,18 @@
|
|
|
35
49
|
"onUsernameOrEmailFieldInput": "function — input handler for the username/email field",
|
|
36
50
|
"onRegisterEmailFieldInput": "function — input handler for the register email field",
|
|
37
51
|
"onNewUsernameFieldInput": "function — input handler for the new username field"
|
|
52
|
+
},
|
|
53
|
+
"locked": {
|
|
54
|
+
"contract": 1,
|
|
55
|
+
"props": ["agreement", "altMethods", "autoVerifyDone", "contentItems", "data", "email", "emailRequired", "emailVerificationSent", "error", "linkCode", "loading", "newUsername", "onCompleteRegister", "onNewUsernameFieldInput", "onRegisterEmailFieldInput", "onSubmit", "onUsernameOrEmailFieldInput", "onVerifyLink", "password", "passwordRepeat", "passwordVisible", "session", "usernameOrEmail", "usernameRequiredUserId", "viewState"]
|
|
38
56
|
}
|
|
39
57
|
},
|
|
40
58
|
"RegisterView": {
|
|
59
|
+
"contract": 1,
|
|
60
|
+
"source": "src/lib/views/RegisterView.svelte",
|
|
61
|
+
"uses": ["RegisterForm"],
|
|
62
|
+
"hooks": [],
|
|
63
|
+
"slotProps": {},
|
|
41
64
|
"props": {
|
|
42
65
|
"data": "object — SvelteKit page data (initialError, initialUsername, pageTitle, View)",
|
|
43
66
|
"contentItems": "store<Array> — plugin-extensible register page content items ({ id, priority, component }) from panoApiClient.ui.auth.register.content",
|
|
@@ -51,55 +74,109 @@
|
|
|
51
74
|
"password": "writable store<string> — two-way bound password field value",
|
|
52
75
|
"passwordRepeat": "writable store<string> — two-way bound password confirmation value",
|
|
53
76
|
"agreement": "writable store<boolean> — two-way bound register-agreement checkbox value"
|
|
77
|
+
},
|
|
78
|
+
"locked": {
|
|
79
|
+
"contract": 1,
|
|
80
|
+
"props": ["agreement", "altMethods", "contentItems", "data", "email", "error", "loading", "onSubmit", "password", "passwordRepeat", "successMessage", "username"]
|
|
54
81
|
}
|
|
55
82
|
},
|
|
56
83
|
"NotificationsView": {
|
|
84
|
+
"contract": 1,
|
|
85
|
+
"source": "src/lib/views/NotificationsView.svelte",
|
|
86
|
+
"uses": ["ConfirmRemoveAllNotificationsModal", "NoContent"],
|
|
87
|
+
"hooks": [],
|
|
88
|
+
"slotProps": {},
|
|
57
89
|
"props": {
|
|
58
90
|
"data": "object — full load data (notifications, notificationCount, sidebar config), forwarded per recipe",
|
|
59
91
|
"notifications": "store — currently loaded notification list (writable from init())",
|
|
60
|
-
"count": "store —
|
|
92
|
+
"count": "store — notification count as far as page.nextCursor says: above the loaded list while a cursor is set, equal to it when the list is complete",
|
|
61
93
|
"page": "store — zero-based load-more page index",
|
|
62
94
|
"loadMoreLoading": "store — true while the next page of notifications is fetching",
|
|
63
95
|
"checkTime": "store — tick counter passed BARE (no $) to getTime so relative timestamps refresh",
|
|
64
96
|
"avatarVersion": "store — cache-busting version appended to profile picture URLs",
|
|
65
97
|
"currentLanguage": "store — active language object; .dateFnsCode selects the date-fns locale",
|
|
66
98
|
"locales": "object — date-fns locale namespace (import * as locales stays in controller, passed as a plain value)",
|
|
67
|
-
"onNotificationClick": "function — notification row click handler (from NotificationManager)",
|
|
99
|
+
"onNotificationClick": "function(notification, navigate) — notification row click handler (from NotificationManager); the view passes navigate(path) = goto(base + path) so a notification without a listener opens its details.href; the row text key is notificationTextKey(notification) with $_('notifications.UNKNOWN') as default",
|
|
68
100
|
"onDeleteNotificationClick": "function — deletes a single notification",
|
|
69
101
|
"getTime": "function — relative 'time ago' formatter",
|
|
70
102
|
"loadMore": "function — fetches next page; markup calls it with the notifications and loadMoreLoading store objects",
|
|
71
103
|
"sanitizeObject": "function — escapes notification detail values before {@html} i18n interpolation"
|
|
104
|
+
},
|
|
105
|
+
"locked": {
|
|
106
|
+
"contract": 1,
|
|
107
|
+
"props": ["avatarVersion", "checkTime", "count", "currentLanguage", "data", "getTime", "loadMore", "loadMoreLoading", "locales", "notifications", "onDeleteNotificationClick", "onNotificationClick", "page", "sanitizeObject"]
|
|
72
108
|
}
|
|
73
109
|
},
|
|
74
110
|
"PlayerDetailView": {
|
|
111
|
+
"contract": 1,
|
|
112
|
+
"source": "src/lib/views/PlayerDetailView.svelte",
|
|
113
|
+
"uses": ["Date"],
|
|
114
|
+
"hooks": [],
|
|
115
|
+
"slotProps": {},
|
|
75
116
|
"props": {
|
|
76
117
|
"data": "PageData — SvelteKit load result; the markup reads data.registerDate (epoch timestamp of the player's registration, rendered via the Date component)"
|
|
118
|
+
},
|
|
119
|
+
"locked": {
|
|
120
|
+
"contract": 1,
|
|
121
|
+
"props": ["data"]
|
|
77
122
|
}
|
|
78
123
|
},
|
|
79
124
|
"PostDetailView": {
|
|
125
|
+
"contract": 1,
|
|
126
|
+
"source": "src/lib/views/PostDetailView.svelte",
|
|
127
|
+
"uses": ["Date"],
|
|
128
|
+
"hooks": ["theme:post-detail:bottom"],
|
|
129
|
+
"slotProps": {},
|
|
80
130
|
"props": {
|
|
81
131
|
"data": "load data — post ({title, text, category, writer, thumbnailUrl, views, date}), previousPost/nextPost (object or \"-\"), hookProps, View",
|
|
82
132
|
"themeSettings": "plain object (getContext(\"themeSettings\") in controller) — post* visibility toggles read directly, not as a store",
|
|
83
133
|
"avatarVersion": "store object (writable from $pano/lib/Store) — view auto-subscribes via $avatarVersion for profile-picture cache busting"
|
|
134
|
+
},
|
|
135
|
+
"locked": {
|
|
136
|
+
"contract": 1,
|
|
137
|
+
"props": ["avatarVersion", "data", "themeSettings"]
|
|
84
138
|
}
|
|
85
139
|
},
|
|
86
140
|
"PreviewPostView": {
|
|
141
|
+
"contract": 1,
|
|
142
|
+
"source": "src/lib/views/PreviewPostView.svelte",
|
|
143
|
+
"uses": ["Date"],
|
|
144
|
+
"hooks": [],
|
|
145
|
+
"slotProps": {},
|
|
87
146
|
"props": {
|
|
88
147
|
"data": "object — full load result (post, previousPost, nextPost, View); passed per view contract, markup does not read it directly",
|
|
89
148
|
"post": "object — the post being previewed (title, category.title, writer.username, text, date, views, thumbnailUrl); originates from the shim prop post={data.post}",
|
|
90
149
|
"themeSettings": "object — getContext('themeSettings') resolved in the controller (postCoverImageEnabled, postViewCountEnabled)",
|
|
91
150
|
"avatarVersion": "store — store object from $pano/lib/Store; view auto-subscribes as $avatarVersion for avatar cache-busting"
|
|
151
|
+
},
|
|
152
|
+
"locked": {
|
|
153
|
+
"contract": 1,
|
|
154
|
+
"props": ["avatarVersion", "data", "post", "themeSettings"]
|
|
92
155
|
}
|
|
93
156
|
},
|
|
94
157
|
"SupportView": {
|
|
158
|
+
"contract": 1,
|
|
159
|
+
"source": "src/lib/views/SupportView.svelte",
|
|
160
|
+
"uses": [],
|
|
161
|
+
"hooks": ["theme:support:content"],
|
|
162
|
+
"slotProps": {},
|
|
95
163
|
"props": {
|
|
96
164
|
"data": "object — page load data, forwarded verbatim to plugin ViewComponents",
|
|
97
165
|
"session": "store — session context store; markup reads $session.siteInfo.supportEmail and .websiteName",
|
|
98
166
|
"items": "store — plugin view entries registered for the 'support-content' slot (from panoApi.ui.view.get)",
|
|
99
167
|
"optionItems": "store — plugin view entries registered for the 'support-options' slot (from panoApi.ui.view.get)"
|
|
168
|
+
},
|
|
169
|
+
"locked": {
|
|
170
|
+
"contract": 1,
|
|
171
|
+
"props": ["data", "items", "optionItems", "session"]
|
|
100
172
|
}
|
|
101
173
|
},
|
|
102
174
|
"ActivateEmailView": {
|
|
175
|
+
"contract": 1,
|
|
176
|
+
"source": "src/lib/views/ActivateEmailView.svelte",
|
|
177
|
+
"uses": [],
|
|
178
|
+
"hooks": [],
|
|
179
|
+
"slotProps": {},
|
|
103
180
|
"props": {
|
|
104
181
|
"data": "object — SvelteKit page data (data.token = activation token from URL, consumed by verifyEmail; data.View = resolved view class)",
|
|
105
182
|
"error": "writable store — error code rendered by ErrorAlert (e.g. \"INVALID_LINK\"); passed as store object, view reads $error",
|
|
@@ -107,9 +184,18 @@
|
|
|
107
184
|
"loading": "writable store — true while the verification request is in flight (spinner + disabled button)",
|
|
108
185
|
"activateContentItems": "readable store — plugin-injected content items for the activate page (panoApiClient.ui.auth.activate.content.get())",
|
|
109
186
|
"verifyEmail": "function(error, successMessage, loading, data) — runs the e-mail verification request; called from the button on:click with the raw store objects"
|
|
187
|
+
},
|
|
188
|
+
"locked": {
|
|
189
|
+
"contract": 1,
|
|
190
|
+
"props": ["activateContentItems", "data", "error", "loading", "successMessage", "verifyEmail"]
|
|
110
191
|
}
|
|
111
192
|
},
|
|
112
193
|
"ConfirmNewEmailView": {
|
|
194
|
+
"contract": 1,
|
|
195
|
+
"source": "src/lib/views/ConfirmNewEmailView.svelte",
|
|
196
|
+
"uses": [],
|
|
197
|
+
"hooks": [],
|
|
198
|
+
"slotProps": {},
|
|
113
199
|
"props": {
|
|
114
200
|
"data": "object — merged load data (token, pageTitle, session, View, …)",
|
|
115
201
|
"activateNewEmailContentItems": "store<item[]> — plugin-injected content items for the activate-new-email slot (from panoApiClient.ui.auth.activateNewEmail.content.get())",
|
|
@@ -117,9 +203,18 @@
|
|
|
117
203
|
"error": "writable store<string|null> — error code shown in ErrorAlert (e.g. \"INVALID_LINK\")",
|
|
118
204
|
"successMessage": "writable store<string|null> — success code shown in SuccessAlert after activation",
|
|
119
205
|
"verifyEmail": "function — (error, successMessage, loading, data) sends the email-activation request; markup passes the store objects themselves"
|
|
206
|
+
},
|
|
207
|
+
"locked": {
|
|
208
|
+
"contract": 1,
|
|
209
|
+
"props": ["activateNewEmailContentItems", "data", "error", "loading", "successMessage", "verifyEmail"]
|
|
120
210
|
}
|
|
121
211
|
},
|
|
122
212
|
"RenewPasswordView": {
|
|
213
|
+
"contract": 1,
|
|
214
|
+
"source": "src/lib/views/RenewPasswordView.svelte",
|
|
215
|
+
"uses": [],
|
|
216
|
+
"hooks": [],
|
|
217
|
+
"slotProps": {},
|
|
123
218
|
"props": {
|
|
124
219
|
"data": "object — page data from load; forwarded to onSubmit (also carries data.View)",
|
|
125
220
|
"error": "writable store — error shown by ErrorAlert; set by onSubmit",
|
|
@@ -129,9 +224,18 @@
|
|
|
129
224
|
"newPasswordRepeat": "writable store<string> — bound value of the repeat password input",
|
|
130
225
|
"renewPasswordContentItems": "store<Array<{id, component}>> — plugin-injected content items from panoApiClient.ui.auth.renewPassword.content.get()",
|
|
131
226
|
"onSubmit": "function — (error, message, loading, newPassword, newPasswordRepeat, data) form submit handler from RenewPasswordPageLogics"
|
|
227
|
+
},
|
|
228
|
+
"locked": {
|
|
229
|
+
"contract": 1,
|
|
230
|
+
"props": ["data", "error", "loading", "message", "newPassword", "newPasswordRepeat", "onSubmit", "renewPasswordContentItems"]
|
|
132
231
|
}
|
|
133
232
|
},
|
|
134
233
|
"ResetPasswordView": {
|
|
234
|
+
"contract": 1,
|
|
235
|
+
"source": "src/lib/views/ResetPasswordView.svelte",
|
|
236
|
+
"uses": [],
|
|
237
|
+
"hooks": [],
|
|
238
|
+
"slotProps": {},
|
|
135
239
|
"props": {
|
|
136
240
|
"data": "object — merged page data from $page.data (session, pageTitle, View); not read by the default markup but part of the view contract",
|
|
137
241
|
"error": "writable store — error code rendered by ErrorAlert",
|
|
@@ -141,15 +245,33 @@
|
|
|
141
245
|
"resetPasswordContentItems": "readable store — plugin-registered content items rendered inside the form via ViewComponent",
|
|
142
246
|
"onSubmit": "function(error, message, loading, usernameOrEmail) — logic import passed through; sends the reset-password request",
|
|
143
247
|
"stripIdentifierWhitespace": "function(value) — logic import passed through; strips whitespace in the input's oninput handler"
|
|
248
|
+
},
|
|
249
|
+
"locked": {
|
|
250
|
+
"contract": 1,
|
|
251
|
+
"props": ["data", "error", "loading", "message", "onSubmit", "resetPasswordContentItems", "stripIdentifierWhitespace", "usernameOrEmail"]
|
|
144
252
|
}
|
|
145
253
|
},
|
|
146
254
|
"ErrorView": {
|
|
255
|
+
"contract": 1,
|
|
256
|
+
"source": "src/lib/views/ErrorView.svelte",
|
|
257
|
+
"uses": ["PageTitle"],
|
|
258
|
+
"hooks": [],
|
|
259
|
+
"slotProps": {},
|
|
147
260
|
"props": {
|
|
148
261
|
"data": "object|undefined — always undefined today (SvelteKit runs no load for +error.svelte); kept for the shared controller contract and forwarded as {data}",
|
|
149
262
|
"page": "reactive object (store-like prop) — SvelteKit page state from $app/state; page.status selects the 404 vs internal-error subtitle"
|
|
263
|
+
},
|
|
264
|
+
"locked": {
|
|
265
|
+
"contract": 1,
|
|
266
|
+
"props": ["data", "page"]
|
|
150
267
|
}
|
|
151
268
|
},
|
|
152
269
|
"ThemeSettingsView": {
|
|
270
|
+
"contract": 1,
|
|
271
|
+
"source": "src/lib/views/ThemeSettingsView.svelte",
|
|
272
|
+
"uses": [],
|
|
273
|
+
"hooks": [],
|
|
274
|
+
"slotProps": {},
|
|
153
275
|
"props": {
|
|
154
276
|
"data": "object — page data (themeSettings, View)",
|
|
155
277
|
"themeSettings": "writable store — live theme settings object being edited; markup reads/mutates via $themeSettings",
|
|
@@ -186,16 +308,34 @@
|
|
|
186
308
|
"save": "function — save the active tab's settings",
|
|
187
309
|
"resetTab": "function — reset the active tab's settings (with confirm modal)",
|
|
188
310
|
"resetAll": "function — reset all theme settings (with confirm modal)"
|
|
311
|
+
},
|
|
312
|
+
"locked": {
|
|
313
|
+
"contract": 1,
|
|
314
|
+
"props": ["activeTab", "allResetVisible", "backgroundImageFiles", "currentThemeDefault", "data", "defaultHeaderBg", "dragOverItemIndex", "draggingItemIndex", "headerBackgroundImageFiles", "onBackgroundImageChange", "onDragEnd", "onDragOver", "onDragStart", "onDrop", "onHeaderBackgroundImageChange", "onPlayCardBackgroundImageChange", "onRemoveBackgroundImageClick", "onRemoveHeaderBackgroundImageClick", "onRemovePlayCardBackgroundImageClick", "onThemeColorChange", "orderedFooterLinks", "orderedNavLinks", "playCardBackgroundImageFiles", "resetAll", "resetTab", "resetting", "resettingAll", "save", "saving", "session", "tabChanged", "tabResetVisible", "themeSettings", "toggleFooterLink", "toggleLink"]
|
|
189
315
|
}
|
|
190
316
|
},
|
|
191
317
|
"ProfileView": {
|
|
318
|
+
"contract": 1,
|
|
319
|
+
"source": "src/lib/views/ProfileView.svelte",
|
|
320
|
+
"uses": ["Date"],
|
|
321
|
+
"hooks": [],
|
|
322
|
+
"slotProps": {},
|
|
192
323
|
"props": {
|
|
193
324
|
"data": "object — page data from load (registerDate, lastLoginDate, pageTitle, sidebar, View)",
|
|
194
325
|
"contentItems": "store<Array> — plugin-extendable profile page content blocks from panoApiClient.ui.profile.content.get()",
|
|
195
326
|
"cardRowItems": "store<Array> — plugin-extendable profile card table rows from panoApiClient.ui.profile.cardRows.get()"
|
|
327
|
+
},
|
|
328
|
+
"locked": {
|
|
329
|
+
"contract": 1,
|
|
330
|
+
"props": ["cardRowItems", "contentItems", "data"]
|
|
196
331
|
}
|
|
197
332
|
},
|
|
198
333
|
"SettingsView": {
|
|
334
|
+
"contract": 1,
|
|
335
|
+
"source": "src/lib/views/SettingsView.svelte",
|
|
336
|
+
"uses": ["Date", "LogoutSessionConfirmModal", "NoContent"],
|
|
337
|
+
"hooks": [],
|
|
338
|
+
"slotProps": {},
|
|
199
339
|
"props": {
|
|
200
340
|
"data": "object — page data (sessions, sidebar, pageTitle, View)",
|
|
201
341
|
"session": "store — session context from getContext(\"session\") (siteInfo, user, csrfToken)",
|
|
@@ -230,19 +370,37 @@
|
|
|
230
370
|
"invalidateAll": "function — SvelteKit invalidateAll (refresh load data)",
|
|
231
371
|
"parseUserAgent": "function — user-agent string to short browser label",
|
|
232
372
|
"stripIdentifierWhitespace": "function — strip whitespace from identifier input"
|
|
373
|
+
},
|
|
374
|
+
"locked": {
|
|
375
|
+
"contract": 1,
|
|
376
|
+
"props": ["Languages", "cardRowItems", "changingEmail", "changingEmail2ndStep", "changingEmailError", "changingEmailLoading", "changingEmailSuccess", "contentItems", "currentPassword", "data", "handleSave", "invalidateAll", "loadingSessionId", "logout", "newEmail", "onLogoutSession", "parseUserAgent", "registerPlugin", "resetPasswordError", "resetPasswordLoading", "resetPasswordSuccess", "saveButtonDisabled", "saveButtonVisible", "sendChangeEmailLink", "sendResetPasswordLink", "session", "showToast", "startChangingEmail", "startChangingEmail2ndStep", "stopChangingEmail", "stopChangingEmail2ndStep", "stripIdentifierWhitespace", "userLocale"]
|
|
233
377
|
}
|
|
234
378
|
},
|
|
235
379
|
"TicketsView": {
|
|
380
|
+
"contract": 1,
|
|
381
|
+
"source": "src/lib/views/TicketsView.svelte",
|
|
382
|
+
"uses": ["Pagination", "Tickets"],
|
|
383
|
+
"hooks": [],
|
|
384
|
+
"slotProps": {},
|
|
236
385
|
"props": {
|
|
237
|
-
"data": "object — page load data (pageType, page,
|
|
386
|
+
"data": "object — page load data (pageType, page, totalPages, ticketCount, category, categoryUrl, View)",
|
|
238
387
|
"contentItems": "store — plugin-extendable content item list from panoApiClient.ui.tickets.content.get(); markup iterates $contentItems",
|
|
239
388
|
"tickets": "store — tickets list store produced by init(data) in the controller; markup reads $tickets and hands the raw store back to onCloseTicketClick",
|
|
240
389
|
"PageTypes": "object — ticket filter enum (ALL/CLOSED) from TicketsPageLogics, used for the header button active states",
|
|
241
390
|
"onCloseTicketClick": "function — (ticketsStore, ticket) close-ticket handler from TicketsPageLogics",
|
|
242
391
|
"onPageClick": "function — (data, page) pagination navigation handler from TicketsPageLogics"
|
|
392
|
+
},
|
|
393
|
+
"locked": {
|
|
394
|
+
"contract": 1,
|
|
395
|
+
"props": ["PageTypes", "contentItems", "data", "onCloseTicketClick", "onPageClick", "tickets"]
|
|
243
396
|
}
|
|
244
397
|
},
|
|
245
398
|
"TicketDetailView": {
|
|
399
|
+
"contract": 1,
|
|
400
|
+
"source": "src/lib/views/TicketDetailView.svelte",
|
|
401
|
+
"uses": ["Date", "PageTitle", "TicketStatus"],
|
|
402
|
+
"hooks": [],
|
|
403
|
+
"slotProps": {},
|
|
246
404
|
"props": {
|
|
247
405
|
"data": "object — page data from load (ticket, messages, sidebar config); also carries View",
|
|
248
406
|
"ticket": "store — the ticket being viewed (id, title, category, status, date, messageCount)",
|
|
@@ -256,9 +414,18 @@
|
|
|
256
414
|
"avatarVersion": "store — cache-busting version appended to profile picture URLs",
|
|
257
415
|
"loadMore": "function — fetches the previous page of messages (called with loadMoreLoading, messages, data)",
|
|
258
416
|
"sendMessage": "function — sends the reply (called with messageSendLoading, sentMessageCount, shouldScroll, messages, message, data)"
|
|
417
|
+
},
|
|
418
|
+
"locked": {
|
|
419
|
+
"contract": 1,
|
|
420
|
+
"props": ["avatarVersion", "data", "loadMore", "loadMoreLoading", "message", "messageSendLoading", "messages", "messagesSectionDiv", "sendMessage", "sentMessageCount", "shouldScroll", "ticket"]
|
|
259
421
|
}
|
|
260
422
|
},
|
|
261
423
|
"CreateTicketView": {
|
|
424
|
+
"contract": 1,
|
|
425
|
+
"source": "src/lib/views/CreateTicketView.svelte",
|
|
426
|
+
"uses": [],
|
|
427
|
+
"hooks": [],
|
|
428
|
+
"slotProps": {},
|
|
262
429
|
"props": {
|
|
263
430
|
"data": "object — page load data (categories, sidebar, pageTitle, View)",
|
|
264
431
|
"error": "writable store — submit error rendered by ErrorAlert",
|
|
@@ -267,47 +434,704 @@
|
|
|
267
434
|
"categoryId": "writable store — selected category id, -1 = no category (bind:value={$categoryId})",
|
|
268
435
|
"loading": "writable store — request in-flight flag, disables the submit button",
|
|
269
436
|
"submit": "function — (error, loading, title, message, categoryId) sends the create-ticket request; view passes the store objects, not their values"
|
|
437
|
+
},
|
|
438
|
+
"locked": {
|
|
439
|
+
"contract": 1,
|
|
440
|
+
"props": ["categoryId", "data", "error", "loading", "message", "submit", "title"]
|
|
270
441
|
}
|
|
271
442
|
},
|
|
272
443
|
"AppLayoutView": {
|
|
444
|
+
"contract": 1,
|
|
445
|
+
"source": "src/lib/views/AppLayoutView.svelte",
|
|
446
|
+
"uses": ["ToastContainer"],
|
|
447
|
+
"hooks": [],
|
|
448
|
+
"slotProps": {
|
|
449
|
+
"default": []
|
|
450
|
+
},
|
|
273
451
|
"props": {
|
|
274
452
|
"data": "object — full layout load data (session payload, _pageTitleStore, View); passed for contract completeness, unused by the stock view markup",
|
|
275
453
|
"session": "store — writable session store ({ user, csrfToken, siteInfo }) returned by init(data); view reads $session.siteInfo for favicon hash and website name",
|
|
276
454
|
"pageTitle": "store — current page title descriptor (null | i18n key string | { title, titleValues }); view reads $pageTitle for the document title",
|
|
277
455
|
"getTitle": "function — (pageTitle, siteName) => formatted document <title> string; stays in the controller because it closes over the controller's $_ (svelte-i18n) subscription"
|
|
456
|
+
},
|
|
457
|
+
"locked": {
|
|
458
|
+
"contract": 1,
|
|
459
|
+
"props": ["data", "getTitle", "pageTitle", "session"]
|
|
278
460
|
}
|
|
279
461
|
},
|
|
280
462
|
"MainLayoutView": {
|
|
463
|
+
"contract": 1,
|
|
464
|
+
"source": "src/lib/views/MainLayoutView.svelte",
|
|
465
|
+
"uses": ["Breadcrumb", "Main", "NotificationContainer"],
|
|
466
|
+
"hooks": ["theme:top", "page:top"],
|
|
467
|
+
"slotProps": {
|
|
468
|
+
"default": []
|
|
469
|
+
},
|
|
281
470
|
"props": {
|
|
282
471
|
"data": "object — controller load data (hookProps, View, mainLayoutView); unused by the default markup but kept for the view contract",
|
|
283
472
|
"themeSettings": "object — the 'themeSettings' context object (theme color, header/navbar gap, footer & breadcrumb toggles, background/custom CSS settings)",
|
|
284
|
-
"session": "store — the 'session' context store passed as a store object; view auto-subscribes via $session
|
|
473
|
+
"session": "store — the 'session' context store passed as a store object; view auto-subscribes via $session (the page head tags are emitted by the engine PageHead, not the view)",
|
|
474
|
+
"chrome": "object — registry-resolved chrome components { Navbar, Header, Footer } (an override of any of them is already applied); render them with <svelte:component this={chrome.Navbar} />"
|
|
475
|
+
},
|
|
476
|
+
"locked": {
|
|
477
|
+
"contract": 1,
|
|
478
|
+
"props": ["chrome", "data", "session", "themeSettings"]
|
|
285
479
|
}
|
|
286
480
|
},
|
|
287
481
|
"AuthLayoutView": {
|
|
482
|
+
"contract": 1,
|
|
483
|
+
"source": "src/lib/views/AuthLayoutView.svelte",
|
|
484
|
+
"uses": [],
|
|
485
|
+
"hooks": [],
|
|
486
|
+
"slotProps": {
|
|
487
|
+
"default": []
|
|
488
|
+
},
|
|
288
489
|
"props": {
|
|
289
490
|
"data": "object — layout load data returned by processLoad (AuthLayoutLogics), plus View"
|
|
491
|
+
},
|
|
492
|
+
"locked": {
|
|
493
|
+
"contract": 1,
|
|
494
|
+
"props": ["data"]
|
|
290
495
|
}
|
|
291
496
|
},
|
|
292
497
|
"ProfileLayoutView": {
|
|
498
|
+
"contract": 1,
|
|
499
|
+
"source": "src/lib/views/ProfileLayoutView.svelte",
|
|
500
|
+
"uses": [],
|
|
501
|
+
"hooks": [],
|
|
502
|
+
"slotProps": {
|
|
503
|
+
"default": []
|
|
504
|
+
},
|
|
293
505
|
"props": {
|
|
294
506
|
"data": "object — layout load data from ProfileLayoutLogics.processLoad (includes data.View, the resolved view component)"
|
|
507
|
+
},
|
|
508
|
+
"locked": {
|
|
509
|
+
"contract": 1,
|
|
510
|
+
"props": ["data"]
|
|
295
511
|
}
|
|
296
512
|
},
|
|
297
513
|
"ThemeSettingsLayoutView": {
|
|
514
|
+
"contract": 1,
|
|
515
|
+
"source": "src/lib/views/ThemeSettingsLayoutView.svelte",
|
|
516
|
+
"uses": [],
|
|
517
|
+
"hooks": [],
|
|
518
|
+
"slotProps": {
|
|
519
|
+
"default": []
|
|
520
|
+
},
|
|
298
521
|
"props": {
|
|
299
522
|
"data": "object — merged layout load data from processLoad (ThemeSettingsLayoutLogics), also carries View; unused by the trivial markup but kept per contract",
|
|
300
523
|
"hidden": "store<boolean> — store returned by ThemeSettingsLayoutLogics init(); drives the hidden attribute on the wrapper div"
|
|
524
|
+
},
|
|
525
|
+
"locked": {
|
|
526
|
+
"contract": 1,
|
|
527
|
+
"props": ["data", "hidden"]
|
|
301
528
|
}
|
|
302
529
|
},
|
|
303
530
|
"TicketsLayoutView": {
|
|
531
|
+
"contract": 1,
|
|
532
|
+
"source": "src/lib/views/TicketsLayoutView.svelte",
|
|
533
|
+
"uses": ["CloseTicketConfirmModal"],
|
|
534
|
+
"hooks": [],
|
|
535
|
+
"slotProps": {
|
|
536
|
+
"default": []
|
|
537
|
+
},
|
|
304
538
|
"props": {
|
|
305
539
|
"data": "object — layout load data (parent data merged by processLoad, plus View); the view markup itself does not read it, kept for contract completeness"
|
|
540
|
+
},
|
|
541
|
+
"locked": {
|
|
542
|
+
"contract": 1,
|
|
543
|
+
"props": ["data"]
|
|
306
544
|
}
|
|
307
545
|
},
|
|
308
546
|
"RulesView": {
|
|
547
|
+
"contract": 1,
|
|
548
|
+
"source": "src/lib/views/RulesView.svelte",
|
|
549
|
+
"uses": [],
|
|
550
|
+
"hooks": [],
|
|
551
|
+
"slotProps": {},
|
|
309
552
|
"props": {
|
|
310
553
|
"data": "object — load result; data.registerAgreement: sanitized HTML of the register agreement"
|
|
554
|
+
},
|
|
555
|
+
"locked": {
|
|
556
|
+
"contract": 1,
|
|
557
|
+
"props": ["data"]
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"Main": {
|
|
561
|
+
"kind": "component",
|
|
562
|
+
"contract": 1,
|
|
563
|
+
"source": "src/lib/views/parts/Main.svelte",
|
|
564
|
+
"uses": ["PageTitle"],
|
|
565
|
+
"hooks": [],
|
|
566
|
+
"slotProps": {
|
|
567
|
+
"default": []
|
|
568
|
+
},
|
|
569
|
+
"props": {
|
|
570
|
+
"dev": "boolean — SvelteKit dev flag (the part links /style.css in dev unless devUi)",
|
|
571
|
+
"devUi": "boolean — true while the theme's UI dev server runs and serves /style.css itself",
|
|
572
|
+
"pageTitle": "store — the 'pageTitle' context: a translation key or { title, titleValues, subtitle, subtitleValues, html, subtitleHtml, raw, hidden }",
|
|
573
|
+
"resolvedTitle": "object — { title, subtitle, hidden } after translation (resolvePageTitle); hidden keeps the title for the document <title> only",
|
|
574
|
+
"sidebar": "store — the 'sidebar' context: the sidebar component of this page, or a falsy value",
|
|
575
|
+
"sidebarProps": "store — the 'sidebarProps' context: props for the sidebar component",
|
|
576
|
+
"sidebarEnabled": "boolean — themeSettings.sidebarEnabled (true when unset)",
|
|
577
|
+
"sidebarPosition": "string — 'LEFT' | 'RIGHT' (themeSettings.sidebarPosition, else from sidebarProps.side)"
|
|
578
|
+
},
|
|
579
|
+
"locked": {
|
|
580
|
+
"contract": 1,
|
|
581
|
+
"props": ["dev", "devUi", "pageTitle", "resolvedTitle", "sidebar", "sidebarEnabled", "sidebarPosition", "sidebarProps"]
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"Sidebar": {
|
|
585
|
+
"kind": "component",
|
|
586
|
+
"contract": 1,
|
|
587
|
+
"source": "src/lib/views/parts/Sidebar.svelte",
|
|
588
|
+
"uses": [],
|
|
589
|
+
"hooks": [],
|
|
590
|
+
"slotProps": {
|
|
591
|
+
"default": []
|
|
592
|
+
},
|
|
593
|
+
"props": {
|
|
594
|
+
"side": "string — 'left' | 'right': the side of the content the column sits on (default 'right')"
|
|
595
|
+
},
|
|
596
|
+
"locked": {
|
|
597
|
+
"contract": 1,
|
|
598
|
+
"props": ["side"]
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"Breadcrumb": {
|
|
602
|
+
"kind": "component",
|
|
603
|
+
"contract": 1,
|
|
604
|
+
"source": "src/lib/views/parts/Breadcrumb.svelte",
|
|
605
|
+
"uses": [],
|
|
606
|
+
"hooks": [],
|
|
607
|
+
"slotProps": {},
|
|
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"
|
|
610
|
+
},
|
|
611
|
+
"locked": {
|
|
612
|
+
"contract": 1,
|
|
613
|
+
"props": ["items"]
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"Post": {
|
|
617
|
+
"kind": "component",
|
|
618
|
+
"contract": 1,
|
|
619
|
+
"source": "src/lib/views/parts/Post.svelte",
|
|
620
|
+
"uses": ["Date"],
|
|
621
|
+
"hooks": [],
|
|
622
|
+
"slotProps": {},
|
|
623
|
+
"props": {
|
|
624
|
+
"post": "object — { url, title, text, views, date, thumbnailUrl?, category: { title, url }, writer: { username } }",
|
|
625
|
+
"detail": "boolean — true on the post page (full text, view count), false for the list card",
|
|
626
|
+
"themeSettings": "object — the 'themeSettings' context (postCoverImageEnabled, postViewCountEnabled, postAuthorImageEnabled)",
|
|
627
|
+
"avatarVersion": "store — cache-busting version appended to avatar image URLs"
|
|
628
|
+
},
|
|
629
|
+
"locked": {
|
|
630
|
+
"contract": 1,
|
|
631
|
+
"props": ["avatarVersion", "detail", "post", "themeSettings"]
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"Posts": {
|
|
635
|
+
"kind": "component",
|
|
636
|
+
"contract": 1,
|
|
637
|
+
"source": "src/lib/views/parts/Posts.svelte",
|
|
638
|
+
"uses": ["NoContent", "Post"],
|
|
639
|
+
"hooks": [],
|
|
640
|
+
"slotProps": {},
|
|
641
|
+
"props": {
|
|
642
|
+
"posts": "array — post objects (see Post); an empty array shows the no-content card"
|
|
643
|
+
},
|
|
644
|
+
"locked": {
|
|
645
|
+
"contract": 1,
|
|
646
|
+
"props": ["posts"]
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"Tickets": {
|
|
650
|
+
"kind": "component",
|
|
651
|
+
"contract": 1,
|
|
652
|
+
"source": "src/lib/views/parts/Tickets.svelte",
|
|
653
|
+
"uses": ["NoContent", "TicketRow"],
|
|
654
|
+
"hooks": [],
|
|
655
|
+
"slotProps": {},
|
|
656
|
+
"props": {
|
|
657
|
+
"tickets": "array — ticket objects (see TicketRow); an empty array shows the no-content card",
|
|
658
|
+
"onCloseTicketClick": "function(ticket) — called when a row's close button is pressed; the controller dispatches 'closeTicket' with { ticket }"
|
|
659
|
+
},
|
|
660
|
+
"locked": {
|
|
661
|
+
"contract": 1,
|
|
662
|
+
"props": ["onCloseTicketClick", "tickets"]
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"TicketRow": {
|
|
666
|
+
"kind": "component",
|
|
667
|
+
"contract": 1,
|
|
668
|
+
"source": "src/lib/views/parts/TicketRow.svelte",
|
|
669
|
+
"uses": ["Date", "TicketStatus"],
|
|
670
|
+
"hooks": [],
|
|
671
|
+
"slotProps": {},
|
|
672
|
+
"props": {
|
|
673
|
+
"ticket": "object — { id, title, status, category: { title, url }, lastUpdate, selected? }",
|
|
674
|
+
"onCloseTicket": "function() — the close button handler; the controller dispatches 'closeTicket' with { ticket }"
|
|
675
|
+
},
|
|
676
|
+
"locked": {
|
|
677
|
+
"contract": 1,
|
|
678
|
+
"props": ["onCloseTicket", "ticket"]
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"TicketStatus": {
|
|
682
|
+
"kind": "component",
|
|
683
|
+
"contract": 1,
|
|
684
|
+
"source": "src/lib/views/parts/TicketStatus.svelte",
|
|
685
|
+
"uses": [],
|
|
686
|
+
"hooks": [],
|
|
687
|
+
"slotProps": {},
|
|
688
|
+
"props": {
|
|
689
|
+
"status": "string — 'NEW' | 'REPLIED' | 'CLOSED' (default 'NEW'): the badge to show"
|
|
690
|
+
},
|
|
691
|
+
"locked": {
|
|
692
|
+
"contract": 1,
|
|
693
|
+
"props": ["status"]
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
"Toast": {
|
|
697
|
+
"kind": "component",
|
|
698
|
+
"contract": 1,
|
|
699
|
+
"source": "src/lib/views/parts/Toast.svelte",
|
|
700
|
+
"uses": [],
|
|
701
|
+
"hooks": [],
|
|
702
|
+
"slotProps": {
|
|
703
|
+
"default": []
|
|
704
|
+
},
|
|
705
|
+
"props": {
|
|
706
|
+
"id": "number — toast id; the element id must be `appToast{id}` (ToastContainer finds the element by that id)",
|
|
707
|
+
"variant": "string|null — 'success' | 'danger' | 'warning' | null: the requested tone",
|
|
708
|
+
"variantClass": "string — Bootstrap text class mapped from the variant ('' for a neutral toast); add it to the toast element"
|
|
709
|
+
},
|
|
710
|
+
"locked": {
|
|
711
|
+
"contract": 1,
|
|
712
|
+
"props": ["id", "variant", "variantClass"]
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"DefaultToast": {
|
|
716
|
+
"kind": "component",
|
|
717
|
+
"contract": 1,
|
|
718
|
+
"source": "src/lib/views/parts/DefaultToast.svelte",
|
|
719
|
+
"uses": ["Toast"],
|
|
720
|
+
"hooks": [],
|
|
721
|
+
"slotProps": {},
|
|
722
|
+
"props": {
|
|
723
|
+
"id": "number — toast id, passed on to <Toast>",
|
|
724
|
+
"text": "string — the translation key the toast was shown with",
|
|
725
|
+
"message": "string — the translated text with its values already HTML-escaped; safe for {@html}",
|
|
726
|
+
"variant": "string|null — 'success' | 'danger' | 'warning' | null: the requested tone, passed on to <Toast>"
|
|
727
|
+
},
|
|
728
|
+
"locked": {
|
|
729
|
+
"contract": 1,
|
|
730
|
+
"props": ["id", "message", "text", "variant"]
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
"ToastContainer": {
|
|
734
|
+
"kind": "component",
|
|
735
|
+
"contract": 1,
|
|
736
|
+
"source": "src/lib/views/parts/ToastContainer.svelte",
|
|
737
|
+
"uses": ["DefaultToast"],
|
|
738
|
+
"hooks": [],
|
|
739
|
+
"slotProps": {},
|
|
740
|
+
"props": {
|
|
741
|
+
"toasts": "store — the toasts on screen [{ id, component, params }]; render each with <svelte:component this={toast.component} id={toast.id} {...toast.params} /> (component is <DefaultToast> unless the caller passed its own)"
|
|
742
|
+
},
|
|
743
|
+
"locked": {
|
|
744
|
+
"contract": 1,
|
|
745
|
+
"props": ["toasts"]
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
"NotificationContainer": {
|
|
749
|
+
"kind": "component",
|
|
750
|
+
"contract": 1,
|
|
751
|
+
"source": "src/lib/views/parts/NotificationContainer.svelte",
|
|
752
|
+
"uses": [],
|
|
753
|
+
"hooks": [],
|
|
754
|
+
"slotProps": {},
|
|
755
|
+
"props": {
|
|
756
|
+
"notifications": "store — the notifications on screen (objects of the notifications API)",
|
|
757
|
+
"checkTime": "number — tick counter, passed BARE (no $) to getTime so relative times refresh",
|
|
758
|
+
"currentLanguage": "store — active language object; .dateFnsCode selects the date-fns locale",
|
|
759
|
+
"locales": "object — date-fns locale namespace",
|
|
760
|
+
"avatarVersion": "store — cache-busting version appended to profile picture URLs",
|
|
761
|
+
"getTime": "function(checkTime, time, locale) — relative 'time ago' text",
|
|
762
|
+
"onNotificationClick": "function(notification, navigate) — runs the notification's listener, or navigates to details.href",
|
|
763
|
+
"navigate": "function(path) — goto(base + path)",
|
|
764
|
+
"notificationTextKey": "function(notification) — the translation key of the notification text",
|
|
765
|
+
"sanitizeObject": "function(details) — escapes detail values before {@html} i18n interpolation",
|
|
766
|
+
"onClick": "function(notification) — the whole-card click: marks it read, follows it and hides the toast"
|
|
767
|
+
},
|
|
768
|
+
"locked": {
|
|
769
|
+
"contract": 1,
|
|
770
|
+
"props": ["avatarVersion", "checkTime", "currentLanguage", "getTime", "locales", "navigate", "notificationTextKey", "notifications", "onClick", "onNotificationClick", "sanitizeObject"]
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"CloseTicketConfirmModal": {
|
|
774
|
+
"kind": "component",
|
|
775
|
+
"contract": 1,
|
|
776
|
+
"source": "src/lib/views/parts/CloseTicketConfirmModal.svelte",
|
|
777
|
+
"uses": [],
|
|
778
|
+
"hooks": [],
|
|
779
|
+
"slotProps": {},
|
|
780
|
+
"props": {
|
|
781
|
+
"dialogID": "string — id of the modal root element; show() finds the modal by it, keep it",
|
|
782
|
+
"error": "store — current error (string or { key, props }); render it with <ErrorAlert error={$error} />",
|
|
783
|
+
"loading": "boolean — the close request is in flight; disable the buttons",
|
|
784
|
+
"hide": "function() — cancel: closes the modal",
|
|
785
|
+
"onYesClick": "function() — confirm: closes the ticket"
|
|
786
|
+
},
|
|
787
|
+
"locked": {
|
|
788
|
+
"contract": 1,
|
|
789
|
+
"props": ["dialogID", "error", "hide", "loading", "onYesClick"]
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"ConfirmRemoveAllNotificationsModal": {
|
|
793
|
+
"kind": "component",
|
|
794
|
+
"contract": 1,
|
|
795
|
+
"source": "src/lib/views/parts/ConfirmRemoveAllNotificationsModal.svelte",
|
|
796
|
+
"uses": [],
|
|
797
|
+
"hooks": [],
|
|
798
|
+
"slotProps": {},
|
|
799
|
+
"props": {
|
|
800
|
+
"dialogID": "string — id of the modal root element; show() finds the modal by it, keep it",
|
|
801
|
+
"loading": "boolean|undefined — the delete request is in flight; disable the buttons",
|
|
802
|
+
"hide": "function() — cancel: closes the modal",
|
|
803
|
+
"onYesClick": "function() — confirm: deletes every notification"
|
|
804
|
+
},
|
|
805
|
+
"locked": {
|
|
806
|
+
"contract": 1,
|
|
807
|
+
"props": ["dialogID", "hide", "loading", "onYesClick"]
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"LogoutSessionConfirmModal": {
|
|
811
|
+
"kind": "component",
|
|
812
|
+
"contract": 1,
|
|
813
|
+
"source": "src/lib/views/parts/LogoutSessionConfirmModal.svelte",
|
|
814
|
+
"uses": [],
|
|
815
|
+
"hooks": [],
|
|
816
|
+
"slotProps": {},
|
|
817
|
+
"props": {
|
|
818
|
+
"dialogID": "string — id of the modal root element; show() finds the modal by it, keep it",
|
|
819
|
+
"hide": "function() — cancel: closes the modal",
|
|
820
|
+
"onYesClick": "function() — confirm: closes the modal and runs the callback (logs out)"
|
|
821
|
+
},
|
|
822
|
+
"locked": {
|
|
823
|
+
"contract": 1,
|
|
824
|
+
"props": ["dialogID", "hide", "onYesClick"]
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
"LoginFormBody": {
|
|
828
|
+
"kind": "component",
|
|
829
|
+
"contract": 1,
|
|
830
|
+
"source": "src/lib/components/LoginFormBody.svelte",
|
|
831
|
+
"uses": [],
|
|
832
|
+
"hooks": [],
|
|
833
|
+
"slotProps": {
|
|
834
|
+
"beforeSubmit": [],
|
|
835
|
+
"footer": []
|
|
836
|
+
},
|
|
837
|
+
"props": {
|
|
838
|
+
"usernameOrEmail": "string — bindable username / email field value",
|
|
839
|
+
"password": "string — bindable password field value",
|
|
840
|
+
"loading": "boolean — request in flight; disables the submit button",
|
|
841
|
+
"usernameDisabled": "boolean — the username field is read-only",
|
|
842
|
+
"submitLabel": "string|null — translation key of the submit button (default: the login label)"
|
|
843
|
+
},
|
|
844
|
+
"locked": {
|
|
845
|
+
"contract": 1,
|
|
846
|
+
"props": ["loading", "password", "submitLabel", "usernameDisabled", "usernameOrEmail"]
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"RegisterForm": {
|
|
850
|
+
"kind": "component",
|
|
851
|
+
"contract": 1,
|
|
852
|
+
"source": "src/lib/components/RegisterForm.svelte",
|
|
853
|
+
"uses": [],
|
|
854
|
+
"hooks": [],
|
|
855
|
+
"slotProps": {
|
|
856
|
+
"beforeSubmit": [],
|
|
857
|
+
"footer": []
|
|
858
|
+
},
|
|
859
|
+
"props": {
|
|
860
|
+
"username": "string — bindable username field value",
|
|
861
|
+
"email": "string — bindable email field value",
|
|
862
|
+
"password": "string — bindable password field value",
|
|
863
|
+
"passwordRepeat": "string — bindable password-repeat field value",
|
|
864
|
+
"agreement": "boolean — bindable register-agreement checkbox value",
|
|
865
|
+
"loading": "boolean — request in flight; disables the submit button",
|
|
866
|
+
"usernameDisabled": "boolean — the username field is read-only"
|
|
867
|
+
},
|
|
868
|
+
"locked": {
|
|
869
|
+
"contract": 1,
|
|
870
|
+
"props": ["agreement", "email", "loading", "password", "passwordRepeat", "username", "usernameDisabled"]
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"Date": {
|
|
874
|
+
"kind": "component",
|
|
875
|
+
"contract": 1,
|
|
876
|
+
"source": "src/lib/components/Date.svelte",
|
|
877
|
+
"uses": [],
|
|
878
|
+
"hooks": [],
|
|
879
|
+
"slotProps": {
|
|
880
|
+
"default": []
|
|
881
|
+
},
|
|
882
|
+
"props": {
|
|
883
|
+
"time": "string|number — epoch milliseconds to show",
|
|
884
|
+
"relativeFormat": "boolean — 'yesterday at 10:00' style instead of '12 March 2026' (default false)"
|
|
885
|
+
},
|
|
886
|
+
"locked": {
|
|
887
|
+
"contract": 1,
|
|
888
|
+
"props": ["relativeFormat", "time"]
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"Pagination": {
|
|
892
|
+
"kind": "component",
|
|
893
|
+
"contract": 2,
|
|
894
|
+
"source": "src/lib/components/Pagination.svelte",
|
|
895
|
+
"uses": [],
|
|
896
|
+
"hooks": [],
|
|
897
|
+
"slotProps": {},
|
|
898
|
+
"props": {
|
|
899
|
+
"page": "number — current page, 1-based (default 1)",
|
|
900
|
+
"totalPages": "number — number of pages (default 1)"
|
|
901
|
+
},
|
|
902
|
+
"locked": {
|
|
903
|
+
"contract": 2,
|
|
904
|
+
"props": ["page", "totalPages"]
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"NoContent": {
|
|
908
|
+
"kind": "component",
|
|
909
|
+
"contract": 1,
|
|
910
|
+
"source": "src/lib/components/NoContent.svelte",
|
|
911
|
+
"uses": [],
|
|
912
|
+
"hooks": [],
|
|
913
|
+
"slotProps": {
|
|
914
|
+
"default": []
|
|
915
|
+
},
|
|
916
|
+
"props": {
|
|
917
|
+
"icon": "string — Font Awesome classes of the icon",
|
|
918
|
+
"text": "string — message under the icon (default: the 'no content' text)"
|
|
919
|
+
},
|
|
920
|
+
"locked": {
|
|
921
|
+
"contract": 1,
|
|
922
|
+
"props": ["icon", "text"]
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"PageActions": {
|
|
926
|
+
"kind": "component",
|
|
927
|
+
"contract": 1,
|
|
928
|
+
"source": "src/lib/components/PageActions.svelte",
|
|
929
|
+
"uses": [],
|
|
930
|
+
"hooks": [],
|
|
931
|
+
"slotProps": {
|
|
932
|
+
"left": [],
|
|
933
|
+
"middle": [],
|
|
934
|
+
"right": []
|
|
935
|
+
},
|
|
936
|
+
"props": {
|
|
937
|
+
"leftClasses": "string|undefined — extra classes of the left column",
|
|
938
|
+
"middleClasses": "string|undefined — extra classes of the middle column",
|
|
939
|
+
"rightClasses": "string|undefined — extra classes of the right column"
|
|
940
|
+
},
|
|
941
|
+
"locked": {
|
|
942
|
+
"contract": 1,
|
|
943
|
+
"props": ["leftClasses", "middleClasses", "rightClasses"]
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
"PageTitle": {
|
|
947
|
+
"kind": "component",
|
|
948
|
+
"contract": 1,
|
|
949
|
+
"source": "src/lib/components/PageTitle.svelte",
|
|
950
|
+
"uses": [],
|
|
951
|
+
"hooks": [],
|
|
952
|
+
"slotProps": {
|
|
953
|
+
"default": [],
|
|
954
|
+
"title": []
|
|
955
|
+
},
|
|
956
|
+
"props": {
|
|
957
|
+
"title": "string — heading text (already translated)",
|
|
958
|
+
"subtitle": "string — text under the heading (already translated)",
|
|
959
|
+
"html": "boolean|undefined — render the title as HTML",
|
|
960
|
+
"subtitleHtml": "boolean — render the subtitle as HTML (default false)"
|
|
961
|
+
},
|
|
962
|
+
"locked": {
|
|
963
|
+
"contract": 1,
|
|
964
|
+
"props": ["html", "subtitle", "subtitleHtml", "title"]
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"PlayerHead": {
|
|
968
|
+
"kind": "component",
|
|
969
|
+
"contract": 1,
|
|
970
|
+
"source": "src/lib/components/PlayerHead.svelte",
|
|
971
|
+
"uses": [],
|
|
972
|
+
"hooks": [],
|
|
973
|
+
"slotProps": {},
|
|
974
|
+
"props": {
|
|
975
|
+
"username": "string — player name; the head image comes from it",
|
|
976
|
+
"width": "number — image width in px (default 64)",
|
|
977
|
+
"height": "number — image height in px (default 64)",
|
|
978
|
+
"checkTime": "number — tick counter so the 'last seen' text refreshes",
|
|
979
|
+
"inGame": "boolean — the player is in the game right now (default false)",
|
|
980
|
+
"lastActivityTime": "string|number — epoch milliseconds of the last activity",
|
|
981
|
+
"banned": "boolean — the player is banned"
|
|
982
|
+
},
|
|
983
|
+
"locked": {
|
|
984
|
+
"contract": 1,
|
|
985
|
+
"props": ["banned", "checkTime", "height", "inGame", "lastActivityTime", "username", "width"]
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"Navbar": {
|
|
989
|
+
"kind": "component",
|
|
990
|
+
"contract": 1,
|
|
991
|
+
"source": "src/lib/components/Navbar.svelte",
|
|
992
|
+
"uses": [],
|
|
993
|
+
"hooks": [],
|
|
994
|
+
"slotProps": {},
|
|
995
|
+
"props": {},
|
|
996
|
+
"locked": {
|
|
997
|
+
"contract": 1,
|
|
998
|
+
"props": []
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
"Header": {
|
|
1002
|
+
"kind": "component",
|
|
1003
|
+
"contract": 1,
|
|
1004
|
+
"source": "src/lib/components/Header.svelte",
|
|
1005
|
+
"uses": [],
|
|
1006
|
+
"hooks": [],
|
|
1007
|
+
"slotProps": {},
|
|
1008
|
+
"props": {},
|
|
1009
|
+
"locked": {
|
|
1010
|
+
"contract": 1,
|
|
1011
|
+
"props": []
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"Footer": {
|
|
1015
|
+
"kind": "component",
|
|
1016
|
+
"contract": 1,
|
|
1017
|
+
"source": "src/lib/components/Footer.svelte",
|
|
1018
|
+
"uses": [],
|
|
1019
|
+
"hooks": [],
|
|
1020
|
+
"slotProps": {},
|
|
1021
|
+
"props": {},
|
|
1022
|
+
"locked": {
|
|
1023
|
+
"contract": 1,
|
|
1024
|
+
"props": []
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
"HomeSidebar": {
|
|
1028
|
+
"kind": "component",
|
|
1029
|
+
"contract": 1,
|
|
1030
|
+
"source": "src/lib/views/parts/HomeSidebar.svelte",
|
|
1031
|
+
"uses": ["Sidebar"],
|
|
1032
|
+
"hooks": [],
|
|
1033
|
+
"slotProps": {},
|
|
1034
|
+
"props": {
|
|
1035
|
+
"side": "\"left\" | \"right\" - which side of the content the column sits on",
|
|
1036
|
+
"items": "store of { id, component, props } - the sidebar items, plugin items included (an id the markup does not know is rendered with <ViewComponent>, the place plugins inject)",
|
|
1037
|
+
"data": "store - { mainServer: { status, playerCount, maxPlayerCount }, serverGameVersion, ipAddress, lastRegisteredUsers: [{ username, lastActivityTime, inGame }] }",
|
|
1038
|
+
"themeSettings": "object - the active theme's settings",
|
|
1039
|
+
"avatarVersion": "store - cache buster appended to the avatar URLs",
|
|
1040
|
+
"serverOnline": "boolean - the main server is ONLINE",
|
|
1041
|
+
"isCommandTextCopied": "boolean - the address was copied a moment ago (the tooltip says \"copied\")",
|
|
1042
|
+
"onCopyCommandTextClick": "function() - copies the address to the clipboard",
|
|
1043
|
+
"playCardIpText": "string - the address shown on the play card",
|
|
1044
|
+
"playCardIpLength": "string - its length, for the stylesheet's no-JS size estimate",
|
|
1045
|
+
"playCardBgImage": "string - background image URL of the play card (empty for none)",
|
|
1046
|
+
"playCardOpacity": "number - opacity of that image",
|
|
1047
|
+
"playCardBgStyle": "string - CSS of the overlay above the image",
|
|
1048
|
+
"playCardBorderColor": "string - Bootstrap border class of the play card",
|
|
1049
|
+
"playCardHeaderClass": "string - Bootstrap background class of the header (card style 1)",
|
|
1050
|
+
"playCardIpColor": "string - Bootstrap link class of the address (card style 2)",
|
|
1051
|
+
"playCardBtnColor": "string - Bootstrap button colour of the address (card style 1)",
|
|
1052
|
+
"showPlayCardStatusBadge": "boolean - show the online / offline badge",
|
|
1053
|
+
"showPlayCardPlayerCount": "boolean - show the player count",
|
|
1054
|
+
"showPlayCardVersionInfo": "boolean - show the game version"
|
|
1055
|
+
},
|
|
1056
|
+
"locked": {
|
|
1057
|
+
"contract": 1,
|
|
1058
|
+
"props": ["avatarVersion", "data", "isCommandTextCopied", "items", "onCopyCommandTextClick", "playCardBgImage", "playCardBgStyle", "playCardBorderColor", "playCardBtnColor", "playCardHeaderClass", "playCardIpColor", "playCardIpLength", "playCardIpText", "playCardOpacity", "serverOnline", "showPlayCardPlayerCount", "showPlayCardStatusBadge", "showPlayCardVersionInfo", "side", "themeSettings"]
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"ProfileSidebar": {
|
|
1062
|
+
"kind": "component",
|
|
1063
|
+
"contract": 1,
|
|
1064
|
+
"source": "src/lib/views/parts/ProfileSidebar.svelte",
|
|
1065
|
+
"uses": ["PageTitle", "PlayerHead", "Sidebar"],
|
|
1066
|
+
"hooks": [],
|
|
1067
|
+
"slotProps": {},
|
|
1068
|
+
"props": {
|
|
1069
|
+
"side": "\"left\" | \"right\" - which side of the content the column sits on",
|
|
1070
|
+
"showDeleteAll": "boolean - show the \"delete all notifications\" button (default false)",
|
|
1071
|
+
"onDeleteAllClick": "function() - opens the confirmation for deleting all notifications",
|
|
1072
|
+
"items": "store of { id, component, props } - the sidebar items, plugin items included (an id the markup does not know is rendered with <ViewComponent>, the place plugins inject)",
|
|
1073
|
+
"data": "store - { lastActivityTime, inGame, permissionGroupName, isBanned } of the signed-in user",
|
|
1074
|
+
"user": "object - the signed-in user ({} for a visitor)",
|
|
1075
|
+
"checkTime": "number - ticks every second so the \"last seen\" texts refresh",
|
|
1076
|
+
"navEntries": "array - { id, href, text, icon, badge, active } of the profile navigation (hrefs already go through route())"
|
|
1077
|
+
},
|
|
1078
|
+
"locked": {
|
|
1079
|
+
"contract": 1,
|
|
1080
|
+
"props": ["checkTime", "data", "items", "navEntries", "onDeleteAllClick", "showDeleteAll", "side", "user"]
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"SupportSidebar": {
|
|
1084
|
+
"kind": "component",
|
|
1085
|
+
"contract": 1,
|
|
1086
|
+
"source": "src/lib/views/parts/SupportSidebar.svelte",
|
|
1087
|
+
"uses": ["Sidebar"],
|
|
1088
|
+
"hooks": [],
|
|
1089
|
+
"slotProps": {},
|
|
1090
|
+
"props": {
|
|
1091
|
+
"side": "\"left\" | \"right\" - which side of the content the column sits on",
|
|
1092
|
+
"items": "store of { id, component, props } - the sidebar items, plugin items included (an id the markup does not know is rendered with <ViewComponent>, the place plugins inject)",
|
|
1093
|
+
"data": "store - { onlineAdmins: string[] }"
|
|
1094
|
+
},
|
|
1095
|
+
"locked": {
|
|
1096
|
+
"contract": 1,
|
|
1097
|
+
"props": ["data", "items", "side"]
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"PlayerDetailSidebar": {
|
|
1101
|
+
"kind": "component",
|
|
1102
|
+
"contract": 1,
|
|
1103
|
+
"source": "src/lib/views/parts/PlayerDetailSidebar.svelte",
|
|
1104
|
+
"uses": ["PageTitle", "PlayerHead", "Sidebar"],
|
|
1105
|
+
"hooks": [],
|
|
1106
|
+
"slotProps": {},
|
|
1107
|
+
"props": {
|
|
1108
|
+
"side": "\"left\" | \"right\" - which side of the content the column sits on",
|
|
1109
|
+
"items": "store of { id, component, props } - the sidebar items, plugin items included (an id the markup does not know is rendered with <ViewComponent>, the place plugins inject)",
|
|
1110
|
+
"data": "store - { username, lastActivityTime, inGame, permissionGroupName, banned } of the shown player",
|
|
1111
|
+
"checkTime": "number - ticks every second so the \"last seen\" texts refresh"
|
|
1112
|
+
},
|
|
1113
|
+
"locked": {
|
|
1114
|
+
"contract": 1,
|
|
1115
|
+
"props": ["checkTime", "data", "items", "side"]
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"TicketCreateAndDetailSidebar": {
|
|
1119
|
+
"kind": "component",
|
|
1120
|
+
"contract": 1,
|
|
1121
|
+
"source": "src/lib/views/parts/TicketCreateAndDetailSidebar.svelte",
|
|
1122
|
+
"uses": ["Sidebar"],
|
|
1123
|
+
"hooks": [],
|
|
1124
|
+
"slotProps": {},
|
|
1125
|
+
"props": {
|
|
1126
|
+
"side": "\"left\" | \"right\" - which side of the content the column sits on",
|
|
1127
|
+
"items": "store of { id, component, props } - the sidebar items, plugin items included (an id the markup does not know is rendered with <ViewComponent>, the place plugins inject)",
|
|
1128
|
+
"data": "store - { onlineAdmins: string[] }",
|
|
1129
|
+
"ticketData": "store - the open ticket ({ id, status, ... }), null on the create page",
|
|
1130
|
+
"onCloseTicketClick": "function(ticket) - opens the confirmation for closing the ticket"
|
|
1131
|
+
},
|
|
1132
|
+
"locked": {
|
|
1133
|
+
"contract": 1,
|
|
1134
|
+
"props": ["data", "items", "onCloseTicketClick", "side", "ticketData"]
|
|
311
1135
|
}
|
|
312
1136
|
}
|
|
313
1137
|
},
|
|
@@ -323,20 +1147,8 @@
|
|
|
323
1147
|
"footer": ["footerEnabled", "footerLogoEnabled", "footerTitleEnabled", "footerTitle", "footerContentEnabled", "footerContent", "footerLinksEnabled", "footerPluginLinksEnabled", "footerLinksEnableStatus", "footerLinksOrder"],
|
|
324
1148
|
"advanced": ["customCss"]
|
|
325
1149
|
},
|
|
326
|
-
"registry_components": [
|
|
327
|
-
"LoginFormBody",
|
|
328
|
-
"RegisterForm",
|
|
329
|
-
"Date",
|
|
330
|
-
"Pagination",
|
|
331
|
-
"NoContent",
|
|
332
|
-
"PageActions",
|
|
333
|
-
"PageTitle",
|
|
334
|
-
"PlayerHead",
|
|
335
|
-
"Navbar",
|
|
336
|
-
"Header",
|
|
337
|
-
"Footer"
|
|
338
|
-
],
|
|
339
1150
|
"view_slots": [
|
|
1151
|
+
"profile-nav",
|
|
340
1152
|
"login-content",
|
|
341
1153
|
"login-alt-methods",
|
|
342
1154
|
"register-content",
|
|
@@ -364,5 +1176,38 @@
|
|
|
364
1176
|
"(theme)",
|
|
365
1177
|
"(theme-settings)",
|
|
366
1178
|
"(plugin-ui)"
|
|
1179
|
+
],
|
|
1180
|
+
"registry_components": [
|
|
1181
|
+
"Main",
|
|
1182
|
+
"Sidebar",
|
|
1183
|
+
"Breadcrumb",
|
|
1184
|
+
"Post",
|
|
1185
|
+
"Posts",
|
|
1186
|
+
"Tickets",
|
|
1187
|
+
"TicketRow",
|
|
1188
|
+
"TicketStatus",
|
|
1189
|
+
"Toast",
|
|
1190
|
+
"DefaultToast",
|
|
1191
|
+
"ToastContainer",
|
|
1192
|
+
"NotificationContainer",
|
|
1193
|
+
"CloseTicketConfirmModal",
|
|
1194
|
+
"ConfirmRemoveAllNotificationsModal",
|
|
1195
|
+
"LogoutSessionConfirmModal",
|
|
1196
|
+
"LoginFormBody",
|
|
1197
|
+
"RegisterForm",
|
|
1198
|
+
"Date",
|
|
1199
|
+
"Pagination",
|
|
1200
|
+
"NoContent",
|
|
1201
|
+
"PageActions",
|
|
1202
|
+
"PageTitle",
|
|
1203
|
+
"PlayerHead",
|
|
1204
|
+
"Navbar",
|
|
1205
|
+
"Header",
|
|
1206
|
+
"Footer",
|
|
1207
|
+
"HomeSidebar",
|
|
1208
|
+
"ProfileSidebar",
|
|
1209
|
+
"SupportSidebar",
|
|
1210
|
+
"PlayerDetailSidebar",
|
|
1211
|
+
"TicketCreateAndDetailSidebar"
|
|
367
1212
|
]
|
|
368
|
-
}
|
|
1213
|
+
}
|