@turnipxenon/pineapple 2.4.38 → 2.4.39

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.
@@ -0,0 +1,4 @@
1
+ <changelist name="yarn_scripts" date="1711680044884" recycled="false">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/yarn_scripts/shelved.patch" />
3
+ <option name="DESCRIPTION" value="yarn scripts" />
4
+ </changelist>
@@ -4,8 +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="Fix double dor parsing issue in NavigationComponent">
8
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
7
+ <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Layout adjustments to PineappleBaseLayout">
8
+ <change beforePath="$PROJECT_DIR$/src/lib/components/navigation_component/NavigationComponent.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/navigation_component/NavigationComponent.svelte" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/src/routes/(pineapple)/pineapple/(pineapple)/+page.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/routes/(pineapple)/pineapple/(pineapple)/+page.svelte" afterDir="false" />
9
10
  </list>
10
11
  <option name="SHOW_DIALOG" value="false" />
11
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -84,33 +85,33 @@
84
85
  <option name="hideEmptyMiddlePackages" value="true" />
85
86
  <option name="showLibraryContents" value="true" />
86
87
  </component>
87
- <component name="PropertiesComponent"><![CDATA[{
88
- "keyToString": {
89
- "DefaultHtmlFileTemplate": "HTML File",
90
- "RunOnceActivity.OpenProjectViewOnStart": "true",
91
- "RunOnceActivity.ShowReadmeOnStart": "true",
92
- "WebServerToolWindowFactoryState": "false",
93
- "git-widget-placeholder": "turnip/improvements",
94
- "ignore.virus.scanning.warn.message": "true",
95
- "last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/routes/(pineapple)/pineapple/(extra-pages)/page3/page7/(test_layout)/page8",
96
- "list.type.of.created.stylesheet": "CSS",
97
- "node.js.detected.package.eslint": "true",
98
- "node.js.detected.package.tslint": "true",
99
- "node.js.selected.package.eslint": "(autodetect)",
100
- "node.js.selected.package.tslint": "(autodetect)",
101
- "nodejs_interpreter_path": "node",
102
- "nodejs_package_manager_path": "yarn",
103
- "npm.build.executor": "Run",
104
- "npm.dev (1).executor": "Run",
105
- "npm.dev --open.executor": "Run",
106
- "npm.dev offline.executor": "Run",
107
- "npm.dev-offline.executor": "Run",
108
- "npm.dev.executor": "Run",
109
- "settings.editor.selected.configurable": "preferences.pluginManager",
110
- "ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
111
- "vue.rearranger.settings.migration": "true"
88
+ <component name="PropertiesComponent">{
89
+ &quot;keyToString&quot;: {
90
+ &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
91
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
92
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
93
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
94
+ &quot;git-widget-placeholder&quot;: &quot;turnip/improvements&quot;,
95
+ &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
96
+ &quot;last_opened_file_path&quot;: &quot;C:/Users/Pumpkin/Projects/Web/pineapple/src/routes/(pineapple)/pineapple/(extra-pages)/page3/page7/(test_layout)/page8&quot;,
97
+ &quot;list.type.of.created.stylesheet&quot;: &quot;CSS&quot;,
98
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
99
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
100
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
101
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
102
+ &quot;nodejs_interpreter_path&quot;: &quot;node&quot;,
103
+ &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
104
+ &quot;npm.build.executor&quot;: &quot;Run&quot;,
105
+ &quot;npm.dev (1).executor&quot;: &quot;Run&quot;,
106
+ &quot;npm.dev --open.executor&quot;: &quot;Run&quot;,
107
+ &quot;npm.dev offline.executor&quot;: &quot;Run&quot;,
108
+ &quot;npm.dev-offline.executor&quot;: &quot;Run&quot;,
109
+ &quot;npm.dev.executor&quot;: &quot;Run&quot;,
110
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
111
+ &quot;ts.external.directory.path&quot;: &quot;C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib&quot;,
112
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
112
113
  }
113
- }]]></component>
114
+ }</component>
114
115
  <component name="RecentsManager">
115
116
  <key name="CopyFile.RECENT_KEYS">
116
117
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page3\page7\(test_layout)\page8" />
@@ -120,11 +121,11 @@
120
121
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\page3\page7\(test_layout)\page8" />
121
122
  </key>
122
123
  <key name="MoveFile.RECENT_KEYS">
124
+ <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(pineapple)" />
123
125
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(nested)" />
124
126
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)" />
125
127
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page1" />
126
128
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page2" />
127
- <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)\pineapple\(extra-pages)\page3" />
128
129
  </key>
