@turnipxenon/pineapple 2.1.1 → 2.2.1
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/package.json +6 -8
- package/src/lib/index.ts +1 -0
- package/src/routes/+layout.svelte +19 -19
- package/src/routes/portfolio/+page.server.ts +44 -44
- package/static/default-card.png +0 -0
- package/static/favicon.png +0 -0
- package/static/robots.txt +0 -5
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
|
+
"version": "2.2.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "npm run check-requirements && vite build",
|
|
@@ -57,18 +57,16 @@
|
|
|
57
57
|
"resolutions": {
|
|
58
58
|
"string-width": "4.2.3"
|
|
59
59
|
},
|
|
60
|
-
"main": "./
|
|
61
|
-
"types": "./
|
|
60
|
+
"main": "./lib/index.ts",
|
|
61
|
+
"types": "./lib/index.d.ts",
|
|
62
62
|
"exports": {
|
|
63
63
|
".": {
|
|
64
|
-
"types": "./
|
|
65
|
-
"svelte": "./
|
|
64
|
+
"types": "./lib/index.d.ts",
|
|
65
|
+
"svelte": "./lib/index.ts"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"files": [
|
|
69
|
-
"./src"
|
|
70
|
-
"./static",
|
|
71
|
-
"./dist"
|
|
69
|
+
"./src"
|
|
72
70
|
],
|
|
73
71
|
"repository": "https://github.com/TurnipXenon/pineapple",
|
|
74
72
|
"author": "turnipxenon <turnipxenon@gmail.com>",
|
package/src/lib/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as PineappleLayoutBase } from "./components/layouts/PineappleBaseLayout.svelte";
|
|
2
|
+
export { default as SeaweedTemplate } from "./template/SeaweedTemplate";
|
|
2
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
3
4
|
|
|
4
5
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
// The ordering of these imports is critical to your app working properly
|
|
3
|
-
import "$lib/theme.postcss";
|
|
4
|
-
// If you have source.organizeImports set to true in VSCode, then it will auto change this ordering
|
|
5
|
-
// import "@skeletonlabs/skeleton/styles/all.css";
|
|
6
|
-
// Most of your app wide CSS should be put in this file
|
|
7
|
-
import "$lib/app.postcss";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { initializeStores } from "@skeletonlabs/skeleton";
|
|
11
|
-
import { Modal } from "@skeletonlabs/skeleton";
|
|
12
|
-
import "$lib/styles/global.css";
|
|
13
|
-
|
|
14
|
-
initializeStores();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<Modal />
|
|
18
|
-
|
|
19
|
-
<slot />
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
// The ordering of these imports is critical to your app working properly
|
|
3
|
+
import "$lib/theme.postcss";
|
|
4
|
+
// If you have source.organizeImports set to true in VSCode, then it will auto change this ordering
|
|
5
|
+
// import "@skeletonlabs/skeleton/styles/all.css";
|
|
6
|
+
// Most of your app wide CSS should be put in this file
|
|
7
|
+
import "$lib/app.postcss";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
import { initializeStores } from "@skeletonlabs/skeleton";
|
|
11
|
+
import { Modal } from "@skeletonlabs/skeleton";
|
|
12
|
+
import "$lib/styles/global.css";
|
|
13
|
+
|
|
14
|
+
initializeStores();
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<Modal />
|
|
18
|
+
|
|
19
|
+
<slot />
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import type {PageLoad} from './$types';
|
|
2
|
-
import * as htmlparser2 from "htmlparser2";
|
|
3
|
-
import {DomUtils} from "htmlparser2";
|
|
4
|
-
|
|
5
|
-
export const prerender = true;
|
|
6
|
-
|
|
7
|
-
export interface ItchMeta {
|
|
8
|
-
title: string; // title
|
|
9
|
-
thumbnailLink: string; // meta content name=twitter:image
|
|
10
|
-
description: string; // class: user_profile formatted
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface PageData {
|
|
14
|
-
itchMeta?: ItchMeta;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// todo: save for webscraping for dynamic content during compile time
|
|
18
|
-
export const load: PageLoad = async (): Promise<PageData> => {
|
|
19
|
-
return {};
|
|
20
|
-
// return fetch("https://turnipxenon.itch.io/", {}).then(r => {
|
|
21
|
-
// return r.text().then(htmlString => {
|
|
22
|
-
// const dom = htmlparser2.parseDocument(htmlString);
|
|
23
|
-
// const imageChild = DomUtils.findOne(el => {
|
|
24
|
-
// return DomUtils.getAttributeValue(el, "name") === "twitter:image";
|
|
25
|
-
// }, dom.childNodes);
|
|
26
|
-
// const titleChild = DomUtils.findOne(el => {
|
|
27
|
-
// return el.tagName === "title";
|
|
28
|
-
// }, dom.childNodes);
|
|
29
|
-
// return {
|
|
30
|
-
// itchMeta: {
|
|
31
|
-
// title: titleChild ? DomUtils.textContent(titleChild) : "",
|
|
32
|
-
// thumbnailLink: imageChild !== null ? DomUtils.getAttributeValue(imageChild, "content")! : "",
|
|
33
|
-
// description: "",
|
|
34
|
-
// }
|
|
35
|
-
// };
|
|
36
|
-
// }).catch(e => {
|
|
37
|
-
// console.error(e);
|
|
38
|
-
// return {};
|
|
39
|
-
// });
|
|
40
|
-
// }).catch(e => {
|
|
41
|
-
// console.error(e);
|
|
42
|
-
// return {};
|
|
43
|
-
// });
|
|
44
|
-
};
|
|
1
|
+
import type {PageLoad} from './$types';
|
|
2
|
+
import * as htmlparser2 from "htmlparser2";
|
|
3
|
+
import {DomUtils} from "htmlparser2";
|
|
4
|
+
|
|
5
|
+
export const prerender = true;
|
|
6
|
+
|
|
7
|
+
export interface ItchMeta {
|
|
8
|
+
title: string; // title
|
|
9
|
+
thumbnailLink: string; // meta content name=twitter:image
|
|
10
|
+
description: string; // class: user_profile formatted
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface PageData {
|
|
14
|
+
itchMeta?: ItchMeta;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// todo: save for webscraping for dynamic content during compile time
|
|
18
|
+
export const load: PageLoad = async (): Promise<PageData> => {
|
|
19
|
+
return {};
|
|
20
|
+
// return fetch("https://turnipxenon.itch.io/", {}).then(r => {
|
|
21
|
+
// return r.text().then(htmlString => {
|
|
22
|
+
// const dom = htmlparser2.parseDocument(htmlString);
|
|
23
|
+
// const imageChild = DomUtils.findOne(el => {
|
|
24
|
+
// return DomUtils.getAttributeValue(el, "name") === "twitter:image";
|
|
25
|
+
// }, dom.childNodes);
|
|
26
|
+
// const titleChild = DomUtils.findOne(el => {
|
|
27
|
+
// return el.tagName === "title";
|
|
28
|
+
// }, dom.childNodes);
|
|
29
|
+
// return {
|
|
30
|
+
// itchMeta: {
|
|
31
|
+
// title: titleChild ? DomUtils.textContent(titleChild) : "",
|
|
32
|
+
// thumbnailLink: imageChild !== null ? DomUtils.getAttributeValue(imageChild, "content")! : "",
|
|
33
|
+
// description: "",
|
|
34
|
+
// }
|
|
35
|
+
// };
|
|
36
|
+
// }).catch(e => {
|
|
37
|
+
// console.error(e);
|
|
38
|
+
// return {};
|
|
39
|
+
// });
|
|
40
|
+
// }).catch(e => {
|
|
41
|
+
// console.error(e);
|
|
42
|
+
// return {};
|
|
43
|
+
// });
|
|
44
|
+
};
|
package/static/default-card.png
DELETED
|
Binary file
|
package/static/favicon.png
DELETED
|
Binary file
|