@turnipxenon/pineapple 2.4.50 → 2.4.51

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.
@@ -8,6 +8,7 @@
8
8
  <excludeFolder url="file://$MODULE_DIR$/.svelte-kit" />
9
9
  <excludeFolder url="file://$MODULE_DIR$/.vercel" />
10
10
  <excludeFolder url="file://$MODULE_DIR$/dist" />
11
+ <excludeFolder url="file://$MODULE_DIR$/build" />
11
12
  </content>
12
13
  <orderEntry type="inheritedJdk" />
13
14
  <orderEntry type="sourceFolder" forTests="false" />
@@ -4,7 +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="Put parseQTTerms in afterUpdate instead of onMount" />
7
+ <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Add logs to observe queryTermMap in downstream package">
8
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
+ </list>
8
10
  <option name="SHOW_DIALOG" value="false" />
9
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
12
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -323,15 +325,8 @@
323
325
  <workItem from="1712476890510" duration="1084000" />
324
326
  <workItem from="1712532951966" duration="51000" />
325
327
  <workItem from="1712533167568" duration="339000" />
326
- <workItem from="1712533592123" duration="650000" />
327
- </task>
328
- <task id="LOCAL-00115" summary="Layout adjustments to PineappleBaseLayout">
329
- <option name="closed" value="true" />
330
- <created>1711680166876</created>
331
- <option name="number" value="00115" />
332
- <option name="presentableId" value="LOCAL-00115" />
333
- <option name="project" value="LOCAL" />
334
- <updated>1711680166877</updated>
328
+ <workItem from="1712533592123" duration="803000" />
329
+ <workItem from="1712534451700" duration="408000" />
335
330
  </task>
336
331
  <task id="LOCAL-00116" summary="Allow preventing NavigationComponent pagination">
337
332
  <option name="closed" value="true" />
@@ -717,7 +712,15 @@
717
712
  <option name="project" value="LOCAL" />
718
713
  <updated>1712533946790</updated>
719
714
  </task>
720
- <option name="localTasksCounter" value="164" />
715
+ <task id="LOCAL-00164" summary="Add logs to observe queryTermMap in downstream package">
716
+ <option name="closed" value="true" />
717
+ <created>1712534850791</created>
718
+ <option name="number" value="00164" />
719
+ <option name="presentableId" value="LOCAL-00164" />
720
+ <option name="project" value="LOCAL" />
721
+ <updated>1712534850791</updated>
722
+ </task>
723
+ <option name="localTasksCounter" value="165" />
721
724
  <servers />
722
725
  </component>
723
726
  <component name="TypeScriptGeneratedFilesManager">
@@ -775,7 +778,6 @@
775
778
  </option>
776
779
  </component>
777
780
  <component name="VcsManagerConfiguration">
778
- <MESSAGE value="Add resolutions to use Node 20 in Azure SWA GithubActions&#10;&#10;Reference: https://github.com/Azure/static-web-apps-cli/issues/756#issuecomment-1775748572" />
779
781
  <MESSAGE value="Migrate from azure swa adapter to node adapter" />
780
782
  <MESSAGE value="Add cdktf" />
781
783
  <MESSAGE value="Implement cdktf for empty AppService" />
@@ -800,6 +802,7 @@
800
802
  <MESSAGE value="Add back gameSectionFirst behaviour" />
801
803
  <MESSAGE value="Delay parsing for query terms after page transformation" />
802
804
  <MESSAGE value="Put parseQTTerms in afterUpdate instead of onMount" />
803
- <option name="LAST_COMMIT_MESSAGE" value="Put parseQTTerms in afterUpdate instead of onMount" />
805
+ <MESSAGE value="Add logs to observe queryTermMap in downstream package" />
806
+ <option name="LAST_COMMIT_MESSAGE" value="Add logs to observe queryTermMap in downstream package" />
804
807
  </component>
805
808
  </project>
@@ -47,6 +47,7 @@ const syncQT = () => {
47
47
  seaweedTemplateData.queryTermMap = seaweedTemplateData.queryTermMap;
48
48
  };
