mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Set default value for markdown preview and improve error for collab
This commit is contained in:
@@ -65,7 +65,10 @@
|
|||||||
{#if fullPreview}
|
{#if fullPreview}
|
||||||
<iframe src={previewContent.value} title="Preview"></iframe>
|
<iframe src={previewContent.value} title="Preview"></iframe>
|
||||||
{:else}
|
{:else}
|
||||||
{@html md(previewContent.value, Object.keys($page.params).length > 1 ? true : false)}
|
{@html md(
|
||||||
|
previewContent.value || "Write some markdown content to see a live preview here",
|
||||||
|
Object.keys($page.params).length > 1 ? true : false
|
||||||
|
)}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -66,3 +66,9 @@
|
|||||||
</form>
|
</form>
|
||||||
</Modal>
|
</Modal>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
form[action="?/logout"] > button {
|
||||||
|
max-inline-size: fit-content;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -41,6 +41,10 @@ export const actions: Actions = {
|
|||||||
)
|
)
|
||||||
).data;
|
).data;
|
||||||
|
|
||||||
|
if (!user) {
|
||||||
|
return { success: false, message: "Specified user could not be found" };
|
||||||
|
}
|
||||||
|
|
||||||
return await apiRequest(fetch, `${API_BASE_PREFIX}/collab`, "POST", {
|
return await apiRequest(fetch, `${API_BASE_PREFIX}/collab`, "POST", {
|
||||||
body: {
|
body: {
|
||||||
website_id: params.websiteId,
|
website_id: params.websiteId,
|
||||||
|
|||||||
@@ -42,12 +42,12 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<img src="/favicon.svg" width="24" height="24" alt="" />
|
<div class="logo-wrapper">
|
||||||
|
<img src="/favicon.svg" width="24" height="24" alt="" />
|
||||||
|
<a href="/">archtika</a>
|
||||||
|
</div>
|
||||||
<ul class="link-wrapper unpadded">
|
<ul class="link-wrapper unpadded">
|
||||||
{#if data.user}
|
{#if data.user}
|
||||||
<li>
|
|
||||||
<a href="/">Dashboard</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="/account">Account</a>
|
<a href="/account">Account</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -100,6 +100,12 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav > .logo-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-2xs);
|
||||||
|
}
|
||||||
|
|
||||||
nav > .link-wrapper {
|
nav > .link-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user