@turnipxenon/pineapple 2.4.13 → 2.4.14
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/discord.xml +1 -1
- package/.idea/workspace.xml +125 -110
- package/.svelte-kit/__package__/app.postcss +28 -2
- package/.svelte-kit/__package__/assets/icons/close.svg +1 -0
- package/.svelte-kit/__package__/components/Card.svelte +1 -1
- package/.svelte-kit/__package__/components/Chip.svelte +1 -0
- package/.svelte-kit/__package__/components/{layouts → pineapple}/PineappleBaseLayout.svelte +48 -24
- package/.svelte-kit/__package__/components/pineapple/overlay_manager/OverlayManager.d.ts +0 -0
- package/.svelte-kit/__package__/components/pineapple/overlay_manager/OverlayManager.js +1 -0
- package/.svelte-kit/__package__/components/pineapple/toast/DefaultToastBody.d.ts +8 -0
- package/.svelte-kit/__package__/components/pineapple/toast/DefaultToastBody.js +1 -0
- package/.svelte-kit/__package__/components/pineapple/toast/DefaultToastBody.svelte +48 -0
- package/.svelte-kit/__package__/components/pineapple/toast/DefaultToastBody.svelte.d.ts +20 -0
- package/.svelte-kit/__package__/components/pineapple/toast/Toast.d.ts +27 -0
- package/.svelte-kit/__package__/components/pineapple/toast/Toast.js +37 -0
- package/.svelte-kit/__package__/components/pineapple/toast/Toast.svelte +89 -0
- package/.svelte-kit/__package__/components/pineapple/toast/Toast.svelte.d.ts +14 -0
- package/.svelte-kit/__package__/components/pineapple/toast/custom-toast/TestCustomToast.d.ts +5 -0
- package/.svelte-kit/__package__/components/pineapple/toast/custom-toast/TestCustomToast.js +1 -0
- package/.svelte-kit/__package__/components/pineapple/toast/custom-toast/TestCustomToast.svelte +1 -0
- package/.svelte-kit/__package__/components/pineapple/toast/custom-toast/TestCustomToast.svelte.d.ts +23 -0
- package/.svelte-kit/__package__/index.d.ts +1 -1
- package/.svelte-kit/__package__/index.js +1 -1
- package/.svelte-kit/generated/client/app.js +1 -1
- package/.svelte-kit/generated/client/nodes/5.js +1 -1
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/.svelte-kit/types/route_meta_data.json +1 -1
- package/.svelte-kit/types/src/routes/$types.d.ts +1 -1
- package/.svelte-kit/types/src/routes/(pineapple)/$types.d.ts +1 -1
- package/.svelte-kit/types/src/routes/(pineapple)/{personal → pineapple}/$types.d.ts +1 -1
- package/dist/app.postcss +28 -2
- package/dist/assets/icons/close.svg +1 -0
- package/dist/components/Card.svelte +1 -1
- package/dist/components/Chip.svelte +1 -0
- package/dist/components/{layouts → pineapple}/PineappleBaseLayout.svelte +48 -24
- package/dist/components/pineapple/overlay_manager/OverlayManager.d.ts +0 -0
- package/dist/components/pineapple/overlay_manager/OverlayManager.js +1 -0
- package/dist/components/pineapple/toast/DefaultToastBody.d.ts +8 -0
- package/dist/components/pineapple/toast/DefaultToastBody.js +1 -0
- package/dist/components/pineapple/toast/DefaultToastBody.svelte +48 -0
- package/dist/components/pineapple/toast/DefaultToastBody.svelte.d.ts +20 -0
- package/dist/components/pineapple/toast/Toast.d.ts +27 -0
- package/dist/components/pineapple/toast/Toast.js +37 -0
- package/dist/components/pineapple/toast/Toast.svelte +89 -0
- package/dist/components/pineapple/toast/Toast.svelte.d.ts +14 -0
- package/dist/components/pineapple/toast/custom-toast/TestCustomToast.d.ts +5 -0
- package/dist/components/pineapple/toast/custom-toast/TestCustomToast.js +1 -0
- package/dist/components/pineapple/toast/custom-toast/TestCustomToast.svelte +1 -0
- package/dist/components/pineapple/toast/custom-toast/TestCustomToast.svelte.d.ts +23 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/OverlaySpec.md +23 -0
- package/docs/pull_request_template.md +34 -0
- package/package.json +1 -1
- package/src/lib/app.postcss +28 -2
- package/src/lib/assets/icons/close.svg +1 -0
- package/src/lib/components/Card.svelte +1 -1
- package/src/lib/components/Chip.svelte +1 -0
- package/src/lib/components/pineapple/PineappleBaseLayout.svelte +207 -0
- package/src/lib/components/pineapple/overlay_manager/OverlayManager.ts +0 -0
- package/src/lib/components/pineapple/toast/DefaultToastBody.svelte +43 -0
- package/src/lib/components/pineapple/toast/DefaultToastBody.ts +10 -0
- package/src/lib/components/pineapple/toast/Toast.svelte +113 -0
- package/src/lib/components/pineapple/toast/Toast.ts +57 -0
- package/src/lib/components/pineapple/toast/custom-toast/TestCustomToast.svelte +1 -0
- package/src/lib/components/pineapple/toast/custom-toast/TestCustomToast.ts +6 -0
- package/src/lib/index.ts +1 -1
- package/src/routes/(pineapple)/+layout.svelte +1 -1
- package/src/routes/(pineapple)/+page.svelte +2 -2
- package/src/routes/(pineapple)/pineapple/+page.svelte +44 -0
- package/src/lib/components/layouts/PineappleBaseLayout.svelte +0 -182
- package/src/routes/(pineapple)/personal/+page.svelte +0 -37
- /package/.svelte-kit/__package__/components/{layouts → pineapple}/PineappleBaseLayout.svelte.d.ts +0 -0
- /package/dist/components/{layouts → pineapple}/PineappleBaseLayout.svelte.d.ts +0 -0
package/.idea/discord.xml
CHANGED
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="Changes" comment="Add
|
|
8
|
-
<change
|
|
9
|
-
<change
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Add default PR template">
|
|
8
|
+
<change afterPath="$PROJECT_DIR$/docs/OverlaySpec.md" afterDir="false" />
|
|
9
|
+
<change afterPath="$PROJECT_DIR$/src/lib/components/pineapple/overlay_manager/OverlayManager.ts" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/Chip.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/Chip.svelte" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/pineapple/toast/Toast.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/pineapple/toast/Toast.svelte" afterDir="false" />
|
|
10
12
|
</list>
|
|
11
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
12
14
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -34,6 +36,8 @@
|
|
|
34
36
|
<option value="Card" />
|
|
35
37
|
<option value="Chip" />
|
|
36
38
|
<option value="ToggleableContent" />
|
|
39
|
+
<option value="Toast" />
|
|
40
|
+
<option value="TestCard" />
|
|
37
41
|
<option value="TypeScript File" />
|
|
38
42
|
</list>
|
|
39
43
|
</option>
|
|
@@ -45,7 +49,7 @@
|
|
|
45
49
|
</map>
|
|
46
50
|
</option>
|
|
47
51
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
48
|
-
<option name="RESET_MODE" value="
|
|
52
|
+
<option name="RESET_MODE" value="HARD" />
|
|
49
53
|
<option name="ROOT_SYNC" value="DONT_SYNC" />
|
|
50
54
|
</component>
|
|
51
55
|
<component name="JsbtTreeLayoutManager">
|
|
@@ -70,46 +74,46 @@
|
|
|
70
74
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
71
75
|
<option name="showLibraryContents" value="true" />
|
|
72
76
|
</component>
|
|
73
|
-
<component name="PropertiesComponent"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
77
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
78
|
+
"keyToString": {
|
|
79
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
80
|
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
81
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
82
|
+
"WebServerToolWindowFactoryState": "false",
|
|
83
|
+
"git-widget-placeholder": "turnip/fix",
|
|
84
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
85
|
+
"last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/components/pineapple/toast/custom-toast",
|
|
86
|
+
"node.js.detected.package.eslint": "true",
|
|
87
|
+
"node.js.detected.package.tslint": "true",
|
|
88
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
89
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
90
|
+
"nodejs_interpreter_path": "node",
|
|
91
|
+
"nodejs_package_manager_path": "yarn",
|
|
92
|
+
"npm.build.executor": "Run",
|
|
93
|
+
"npm.dev (1).executor": "Run",
|
|
94
|
+
"npm.dev --open.executor": "Run",
|
|
95
|
+
"npm.dev offline.executor": "Run",
|
|
96
|
+
"npm.dev-offline.executor": "Run",
|
|
97
|
+
"npm.dev.executor": "Run",
|
|
98
|
+
"settings.editor.selected.configurable": "preferences.pluginManager",
|
|
99
|
+
"ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
|
|
100
|
+
"vue.rearranger.settings.migration": "true"
|
|
97
101
|
}
|
|
98
|
-
}
|
|
102
|
+
}]]></component>
|
|
99
103
|
<component name="RecentsManager">
|
|
100
104
|
<key name="CopyFile.RECENT_KEYS">
|
|
105
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\pineapple\toast\custom-toast" />
|
|
106
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\pineapple\toast" />
|
|
101
107
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)" />
|
|
102
108
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(seaweed)" />
|
|
103
109
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\portfolio" />
|
|
104
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple" />
|
|
105
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\speenus" />
|
|
106
110
|
</key>
|
|
107
111
|
<key name="MoveFile.RECENT_KEYS">
|
|
112
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\pineapple\toast\custom-toast" />
|
|
113
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\pineapple\toast" />
|
|
114
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\pineapple" />
|
|
108
115
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)" />
|
|
109
116
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(seaweed)" />
|
|
110
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components" />
|
|
111
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\template" />
|
|
112
|
-
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\styles" />
|
|
113
117
|
</key>
|
|
114
118
|
</component>
|
|
115
119
|
<component name="RunManager" selected="npm.dev --open">
|
|
@@ -142,6 +146,8 @@
|
|
|
142
146
|
<list>
|
|
143
147
|
<item itemvalue="npm.dev --open" />
|
|
144
148
|
<item itemvalue="npm.dev-offline" />
|
|
149
|
+
<item itemvalue="npm.dev --open" />
|
|
150
|
+
<item itemvalue="npm.dev-offline" />
|
|
145
151
|
</list>
|
|
146
152
|
</recent_temporary>
|
|
147
153
|
</component>
|
|
@@ -186,71 +192,16 @@
|
|
|
186
192
|
<workItem from="1710289549437" duration="12580000" />
|
|
187
193
|
<workItem from="1710373069951" duration="3591000" />
|
|
188
194
|
<workItem from="1710403138174" duration="704000" />
|
|
189
|
-
<workItem from="1710403890552" duration="
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<
|
|
193
|
-
<
|
|
194
|
-
<
|
|
195
|
-
<
|
|
196
|
-
<
|
|
197
|
-
<
|
|
198
|
-
|
|
199
|
-
<task id="LOCAL-00016" summary="Restrict mutex to one Only one yarn instance should run to prevent corrupting other files">
|
|
200
|
-
<option name="closed" value="true" />
|
|
201
|
-
<created>1709799004321</created>
|
|
202
|
-
<option name="number" value="00016" />
|
|
203
|
-
<option name="presentableId" value="LOCAL-00016" />
|
|
204
|
-
<option name="project" value="LOCAL" />
|
|
205
|
-
<updated>1709799004321</updated>
|
|
206
|
-
</task>
|
|
207
|
-
<task id="LOCAL-00017" summary="Restrict mutex to one Only one yarn instance should run to prevent corrupting other files">
|
|
208
|
-
<option name="closed" value="true" />
|
|
209
|
-
<created>1709799061435</created>
|
|
210
|
-
<option name="number" value="00017" />
|
|
211
|
-
<option name="presentableId" value="LOCAL-00017" />
|
|
212
|
-
<option name="project" value="LOCAL" />
|
|
213
|
-
<updated>1709799061435</updated>
|
|
214
|
-
</task>
|
|
215
|
-
<task id="LOCAL-00018" summary="Remove prepare script again">
|
|
216
|
-
<option name="closed" value="true" />
|
|
217
|
-
<created>1709799419674</created>
|
|
218
|
-
<option name="number" value="00018" />
|
|
219
|
-
<option name="presentableId" value="LOCAL-00018" />
|
|
220
|
-
<option name="project" value="LOCAL" />
|
|
221
|
-
<updated>1709799419674</updated>
|
|
222
|
-
</task>
|
|
223
|
-
<task id="LOCAL-00019" summary="Fix format">
|
|
224
|
-
<option name="closed" value="true" />
|
|
225
|
-
<created>1709799503506</created>
|
|
226
|
-
<option name="number" value="00019" />
|
|
227
|
-
<option name="presentableId" value="LOCAL-00019" />
|
|
228
|
-
<option name="project" value="LOCAL" />
|
|
229
|
-
<updated>1709799503506</updated>
|
|
230
|
-
</task>
|
|
231
|
-
<task id="LOCAL-00020" summary="Remove yarnrc mutex">
|
|
232
|
-
<option name="closed" value="true" />
|
|
233
|
-
<created>1709799705567</created>
|
|
234
|
-
<option name="number" value="00020" />
|
|
235
|
-
<option name="presentableId" value="LOCAL-00020" />
|
|
236
|
-
<option name="project" value="LOCAL" />
|
|
237
|
-
<updated>1709799705567</updated>
|
|
238
|
-
</task>
|
|
239
|
-
<task id="LOCAL-00021" summary="Update package.json for publishing">
|
|
240
|
-
<option name="closed" value="true" />
|
|
241
|
-
<created>1709800364650</created>
|
|
242
|
-
<option name="number" value="00021" />
|
|
243
|
-
<option name="presentableId" value="LOCAL-00021" />
|
|
244
|
-
<option name="project" value="LOCAL" />
|
|
245
|
-
<updated>1709800364650</updated>
|
|
246
|
-
</task>
|
|
247
|
-
<task id="LOCAL-00022" summary="Update layout for portfolio">
|
|
248
|
-
<option name="closed" value="true" />
|
|
249
|
-
<created>1709831870879</created>
|
|
250
|
-
<option name="number" value="00022" />
|
|
251
|
-
<option name="presentableId" value="LOCAL-00022" />
|
|
252
|
-
<option name="project" value="LOCAL" />
|
|
253
|
-
<updated>1709831870879</updated>
|
|
195
|
+
<workItem from="1710403890552" duration="136000" />
|
|
196
|
+
<workItem from="1710452675953" duration="2003000" />
|
|
197
|
+
<workItem from="1710469859511" duration="5000" />
|
|
198
|
+
<workItem from="1710471362988" duration="1660000" />
|
|
199
|
+
<workItem from="1710540704044" duration="3221000" />
|
|
200
|
+
<workItem from="1710553558444" duration="11978000" />
|
|
201
|
+
<workItem from="1710565588306" duration="339000" />
|
|
202
|
+
<workItem from="1710566188907" duration="950000" />
|
|
203
|
+
<workItem from="1710623596666" duration="2298000" />
|
|
204
|
+
<workItem from="1710645881933" duration="7972000" />
|
|
254
205
|
</task>
|
|
255
206
|
<task id="LOCAL-00023" summary="Implement throwoway prototype for game showcase carousel">
|
|
256
207
|
<option name="closed" value="true" />
|
|
@@ -580,7 +531,71 @@
|
|
|
580
531
|
<option name="project" value="LOCAL" />
|
|
581
532
|
<updated>1710403640566</updated>
|
|
582
533
|
</task>
|
|
583
|
-
<
|
|
534
|
+
<task id="LOCAL-00064" summary="Implement normal state for PineappleBaseLayout">
|
|
535
|
+
<option name="closed" value="true" />
|
|
536
|
+
<created>1710473020513</created>
|
|
537
|
+
<option name="number" value="00064" />
|
|
538
|
+
<option name="presentableId" value="LOCAL-00064" />
|
|
539
|
+
<option name="project" value="LOCAL" />
|
|
540
|
+
<updated>1710473020514</updated>
|
|
541
|
+
</task>
|
|
542
|
+
<task id="LOCAL-00065" summary="Add custom toast">
|
|
543
|
+
<option name="closed" value="true" />
|
|
544
|
+
<created>1710560664163</created>
|
|
545
|
+
<option name="number" value="00065" />
|
|
546
|
+
<option name="presentableId" value="LOCAL-00065" />
|
|
547
|
+
<option name="project" value="LOCAL" />
|
|
548
|
+
<updated>1710560664164</updated>
|
|
549
|
+
</task>
|
|
550
|
+
<task id="LOCAL-00066" summary="Add simple text toast">
|
|
551
|
+
<option name="closed" value="true" />
|
|
552
|
+
<created>1710564041434</created>
|
|
553
|
+
<option name="number" value="00066" />
|
|
554
|
+
<option name="presentableId" value="LOCAL-00066" />
|
|
555
|
+
<option name="project" value="LOCAL" />
|
|
556
|
+
<updated>1710564041434</updated>
|
|
557
|
+
</task>
|
|
558
|
+
<task id="LOCAL-00067" summary="Enforce stricter typing for Toast components">
|
|
559
|
+
<option name="closed" value="true" />
|
|
560
|
+
<created>1710565506639</created>
|
|
561
|
+
<option name="number" value="00067" />
|
|
562
|
+
<option name="presentableId" value="LOCAL-00067" />
|
|
563
|
+
<option name="project" value="LOCAL" />
|
|
564
|
+
<updated>1710565506640</updated>
|
|
565
|
+
</task>
|
|
566
|
+
<task id="LOCAL-00068" summary="Add dismissable toast">
|
|
567
|
+
<option name="closed" value="true" />
|
|
568
|
+
<created>1710648639268</created>
|
|
569
|
+
<option name="number" value="00068" />
|
|
570
|
+
<option name="presentableId" value="LOCAL-00068" />
|
|
571
|
+
<option name="project" value="LOCAL" />
|
|
572
|
+
<updated>1710648639269</updated>
|
|
573
|
+
</task>
|
|
574
|
+
<task id="LOCAL-00069" summary="Adjust default toast body styling and add shadow to toast">
|
|
575
|
+
<option name="closed" value="true" />
|
|
576
|
+
<created>1710650031611</created>
|
|
577
|
+
<option name="number" value="00069" />
|
|
578
|
+
<option name="presentableId" value="LOCAL-00069" />
|
|
579
|
+
<option name="project" value="LOCAL" />
|
|
580
|
+
<updated>1710650031611</updated>
|
|
581
|
+
</task>
|
|
582
|
+
<task id="LOCAL-00070" summary="Clean up todos">
|
|
583
|
+
<option name="closed" value="true" />
|
|
584
|
+
<created>1710651196828</created>
|
|
585
|
+
<option name="number" value="00070" />
|
|
586
|
+
<option name="presentableId" value="LOCAL-00070" />
|
|
587
|
+
<option name="project" value="LOCAL" />
|
|
588
|
+
<updated>1710651196829</updated>
|
|
589
|
+
</task>
|
|
590
|
+
<task id="LOCAL-00071" summary="Add default PR template">
|
|
591
|
+
<option name="closed" value="true" />
|
|
592
|
+
<created>1710651695177</created>
|
|
593
|
+
<option name="number" value="00071" />
|
|
594
|
+
<option name="presentableId" value="LOCAL-00071" />
|
|
595
|
+
<option name="project" value="LOCAL" />
|
|
596
|
+
<updated>1710651695177</updated>
|
|
597
|
+
</task>
|
|
598
|
+
<option name="localTasksCounter" value="72" />
|
|
584
599
|
<servers />
|
|
585
600
|
</component>
|
|
586
601
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -618,7 +633,7 @@
|
|
|
618
633
|
<entry key="branch">
|
|
619
634
|
<value>
|
|
620
635
|
<list>
|
|
621
|
-
<option value="
|
|
636
|
+
<option value="main" />
|
|
622
637
|
</list>
|
|
623
638
|
</value>
|
|
624
639
|
</entry>
|
|
@@ -638,14 +653,6 @@
|
|
|
638
653
|
</option>
|
|
639
654
|
</component>
|
|
640
655
|
<component name="VcsManagerConfiguration">
|
|
641
|
-
<MESSAGE value="Turn the portfolio site into a template" />
|
|
642
|
-
<MESSAGE value="Add content replacer v1" />
|
|
643
|
-
<MESSAGE value="Testing toggleable content" />
|
|
644
|
-
<MESSAGE value="switch up image and videos too" />
|
|
645
|
-
<MESSAGE value="Solve videos not dynamically loading" />
|
|
646
|
-
<MESSAGE value="Fix unnecessary iframe requests" />
|
|
647
|
-
<MESSAGE value="Remove unnecessary iframe requests" />
|
|
648
|
-
<MESSAGE value="Extract head elements out of template component" />
|
|
649
656
|
<MESSAGE value="Fix path for Seaweed" />
|
|
650
657
|
<MESSAGE value="Move from dist to lib for package path" />
|
|
651
658
|
<MESSAGE value="Add missing npm run package to allow dist generation" />
|
|
@@ -663,6 +670,14 @@
|
|
|
663
670
|
<MESSAGE value="Improve text contrast" />
|
|
664
671
|
<MESSAGE value="Improve text contrast in dark mode" />
|
|
665
672
|
<MESSAGE value="Add animation to dynamically added button in social section" />
|
|
666
|
-
<
|
|
673
|
+
<MESSAGE value="Implement normal state for PineappleBaseLayout" />
|
|
674
|
+
<MESSAGE value="Add custom toast" />
|
|
675
|
+
<MESSAGE value="Add simple text toast and toast queue" />
|
|
676
|
+
<MESSAGE value="Enforce stricter typing for Toast components" />
|
|
677
|
+
<MESSAGE value="Add dismissable toast" />
|
|
678
|
+
<MESSAGE value="Adjust default toast body styling and add shadow to toast" />
|
|
679
|
+
<MESSAGE value="Clean up todos" />
|
|
680
|
+
<MESSAGE value="Add default PR template" />
|
|
681
|
+
<option name="LAST_COMMIT_MESSAGE" value="Add default PR template" />
|
|
667
682
|
</component>
|
|
668
683
|
</project>
|
|
@@ -41,11 +41,11 @@ html, body {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* todo: add some hues to the icon that should be in sync with primary and make them not pure darkness */
|
|
44
|
-
.turnip-button > img {
|
|
44
|
+
.turnip-button > img, .img-icon {
|
|
45
45
|
filter: grayscale(100%) brightness(0%) invert(25%);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.dark .turnip-button > img {
|
|
48
|
+
.dark .turnip-button > img, .dark .img-icon {
|
|
49
49
|
filter: grayscale(100%) brightness(0%) invert(100%);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -164,4 +164,30 @@ a:active {
|
|
|
164
164
|
.accordion-item {
|
|
165
165
|
@apply variant-filled-primary rounded-md;
|
|
166
166
|
}
|
|
167
|
+
|
|
167
168
|
/* endregion Accordion css for handling missing styles in package */
|
|
169
|
+
|
|
170
|
+
:root {
|
|
171
|
+
--shadow-color: rgba(91, 79, 54, 0.5);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* todo: adjust shadow for each component + change depending on dark mode or not */
|
|
175
|
+
.fab, #shell-header {
|
|
176
|
+
box-shadow: 3px 3px 3px var(--shadow-color);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#toast-progress {
|
|
180
|
+
position: relative;
|
|
181
|
+
top: 5px;
|
|
182
|
+
left: 6px;
|
|
183
|
+
width: calc(100% - 12px);
|
|
184
|
+
border-radius: 8px;
|
|
185
|
+
background: transparent;
|
|
186
|
+
height: 10px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#toast-progress::-moz-progress-bar {
|
|
190
|
+
/*background-color: red;*/
|
|
191
|
+
background: rgba(var(--color-secondary-500));
|
|
192
|
+
}
|
|
193
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import RandomizedBackground from "../RandomizedBackground.svelte";
|
|
3
3
|
import { page } from "$app/stores";
|
|
4
4
|
import { enableBackground } from "../../store";
|
|
5
|
-
import DialogOverlay from "../DialogOverlay.svelte";
|
|
6
5
|
import AresLogo from "../../assets/characters/ares/ares_logo.webp";
|
|
7
6
|
import FABIcon from "../../assets/placeholder/placeholder_circle.png";
|
|
8
7
|
import { enableDialogueOverlay } from "../dialog_manager/DialogManagerStore";
|
|
8
|
+
import Toast from "./toast/Toast.svelte";
|
|
9
9
|
let pages = [];
|
|
10
10
|
const updateBreadcrumb = (pathname) => {
|
|
11
11
|
pages = [];
|
|
@@ -57,15 +57,18 @@ enableDialogueOverlay.subscribe((value) => {
|
|
|
57
57
|
<AppShell>
|
|
58
58
|
<svelte:fragment slot="header">
|
|
59
59
|
<!-- App Bar -->
|
|
60
|
-
<AppBar
|
|
60
|
+
<AppBar
|
|
61
|
+
background="app-shell-token"
|
|
62
|
+
slotDefault="place-content-start"
|
|
63
|
+
slotTrail="place-content-end">
|
|
61
64
|
<svelte:fragment slot="lead">
|
|
62
65
|
<!--TODO: add logo or something for the lead in layout-->
|
|
63
66
|
<img
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
alt="Ares's head titled towards the left with his tongue out and winking"
|
|
68
|
+
class="ares-logo"
|
|
69
|
+
src={AresLogo}
|
|
67
70
|
/>
|
|
68
|
-
<span class="mr-2"/>
|
|
71
|
+
<span class="mr-2" />
|
|
69
72
|
<ol class="breadcrumb">
|
|
70
73
|
{#each pages as crumb, i}
|
|
71
74
|
{#if i < pages.length - 1}
|
|
@@ -80,24 +83,30 @@ enableDialogueOverlay.subscribe((value) => {
|
|
|
80
83
|
</ol>
|
|
81
84
|
</svelte:fragment>
|
|
82
85
|
<svelte:fragment slot="trail">
|
|
83
|
-
<LightSwitch bgLight="bg-surface-400"/>
|
|
86
|
+
<LightSwitch bgLight="bg-surface-400" />
|
|
84
87
|
</svelte:fragment>
|
|
85
88
|
</AppBar>
|
|
86
89
|
</svelte:fragment>
|
|
87
90
|
|
|
88
|
-
<RandomizedBackground enable={enableBackgroundValue}/>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<slot
|
|
100
|
-
|
|
91
|
+
<RandomizedBackground enable={enableBackgroundValue} />
|
|
92
|
+
|
|
93
|
+
<Toast></Toast>
|
|
94
|
+
|
|
95
|
+
<div class="default-page-container">
|
|
96
|
+
<slot />
|
|
97
|
+
<div class="footer-space" />
|
|
98
|
+
</div>
|
|
99
|
+
<!--{#if enableDialogueOverlayValue}-->
|
|
100
|
+
<!-- <!– Page Route Content –>-->
|
|
101
|
+
<!-- <div class="default-page-container">-->
|
|
102
|
+
<!-- <slot />-->
|
|
103
|
+
<!-- <div class="footer-space" />-->
|
|
104
|
+
<!-- </div>-->
|
|
105
|
+
<!-- <DialogOverlay />-->
|
|
106
|
+
<!--{:else}-->
|
|
107
|
+
<!-- <DialogOverlay />-->
|
|
108
|
+
<!-- <slot />-->
|
|
109
|
+
<!--{/if}-->
|
|
101
110
|
</AppShell>
|
|
102
111
|
|
|
103
112
|
<style>
|
|
@@ -105,6 +114,19 @@ enableDialogueOverlay.subscribe((value) => {
|
|
|
105
114
|
--dialog-left-pad: clamp(0em, 5vw, 2em);
|
|
106
115
|
--dialog-box-width: min(calc(50em + 4em), calc(100vw - var(--dialog-left-pad) - var(--theme-border-base)));
|
|
107
116
|
--dialog-box-height: clamp(15em, 50vw, 18em);
|
|
117
|
+
|
|
118
|
+
/** FAB icon margin/position calculation origin:
|
|
119
|
+
Criteria:
|
|
120
|
+
- We want at mobile (360px) our margin to be at 1em (16px)
|
|
121
|
+
- We want at web (1960px) our margin to be at 2em (32px)
|
|
122
|
+
|
|
123
|
+
A useful scaling factor might vw. At 360px, 16px would be around 4.44vw (360/16).
|
|
124
|
+
At 360px: margin is at 16px or 1em.
|
|
125
|
+
At 1960px: 4.44vw is at 87px but that will be clamped to 32px or 2em.
|
|
126
|
+
The calculation implies that the natural point that the margin becomes 2em is clamped on
|
|
127
|
+
wider screens is at 727px.
|
|
128
|
+
*/
|
|
129
|
+
--fab-margin: clamp(1em, 4.44vw, 2em);
|
|
108
130
|
}
|
|
109
131
|
|
|
110
132
|
.default-page-container {
|
|
@@ -194,15 +216,17 @@ enableDialogueOverlay.subscribe((value) => {
|
|
|
194
216
|
}
|
|
195
217
|
|
|
196
218
|
.fab {
|
|
197
|
-
|
|
198
|
-
|
|
219
|
+
position: fixed;
|
|
220
|
+
bottom: var(--fab-margin);
|
|
221
|
+
width: 4em;
|
|
222
|
+
border-radius: 50%;
|
|
199
223
|
}
|
|
200
224
|
|
|
201
225
|
.fab:dir(ltr) {
|
|
202
|
-
|
|
226
|
+
right: var(--fab-margin);
|
|
203
227
|
}
|
|
204
228
|
|
|
205
229
|
.fab:dir(rtl) {
|
|
206
|
-
|
|
230
|
+
left: var(--fab-margin);
|
|
207
231
|
}
|
|
208
232
|
</style>
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import DefaultToastBody from "./DefaultToastBody.svelte";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script>import CloseIcon from "../../../assets/icons/close.svg";
|
|
2
|
+
export let props;
|
|
3
|
+
export let dismissToastCallback;
|
|
4
|
+
export let shouldEnableButton = false;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class="body-container">
|
|
8
|
+
<!-- todo: support markdown? -->
|
|
9
|
+
<button class="btn"
|
|
10
|
+
disabled={!shouldEnableButton}
|
|
11
|
+
on:click={dismissToastCallback}>
|
|
12
|
+
<img class="img-icon" src={CloseIcon} alt="close button">
|
|
13
|
+
</button>
|
|
14
|
+
<div class="text-container">
|
|
15
|
+
<span>{props.message}</span>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<style>
|
|
20
|
+
.body-container {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 1em;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.text-container {
|
|
26
|
+
margin-top: 0.25lh;
|
|
27
|
+
margin-right: 1em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.text-container:dir(rtl) {
|
|
31
|
+
margin-left: 1em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.btn {
|
|
35
|
+
--tw-bg-opacity: 1;
|
|
36
|
+
background-color: rgb(var(--color-surface-100) / var(--tw-bg-opacity));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:is(.dark .btn) {
|
|
40
|
+
--tw-bg-opacity: 1;
|
|
41
|
+
background-color: rgb(var(--color-surface-900) / var(--tw-bg-opacity));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.btn {
|
|
45
|
+
border-radius: 8px;
|
|
46
|
+
padding: 0.5em;
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { Props } from "./DefaultToastBody";
|
|
3
|
+
import type { DismissToastCallback } from "./Toast";
|
|
4
|
+
declare const __propDef: {
|
|
5
|
+
props: {
|
|
6
|
+
props: Props;
|
|
7
|
+
dismissToastCallback: DismissToastCallback | undefined;
|
|
8
|
+
shouldEnableButton?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
};
|
|
15
|
+
export type DefaultToastBodyProps = typeof __propDef.props;
|
|
16
|
+
export type DefaultToastBodyEvents = typeof __propDef.events;
|
|
17
|
+
export type DefaultToastBodySlots = typeof __propDef.slots;
|
|
18
|
+
export default class DefaultToastBody extends SvelteComponent<DefaultToastBodyProps, DefaultToastBodyEvents, DefaultToastBodySlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
import type { DefaultToastPair } from "./DefaultToastBody";
|
|
3
|
+
import type { TestCustomToastPair } from "./custom-toast/TestCustomToast";
|
|
4
|
+
/**
|
|
5
|
+
* Default toast duration is 5 seconds
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultToastParamsDuration = 5000;
|
|
8
|
+
export type CustomToastPairs = DefaultToastPair | TestCustomToastPair;
|
|
9
|
+
export type DismissToastCallback = () => void;
|
|
10
|
+
export interface ToastParams {
|
|
11
|
+
componentAndProps: CustomToastPairs;
|
|
12
|
+
/**
|
|
13
|
+
* Time in millisecond. If undefined, defaults to DefaultToastParamsDuration
|
|
14
|
+
*/
|
|
15
|
+
duration?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* todo: do not call directly documentation
|
|
19
|
+
*/
|
|
20
|
+
export declare const activeToast: import("svelte/store").Writable<ToastParams | undefined>;
|
|
21
|
+
export declare const toastQueue: ToastParams[];
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param newToast
|
|
25
|
+
*/
|
|
26
|
+
export declare const showComponentInToast: (newToast: ToastParams) => void;
|
|
27
|
+
export declare const showTextInToast: (message: string) => void;
|