Skip to content

Commit

Permalink
🎨 #10479
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Mar 2, 2024
1 parent 8d71b64 commit ce5a6c4
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/appearance/icons/ant/icon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/appearance/icons/ant/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "ant",
"author": "Vanessa",
"url": "https://github.com/Vanessa219",
"version": "1.30.0"
"version": "1.31.0"
}
6 changes: 6 additions & 0 deletions app/appearance/icons/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<body>
<h2>SiYuan</h2>
<div class="fn__clear">
<div>
<svg>
<use xlink:href="#iconCamera"></use>
</svg>
iconCamera
</div>
<div>
<svg>
<use xlink:href="#iconSoftWrap"></use>
Expand Down
5 changes: 4 additions & 1 deletion app/appearance/icons/material/icon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/appearance/icons/material/icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "material",
"author": "Vanessa",
"url": "https://github.com/Vanessa219",
"version": "1.30.0"
"version": "1.31.0"
}
1 change: 1 addition & 0 deletions app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"insertPhoto": "Take a photo and insert it",
"relativeToToday": "Relative to today",
"current": "This",
"week": "week",
Expand Down
1 change: 1 addition & 0 deletions app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"insertPhoto": "Toma una foto e insértala",
"relativeToToday": "Relativa a hoy",
"current": "Esto",
"week": "semana",
Expand Down
1 change: 1 addition & 0 deletions app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"insertPhoto": "Prendre une photo et l'insérer",
"relativeToToday": "Par rapport à aujourd'hui",
"current": "Ceci",
"week": "semaine",
Expand Down
1 change: 1 addition & 0 deletions app/appearance/langs/zh_CHT.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"insertPhoto": "拍照並插入",
"relativeToToday": "相對於今天",
"current": "當前",
"week": "",
Expand Down
1 change: 1 addition & 0 deletions app/appearance/langs/zh_CN.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"insertPhoto": "拍照并插入",
"relativeToToday": "相对于今天",
"current": "当前",
"week": "",
Expand Down
2 changes: 2 additions & 0 deletions app/src/mobile/util/keyboardToolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {getCurrentEditor} from "../editor";
import {fontEvent, getFontNodeElements} from "../../protyle/toolbar/Font";
import {hideElements} from "../../protyle/ui/hideElements";
import {softEnter} from "../../protyle/wysiwyg/enter";
import {isInAndroid} from "../../protyle/util/compatibility";

let renderKeyboardToolbarTimeout: number;
let showUtil = false;
Expand Down Expand Up @@ -209,6 +210,7 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {
<div class="keyboard__slash-title"></div>
<div class="keyboard__slash-block">
${getSlashItem(Constants.ZWSP + 3, "iconDownload", window.siyuan.languages.insertAsset + '<input class="b3-form__upload" type="file"' + (protyle.options.upload.accept ? (' multiple="' + protyle.options.upload.accept + '"') : "") + "/>", "true")}
${isInAndroid() ? getSlashItem(Constants.ZWSP + 3, "iconCamera", window.siyuan.languages.insertPhoto + '<input class="b3-form__upload" capture="user" type="file"' + (protyle.options.upload.accept ? (' multiple="' + protyle.options.upload.accept + '"') : "") + "/>", "true") : ""}
${getSlashItem('<iframe sandbox="allow-forms allow-presentation allow-same-origin allow-scripts allow-modals" src="" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>', "iconLanguage", window.siyuan.languages.insertIframeURL, "true")}
${getSlashItem("![]()", "iconImage", window.siyuan.languages.insertImgURL, "true")}
${getSlashItem('<video controls="controls" src=""></video>', "iconVideo", window.siyuan.languages.insertVideoURL, "true")}
Expand Down

0 comments on commit ce5a6c4

Please sign in to comment.