@turnipxenon/pineapple 4.4.0 → 4.4.2
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/components/dialog_manager/DialogManager.js +1 -1
- package/dist/modules/parsnip/ParsnipHeading.svelte +20 -21
- package/dist/ui/components/ModalBase.svelte +3 -3
- package/dist/ui/components/SocialSection.svelte +3 -2
- package/dist/ui/templates/SeaweedLayout/CreateUrlForm.svelte +1 -5
- package/dist/ui/templates/SeaweedLayout/EntryGroup.svelte +2 -2
- package/dist/ui/templates/SeaweedLayout/ProjectGroupConfig.svelte +0 -53
- package/package.json +1 -1
|
@@ -163,7 +163,7 @@ export class DialogManager {
|
|
|
163
163
|
// set the portrait
|
|
164
164
|
let portraitValue = AresHappy;
|
|
165
165
|
if (this.currentMessageMeta.portraitType) {
|
|
166
|
-
portraitValue = this.portraitMap.get(this.currentMessageMeta.portraitType ?? AresHappy);
|
|
166
|
+
portraitValue = this.portraitMap.get(this.currentMessageMeta.portraitType ?? AresHappy) ?? '';
|
|
167
167
|
}
|
|
168
168
|
if (portraitValue) {
|
|
169
169
|
this.currentPortrait.update(() => portraitValue);
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
{/if}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import ParsnipPhrasingChildren from "./ParsnipPhrasingChildren.svelte";
|
|
3
|
+
import type { Heading } from "mdast";
|
|
4
|
+
|
|
5
|
+
const { heading }: { heading: Heading } = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
{#if heading.depth === 1}
|
|
9
|
+
<h2><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h2>
|
|
10
|
+
{:else if heading.depth === 2}
|
|
11
|
+
<h3><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h3>
|
|
12
|
+
{:else if heading.depth === 3}
|
|
13
|
+
<h4><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h4>
|
|
14
|
+
{:else if heading.depth === 4}
|
|
15
|
+
<h5><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h5>
|
|
16
|
+
{:else if heading.depth === 5}
|
|
17
|
+
<h6><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h6>
|
|
18
|
+
{:else if heading.depth === 6}
|
|
19
|
+
<p><ParsnipPhrasingChildren phrasingChildren={heading.children}/></p>
|
|
20
|
+
{/if}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
close
|
|
19
19
|
}: ModalBaseProps = $props();
|
|
20
20
|
|
|
21
|
-
let container
|
|
21
|
+
let container = $state<HTMLDivElement>();
|
|
22
22
|
onMount(() => {
|
|
23
|
-
const focusableElement = container
|
|
23
|
+
const focusableElement = container?.querySelector('input, select, textarea, button, object, a, area[href], [tabindex]');
|
|
24
24
|
if (focusableElement) {
|
|
25
25
|
(focusableElement as HTMLElement).focus();
|
|
26
26
|
}
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
.interactable {
|
|
73
73
|
pointer-events: auto;
|
|
74
74
|
}
|
|
75
|
-
</style>
|
|
75
|
+
</style>
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
<PinyaButton
|
|
55
55
|
buttonVariant={ButtonVariant.SmallIcon}
|
|
56
56
|
title={`mailto:${email}`}
|
|
57
|
-
onclick={() => window.open(`mailto:${email}`)}
|
|
57
|
+
onclick={() => window.open(`mailto:${email}`)}
|
|
58
|
+
>
|
|
58
59
|
<ImageIcon src={MailIcon} alt="mail icon" />
|
|
59
60
|
{#if (!isSmallVersion)}
|
|
60
61
|
<span>{email}</span>
|
|
@@ -89,4 +90,4 @@
|
|
|
89
90
|
gap: 0.7rem;
|
|
90
91
|
align-items: stretch;
|
|
91
92
|
}
|
|
92
|
-
</style>
|
|
93
|
+
</style>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<div class="mt-8 flex flex-col items-center">
|
|
22
22
|
<PinyaCard widthClass="w-full" className="mb-8">
|
|
23
|
-
<h2>{title}</h2>
|
|
23
|
+
<h2 class="m-auto">{title}</h2>
|
|
24
24
|
</PinyaCard>
|
|
25
25
|
<div class="normal-project-container">
|
|
26
26
|
{#each normalUiList as ui (ui.key)}
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
justify-content: center;
|
|
64
64
|
align-items: start;
|
|
65
65
|
}
|
|
66
|
-
</style>
|
|
66
|
+
</style>
|
|
@@ -220,42 +220,10 @@
|
|
|
220
220
|
|
|
221
221
|
|
|
222
222
|
<style>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
.advanced-setting-list {
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: column;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.btn-group-header {
|
|
231
|
-
@apply preset-filled-tertiary-500;
|
|
232
|
-
display: flex;
|
|
233
|
-
align-items: center;
|
|
234
|
-
margin-bottom: 0.5lh;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.btn-group-entry {
|
|
238
|
-
@apply ;
|
|
239
|
-
display: flex;
|
|
240
|
-
padding: 0;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.btn-group-entry > div {
|
|
244
|
-
padding: 1em;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
223
|
.flipped-vertically {
|
|
248
224
|
transform: rotate(180deg);
|
|
249
225
|
}
|
|
250
226
|
|
|
251
|
-
.entry-group {
|
|
252
|
-
border-radius: var(--theme-rounded-container);
|
|
253
|
-
background-color: rgb(var(--color-surface-600));
|
|
254
|
-
margin-top: 1.5lh;
|
|
255
|
-
margin-bottom: 0.5lh;
|
|
256
|
-
padding: 0.5lh 0.5em;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
227
|
.entry-name {
|
|
260
228
|
grow: 1;
|
|
261
229
|
}
|
|
@@ -272,27 +240,6 @@
|
|
|
272
240
|
display: flex;
|
|
273
241
|
}
|
|
274
242
|
|
|
275
|
-
.btn-group > button {
|
|
276
|
-
padding: 0.3em 0.75em;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.btn-group-header > h2 {
|
|
280
|
-
font-weight: bolder;
|
|
281
|
-
padding-top: 1lh;
|
|
282
|
-
padding-bottom: 1lh;
|
|
283
|
-
margin-bottom: 0;
|
|
284
|
-
padding-inline-start: 1em;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.dark .btn-group-header > h2 {
|
|
288
|
-
color: rgb(var(--theme-font-color-dark));
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.dark .entry-group {
|
|
292
|
-
background-color: rgb(var(--color-surface-800));
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
243
|
tbody tr:nth-child(odd) {
|
|
297
244
|
background-color: var(--color-surface-100-900);
|
|
298
245
|
}
|
package/package.json
CHANGED