Include note filenames in new share links
This commit is contained in:
1 parent
ac81544e03
commit
e66fee9dac
4 files changed
+54
-6
No files matched your search
@@ -22,7 +22,7 @@ const busy = ref(false)
|
||||
const failed = ref(false)
|
||||
const fmt = new Intl.DateTimeFormat('zh-CN', { dateStyle: 'short', timeStyle: 'short' })
|
||||
|
||||
const linkOf = (s: Share) => `${location.origin}/s/${s.token}`
|
||||
const linkOf = (s: Share) => `${location.origin}/s/${encodeURIComponent(s.token)}`
|
||||
const expired = (s: Share) => s.expiresAt !== 0 && s.expiresAt <= Date.now()
|
||||
|
||||
function errorText(err: unknown) {
|
||||
|
||||
Reference in new issue
Block a user