@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.
@@ -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="Fix background disappearing in default BlogTemplates">
8
- <change beforePath="$PROJECT_DIR$/src/lib/template/seaweed/SeaweedTemplate.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/template/seaweed/SeaweedTemplate.svelte" afterDir="false" />
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="56000" />
398
- </task>
399
- <task id="LOCAL-00158" summary="Remove unneeded script check in yarn build">
400
- <option name="closed" value="true" />
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
- <option name="localTasksCounter" value="207" />
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
- <option name="LAST_COMMIT_MESSAGE" value="Fix background disappearing in default BlogTemplates" />
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 />
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  pageMeta: SimplePageMeta;
7
7
  shouldFillWholePage?: boolean | undefined;
8
8
  shouldEnableDialogOverlay?: boolean | undefined;
9
+ includeDataNoSnippet?: boolean | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
@@ -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
- {#each pageMetaList as pageMeta}
29
- <div class="chum-bucket-item">
30
- {#if pageMeta.imageUrl}
31
- <img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
32
- class="chum-bucket-image"
33
- alt={pageMeta.imageAlt}>
34
- {/if}
35
- <div>
36
- <h3><a href={`https://turnipxenon.com/${pageMeta.relativeLink}`}>{pageMeta.title}</a></h3>
37
- <p>{pageMeta.description}</p>
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
- </div>
40
- {/each}
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>
@@ -201,7 +201,7 @@ $:
201
201
  {/each}
202
202
  {/if}
203
203
 
204
- <!--<ChumBucket></ChumBucket>-->
204
+ <ChumBucket></ChumBucket>
205
205
 
206
206
  {#if (!letChaos)}
207
207
  <div aria-hidden="true" style="height: 3lh" />
@@ -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: "1osvtww"
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 />
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  pageMeta: SimplePageMeta;
7
7
  shouldFillWholePage?: boolean | undefined;
8
8
  shouldEnableDialogOverlay?: boolean | undefined;
9
+ includeDataNoSnippet?: boolean | undefined;
9
10
  };
10
11
  events: {
11
12
  [evt: string]: CustomEvent<any>;
@@ -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
- {#each pageMetaList as pageMeta}
29
- <div class="chum-bucket-item">
30
- {#if pageMeta.imageUrl}
31
- <img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
32
- class="chum-bucket-image"
33
- alt={pageMeta.imageAlt}>
34
- {/if}
35
- <div>
36
- <h3><a href={`https://turnipxenon.com/${pageMeta.relativeLink}`}>{pageMeta.title}</a></h3>
37
- <p>{pageMeta.description}</p>
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
- </div>
40
- {/each}
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>
@@ -201,7 +201,7 @@ $:
201
201
  {/each}
202
202
  {/if}
203
203
 
204
- <!--<ChumBucket></ChumBucket>-->
204
+ <ChumBucket></ChumBucket>
205
205
 
206
206
  {#if (!letChaos)}
207
207
  <div aria-hidden="true" style="height: 3lh" />
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.6.0",
4
+ "version": "2.8.0",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",
@@ -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
- {#each pageMetaList as pageMeta}
32
- <div class="chum-bucket-item">
33
- {#if pageMeta.imageUrl}
34
- <img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
35
- class="chum-bucket-image"
36
- alt={pageMeta.imageAlt}>
37
- {/if}
38
- <div>
39
- <h3><a href={`https://turnipxenon.com/${pageMeta.relativeLink}`}>{pageMeta.title}</a></h3>
40
- <p>{pageMeta.description}</p>
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
- </div>
43
- {/each}
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>
@@ -263,7 +263,7 @@
263
263
  {/each}
264
264
  {/if}
265
265
 
266
- <!--<ChumBucket></ChumBucket>-->
266
+ <ChumBucket></ChumBucket>
267
267
 
268
268
  {#if (!letChaos)}
269
269
  <div aria-hidden="true" style="height: 3lh" />