Merge branch 'main' into batchdl

This commit is contained in:
Spencer Woo
2021-12-14 21:52:02 +08:00
committed by GitHub
6 changed files with 1379 additions and 726 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
title="Copy raw file permalink"
className="hover:bg-gray-300 dark:hover:bg-gray-600 p-2 rounded cursor-pointer"
onClick={() => {
clipboard.copy(`${getBaseUrl()}/api?path=${path === '/' ? '' : path}/${c.name}&raw=true`)
clipboard.copy(`${getBaseUrl()}/api?path=${path === '/' ? '' : path}/${encodeURIComponent(c.name)}&raw=true`)
toast.success('Copied raw file permalink.')
}}
>