mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Update dependencies
This commit is contained in:
@@ -2,15 +2,15 @@ import type { BaseUrl } from "@http-client";
|
||||
|
||||
import isEqual from "lodash/isEqual";
|
||||
import storedWritable from "@app/lib/localStore";
|
||||
import { array, number, string, object } from "zod";
|
||||
import * as z from "zod";
|
||||
import { get } from "svelte/store";
|
||||
|
||||
import config from "@app/lib/config";
|
||||
|
||||
const seedSchema = object({
|
||||
hostname: string(),
|
||||
port: number(),
|
||||
scheme: string(),
|
||||
const seedSchema = z.object({
|
||||
hostname: z.string(),
|
||||
port: z.number(),
|
||||
scheme: z.string(),
|
||||
});
|
||||
|
||||
// Seed that is opened on cold app start on the landing page.
|
||||
@@ -24,7 +24,7 @@ export const selectedSeed = storedWritable<BaseUrl | undefined>(
|
||||
// A list of seeds that the user has explicitly bookmarked.
|
||||
export const bookmarkedSeeds = storedWritable<BaseUrl[]>(
|
||||
"bookmarkedSeeds",
|
||||
array(seedSchema),
|
||||
z.array(seedSchema),
|
||||
[],
|
||||
!window.localStorage,
|
||||
);
|
||||
|
||||
@@ -64,7 +64,9 @@
|
||||
$: if (visible) {
|
||||
syntaxHighlightingLoading = true;
|
||||
void highlightContent().then(output => {
|
||||
// eslint-disable-next-line
|
||||
highlighting = output;
|
||||
// eslint-disable-next-line
|
||||
syntaxHighlightingLoading = false;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
style:font-family="var(--font-family-monospace)">
|
||||
{fromCommit.substring(0, 6)}..{toCommit.substring(0, 6)}
|
||||
</span>
|
||||
<Icon name={"chevron-down"} />
|
||||
<Icon name="chevron-down" />
|
||||
</Button>
|
||||
|
||||
@@ -297,10 +297,7 @@
|
||||
<!-- Footer -->
|
||||
{#if !collapsedOnly}
|
||||
<div class="sidebar-footer" style:flex-direction="row">
|
||||
<Button
|
||||
title={"Collapse"}
|
||||
on:click={toggleSidebar}
|
||||
variant="background">
|
||||
<Button title="Collapse" on:click={toggleSidebar} variant="background">
|
||||
<div class="icon" class:expanded>
|
||||
<Icon name="chevron-left" />
|
||||
</div>
|
||||
|
||||
@@ -159,6 +159,7 @@
|
||||
styleBorderRadius="0"
|
||||
variant={!preview ? "selected" : "not-selected"}
|
||||
on:click={() => {
|
||||
// eslint-disable-next-line
|
||||
preview = false;
|
||||
}}>
|
||||
<Icon name="chevron-left-right" />Code
|
||||
@@ -168,6 +169,7 @@
|
||||
variant={preview ? "selected" : "not-selected"}
|
||||
on:click={() => {
|
||||
window.location.hash = "";
|
||||
// eslint-disable-next-line
|
||||
preview = true;
|
||||
}}>
|
||||
<Icon name="eye-open" />Preview
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
slot="toggle"
|
||||
let:expanded
|
||||
let:toggle
|
||||
styleBorderRadius={"var(--border-radius-tiny) 0 0 var(--border-radius-tiny)"}
|
||||
styleBorderRadius="var(--border-radius-tiny) 0 0 var(--border-radius-tiny)"
|
||||
styleWidth="100%"
|
||||
on:click={toggle}
|
||||
title="Change branch"
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
tabindex="0"
|
||||
class="folder"
|
||||
on:click={() => {
|
||||
// eslint-disable-next-line
|
||||
expanded = !expanded;
|
||||
}}>
|
||||
<div class="icon-container" class:expanded>
|
||||
|
||||
Reference in New Issue
Block a user