mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Update npm dependencies
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="pagination">
|
||||
{#snippet commonFilterInputs()}
|
||||
{#each commonFilters as filter}
|
||||
{#each commonFilters as filter (filter)}
|
||||
<input type="hidden" name={filter} value={$page.url.searchParams.get(filter)} />
|
||||
{/each}
|
||||
{/snippet}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<nav class="operations__nav">
|
||||
<ul class="unpadded">
|
||||
{#each tabs.filter((tab) => (tab !== "categories" && contentType === "Blog") || contentType === "Docs") as tab}
|
||||
{#each tabs.filter((tab) => (tab !== "categories" && contentType === "Blog") || contentType === "Docs") as tab (tab)}
|
||||
<li>
|
||||
<a
|
||||
href="/website/{id}{tab === 'settings' ? '' : `/${tab}`}"
|
||||
|
||||
@@ -16,6 +16,7 @@ export const apiRequest = async (
|
||||
method: "HEAD" | "GET" | "POST" | "PATCH" | "DELETE",
|
||||
options: {
|
||||
headers?: Record<string, string>;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
body?: any;
|
||||
successMessage?: string;
|
||||
returnData?: boolean;
|
||||
|
||||
@@ -54,18 +54,18 @@
|
||||
</h2>
|
||||
|
||||
<ul class="unpadded">
|
||||
{#each sortedArticles as article}
|
||||
{#each sortedArticles as { id, publication_date, slug, title, meta_description } (id)}
|
||||
<li>
|
||||
{#if article.publication_date}
|
||||
<p>{article.publication_date}</p>
|
||||
{#if publication_date}
|
||||
<p>{publication_date}</p>
|
||||
{/if}
|
||||
<p>
|
||||
<strong>
|
||||
<a href="./articles/{article.slug}">{article.title}</a>
|
||||
<a href="./articles/{slug}">{title}</a>
|
||||
</strong>
|
||||
</p>
|
||||
{#if article.meta_description}
|
||||
<p>{article.meta_description}</p>
|
||||
{#if meta_description}
|
||||
<p>{meta_description}</p>
|
||||
{/if}
|
||||
</li>
|
||||
{/each}
|
||||
|
||||
@@ -55,11 +55,11 @@
|
||||
|
||||
<section id="docs-navigation" class="docs-navigation">
|
||||
<ul>
|
||||
{#each Object.keys(categorizedArticles) as key}
|
||||
{#each Object.keys(categorizedArticles) as key (key)}
|
||||
<li>
|
||||
<strong>{key}</strong>
|
||||
<ul>
|
||||
{#each categorizedArticles[key] as { title, slug }}
|
||||
{#each categorizedArticles[key] as { title, slug } (slug)}
|
||||
<li>
|
||||
<a href="{isIndexPage ? './articles' : '.'}/{slug}">{title}</a>
|
||||
</li>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<a href="#storage">Storage</a>
|
||||
</h2>
|
||||
<ul class="unpadded storage-grid">
|
||||
{#each data.storageSizes.data as { website_title, storage_size_bytes, max_storage_bytes, max_storage_pretty, diff_storage_pretty }}
|
||||
{#each data.storageSizes.data as { website_id, website_title, storage_size_bytes, max_storage_bytes, max_storage_pretty, diff_storage_pretty } (website_id)}
|
||||
<li>
|
||||
<strong>{website_title}</strong>
|
||||
<label>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<label>
|
||||
Category:
|
||||
<select name="category">
|
||||
{#each data.categories as { id, category_name }}
|
||||
{#each data.categories as { id, category_name } (id)}
|
||||
<option value={id} selected={id === data.article.category}>{category_name}</option>
|
||||
{/each}
|
||||
</select>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
/>
|
||||
<datalist id="users-{data.website.id}">
|
||||
<option value={data.website.user.username}></option>
|
||||
{#each data.collaborators as { user: { username } }}
|
||||
{#each data.collaborators as { user: { username } } (username)}
|
||||
<option value={username}></option>
|
||||
{/each}
|
||||
</datalist>
|
||||
@@ -72,7 +72,7 @@
|
||||
Resource:
|
||||
<select name="resource">
|
||||
<option value="all">Show all</option>
|
||||
{#each Object.keys(resources) as resource}
|
||||
{#each Object.keys(resources) as resource (resource)}
|
||||
<option
|
||||
value={resource}
|
||||
selected={resource === $page.url.searchParams.get("resource")}>{resource}</option
|
||||
|
||||
Reference in New Issue
Block a user