@turnipxenon/pineapple 2.4.22 → 2.4.23

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,10 +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="Adjust turnip fab button color">
8
- <change beforePath="$PROJECT_DIR$/src/lib/app.postcss" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/app.postcss" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/routes/(pineapple)/+page.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/routes/(pineapple)/+page.svelte" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/src/routes/(pineapple)/pineapple/+page.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/routes/(pineapple)/pineapple/+page.svelte" afterDir="false" />
7
+ <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Add external link warning stub">
8
+ <change beforePath="$PROJECT_DIR$/src/lib/util/util.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/util/util.ts" afterDir="false" />
11
9
  </list>
12
10
  <option name="SHOW_DIALOG" value="false" />
13
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -44,7 +42,7 @@
44
42
  <component name="Git.Settings">
45
43
  <option name="RECENT_BRANCH_BY_REPOSITORY">
46
44
  <map>
47
- <entry key="$PROJECT_DIR$" value="turnip/dev" />
45
+ <entry key="$PROJECT_DIR$" value="6a23be06c0482005bd0be5fdcf6f94083ed08c64" />
48
46
  </map>
49
47
  </option>
50
48
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
@@ -78,32 +76,32 @@
78
76
  <option name="hideEmptyMiddlePackages" value="true" />
79
77
  <option name="showLibraryContents" value="true" />
80
78
  </component>
81
- <component name="PropertiesComponent"><![CDATA[{
82
- "keyToString": {
83
- "DefaultHtmlFileTemplate": "HTML File",
84
- "RunOnceActivity.OpenProjectViewOnStart": "true",
85
- "RunOnceActivity.ShowReadmeOnStart": "true",
86
- "WebServerToolWindowFactoryState": "false",
87
- "git-widget-placeholder": "6a23be06",
88
- "ignore.virus.scanning.warn.message": "true",
89
- "last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/assets/placeholder",
90
- "node.js.detected.package.eslint": "true",
91
- "node.js.detected.package.tslint": "true",
92
- "node.js.selected.package.eslint": "(autodetect)",
93
- "node.js.selected.package.tslint": "(autodetect)",
94
- "nodejs_interpreter_path": "node",
95
- "nodejs_package_manager_path": "yarn",
96
- "npm.build.executor": "Run",
97
- "npm.dev (1).executor": "Run",
98
- "npm.dev --open.executor": "Run",
99
- "npm.dev offline.executor": "Run",
100
- "npm.dev-offline.executor": "Run",
101
- "npm.dev.executor": "Run",
102
- "settings.editor.selected.configurable": "preferences.pluginManager",
103
- "ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
104
- "vue.rearranger.settings.migration": "true"
79
+ <component name="PropertiesComponent">{
80
+ &quot;keyToString&quot;: {
81
+ &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
82
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
83
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
84
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
85
+ &quot;git-widget-placeholder&quot;: &quot;turnip/dev&quot;,
86
+ &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
87
+ &quot;last_opened_file_path&quot;: &quot;C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/assets/placeholder&quot;,
88
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
89
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
90
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
91
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
92
+ &quot;nodejs_interpreter_path&quot;: &quot;node&quot;,
93
+ &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
94
+ &quot;npm.build.executor&quot;: &quot;Run&quot;,
95
+ &quot;npm.dev (1).executor&quot;: &quot;Run&quot;,
96
+ &quot;npm.dev --open.executor&quot;: &quot;Run&quot;,
97
+ &quot;npm.dev offline.executor&quot;: &quot;Run&quot;,
98
+ &quot;npm.dev-offline.executor&quot;: &quot;Run&quot;,
99
+ &quot;npm.dev.executor&quot;: &quot;Run&quot;,
100
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
101
+ &quot;ts.external.directory.path&quot;: &quot;C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib&quot;,
102
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
105
103
  }
106
- }]]></component>
104
+ }</component>
107
105
  <component name="RecentsManager">
108
106
  <key name="CopyFile.RECENT_KEYS">
109
107
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\assets\placeholder" />
@@ -216,15 +214,9 @@
216
214
  <workItem from="1710914868232" duration="41000" />
217
215
  <workItem from="1711051949931" duration="144000" />
218
216
  <workItem from="1711052377810" duration="128000" />
219
- <workItem from="1711090540281" duration="9667000" />
220
- </task>
221
- <task id="LOCAL-00035" summary="Fix light-dark theming">
222
- <option name="closed" value="true" />
223
- <created>1710093358574</created>
224
- <option name="number" value="00035" />
225
- <option name="presentableId" value="LOCAL-00035" />
226
- <option name="project" value="LOCAL" />
227
- <updated>1710093358574</updated>
217
+ <workItem from="1711090540281" duration="11162000" />
218
+ <workItem from="1711104214619" duration="25000" />
219
+ <workItem from="1711108187279" duration="358000" />
228
220
  </task>
229
221
  <task id="LOCAL-00036" summary="Fix broken string width resolution">
230
222
  <option name="closed" value="true" />
@@ -610,7 +602,15 @@
610
602
  <option name="project" value="LOCAL" />
611
603
  <updated>1711101211481</updated>
612
604
  </task>
613
- <option name="localTasksCounter" value="84" />
605
+ <task id="LOCAL-00084" summary="Replace btn-group postcss class with turnip-menu&#10;&#10;There is postcss defined class called btn-group which has styles that have !important, which I accidentally used not knowing it exists, and it overrides whatever styles I apply on my class">
606
+ <option name="closed" value="true" />
607
+ <created>1711101645201</created>
608
+ <option name="number" value="00084" />
609
+ <option name="presentableId" value="LOCAL-00084" />
610
+ <option name="project" value="LOCAL" />
611
+ <updated>1711101645201</updated>
612
+ </task>
613
+ <option name="localTasksCounter" value="85" />
614
614
  <servers />
615
615
  </component>
616
616
  <component name="TypeScriptGeneratedFilesManager">
@@ -668,8 +668,6 @@
668
668
  </option>
669
669
  </component>
670
670
  <component name="VcsManagerConfiguration">
671
- <MESSAGE value="Fix wrong link in migrante" />
672
- <MESSAGE value="Reorganize directories to make Pineapple as default layout but still overrideable by Seaweed" />
673
671
  <MESSAGE value="Improve text contrast" />
674
672
  <MESSAGE value="Improve text contrast in dark mode" />
675
673
  <MESSAGE value="Add animation to dynamically added button in social section" />
@@ -693,6 +691,8 @@
693
691
  <MESSAGE value="Fix breadcrumb layout" />
694
692
  <MESSAGE value="Fix default card postcss style" />
695
693
  <MESSAGE value="Adjust turnip fab button color" />
696
- <option name="LAST_COMMIT_MESSAGE" value="Adjust turnip fab button color" />
694
+ <MESSAGE value="Replace btn-group postcss class with turnip-menu&#10;&#10;There is postcss defined class called btn-group which has styles that have !important, which I accidentally used not knowing it exists, and it overrides whatever styles I apply on my class" />
695
+ <MESSAGE value="Add external link warning stub" />
696
+ <option name="LAST_COMMIT_MESSAGE" value="Add external link warning stub" />
697
697
  </component>
698
698
  </project>
@@ -1,3 +1,7 @@
1
1
  export declare const generatedDailySeed: () => number;
2
2
  export declare const mulberry32Generator: (a: number) => (() => number);
3
3
  export declare const createGoToFunction: (path: string) => (() => void);
4
+ export interface ExternalLinkWarningArgs {
5
+ href: string;
6
+ }
7
+ export declare const createExternalLinkWarningFunction: (args: ExternalLinkWarningArgs) => (() => void);
@@ -18,3 +18,10 @@ export const createGoToFunction = (path) => {
18
18
  location.href = path;
19
19
  });
