website
git clone https://git.pyrossh.dev/website
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
56689f5
— pyrossh
2026-07-07T12:33:11+05:30
fix: add SVG and dangerouslySetInnerHTML type declarations, fix required attribute type
packages/shared/ui/src/elements.d.ts
CHANGED
|
@@ -6,10 +6,24 @@ declare global {
|
|
|
6
6
|
property?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
interface HtmlTag {
|
|
10
|
+
dangerouslySetInnerHTML?: { __html: string };
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
interface IntrinsicElements {
|
|
10
14
|
summary: HtmlTag;
|
|
11
|
-
"time-ago": HtmlTag & { "data-date"?: string };
|
|
15
|
+
"time-ago": HtmlTag & { "data-date"?: string; date?: string };
|
|
12
16
|
"current-year": HtmlTag;
|
|
17
|
+
svg: HtmlTag & { viewBox?: string; xmlns?: string; width?: string; height?: string; fill?: string };
|
|
18
|
+
g: HtmlTag & { fill?: string };
|
|
19
|
+
path: HtmlTag & { d?: string; fill?: string; stroke?: string; "stroke-width"?: string; "stroke-linecap"?: string; "stroke-linejoin"?: string };
|
|
20
|
+
circle: HtmlTag & { cx?: string; cy?: string; r?: string };
|
|
21
|
+
rect: HtmlTag & { x?: string; y?: string; width?: string; height?: string; rx?: string };
|
|
22
|
+
defs: HtmlTag;
|
|
23
|
+
clipPath: HtmlTag & { id?: string };
|
|
24
|
+
linearGradient: HtmlTag & { id?: string; x1?: string; y1?: string; x2?: string; y2?: string };
|
|
25
|
+
stop: HtmlTag & { offset?: string; "stop-color"?: string };
|
|
26
|
+
text: HtmlTag & { x?: string; y?: string; "font-size"?: string; fill?: string };
|
|
13
27
|
}
|
|
14
28
|
}
|
|
15
29
|
}
|
packages/workers/repos/issues/detail/src/index.tsx
CHANGED
|
@@ -34,7 +34,7 @@ const CommentsSection = (repoId: string, issue: GitBugIssue) => (
|
|
|
34
34
|
>
|
|
35
35
|
<input name="repoId" type="hidden" value={repoId} />
|
|
36
36
|
<input name="issueId" type="hidden" value={issue.id} />
|
|
37
|
-
<textarea name="body" placeholder="Comment" required></textarea>
|
|
37
|
+
<textarea name="body" placeholder="Comment" required="true"></textarea>
|
|
38
38
|
<div class="comment-actions">
|
|
39
39
|
<input name="author" placeholder="Author" />
|
|
40
40
|
<button type="submit">Comment</button>
|