@turnipxenon/pineapple 5.3.0-alpha.4 → 5.3.0-alpha.6
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/dist/modules/parsnip/route-util/slugPageServerLoad.d.ts.map +1 -1
- package/dist/modules/parsnip/route-util/slugPageServerLoad.js +16 -2
- package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte +5 -0
- package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte.d.ts.map +1 -1
- package/dist/ui/templates/blog_template/BlogTemplateInner.svelte +7 -6
- package/dist/ui/templates/blog_template/BlogTemplateInner.svelte.d.ts +1 -1
- package/dist/ui/templates/blog_template/BlogTemplateInner.svelte.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slugPageServerLoad.d.ts","sourceRoot":"","sources":["../../../../src/lib/modules/parsnip/route-util/slugPageServerLoad.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAKvF,eAAO,MAAM,kBAAkB,GAAU,YAAY;IAAE,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE;;;
|
|
1
|
+
{"version":3,"file":"slugPageServerLoad.d.ts","sourceRoot":"","sources":["../../../../src/lib/modules/parsnip/route-util/slugPageServerLoad.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAKvF,eAAO,MAAM,kBAAkB,GAAU,YAAY;IAAE,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE;;;EA+EhF,CAAC"}
|
|
@@ -30,7 +30,10 @@ export const slugPageServerLoad = (_a) => __awaiter(void 0, [_a], void 0, functi
|
|
|
30
30
|
parsnipEntry.ast.ast.children.forEach(child => {
|
|
31
31
|
if (child.type === "paragraph"
|
|
32
32
|
&& child.children.length === 1
|
|
33
|
-
&& child.children[0].type === "image"
|
|
33
|
+
&& (child.children[0].type === "image"
|
|
34
|
+
|| (child.children[0].type === "link" &&
|
|
35
|
+
(child.children[0].url.startsWith("https://photos.")
|
|
36
|
+
|| child.children[0].url.startsWith("https://rabiole."))))) {
|
|
34
37
|
imageCollection.push(child.children[0]);
|
|
35
38
|
}
|
|
36
39
|
else if (imageCollection.length > 0) {
|
|
@@ -45,12 +48,23 @@ export const slugPageServerLoad = (_a) => __awaiter(void 0, [_a], void 0, functi
|
|
|
45
48
|
newChildren.push(child);
|
|
46
49
|
}
|
|
47
50
|
});
|
|
51
|
+
if (imageCollection.length > 0) {
|
|
52
|
+
newChildren.push({
|
|
53
|
+
"type": "imageCollection",
|
|
54
|
+
children: imageCollection
|
|
55
|
+
});
|
|
56
|
+
}
|
|
48
57
|
parsnipEntry.ast.ast.children = newChildren;
|
|
58
|
+
let imageUrl = parsnipEntry.preview ? parsnipEntry.preview : undefined;
|
|
59
|
+
if (imageUrl && !imageUrl.includes("https://")) {
|
|
60
|
+
imageUrl = `${parsnipOverall.baseUrl}/${parsnipEntry.preview}`;
|
|
61
|
+
}
|
|
62
|
+
console.log(imageUrl);
|
|
49
63
|
const meta = {
|
|
50
64
|
title: parsnipEntry.basename,
|
|
51
65
|
ogTitle: parsnipEntry.basename,
|
|
52
66
|
ogDescription: parsnipEntry.tagline,
|
|
53
|
-
ogImage:
|
|
67
|
+
ogImage: imageUrl ? [imageUrl] : undefined
|
|
54
68
|
};
|
|
55
69
|
return {
|
|
56
70
|
parsnipEntry,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!-- TODO: Documentation: consider documentation showcase -->
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
|
+
import { browser } from "$app/environment";
|
|
4
5
|
import { page } from "$app/state";
|
|
5
6
|
import type { ParsnipOverall } from "../../../modules/parsnip/ParsnipOverall";
|
|
6
7
|
import NavigationControl from "./NavigationControl.svelte";
|
|
@@ -57,6 +58,10 @@
|
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
60
|
const hasTagQuery = $derived((() => {
|
|
61
|
+
if (!browser) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
|
|
60
65
|
const repeatedTags = page.url.searchParams.getAll("tags");
|
|
61
66
|
if (repeatedTags.length > 0) {
|
|
62
67
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/modules/NavigationMenu/NavigationMenu.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationMenu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/modules/NavigationMenu/NavigationMenu.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAIL,KAAK,sBAAsB,EAC3B,MAAM,yCAAyC,CAAC;AAMjD,UAAU,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,sBAAsB,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAqLF,QAAA,MAAM,cAAc,oGAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
<!-- TODO: Documentation: consider documentation showcase -->
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
|
-
import type { SimplePageMeta } from "../../modules/NavigationMenu/index";
|
|
5
4
|
import { localizeHref } from "../../../external/paraglide/runtime.js";
|
|
5
|
+
import type { SimplePageMeta } from "../../modules/NavigationMenu/index";
|
|
6
6
|
import { getWebBaseUrl } from "../../../util/env-getter";
|
|
7
|
+
import { SvelteURLSearchParams } from "svelte/reactivity";
|
|
7
8
|
|
|
8
9
|
interface Props {
|
|
9
10
|
pageMeta: SimplePageMeta;
|
|
10
|
-
children?: import(
|
|
11
|
+
children?: import("svelte").Snippet;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
let { pageMeta, children }: Props = $props();
|
|
14
15
|
|
|
15
|
-
const getTagQueryHref = (tag: string): string => {
|
|
16
|
-
const query = new
|
|
16
|
+
const getTagQueryHref = $derived((tag: string): string => {
|
|
17
|
+
const query = new SvelteURLSearchParams();
|
|
17
18
|
query.set("index", "0");
|
|
18
19
|
query.append("tags", tag);
|
|
19
20
|
return `${localizeHref(getWebBaseUrl())}?${query.toString()}`;
|
|
20
|
-
};
|
|
21
|
+
});
|
|
21
22
|
</script>
|
|
22
23
|
|
|
23
24
|
<article>
|
|
@@ -76,6 +77,6 @@
|
|
|
76
77
|
border-color: var(--color-primary-400-600);
|
|
77
78
|
color: var(--color-surface-900-100);
|
|
78
79
|
outline: none;
|
|
79
|
-
|
|
80
|
+
filter: brightness(110%);
|
|
80
81
|
}
|
|
81
82
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SimplePageMeta } from "../../modules/NavigationMenu/index";
|
|
2
2
|
interface Props {
|
|
3
3
|
pageMeta: SimplePageMeta;
|
|
4
|
-
children?: import(
|
|
4
|
+
children?: import("svelte").Snippet;
|
|
5
5
|
}
|
|
6
6
|
declare const BlogTemplateInner: import("svelte").Component<Props, {}, "">;
|
|
7
7
|
type BlogTemplateInner = ReturnType<typeof BlogTemplateInner>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlogTemplateInner.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/templates/blog_template/BlogTemplateInner.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlogTemplateInner.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/templates/blog_template/BlogTemplateInner.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAK1E,UAAU,KAAK;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,QAAQ,EAAE,OAAO,CAAC;CACpC;AAkDF,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
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": "5.3.0-alpha.
|
|
4
|
+
"version": "5.3.0-alpha.6",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@commitlint/cli": "^19.8.1",
|
|
7
7
|
"@commitlint/config-conventional": "^19.8.1",
|