20
20
  };
21
+ export const createExternalLinkWarningFunction = (args) => {
22
+ return (() => {
23
+ // todo: https://github.com/TurnipXenon/pineapple/issues/99
24
+ // add the warning here for future functions
25
+ location.href = args.href;
26
+ });
27
+ };
@@ -1,3 +1,7 @@
1
1
  export declare const generatedDailySeed: () => number;
2
2
  export declare const mulberry32Generator: (a: number) => (() => number);
3
3
  export declare const createGoToFunction: (path: string) => (() => void);
4
+ export interface ExternalLinkWarningArgs {
5
+ href: string;
6
+ }
7
+ export declare const createExternalLinkWarningFunction: (args: ExternalLinkWarningArgs) => (() => void);
package/dist/util/util.js CHANGED
@@ -18,3 +18,10 @@ export const createGoToFunction = (path) => {
18
18
  location.href = path;
19
19
  });
20
20
  };
21
+ export const createExternalLinkWarningFunction = (args) => {
22
+ return (() => {
23
+ // todo: https://github.com/TurnipXenon/pineapple/issues/99
24
+ // add the warning here for future functions
25
+ location.href = args.href;
26
+ });
27
+ };
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.22",
4
+ "version": "2.4.23",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "npm run check-requirements && vite build && yarn package",
@@ -19,4 +19,16 @@ export const createGoToFunction = (path: string): (() => void) => {
19
19
  return (() => {
20
20
  location.href = path;
21
21
  });
22
- };
22
+ };
23
+
24
+ export interface ExternalLinkWarningArgs {
25
+ href: string;
26
+ }
27
+
28
+ export const createExternalLinkWarningFunction = (args: ExternalLinkWarningArgs): (() => void) => {
29
+ return (() => {
30
+ // todo: https://github.com/TurnipXenon/pineapple/issues/99
31
+ // add the warning here for future functions
32
+ location.href = args.href;
33
+ });
34
+ };