129
130
  <key name="es6.move.members.recent.items">
130
131
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\types\RootLayoutProps.ts" />
@@ -159,8 +160,8 @@
159
160
  </list>
160
161
  <recent_temporary>
161
162
  <list>
162
- <item itemvalue="npm.dev-offline" />
163
163
  <item itemvalue="npm.dev --open" />
164
+ <item itemvalue="npm.dev-offline" />
164
165
  <item itemvalue="npm.dev --open" />
165
166
  <item itemvalue="npm.dev-offline" />
166
167
  <item itemvalue="npm.dev-offline" />
@@ -254,15 +255,8 @@
254
255
  <workItem from="1711587392130" duration="863000" />
255
256
  <workItem from="1711677339000" duration="218000" />
256
257
  <workItem from="1711677568464" duration="55000" />
257
- <workItem from="1711677762467" duration="2147000" />
258
- </task>
259
- <task id="LOCAL-00066" summary="Add simple text toast">
260
- <option name="closed" value="true" />
261
- <created>1710564041434</created>
262
- <option name="number" value="00066" />
263
- <option name="presentableId" value="LOCAL-00066" />
264
- <option name="project" value="LOCAL" />
265
- <updated>1710564041434</updated>
258
+ <workItem from="1711677762467" duration="3110000" />
259
+ <workItem from="1711680966158" duration="268000" />
266
260
  </task>
267
261
  <task id="LOCAL-00067" summary="Enforce stricter typing for Toast components">
268
262
  <option name="closed" value="true" />
@@ -648,7 +642,15 @@
648
642
  <option name="project" value="LOCAL" />
649
643
  <updated>1711587709414</updated>
650
644
  </task>
651
- <option name="localTasksCounter" value="115" />
645
+ <task id="LOCAL-00115" summary="Layout adjustments to PineappleBaseLayout">
646
+ <option name="closed" value="true" />
647
+ <created>1711680166876</created>
648
+ <option name="number" value="00115" />
649
+ <option name="presentableId" value="LOCAL-00115" />
650
+ <option name="project" value="LOCAL" />
651
+ <updated>1711680166877</updated>
652
+ </task>
653
+ <option name="localTasksCounter" value="116" />
652
654
  <servers />
653
655
  </component>
654
656
  <component name="TypeScriptGeneratedFilesManager">
@@ -706,8 +708,6 @@
706
708
  </option>
707
709
  </component>
708
710
  <component name="VcsManagerConfiguration">
709
- <MESSAGE value="Add page query param creator" />
710
- <MESSAGE value="Hide advanced settings when letChaos is true" />
711
711
  <MESSAGE value="Add OverridableMeta component" />
712
712
  <MESSAGE value="Fix package main index" />
713
713
  <MESSAGE value="Fix dialog positioning&#10;&#10;Dialog positioning seemed to be broken when the styles from Seaweed moved to postcss, even if the dialog solely exists in Pineapple" />
@@ -731,6 +731,8 @@
731
731
  <MESSAGE value="Fix NavigationComponent styling" />
732
732
  <MESSAGE value="Fix default page sorting" />
733
733
  <MESSAGE value="Fix double dor parsing issue in NavigationComponent" />
734
- <option name="LAST_COMMIT_MESSAGE" value="Fix double dor parsing issue in NavigationComponent" />
734
+ <MESSAGE value="yarn scripts" />
735
+ <MESSAGE value="Layout adjustments to PineappleBaseLayout" />
736
+ <option name="LAST_COMMIT_MESSAGE" value="Layout adjustments to PineappleBaseLayout" />
735
737
  </component>
