mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
Optimize the public sending page and navigation logic in presentation mode to ensure consistency in user experience
This commit is contained in:
@@ -422,7 +422,7 @@ export const DEMO_SENDS: Send[] = [
|
||||
deletionDate: '2026-05-18T08:00:00.000Z',
|
||||
expirationDate: null,
|
||||
revisionDate: DEMO_NOW,
|
||||
shareUrl: '/send/demo-note/demo-key',
|
||||
shareUrl: '/#/send/demo-note/demo-key',
|
||||
},
|
||||
{
|
||||
id: 'send-demo-file',
|
||||
@@ -438,7 +438,7 @@ export const DEMO_SENDS: Send[] = [
|
||||
deletionDate: '2026-05-11T08:00:00.000Z',
|
||||
expirationDate: '2026-05-08T08:00:00.000Z',
|
||||
revisionDate: DEMO_NOW,
|
||||
shareUrl: '/send/demo-file/demo-key',
|
||||
shareUrl: '/#/send/demo-file/demo-key',
|
||||
file: {
|
||||
id: 'send-file-001',
|
||||
fileName: 'design-handoff.zip',
|
||||
@@ -730,7 +730,7 @@ function sendFromDraft(draft: SendDraft, current?: Send | null): Send {
|
||||
deletionDate: new Date(Date.now() + deletionDays * 86400_000).toISOString(),
|
||||
expirationDate: expirationDays > 0 ? new Date(Date.now() + expirationDays * 86400_000).toISOString() : null,
|
||||
revisionDate: now,
|
||||
shareUrl: current?.shareUrl || (isFile ? '/send/demo-file/demo-key' : '/send/demo-note/demo-key'),
|
||||
shareUrl: current?.shareUrl || (isFile ? '/#/send/demo-file/demo-key' : '/#/send/demo-note/demo-key'),
|
||||
file: isFile ? {
|
||||
id: current?.file?.id || createDemoId('send-file'),
|
||||
fileName,
|
||||
|
||||
Reference in New Issue
Block a user