@turnipxenon/pineapple 5.3.9 → 5.3.11
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.d.ts.map +1 -1
- package/dist/components/dialog_manager/DialogManager.js +5 -8
- package/dist/components/dialog_manager/DialogManagerStore.d.ts +1 -1
- package/dist/components/dialog_manager/DialogProcessor.d.ts.map +1 -1
- package/dist/components/dialog_manager/DialogProcessor.js +2 -0
- package/dist/components/dialog_manager/IDialogManager.d.ts +1 -1
- package/dist/components/dialog_manager/IDialogManager.d.ts.map +1 -1
- package/dist/components/dialog_manager/behavior_tree/core/SelectorNode.d.ts.map +1 -1
- package/dist/components/dialog_manager/behavior_tree/expression/ExpressionEvaluator.d.ts.map +1 -1
- package/dist/components/dialog_manager/behavior_tree/expression/ExpressionEvaluator.js +1 -1
- package/dist/components/dialog_manager/behavior_tree/line_processors/commands/ForceVisitCommand.d.ts +10 -0
- package/dist/components/dialog_manager/behavior_tree/line_processors/commands/ForceVisitCommand.d.ts.map +1 -0
- package/dist/components/dialog_manager/behavior_tree/line_processors/commands/ForceVisitCommand.js +29 -0
- package/dist/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand.d.ts.map +1 -1
- package/dist/components/reveal-info/RevealInfo.svelte +17 -18
- package/dist/components/reveal-info/RevealInfo.svelte.d.ts +2 -2
- package/dist/components/reveal-info/RevealInfo.svelte.d.ts.map +1 -1
- package/dist/components/reveal-info/RevealInfoRune.svelte.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/modules/overrideable_meta/OverridableMeta.svelte +1 -1
- package/dist/modules/parsnip/ParsnipBlockChildren.svelte +66 -55
- package/dist/modules/parsnip/ParsnipBlockChildren.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/ParsnipEmbedWikilink.svelte +30 -30
- package/dist/modules/parsnip/ParsnipEmbedWikilink.svelte.d.ts +1 -1
- package/dist/modules/parsnip/ParsnipEmbedWikilink.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/ParsnipHeading.svelte +6 -6
- package/dist/modules/parsnip/ParsnipList.svelte +24 -24
- package/dist/modules/parsnip/ParsnipOverall.d.ts.map +1 -1
- package/dist/modules/parsnip/ParsnipPhrasingChildren.svelte +15 -17
- package/dist/modules/parsnip/ParsnipPhrasingChildren.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/ParsnipWikilink.svelte +22 -20
- package/dist/modules/parsnip/ParsnipWikilink.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/external-images/ParsnipImage.svelte +133 -114
- package/dist/modules/parsnip/external-images/ParsnipImage.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/external-images/ParsnipImageCollection.svelte +64 -63
- package/dist/modules/parsnip/external-images/ParsnipImageCollection.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/external-images/externalImages.remote.d.ts.map +1 -1
- package/dist/modules/parsnip/external-images/externalImages.remote.js +17 -13
- package/dist/modules/parsnip/route-util/ParsnipBlog.svelte +1 -2
- package/dist/modules/parsnip/route-util/ParsnipBlog.svelte.d.ts.map +1 -1
- package/dist/modules/parsnip/route-util/getSlugEntries.js +1 -1
- package/dist/modules/parsnip/route-util/menuPageServerLoad.js +4 -4
- package/dist/modules/parsnip/route-util/slugPageServerLoad.d.ts.map +1 -1
- package/dist/modules/parsnip/route-util/slugPageServerLoad.js +15 -15
- package/dist/scripts/pineapple_fiber/PineappleFiberParser.d.ts.map +1 -1
- package/dist/scripts/pineapple_fiber/PineappleFiberParser.js +5 -3
- package/dist/styles/app.css +87 -84
- package/dist/styles/color-tokens.css +20 -20
- package/dist/styles/surface-colors.scss +28 -29
- package/dist/styles/tailwind.css +3196 -3111
- package/dist/styles/turnip-theme.css +262 -245
- package/dist/svelteIndex.svelte.d.ts.map +1 -1
- package/dist/svelteIndex.svelte.js +1 -7
- package/dist/test/DialogTestUtility.d.ts.map +1 -1
- package/dist/test/DialogTestUtility.js +4 -4
- package/dist/theme.css +109 -109
- package/dist/types/pineapple_fiber/DialogVariableStore.d.ts.map +1 -1
- package/dist/types/pineapple_fiber/DialogVariableStore.js +0 -1
- package/dist/ui/components/FourPartCard.svelte +20 -28
- package/dist/ui/components/FourPartCard.svelte.d.ts.map +1 -1
- package/dist/ui/components/MeltToaster/MeltToaster.svelte +6 -5
- package/dist/ui/components/MeltToaster/MeltToaster.svelte.d.ts.map +1 -1
- package/dist/ui/components/ModalBase.svelte +39 -43
- package/dist/ui/components/ModalBase.svelte.d.ts +2 -2
- package/dist/ui/components/ModalBase.svelte.d.ts.map +1 -1
- package/dist/ui/components/NestedNavigation.svelte +22 -19
- package/dist/ui/components/NestedNavigation.svelte.d.ts +1 -1
- package/dist/ui/components/NestedNavigation.svelte.d.ts.map +1 -1
- package/dist/ui/components/SocialSection.svelte +30 -25
- package/dist/ui/components/SocialSection.svelte.d.ts.map +1 -1
- package/dist/ui/components/SortDropdown.svelte +8 -12
- package/dist/ui/components/SortDropdown.svelte.d.ts.map +1 -1
- package/dist/ui/components/TagFilter.svelte +9 -9
- package/dist/ui/components/accordion/PinyaAccordion.svelte +45 -43
- package/dist/ui/components/accordion/PinyaAccordion.svelte.d.ts.map +1 -1
- package/dist/ui/components/accordion/PinyaAccordionItem.svelte +19 -10
- package/dist/ui/components/accordion/PinyaAccordionItem.svelte.d.ts.map +1 -1
- package/dist/ui/components/project-date-badge/ProjectDateBadge.svelte +88 -80
- package/dist/ui/components/project-date-badge/ProjectDateBadge.svelte.d.ts.map +1 -1
- package/dist/ui/components/randomized-background/RandomizedBackground.svelte +37 -33
- package/dist/ui/components/randomized-background/RandomizedBackground.svelte.d.ts.map +1 -1
- package/dist/ui/components/randomized-background/RandomizedImage.svelte +25 -21
- package/dist/ui/components/randomized-background/RandomizedImage.svelte.d.ts.map +1 -1
- package/dist/ui/components/randomized-background/getSocialSection.remote.js +1 -1
- package/dist/ui/elements/CodeBlock/CodeBlock.svelte +163 -165
- package/dist/ui/elements/CodeBlock/CodeBlock.svelte.d.ts.map +1 -1
- package/dist/ui/elements/CodeBlock/CodeBlockProps.d.ts +1 -1
- package/dist/ui/elements/CodeBlock/CodeBlockProps.d.ts.map +1 -1
- package/dist/ui/elements/ColorScheme.d.ts.map +1 -1
- package/dist/ui/elements/ElementVisibilityDetector.svelte +1 -4
- package/dist/ui/elements/ElementVisibilityDetector.svelte.d.ts.map +1 -1
- package/dist/ui/elements/GeneralUIProps.d.ts +2 -2
- package/dist/ui/elements/ImageIcon.svelte +27 -30
- package/dist/ui/elements/ImageIcon.svelte.d.ts +1 -1
- package/dist/ui/elements/ImageIcon.svelte.d.ts.map +1 -1
- package/dist/ui/elements/PineappleSwitch.svelte +53 -53
- package/dist/ui/elements/PineappleSwitch.svelte.d.ts +1 -1
- package/dist/ui/elements/PineappleSwitch.svelte.d.ts.map +1 -1
- package/dist/ui/elements/PinyaAnchorButton/PinyaAnchorButton.svelte +4 -5
- package/dist/ui/elements/PinyaAnchorButton/PinyaAnchorButton.svelte.d.ts.map +1 -1
- package/dist/ui/elements/PinyaAnchorButton/PinyaAnchorButtonProps.d.ts.map +1 -1
- package/dist/ui/elements/PinyaButton/PinyaButton.svelte +4 -5
- package/dist/ui/elements/PinyaButton/PinyaButton.svelte.d.ts.map +1 -1
- package/dist/ui/elements/PinyaButton/PinyaButtonProps.d.ts.map +1 -1
- package/dist/ui/elements/PinyaButton/index.d.ts +2 -2
- package/dist/ui/elements/PinyaButton/index.js +2 -2
- package/dist/ui/elements/PinyaButtonCommon/ButtonVariant.d.ts.map +1 -1
- package/dist/ui/elements/PinyaButtonCommon/PinyaButtonCommonProps.d.ts.map +1 -1
- package/dist/ui/elements/PinyaButtonCommon/createButtonClass.d.ts.map +1 -1
- package/dist/ui/elements/PinyaButtonCommon/createButtonClass.js +1 -1
- package/dist/ui/elements/PinyaCard/PinyaCard.svelte +3 -10
- package/dist/ui/elements/PinyaCard/PinyaCardProps.d.ts.map +1 -1
- package/dist/ui/elements/Placeholder.svelte +3 -3
- package/dist/ui/elements/TextChip/TextChip.svelte +8 -6
- package/dist/ui/elements/TextLink.svelte +46 -48
- package/dist/ui/elements/TextLink.svelte.d.ts.map +1 -1
- package/dist/ui/elements/WrapperProps.d.ts +1 -1
- package/dist/ui/elements/index.d.ts.map +1 -1
- package/dist/ui/elements/pinya-combobox/PinyaCombobox.svelte +80 -55
- package/dist/ui/elements/pinya-combobox/PinyaCombobox.svelte.d.ts.map +1 -1
- package/dist/ui/elements/pinya-combobox/PinyaComboboxProps.d.ts.map +1 -1
- package/dist/ui/modules/NavigationMenu/LdSchema.d.ts.map +1 -1
- package/dist/ui/modules/NavigationMenu/LdSchema.js +4 -2
- package/dist/ui/modules/NavigationMenu/NavigationControl.svelte +18 -13
- package/dist/ui/modules/NavigationMenu/NavigationControl.svelte.d.ts.map +1 -1
- package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte +234 -212
- package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte.d.ts.map +1 -1
- package/dist/ui/modules/NavigationMenu/PageMeta.d.ts +1 -1
- package/dist/ui/modules/NavigationMenu/PageMeta.d.ts.map +1 -1
- package/dist/ui/modules/NavigationMenu/PageMeta.js +15 -11
- package/dist/ui/modules/experience/ExampleJob1.svelte +26 -28
- package/dist/ui/modules/experience/ExampleJob1.svelte.d.ts.map +1 -1
- package/dist/ui/modules/experience/ExampleJob2.svelte +4 -3
- package/dist/ui/modules/experience/ExampleJob2.svelte.d.ts.map +1 -1
- package/dist/ui/modules/experience/index.d.ts +2 -2
- package/dist/ui/modules/experience/index.js +2 -2
- package/dist/ui/modules/modals/general-settings/GeneralSettingsModal.svelte +9 -7
- package/dist/ui/modules/modals/general-settings/GeneralSettingsModal.svelte.d.ts.map +1 -1
- package/dist/ui/modules/modals/general-settings/LanguagePicker.svelte +1 -1
- package/dist/ui/modules/modals/general-settings/NavigationModal.svelte +11 -8
- package/dist/ui/modules/modals/general-settings/NavigationModal.svelte.d.ts.map +1 -1
- package/dist/ui/modules/projects/Hepcat.svelte +31 -29
- package/dist/ui/modules/projects/Hepcat.svelte.d.ts.map +1 -1
- package/dist/ui/modules/projects/ObsidianPublisher.svelte +16 -11
- package/dist/ui/modules/projects/ObsidianPublisher.svelte.d.ts.map +1 -1
- package/dist/ui/modules/projects/Pengi.svelte +21 -17
- package/dist/ui/modules/projects/Pengi.svelte.d.ts.map +1 -1
- package/dist/ui/modules/projects/Soulwork.svelte +18 -16
- package/dist/ui/modules/projects/Soulwork.svelte.d.ts.map +1 -1
- package/dist/ui/modules/projects/ThisWebpage.svelte +29 -19
- package/dist/ui/modules/projects/ThisWebpage.svelte.d.ts.map +1 -1
- package/dist/ui/modules/universal-overlay/DialogPanel.svelte +40 -38
- package/dist/ui/modules/universal-overlay/DialogPanel.svelte.d.ts.map +1 -1
- package/dist/ui/modules/universal-overlay/SettingsPanel.svelte +1 -2
- package/dist/ui/modules/universal-overlay/SettingsPanel.svelte.d.ts.map +1 -1
- package/dist/ui/modules/universal-overlay/UniversalOverlay.svelte +12 -6
- package/dist/ui/modules/universal-overlay/UniversalOverlay.svelte.d.ts.map +1 -1
- package/dist/ui/templates/PinyaPageLayout/PinyaPageLayout.svelte +99 -94
- package/dist/ui/templates/PinyaPageLayout/PinyaPageLayout.svelte.d.ts.map +1 -1
- package/dist/ui/templates/PinyaPageLayout/pinyaPageLayoutRunes.svelte.d.ts +1 -1
- package/dist/ui/templates/PinyaPageLayout/pinyaPageLayoutRunes.svelte.js +2 -2
- package/dist/ui/templates/SeaweedLayout/ChumBucket.svelte +51 -43
- package/dist/ui/templates/SeaweedLayout/ChumBucket.svelte.d.ts.map +1 -1
- package/dist/ui/templates/SeaweedLayout/CreateUrlForm.svelte +45 -32
- package/dist/ui/templates/SeaweedLayout/CreateUrlForm.svelte.d.ts.map +1 -1
- package/dist/ui/templates/SeaweedLayout/EntryGroup.svelte +106 -102
- package/dist/ui/templates/SeaweedLayout/EntryGroup.svelte.d.ts.map +1 -1
- package/dist/ui/templates/SeaweedLayout/EntryOrderConfig.svelte +11 -19
- package/dist/ui/templates/SeaweedLayout/EntryOrderConfig.svelte.d.ts.map +1 -1
- package/dist/ui/templates/SeaweedLayout/ProjectComponentProps.d.ts +1 -1
- package/dist/ui/templates/SeaweedLayout/ProjectGroupConfig.svelte +139 -121
- package/dist/ui/templates/SeaweedLayout/ProjectGroupConfig.svelte.d.ts.map +1 -1
- package/dist/ui/templates/SeaweedLayout/SeaweedLayout.svelte +139 -148
- package/dist/ui/templates/SeaweedLayout/index.d.ts.map +1 -1
- package/dist/ui/templates/SeaweedLayout/props.js +1 -1
- package/dist/ui/templates/blog_template/BlogTemplate.svelte +11 -11
- package/dist/ui/templates/blog_template/BlogTemplateInner.svelte +58 -56
- package/dist/ui/templates/blog_template/BlogTemplateInner.svelte.d.ts.map +1 -1
- package/dist/ui/templates/blog_template/blog-template.css +1 -1
- package/dist/ui/templates/confirmation-modal/component.svelte +12 -17
- package/dist/ui/templates/confirmation-modal/component.svelte.d.ts +1 -1
- package/dist/ui/templates/confirmation-modal/component.svelte.d.ts.map +1 -1
- package/dist/ui/templates/confirmation-modal/props.d.ts +2 -2
- package/dist/ui/templates/confirmation-modal/props.d.ts.map +1 -1
- package/dist/ui/templates/pinya-base/PinyaBase.svelte +57 -47
- package/dist/ui/templates/pinya-base/PinyaBase.svelte.d.ts.map +1 -1
- package/dist/ui/templates/pinya-base/menuPageServerLoadRemote.remote.svelte +1 -1
- package/dist/ui/templates/pinya-base/pinyaBaseRunes.svelte.d.ts.map +1 -1
- package/dist/util/context/PineappleBaseContext.svelte +1 -1
- package/dist/util/context/pineappleBaseContextDefinitions.svelte.d.ts.map +1 -1
- package/dist/util/env-getter.d.ts.map +1 -1
- package/dist/util/env-getter.js +3 -3
- package/dist/util/getCommitDate.d.ts.map +1 -1
- package/dist/util/getCommitDate.js +3 -1
- package/dist/util/getCommitDate.remote.d.ts.map +1 -1
- package/dist/util/getCommitDate.remote.js +3 -1
- package/dist/util/getParsnipData.remote.d.ts +16 -11
- package/dist/util/localStore.svelte.d.ts.map +1 -1
- package/dist/util/localStore.svelte.js +5 -5
- package/dist/util/util.d.ts.map +1 -1
- package/dist/util/util.js +5 -5
- package/package.json +5 -5
- package/src/lib/styles/app.css +87 -84
- package/src/lib/theme.css +109 -109
- package/dist/scripts/pineapple_fiber/TutorialBroken.yarn +0 -143
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
import RevealInfo from "../../components/reveal-info/RevealInfo.svelte";
|
|
9
9
|
import type { RevealInfoRecord } from "../../components/reveal-info/RevealInfoCollection";
|
|
10
10
|
import { ItchLogoHotLink } from "../../consts";
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
getDefaultEmail,
|
|
13
|
+
getDefaultLinkedin
|
|
14
|
+
} from "./socialSectionRemote.remote";
|
|
12
15
|
import ImageIcon from "../elements/ImageIcon.svelte";
|
|
13
16
|
import { PinyaButton } from "../elements/PinyaButton/index";
|
|
14
17
|
import { ButtonVariant } from "../elements/PinyaButtonCommon/ButtonVariant";
|
|
@@ -16,11 +19,11 @@
|
|
|
16
19
|
import { scale } from "svelte/transition";
|
|
17
20
|
|
|
18
21
|
type SocialSectionProps = {
|
|
19
|
-
isSmallVersion?: boolean
|
|
20
|
-
emailRemoteQuery?: RevealInfoRecord
|
|
21
|
-
linkedinRemoteQuery?: RevealInfoRecord
|
|
22
|
-
isSlot?: boolean
|
|
23
|
-
allowLinkedIn?: boolean
|
|
22
|
+
isSmallVersion?: boolean;
|
|
23
|
+
emailRemoteQuery?: RevealInfoRecord;
|
|
24
|
+
linkedinRemoteQuery?: RevealInfoRecord;
|
|
25
|
+
isSlot?: boolean;
|
|
26
|
+
allowLinkedIn?: boolean;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
let {
|
|
@@ -57,13 +60,14 @@
|
|
|
57
60
|
});
|
|
58
61
|
</script>
|
|
59
62
|
|
|
60
|
-
<div class="socials" class:isSmall={isSmallVersion}
|
|
63
|
+
<div class="socials" class:isSmall={isSmallVersion} {style} data-nosnippet>
|
|
61
64
|
<PinyaButton
|
|
62
65
|
buttonVariant={ButtonVariant.SmallIcon}
|
|
63
66
|
title="https://github.com/TurnipXenon"
|
|
64
|
-
onclick={() => window.open("https://github.com/TurnipXenon")}
|
|
67
|
+
onclick={() => window.open("https://github.com/TurnipXenon")}
|
|
68
|
+
>
|
|
65
69
|
<ImageIcon src={GithubIcon} alt="github icon" />
|
|
66
|
-
{#if
|
|
70
|
+
{#if !isSmallVersion}
|
|
67
71
|
<span>TurnipXenon</span>
|
|
68
72
|
{/if}
|
|
69
73
|
</PinyaButton>
|
|
@@ -72,10 +76,11 @@
|
|
|
72
76
|
infoRecord={linkedinRemoteQuery ?? getDefaultLinkedinQuery}
|
|
73
77
|
buttonVariant={ButtonVariant.SmallIcon}
|
|
74
78
|
titleBuilder={(info) => `https://www.linkedin.com/in/${info}/`}
|
|
75
|
-
onclickBuilder={(info) => (
|
|
79
|
+
onclickBuilder={(info) => () => window.open(`https://www.linkedin.com/in/${info}/`)}
|
|
80
|
+
>
|
|
76
81
|
{#snippet bodySnippet(info)}
|
|
77
82
|
<ImageIcon src={LinkedinIcon} alt="linkedin icon" />
|
|
78
|
-
{#if
|
|
83
|
+
{#if !isSmallVersion}
|
|
79
84
|
<span>{info}</span>
|
|
80
85
|
{/if}
|
|
81
86
|
{/snippet}
|
|
@@ -85,16 +90,16 @@
|
|
|
85
90
|
infoRecord={emailRemoteQuery ?? getDefaultEmailQuery}
|
|
86
91
|
buttonVariant={ButtonVariant.SmallIcon}
|
|
87
92
|
titleBuilder={(info) => `mailto:${info}`}
|
|
88
|
-
onclickBuilder={(info) => (
|
|
93
|
+
onclickBuilder={(info) => () => window.open(`mailto:${info}`)}
|
|
89
94
|
>
|
|
90
95
|
{#snippet bodySnippet(info)}
|
|
91
96
|
<ImageIcon src={MailIcon} aria-hidden />
|
|
92
|
-
{#if
|
|
97
|
+
{#if !isSmallVersion}
|
|
93
98
|
<span>{info}</span>
|
|
94
99
|
{/if}
|
|
95
100
|
{/snippet}
|
|
96
101
|
</RevealInfo>
|
|
97
|
-
{#if
|
|
102
|
+
{#if shouldShowExtra}
|
|
98
103
|
<div transition:scale>
|
|
99
104
|
<PinyaButton
|
|
100
105
|
buttonVariant={ButtonVariant.SmallIcon}
|
|
@@ -103,7 +108,7 @@
|
|
|
103
108
|
classes="h-full"
|
|
104
109
|
>
|
|
105
110
|
<ImageIcon src={ItchLogoHotLink} alt="itch icon" />
|
|
106
|
-
{#if
|
|
111
|
+
{#if !isSmallVersion}
|
|
107
112
|
<span>TurnipXenon</span>
|
|
108
113
|
{/if}
|
|
109
114
|
</PinyaButton>
|
|
@@ -112,15 +117,15 @@
|
|
|
112
117
|
</div>
|
|
113
118
|
|
|
114
119
|
<style>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
:global(.socials button span) {
|
|
121
|
+
font-size: 0.8em;
|
|
122
|
+
}
|
|
118
123
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
.socials {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
justify-content: var(--preferred-justify-content);
|
|
128
|
+
gap: 0.7rem;
|
|
129
|
+
align-items: stretch;
|
|
130
|
+
}
|
|
126
131
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialSection.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/SocialSection.svelte.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"SocialSection.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/SocialSection.svelte.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAaxF,KAAK,kBAAkB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,mBAAmB,CAAC,EAAE,gBAAgB,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AA8FH,QAAA,MAAM,aAAa,wDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
import { SectionType } from "../templates/SeaweedLayout/props";
|
|
5
5
|
|
|
6
6
|
interface SortDropdownProps {
|
|
7
|
-
sortBy: string[];
|
|
8
|
-
sectionType: SectionType;
|
|
7
|
+
sortBy: string[]; // Current sort value (bindable)
|
|
8
|
+
sectionType: SectionType; // Determines available sort options
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
let {
|
|
12
|
-
|
|
13
|
-
sectionType = SectionType.Projects
|
|
14
|
-
}: SortDropdownProps = $props();
|
|
11
|
+
let { sortBy = $bindable(["default"]), sectionType = SectionType.Projects }: SortDropdownProps =
|
|
12
|
+
$props();
|
|
15
13
|
|
|
16
14
|
const projectSortOptions: GenericComboboxItem<string>[] = [
|
|
17
15
|
{ label: "Default order", value: "default" },
|
|
@@ -28,9 +26,7 @@
|
|
|
28
26
|
];
|
|
29
27
|
|
|
30
28
|
const sortOptions = $derived(
|
|
31
|
-
sectionType === SectionType.Experience
|
|
32
|
-
? experienceSortOptions
|
|
33
|
-
: projectSortOptions
|
|
29
|
+
sectionType === SectionType.Experience ? experienceSortOptions : projectSortOptions
|
|
34
30
|
);
|
|
35
31
|
</script>
|
|
36
32
|
|
|
@@ -44,7 +40,7 @@
|
|
|
44
40
|
</div>
|
|
45
41
|
|
|
46
42
|
<style>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
.sort-dropdown {
|
|
44
|
+
min-width: 200px;
|
|
45
|
+
}
|
|
50
46
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortDropdown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/SortDropdown.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAGnE,UAAU,iBAAiB;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"SortDropdown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/SortDropdown.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAGnE,UAAU,iBAAiB;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CACzB;AAqCF,QAAA,MAAM,YAAY,6DAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import PinyaCombobox from "../elements/pinya-combobox/PinyaCombobox.svelte";
|
|
3
3
|
|
|
4
4
|
interface TagFilterProps {
|
|
5
|
-
allTags: string[];
|
|
6
|
-
selectedTags: string[];
|
|
7
|
-
label?: string;
|
|
5
|
+
allTags: string[]; // All available tags
|
|
6
|
+
selectedTags: string[]; // Currently selected tags (bindable)
|
|
7
|
+
label?: string; // Optional label
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
let {
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
<div class="tag-filter">
|
|
18
18
|
<PinyaCombobox
|
|
19
19
|
bind:value={selectedTags}
|
|
20
|
-
data={allTags.map(t => ({value: t, label: t}))}
|
|
20
|
+
data={allTags.map((t) => ({ value: t, label: t }))}
|
|
21
21
|
multiple={true}
|
|
22
22
|
{label}
|
|
23
23
|
/>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
<style>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
.tag-filter {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 0.5rem;
|
|
31
|
+
}
|
|
32
32
|
</style>
|
|
@@ -14,58 +14,60 @@
|
|
|
14
14
|
...props
|
|
15
15
|
}: PinyaAccordionProps = $props();
|
|
16
16
|
|
|
17
|
-
let accordion = $derived(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
let accordion = $derived(
|
|
18
|
+
new Accordion({
|
|
19
|
+
value: (() => {
|
|
20
|
+
if (openItems) {
|
|
21
|
+
if (multiple) {
|
|
22
|
+
return new Set(openItems);
|
|
23
|
+
} else if (openItems.length > 0) {
|
|
24
|
+
return openItems[0];
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
|
-
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
return undefined;
|
|
29
|
+
})(),
|
|
30
|
+
onValueChange: (t: SvelteSet<string> | string | undefined) => {
|
|
31
|
+
if (typeof t === "string") {
|
|
32
|
+
openItems = t ? [t] : [];
|
|
33
|
+
} else if (t) {
|
|
34
|
+
openItems = [...t];
|
|
35
|
+
} else {
|
|
36
|
+
openItems = [];
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
multiple
|
|
40
|
+
})
|
|
41
|
+
);
|
|
40
42
|
setContext<AccordionContext>(accordionContextKey, (key) => accordion.getItem(key));
|
|
41
43
|
setContext<string[]>("accordionOpenItems", openItems);
|
|
42
44
|
</script>
|
|
43
45
|
|
|
44
|
-
<div {...props} class={`pinya-accordion-root ${props.class ??
|
|
46
|
+
<div {...props} class={`pinya-accordion-root ${props.class ?? ""}`} {...accordion.root}>
|
|
45
47
|
{@render children?.()}
|
|
46
48
|
</div>
|
|
47
49
|
|
|
48
50
|
<style>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
:global {
|
|
52
|
+
.pinya-accordion-root {
|
|
53
|
+
.pinya-accordion-item {
|
|
54
|
+
&:first-child,
|
|
55
|
+
&:first-child > .accordion-heading,
|
|
56
|
+
&:first-child > .accordion-heading .consider-top-edge {
|
|
57
|
+
border-top-left-radius: var(--radius-lg);
|
|
58
|
+
border-top-right-radius: var(--radius-lg);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
.pinya-accordion-item {
|
|
63
|
+
&:last-child,
|
|
64
|
+
&:last-child > .accordion-panel,
|
|
65
|
+
&:last-child > .accordion-heading .consider-bottom-edge,
|
|
66
|
+
&:last-child > .accordion-heading .consider-top-edge[data-state="closed"] {
|
|
67
|
+
border-bottom-left-radius: var(--radius-lg);
|
|
68
|
+
border-bottom-right-radius: var(--radius-lg);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
71
73
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinyaAccordion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/accordion/PinyaAccordion.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PinyaAccordion.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/accordion/PinyaAccordion.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAuDjE,QAAA,MAAM,cAAc,kEAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
|
|
@@ -19,21 +19,28 @@
|
|
|
19
19
|
|
|
20
20
|
let uid = $props.id();
|
|
21
21
|
let accordionContext = getContext<AccordionContext>(accordionContextKey);
|
|
22
|
-
let accordionItem = $derived(
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
let accordionItem = $derived(
|
|
23
|
+
hasNoChild
|
|
24
|
+
? { heading: {}, trigger: {}, content: {} }
|
|
25
|
+
: accordionContext({ id: pinyaValue ?? uid })
|
|
25
26
|
);
|
|
26
27
|
</script>
|
|
27
28
|
|
|
28
|
-
<div
|
|
29
|
+
<div
|
|
30
|
+
{...props}
|
|
31
|
+
class="pinya-accordion-item consider-top-edge consider-bottom-edge bg-primary-100 dark:bg-tertiary-900 {props.class}"
|
|
32
|
+
>
|
|
29
33
|
{#if accordionItem}
|
|
30
34
|
<div {...accordionItem.heading} class="consider-top-edge accordion-heading">
|
|
31
35
|
{#if hasNoChild}
|
|
32
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
{...accordionItem.trigger}
|
|
38
|
+
class="consider-top-edge add-padding like-button consider-bottom-edge"
|
|
39
|
+
>
|
|
33
40
|
{#if controlIndicator}
|
|
34
41
|
{@render controlSnippet?.()}
|
|
35
42
|
{@render controlIndicator()}
|
|
36
|
-
{:else
|
|
43
|
+
{:else}
|
|
37
44
|
<div>{@render controlSnippet?.()}</div>
|
|
38
45
|
{/if}
|
|
39
46
|
</div>
|
|
@@ -42,7 +49,7 @@
|
|
|
42
49
|
{#if controlIndicator}
|
|
43
50
|
{@render controlSnippet?.()}
|
|
44
51
|
{@render controlIndicator()}
|
|
45
|
-
{:else
|
|
52
|
+
{:else}
|
|
46
53
|
<div>{@render controlSnippet?.()}</div>
|
|
47
54
|
<svg class="indicator" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
|
|
48
55
|
<line class="line-h" x1="5" y1="12" x2="19" y2="12" />
|
|
@@ -57,7 +64,7 @@
|
|
|
57
64
|
{@render panelSnippet?.()}
|
|
58
65
|
</div>
|
|
59
66
|
{/if}
|
|
60
|
-
{:else
|
|
67
|
+
{:else}
|
|
61
68
|
<Placeholder classes="mb-2" />
|
|
62
69
|
{/if}
|
|
63
70
|
</div>
|
|
@@ -66,7 +73,8 @@
|
|
|
66
73
|
background-color: var(--current-surface-color);
|
|
67
74
|
}
|
|
68
75
|
|
|
69
|
-
button,
|
|
76
|
+
button,
|
|
77
|
+
.like-button {
|
|
70
78
|
--current-surface-color: var(--color-primary-400-600);
|
|
71
79
|
--current-surface-contrast: var(--color-secondary-950-0);
|
|
72
80
|
background-color: var(--current-surface-color);
|
|
@@ -85,7 +93,8 @@ button, .like-button {
|
|
|
85
93
|
background-color: var(--color-primary-300-700);
|
|
86
94
|
}
|
|
87
95
|
|
|
88
|
-
button,
|
|
96
|
+
button,
|
|
97
|
+
.like-button {
|
|
89
98
|
width: 100%;
|
|
90
99
|
text-align: start;
|
|
91
100
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinyaAccordionItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/accordion/PinyaAccordionItem.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PinyaAccordionItem.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/accordion/PinyaAccordionItem.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAuEzE,QAAA,MAAM,kBAAkB,6DAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { slide } from
|
|
2
|
+
import { slide } from "svelte/transition";
|
|
3
3
|
import type { ProjectDateBageProps } from "./ProjectDateBageProps";
|
|
4
4
|
import { TextLink } from "../../elements/index";
|
|
5
5
|
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
(endDate.getMonth() - startDate.getMonth());
|
|
26
26
|
|
|
27
27
|
if (totalMonths < 1) {
|
|
28
|
-
const days = Math.max(
|
|
28
|
+
const days = Math.max(
|
|
29
|
+
1,
|
|
30
|
+
Math.round((endDate.getTime() - startDate.getTime()) / (1000 * 60 * 60 * 24))
|
|
31
|
+
);
|
|
29
32
|
return `${days} day${days !== 1 ? "s" : ""}`;
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -68,7 +71,12 @@
|
|
|
68
71
|
<span class="ongoing-badge">ongoing</span>
|
|
69
72
|
{/if}
|
|
70
73
|
{#if commitCount != null && gitRepoLink}
|
|
71
|
-
<TextLink
|
|
74
|
+
<TextLink
|
|
75
|
+
href={gitRepoLink}
|
|
76
|
+
target="_blank"
|
|
77
|
+
rel="external noopener noreferrer"
|
|
78
|
+
class="commit-count"
|
|
79
|
+
>
|
|
72
80
|
{commitCount} commit{commitCount !== 1 ? "s" : ""}
|
|
73
81
|
</TextLink>
|
|
74
82
|
{:else if commitCount != null}
|
|
@@ -80,81 +88,81 @@
|
|
|
80
88
|
{/if}
|
|
81
89
|
|
|
82
90
|
<style>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
91
|
+
.project-date-badge {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
gap: 0.375rem;
|
|
95
|
+
padding: 0.75rem 0;
|
|
96
|
+
margin-top: 0.75rem;
|
|
97
|
+
border-top: 1px solid var(--color-surface-900-100);
|
|
98
|
+
font-size: 0.8125rem;
|
|
99
|
+
line-height: 1.4;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.badge-row {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: space-between;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
gap: 0.5rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.date-info {
|
|
111
|
+
color: var(--color-surface-900-100);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.separator {
|
|
115
|
+
margin: 0 0.25rem;
|
|
116
|
+
color: var(--color-surface-900-100);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ongoing-label {
|
|
120
|
+
color: var(--color-primary-400-600);
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.unknown-label {
|
|
125
|
+
color: var(--color-surface-900-100);
|
|
126
|
+
font-style: italic;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.duration {
|
|
130
|
+
color: var(--color-surface-900-100);
|
|
131
|
+
font-weight: 500;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.secondary-row {
|
|
135
|
+
justify-content: flex-start;
|
|
136
|
+
gap: 0.5rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ongoing-badge {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
padding: 0.125rem 0.5rem;
|
|
142
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
143
|
+
background-color: var(--color-primary-50-900);
|
|
144
|
+
color: var(--color-primary-700);
|
|
145
|
+
font-size: 0.75rem;
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
text-transform: uppercase;
|
|
148
|
+
letter-spacing: 0.025em;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:global(html.dark) .ongoing-badge {
|
|
152
|
+
color: var(--color-primary-300);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.commit-count {
|
|
156
|
+
font-size: 0.75rem;
|
|
157
|
+
color: var(--color-surface-900-100);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
a.commit-count {
|
|
161
|
+
text-decoration: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
a.commit-count:hover {
|
|
165
|
+
text-decoration: underline;
|
|
166
|
+
color: var(--color-primary-400-600);
|
|
167
|
+
}
|
|
160
168
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDateBadge.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/project-date-badge/ProjectDateBadge.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectDateBadge.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/project-date-badge/ProjectDateBadge.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AA2FvG,QAAA,MAAM,gBAAgB,0DAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
|