736
738
  </project>
@@ -1,10 +1,11 @@
1
1
  <script>import NavigationControl from "./NavigationControl.svelte";
2
2
  import { Card, createGoToFunction } from "../..";
3
3
  import { parsePageMeta } from "./PageMeta";
4
- export let title = void 0;
5
4
  export let fileList;
6
5
  export let jsonList;
6
+ export let title = void 0;
7
7
  export let imageMap = /* @__PURE__ */ new Map();
8
+ export let shouldAllowControl = true;
8
9
  export let parentSubpath;
9
10
  export let compareFn = void 0;
10
11
  export let pageSize = 5;
@@ -23,9 +24,11 @@ $:
23
24
  </Card>
24
25
  {/if}
25
26
 
26
- <NavigationControl bind:currentIndex={currentIndex}
27
- bind:contentLength={pageFlatList.length}
28
- bind:pageSize={pageSize}></NavigationControl>
27
+ {#if shouldAllowControl}
28
+ <NavigationControl bind:currentIndex={currentIndex}
29
+ bind:contentLength={pageFlatList.length}
30
+ bind:pageSize={pageSize}></NavigationControl>
31
+ {/if}
29
32
 
30
33
  <div class="navigation-component">
31
34
  <!-- all the misc routes-->
@@ -61,9 +64,11 @@ $:
61
64
  {/if}
62
65
  </div>
63
66
 
64
- <NavigationControl bind:currentIndex={currentIndex}
65
- bind:contentLength={pageFlatList.length}
66
- bind:pageSize={pageSize}></NavigationControl>
67
+ {#if shouldAllowControl}
68
+ <NavigationControl bind:currentIndex={currentIndex}
69
+ bind:contentLength={pageFlatList.length}
70
+ bind:pageSize={pageSize}></NavigationControl>
71
+ {/if}
67
72
 
68
73
  </div>
69
74
 
@@ -246,7 +251,7 @@ $:
246
251
  display: flex;
247
252
  flex-direction: column;
248
253
  max-width: 1000px;
249
- width: 100%;
254
+ width: 100%;
250
255
  }
251
256
 
252
257
  .tag-container {
@@ -2,10 +2,11 @@ import { SvelteComponent } from "svelte";
2
2
  import { type ParsePageMetaCompareFn } from "./PageMeta";
3
3
  declare const __propDef: {
4
4
  props: {
5
- title?: string | undefined;
6
5
  fileList: Record<string, unknown>;
7
6
  jsonList: Record<string, unknown>;
7
+ title?: string | undefined;
8
8
  imageMap?: Map<string, string> | undefined;
9
+ shouldAllowControl?: boolean | undefined;
9
10
  /**
10
11
  * Should include a slash before and after the path
11
12
  */ parentSubpath: 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: "j4u1ek"
24
+ version_hash: "85sq1n"
25
25
  };
26
26
 
27
27
  export async function get_hooks() {
@@ -1,10 +1,11 @@
1
1
  <script>import NavigationControl from "./NavigationControl.svelte";
2
2
  import { Card, createGoToFunction } from "../..";
3
3
  import { parsePageMeta } from "./PageMeta";
4
- export let title = void 0;
5
4
  export let fileList;
6
5
  export let jsonList;
6
+ export let title = void 0;
7
7
  export let imageMap = /* @__PURE__ */ new Map();
8
+ export let shouldAllowControl = true;
8
9
  export let parentSubpath;
9
10
  export let compareFn = void 0;
10
11
  export let pageSize = 5;
@@ -23,9 +24,11 @@ $:
23
24
  </Card>
24
25
  {/if}
25
26
 
26
- <NavigationControl bind:currentIndex={currentIndex}
27
- bind:contentLength={pageFlatList.length}
28
- bind:pageSize={pageSize}></NavigationControl>
27
+ {#if shouldAllowControl}
28
+ <NavigationControl bind:currentIndex={currentIndex}
29
+ bind:contentLength={pageFlatList.length}
30
+ bind:pageSize={pageSize}></NavigationControl>
31
+ {/if}
29
32
 
30
33
  <div class="navigation-component">
31
34
  <!-- all the misc routes-->
@@ -61,9 +64,11 @@ $:
61
64
  {/if}
62
65
  </div>
63
66
 
64
- <NavigationControl bind:currentIndex={currentIndex}
65
- bind:contentLength={pageFlatList.length}
66
- bind:pageSize={pageSize}></NavigationControl>
67
+ {#if shouldAllowControl}
68
+ <NavigationControl bind:currentIndex={currentIndex}
69
+ bind:contentLength={pageFlatList.length}
70
+ bind:pageSize={pageSize}></NavigationControl>
71
+ {/if}
67
72
 
68
73
  </div>
69
74
 
@@ -246,7 +251,7 @@ $:
246
251
  display: flex;
247
252
  flex-direction: column;
248
253
  max-width: 1000px;
249
- width: 100%;
254
+ width: 100%;
250
255
  }
251
256
 
252
257
  .tag-container {
@@ -2,10 +2,11 @@ import { SvelteComponent } from "svelte";
2
2
  import { type ParsePageMetaCompareFn } from "./PageMeta";
3
3
  declare const __propDef: {
4
4
  props: {
5
- title?: string | undefined;
6
5
  fileList: Record<string, unknown>;
7
6
  jsonList: Record<string, unknown>;
7
+ title?: string | undefined;
8
8
  imageMap?: Map<string, string> | undefined;
9
+ shouldAllowControl?: boolean | undefined;
9
10
  /**
10
11
  * Should include a slash before and after the path
11
12
  */ parentSubpath: string;
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.38",
4
+ "version": "2.4.39",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "npm run check-requirements && vite build && yarn package",
@@ -3,10 +3,11 @@
3
3
  import { Card, createGoToFunction } from "$pkg";
4
4
  import { parsePageMeta, type ParsePageMetaCompareFn } from "$pkg/components/navigation_component/PageMeta";
5
5
 
6
- export let title: string | undefined = undefined;
7
6
  export let fileList: Record<string, unknown>;
8
7
  export let jsonList: Record<string, unknown>;
8
+ export let title: string | undefined = undefined;
9
9
  export let imageMap = new Map<string, string>();
10
+ export let shouldAllowControl = true;
10
11
 
11
12
  /**
12
13
  * Should include a slash before and after the path
@@ -31,9 +32,11 @@
31
32
  </Card>
32
33
  {/if}
33
34
 
34
- <NavigationControl bind:currentIndex={currentIndex}
35
- bind:contentLength={pageFlatList.length}
36
- bind:pageSize={pageSize}></NavigationControl>
35
+ {#if shouldAllowControl}
36
+ <NavigationControl bind:currentIndex={currentIndex}
37
+ bind:contentLength={pageFlatList.length}
38
+ bind:pageSize={pageSize}></NavigationControl>
39
+ {/if}
37
40
 
38
41
  <div class="navigation-component">
39
42
  <!-- all the misc routes-->
@@ -69,9 +72,11 @@
69
72
  {/if}
70
73
  </div>
71
74
 
72
- <NavigationControl bind:currentIndex={currentIndex}
73
- bind:contentLength={pageFlatList.length}
74
- bind:pageSize={pageSize}></NavigationControl>
75
+ {#if shouldAllowControl}
76
+ <NavigationControl bind:currentIndex={currentIndex}
77
+ bind:contentLength={pageFlatList.length}
78
+ bind:pageSize={pageSize}></NavigationControl>
79
+ {/if}
75
80
 
76
81
  </div>
77
82
 
@@ -137,7 +142,7 @@
137
142
  display: flex;
138
143
  flex-direction: column;
139
144
  max-width: 1000px;
140
- width: 100%;
145
+ width: 100%;
141
146
  }
142
147
 
143
148
  .tag-container {
@@ -59,6 +59,7 @@
59
59
  fileList={fileList}
60
60
  jsonList={jsonList}
61
61
  imageMap={ImageMap}
62
+ shouldAllowControl={false}
62
63
  parentSubpath="/pineapple/">
63
64
  </NavigationComponent>
64
65