@turnipxenon/pineapple 4.4.2 → 4.5.0-alpha.2
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/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/package.json +24 -26
- 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
|
@@ -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;
|
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.2",
|
|
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
|
-
"@inlang/paraglide-js": "2.0.
|
|
34
|
+
"@inlang/paraglide-js": "2.0.7",
|
|
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
|
-
};
|