初始化提交

This commit is contained in:
2024-08-13 09:37:23 +08:00
parent 4923337038
commit e112fa4e44
50 changed files with 1649 additions and 259 deletions
@@ -68,7 +68,7 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
3,
true,
)}${fileExtension}`;
const fileName = window.prompt("Enter file name" || "", suggestedFileName);
const fileName = window.prompt("请输入文件名称" || "", suggestedFileName);
if (!fileName) {
// User pressed cancel on prompt.
@@ -99,7 +99,7 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
<div className="flex items-center space-x-1">
<Button variant="ghost" onClick={downloadAsFile} size="icon">
<Download />
<span className="sr-only">Download</span>
<span className="sr-only"></span>
</Button>
<Button variant="ghost" size="icon" onClick={onCopy}>
{isCopied ? (
@@ -107,7 +107,7 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
) : (
<Copy className="h-4 w-4" />
)}
<span className="sr-only">Copy code</span>
<span className="sr-only"></span>
</Button>
</div>
</div>