🚨
This commit is contained in:
parent
320110d57e
commit
4cd93b0fec
10 changed files with 15 additions and 8 deletions
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"tempUnlock": "Temporarily unlock",
|
||||
"cancelTempUnlock": "Cancel temporary unlock",
|
||||
"addFilter": "Add filter",
|
||||
"removeFilters": "Clear filter",
|
||||
"checked": "Checked",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"tempUnlock": "Desbloquear temporalmente",
|
||||
"cancelTempUnlock": "Cancelar desbloqueo temporal",
|
||||
"addFilter": "Agregar filtro",
|
||||
"removeFilters": "Borrar filtro",
|
||||
"checked": "marcado",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"tempUnlock": "Déverrouiller temporairement",
|
||||
"cancelTempUnlock": "Annuler le déverrouillage temporaire",
|
||||
"addFilter": "Ajouter un filtre",
|
||||
"removeFilters": "Effacer le filtre",
|
||||
"checked": "Coché",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"tempUnlock": "暫時解鎖",
|
||||
"cancelTempUnlock": "取消暫時解鎖",
|
||||
"addFilter": "新增篩選條件",
|
||||
"removeFilters": "清空篩選規則",
|
||||
"checked": "已完成",
|
||||
|
|
|
@ -337,7 +337,7 @@ export const editor = {
|
|||
});
|
||||
},
|
||||
_onSetEditor: (editorData: IEditor) => {
|
||||
const changeReadonly = editorData.readOnly !== window.siyuan.config.editor.readOnly
|
||||
const changeReadonly = editorData.readOnly !== window.siyuan.config.editor.readOnly;
|
||||
if (changeReadonly) {
|
||||
editor.setReadonly(editorData.readOnly);
|
||||
}
|
||||
|
|
|
@ -35,9 +35,9 @@ const renderCompare = (app: App, element: HTMLElement) => {
|
|||
if (!listElement) {
|
||||
return;
|
||||
}
|
||||
const dialogContainerElement = hasClosestByClassName(element, "b3-dialog__container")
|
||||
const dialogContainerElement = hasClosestByClassName(element, "b3-dialog__container");
|
||||
if (!dialogContainerElement) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
const leftElement = listElement.nextElementSibling.firstElementChild;
|
||||
const rightElement = listElement.nextElementSibling.lastElementChild;
|
||||
|
|
|
@ -536,7 +536,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {
|
|||
const opElement = firstPanelElement.querySelector('.b3-select[data-type="opselect"]') as HTMLSelectElement;
|
||||
const typeElement = firstPanelElement.querySelector('.b3-select[data-type="typeselect"]') as HTMLSelectElement;
|
||||
const notebookElement = firstPanelElement.querySelector('.b3-select[data-type="notebookselect"]') as HTMLSelectElement;
|
||||
const created = target.getAttribute("data-created")
|
||||
const created = target.getAttribute("data-created");
|
||||
fetchPost("/api/history/getHistoryItems", {
|
||||
notebook: notebookElement.value,
|
||||
query: inputElement.value,
|
||||
|
@ -615,7 +615,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {
|
|||
} else {
|
||||
mdElement.classList.add("fn__none");
|
||||
docElement.classList.remove("fn__none");
|
||||
historyEditor.protyle.options.history.created = target.dataset.created
|
||||
historyEditor.protyle.options.history.created = target.dataset.created;
|
||||
onGet({
|
||||
data: response,
|
||||
protyle: historyEditor.protyle,
|
||||
|
|
|
@ -108,7 +108,7 @@ export class Breadcrumb {
|
|||
break;
|
||||
} else if (type === "readonly") {
|
||||
if (!window.siyuan.config.readonly) {
|
||||
const isReadonly = target.querySelector("use").getAttribute("xlink:href") !== "#iconUnlock"
|
||||
const isReadonly = target.querySelector("use").getAttribute("xlink:href") !== "#iconUnlock";
|
||||
if (window.siyuan.config.editor.readOnly) {
|
||||
if (isReadonly) {
|
||||
enableProtyle(protyle);
|
||||
|
|
|
@ -22,7 +22,7 @@ import {updatePanelByEditor} from "../editor/util";
|
|||
import {setPanelFocus} from "../layout/util";
|
||||
/// #endif
|
||||
import {Background} from "./header/Background";
|
||||
import {disabledProtyle, enableProtyle, onGet} from "./util/onGet";
|
||||
import {onGet} from "./util/onGet";
|
||||
import {reloadProtyle} from "./util/reload";
|
||||
import {renderBacklink} from "./wysiwyg/renderBacklink";
|
||||
import {setEmpty} from "../mobile/util/setEmpty";
|
||||
|
|
|
@ -378,7 +378,6 @@ export const enableProtyle = (protyle: IProtyle) => {
|
|||
hideTooltip();
|
||||
};
|
||||
|
||||
|
||||
const focusElementById = (protyle: IProtyle, action: string[]) => {
|
||||
let focusElement: Element;
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${protyle.block.id}"]`)).find((item: HTMLElement) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue