This commit is contained in:
Joe Ma 2022-09-12 00:50:10 +08:00
parent 022f83a387
commit 22440ab66f
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
3 changed files with 12 additions and 3 deletions

View file

@ -7,6 +7,9 @@
<option name="GROUP_STDLIB_IMPORTS" value="true" />
<option name="LOCAL_PACKAGE_PREFIXES" />
</GoCodeStyleSettings>
<HTMLCodeStyleSettings>
<option name="HTML_ALIGN_TEXT" value="true" />
</HTMLCodeStyleSettings>
<JSCodeStyleSettings version="0">
<option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="USE_DOUBLE_QUOTES" value="false" />
@ -32,6 +35,13 @@
<option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
</TypeScriptCodeStyleSettings>
<codeStyleSettings language="CSS">
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="4" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="HTML">
<option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" />
<option name="BLOCK_COMMENT_AT_FIRST_COLUMN" value="false" />
@ -61,7 +71,6 @@
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>

View file

@ -75,7 +75,7 @@ Add `?qr=1` to enable QR code generation for paste link.
|Header Key|Description|
|-|-|
|`content-type`|The media type (MIME) of the data and encoding|
|`x-content-type`|The media type (MIME) of the data and encoding|
|`x-title`|File's title|
|`x-pass`|Paste's password|
|`x-read-limit`|The maximum access count|

View file

@ -508,10 +508,10 @@ async function get_paste_info(uuid: string, descriptor: PasteIndexEntry, env: En
const qrcode = await res.text();
content += '\n';
content += qrcode;
content += '\n';
}
}
content += '\n';
return new Response(content);
}