@turnipxenon/pineapple 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +26 -23
- package/.svelte-kit/__package__/components/blog_template/BlogTemplate.svelte +2 -1
- package/.svelte-kit/__package__/components/blog_template/BlogTemplate.svelte.d.ts +1 -0
- package/.svelte-kit/__package__/template/seaweed/ChumBucket.svelte +27 -12
- package/.svelte-kit/__package__/template/seaweed/SeaweedTemplate.svelte +1 -1
- package/.svelte-kit/ambient.d.ts +0 -4
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/components/blog_template/BlogTemplate.svelte +2 -1
- package/dist/components/blog_template/BlogTemplate.svelte.d.ts +1 -0
- package/dist/template/seaweed/ChumBucket.svelte +27 -12
- package/dist/template/seaweed/SeaweedTemplate.svelte +1 -1
- package/package.json +1 -1
- package/src/lib/components/blog_template/BlogTemplate.svelte +2 -1
- package/src/lib/template/seaweed/ChumBucket.svelte +27 -12
- package/src/lib/template/seaweed/SeaweedTemplate.svelte +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
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$/src/lib/
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Update chum bucket display">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/blog_template/BlogTemplate.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/blog_template/BlogTemplate.svelte" afterDir="false" />
|
|
9
9
|
</list>
|
|
10
10
|
<option name="SHOW_DIALOG" value="false" />
|
|
11
11
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -394,23 +394,10 @@
|
|
|
394
394
|
<workItem from="1714521686105" duration="268000" />
|
|
395
395
|
<workItem from="1714761186955" duration="2937000" />
|
|
396
396
|
<workItem from="1714785291683" duration="29000" />
|
|
397
|
-
<workItem from="1717797301446" duration="
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
<
|
|
401
|
-
<created>1712475823736</created>
|
|
402
|
-
<option name="number" value="00158" />
|
|
403
|
-
<option name="presentableId" value="LOCAL-00158" />
|
|
404
|
-
<option name="project" value="LOCAL" />
|
|
405
|
-
<updated>1712475823736</updated>
|
|
406
|
-
</task>
|
|
407
|
-
<task id="LOCAL-00159" summary="Fix yarn dependencies">
|
|
408
|
-
<option name="closed" value="true" />
|
|
409
|
-
<created>1712476485361</created>
|
|
410
|
-
<option name="number" value="00159" />
|
|
411
|
-
<option name="presentableId" value="LOCAL-00159" />
|
|
412
|
-
<option name="project" value="LOCAL" />
|
|
413
|
-
<updated>1712476485362</updated>
|
|
397
|
+
<workItem from="1717797301446" duration="328000" />
|
|
398
|
+
<workItem from="1717818365490" duration="1400000" />
|
|
399
|
+
<workItem from="1718042449909" duration="152000" />
|
|
400
|
+
<workItem from="1718171450825" duration="153000" />
|
|
414
401
|
</task>
|
|
415
402
|
<task id="LOCAL-00160" summary="Support swappable group for backwards compatibility">
|
|
416
403
|
<option name="closed" value="true" />
|
|
@@ -788,7 +775,23 @@
|
|
|
788
775
|
<option name="project" value="LOCAL" />
|
|
789
776
|
<updated>1714763326650</updated>
|
|
790
777
|
</task>
|
|
791
|
-
<
|
|
778
|
+
<task id="LOCAL-00207" summary="Turn off chum bucket temporarily">
|
|
779
|
+
<option name="closed" value="true" />
|
|
780
|
+
<created>1717797372617</created>
|
|
781
|
+
<option name="number" value="00207" />
|
|
782
|
+
<option name="presentableId" value="LOCAL-00207" />
|
|
783
|
+
<option name="project" value="LOCAL" />
|
|
784
|
+
<updated>1717797372618</updated>
|
|
785
|
+
</task>
|
|
786
|
+
<task id="LOCAL-00208" summary="Update chum bucket display">
|
|
787
|
+
<option name="closed" value="true" />
|
|
788
|
+
<created>1717819762642</created>
|
|
789
|
+
<option name="number" value="00208" />
|
|
790
|
+
<option name="presentableId" value="LOCAL-00208" />
|
|
791
|
+
<option name="project" value="LOCAL" />
|
|
792
|
+
<updated>1717819762642</updated>
|
|
793
|
+
</task>
|
|
794
|
+
<option name="localTasksCounter" value="209" />
|
|
792
795
|
<servers />
|
|
793
796
|
</component>
|
|
794
797
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -846,8 +849,6 @@
|
|
|
846
849
|
</option>
|
|
847
850
|
</component>
|
|
848
851
|
<component name="VcsManagerConfiguration">
|
|
849
|
-
<MESSAGE value="Add default value for allowUpperControl in NavigationComponent" />
|
|
850
|
-
<MESSAGE value="Add ChumBucket" />
|
|
851
852
|
<MESSAGE value="Fix align-items" />
|
|
852
853
|
<MESSAGE value="Export GetLatestBlogs properly" />
|
|
853
854
|
<MESSAGE value="Update description for ThisWebpage" />
|
|
@@ -871,6 +872,8 @@
|
|
|
871
872
|
<MESSAGE value="Attempt for whole blog page" />
|
|
872
873
|
<MESSAGE value="Add plain background BlogTemplates" />
|
|
873
874
|
<MESSAGE value="Fix background disappearing in default BlogTemplates" />
|
|
874
|
-
<
|
|
875
|
+
<MESSAGE value="Turn off chum bucket temporarily" />
|
|
876
|
+
<MESSAGE value="Update chum bucket display" />
|
|
877
|
+
<option name="LAST_COMMIT_MESSAGE" value="Update chum bucket display" />
|
|
875
878
|
</component>
|
|
876
879
|
</project>
|
|
@@ -6,6 +6,7 @@ import BlogTemplateInner from "./BlogTemplateInner.svelte";
|
|
|
6
6
|
export let pageMeta;
|
|
7
7
|
export let shouldFillWholePage = false;
|
|
8
8
|
export let shouldEnableDialogOverlay = false;
|
|
9
|
+
export let includeDataNoSnippet = false;
|
|
9
10
|
enableBackground.set(!shouldFillWholePage);
|
|
10
11
|
let initialDialogState = false;
|
|
11
12
|
onMount(() => {
|
|
@@ -25,7 +26,7 @@ onDestroy(() => {
|
|
|
25
26
|
</BlogTemplateInner>
|
|
26
27
|
</div>
|
|
27
28
|
{:else}
|
|
28
|
-
<Card>
|
|
29
|
+
<Card includeDataNoSnippet={includeDataNoSnippet}>
|
|
29
30
|
<div slot="content" class="default-card">
|
|
30
31
|
<BlogTemplateInner pageMeta={pageMeta}>
|
|
31
32
|
<slot />
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<script>import Card from "../../components/Card.svelte";
|
|
2
2
|
import {} from "../..";
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
|
+
let hasTriedGettingChumBucket = false;
|
|
4
5
|
let pageMetaList = [];
|
|
5
6
|
const loadPageMeta = async () => {
|
|
6
7
|
fetch("/api/get-latest-blogs").then((resp) => resp.json()).then((json) => {
|
|
7
8
|
pageMetaList = json;
|
|
9
|
+
hasTriedGettingChumBucket = true;
|
|
10
|
+
}).catch((_) => {
|
|
11
|
+
hasTriedGettingChumBucket = true;
|
|
8
12
|
});
|
|
9
13
|
};
|
|
10
14
|
onMount(() => {
|
|
@@ -25,19 +29,30 @@ onMount(() => {
|
|
|
25
29
|
{/if}
|
|
26
30
|
|
|
27
31
|
<div class="chum-bucket-grid">
|
|
28
|
-
{#
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
32
|
+
{#if hasTriedGettingChumBucket}
|
|
33
|
+
{#each pageMetaList as pageMeta}
|
|
34
|
+
<div class="chum-bucket-item">
|
|
35
|
+
{#if pageMeta.imageUrl}
|
|
36
|
+
<img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
|
|
37
|
+
class="chum-bucket-image"
|
|
38
|
+
alt={pageMeta.imageAlt}>
|
|
39
|
+
{/if}
|
|
40
|
+
<div>
|
|
41
|
+
<h3><a href={`https://turnipxenon.com/${pageMeta.relativeLink}`}>{pageMeta.title}</a></h3>
|
|
42
|
+
<p>Published: {pageMeta.datePublished}
|
|
43
|
+
{#if pageMeta.lastUpdated}
|
|
44
|
+
| Last updated: {pageMeta.lastUpdated}
|
|
45
|
+
{/if}
|
|
46
|
+
</p>
|
|
47
|
+
<p>{pageMeta.description}</p>
|
|
48
|
+
</div>
|
|
38
49
|
</div>
|
|
39
|
-
|
|
40
|
-
{
|
|
50
|
+
{/each}
|
|
51
|
+
{:else}
|
|
52
|
+
{#each { length: 10 } as _}
|
|
53
|
+
<div class="placeholder" />
|
|
54
|
+
{/each}
|
|
55
|
+
{/if}
|
|
41
56
|
</div>
|
|
42
57
|
</div>
|
|
43
58
|
</Card>
|
package/.svelte-kit/ambient.d.ts
CHANGED
|
@@ -37,8 +37,6 @@ declare module '$env/static/private' {
|
|
|
37
37
|
export const COMSPEC: string;
|
|
38
38
|
export const DriverData: string;
|
|
39
39
|
export const EXEPATH: string;
|
|
40
|
-
export const FPS_BROWSER_APP_PROFILE_STRING: string;
|
|
41
|
-
export const FPS_BROWSER_USER_PROFILE_STRING: string;
|
|
42
40
|
export const GIT_XL_PATH: string;
|
|
43
41
|
export const GoLand: string;
|
|
44
42
|
export const GOPATH: string;
|
|
@@ -227,8 +225,6 @@ declare module '$env/dynamic/private' {
|
|
|
227
225
|
COMSPEC: string;
|
|
228
226
|
DriverData: string;
|
|
229
227
|
EXEPATH: string;
|
|
230
|
-
FPS_BROWSER_APP_PROFILE_STRING: string;
|
|
231
|
-
FPS_BROWSER_USER_PROFILE_STRING: string;
|
|
232
228
|
GIT_XL_PATH: string;
|
|
233
229
|
GoLand: string;
|
|
234
230
|
GOPATH: string;
|
|
@@ -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: "ia229r"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
|
@@ -6,6 +6,7 @@ import BlogTemplateInner from "./BlogTemplateInner.svelte";
|
|
|
6
6
|
export let pageMeta;
|
|
7
7
|
export let shouldFillWholePage = false;
|
|
8
8
|
export let shouldEnableDialogOverlay = false;
|
|
9
|
+
export let includeDataNoSnippet = false;
|
|
9
10
|
enableBackground.set(!shouldFillWholePage);
|
|
10
11
|
let initialDialogState = false;
|
|
11
12
|
onMount(() => {
|
|
@@ -25,7 +26,7 @@ onDestroy(() => {
|
|
|
25
26
|
</BlogTemplateInner>
|
|
26
27
|
</div>
|
|
27
28
|
{:else}
|
|
28
|
-
<Card>
|
|
29
|
+
<Card includeDataNoSnippet={includeDataNoSnippet}>
|
|
29
30
|
<div slot="content" class="default-card">
|
|
30
31
|
<BlogTemplateInner pageMeta={pageMeta}>
|
|
31
32
|
<slot />
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<script>import Card from "../../components/Card.svelte";
|
|
2
2
|
import {} from "../..";
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
|
+
let hasTriedGettingChumBucket = false;
|
|
4
5
|
let pageMetaList = [];
|
|
5
6
|
const loadPageMeta = async () => {
|
|
6
7
|
fetch("/api/get-latest-blogs").then((resp) => resp.json()).then((json) => {
|
|
7
8
|
pageMetaList = json;
|
|
9
|
+
hasTriedGettingChumBucket = true;
|
|
10
|
+
}).catch((_) => {
|
|
11
|
+
hasTriedGettingChumBucket = true;
|
|
8
12
|
});
|
|
9
13
|
};
|
|
10
14
|
onMount(() => {
|
|
@@ -25,19 +29,30 @@ onMount(() => {
|
|
|
25
29
|
{/if}
|
|
26
30
|
|
|
27
31
|
<div class="chum-bucket-grid">
|
|
28
|
-
{#
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
32
|
+
{#if hasTriedGettingChumBucket}
|
|
33
|
+
{#each pageMetaList as pageMeta}
|
|
34
|
+
<div class="chum-bucket-item">
|
|
35
|
+
{#if pageMeta.imageUrl}
|
|
36
|
+
<img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
|
|
37
|
+
class="chum-bucket-image"
|
|
38
|
+
alt={pageMeta.imageAlt}>
|
|
39
|
+
{/if}
|
|
40
|
+
<div>
|
|
41
|
+
<h3><a href={`https://turnipxenon.com/${pageMeta.relativeLink}`}>{pageMeta.title}</a></h3>
|
|
42
|
+
<p>Published: {pageMeta.datePublished}
|
|
43
|
+
{#if pageMeta.lastUpdated}
|
|
44
|
+
| Last updated: {pageMeta.lastUpdated}
|
|
45
|
+
{/if}
|
|
46
|
+
</p>
|
|
47
|
+
<p>{pageMeta.description}</p>
|
|
48
|
+
</div>
|
|
38
49
|
</div>
|
|
39
|
-
|
|
40
|
-
{
|
|
50
|
+
{/each}
|
|
51
|
+
{:else}
|
|
52
|
+
{#each { length: 10 } as _}
|
|
53
|
+
<div class="placeholder" />
|
|
54
|
+
{/each}
|
|
55
|
+
{/if}
|
|
41
56
|
</div>
|
|
42
57
|
</div>
|
|
43
58
|
</Card>
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export let pageMeta: SimplePageMeta;
|
|
10
10
|
export let shouldFillWholePage = false;
|
|
11
11
|
export let shouldEnableDialogOverlay = false;
|
|
12
|
+
export let includeDataNoSnippet = false;
|
|
12
13
|
|
|
13
14
|
enableBackground.set(!shouldFillWholePage);
|
|
14
15
|
let initialDialogState = false;
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
</BlogTemplateInner>
|
|
33
34
|
</div>
|
|
34
35
|
{:else}
|
|
35
|
-
<Card>
|
|
36
|
+
<Card includeDataNoSnippet={includeDataNoSnippet}>
|
|
36
37
|
<div slot="content" class="default-card">
|
|
37
38
|
<BlogTemplateInner pageMeta={pageMeta}>
|
|
38
39
|
<slot />
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
import { type PageMeta } from "$pkg";
|
|
4
4
|
import { onMount } from "svelte";
|
|
5
5
|
|
|
6
|
+
let hasTriedGettingChumBucket = false;
|
|
6
7
|
let pageMetaList: PageMeta[] = [];
|
|
7
8
|
const loadPageMeta = async () => {
|
|
8
9
|
fetch("/api/get-latest-blogs").then(resp => resp.json()).then(json => {
|
|
9
10
|
pageMetaList = json as PageMeta[];
|
|
11
|
+
hasTriedGettingChumBucket = true;
|
|
12
|
+
}).catch(_ => {
|
|
13
|
+
hasTriedGettingChumBucket = true;
|
|
10
14
|
});
|
|
11
15
|
};
|
|
12
16
|
|
|
@@ -28,19 +32,30 @@
|
|
|
28
32
|
{/if}
|
|
29
33
|
|
|
30
34
|
<div class="chum-bucket-grid">
|
|
31
|
-
{#
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
35
|
+
{#if hasTriedGettingChumBucket}
|
|
36
|
+
{#each pageMetaList as pageMeta}
|
|
37
|
+
<div class="chum-bucket-item">
|
|
38
|
+
{#if pageMeta.imageUrl}
|
|
39
|
+
<img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
|
|
40
|
+
class="chum-bucket-image"
|
|
41
|
+
alt={pageMeta.imageAlt}>
|
|
42
|
+
{/if}
|
|
43
|
+
<div>
|
|
44
|
+
<h3><a href={`https://turnipxenon.com/${pageMeta.relativeLink}`}>{pageMeta.title}</a></h3>
|
|
45
|
+
<p>Published: {pageMeta.datePublished}
|
|
46
|
+
{#if pageMeta.lastUpdated}
|
|
47
|
+
| Last updated: {pageMeta.lastUpdated}
|
|
48
|
+
{/if}
|
|
49
|
+
</p>
|
|
50
|
+
<p>{pageMeta.description}</p>
|
|
51
|
+
</div>
|
|
41
52
|
</div>
|
|
42
|
-
|
|
43
|
-
{
|
|
53
|
+
{/each}
|
|
54
|
+
{:else}
|
|
55
|
+
{#each { length: 10 } as _}
|
|
56
|
+
<div class="placeholder" />
|
|
57
|
+
{/each}
|
|
58
|
+
{/if}
|
|
44
59
|
</div>
|
|
45
60
|
</div>
|
|
46
61
|
</Card>
|