mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
🎨 Cloud inbox support preview audio and video https://github.com/siyuan-note/siyuan/issues/9780
This commit is contained in:
parent
6290c585e2
commit
6ccf76e6cd
3 changed files with 32 additions and 3 deletions
|
|
@ -199,7 +199,7 @@ export class Inbox extends Model {
|
|||
${linkHTML}
|
||||
</div>
|
||||
<div class="b3-typography b3-typography--default" style="padding: 0 8px 8px">
|
||||
${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
||||
${data.shorthandContent}
|
||||
</div>`;
|
||||
/// #else
|
||||
if (data.shorthandURL) {
|
||||
|
|
@ -214,7 +214,7 @@ ${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
|||
${linkHTML}
|
||||
</div>
|
||||
<div class="b3-typography b3-typography--default" style="padding: 0 8px 8px;user-select: text">
|
||||
${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
||||
${data.shorthandContent}
|
||||
</div>`;
|
||||
/// #endif
|
||||
}
|
||||
|
|
@ -332,7 +332,7 @@ ${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
|||
notebook: toNotebook[0],
|
||||
path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"),
|
||||
title: replaceFileName(response.data.shorthandTitle),
|
||||
md: response.data.shorthandContent,
|
||||
md: response.data.shorthandMd,
|
||||
}, (docResponse) => {
|
||||
this.remove(item);
|
||||
fetchPost("/api/format/netAssets2LocalAssets", {id: docResponse.data.id});
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -262,6 +262,7 @@ interface ISnippet {
|
|||
interface IInbox {
|
||||
oId: string
|
||||
shorthandContent: string
|
||||
shorthandMd: string
|
||||
shorthandDesc: string
|
||||
shorthandFrom: number
|
||||
shorthandTitle: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue