Vanessa 2023-09-21 17:09:50 +08:00
parent be9d61c757
commit 01739b6682
7 changed files with 47 additions and 16 deletions

View file

@ -1,4 +1,5 @@
{
"filesMedia":"Files & media",
"removeBookmark": "Remove bookmark from ${x}?",
"defaultMargin": "Default",
"noneMargin": "None",

View file

@ -1,4 +1,5 @@
{
"filesMedia":"Archivos y medios",
"removeBookmark": "¿Eliminar marcador de ${x}?",
"lockEdit": "Hacer que el documento sea de sólo lectura",
"unlockEdit": "Hacer que el documento sea escribible",

View file

@ -1,4 +1,5 @@
{
"filesMedia": "Fichiers et médias",
"removeBookmark": "Supprimer le signet de ${x} ?",
"lockEdit": "Rendre le document en lecture seule",
"unlockEdit": "Rendre le document accessible en écriture",

View file

@ -1,4 +1,5 @@
{
"filesMedia":"檔案與多媒體",
"removeBookmark": "移除 ${x} 中的書籤?",
"lockEdit": "鎖定編輯",
"unlockEdit": "解除鎖定",

View file

@ -1,4 +1,5 @@
{
"filesMedia":"文件和多媒体",
"removeBookmark": "移除 ${x} 中的书签?",
"lockEdit": "锁定编辑",
"unlockEdit": "解除锁定",

View file

@ -12,7 +12,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Text",
name: window.siyuan.languages.text,
avID,
type: "text",
id
@ -25,7 +25,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "text",
name: "Text",
name: window.siyuan.languages.text,
id
});
}
@ -37,7 +37,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Number",
name: window.siyuan.languages.number,
avID,
type: "number",
id
@ -50,7 +50,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "number",
name: "Number",
name: window.siyuan.languages.number,
id
});
}
@ -62,7 +62,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Select",
name: window.siyuan.languages.select,
avID,
type: "select",
id
@ -75,7 +75,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "select",
name: "Select",
name: window.siyuan.languages.select,
id
});
}
@ -87,7 +87,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Multi-select",
name: window.siyuan.languages.multiSelect,
avID,
type: "mSelect",
id
@ -100,7 +100,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "mSelect",
name: "Multi-select",
name: window.siyuan.languages.multiSelect,
id
});
}
@ -112,7 +112,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Date",
name: window.siyuan.languages.date,
avID,
type: "date",
id
@ -125,7 +125,32 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "date",
name: "Date",
name: window.siyuan.languages.date,
id
});
}
});
menu.addItem({
icon: "iconImage",
label: window.siyuan.languages.filesMedia,
click() {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: window.siyuan.languages.filesMedia,
avID,
type: "mAsset",
id
}], [{
action: "removeAttrViewCol",
id,
avID,
}]);
addAttrViewColAnimation({
blockElement: blockElement,
protyle: protyle,
type: "mAsset",
name: window.siyuan.languages.filesMedia,
id
});
}
@ -137,7 +162,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "URL",
name: window.siyuan.languages.link,
avID,
type: "url",
id
@ -150,7 +175,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "url",
name: "URL",
name: window.siyuan.languages.link,
id
});
}
@ -162,7 +187,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Email",
name: window.siyuan.languages.email,
avID,
type: "email",
id
@ -175,7 +200,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "email",
name: "Email",
name: window.siyuan.languages.email,
id
});
}
@ -187,7 +212,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
const id = Lute.NewNodeID();
transaction(protyle, [{
action: "addAttrViewCol",
name: "Phone",
name: window.siyuan.languages.phone,
avID,
type: "phone",
id
@ -200,7 +225,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
blockElement: blockElement,
protyle: protyle,
type: "phone",
name: "Phone",
name: window.siyuan.languages.phone,
id
});
}

View file

@ -60,6 +60,7 @@ type TAVCol =
| "url"
| "email"
| "phone"
| "mAsset"
type THintSource = "search" | "av" | "hint";
type TAVFilterOperator =
"="