@turnipxenon/pineapple 2.4.56 → 2.4.58
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/modules.xml +0 -1
- package/.idea/workspace.xml +77 -71
- package/.svelte-kit/__package__/app.postcss +4 -1
- package/.svelte-kit/__package__/assets/icons/arrow-upward.svg +1 -0
- package/.svelte-kit/__package__/components/Card.svelte +24 -3
- package/.svelte-kit/__package__/components/Card.svelte.d.ts +1 -0
- package/.svelte-kit/__package__/components/PineappleSlideToggle.svelte +10 -0
- package/.svelte-kit/__package__/components/PineappleSlideToggle.svelte.d.ts +19 -0
- package/.svelte-kit/__package__/components/chip/chip.postcss +0 -0
- package/.svelte-kit/__package__/components/combo_box/ComboBoxWithButton.svelte +7 -0
- package/.svelte-kit/__package__/components/pineapple/toast/Toast.svelte +4 -2
- package/.svelte-kit/__package__/template/seaweed/CreateUrlForm.svelte +15 -3
- package/.svelte-kit/__package__/template/seaweed/SeaweedTemplate.svelte +10 -6
- package/.svelte-kit/__package__/template/seaweed/entries/MigranteAlberta.svelte +1 -1
- package/.svelte-kit/__package__/template/seaweed/entries/MockUberApp.svelte +1 -1
- package/.svelte-kit/__package__/template/seaweed/entries/ThisWebpage.svelte +1 -1
- package/.svelte-kit/__package__/template/seaweed/entry_order_config/EntryOrderConfig.svelte +224 -47
- package/.svelte-kit/__package__/template/seaweed/entry_order_config/EntryOrderConfig.svelte.d.ts +1 -0
- package/.svelte-kit/__package__/template/seaweed/entry_order_config/entry-order-config.postcss +35 -0
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/app.postcss +4 -1
- package/dist/assets/icons/arrow-upward.svg +1 -0
- package/dist/components/Card.svelte +24 -3
- package/dist/components/Card.svelte.d.ts +1 -0
- package/dist/components/PineappleSlideToggle.svelte +10 -0
- package/dist/components/PineappleSlideToggle.svelte.d.ts +19 -0
- package/dist/components/chip/chip.postcss +0 -0
- package/dist/components/combo_box/ComboBoxWithButton.svelte +7 -0
- package/dist/components/pineapple/toast/Toast.svelte +4 -2
- package/dist/template/seaweed/CreateUrlForm.svelte +15 -3
- package/dist/template/seaweed/SeaweedTemplate.svelte +10 -6
- package/dist/template/seaweed/entries/MigranteAlberta.svelte +1 -1
- package/dist/template/seaweed/entries/MockUberApp.svelte +1 -1
- package/dist/template/seaweed/entries/ThisWebpage.svelte +1 -1
- package/dist/template/seaweed/entry_order_config/EntryOrderConfig.svelte +224 -47
- package/dist/template/seaweed/entry_order_config/EntryOrderConfig.svelte.d.ts +1 -0
- package/dist/template/seaweed/entry_order_config/entry-order-config.postcss +35 -0
- package/package.json +2 -2
- package/src/lib/app.postcss +4 -1
- package/src/lib/assets/icons/arrow-upward.svg +1 -0
- package/src/lib/components/Card.svelte +17 -2
- package/src/lib/components/PineappleSlideToggle.svelte +12 -0
- package/src/lib/components/{Chip.svelte → chip/Chip.svelte} +1 -1
- package/src/lib/components/chip/chip.postcss +0 -0
- package/src/lib/components/combo_box/ComboBoxWithButton.svelte +7 -0
- package/src/lib/components/pineapple/toast/Toast.svelte +4 -2
- package/src/lib/template/seaweed/CreateUrlForm.svelte +15 -3
- package/src/lib/template/seaweed/SeaweedTemplate.svelte +10 -6
- package/src/lib/template/seaweed/entries/MigranteAlberta.svelte +1 -1
- package/src/lib/template/seaweed/entries/MockUberApp.svelte +1 -1
- package/src/lib/template/seaweed/entries/ThisWebpage.svelte +1 -1
- package/src/lib/template/seaweed/entry_order_config/EntryOrderConfig.svelte +115 -28
- package/src/lib/template/seaweed/entry_order_config/entry-order-config.postcss +35 -0
- package/src/routes/(pineapple)/pineapple/(pineapple)/+page.svelte +4 -3
- /package/.svelte-kit/__package__/components/{Chip.svelte → chip/Chip.svelte} +0 -0
- /package/.svelte-kit/__package__/components/{Chip.svelte.d.ts → chip/Chip.svelte.d.ts} +0 -0
- /package/dist/components/{Chip.svelte → chip/Chip.svelte} +0 -0
- /package/dist/components/{Chip.svelte.d.ts → chip/Chip.svelte.d.ts} +0 -0
package/.idea/modules.xml
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ProjectModuleManager">
|
|
4
4
|
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/cdktf/.idea/cdktf.iml" filepath="$PROJECT_DIR$/cdktf/.idea/cdktf.iml" />
|
|
6
5
|
<module fileurl="file://$PROJECT_DIR$/.idea/pineapple.iml" filepath="$PROJECT_DIR$/.idea/pineapple.iml" />
|
|
7
6
|
</modules>
|
|
8
7
|
</component>
|
package/.idea/workspace.xml
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
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="CreateUrlForm" comment="
|
|
8
|
-
<change
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/src/lib/
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="CreateUrlForm" comment="Fix light mode contrast issues">
|
|
8
|
+
<change afterPath="$PROJECT_DIR$/src/lib/components/chip/chip.postcss" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/Chip.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/chip/Chip.svelte" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/src/lib/template/seaweed/entries/MigranteAlberta.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/template/seaweed/entries/MigranteAlberta.svelte" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/src/lib/template/seaweed/entries/MockUberApp.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/template/seaweed/entries/MockUberApp.svelte" afterDir="false" />
|
|
10
12
|
<change beforePath="$PROJECT_DIR$/src/lib/template/seaweed/entries/ThisWebpage.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/template/seaweed/entries/ThisWebpage.svelte" afterDir="false" />
|
|
11
13
|
</list>
|
|
12
14
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -56,13 +58,15 @@
|
|
|
56
58
|
<option value="RandomComponent" />
|
|
57
59
|
<option value="UrlShortenerForm" />
|
|
58
60
|
<option value="TypeScript File" />
|
|
61
|
+
<option value="PineappleSlideToggle" />
|
|
62
|
+
<option value="PostCSS File" />
|
|
59
63
|
</list>
|
|
60
64
|
</option>
|
|
61
65
|
</component>
|
|
62
66
|
<component name="Git.Settings">
|
|
63
67
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
64
68
|
<map>
|
|
65
|
-
<entry key="$PROJECT_DIR$" value="
|
|
69
|
+
<entry key="$PROJECT_DIR$" value="main" />
|
|
66
70
|
</map>
|
|
67
71
|
</option>
|
|
68
72
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
@@ -110,34 +114,34 @@
|
|
|
110
114
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
111
115
|
<option name="showLibraryContents" value="true" />
|
|
112
116
|
</component>
|
|
113
|
-
<component name="PropertiesComponent"
|
|
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
|
-
|
|
117
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
118
|
+
"keyToString": {
|
|
119
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
120
|
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
121
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
122
|
+
"WebServerToolWindowFactoryState": "false",
|
|
123
|
+
"git-widget-placeholder": "turnip/dev",
|
|
124
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
125
|
+
"last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple",
|
|
126
|
+
"list.type.of.created.stylesheet": "PostCSS",
|
|
127
|
+
"node.js.detected.package.eslint": "true",
|
|
128
|
+
"node.js.detected.package.tslint": "true",
|
|
129
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
130
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
131
|
+
"nodejs_interpreter_path": "node",
|
|
132
|
+
"nodejs_package_manager_path": "yarn",
|
|
133
|
+
"npm.build.executor": "Run",
|
|
134
|
+
"npm.dev (1).executor": "Run",
|
|
135
|
+
"npm.dev --open.executor": "Run",
|
|
136
|
+
"npm.dev offline.executor": "Run",
|
|
137
|
+
"npm.dev-offline.executor": "Run",
|
|
138
|
+
"npm.dev.executor": "Run",
|
|
139
|
+
"npm.to-dev.executor": "Run",
|
|
140
|
+
"settings.editor.selected.configurable": "settings.sync",
|
|
141
|
+
"ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
|
|
142
|
+
"vue.rearranger.settings.migration": "true"
|
|
139
143
|
}
|
|
140
|
-
}
|
|
144
|
+
}]]></component>
|
|
141
145
|
<component name="RecentsManager">
|
|
142
146
|
<key name="CopyFile.RECENT_KEYS">
|
|
143
147
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\api\create-url" />
|
|
@@ -147,11 +151,11 @@
|
|
|
147
151
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page3\page5" />
|
|
148
152
|
</key>
|
|
149
153
|
<key name="MoveFile.RECENT_KEYS">
|
|
154
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\chip" />
|
|
150
155
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\combo_box" />
|
|
151
156
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\docs\archive" />
|
|
152
157
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(pineapple)" />
|
|
153
158
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(nested)" />
|
|
154
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)" />
|
|
155
159
|
</key>
|
|
156
160
|
<key name="es6.move.members.recent.items">
|
|
157
161
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\types\RootLayoutProps.ts" />
|
|
@@ -337,39 +341,9 @@
|
|
|
337
341
|
<workItem from="1712560061741" duration="265000" />
|
|
338
342
|
<workItem from="1712560426380" duration="3011000" />
|
|
339
343
|
<workItem from="1712563659982" duration="1353000" />
|
|
340
|
-
<workItem from="1712570296984" duration="
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
<option name="closed" value="true" />
|
|
344
|
-
<created>1711910588771</created>
|
|
345
|
-
<option name="number" value="00121" />
|
|
346
|
-
<option name="presentableId" value="LOCAL-00121" />
|
|
347
|
-
<option name="project" value="LOCAL" />
|
|
348
|
-
<updated>1711910588772</updated>
|
|
349
|
-
</task>
|
|
350
|
-
<task id="LOCAL-00122" summary="WIP custom v1">
|
|
351
|
-
<option name="closed" value="true" />
|
|
352
|
-
<created>1711940053335</created>
|
|
353
|
-
<option name="number" value="00122" />
|
|
354
|
-
<option name="presentableId" value="LOCAL-00122" />
|
|
355
|
-
<option name="project" value="LOCAL" />
|
|
356
|
-
<updated>1711940053335</updated>
|
|
357
|
-
</task>
|
|
358
|
-
<task id="LOCAL-00123" summary="Rename Seaweed to seaweed">
|
|
359
|
-
<option name="closed" value="true" />
|
|
360
|
-
<created>1711940145763</created>
|
|
361
|
-
<option name="number" value="00123" />
|
|
362
|
-
<option name="presentableId" value="LOCAL-00123" />
|
|
363
|
-
<option name="project" value="LOCAL" />
|
|
364
|
-
<updated>1711940145763</updated>
|
|
365
|
-
</task>
|
|
366
|
-
<task id="LOCAL-00124" summary="Fully extract all entries from groups">
|
|
367
|
-
<option name="closed" value="true" />
|
|
368
|
-
<created>1711943579891</created>
|
|
369
|
-
<option name="number" value="00124" />
|
|
370
|
-
<option name="presentableId" value="LOCAL-00124" />
|
|
371
|
-
<option name="project" value="LOCAL" />
|
|
372
|
-
<updated>1711943579891</updated>
|
|
344
|
+
<workItem from="1712570296984" duration="1559000" />
|
|
345
|
+
<workItem from="1712571884570" duration="7000" />
|
|
346
|
+
<workItem from="1712636226857" duration="10964000" />
|
|
373
347
|
</task>
|
|
374
348
|
<task id="LOCAL-00125" summary="Allow full reordering for entries">
|
|
375
349
|
<option name="closed" value="true" />
|
|
@@ -731,7 +705,39 @@
|
|
|
731
705
|
<option name="project" value="LOCAL" />
|
|
732
706
|
<updated>1712563193335</updated>
|
|
733
707
|
</task>
|
|
734
|
-
<
|
|
708
|
+
<task id="LOCAL-00170" summary="Fix component names being deprettified">
|
|
709
|
+
<option name="closed" value="true" />
|
|
710
|
+
<created>1712571707602</created>
|
|
711
|
+
<option name="number" value="00170" />
|
|
712
|
+
<option name="presentableId" value="LOCAL-00170" />
|
|
713
|
+
<option name="project" value="LOCAL" />
|
|
714
|
+
<updated>1712571707602</updated>
|
|
715
|
+
</task>
|
|
716
|
+
<task id="LOCAL-00171" summary="Fix Advanced Settings layout in dark more">
|
|
717
|
+
<option name="closed" value="true" />
|
|
718
|
+
<created>1712643641833</created>
|
|
719
|
+
<option name="number" value="00171" />
|
|
720
|
+
<option name="presentableId" value="LOCAL-00171" />
|
|
721
|
+
<option name="project" value="LOCAL" />
|
|
722
|
+
<updated>1712643641833</updated>
|
|
723
|
+
</task>
|
|
724
|
+
<task id="LOCAL-00172" summary="Fix Advanced Settings layout in dark mode">
|
|
725
|
+
<option name="closed" value="true" />
|
|
726
|
+
<created>1712643646820</created>
|
|
727
|
+
<option name="number" value="00172" />
|
|
728
|
+
<option name="presentableId" value="LOCAL-00172" />
|
|
729
|
+
<option name="project" value="LOCAL" />
|
|
730
|
+
<updated>1712643646820</updated>
|
|
731
|
+
</task>
|
|
732
|
+
<task id="LOCAL-00173" summary="Fix light mode contrast issues">
|
|
733
|
+
<option name="closed" value="true" />
|
|
734
|
+
<created>1712647325849</created>
|
|
735
|
+
<option name="number" value="00173" />
|
|
736
|
+
<option name="presentableId" value="LOCAL-00173" />
|
|
737
|
+
<option name="project" value="LOCAL" />
|
|
738
|
+
<updated>1712647325849</updated>
|
|
739
|
+
</task>
|
|
740
|
+
<option name="localTasksCounter" value="174" />
|
|
735
741
|
<servers />
|
|
736
742
|
</component>
|
|
737
743
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -789,10 +795,6 @@
|
|
|
789
795
|
</option>
|
|
790
796
|
</component>
|
|
791
797
|
<component name="VcsManagerConfiguration">
|
|
792
|
-
<MESSAGE value="Temporarily delete workflow to let Azure auto-generate secrets" />
|
|
793
|
-
<MESSAGE value="Change npm to yarn in GithubActions" />
|
|
794
|
-
<MESSAGE value="Cancel migration to Azure" />
|
|
795
|
-
<MESSAGE value="Extract plan for dynamic portfolio layout" />
|
|
796
798
|
<MESSAGE value="Remove floating-ui" />
|
|
797
799
|
<MESSAGE value="Move shouldAddFunNote to data" />
|
|
798
800
|
<MESSAGE value="Extract runChaos to its own file" />
|
|
@@ -814,6 +816,10 @@
|
|
|
814
816
|
<MESSAGE value="Change parseQueryTerm to parse during runtime on the DOM instead of on the raw svelte text" />
|
|
815
817
|
<MESSAGE value="Add dynamic url adder UI" />
|
|
816
818
|
<MESSAGE value="Add CreateUrl UI" />
|
|
817
|
-
<
|
|
819
|
+
<MESSAGE value="Fix component names being deprettified" />
|
|
820
|
+
<MESSAGE value="Fix Advanced Settings layout in dark more" />
|
|
821
|
+
<MESSAGE value="Fix Advanced Settings layout in dark mode" />
|
|
822
|
+
<MESSAGE value="Fix light mode contrast issues" />
|
|
823
|
+
<option name="LAST_COMMIT_MESSAGE" value="Fix light mode contrast issues" />
|
|
818
824
|
</component>
|
|
819
825
|
</project>
|
|
@@ -185,7 +185,6 @@ a:active {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
#toast-progress::-moz-progress-bar {
|
|
188
|
-
/*background-color: red;*/
|
|
189
188
|
background: rgba(var(--color-secondary-500));
|
|
190
189
|
}
|
|
191
190
|
|
|
@@ -207,3 +206,7 @@ a:active {
|
|
|
207
206
|
.dark .ares-logo {
|
|
208
207
|
filter: invert(100%);
|
|
209
208
|
}
|
|
209
|
+
|
|
210
|
+
.input {
|
|
211
|
+
@apply border-surface-800;
|
|
212
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M440-160v-487L216-423l-56-57 320-320 320 320-56 57-224-224v487h-80Z"/></svg>
|
|
@@ -3,6 +3,7 @@ export let marginBottom = "2lh";
|
|
|
3
3
|
export let overrideStyle = "";
|
|
4
4
|
export let includeDataNoSnippet = true;
|
|
5
5
|
export let additionalClass = [];
|
|
6
|
+
export let turnOnLightModeBorder = true;
|
|
6
7
|
const style = `
|
|
7
8
|
--turnip-card-margin: ${margin};
|
|
8
9
|
--turnip-card-margin-bottom: ${marginBottom};
|
|
@@ -11,7 +12,16 @@ const style = `
|
|
|
11
12
|
if (!$$slots.content) {
|
|
12
13
|
console.error("Missing content slot in card. No content will be displayed.");
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const originalClasses = ["card", "turnip-card"].concat(additionalClass).join(" ");
|
|
16
|
+
let classes = originalClasses.slice();
|
|
17
|
+
const toggleLightModeBorder = (turnOnLightModeBorder2) => {
|
|
18
|
+
classes = originalClasses;
|
|
19
|
+
if (turnOnLightModeBorder2) {
|
|
20
|
+
classes += " light-mode-border";
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
$:
|
|
24
|
+
toggleLightModeBorder(turnOnLightModeBorder);
|
|
15
25
|
</script>
|
|
16
26
|
|
|
17
27
|
{#if (includeDataNoSnippet)}
|
|
@@ -19,17 +29,28 @@ const classes = ["card", "turnip-card"].concat(additionalClass).join(" ");
|
|
|
19
29
|
<slot name="content" class="card" />
|
|
20
30
|
</div>
|
|
21
31
|
{:else }
|
|
22
|
-
<div class=
|
|
32
|
+
<div class={classes} style={style}>
|
|
23
33
|
<slot name="content" class="card" />
|
|
24
34
|
</div>
|
|
25
35
|
{/if}
|
|
26
36
|
|
|
27
37
|
<style>
|
|
38
|
+
/*noinspection CssUnusedSymbol*/
|
|
39
|
+
.light-mode-border {
|
|
40
|
+
border-width: 2px;
|
|
41
|
+
--tw-border-opacity: 1;
|
|
42
|
+
border-color: rgb(var(--color-surface-600) / var(--tw-border-opacity));
|
|
43
|
+
}
|
|
44
|
+
:is(.dark .light-mode-border) {
|
|
45
|
+
border-width: 0px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/*noinspection CssUnusedSymbol*/
|
|
28
49
|
.turnip-card {
|
|
29
50
|
--tw-bg-opacity: 1;
|
|
30
51
|
background-color: rgb(var(--color-surface-100) / var(--tw-bg-opacity));
|
|
31
52
|
}
|
|
32
|
-
:is(.dark .turnip-card) {
|
|
53
|
+
:is(.dark .turnip-card) {
|
|
33
54
|
--tw-bg-opacity: 1;
|
|
34
55
|
background-color: rgb(var(--color-surface-900) / var(--tw-bg-opacity));
|
|
35
56
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
checked?: boolean | undefined;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type PineappleSlideToggleProps = typeof __propDef.props;
|
|
15
|
+
export type PineappleSlideToggleEvents = typeof __propDef.events;
|
|
16
|
+
export type PineappleSlideToggleSlots = typeof __propDef.slots;
|
|
17
|
+
export default class PineappleSlideToggle extends SvelteComponent<PineappleSlideToggleProps, PineappleSlideToggleEvents, PineappleSlideToggleSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
File without changes
|
|
@@ -56,7 +56,9 @@ const dismissToast = () => {
|
|
|
56
56
|
{#if (localComponent !== undefined)}
|
|
57
57
|
<div class="toast-positioner" style={`bottom: ${$position}lh;`}>
|
|
58
58
|
<!-- todo: adjust shadow to be more dynamic or transparent -->
|
|
59
|
-
<Card marginBottom="1lh"
|
|
59
|
+
<Card marginBottom="1lh"
|
|
60
|
+
turnOnLightModeBorder={false}
|
|
61
|
+
overrideStyle="box-shadow: 3px 3px 3px var(--shadow-color);">
|
|
60
62
|
<div slot="content">
|
|
61
63
|
{#if (localProps !== undefined)}
|
|
62
64
|
<svelte:component this={localComponent}
|
|
@@ -77,7 +79,7 @@ const dismissToast = () => {
|
|
|
77
79
|
position: fixed;
|
|
78
80
|
/* 12em = this component's margin (4em) + fab margin + width (8em) */
|
|
79
81
|
max-width: calc(100vw - 12em);
|
|
80
|
-
|
|
82
|
+
z-index: 100;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.toast-positioner:dir(ltr) {
|
|
@@ -37,7 +37,7 @@ const post = () => {
|
|
|
37
37
|
};
|
|
38
38
|
</script>
|
|
39
39
|
|
|
40
|
-
<div>
|
|
40
|
+
<div class="local-list">
|
|
41
41
|
<label for="short-url">Short URL for url shortener</label>
|
|
42
42
|
<input bind:value={request.shortUrl}
|
|
43
43
|
name="short-url"
|
|
@@ -49,6 +49,18 @@ const post = () => {
|
|
|
49
49
|
name="password"
|
|
50
50
|
class="input"
|
|
51
51
|
type="password"
|
|
52
|
-
placeholder="
|
|
53
|
-
<button class="btn variant-filled" on:click={post}>Send link</button>
|
|
52
|
+
placeholder="ILoveTurnips" />
|
|
53
|
+
<button class="send-link btn variant-filled" on:click={post}>Send link</button>
|
|
54
54
|
</div>
|
|
55
|
+
|
|
56
|
+
<style>
|
|
57
|
+
.local-list {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: 0.25lh;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.send-link {
|
|
64
|
+
margin-top: 0.75lh;
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from "./SeaweedTemplateData";
|
|
17
17
|
import { parseQueryTerms } from "./ParseQueryTerms";
|
|
18
18
|
import UrlShortenerForm from "./CreateUrlForm.svelte";
|
|
19
|
+
import PineappleSlideToggle from "../../components/PineappleSlideToggle.svelte";
|
|
19
20
|
export let letChaos = true;
|
|
20
21
|
export let name = "Turnip";
|
|
21
22
|
export let email = "turnipxenon@gmail.com";
|
|
@@ -324,18 +325,21 @@ $:
|
|
|
324
325
|
<h1>Advanced settings</h1>
|
|
325
326
|
<p>This one is for those curious how I customize this page.</p>
|
|
326
327
|
|
|
327
|
-
<
|
|
328
|
+
<PineappleSlideToggle name="advanced-setting-slider"
|
|
329
|
+
bind:checked={isAdvanceSettingOn}>
|
|
328
330
|
Advanced settings: {isAdvanceSettingOn ? "On" : "Off"}
|
|
329
|
-
</
|
|
331
|
+
</PineappleSlideToggle>
|
|
330
332
|
|
|
331
333
|
{#if (isAdvanceSettingOn)}
|
|
332
|
-
<
|
|
334
|
+
<PineappleSlideToggle name="game-section-slider"
|
|
335
|
+
bind:checked={seaweedTemplateData.gameSectionFirst}>
|
|
333
336
|
Should game section appear first over projects: {seaweedTemplateData.gameSectionFirst ? "On" : "Off"}
|
|
334
|
-
</
|
|
337
|
+
</PineappleSlideToggle>
|
|
335
338
|
<p>Note: the above configuration was made before the dynamic entry list and to support links sent with that params, we will act like it only swaps the two groups, and nothing more dynamic if order query param does not exist. The configuration only happens during page load with query param, and it does not apply when changed here.</p>
|
|
336
|
-
<
|
|
339
|
+
<PineappleSlideToggle name="fun-note-slider"
|
|
340
|
+
bind:checked={seaweedTemplateData.shouldAddFunNote}>
|
|
337
341
|
Should add fun note in description: {seaweedTemplateData.shouldAddFunNote ? "On" : "Off"}
|
|
338
|
-
</
|
|
342
|
+
</PineappleSlideToggle>
|
|
339
343
|
|
|
340
344
|
<h3>Query terms to bold</h3>
|
|
341
345
|
<div class="query-term-grid">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>import Chip from "../../../components/Chip.svelte";
|
|
1
|
+
<script>import Chip from "../../../components/chip/Chip.svelte";
|
|
2
2
|
import {} from "./EntryProps";
|
|
3
3
|
import LinkIcon from "../../../assets/icons/link-icon.svg";
|
|
4
4
|
import Card from "../../../components/Card.svelte";
|
|
@@ -3,7 +3,7 @@ import Card from "../../../components/Card.svelte";
|
|
|
3
3
|
import GithubIcon from "../../../assets/icons/github-mark.svg";
|
|
4
4
|
import WindowSetGraph from "../../../assets/others/window-set.png";
|
|
5
5
|
import ThisWebsiteFootage from "../../../assets/others/seaweed-showcase.mp4";
|
|
6
|
-
import Chip from "../../../components/Chip.svelte";
|
|
6
|
+
import Chip from "../../../components/chip/Chip.svelte";
|
|
7
7
|
export let props;
|
|
8
8
|
</script>
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import Card from "../../../components/Card.svelte";
|
|
|
3
3
|
import GithubIcon from "../../../assets/icons/github-mark.svg";
|
|
4
4
|
import WindowSetGraph from "../../../assets/others/window-set.png";
|
|
5
5
|
import ThisWebsiteFootage from "../../../assets/others/seaweed-showcase.mp4";
|
|
6
|
-
import Chip from "../../../components/Chip.svelte";
|
|
6
|
+
import Chip from "../../../components/chip/Chip.svelte";
|
|
7
7
|
export let props;
|
|
8
8
|
</script>
|
|
9
9
|
|