🎨 Add created and updated type column to database https://github.com/siyuan-note/siyuan/issues/9371
This commit is contained in:
parent
74110cda68
commit
f0e1dcc6a7
6 changed files with 16 additions and 6 deletions
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"createdTime": "Created time",
|
||||
"updatedTime": "Updated time",
|
||||
"removeBookmark": "Remove bookmark from ${x}?",
|
||||
"defaultMargin": "Default",
|
||||
"noneMargin": "None",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"createdTime": "Hora de creación",
|
||||
"updatedTime": "Hora actualizada",
|
||||
"removeBookmark": "¿Eliminar marcador de ${x}?",
|
||||
"lockEdit": "Hacer que el documento sea de sólo lectura",
|
||||
"unlockEdit": "Hacer que el documento sea escribible",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"createdTime": "Heure de création",
|
||||
"updatedTime": "Heure mise à jour",
|
||||
"removeBookmark": "Supprimer le signet de ${x} ?",
|
||||
"lockEdit": "Rendre le document en lecture seule",
|
||||
"unlockEdit": "Rendre le document accessible en écriture",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"createdTime": "建立時間",
|
||||
"updatedTime": "更新時間",
|
||||
"removeBookmark": "移除 ${x} 中的書籤?",
|
||||
"lockEdit": "鎖定編輯",
|
||||
"unlockEdit": "解除鎖定",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"createdTime": "创建时间",
|
||||
"updatedTime": "更新时间",
|
||||
"removeBookmark": "移除 ${x} 中的书签?",
|
||||
"lockEdit": "锁定编辑",
|
||||
"unlockEdit": "解除锁定",
|
||||
|
|
|
@ -257,12 +257,12 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
|
|||
});
|
||||
menu.addItem({
|
||||
icon: "iconClock",
|
||||
label: window.siyuan.languages.creationDate,
|
||||
label: window.siyuan.languages.createdTime,
|
||||
click() {
|
||||
const id = Lute.NewNodeID();
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
name: window.siyuan.languages.creationDate,
|
||||
name: window.siyuan.languages.createdTime,
|
||||
avID,
|
||||
type: "created",
|
||||
id
|
||||
|
@ -275,19 +275,19 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
|
|||
blockElement: blockElement,
|
||||
protyle: protyle,
|
||||
type: "created",
|
||||
name: window.siyuan.languages.creationDate,
|
||||
name: window.siyuan.languages.createdTime,
|
||||
id
|
||||
});
|
||||
}
|
||||
});
|
||||
menu.addItem({
|
||||
icon: "iconClock",
|
||||
label: window.siyuan.languages.modificationDate,
|
||||
label: window.siyuan.languages.updatedTime,
|
||||
click() {
|
||||
const id = Lute.NewNodeID();
|
||||
transaction(protyle, [{
|
||||
action: "addAttrViewCol",
|
||||
name: window.siyuan.languages.modificationDate,
|
||||
name: window.siyuan.languages.updatedTime,
|
||||
avID,
|
||||
type: "updated",
|
||||
id
|
||||
|
@ -300,7 +300,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element) => {
|
|||
blockElement: blockElement,
|
||||
protyle: protyle,
|
||||
type: "updated",
|
||||
name: window.siyuan.languages.modificationDate,
|
||||
name: window.siyuan.languages.updatedTime,
|
||||
id
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue