@turnipxenon/pineapple 2.4.38 → 2.4.40
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/.idea/shelf/yarn_scripts.xml +4 -0
- package/.idea/workspace.xml +56 -57
- package/.svelte-kit/__package__/components/SocialSection.svelte +3 -2
- package/.svelte-kit/__package__/components/SocialSection.svelte.d.ts +2 -0
- package/.svelte-kit/__package__/components/navigation_component/NavigationComponent.svelte +13 -8
- package/.svelte-kit/__package__/components/navigation_component/NavigationComponent.svelte.d.ts +2 -1
- package/.svelte-kit/__package__/index.d.ts +1 -0
- package/.svelte-kit/__package__/index.js +1 -0
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/components/SocialSection.svelte +3 -2
- package/dist/components/SocialSection.svelte.d.ts +2 -0
- package/dist/components/navigation_component/NavigationComponent.svelte +13 -8
- package/dist/components/navigation_component/NavigationComponent.svelte.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/lib/components/SocialSection.svelte +3 -2
- package/src/lib/components/navigation_component/NavigationComponent.svelte +13 -8
- package/src/lib/index.ts +1 -0
- package/src/routes/(pineapple)/pineapple/(pineapple)/+page.svelte +1 -0
package/.idea/workspace.xml
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Allow preventing NavigationComponent pagination">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/SocialSection.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/SocialSection.svelte" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/src/lib/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/index.ts" afterDir="false" />
|
|
9
10
|
</list>
|
|
10
11
|
<option name="SHOW_DIALOG" value="false" />
|
|
11
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -60,11 +61,6 @@
|
|
|
60
61
|
<component name="JsbtTreeLayoutManager">
|
|
61
62
|
<layout place="tools.popupnpm">
|
|
62
63
|
<scroll-view-position x="14" y="0" />
|
|
63
|
-
<selected-paths>
|
|
64
|
-
<path>
|
|
65
|
-
<id value="$PROJECT_DIR$/../speenus/package.json" />
|
|
66
|
-
</path>
|
|
67
|
-
</selected-paths>
|
|
68
64
|
</layout>
|
|
69
65
|
</component>
|
|
70
66
|
<component name="MarkdownSettingsMigration">
|
|
@@ -84,33 +80,33 @@
|
|
|
84
80
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
85
81
|
<option name="showLibraryContents" value="true" />
|
|
86
82
|
</component>
|
|
87
|
-
<component name="PropertiesComponent"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
83
|
+
<component name="PropertiesComponent">{
|
|
84
|
+
"keyToString": {
|
|
85
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
86
|
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
87
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
88
|
+
"WebServerToolWindowFactoryState": "false",
|
|
89
|
+
"git-widget-placeholder": "turnip/improvements",
|
|
90
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
91
|
+
"last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/routes/(pineapple)/pineapple/(extra-pages)/page3/page7/(test_layout)/page8",
|
|
92
|
+
"list.type.of.created.stylesheet": "CSS",
|
|
93
|
+
"node.js.detected.package.eslint": "true",
|
|
94
|
+
"node.js.detected.package.tslint": "true",
|
|
95
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
96
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
97
|
+
"nodejs_interpreter_path": "node",
|
|
98
|
+
"nodejs_package_manager_path": "yarn",
|
|
99
|
+
"npm.build.executor": "Run",
|
|
100
|
+
"npm.dev (1).executor": "Run",
|
|
101
|
+
"npm.dev --open.executor": "Run",
|
|
102
|
+
"npm.dev offline.executor": "Run",
|
|
103
|
+
"npm.dev-offline.executor": "Run",
|
|
104
|
+
"npm.dev.executor": "Run",
|
|
105
|
+
"settings.editor.selected.configurable": "preferences.pluginManager",
|
|
106
|
+
"ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
|
|
107
|
+
"vue.rearranger.settings.migration": "true"
|
|
112
108
|
}
|
|
113
|
-
}
|
|
109
|
+
}</component>
|
|
114
110
|
<component name="RecentsManager">
|
|
115
111
|
<key name="CopyFile.RECENT_KEYS">
|
|
116
112
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page3\page7\(test_layout)\page8" />
|
|
@@ -120,11 +116,11 @@
|
|
|
120
116
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\page3\page7\(test_layout)\page8" />
|
|
121
117
|
</key>
|
|
122
118
|
<key name="MoveFile.RECENT_KEYS">
|
|
119
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(pineapple)" />
|
|
123
120
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(nested)" />
|
|
124
121
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)" />
|
|
125
122
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page1" />
|
|
126
123
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page2" />
|
|
127
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page3" />
|
|
128
124
|
</key>
|
|
129
125
|
<key name="es6.move.members.recent.items">
|
|
130
126
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\types\RootLayoutProps.ts" />
|
|
@@ -159,8 +155,8 @@
|
|
|
159
155
|
</list>
|
|
160
156
|
<recent_temporary>
|
|
161
157
|
<list>
|
|
162
|
-
<item itemvalue="npm.dev-offline" />
|
|
163
158
|
<item itemvalue="npm.dev --open" />
|
|
159
|
+
<item itemvalue="npm.dev-offline" />
|
|
164
160
|
<item itemvalue="npm.dev --open" />
|
|
165
161
|
<item itemvalue="npm.dev-offline" />
|
|
166
162
|
<item itemvalue="npm.dev-offline" />
|
|
@@ -254,23 +250,10 @@
|
|
|
254
250
|
<workItem from="1711587392130" duration="863000" />
|
|
255
251
|
<workItem from="1711677339000" duration="218000" />
|
|
256
252
|
<workItem from="1711677568464" duration="55000" />
|
|
257
|
-
<workItem from="1711677762467" duration="
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<
|
|
261
|
-
<created>1710564041434</created>
|
|
262
|
-
<option name="number" value="00066" />
|
|
263
|
-
<option name="presentableId" value="LOCAL-00066" />
|
|
264
|
-
<option name="project" value="LOCAL" />
|
|
265
|
-
<updated>1710564041434</updated>
|
|
266
|
-
</task>
|
|
267
|
-
<task id="LOCAL-00067" summary="Enforce stricter typing for Toast components">
|
|
268
|
-
<option name="closed" value="true" />
|
|
269
|
-
<created>1710565506639</created>
|
|
270
|
-
<option name="number" value="00067" />
|
|
271
|
-
<option name="presentableId" value="LOCAL-00067" />
|
|
272
|
-
<option name="project" value="LOCAL" />
|
|
273
|
-
<updated>1710565506640</updated>
|
|
253
|
+
<workItem from="1711677762467" duration="3110000" />
|
|
254
|
+
<workItem from="1711680966158" duration="444000" />
|
|
255
|
+
<workItem from="1711681779901" duration="6000" />
|
|
256
|
+
<workItem from="1711682341820" duration="256000" />
|
|
274
257
|
</task>
|
|
275
258
|
<task id="LOCAL-00068" summary="Add dismissable toast">
|
|
276
259
|
<option name="closed" value="true" />
|
|
@@ -648,7 +631,23 @@
|
|
|
648
631
|
<option name="project" value="LOCAL" />
|
|
649
632
|
<updated>1711587709414</updated>
|
|
650
633
|
</task>
|
|
651
|
-
<
|
|
634
|
+
<task id="LOCAL-00115" summary="Layout adjustments to PineappleBaseLayout">
|
|
635
|
+
<option name="closed" value="true" />
|
|
636
|
+
<created>1711680166876</created>
|
|
637
|
+
<option name="number" value="00115" />
|
|
638
|
+
<option name="presentableId" value="LOCAL-00115" />
|
|
639
|
+
<option name="project" value="LOCAL" />
|
|
640
|
+
<updated>1711680166877</updated>
|
|
641
|
+
</task>
|
|
642
|
+
<task id="LOCAL-00116" summary="Allow preventing NavigationComponent pagination">
|
|
643
|
+
<option name="closed" value="true" />
|
|
644
|
+
<created>1711681303815</created>
|
|
645
|
+
<option name="number" value="00116" />
|
|
646
|
+
<option name="presentableId" value="LOCAL-00116" />
|
|
647
|
+
<option name="project" value="LOCAL" />
|
|
648
|
+
<updated>1711681303815</updated>
|
|
649
|
+
</task>
|
|
650
|
+
<option name="localTasksCounter" value="117" />
|
|
652
651
|
<servers />
|
|
653
652
|
</component>
|
|
654
653
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -706,9 +705,6 @@
|
|
|
706
705
|
</option>
|
|
707
706
|
</component>
|
|
708
707
|
<component name="VcsManagerConfiguration">
|
|
709
|
-
<MESSAGE value="Add page query param creator" />
|
|
710
|
-
<MESSAGE value="Hide advanced settings when letChaos is true" />
|
|
711
|
-
<MESSAGE value="Add OverridableMeta component" />
|
|
712
708
|
<MESSAGE value="Fix package main index" />
|
|
713
709
|
<MESSAGE value="Fix dialog positioning Dialog positioning seemed to be broken when the styles from Seaweed moved to postcss, even if the dialog solely exists in Pineapple" />
|
|
714
710
|
<MESSAGE value="Place fab on a higher z-index" />
|
|
@@ -731,6 +727,9 @@
|
|
|
731
727
|
<MESSAGE value="Fix NavigationComponent styling" />
|
|
732
728
|
<MESSAGE value="Fix default page sorting" />
|
|
733
729
|
<MESSAGE value="Fix double dor parsing issue in NavigationComponent" />
|
|
734
|
-
<
|
|
730
|
+
<MESSAGE value="yarn scripts" />
|
|
731
|
+
<MESSAGE value="Layout adjustments to PineappleBaseLayout" />
|
|
732
|
+
<MESSAGE value="Allow preventing NavigationComponent pagination" />
|
|
733
|
+
<option name="LAST_COMMIT_MESSAGE" value="Allow preventing NavigationComponent pagination" />
|
|
735
734
|
</component>
|
|
736
735
|
</project>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export let email = "turnipxenon@gmail.com";
|
|
4
4
|
export let linkedinSlug = "turnip-xenon";
|
|
5
5
|
export let isSlot = false;
|
|
6
|
+
export let allowLinkedIn = true;
|
|
6
7
|
|
|
7
8
|
import { ItchLogoHotLink } from "../consts";
|
|
8
9
|
import { onMount } from "svelte";
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
`;
|
|
20
21
|
|
|
21
22
|
onMount(() => {
|
|
22
|
-
shouldShowExtra = window.screen.availWidth >= 440;
|
|
23
|
+
shouldShowExtra = allowLinkedIn && window.screen.availWidth >= 440;
|
|
23
24
|
});
|
|
24
25
|
</script>
|
|
25
26
|
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
role="link"
|
|
38
39
|
title={`https://www.linkedin.com/in/${linkedinSlug}/`}
|
|
39
40
|
on:click={() => window.open(`https://www.linkedin.com/in/${linkedinSlug}/`)}>
|
|
40
|
-
<img src={LinkedinIcon} alt="
|
|
41
|
+
<img src={LinkedinIcon} alt="linkedin icon">
|
|
41
42
|
{#if (!isSmallVersion)}
|
|
42
43
|
<span>{linkedinSlug}</span>
|
|
43
44
|
{/if}
|
|
@@ -6,6 +6,7 @@ export default class SocialSection extends SvelteComponent<{
|
|
|
6
6
|
email?: string | undefined;
|
|
7
7
|
linkedinSlug?: string | undefined;
|
|
8
8
|
isSlot?: boolean | undefined;
|
|
9
|
+
allowLinkedIn?: boolean | undefined;
|
|
9
10
|
}, {
|
|
10
11
|
[evt: string]: CustomEvent<any>;
|
|
11
12
|
}, {}> {
|
|
@@ -20,6 +21,7 @@ declare const __propDef: {
|
|
|
20
21
|
email?: string | undefined;
|
|
21
22
|
linkedinSlug?: string | undefined;
|
|
22
23
|
isSlot?: boolean | undefined;
|
|
24
|
+
allowLinkedIn?: boolean | undefined;
|
|
23
25
|
};
|
|
24
26
|
events: {
|
|
25
27
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script>import NavigationControl from "./NavigationControl.svelte";
|
|
2
2
|
import { Card, createGoToFunction } from "../..";
|
|
3
3
|
import { parsePageMeta } from "./PageMeta";
|
|
4
|
-
export let title = void 0;
|
|
5
4
|
export let fileList;
|
|
6
5
|
export let jsonList;
|
|
6
|
+
export let title = void 0;
|
|
7
7
|
export let imageMap = /* @__PURE__ */ new Map();
|
|
8
|
+
export let shouldAllowControl = true;
|
|
8
9
|
export let parentSubpath;
|
|
9
10
|
export let compareFn = void 0;
|
|
10
11
|
export let pageSize = 5;
|
|
@@ -23,9 +24,11 @@ $:
|
|
|
23
24
|
</Card>
|
|
24
25
|
{/if}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
{#if shouldAllowControl}
|
|
28
|
+
<NavigationControl bind:currentIndex={currentIndex}
|
|
29
|
+
bind:contentLength={pageFlatList.length}
|
|
30
|
+
bind:pageSize={pageSize}></NavigationControl>
|
|
31
|
+
{/if}
|
|
29
32
|
|
|
30
33
|
<div class="navigation-component">
|
|
31
34
|
<!-- all the misc routes-->
|
|
@@ -61,9 +64,11 @@ $:
|
|
|
61
64
|
{/if}
|
|
62
65
|
</div>
|
|
63
66
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
{#if shouldAllowControl}
|
|
68
|
+
<NavigationControl bind:currentIndex={currentIndex}
|
|
69
|
+
bind:contentLength={pageFlatList.length}
|
|
70
|
+
bind:pageSize={pageSize}></NavigationControl>
|
|
71
|
+
{/if}
|
|
67
72
|
|
|
68
73
|
</div>
|
|
69
74
|
|
|
@@ -246,7 +251,7 @@ $:
|
|
|
246
251
|
display: flex;
|
|
247
252
|
flex-direction: column;
|
|
248
253
|
max-width: 1000px;
|
|
249
|
-
|
|
254
|
+
width: 100%;
|
|
250
255
|
}
|
|
251
256
|
|
|
252
257
|
.tag-container {
|
package/.svelte-kit/__package__/components/navigation_component/NavigationComponent.svelte.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type ParsePageMetaCompareFn } from "./PageMeta";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
title?: string | undefined;
|
|
6
5
|
fileList: Record<string, unknown>;
|
|
7
6
|
jsonList: Record<string, unknown>;
|
|
7
|
+
title?: string | undefined;
|
|
8
8
|
imageMap?: Map<string, string> | undefined;
|
|
9
|
+
shouldAllowControl?: boolean | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* Should include a slash before and after the path
|
|
11
12
|
*/ parentSubpath: string;
|
|
@@ -2,6 +2,7 @@ export { default as PineappleLayoutBase } from "./components/pineapple/Pineapple
|
|
|
2
2
|
export { default as SeaweedTemplate } from "./template/Seaweed/SeaweedTemplate.svelte";
|
|
3
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
4
4
|
export { default as Card } from "./components/Card.svelte";
|
|
5
|
+
export { default as SocialSection } from "./components/SocialSection.svelte";
|
|
5
6
|
export * from "./components/overrideable_meta/index";
|
|
6
7
|
export * from "./components/navigation_component/index";
|
|
7
8
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
@@ -3,6 +3,7 @@ export { default as PineappleLayoutBase } from "./components/pineapple/Pineapple
|
|
|
3
3
|
export { default as SeaweedTemplate } from "./template/Seaweed/SeaweedTemplate.svelte";
|
|
4
4
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
5
5
|
export { default as Card } from "./components/Card.svelte";
|
|
6
|
+
export { default as SocialSection } from "./components/SocialSection.svelte";
|
|
6
7
|
export * from "./components/overrideable_meta/index";
|
|
7
8
|
export * from "./components/navigation_component/index";
|
|
8
9
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
@@ -21,7 +21,7 @@ export const options = {
|
|
|
21
21
|
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\n\t<body data-sveltekit-preload-data=\"hover\" data-theme=\"crimson\">\n\t\t<div style=\"display: contents\" class=\"h-full overflow-hidden\">" + body + "</div>\n\t</body>\n</html>\n",
|
|
22
22
|
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
23
23
|
},
|
|
24
|
-
version_hash: "
|
|
24
|
+
version_hash: "85sq1n"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export let email = "turnipxenon@gmail.com";
|
|
4
4
|
export let linkedinSlug = "turnip-xenon";
|
|
5
5
|
export let isSlot = false;
|
|
6
|
+
export let allowLinkedIn = true;
|
|
6
7
|
|
|
7
8
|
import { ItchLogoHotLink } from "../consts";
|
|
8
9
|
import { onMount } from "svelte";
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
`;
|
|
20
21
|
|
|
21
22
|
onMount(() => {
|
|
22
|
-
shouldShowExtra = window.screen.availWidth >= 440;
|
|
23
|
+
shouldShowExtra = allowLinkedIn && window.screen.availWidth >= 440;
|
|
23
24
|
});
|
|
24
25
|
</script>
|
|
25
26
|
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
role="link"
|
|
38
39
|
title={`https://www.linkedin.com/in/${linkedinSlug}/`}
|
|
39
40
|
on:click={() => window.open(`https://www.linkedin.com/in/${linkedinSlug}/`)}>
|
|
40
|
-
<img src={LinkedinIcon} alt="
|
|
41
|
+
<img src={LinkedinIcon} alt="linkedin icon">
|
|
41
42
|
{#if (!isSmallVersion)}
|
|
42
43
|
<span>{linkedinSlug}</span>
|
|
43
44
|
{/if}
|
|
@@ -6,6 +6,7 @@ export default class SocialSection extends SvelteComponent<{
|
|
|
6
6
|
email?: string | undefined;
|
|
7
7
|
linkedinSlug?: string | undefined;
|
|
8
8
|
isSlot?: boolean | undefined;
|
|
9
|
+
allowLinkedIn?: boolean | undefined;
|
|
9
10
|
}, {
|
|
10
11
|
[evt: string]: CustomEvent<any>;
|
|
11
12
|
}, {}> {
|
|
@@ -20,6 +21,7 @@ declare const __propDef: {
|
|
|
20
21
|
email?: string | undefined;
|
|
21
22
|
linkedinSlug?: string | undefined;
|
|
22
23
|
isSlot?: boolean | undefined;
|
|
24
|
+
allowLinkedIn?: boolean | undefined;
|
|
23
25
|
};
|
|
24
26
|
events: {
|
|
25
27
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script>import NavigationControl from "./NavigationControl.svelte";
|
|
2
2
|
import { Card, createGoToFunction } from "../..";
|
|
3
3
|
import { parsePageMeta } from "./PageMeta";
|
|
4
|
-
export let title = void 0;
|
|
5
4
|
export let fileList;
|
|
6
5
|
export let jsonList;
|
|
6
|
+
export let title = void 0;
|
|
7
7
|
export let imageMap = /* @__PURE__ */ new Map();
|
|
8
|
+
export let shouldAllowControl = true;
|
|
8
9
|
export let parentSubpath;
|
|
9
10
|
export let compareFn = void 0;
|
|
10
11
|
export let pageSize = 5;
|
|
@@ -23,9 +24,11 @@ $:
|
|
|
23
24
|
</Card>
|
|
24
25
|
{/if}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
{#if shouldAllowControl}
|
|
28
|
+
<NavigationControl bind:currentIndex={currentIndex}
|
|
29
|
+
bind:contentLength={pageFlatList.length}
|
|
30
|
+
bind:pageSize={pageSize}></NavigationControl>
|
|
31
|
+
{/if}
|
|
29
32
|
|
|
30
33
|
<div class="navigation-component">
|
|
31
34
|
<!-- all the misc routes-->
|
|
@@ -61,9 +64,11 @@ $:
|
|
|
61
64
|
{/if}
|
|
62
65
|
</div>
|
|
63
66
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
{#if shouldAllowControl}
|
|
68
|
+
<NavigationControl bind:currentIndex={currentIndex}
|
|
69
|
+
bind:contentLength={pageFlatList.length}
|
|
70
|
+
bind:pageSize={pageSize}></NavigationControl>
|
|
71
|
+
{/if}
|
|
67
72
|
|
|
68
73
|
</div>
|
|
69
74
|
|
|
@@ -246,7 +251,7 @@ $:
|
|
|
246
251
|
display: flex;
|
|
247
252
|
flex-direction: column;
|
|
248
253
|
max-width: 1000px;
|
|
249
|
-
|
|
254
|
+
width: 100%;
|
|
250
255
|
}
|
|
251
256
|
|
|
252
257
|
.tag-container {
|
|
@@ -2,10 +2,11 @@ import { SvelteComponent } from "svelte";
|
|
|
2
2
|
import { type ParsePageMetaCompareFn } from "./PageMeta";
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
title?: string | undefined;
|
|
6
5
|
fileList: Record<string, unknown>;
|
|
7
6
|
jsonList: Record<string, unknown>;
|
|
7
|
+
title?: string | undefined;
|
|
8
8
|
imageMap?: Map<string, string> | undefined;
|
|
9
|
+
shouldAllowControl?: boolean | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* Should include a slash before and after the path
|
|
11
12
|
*/ parentSubpath: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as PineappleLayoutBase } from "./components/pineapple/Pineapple
|
|
|
2
2
|
export { default as SeaweedTemplate } from "./template/Seaweed/SeaweedTemplate.svelte";
|
|
3
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
4
4
|
export { default as Card } from "./components/Card.svelte";
|
|
5
|
+
export { default as SocialSection } from "./components/SocialSection.svelte";
|
|
5
6
|
export * from "./components/overrideable_meta/index";
|
|
6
7
|
export * from "./components/navigation_component/index";
|
|
7
8
|
export * from "./components/dialog_manager/DialogManagerStore";
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as PineappleLayoutBase } from "./components/pineapple/Pineapple
|
|
|
3
3
|
export { default as SeaweedTemplate } from "./template/Seaweed/SeaweedTemplate.svelte";
|
|
4
4
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
5
5
|
export { default as Card } from "./components/Card.svelte";
|
|
6
|
+
export { default as SocialSection } from "./components/SocialSection.svelte";
|
|
6
7
|
export * from "./components/overrideable_meta/index";
|
|
7
8
|
export * from "./components/navigation_component/index";
|
|
8
9
|
export * from "./components/dialog_manager/DialogManagerStore";
|
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": "2.4.
|
|
4
|
+
"version": "2.4.40",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "npm run check-requirements && vite build && yarn package",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export let email = "turnipxenon@gmail.com";
|
|
4
4
|
export let linkedinSlug = "turnip-xenon";
|
|
5
5
|
export let isSlot = false;
|
|
6
|
+
export let allowLinkedIn = true;
|
|
6
7
|
|
|
7
8
|
import { ItchLogoHotLink } from "$pkg/consts";
|
|
8
9
|
import { onMount } from "svelte";
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
`;
|
|
20
21
|
|
|
21
22
|
onMount(() => {
|
|
22
|
-
shouldShowExtra = window.screen.availWidth >= 440;
|
|
23
|
+
shouldShowExtra = allowLinkedIn && window.screen.availWidth >= 440;
|
|
23
24
|
});
|
|
24
25
|
</script>
|
|
25
26
|
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
role="link"
|
|
38
39
|
title={`https://www.linkedin.com/in/${linkedinSlug}/`}
|
|
39
40
|
on:click={() => window.open(`https://www.linkedin.com/in/${linkedinSlug}/`)}>
|
|
40
|
-
<img src={LinkedinIcon} alt="
|
|
41
|
+
<img src={LinkedinIcon} alt="linkedin icon">
|
|
41
42
|
{#if (!isSmallVersion)}
|
|
42
43
|
<span>{linkedinSlug}</span>
|
|
43
44
|
{/if}
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
import { Card, createGoToFunction } from "$pkg";
|
|
4
4
|
import { parsePageMeta, type ParsePageMetaCompareFn } from "$pkg/components/navigation_component/PageMeta";
|
|
5
5
|
|
|
6
|
-
export let title: string | undefined = undefined;
|
|
7
6
|
export let fileList: Record<string, unknown>;
|
|
8
7
|
export let jsonList: Record<string, unknown>;
|
|
8
|
+
export let title: string | undefined = undefined;
|
|
9
9
|
export let imageMap = new Map<string, string>();
|
|
10
|
+
export let shouldAllowControl = true;
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Should include a slash before and after the path
|
|
@@ -31,9 +32,11 @@
|
|
|
31
32
|
</Card>
|
|
32
33
|
{/if}
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
{#if shouldAllowControl}
|
|
36
|
+
<NavigationControl bind:currentIndex={currentIndex}
|
|
37
|
+
bind:contentLength={pageFlatList.length}
|
|
38
|
+
bind:pageSize={pageSize}></NavigationControl>
|
|
39
|
+
{/if}
|
|
37
40
|
|
|
38
41
|
<div class="navigation-component">
|
|
39
42
|
<!-- all the misc routes-->
|
|
@@ -69,9 +72,11 @@
|
|
|
69
72
|
{/if}
|
|
70
73
|
</div>
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
{#if shouldAllowControl}
|
|
76
|
+
<NavigationControl bind:currentIndex={currentIndex}
|
|
77
|
+
bind:contentLength={pageFlatList.length}
|
|
78
|
+
bind:pageSize={pageSize}></NavigationControl>
|
|
79
|
+
{/if}
|
|
75
80
|
|
|
76
81
|
</div>
|
|
77
82
|
|
|
@@ -137,7 +142,7 @@
|
|
|
137
142
|
display: flex;
|
|
138
143
|
flex-direction: column;
|
|
139
144
|
max-width: 1000px;
|
|
140
|
-
|
|
145
|
+
width: 100%;
|
|
141
146
|
}
|
|
142
147
|
|
|
143
148
|
.tag-container {
|
package/src/lib/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { default as PineappleLayoutBase } from "./components/pineapple/Pineapple
|
|
|
4
4
|
export { default as SeaweedTemplate } from "./template/Seaweed/SeaweedTemplate.svelte";
|
|
5
5
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
6
6
|
export { default as Card } from "./components/Card.svelte";
|
|
7
|
+
export { default as SocialSection } from "./components/SocialSection.svelte";
|
|
7
8
|
|
|
8
9
|
export * from "$pkg/components/overrideable_meta/index";
|
|
9
10
|
export * from "$pkg/components/navigation_component/index";
|