@turnipxenon/pineapple 3.0.0-alpha.8 → 3.0.0
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/blog_template/BlogTemplate.svelte +1 -1
- package/dist/components/blog_template/BlogTemplateInner.svelte +1 -1
- package/dist/components/blog_template/BlogTemplateInner.svelte.d.ts +1 -1
- package/dist/components/dialog_manager/DialogManager.d.ts +2 -1
- package/dist/components/dialog_manager/DialogMangerInit.d.ts +2 -15
- package/dist/components/dialog_manager/DialogMangerInit.js +8 -2
- package/dist/components/dialog_manager/IDialogManager.d.ts +39 -0
- package/dist/components/dialog_manager/IDialogManager.js +4 -0
- package/dist/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand.d.ts +3 -0
- package/dist/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand.js +15 -3
- package/dist/components/dialog_overlay/DialogOverlay.svelte +31 -22
- package/dist/components/navigation_component/NavigationComponent.svelte +2 -1
- package/dist/components/navigation_component/NavigationControl.svelte +1 -1
- package/dist/components/pineapple/PineappleBaseLayout.svelte +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -2
- package/dist/styles/turnip-theme.css +64 -64
- package/dist/ui/components/SocialSection.svelte +6 -2
- package/dist/ui/components/accordion/PinyaAccordion.svelte +21 -0
- package/dist/ui/components/accordion/PinyaAccordion.svelte.d.ts +8 -0
- package/dist/ui/components/accordion/PinyaAccordionItem.svelte +29 -0
- package/dist/ui/components/accordion/PinyaAccordionItem.svelte.d.ts +9 -0
- package/dist/ui/components/accordion/index.d.ts +2 -0
- package/dist/ui/components/accordion/index.js +2 -0
- package/dist/ui/components/index.d.ts +1 -0
- package/dist/ui/components/index.js +1 -0
- package/dist/ui/elements/{pinya-button/component.svelte → PinyaButton/PinyaButton.svelte} +4 -3
- package/dist/ui/elements/PinyaButton/PinyaButton.svelte.d.ts +4 -0
- package/dist/ui/elements/{pinya-button/props.d.ts → PinyaButton/PinyaButtonProps.d.ts} +1 -0
- package/dist/ui/elements/PinyaButton/index.d.ts +2 -0
- package/dist/ui/elements/PinyaButton/index.js +2 -0
- package/dist/ui/elements/Placeholder.svelte +17 -0
- package/dist/ui/elements/Placeholder.svelte.d.ts +7 -0
- package/dist/ui/elements/index.d.ts +1 -1
- package/dist/ui/elements/index.js +1 -1
- package/dist/ui/elements/pinya-combobox/PinyaComboboxProps.d.ts +1 -0
- package/dist/ui/modules/modals/general-settings/LanguagePicker.svelte +7 -2
- package/dist/ui/modules/projects/Hepcat.svelte +6 -4
- package/dist/ui/modules/projects/Hepcat.svelte.d.ts +1 -1
- package/dist/ui/modules/projects/Pengi.svelte +6 -4
- package/dist/ui/modules/projects/Pengi.svelte.d.ts +1 -1
- package/dist/ui/modules/projects/Soulwork.svelte +7 -5
- package/dist/ui/modules/projects/ThisWebpage.svelte +9 -8
- package/dist/ui/modules/projects/ThisWebpage.svelte.d.ts +1 -1
- package/dist/ui/modules/seaweed/ChumBucket.svelte +5 -4
- package/dist/ui/templates/{pinya-page-layout/component.svelte → PinyaPageLayout/PinyaPageLayout.svelte} +1 -1
- package/dist/ui/templates/PinyaPageLayout/PinyaPageLayout.svelte.d.ts +9 -0
- package/dist/ui/templates/PinyaPageLayout/index.d.ts +2 -0
- package/dist/ui/templates/PinyaPageLayout/index.js +2 -0
- package/dist/ui/templates/{pinya-page-layout → PinyaPageLayout}/runes.svelte.d.ts +1 -0
- package/dist/ui/templates/PinyaPageLayout/runes.svelte.js +4 -0
- package/dist/{template/seaweed → ui/templates/SeaweedLayout}/CreateUrlForm.svelte +2 -2
- package/dist/ui/templates/SeaweedLayout/EntryOrderConfig.svelte.d.ts +9 -0
- package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/ProjectGroupConfig.svelte.d.ts +1 -1
- package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/SeaweedLayout.svelte +7 -7
- package/dist/ui/templates/confirmation-modal/component.svelte +1 -1
- package/dist/ui/templates/index.d.ts +2 -2
- package/dist/ui/templates/index.js +2 -2
- package/package.json +3 -2
- package/dist/template/seaweed/ParseQueryTerms.d.ts +0 -1
- package/dist/template/seaweed/ParseQueryTerms.js +0 -23
- package/dist/template/seaweed/RunChaos.d.ts +0 -1
- package/dist/template/seaweed/RunChaos.js +0 -41
- package/dist/template/seaweed/SeaweedTemplate.svelte +0 -336
- package/dist/template/seaweed/SeaweedTemplate.svelte.d.ts +0 -32
- package/dist/template/seaweed/SeaweedTemplateData.d.ts +0 -30
- package/dist/template/seaweed/SeaweedTemplateData.js +0 -79
- package/dist/template/seaweed/entries/ChefWings.svelte +0 -45
- package/dist/template/seaweed/entries/ChefWings.svelte.d.ts +0 -7
- package/dist/template/seaweed/entries/CustomizedYarnspinner.svelte +0 -40
- package/dist/template/seaweed/entries/CustomizedYarnspinner.svelte.d.ts +0 -7
- package/dist/template/seaweed/entries/EntryProps.d.ts +0 -16
- package/dist/template/seaweed/entries/EntryProps.js +0 -5
- package/dist/template/seaweed/entries/Hepcat.svelte +0 -64
- package/dist/template/seaweed/entries/Hepcat.svelte.d.ts +0 -7
- package/dist/template/seaweed/entries/Pengi.svelte +0 -57
- package/dist/template/seaweed/entries/Pengi.svelte.d.ts +0 -7
- package/dist/template/seaweed/entries/Soulwork.svelte +0 -54
- package/dist/template/seaweed/entries/Soulwork.svelte.d.ts +0 -7
- package/dist/template/seaweed/entries/ThisWebpage.svelte +0 -55
- package/dist/template/seaweed/entries/ThisWebpage.svelte.d.ts +0 -7
- package/dist/template/seaweed/entries/WorkExperience.svelte +0 -130
- package/dist/template/seaweed/entries/WorkExperience.svelte.d.ts +0 -8
- package/dist/template/seaweed/entries/Workset.svelte +0 -57
- package/dist/template/seaweed/entries/Workset.svelte.d.ts +0 -7
- package/dist/template/seaweed/entry_order_config/EntryOrderConfig.d.ts +0 -1
- package/dist/template/seaweed/entry_order_config/EntryOrderConfig.js +0 -8
- package/dist/template/seaweed/entry_order_config/EntryOrderConfig.svelte +0 -297
- package/dist/template/seaweed/entry_order_config/EntryOrderConfig.svelte.d.ts +0 -12
- package/dist/template/seaweed/entry_order_config/entry-order-config.postcss +0 -35
- package/dist/template/seaweed/index.d.ts +0 -4
- package/dist/template/seaweed/index.js +0 -4
- package/dist/template/seaweed/seaweed.postcss +0 -125
- package/dist/ui/elements/pinya-button/component.svelte.d.ts +0 -4
- package/dist/ui/elements/pinya-button/index.d.ts +0 -2
- package/dist/ui/elements/pinya-button/index.js +0 -2
- package/dist/ui/templates/pinya-page-layout/component.svelte.d.ts +0 -9
- package/dist/ui/templates/pinya-page-layout/index.d.ts +0 -2
- package/dist/ui/templates/pinya-page-layout/index.js +0 -2
- package/dist/ui/templates/pinya-page-layout/runes.svelte.js +0 -3
- package/dist/ui/templates/seaweed-layout/EntryOrderConfig2.svelte.d.ts +0 -9
- /package/dist/ui/elements/{pinya-button/props.js → PinyaButton/PinyaButtonProps.js} +0 -0
- /package/dist/{template/seaweed → ui/templates/SeaweedLayout}/CreateUrlForm.svelte.d.ts +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/EntryGroup.svelte +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/EntryGroup.svelte.d.ts +0 -0
- /package/dist/ui/templates/{seaweed-layout/EntryOrderConfig2.svelte → SeaweedLayout/EntryOrderConfig.svelte} +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/ProjectComponentProps.d.ts +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/ProjectComponentProps.js +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/ProjectGroupConfig.svelte +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/SeaweedLayout.md +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/SeaweedLayout.svelte.d.ts +0 -0
- /package/dist/{template/seaweed → ui/templates/SeaweedLayout}/ToastSettings.d.ts +0 -0
- /package/dist/{template/seaweed → ui/templates/SeaweedLayout}/ToastSettings.js +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/index.d.ts +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/index.js +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/props.d.ts +0 -0
- /package/dist/ui/templates/{seaweed-layout → SeaweedLayout}/props.js +0 -0
|
@@ -6,6 +6,6 @@ export * from "./GeneralUIProps";
|
|
|
6
6
|
export * from "./OnBackground";
|
|
7
7
|
export * from "./pinya-card/index";
|
|
8
8
|
export * from "./WrapperProps";
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./PinyaButton/index";
|
|
10
10
|
export * from "./text-chip";
|
|
11
11
|
export * from "./CodeBlock";
|
|
@@ -6,6 +6,6 @@ export * from "./GeneralUIProps";
|
|
|
6
6
|
export * from "./OnBackground";
|
|
7
7
|
export * from "./pinya-card/index";
|
|
8
8
|
export * from "./WrapperProps";
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./PinyaButton/index";
|
|
10
10
|
export * from "./text-chip";
|
|
11
11
|
export * from "./CodeBlock";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getLocale, localizeHref } from "../../../../paraglide/runtime";
|
|
2
|
+
import { deLocalizeHref, getLocale, localizeHref } from "../../../../paraglide/runtime";
|
|
3
3
|
import PinyaCombobox from "../../../elements/pinya-combobox/PinyaCombobox.svelte";
|
|
4
|
+
import { appState } from "../../../templates/PinyaPageLayout/runes.svelte";
|
|
4
5
|
|
|
5
6
|
interface ComboxData {
|
|
6
7
|
label: string;
|
|
@@ -23,9 +24,12 @@
|
|
|
23
24
|
const data = comboboxData.find((d) => d.value === e.value[0]);
|
|
24
25
|
if (data) {
|
|
25
26
|
selectedCountry = [data.value];
|
|
26
|
-
|
|
27
|
+
const pathname = deLocalizeHref(location.href);
|
|
28
|
+
location.href = localizeHref(pathname, { locale: data.value });
|
|
27
29
|
}
|
|
28
30
|
};
|
|
31
|
+
|
|
32
|
+
let disabled = $derived(!appState.isLanguagePickerAvailable);
|
|
29
33
|
</script>
|
|
30
34
|
|
|
31
35
|
<PinyaCombobox
|
|
@@ -35,4 +39,5 @@
|
|
|
35
39
|
label="Select Language"
|
|
36
40
|
placeholder="Select Language"
|
|
37
41
|
{onValueChange}
|
|
42
|
+
{disabled}
|
|
38
43
|
/>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import HeaderHepCat from "../../../assets/temp/header-hep-cat.mp4";
|
|
3
3
|
import BitbucketIcon from "../../../assets/icons/bitbucket-icon.svg";
|
|
4
|
-
import type { ProjectComponentProps } from "../../templates/
|
|
5
|
-
import { FourPartCard } from "../../components/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
5
|
+
import { default as FourPartCard } from "../../components/FourPartCard.svelte";
|
|
6
|
+
import { default as ImageIcon } from "../../elements/ImageIcon.svelte";
|
|
7
|
+
import { default as PinyaButton } from "../../elements/PinyaButton/PinyaButton.svelte";
|
|
8
|
+
import { ButtonVariant } from "../../elements/PinyaButton/PinyaButtonProps";
|
|
9
|
+
import { ItchLogoHotLink } from "../../../consts";
|
|
8
10
|
|
|
9
11
|
const key = "Hepcat";
|
|
10
12
|
export { component, key };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectComponentProps } from "../../templates/
|
|
1
|
+
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
2
2
|
declare const key = "Hepcat";
|
|
3
3
|
export { component, key };
|
|
4
4
|
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import HeaderPengi from "../../../assets/temp/header-pengi.mp4";
|
|
3
3
|
import GithubIcon from "../../../assets/icons/github-mark.svg";
|
|
4
|
-
import type { ProjectComponentProps } from "../../templates/
|
|
5
|
-
import { FourPartCard } from "../../components/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
5
|
+
import { default as FourPartCard } from "../../components/FourPartCard.svelte";
|
|
6
|
+
import { default as ImageIcon } from "../../elements/ImageIcon.svelte";
|
|
7
|
+
import { default as PinyaButton } from "../../elements/PinyaButton/PinyaButton.svelte";
|
|
8
|
+
import { ButtonVariant } from "../../elements/PinyaButton/PinyaButtonProps";
|
|
9
|
+
import { ItchLogoHotLink } from "../../../consts";
|
|
8
10
|
|
|
9
11
|
const key = "Pengi";
|
|
10
12
|
export { component, key };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectComponentProps } from "../../templates/
|
|
1
|
+
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
2
2
|
declare const key = "Pengi";
|
|
3
3
|
export { component, key };
|
|
4
4
|
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import HeaderSoulwork from
|
|
3
|
-
import GithubIcon from
|
|
2
|
+
import HeaderSoulwork from "../../../assets/temp/header-soulwork.mp4";
|
|
3
|
+
import GithubIcon from "../../../assets/icons/github-mark.svg";
|
|
4
4
|
import type { ProjectComponentProps } from "../../templates/index";
|
|
5
|
-
import { FourPartCard } from "../../components/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { default as FourPartCard } from "../../components/FourPartCard.svelte";
|
|
6
|
+
import { default as ImageIcon } from "../../elements/ImageIcon.svelte";
|
|
7
|
+
import { default as PinyaButton } from "../../elements/PinyaButton/PinyaButton.svelte";
|
|
8
|
+
import { ButtonVariant } from "../../elements/PinyaButton/PinyaButtonProps";
|
|
9
|
+
import { ItchLogoHotLink } from "../../../consts";
|
|
8
10
|
|
|
9
11
|
const key = "Soulwork";
|
|
10
12
|
export { component, key };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import GithubIcon from
|
|
3
|
-
import ThisWebsiteFootage from
|
|
4
|
-
import type { ProjectComponentProps } from
|
|
2
|
+
import GithubIcon from "../../../assets/icons/github-mark.svg";
|
|
3
|
+
import ThisWebsiteFootage from "../../../assets/others/seaweed-showcase.mp4";
|
|
4
|
+
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
5
|
+
import { default as FourPartCard } from "../../components/FourPartCard.svelte";
|
|
6
|
+
import { default as ImageIcon } from "../../elements/ImageIcon.svelte";
|
|
7
|
+
import { default as PinyaButton } from "../../elements/PinyaButton/PinyaButton.svelte";
|
|
8
|
+
import { ButtonVariant } from "../../elements/PinyaButton/PinyaButtonProps";
|
|
9
|
+
import { default as TextChip } from "../../elements/text-chip/TextChip.svelte";
|
|
5
10
|
|
|
6
|
-
const key =
|
|
11
|
+
const key = "This Webpage";
|
|
7
12
|
export { component, key };
|
|
8
13
|
</script>
|
|
9
|
-
<script>
|
|
10
|
-
import { FourPartCard } from "../../components/index";
|
|
11
|
-
import { ButtonVariant, ImageIcon, PinyaButton, TextChip } from "../../elements/index.js";
|
|
12
|
-
</script>
|
|
13
14
|
|
|
14
15
|
{#snippet component(props: ProjectComponentProps)}
|
|
15
16
|
<FourPartCard>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectComponentProps } from
|
|
1
|
+
import type { ProjectComponentProps } from "../../templates/SeaweedLayout/ProjectComponentProps";
|
|
2
2
|
declare const key = "This Webpage";
|
|
3
3
|
export { component, key };
|
|
4
4
|
declare const component: (props: ProjectComponentProps) => ReturnType<import("svelte").Snippet>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type PageMeta } from "
|
|
2
|
+
import { type PageMeta } from "../../../components/navigation_component/index";
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
|
+
import Placeholder from "../../elements/Placeholder.svelte";
|
|
4
5
|
|
|
5
6
|
let hasTriedGettingChumBucket = $state(false);
|
|
6
7
|
let pageMetaList: PageMeta[] = $state([]);
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
|
|
28
29
|
<div class="chum-bucket-grid">
|
|
29
30
|
{#if hasTriedGettingChumBucket}
|
|
30
|
-
{#each pageMetaList as pageMeta}
|
|
31
|
+
{#each pageMetaList as pageMeta (pageMeta.title)}
|
|
31
32
|
<div class="chum-bucket-item">
|
|
32
33
|
{#if pageMeta.imageUrl}
|
|
33
34
|
<img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
|
|
@@ -48,8 +49,8 @@
|
|
|
48
49
|
</div>
|
|
49
50
|
{/each}
|
|
50
51
|
{:else}
|
|
51
|
-
{#each { length: 10 } as _}
|
|
52
|
-
<
|
|
52
|
+
{#each { length: 10 } as _, idx (idx)}
|
|
53
|
+
<Placeholder classes="mb-2" />
|
|
53
54
|
{/each}
|
|
54
55
|
{/if}
|
|
55
56
|
</div>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { modals } from "svelte-modals";
|
|
9
9
|
import GeneralSettingsModal from "../../modules/modals/general-settings/GeneralSettingsModal.svelte";
|
|
10
10
|
import { localizeHref } from "../../../paraglide/runtime";
|
|
11
|
-
import { appState } from "
|
|
11
|
+
import { appState } from "./runes.svelte";
|
|
12
12
|
|
|
13
13
|
let {
|
|
14
14
|
children,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
children: Snippet;
|
|
4
|
+
appBarLead?: Snippet;
|
|
5
|
+
footer?: Snippet;
|
|
6
|
+
};
|
|
7
|
+
declare const PinyaPageLayout: import("svelte").Component<$$ComponentProps, {}, "appBarLead">;
|
|
8
|
+
type PinyaPageLayout = ReturnType<typeof PinyaPageLayout>;
|
|
9
|
+
export default PinyaPageLayout;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type CreateUrlRequest, CreateUrlResult, jsonToCreateUrlResponse } from "
|
|
2
|
+
import { type CreateUrlRequest, CreateUrlResult, jsonToCreateUrlResponse } from "../../../types/api/CreateUrl";
|
|
3
3
|
import type { ToastContext } from "@skeletonlabs/skeleton-svelte";
|
|
4
4
|
import { getContext } from "svelte";
|
|
5
5
|
import type { ToastSettings } from "./ToastSettings";
|
|
6
|
-
import { PinyaButton } from "../../
|
|
6
|
+
import { PinyaButton } from "../../elements/index";
|
|
7
7
|
|
|
8
8
|
export const toast: ToastContext = getContext("toast");
|
|
9
9
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ProjectGroup, SnippetMeta } from "../index";
|
|
2
|
+
interface Props {
|
|
3
|
+
layout: ProjectGroup[];
|
|
4
|
+
orderUrl: string;
|
|
5
|
+
allEntries: SnippetMeta[];
|
|
6
|
+
}
|
|
7
|
+
declare const EntryOrderConfig: import("svelte").Component<Props, {}, "layout" | "orderUrl">;
|
|
8
|
+
type EntryOrderConfig = ReturnType<typeof EntryOrderConfig>;
|
|
9
|
+
export default EntryOrderConfig;
|
|
@@ -9,6 +9,6 @@ interface Props {
|
|
|
9
9
|
}
|
|
10
10
|
declare const ProjectGroupConfig: import("svelte").Component<Props, {
|
|
11
11
|
toast: ToastContext;
|
|
12
|
-
}, "
|
|
12
|
+
}, "layout" | "orderUrl">;
|
|
13
13
|
type ProjectGroupConfig = ReturnType<typeof ProjectGroupConfig>;
|
|
14
14
|
export default ProjectGroupConfig;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { fly } from "svelte/transition";
|
|
3
3
|
import type { ProjectGroup, SeaweedLayoutProps } from "./props";
|
|
4
4
|
import ChumBucket from "../../modules/seaweed/ChumBucket.svelte";
|
|
5
|
-
import { PinyaPageLayout } from "../
|
|
6
|
-
import { SocialSection } from "../../components/
|
|
5
|
+
import { default as PinyaPageLayout } from "../PinyaPageLayout/PinyaPageLayout.svelte";
|
|
6
|
+
import { default as SocialSection } from "../../components/SocialSection.svelte";
|
|
7
7
|
import EntryGroup from "./EntryGroup.svelte";
|
|
8
8
|
import PineappleSwitch from "../../elements/PineappleSwitch.svelte";
|
|
9
9
|
import { CodeBlock, TextChip } from "../../elements/index";
|
|
10
10
|
import { SvelteMap } from "svelte/reactivity";
|
|
11
|
-
import
|
|
12
|
-
import CreateUrlForm from "
|
|
11
|
+
import EntryOrderConfig from "./EntryOrderConfig.svelte";
|
|
12
|
+
import CreateUrlForm from "./CreateUrlForm.svelte";
|
|
13
13
|
import { onMount } from "svelte";
|
|
14
14
|
import { page } from "$app/state";
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}: SeaweedLayoutProps = $props();
|
|
26
26
|
|
|
27
27
|
let actualLayout = $state(layout);
|
|
28
|
-
let isAdvanceSettingOn = $state(
|
|
28
|
+
let isAdvanceSettingOn = $state(false);
|
|
29
29
|
let orderUrl = $state("");
|
|
30
30
|
|
|
31
31
|
let queryStates = new SvelteMap<string, boolean>(queryTerms.map(term => [term, true]));
|
|
@@ -223,11 +223,11 @@
|
|
|
223
223
|
{/each}
|
|
224
224
|
</div>
|
|
225
225
|
|
|
226
|
-
<
|
|
226
|
+
<EntryOrderConfig
|
|
227
227
|
bind:layout={actualLayout}
|
|
228
228
|
bind:orderUrl={orderUrl}
|
|
229
229
|
allEntries={entryList}
|
|
230
|
-
></
|
|
230
|
+
></EntryOrderConfig>
|
|
231
231
|
|
|
232
232
|
<br>
|
|
233
233
|
<p>Copy the url below and open a new page with it</p>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { ConfirmationModalProps } from './props';
|
|
3
|
-
import { ModalBase } from '../../components';
|
|
3
|
+
import { default as ModalBase } from '../../components/ModalBase.svelte';
|
|
4
4
|
import { ColorScheme, PinyaButton } from '../../elements';
|
|
5
5
|
|
|
6
6
|
let {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turnipxenon/pineapple",
|
|
3
3
|
"description": "personal package for base styling for other personal projects",
|
|
4
|
-
"version": "3.0.0
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "vite build && yarn package",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@eslint/compat": "^1.2.5",
|
|
22
22
|
"@eslint/js": "^9.18.0",
|
|
23
23
|
"@sveltejs/adapter-auto": "^4.0.0",
|
|
24
|
-
"@sveltejs/kit": "^2.5.27",
|
|
25
24
|
"@sveltejs/package": "^2.3.7",
|
|
26
25
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
27
26
|
"eslint": "^9.18.0",
|
|
28
27
|
"eslint-config-prettier": "^10.0.1",
|
|
29
28
|
"eslint-plugin-svelte": "^3.0.0",
|
|
30
29
|
"globals": "^16.0.0",
|
|
30
|
+
"madge": "^8.0.0",
|
|
31
31
|
"prettier": "^3.4.2",
|
|
32
32
|
"prettier-plugin-svelte": "^3.3.3",
|
|
33
33
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@prisma/client": "^5.12.1",
|
|
45
45
|
"@skeletonlabs/skeleton": "^3.1.0",
|
|
46
46
|
"@skeletonlabs/skeleton-svelte": "^1.0.0",
|
|
47
|
+
"@sveltejs/kit": "^2.5.27",
|
|
47
48
|
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
48
49
|
"@tailwindcss/vite": "^4.0.14",
|
|
49
50
|
"@types/htmlparser2": "^3.10.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const parseQueryTerms: (node: Element, querySet: Set<string>) => void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const parseQueryTerms = (node, querySet) => {
|
|
2
|
-
// change all text content to gibberish
|
|
3
|
-
for (const child of Array.from(node.children)) {
|
|
4
|
-
if (child.nodeType === Node.ELEMENT_NODE) {
|
|
5
|
-
parseQueryTerms(child, querySet);
|
|
6
|
-
// todo: if it's a span and it wraps a word, and qt class then we count that as query
|
|
7
|
-
// for (const childOfChild of child.childNodes) {
|
|
8
|
-
// if (childOfChild.nodeType === Node.TEXT_NODE && childOfChild.textContent?.trim()) {
|
|
9
|
-
// // todo analyze textcontent
|
|
10
|
-
// }
|
|
11
|
-
// }
|
|
12
|
-
// Warning: below is not redundant and is a catch-all
|
|
13
|
-
// Long-term solution: figure out the correct typing
|
|
14
|
-
if ((typeof child.className === "string") && child.className?.includes("qt-")) {
|
|
15
|
-
child.className.split(" ").forEach(c => {
|
|
16
|
-
if (c.startsWith("qt-")) {
|
|
17
|
-
querySet.add(c);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const runChaos: (node: Element) => void;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const chaoticWordBank = ["niko", "toba", "seal", "aquarium", "ojisan", "baikal"];
|
|
2
|
-
export const runChaos = (node) => {
|
|
3
|
-
// change all text content to gibberish
|
|
4
|
-
for (const child of Array.from(node.children)) {
|
|
5
|
-
if (child.nodeType === Node.ELEMENT_NODE) {
|
|
6
|
-
runChaos(child);
|
|
7
|
-
for (const childOfChild of child.childNodes) {
|
|
8
|
-
if (childOfChild.nodeType === Node.TEXT_NODE && childOfChild.textContent?.trim()) {
|
|
9
|
-
const max = childOfChild.textContent.length;
|
|
10
|
-
childOfChild.textContent = "";
|
|
11
|
-
while (childOfChild.textContent.length < max) {
|
|
12
|
-
childOfChild.textContent += (chaoticWordBank[Math.floor(Math.random() * chaoticWordBank.length)] + " ");
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
// change all links to crouton
|
|
17
|
-
if (child.hasAttribute("href")) {
|
|
18
|
-
child.setAttribute("href", "https://crouton.net/");
|
|
19
|
-
}
|
|
20
|
-
// change all images to niko if aria != hidden?
|
|
21
|
-
if (child.hasAttribute("src") && !child.hasAttribute("aria-hidden")) {
|
|
22
|
-
if (child.hasAttribute("alt")) {
|
|
23
|
-
child.setAttribute("src", "https://p.potaufeu.asahi.com/a2b9-p/picture/21583312/5c3310aec77068e24844c663aa62b37c.jpg");
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
child.setAttribute("src", "https://video.twimg.com/ext_tw_video/1318728494256410624/pu/vid/640x360/TMklz6hiTkQu3xhn.mp4");
|
|
27
|
-
child.setAttribute("muted", "true");
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
if (child.tagName.trim() === "VIDEO") {
|
|
31
|
-
child.setAttribute("src", "https://video.twimg.com/ext_tw_video/1318728494256410624/pu/vid/640x360/TMklz6hiTkQu3xhn.mp4");
|
|
32
|
-
child.setAttribute("muted", "true");
|
|
33
|
-
}
|
|
34
|
-
// change all button events
|
|
35
|
-
if (child.tagName.trim() === "BUTTON") {
|
|
36
|
-
// remove anon function: https://stackoverflow.com/a/41343451/17836168
|
|
37
|
-
child.setAttribute("disabled", "true");
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|