@turnipxenon/pineapple 4.4.1 → 4.5.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dialog_manager/DialogManager.js +1 -1
- package/dist/modules/parsnip/ParsnipHeading.svelte +20 -21
- package/dist/ui/components/ModalBase.svelte +3 -3
- package/dist/ui/components/SocialSection.svelte +3 -2
- package/dist/ui/elements/pinya-combobox/PinyaCombobox.svelte.d.ts +10 -3
- package/dist/ui/modules/projects/Hepcat.svelte.d.ts +1 -1
- package/dist/ui/modules/projects/Pengi.svelte.d.ts +1 -1
- package/dist/ui/modules/projects/Soulwork.svelte.d.ts +1 -1
- package/dist/ui/modules/projects/ThisWebpage.svelte.d.ts +1 -1
- package/dist/ui/templates/SeaweedLayout/CreateUrlForm.svelte +1 -5
- package/dist/ui/templates/SeaweedLayout/ProjectGroupConfig.svelte +0 -53
- package/package.json +23 -25
- package/dist/.gitignore +0 -1
- package/dist/paraglide/messages/_index.d.ts +0 -2
- package/dist/paraglide/messages/_index.js +0 -3
- package/dist/paraglide/messages/example_message.d.ts +0 -5
- package/dist/paraglide/messages/example_message.js +0 -39
- package/dist/paraglide/messages/settings.d.ts +0 -3
- package/dist/paraglide/messages/settings.js +0 -38
- package/dist/paraglide/messages.d.ts +0 -2
- package/dist/paraglide/messages.js +0 -4
- package/dist/paraglide/registry.d.ts +0 -21
- package/dist/paraglide/registry.js +0 -31
- package/dist/paraglide/runtime.d.ts +0 -400
- package/dist/paraglide/runtime.js +0 -1060
- package/dist/paraglide/server.d.ts +0 -64
- package/dist/paraglide/server.js +0 -161
- package/dist/server-temp/prisma.d.ts +0 -2
- package/dist/server-temp/prisma.js +0 -2
|
@@ -163,7 +163,7 @@ export class DialogManager {
|
|
|
163
163
|
// set the portrait
|
|
164
164
|
let portraitValue = AresHappy;
|
|
165
165
|
if (this.currentMessageMeta.portraitType) {
|
|
166
|
-
portraitValue = this.portraitMap.get(this.currentMessageMeta.portraitType ?? AresHappy);
|
|
166
|
+
portraitValue = this.portraitMap.get(this.currentMessageMeta.portraitType ?? AresHappy) ?? '';
|
|
167
167
|
}
|
|
168
168
|
if (portraitValue) {
|
|
169
169
|
this.currentPortrait.update(() => portraitValue);
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import ParsnipPhrasingChildren from "./ParsnipPhrasingChildren.svelte";
|
|
3
|
+
import type { Heading } from "mdast";
|
|
4
|
+
|
|
5
|
+
const { heading }: { heading: Heading } = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
{#if heading.depth === 1}
|
|
9
|
+
<h2><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h2>
|
|
10
|
+
{:else if heading.depth === 2}
|
|
11
|
+
<h3><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h3>
|
|
12
|
+
{:else if heading.depth === 3}
|
|
13
|
+
<h4><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h4>
|
|
14
|
+
{:else if heading.depth === 4}
|
|
15
|
+
<h5><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h5>
|
|
16
|
+
{:else if heading.depth === 5}
|
|
17
|
+
<h6><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h6>
|
|
18
|
+
{:else if heading.depth === 6}
|
|
19
|
+
<p><ParsnipPhrasingChildren phrasingChildren={heading.children}/></p>
|
|
20
|
+
{/if}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
close
|
|
19
19
|
}: ModalBaseProps = $props();
|
|
20
20
|
|
|
21
|
-
let container
|
|
21
|
+
let container = $state<HTMLDivElement>();
|
|
22
22
|
onMount(() => {
|
|
23
|
-
const focusableElement = container
|
|
23
|
+
const focusableElement = container?.querySelector('input, select, textarea, button, object, a, area[href], [tabindex]');
|
|
24
24
|
if (focusableElement) {
|
|
25
25
|
(focusableElement as HTMLElement).focus();
|
|
26
26
|
}
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
.interactable {
|
|
73
73
|
pointer-events: auto;
|
|
74
74
|
}
|
|
75
|
-
</style>
|
|
75
|
+
</style>
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
<PinyaButton
|
|
55
55
|
buttonVariant={ButtonVariant.SmallIcon}
|
|
56
56
|
title={`mailto:${email}`}
|
|
57
|
-
onclick={() => window.open(`mailto:${email}`)}
|
|
57
|
+
onclick={() => window.open(`mailto:${email}`)}
|
|
58
|
+
>
|
|
58
59
|
<ImageIcon src={MailIcon} alt="mail icon" />
|
|
59
60
|
{#if (!isSmallVersion)}
|
|
60
61
|
<span>{email}</span>
|
|
@@ -89,4 +90,4 @@
|
|
|
89
90
|
gap: 0.7rem;
|
|
90
91
|
align-items: stretch;
|
|
91
92
|
}
|
|
92
|
-
</style>
|
|
93
|
+
</style>
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { PinyaComboboxProps } from "./PinyaComboboxProps";
|
|
2
|
+
declare function $$render<T extends string>(): {
|
|
3
|
+
props: PinyaComboboxProps<T>;
|
|
4
|
+
exports: {};
|
|
5
|
+
bindings: "value";
|
|
6
|
+
slots: {};
|
|
7
|
+
events: {};
|
|
8
|
+
};
|
|
2
9
|
declare class __sveltets_Render<T extends string> {
|
|
3
|
-
props():
|
|
4
|
-
events():
|
|
5
|
-
slots():
|
|
10
|
+
props(): ReturnType<typeof $$render<T>>['props'];
|
|
11
|
+
events(): ReturnType<typeof $$render<T>>['events'];
|
|
12
|
+
slots(): ReturnType<typeof $$render<T>>['slots'];
|
|
6
13
|
bindings(): "value";
|
|
7
14
|
exports(): {};
|
|
8
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
2
|
+
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
2
3
|
declare const key = "Hepcat";
|
|
3
4
|
export { component, key };
|
|
4
|
-
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
7
7
|
$$bindings?: Bindings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
2
|
+
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
2
3
|
declare const key = "Pengi";
|
|
3
4
|
export { component, key };
|
|
4
|
-
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
7
7
|
$$bindings?: Bindings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProjectComponentProps } from "../../templates/SeaweedLayout";
|
|
2
|
+
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
2
3
|
declare const key = "Soulwork";
|
|
3
4
|
export { component, key };
|
|
4
|
-
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
7
7
|
$$bindings?: Bindings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
2
|
+
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
2
3
|
declare const key = "This Webpage";
|
|
3
4
|
export { component, key };
|
|
4
|
-
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
5
5
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
6
6
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
7
7
|
$$bindings?: Bindings;
|
|
@@ -220,42 +220,10 @@
|
|
|
220
220
|
|
|
221
221
|
|
|
222
222
|
<style>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
.advanced-setting-list {
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: column;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.btn-group-header {
|
|
231
|
-
@apply preset-filled-tertiary-500;
|
|
232
|
-
display: flex;
|
|
233
|
-
align-items: center;
|
|
234
|
-
margin-bottom: 0.5lh;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.btn-group-entry {
|
|
238
|
-
@apply ;
|
|
239
|
-
display: flex;
|
|
240
|
-
padding: 0;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.btn-group-entry > div {
|
|
244
|
-
padding: 1em;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
223
|
.flipped-vertically {
|
|
248
224
|
transform: rotate(180deg);
|
|
249
225
|
}
|
|
250
226
|
|
|
251
|
-
.entry-group {
|
|
252
|
-
border-radius: var(--theme-rounded-container);
|
|
253
|
-
background-color: rgb(var(--color-surface-600));
|
|
254
|
-
margin-top: 1.5lh;
|
|
255
|
-
margin-bottom: 0.5lh;
|
|
256
|
-
padding: 0.5lh 0.5em;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
227
|
.entry-name {
|
|
260
228
|
grow: 1;
|
|
261
229
|
}
|
|
@@ -272,27 +240,6 @@
|
|
|
272
240
|
display: flex;
|
|
273
241
|
}
|
|
274
242
|
|
|
275
|
-
.btn-group > button {
|
|
276
|
-
padding: 0.3em 0.75em;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.btn-group-header > h2 {
|
|
280
|
-
font-weight: bolder;
|
|
281
|
-
padding-top: 1lh;
|
|
282
|
-
padding-bottom: 1lh;
|
|
283
|
-
margin-bottom: 0;
|
|
284
|
-
padding-inline-start: 1em;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.dark .btn-group-header > h2 {
|
|
288
|
-
color: rgb(var(--theme-font-color-dark));
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.dark .entry-group {
|
|
292
|
-
background-color: rgb(var(--color-surface-800));
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
243
|
tbody tr:nth-child(odd) {
|
|
297
244
|
background-color: var(--color-surface-100-900);
|
|
298
245
|
}
|
package/package.json
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turnipxenon/pineapple",
|
|
3
3
|
"description": "personal package for base styling for other personal projects",
|
|
4
|
-
"version": "4.
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "vite dev",
|
|
7
|
-
"build": "vite build && yarn package",
|
|
8
|
-
"package": "svelte-kit sync && svelte-package && publint",
|
|
9
|
-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
10
|
-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
11
|
-
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
12
|
-
"format": "prettier --plugin-search-dir . --write .",
|
|
13
|
-
"generate": "npx vite-node src/routes/blogs/blog_list_data_generator.ts && npx vite-node src/routes/toyay/toya_files_generator.ts && npm run generate-yarn",
|
|
14
|
-
"generate-yarn": "npx vite-node src/lib/scripts/pineapple_fiber/PineappleWeaver.ts",
|
|
15
|
-
"custom-check": "npx vite-node src/lib/scripts/util/ManualCheckRun.ts",
|
|
16
|
-
"preview": "vite preview",
|
|
17
|
-
"prepublishOnly": "yarn package",
|
|
18
|
-
"to-dev": "git checkout main && git pull origin main && git branch -d turnip/dev && git checkout -b turnip/dev",
|
|
19
|
-
"prepare": "husky"
|
|
20
|
-
},
|
|
4
|
+
"version": "4.5.0-alpha.1",
|
|
21
5
|
"devDependencies": {
|
|
22
6
|
"@commitlint/cli": "^19.8.0",
|
|
23
7
|
"@commitlint/config-conventional": "^19.8.0",
|
|
24
8
|
"@eslint/compat": "^1.2.5",
|
|
25
9
|
"@eslint/js": "^9.18.0",
|
|
26
|
-
"@sveltejs/adapter-
|
|
10
|
+
"@sveltejs/adapter-cloudflare": "^7.2.4",
|
|
27
11
|
"@sveltejs/package": "^2.3.7",
|
|
28
12
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
29
13
|
"eslint": "^9.18.0",
|
|
@@ -43,13 +27,14 @@
|
|
|
43
27
|
"tslib": "^2.4.1",
|
|
44
28
|
"typescript": "^5.5.0",
|
|
45
29
|
"typescript-eslint": "^8.20.0",
|
|
46
|
-
"vite": "^5.4.4"
|
|
30
|
+
"vite": "^5.4.4",
|
|
31
|
+
"wrangler": "^4.42.2"
|
|
47
32
|
},
|
|
48
33
|
"dependencies": {
|
|
49
34
|
"@inlang/paraglide-js": "2.0.0-beta.30",
|
|
50
35
|
"@prisma/client": "^5.12.1",
|
|
51
36
|
"@skeletonlabs/skeleton": "^3.1.0",
|
|
52
|
-
"@skeletonlabs/skeleton-svelte": "
|
|
37
|
+
"@skeletonlabs/skeleton-svelte": "1.0.0",
|
|
53
38
|
"@sveltejs/kit": "^2.5.27",
|
|
54
39
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
55
40
|
"@tailwindcss/vite": "^4.0.14",
|
|
@@ -88,9 +73,7 @@
|
|
|
88
73
|
"./templates": {
|
|
89
74
|
"types": "./dist/ui/templates/index.d.ts",
|
|
90
75
|
"svelte": "./dist/ui/templates/index.js"
|
|
91
|
-
}
|
|
92
|
-
"./app.postcss": "./src/lib/app.postcss",
|
|
93
|
-
"./theme.postcss": "./src/lib/theme.postcss"
|
|
76
|
+
}
|
|
94
77
|
},
|
|
95
78
|
"files": [
|
|
96
79
|
"dist",
|
|
@@ -105,5 +88,20 @@
|
|
|
105
88
|
"license": "MIT",
|
|
106
89
|
"svelte": "./dist/index.js",
|
|
107
90
|
"types": "./dist/index.d.ts",
|
|
108
|
-
"type": "module"
|
|
109
|
-
|
|
91
|
+
"type": "module",
|
|
92
|
+
"scripts": {
|
|
93
|
+
"dev": "vite dev",
|
|
94
|
+
"build": "vite build",
|
|
95
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
|
96
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
97
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
98
|
+
"lint": "eslint .",
|
|
99
|
+
"format": "prettier --plugin-search-dir . --write .",
|
|
100
|
+
"generate": "npx vite-node src/routes/blogs/blog_list_data_generator.ts && npx vite-node src/routes/toyay/toya_files_generator.ts && npm run generate-yarn",
|
|
101
|
+
"generate-yarn": "npx vite-node src/lib/scripts/pineapple_fiber/PineappleWeaver.ts",
|
|
102
|
+
"custom-check": "npx vite-node src/lib/scripts/util/ManualCheckRun.ts",
|
|
103
|
+
"preview": "pnpm run build && wrangler dev",
|
|
104
|
+
"deploy": "pnpm run build && wrangler deploy",
|
|
105
|
+
"cf-typegen": "wrangler types ./src/worker-configuration.d.ts"
|
|
106
|
+
}
|
|
107
|
+
}
|
package/dist/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
server-temp
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// eslint-disable
|
|
2
|
-
import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
|
|
3
|
-
|
|
4
|
-
const en_example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
|
|
5
|
-
return `Hello world ${i.username}`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const fr_example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
|
|
9
|
-
return `Bonjour ${i.username}`
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const tl_example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
|
|
13
|
-
return `Kamusta ${i.username}`
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
|
|
18
|
-
*
|
|
19
|
-
* - Changing this function will be over-written by the next build.
|
|
20
|
-
*
|
|
21
|
-
* - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
|
|
22
|
-
* use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
|
|
23
|
-
*
|
|
24
|
-
* @param {{ username: NonNullable<unknown> }} inputs
|
|
25
|
-
* @param {{ locale?: "en" | "fr" | "tl" }} options
|
|
26
|
-
* @returns {string}
|
|
27
|
-
*/
|
|
28
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
29
|
-
export const example_message = (inputs, options = {}) => {
|
|
30
|
-
if (experimentalMiddlewareLocaleSplitting && isServer === false) {
|
|
31
|
-
return /** @type {any} */ (globalThis).__paraglide_ssr.example_message(inputs)
|
|
32
|
-
}
|
|
33
|
-
const locale = options.locale ?? getLocale()
|
|
34
|
-
trackMessageCall("example_message", locale)
|
|
35
|
-
if (locale === "en") return en_example_message(inputs)
|
|
36
|
-
if (locale === "fr") return fr_example_message(inputs)
|
|
37
|
-
if (locale === "tl") return tl_example_message(inputs)
|
|
38
|
-
return "example_message"
|
|
39
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// eslint-disable
|
|
2
|
-
import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
|
|
3
|
-
|
|
4
|
-
const en_settings = /** @type {(inputs: {}) => string} */ () => {
|
|
5
|
-
return `Settings`
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const fr_settings = /** @type {(inputs: {}) => string} */ () => {
|
|
9
|
-
return `Paramètres`
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/** @type {(inputs: {}) => string} */
|
|
13
|
-
const tl_settings = en_settings;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
|
|
17
|
-
*
|
|
18
|
-
* - Changing this function will be over-written by the next build.
|
|
19
|
-
*
|
|
20
|
-
* - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
|
|
21
|
-
* use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
|
|
22
|
-
*
|
|
23
|
-
* @param {{}} inputs
|
|
24
|
-
* @param {{ locale?: "en" | "fr" | "tl" }} options
|
|
25
|
-
* @returns {string}
|
|
26
|
-
*/
|
|
27
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
28
|
-
export const settings = (inputs = {}, options = {}) => {
|
|
29
|
-
if (experimentalMiddlewareLocaleSplitting && isServer === false) {
|
|
30
|
-
return /** @type {any} */ (globalThis).__paraglide_ssr.settings(inputs)
|
|
31
|
-
}
|
|
32
|
-
const locale = options.locale ?? getLocale()
|
|
33
|
-
trackMessageCall("settings", locale)
|
|
34
|
-
if (locale === "en") return en_settings(inputs)
|
|
35
|
-
if (locale === "fr") return fr_settings(inputs)
|
|
36
|
-
if (locale === "tl") return tl_settings(inputs)
|
|
37
|
-
return "settings"
|
|
38
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {import("./runtime.js").Locale} locale
|
|
3
|
-
* @param {unknown} input
|
|
4
|
-
* @param {Intl.PluralRulesOptions} [options]
|
|
5
|
-
* @returns {string}
|
|
6
|
-
*/
|
|
7
|
-
export function plural(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.PluralRulesOptions): string;
|
|
8
|
-
/**
|
|
9
|
-
* @param {import("./runtime.js").Locale} locale
|
|
10
|
-
* @param {unknown} input
|
|
11
|
-
* @param {Intl.NumberFormatOptions} [options]
|
|
12
|
-
* @returns {string}
|
|
13
|
-
*/
|
|
14
|
-
export function number(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.NumberFormatOptions): string;
|
|
15
|
-
/**
|
|
16
|
-
* @param {import("./runtime.js").Locale} locale
|
|
17
|
-
* @param {unknown} input
|
|
18
|
-
* @param {Intl.DateTimeFormatOptions} [options]
|
|
19
|
-
* @returns {string}
|
|
20
|
-
*/
|
|
21
|
-
export function datetime(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.DateTimeFormatOptions): string;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// eslint-disable
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @param {import("./runtime.js").Locale} locale
|
|
5
|
-
* @param {unknown} input
|
|
6
|
-
* @param {Intl.PluralRulesOptions} [options]
|
|
7
|
-
* @returns {string}
|
|
8
|
-
*/
|
|
9
|
-
export function plural(locale, input, options) {
|
|
10
|
-
return new Intl.PluralRules(locale, options).select(Number(input))
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param {import("./runtime.js").Locale} locale
|
|
15
|
-
* @param {unknown} input
|
|
16
|
-
* @param {Intl.NumberFormatOptions} [options]
|
|
17
|
-
* @returns {string}
|
|
18
|
-
*/
|
|
19
|
-
export function number(locale, input, options) {
|
|
20
|
-
return new Intl.NumberFormat(locale, options).format(Number(input))
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @param {import("./runtime.js").Locale} locale
|
|
25
|
-
* @param {unknown} input
|
|
26
|
-
* @param {Intl.DateTimeFormatOptions} [options]
|
|
27
|
-
* @returns {string}
|
|
28
|
-
*/
|
|
29
|
-
export function datetime(locale, input, options) {
|
|
30
|
-
return new Intl.DateTimeFormat(locale, options).format(new Date(/** @type {string} */ (input)))
|
|
31
|
-
};
|