mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Upgrade npm dependencies honoring a 7 day cooldown
This commit is contained in:
@@ -363,7 +363,7 @@
|
||||
thread.root.location?.path,
|
||||
rangeAnchorsFromCodeLocation(thread.root.location),
|
||||
)}
|
||||
{#if cc.changeCommentStatus && roles.isDelegateOrAuthor( cc.config.publicKey, cc.repoDelegates.map(delegate => delegate.did), thread.root.author.did, )}
|
||||
{#if cc.changeCommentStatus && roles.isDelegateOrAuthor( cc.config.publicKey, cc.repoDelegates.map(delegate => delegate.did), thread.root.author.did )}
|
||||
<div style:margin-left="auto">
|
||||
{#if thread.root.resolved}
|
||||
<div title="Unresolve comment thread">
|
||||
|
||||
@@ -347,7 +347,7 @@
|
||||
{review.author.alias ??
|
||||
truncateId(publicKeyFromDid(review.author.did))}'s verdict
|
||||
</span>
|
||||
{#if !!roles.isDelegateOrAuthor( config.publicKey, repo.delegates.map(delegate => delegate.did), review.author.did, )}
|
||||
{#if !!roles.isDelegateOrAuthor( config.publicKey, repo.delegates.map(delegate => delegate.did), review.author.did )}
|
||||
<VerdictButton
|
||||
selectedVerdict={verdict}
|
||||
draft={"draft" in review}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
{#each orderBy( revisions.filter(r => {
|
||||
return r.author.did === author.did;
|
||||
}), "timestamp", ["asc"], ) as revision}
|
||||
}), "timestamp", ["asc"] ) as revision}
|
||||
<div style:margin="0.5rem 0">
|
||||
<DropdownListItem
|
||||
selected={revision.id === selectedRevision.id}
|
||||
|
||||
+1
-6
@@ -3,12 +3,7 @@ import { cached } from "@app/lib/cached";
|
||||
|
||||
type AtomType = "A" | "B" | "C" | "D";
|
||||
type ShapeModel =
|
||||
| "rose"
|
||||
| "starburst"
|
||||
| "ringed"
|
||||
| "tip"
|
||||
| "notched"
|
||||
| "hollow";
|
||||
"rose" | "starburst" | "ringed" | "tip" | "notched" | "hollow";
|
||||
type AtomMode = "bands-ABC" | "angle-stripes" | "parity-ACB" | "balanced-rand";
|
||||
|
||||
const PALETTE = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import yaml from "js-yaml";
|
||||
import { load } from "js-yaml";
|
||||
|
||||
const FRONTMATTER_RE = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?/;
|
||||
|
||||
@@ -12,7 +12,7 @@ export function parseFrontmatter(input: string): ParsedFrontmatter {
|
||||
if (!match) {
|
||||
return { data: {}, content: input };
|
||||
}
|
||||
const parsed = yaml.load(match[1]);
|
||||
const parsed = load(match[1]);
|
||||
const data =
|
||||
parsed && typeof parsed === "object" && !Array.isArray(parsed)
|
||||
? (parsed as Record<string, unknown>)
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ export default new Marked();
|
||||
|
||||
export const markdownWithExtensions = new Marked(
|
||||
katexMarkedExtension({ throwOnError: false }),
|
||||
markedLinkifyIt({}, { fuzzyLink: false }),
|
||||
markedLinkifyIt({ fuzzyLink: false }),
|
||||
markedFootnote({ refMarkers: true }),
|
||||
markedEmoji({ emojis }),
|
||||
((): MarkedExtension => ({
|
||||
|
||||
@@ -5,8 +5,7 @@ import type { Action as PatchAction } from "@bindings/cob/patch/Action";
|
||||
import { emojiToTwemoji, formatOid, pluralize } from "@app/lib/utils";
|
||||
|
||||
export type Action =
|
||||
| ActionWithAuthor<IssueAction>
|
||||
| ActionWithAuthor<PatchAction>;
|
||||
ActionWithAuthor<IssueAction> | ActionWithAuthor<PatchAction>;
|
||||
|
||||
// N.b. I have taken the `%` char as indicator for a `txt-id` class
|
||||
export function createSummary(
|
||||
|
||||
@@ -15,8 +15,7 @@ export type ParseRequest = {
|
||||
};
|
||||
|
||||
export type ParseResponse =
|
||||
| { id: number; files: FileDiffMetadata[] }
|
||||
| { id: number; error: string };
|
||||
{ id: number; files: FileDiffMetadata[] } | { id: number; error: string };
|
||||
|
||||
// `self` is typed against the DOM lib here, so narrow to the worker surface we
|
||||
// actually use to avoid the `Window.postMessage` signature.
|
||||
|
||||
@@ -49,10 +49,7 @@ export interface LoadedGuideRoute {
|
||||
|
||||
export type Route = BootingRoute | RepoRoute | InboxRoute | GuideRoute;
|
||||
export type LoadedRoute =
|
||||
| BootingRoute
|
||||
| LoadedRepoRoute
|
||||
| LoadedInboxRoute
|
||||
| LoadedGuideRoute;
|
||||
BootingRoute | LoadedRepoRoute | LoadedInboxRoute | LoadedGuideRoute;
|
||||
|
||||
export function isLoadedRepoRoute(
|
||||
route: LoadedRoute,
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
placeholder="Description">
|
||||
{#snippet belowTextarea()}
|
||||
{#await configPromise then config}
|
||||
{#if !!roles.isDelegate( config.publicKey, repo.delegates.map(d => d.did), )}
|
||||
{#if !!roles.isDelegate( config.publicKey, repo.delegates.map(d => d.did) )}
|
||||
<div
|
||||
style:display="flex"
|
||||
style:align-items="center"
|
||||
|
||||
@@ -551,8 +551,7 @@ export function repoUrlToRoute(
|
||||
} else if (resource === "patches") {
|
||||
const id = segments.shift();
|
||||
const status = (searchParams.get("status") ?? undefined) as
|
||||
| PatchStatus
|
||||
| undefined;
|
||||
PatchStatus | undefined;
|
||||
const reviewId = searchParams.get("review") ?? undefined;
|
||||
if (id) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user