Skip to content

Commit

Permalink
orderedList
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Sep 19, 2024
1 parent 982cb0d commit 29db819
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/appearance/langs/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"list": "List",
"more": "More",
"nameEmpty": "Name is empty",
"ordered-list": "Order List",
"orderedList": "Order List",
"outdent": "Outdent",
"outlineOutdent": "List outline outdent",
"outlineOutdentTip": "After enabling, the outdent will be using the list outline logic, i.e. moving the list items below the parent",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"list": "Lista",
"more": "Más",
"nameEmpty": "El nombre está vacío",
"ordered-list": "Lista ordenada",
"orderedList": "Lista ordenada",
"outdent": "anular la sangría",
"outlineOutdent": "Lista de contorno sin sangría",
"outlineOutdentTip": "Después de habilitar, el outdent utilizará la lógica de esquema de la lista, es decir, moviendo los elementos de la lista debajo del padre",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"list": "Liste",
"more": "Plus",
"nameEmpty": "Nom est vide",
"ordered-list": "Liste d'ordres",
"orderedList": "Liste d'ordres",
"outdent": "Outdent",
"outlineOutdent": "Liste des retraits excessifs du contour",
"outlineOutdentTip": "Après l'activation, le retrait négatif utilisera la logique de contour de la liste, c'est-à-dire en déplaçant les éléments de la liste sous le parent",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"list": "リスト",
"more": "詳細",
"nameEmpty": "名前が空です",
"ordered-list": "番号付きリスト",
"orderedList": "番号付きリスト",
"outdent": "アウトデント",
"outlineOutdent": "リストのアウトラインアウトデント",
"outlineOutdentTip": "リスト項目にアウトラインロジックを使用してアウトデントします",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/zh_CHT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"list": "無序列表",
"more": "更多",
"nameEmpty": "檔案名不能為空",
"ordered-list": "有序列表",
"orderedList": "有序列表",
"outdent": "列表反向縮進",
"outlineOutdent": "列表大綱反向縮進",
"outlineOutdentTip": "啟用後將使用列表大綱式邏輯反向縮進,即將列表項移動到父級下方",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@
"list": "无序列表",
"more": "更多",
"nameEmpty": "文件名不能为空",
"ordered-list": "有序列表",
"orderedList": "有序列表",
"outdent": "列表反向缩进",
"outlineOutdent": "列表大纲反向缩进",
"outlineOutdentTip": "启用后将使用列表大纲式逻辑反向缩进,即将列表项移动到父级下方",
Expand Down
2 changes: 1 addition & 1 deletion app/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export abstract class Constants {
"inline-code": {default: "⌘G", custom: "⌘G"},
link: {default: "⌘K", custom: "⌘K"},
check: {default: "⌘L", custom: "⌘L"},
"ordered-list": {default: "", custom: ""},
"orderedList": {default: "", custom: ""},
list: {default: "", custom: ""},
table: {default: "⌘O", custom: "⌘O"},
code: {default: "⇧⌘K", custom: "⇧⌘K"},
Expand Down
2 changes: 1 addition & 1 deletion app/src/mobile/util/keyboardToolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {
${getSlashItem("##### " + Lute.Caret, "iconH5", window.siyuan.languages.heading5, "true")}
${getSlashItem("###### " + Lute.Caret, "iconH6", window.siyuan.languages.heading6, "true")}
${getSlashItem("* " + Lute.Caret, "iconList", window.siyuan.languages.list, "true")}
${getSlashItem("1. " + Lute.Caret, "iconOrderedList", window.siyuan.languages["ordered-list"], "true")}
${getSlashItem("1. " + Lute.Caret, "iconOrderedList", window.siyuan.languages.orderedList, "true")}
${getSlashItem("* [ ] " + Lute.Caret, "iconCheck", window.siyuan.languages.check, "true")}
${getSlashItem("> " + Lute.Caret, "iconQuote", window.siyuan.languages.quote, "true")}
${getSlashItem("```", "iconCode", window.siyuan.languages.code, "true")}
Expand Down
2 changes: 1 addition & 1 deletion app/src/protyle/hint/extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
}, {
filter: ["有序列表", "youxuliebiao", "yxlb", "ordered list"],
value: "1. " + Lute.Caret,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconOrderedList"></use></svg><span class="b3-list-item__text">${window.siyuan.languages["ordered-list"]}</span><span class="b3-list-item__meta">1.&nbsp;</span></div>`,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconOrderedList"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.orderedList}</span><span class="b3-list-item__meta">1.&nbsp;</span></div>`,
}, {
filter: ["任务列表", "renwuliebiao", "rwlb", "task list", "todo list"],
value: "* [ ] " + Lute.Caret,
Expand Down
2 changes: 1 addition & 1 deletion app/src/protyle/wysiwyg/keydown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
}
const isMatchList = matchHotKey(window.siyuan.config.keymap.editor.insert.list.custom, event);
const isMatchCheck = matchHotKey(window.siyuan.config.keymap.editor.insert.check.custom, event);
const isMatchOList = matchHotKey(window.siyuan.config.keymap.editor.insert["ordered-list"].custom, event);
const isMatchOList = matchHotKey(window.siyuan.config.keymap.editor.insert.orderedList.custom, event);
const isMatchQuote = matchHotKey(window.siyuan.config.keymap.editor.insert.quote.custom, event);
if (isMatchList || isMatchOList || isMatchCheck || isMatchQuote) {
const selectsElement: HTMLElement[] = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"));
Expand Down

0 comments on commit 29db819

Please sign in to comment.