Skip to content

Commit 57caf34

Browse files
committed
[[ release ]] commit before tentative release.
1 parent 543c967 commit 57caf34

File tree

3 files changed

+49
-36
lines changed

3 files changed

+49
-36
lines changed

dist/bundle.js

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100042,7 +100042,7 @@ function add_css(target) {
100042100042
append_styles(target, "svelte-w70li9", ".file-on-top.svelte-w70li9{border:solid 2px rgb(26, 192, 11)}input[type=\"file\"].svelte-w70li9{display:none}.thumbnail-preview.svelte-w70li9{max-height:200px}");
100043100043
}
100044100044

100045-
// (281:6) {#if msg}
100045+
// (281:2) {#if msg}
100046100046
function create_if_block_3(ctx) {
100047100047
let if_block_anchor;
100048100048

@@ -100083,42 +100083,50 @@ function create_if_block_3(ctx) {
100083100083
};
100084100084
}
100085100085

100086-
// (284:8) {:else}
100086+
// (284:4) {:else}
100087100087
function create_else_block_1(ctx) {
100088-
let div;
100088+
let div1;
100089+
let div0;
100090+
let label;
100089100091
let t0;
100090100092
let a;
100091100093
let t1;
100092100094
let a_href_value;
100093100095

100094100096
return {
100095100097
c() {
100096-
div = element("div");
100097-
t0 = text("Your blog post has been posted. Do you want to\n ");
100098+
div1 = element("div");
100099+
div0 = element("div");
100100+
label = element("label");
100101+
t0 = text("Your blog post has been posted. Do you want to\n ");
100098100102
a = element("a");
100099100103
t1 = text("Check it out?");
100104+
attr(a, "class", "link");
100100100105
attr(a, "target", "_blank");
100101-
attr(a, "href", a_href_value = "?thread=" + encodeURIComponent(/*msg*/ ctx[6].key) + "#/thread");
100102-
attr(div, "class", "toast toast-success");
100106+
attr(a, "href", a_href_value = "?pkg=hub&view=thread&thread=" + encodeURIComponent(/*msg*/ ctx[6].key));
100107+
attr(div0, "class", "flex-1");
100108+
attr(div1, "class", "alert alert-success");
100103100109
},
100104100110
m(target, anchor) {
100105-
insert(target, div, anchor);
100106-
append(div, t0);
100107-
append(div, a);
100111+
insert(target, div1, anchor);
100112+
append(div1, div0);
100113+
append(div0, label);
100114+
append(label, t0);
100115+
append(label, a);
100108100116
append(a, t1);
100109100117
},
100110100118
p(ctx, dirty) {
100111-
if (dirty[0] & /*msg*/ 64 && a_href_value !== (a_href_value = "?thread=" + encodeURIComponent(/*msg*/ ctx[6].key) + "#/thread")) {
100119+
if (dirty[0] & /*msg*/ 64 && a_href_value !== (a_href_value = "?pkg=hub&view=thread&thread=" + encodeURIComponent(/*msg*/ ctx[6].key))) {
100112100120
attr(a, "href", a_href_value);
100113100121
}
100114100122
},
100115100123
d(detaching) {
100116-
if (detaching) detach(div);
100124+
if (detaching) detach(div1);
100117100125
}
100118100126
};
100119100127
}
100120100128

100121-
// (282:8) {#if error}
100129+
// (282:4) {#if error}
100122100130
function create_if_block_4(ctx) {
100123100131
let div;
100124100132
let t;
@@ -100127,7 +100135,7 @@ function create_if_block_4(ctx) {
100127100135
c() {
100128100136
div = element("div");
100129100137
t = text(/*msg*/ ctx[6]);
100130-
attr(div, "class", "toast toast-error");
100138+
attr(div, "class", "alert alert-error");
100131100139
},
100132100140
m(target, anchor) {
100133100141
insert(target, div, anchor);
@@ -100142,7 +100150,7 @@ function create_if_block_4(ctx) {
100142100150
};
100143100151
}
100144100152

100145-
// (387:6) {:else}
100153+
// (392:6) {:else}
100146100154
function create_else_block(ctx) {
100147100155
let div4;
100148100156
let preview_1;
@@ -100263,7 +100271,7 @@ function create_else_block(ctx) {
100263100271
};
100264100272
}
100265100273

100266-
// (295:6) {#if !showPreview}
100274+
// (300:6) {#if !showPreview}
100267100275
function create_if_block(ctx) {
100268100276
let div5;
100269100277
let div0;
@@ -100540,7 +100548,7 @@ function create_if_block(ctx) {
100540100548
};
100541100549
}
100542100550

100543-
// (353:12) {#if showContentWarningField}
100551+
// (358:12) {#if showContentWarningField}
100544100552
function create_if_block_2(ctx) {
100545100553
let input;
100546100554
let mounted;
@@ -100576,7 +100584,7 @@ function create_if_block_2(ctx) {
100576100584
};
100577100585
}
100578100586

100579-
// (364:10) {#if thumbnail}
100587+
// (369:10) {#if thumbnail}
100580100588
function create_if_block_1(ctx) {
100581100589
let div;
100582100590
let p;

dist/docs/packages/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ These are the packages that Patchfox is loading.
66
* [blog](/packages/blog/)
77
* [books](/packages/books/)
88
* [githubIntegration](/packages/githubIntegration/)
9-
* [calendar](/packages/calendar/)
9+
* [globalMenu](/packages/globalMenu/)
1010
* [contacts](/packages/contacts/)
11+
* [calendar](/packages/calendar/)
1112
* [errorHandler](/packages/errorHandler/)
1213
* [helpMenu](/packages/helpMenu/)
13-
* [globalMenu](/packages/globalMenu/)
1414
* [hub](/packages/hub/)
1515
* [intercept](/packages/intercept/)
1616
* [launcher](/packages/launcher/)
1717
* [openCollectiveIntegration](/packages/openCollectiveIntegration/)
1818
* [post](/packages/post/)
1919
* [private](/packages/private/)
2020
* [pub](/packages/pub/)
21-
* [sourcehutIntegration](/packages/sourcehutIntegration/)
21+
* [search](/packages/search/)
2222
* [settings](/packages/settings/)
2323
* [system](/packages/system/)
2424
* [vote](/packages/vote/)
25+
* [sourcehutIntegration](/packages/sourcehutIntegration/)
2526
* [zine](/packages/zine/)
26-
* [search](/packages/search/)

src/packages/blog/BlogCompose.svelte

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -278,20 +278,25 @@
278278
</style>
279279

280280
<div>
281-
{#if msg}
282-
{#if error}
283-
<div class="toast toast-error">{msg}</div>
284-
{:else}
285-
<div class="toast toast-success">
286-
Your blog post has been posted. Do you want to
287-
<a
288-
target="_blank"
289-
href="?thread={encodeURIComponent(msg.key)}#/thread">
290-
Check it out?
291-
</a>
292-
</div>
293-
{/if}
294-
{/if}
281+
{#if msg}
282+
{#if error}
283+
<div class="alert alert-error">{msg}</div>
284+
{:else}
285+
<div class="alert alert-success">
286+
<div class="flex-1">
287+
<label>
288+
Your blog post has been posted. Do you want to
289+
<a
290+
class="link"
291+
target="_blank"
292+
href="?pkg=hub&view=thread&thread={encodeURIComponent(msg.key)}">
293+
Check it out?
294+
</a>
295+
</label>
296+
</div>
297+
</div>
298+
{/if}
299+
{/if}
295300
{#if !showPreview}
296301
<div class="form-group" in:slide out:slide>
297302
<div class="form-control">

0 commit comments

Comments
 (0)