49
49
  const parseQTTerms = async () => {
50
+ console.log("parsing", seaweedTemplateData.queryTermMap.size);
50
51
  const qtSet = /* @__PURE__ */ new Set();
51
52
  const rawTermList = [];
52
53
  [...Object.values(entryList).map((e) => e.default), selfContent].forEach((body) => {
@@ -64,6 +65,7 @@ const parseQTTerms = async () => {
64
65
  });
65
66
  });
66
67
  qtSet.forEach((t) => seaweedTemplateData.queryTermMap.set(t, true));
68
+ seaweedTemplateData.queryTermMap = seaweedTemplateData.queryTermMap;
67
69
  syncQT();
68
70
  };
69
71
  const filterSearchParams = (searchParams) => {
@@ -123,12 +125,7 @@ onMount(async () => {
123
125
  if (letChaos) {
124
126
  runChaos(document.body);
125
127
  chaosDone = true;
126
- }
127
- });
128
- let isParsed = false;
129
- afterUpdate(async () => {
130
- if (!letChaos && !isParsed) {
131
- isParsed = true;
128
+ } else {
132
129
  await parseQTTerms();
133
130
  }
134
131
  });
@@ -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: "193d8c0"
24
+ version_hash: "b1dnc"
25
25
  };
26
26
 
27
27
  export async function get_hooks() {
@@ -47,6 +47,7 @@ const syncQT = () => {
47
47
  seaweedTemplateData.queryTermMap = seaweedTemplateData.queryTermMap;
48
48
  };
49
49
  const parseQTTerms = async () => {
50
+ console.log("parsing", seaweedTemplateData.queryTermMap.size);
50
51
  const qtSet = /* @__PURE__ */ new Set();
51
52
  const rawTermList = [];
52
53
  [...Object.values(entryList).map((e) => e.default), selfContent].forEach((body) => {
@@ -64,6 +65,7 @@ const parseQTTerms = async () => {
64
65
  });
65
66
  });
66
67
  qtSet.forEach((t) => seaweedTemplateData.queryTermMap.set(t, true));
68
+ seaweedTemplateData.queryTermMap = seaweedTemplateData.queryTermMap;
67
69
  syncQT();
68
70
  };
69
71
  const filterSearchParams = (searchParams) => {
@@ -123,12 +125,7 @@ onMount(async () => {
123
125
  if (letChaos) {
124
126
  runChaos(document.body);
125
127
  chaosDone = true;
126
- }
127
- });
128
- let isParsed = false;
129
- afterUpdate(async () => {
130
- if (!letChaos && !isParsed) {
131
- isParsed = true;
128
+ } else {
132
129
  await parseQTTerms();
133
130
  }
134
131
  });
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.50",
4
+ "version": "2.4.51",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",
@@ -62,6 +62,7 @@
62
62
  };
63
63
 
64
64
  const parseQTTerms = async () => {
65
+ console.log("parsing", seaweedTemplateData.queryTermMap.size);
65
66
  const qtSet = new Set<string>();
66
67
  const rawTermList: string[] = [];
67
68
  [...Object.values(entryList).map(e => (e as RawGlob).default), selfContent].forEach(body => {
@@ -89,8 +90,9 @@
89
90
  });
90
91
  });
91
92
 
92
- // activate svelte reactivity
93
93
  qtSet.forEach(t => seaweedTemplateData.queryTermMap.set(t, true));
94
+ // force svelte update
95
+ seaweedTemplateData.queryTermMap = seaweedTemplateData.queryTermMap;
94
96
  syncQT();
95
97
  };
96
98
 
@@ -184,15 +186,7 @@
184
186
  if (letChaos) {
185
187
  runChaos(document.body);
186
188
  chaosDone = true;
187
- }
188
- });
189
-
190
- // the page may not yet be updated in onMount, so let's wait for the page to render according to what we
191
- // want before proceeding the parsing the page
192
- let isParsed = false;
193
- afterUpdate(async () => {
194
- if (!letChaos && !isParsed) {
195
- isParsed = true;
189
+ } else {
196
190
  await parseQTTerms();
197
191
  }
198
192
  });