mirror of
https://github.com/zadam/trilium.git
synced 2025-12-02 05:24:23 +01:00
Merge branch 'main' of github.com:TriliumNext/Trilium
This commit is contained in:
commit
12ac5147d3
2
.github/workflows/playwright.yml
vendored
2
.github/workflows/playwright.yml
vendored
@ -79,7 +79,7 @@ jobs:
|
|||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: e2e report
|
name: e2e report ${{ matrix.arch }}
|
||||||
path: apps/server-e2e/test-output
|
path: apps/server-e2e/test-output
|
||||||
|
|
||||||
- name: Kill the server
|
- name: Kill the server
|
||||||
|
|||||||
21
apps/client/src/menus/context_menu_utils.ts
Normal file
21
apps/client/src/menus/context_menu_utils.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { t } from "../services/i18n"
|
||||||
|
import attributes from "../services/attributes"
|
||||||
|
import FNote from "../entities/fnote"
|
||||||
|
|
||||||
|
export function getArchiveMenuItem(note: FNote) {
|
||||||
|
if (!note.isArchived) {
|
||||||
|
return {
|
||||||
|
title: t("board_view.archive-note"),
|
||||||
|
uiIcon: "bx bx-archive",
|
||||||
|
handler: () => attributes.addLabel(note.noteId, "archived")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
title: t("board_view.unarchive-note"),
|
||||||
|
uiIcon: "bx bx-archive-out",
|
||||||
|
handler: async () => {
|
||||||
|
attributes.removeOwnedLabelByName(note, "archived")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -207,7 +207,7 @@ function toObject<T, R>(array: T[], fn: (arg0: T) => [key: string, value: R]) {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomString(len: number) {
|
export function randomString(len: number) {
|
||||||
let text = "";
|
let text = "";
|
||||||
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||||
|
|
||||||
|
|||||||
@ -27,6 +27,9 @@
|
|||||||
--bs-body-bg: var(--main-background-color) !important;
|
--bs-body-bg: var(--main-background-color) !important;
|
||||||
--ck-mention-list-max-height: 500px;
|
--ck-mention-list-max-height: 500px;
|
||||||
--tn-modal-max-height: 90vh;
|
--tn-modal-max-height: 90vh;
|
||||||
|
|
||||||
|
--tree-item-light-theme-max-color-lightness: 50;
|
||||||
|
--tree-item-dark-theme-min-color-lightness: 75;
|
||||||
}
|
}
|
||||||
|
|
||||||
body#trilium-app.motion-disabled *,
|
body#trilium-app.motion-disabled *,
|
||||||
@ -254,6 +257,11 @@ button.close:hover {
|
|||||||
color: var(--hover-item-text-color);
|
color: var(--hover-item-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.custom-title-bar-button {
|
||||||
|
background: transparent;
|
||||||
|
border: unset;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
background-color: var(--modal-background-color) !important;
|
background-color: var(--modal-background-color) !important;
|
||||||
}
|
}
|
||||||
@ -2580,3 +2588,11 @@ iframe.print-iframe {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Calendar collection */
|
||||||
|
|
||||||
|
.calendar-view a.fc-timegrid-event,
|
||||||
|
.calendar-view a.fc-daygrid-event {
|
||||||
|
/* Workaround: set font weight only if the theme-next is not active */
|
||||||
|
font-weight: var(--root-background, 800);
|
||||||
|
}
|
||||||
@ -76,6 +76,9 @@
|
|||||||
|
|
||||||
--mermaid-theme: dark;
|
--mermaid-theme: dark;
|
||||||
--native-titlebar-background: #00000000;
|
--native-titlebar-background: #00000000;
|
||||||
|
|
||||||
|
--calendar-coll-event-background-saturation: 30%;
|
||||||
|
--calendar-coll-event-background-lightness: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body ::-webkit-calendar-picker-indicator {
|
body ::-webkit-calendar-picker-indicator {
|
||||||
|
|||||||
@ -80,6 +80,9 @@ html {
|
|||||||
|
|
||||||
--mermaid-theme: default;
|
--mermaid-theme: default;
|
||||||
--native-titlebar-background: #ffffff00;
|
--native-titlebar-background: #ffffff00;
|
||||||
|
|
||||||
|
--calendar-coll-event-background-lightness: 95%;
|
||||||
|
--calendar-coll-event-background-saturation: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#left-pane .fancytree-node.tinted {
|
#left-pane .fancytree-node.tinted {
|
||||||
|
|||||||
@ -271,11 +271,13 @@
|
|||||||
--ck-editor-toolbar-button-on-shadow: 1px 1px 2px rgba(0, 0, 0, .75);
|
--ck-editor-toolbar-button-on-shadow: 1px 1px 2px rgba(0, 0, 0, .75);
|
||||||
--ck-editor-toolbar-dropdown-button-open-background: #ffffff14;
|
--ck-editor-toolbar-dropdown-button-open-background: #ffffff14;
|
||||||
|
|
||||||
--calendar-coll-event-background-saturation: 12%;
|
--calendar-coll-event-background-saturation: 25%;
|
||||||
--calendar-coll-event-background-lightness: 21%;
|
--calendar-coll-event-background-lightness: 20%;
|
||||||
--calendar-coll-event-background-color: #3c3c3c;
|
--calendar-coll-event-background-color: #3c3c3c;
|
||||||
--calendar-coll-event-text-color: white;
|
--calendar-coll-event-text-color: white;
|
||||||
--calendar-cell-event-hover-filter: brightness(1.25);
|
--calendar-coll-event-hover-filter: brightness(1.25);
|
||||||
|
--callendar-coll-event-archived-sripe-color: #00000026;
|
||||||
|
--calendar-coll-today-background-color: #ffffff08;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -273,7 +273,9 @@
|
|||||||
--calendar-coll-event-background-saturation: 80%;
|
--calendar-coll-event-background-saturation: 80%;
|
||||||
--calendar-coll-event-background-color: #eaeaea;
|
--calendar-coll-event-background-color: #eaeaea;
|
||||||
--calendar-coll-event-text-color: black;
|
--calendar-coll-event-text-color: black;
|
||||||
--calendar-cell-event-hover-filter: brightness(.95) saturate(1.25);
|
--calendar-coll-event-hover-filter: brightness(.95) saturate(1.25);
|
||||||
|
--callendar-coll-event-archived-sripe-color: #0000000a;
|
||||||
|
--calendar-coll-today-background-color: #00000006;
|
||||||
}
|
}
|
||||||
|
|
||||||
#left-pane .fancytree-node.tinted {
|
#left-pane .fancytree-node.tinted {
|
||||||
|
|||||||
@ -643,7 +643,7 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-detail-printable:not(.word-wrap) pre code {
|
.ck-content:not(.word-wrap) pre code {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -162,7 +162,8 @@
|
|||||||
"inPageSearch": "页面内搜索",
|
"inPageSearch": "页面内搜索",
|
||||||
"newTabWithActivationNoteLink": "在新标签页打开笔记链接并激活该标签页",
|
"newTabWithActivationNoteLink": "在新标签页打开笔记链接并激活该标签页",
|
||||||
"title": "资料表",
|
"title": "资料表",
|
||||||
"newTabNoteLink": "在新标签页开启链接"
|
"newTabNoteLink": "在新标签页开启链接",
|
||||||
|
"editShortcuts": "编辑键盘快捷键"
|
||||||
},
|
},
|
||||||
"import": {
|
"import": {
|
||||||
"importIntoNote": "导入到笔记",
|
"importIntoNote": "导入到笔记",
|
||||||
@ -2104,5 +2105,8 @@
|
|||||||
"clear-color": "清除笔记颜色",
|
"clear-color": "清除笔记颜色",
|
||||||
"set-color": "设置笔记颜色",
|
"set-color": "设置笔记颜色",
|
||||||
"set-custom-color": "设置自定义笔记颜色"
|
"set-custom-color": "设置自定义笔记颜色"
|
||||||
|
},
|
||||||
|
"popup-editor": {
|
||||||
|
"maximize": "切换至完整编辑器"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -736,8 +736,8 @@
|
|||||||
"zoom_out_title": "Zoom Out"
|
"zoom_out_title": "Zoom Out"
|
||||||
},
|
},
|
||||||
"zpetne_odkazy": {
|
"zpetne_odkazy": {
|
||||||
"backlink": "{{count}} Backlink",
|
"backlink_one": "{{count}} Backlink",
|
||||||
"backlinks": "{{count}} Backlinks",
|
"backlink_other": "{{count}} Backlinks",
|
||||||
"relation": "relation"
|
"relation": "relation"
|
||||||
},
|
},
|
||||||
"mobile_detail_menu": {
|
"mobile_detail_menu": {
|
||||||
|
|||||||
@ -2105,5 +2105,8 @@
|
|||||||
"clear-color": "ノートの色をクリア",
|
"clear-color": "ノートの色をクリア",
|
||||||
"set-color": "ノートの色を設定",
|
"set-color": "ノートの色を設定",
|
||||||
"set-custom-color": "ノートの色をカスタム設定"
|
"set-custom-color": "ノートの色をカスタム設定"
|
||||||
|
},
|
||||||
|
"popup-editor": {
|
||||||
|
"maximize": "フルエディターに切り替え"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1362,8 +1362,9 @@
|
|||||||
"title": "Factorul de zoom (doar pentru versiunea desktop)"
|
"title": "Factorul de zoom (doar pentru versiunea desktop)"
|
||||||
},
|
},
|
||||||
"zpetne_odkazy": {
|
"zpetne_odkazy": {
|
||||||
"backlink": "{{count}} legături de retur",
|
"backlink_one": "{{count}} legătură de retur",
|
||||||
"backlinks": "{{count}} legături de retur",
|
"backlink_few": "{{count}} legături de retur",
|
||||||
|
"backlink_other": "{{count}} de legături de retur",
|
||||||
"relation": "relație"
|
"relation": "relație"
|
||||||
},
|
},
|
||||||
"svg_export_button": {
|
"svg_export_button": {
|
||||||
|
|||||||
@ -162,7 +162,8 @@
|
|||||||
"inPageSearch": "頁面內搜尋",
|
"inPageSearch": "頁面內搜尋",
|
||||||
"title": "列表",
|
"title": "列表",
|
||||||
"newTabNoteLink": "在新分頁開啟筆記連結",
|
"newTabNoteLink": "在新分頁開啟筆記連結",
|
||||||
"newTabWithActivationNoteLink": "在新分頁開啟並切換至筆記連結"
|
"newTabWithActivationNoteLink": "在新分頁開啟並切換至筆記連結",
|
||||||
|
"editShortcuts": "編輯鍵盤快捷鍵"
|
||||||
},
|
},
|
||||||
"import": {
|
"import": {
|
||||||
"importIntoNote": "匯入至筆記",
|
"importIntoNote": "匯入至筆記",
|
||||||
@ -2104,5 +2105,8 @@
|
|||||||
"clear-color": "清除筆記顏色",
|
"clear-color": "清除筆記顏色",
|
||||||
"set-color": "設定筆記顏色",
|
"set-color": "設定筆記顏色",
|
||||||
"set-custom-color": "設定自訂筆記顏色"
|
"set-custom-color": "設定自訂筆記顏色"
|
||||||
|
},
|
||||||
|
"popup-editor": {
|
||||||
|
"maximize": "切換至完整編輯器"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,7 @@ import froca from "../services/froca";
|
|||||||
import NoteLink from "./react/NoteLink";
|
import NoteLink from "./react/NoteLink";
|
||||||
import RawHtml from "./react/RawHtml";
|
import RawHtml from "./react/RawHtml";
|
||||||
import { ViewTypeOptions } from "./collections/interface";
|
import { ViewTypeOptions } from "./collections/interface";
|
||||||
|
import attributes from "../services/attributes";
|
||||||
|
|
||||||
export interface FloatingButtonContext {
|
export interface FloatingButtonContext {
|
||||||
parentComponent: Component;
|
parentComponent: Component;
|
||||||
@ -310,13 +311,24 @@ function Backlinks({ note, isDefaultViewMode }: FloatingButtonContext) {
|
|||||||
let [ popupOpen, setPopupOpen ] = useState(false);
|
let [ popupOpen, setPopupOpen ] = useState(false);
|
||||||
const backlinksContainerRef = useRef<HTMLDivElement>(null);
|
const backlinksContainerRef = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
function refresh() {
|
||||||
if (!isDefaultViewMode) return;
|
if (!isDefaultViewMode) return;
|
||||||
|
|
||||||
server.get<BacklinkCountResponse>(`note-map/${note.noteId}/backlink-count`).then(resp => {
|
server.get<BacklinkCountResponse>(`note-map/${note.noteId}/backlink-count`).then(resp => {
|
||||||
setBacklinkCount(resp.count);
|
setBacklinkCount(resp.count);
|
||||||
});
|
});
|
||||||
}, [ note ]);
|
}
|
||||||
|
|
||||||
|
useEffect(() => refresh(), [ note ]);
|
||||||
|
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
|
||||||
|
loadResults.getAttributeRows().some(attr =>
|
||||||
|
attr.type === "relation" &&
|
||||||
|
attr.name === "internalLink" &&
|
||||||
|
attributes.isAffecting(attr, note))
|
||||||
|
{
|
||||||
|
refresh();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Determine the max height of the container.
|
// Determine the max height of the container.
|
||||||
const { windowHeight } = useWindowSize();
|
const { windowHeight } = useWindowSize();
|
||||||
|
|||||||
@ -14,8 +14,10 @@ import ws from "../services/ws";
|
|||||||
import { UpdateAttributeResponse } from "@triliumnext/commons";
|
import { UpdateAttributeResponse } from "@triliumnext/commons";
|
||||||
import attributes from "../services/attributes";
|
import attributes from "../services/attributes";
|
||||||
import debounce from "../services/debounce";
|
import debounce from "../services/debounce";
|
||||||
|
import { randomString } from "../services/utils";
|
||||||
|
|
||||||
interface Cell {
|
interface Cell {
|
||||||
|
uniqueId: string;
|
||||||
definitionAttr: FAttribute;
|
definitionAttr: FAttribute;
|
||||||
definition: DefinitionObject;
|
definition: DefinitionObject;
|
||||||
valueAttr: Attribute;
|
valueAttr: Attribute;
|
||||||
@ -44,6 +46,7 @@ export default function PromotedAttributes() {
|
|||||||
<div className="promoted-attributes-widget">
|
<div className="promoted-attributes-widget">
|
||||||
{cells && cells.length > 0 && <div className="promoted-attributes-container">
|
{cells && cells.length > 0 && <div className="promoted-attributes-container">
|
||||||
{note && cells?.map(cell => <PromotedAttributeCell
|
{note && cells?.map(cell => <PromotedAttributeCell
|
||||||
|
key={cell.uniqueId}
|
||||||
cell={cell}
|
cell={cell}
|
||||||
cells={cells} setCells={setCells}
|
cells={cells} setCells={setCells}
|
||||||
shouldFocus={cell === cellToFocus} setCellToFocus={setCellToFocus}
|
shouldFocus={cell === cellToFocus} setCellToFocus={setCellToFocus}
|
||||||
@ -103,7 +106,8 @@ function usePromotedAttributeData(note: FNote | null | undefined, componentId: s
|
|||||||
valueAttr.attributeId = "";
|
valueAttr.attributeId = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
cells.push({ definitionAttr, definition, valueAttr, valueName });
|
const uniqueId = randomString(10);
|
||||||
|
cells.push({ definitionAttr, definition, valueAttr, valueName, uniqueId });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setCells(cells);
|
setCells(cells);
|
||||||
|
|||||||
@ -2,9 +2,9 @@ import FNote from "../../../entities/fnote";
|
|||||||
import NoteColorPicker from "../../../menus/custom-items/NoteColorPicker";
|
import NoteColorPicker from "../../../menus/custom-items/NoteColorPicker";
|
||||||
import contextMenu, { ContextMenuEvent } from "../../../menus/context_menu";
|
import contextMenu, { ContextMenuEvent } from "../../../menus/context_menu";
|
||||||
import link_context_menu from "../../../menus/link_context_menu";
|
import link_context_menu from "../../../menus/link_context_menu";
|
||||||
import attributes from "../../../services/attributes";
|
|
||||||
import branches from "../../../services/branches";
|
import branches from "../../../services/branches";
|
||||||
import dialog from "../../../services/dialog";
|
import dialog from "../../../services/dialog";
|
||||||
|
import { getArchiveMenuItem } from "../../../menus/context_menu_utils";
|
||||||
import { t } from "../../../services/i18n";
|
import { t } from "../../../services/i18n";
|
||||||
import Api from "./api";
|
import Api from "./api";
|
||||||
|
|
||||||
@ -43,17 +43,6 @@ export function openNoteContextMenu(api: Api, event: ContextMenuEvent, note: FNo
|
|||||||
items: [
|
items: [
|
||||||
...link_context_menu.getItems(),
|
...link_context_menu.getItems(),
|
||||||
{ kind: "separator" },
|
{ kind: "separator" },
|
||||||
{
|
|
||||||
title: t("board_view.move-to"),
|
|
||||||
uiIcon: "bx bx-transfer",
|
|
||||||
items: api.columns.map(columnToMoveTo => ({
|
|
||||||
title: columnToMoveTo,
|
|
||||||
enabled: columnToMoveTo !== column,
|
|
||||||
handler: () => api.changeColumn(note.noteId, columnToMoveTo)
|
|
||||||
})),
|
|
||||||
},
|
|
||||||
getArchiveMenuItem(note),
|
|
||||||
{ kind: "separator" },
|
|
||||||
{
|
{
|
||||||
title: t("board_view.insert-above"),
|
title: t("board_view.insert-above"),
|
||||||
uiIcon: "bx bx-list-plus",
|
uiIcon: "bx bx-list-plus",
|
||||||
@ -65,6 +54,17 @@ export function openNoteContextMenu(api: Api, event: ContextMenuEvent, note: FNo
|
|||||||
handler: () => api.insertRowAtPosition(column, branchId, "after")
|
handler: () => api.insertRowAtPosition(column, branchId, "after")
|
||||||
},
|
},
|
||||||
{ kind: "separator" },
|
{ kind: "separator" },
|
||||||
|
{
|
||||||
|
title: t("board_view.move-to"),
|
||||||
|
uiIcon: "bx bx-transfer",
|
||||||
|
items: api.columns.map(columnToMoveTo => ({
|
||||||
|
title: columnToMoveTo,
|
||||||
|
enabled: columnToMoveTo !== column,
|
||||||
|
handler: () => api.changeColumn(note.noteId, columnToMoveTo)
|
||||||
|
})),
|
||||||
|
},
|
||||||
|
{ kind: "separator" },
|
||||||
|
getArchiveMenuItem(note),
|
||||||
{
|
{
|
||||||
title: t("board_view.remove-from-board"),
|
title: t("board_view.remove-from-board"),
|
||||||
uiIcon: "bx bx-task-x",
|
uiIcon: "bx bx-task-x",
|
||||||
@ -85,20 +85,3 @@ export function openNoteContextMenu(api: Api, event: ContextMenuEvent, note: FNo
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getArchiveMenuItem(note: FNote) {
|
|
||||||
if (!note.isArchived) {
|
|
||||||
return {
|
|
||||||
title: t("board_view.archive-note"),
|
|
||||||
uiIcon: "bx bx-archive",
|
|
||||||
handler: () => attributes.addLabel(note.noteId, "archived")
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
title: t("board_view.unarchive-note"),
|
|
||||||
uiIcon: "bx bx-archive-out",
|
|
||||||
handler: async () => {
|
|
||||||
attributes.removeOwnedLabelByName(note, "archived")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -3,11 +3,10 @@ import FNote from "../../../entities/fnote";
|
|||||||
import contextMenu, { ContextMenuEvent } from "../../../menus/context_menu";
|
import contextMenu, { ContextMenuEvent } from "../../../menus/context_menu";
|
||||||
import link_context_menu from "../../../menus/link_context_menu";
|
import link_context_menu from "../../../menus/link_context_menu";
|
||||||
import branches from "../../../services/branches";
|
import branches from "../../../services/branches";
|
||||||
import froca from "../../../services/froca";
|
import { getArchiveMenuItem } from "../../../menus/context_menu_utils";
|
||||||
import { note } from "mermaid/dist/rendering-util/rendering-elements/shapes/note.js";
|
|
||||||
import { t } from "../../../services/i18n";
|
import { t } from "../../../services/i18n";
|
||||||
|
|
||||||
export function openCalendarContextMenu(e: ContextMenuEvent, noteId: string, parentNote: FNote) {
|
export function openCalendarContextMenu(e: ContextMenuEvent, note: FNote, parentNote: FNote) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
@ -17,15 +16,13 @@ export function openCalendarContextMenu(e: ContextMenuEvent, noteId: string, par
|
|||||||
items: [
|
items: [
|
||||||
...link_context_menu.getItems(),
|
...link_context_menu.getItems(),
|
||||||
{ kind: "separator" },
|
{ kind: "separator" },
|
||||||
|
getArchiveMenuItem(note),
|
||||||
{
|
{
|
||||||
title: t("calendar_view.delete_note"),
|
title: t("calendar_view.delete_note"),
|
||||||
uiIcon: "bx bx-trash",
|
uiIcon: "bx bx-trash",
|
||||||
handler: async () => {
|
handler: async () => {
|
||||||
const noteToDelete = await froca.getNote(noteId);
|
|
||||||
if (!noteToDelete) return;
|
|
||||||
|
|
||||||
let branchIdToDelete: string | null = null;
|
let branchIdToDelete: string | null = null;
|
||||||
for (const parentBranch of noteToDelete.getParentBranches()) {
|
for (const parentBranch of note.getParentBranches()) {
|
||||||
const parentNote = await parentBranch.getNote();
|
const parentNote = await parentBranch.getNote();
|
||||||
if (parentNote?.hasAncestor(parentNote.noteId)) {
|
if (parentNote?.hasAncestor(parentNote.noteId)) {
|
||||||
branchIdToDelete = parentBranch.branchId;
|
branchIdToDelete = parentBranch.branchId;
|
||||||
@ -40,9 +37,9 @@ export function openCalendarContextMenu(e: ContextMenuEvent, noteId: string, par
|
|||||||
{ kind: "separator" },
|
{ kind: "separator" },
|
||||||
{
|
{
|
||||||
kind: "custom",
|
kind: "custom",
|
||||||
componentFn: () => NoteColorPicker({note: noteId})
|
componentFn: () => NoteColorPicker({note: note})
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
selectMenuItemHandler: ({ command }) => link_context_menu.handleLinkContextMenuItem(command, noteId),
|
selectMenuItemHandler: ({ command }) => link_context_menu.handleLinkContextMenuItem(command, note.noteId),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,6 @@ export async function buildEventsForCalendar(note: FNote, e: EventSourceFuncArg)
|
|||||||
export async function buildEvent(note: FNote, { startDate, endDate, startTime, endTime, isArchived }: Event) {
|
export async function buildEvent(note: FNote, { startDate, endDate, startTime, endTime, isArchived }: Event) {
|
||||||
const customTitleAttributeName = note.getLabelValue("calendar:title");
|
const customTitleAttributeName = note.getLabelValue("calendar:title");
|
||||||
const titles = await parseCustomTitle(customTitleAttributeName, note);
|
const titles = await parseCustomTitle(customTitleAttributeName, note);
|
||||||
const color = note.getLabelValue("calendar:color") ?? note.getLabelValue("color");
|
|
||||||
const colorClass = note.getColorClass();
|
const colorClass = note.getColorClass();
|
||||||
const events: EventInput[] = [];
|
const events: EventInput[] = [];
|
||||||
|
|
||||||
@ -110,7 +109,6 @@ export async function buildEvent(note: FNote, { startDate, endDate, startTime, e
|
|||||||
start: startDate,
|
start: startDate,
|
||||||
url: `#${note.noteId}?popup`,
|
url: `#${note.noteId}?popup`,
|
||||||
noteId: note.noteId,
|
noteId: note.noteId,
|
||||||
color: color ?? undefined,
|
|
||||||
iconClass: note.getLabelValue("iconClass"),
|
iconClass: note.getLabelValue("iconClass"),
|
||||||
promotedAttributes: displayedAttributesData,
|
promotedAttributes: displayedAttributesData,
|
||||||
className: clsx({archived: isArchived}, colorClass)
|
className: clsx({archived: isArchived}, colorClass)
|
||||||
|
|||||||
@ -1,8 +1,20 @@
|
|||||||
|
:root {
|
||||||
|
/* Default values to be overridden by themes */
|
||||||
|
--calendar-coll-event-background-lightness: 95%;
|
||||||
|
--calendar-coll-event-background-saturation: 80%;
|
||||||
|
--calendar-coll-event-background-color: var(--accented-background-color);
|
||||||
|
--calendar-coll-event-text-color: var(--main-text-color);
|
||||||
|
--calendar-coll-event-hover-filter: none;
|
||||||
|
--callendar-coll-event-archived-sripe-color: #00000013;
|
||||||
|
--calendar-coll-today-background-color: var(--more-accented-background-color);
|
||||||
|
}
|
||||||
|
|
||||||
.calendar-view {
|
.calendar-view {
|
||||||
--fc-event-border-color: var(--calendar-coll-event-text-color);
|
--fc-event-border-color: var(--calendar-coll-event-text-color);
|
||||||
--fc-event-bg-color: var(--calendar-coll-event-background-color);
|
--fc-event-bg-color: var(--calendar-coll-event-background-color);
|
||||||
--fc-event-text-color: var(--calendar-coll-event-text-color);
|
--fc-event-text-color: var(--calendar-coll-event-text-color);
|
||||||
--fc-event-selected-overlay-color: transparent;
|
--fc-event-selected-overlay-color: transparent;
|
||||||
|
--fc-today-bg-color: var(--calendar-coll-today-background-color);
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -12,8 +24,9 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-view a {
|
.calendar-view a,
|
||||||
color: unset;
|
:root .calendar-view a.fc-daygrid-event:hover {
|
||||||
|
color: var(--fc-event-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-result-widget-content .calendar-view {
|
.search-result-widget-content .calendar-view {
|
||||||
@ -36,14 +49,6 @@
|
|||||||
z-index: 50;
|
z-index: 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-container a.fc-event {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.calendar-container a.fc-event.archived {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.calendar-container .fc-button {
|
.calendar-container .fc-button {
|
||||||
padding: 0.2em 0.5em;
|
padding: 0.2em 0.5em;
|
||||||
}
|
}
|
||||||
@ -84,22 +89,67 @@ body.desktop:not(.zen) .calendar-view .calendar-header {
|
|||||||
|
|
||||||
/* #region Events */
|
/* #region Events */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* week, month, year views
|
||||||
|
*/
|
||||||
|
|
||||||
|
.calendar-container a.fc-event {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-container a.fc-event.archived {
|
||||||
|
opacity: .65;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-container a.fc-event.archived::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: -1;
|
||||||
|
|
||||||
|
--c1: transparent;
|
||||||
|
--c2: var(--callendar-coll-event-archived-sripe-color);
|
||||||
|
|
||||||
|
background: repeating-linear-gradient(45deg, var(--c1), var(--c1) 8px,
|
||||||
|
var(--c2) 8px, var(--c2) 16px);
|
||||||
|
}
|
||||||
|
|
||||||
.calendar-view a.fc-timegrid-event,
|
.calendar-view a.fc-timegrid-event,
|
||||||
.calendar-view a.fc-daygrid-event {
|
.calendar-view a.fc-daygrid-event,
|
||||||
|
.calendar-view .fc-daygrid-dot-event .fc-event-title {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-view a.fc-timegrid-event,
|
.calendar-view a.fc-timegrid-event,
|
||||||
.calendar-view a.fc-daygrid-event:not(.fc-daygrid-dot-event) {
|
.calendar-view a.fc-daygrid-event {
|
||||||
--border-color: transparent;
|
--border-color: transparent;
|
||||||
|
|
||||||
border-width: 2px 2px 2px 4px;
|
border: 2px solid;
|
||||||
|
border-left-width: 4px;
|
||||||
border-color: var(--border-color) var(--border-color) var(--border-color)
|
border-color: var(--border-color) var(--border-color) var(--border-color)
|
||||||
var(--fc-event-text-color) !important;
|
var(--fc-event-text-color) !important;
|
||||||
|
background: var(--fc-event-bg-color) !important;
|
||||||
|
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-view .fc-timegrid-event.with-hue,
|
||||||
|
.calendar-view .fc-daygrid-event.with-hue {
|
||||||
|
--fc-event-text-color: var(--custom-color);
|
||||||
|
|
||||||
|
--fc-event-bg-color: hsl(var(--custom-color-hue),
|
||||||
|
var(--calendar-coll-event-background-saturation),
|
||||||
|
var(--calendar-coll-event-background-lightness)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calendar-view a.fc-timegrid-event:focus-visible,
|
||||||
|
.calendar-view a.fc-daygrid-event:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
.calendar-view a.fc-timegrid-event.fc-event-selected,
|
.calendar-view a.fc-timegrid-event.fc-event-selected,
|
||||||
.calendar-view a.fc-timegrid-event.fc-event:focus,
|
.calendar-view a.fc-timegrid-event.fc-event:focus,
|
||||||
.calendar-view a.fc-daygrid-event.fc-event-selected,
|
.calendar-view a.fc-daygrid-event.fc-event-selected,
|
||||||
@ -109,23 +159,33 @@ body.desktop:not(.zen) .calendar-view .calendar-header {
|
|||||||
|
|
||||||
.calendar-view a.fc-timegrid-event:hover,
|
.calendar-view a.fc-timegrid-event:hover,
|
||||||
.calendar-view a.fc-daygrid-event:hover {
|
.calendar-view a.fc-daygrid-event:hover {
|
||||||
filter: var(--calendar-cell-event-hover-filter);
|
filter: var(--calendar-coll-event-hover-filter);
|
||||||
border-color: var(--fc-event-text-color);
|
border-color: var(--fc-event-text-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-timegrid-event.with-hue,
|
.calendar-view .fc-daygrid-event-dot {
|
||||||
.fc-daygrid-event:not(.fc-daygrid-dot-event).with-hue {
|
display: none;
|
||||||
--fc-event-text-color: var(--custom-color);
|
|
||||||
|
|
||||||
background: hsl(var(--custom-color-hue),
|
|
||||||
var(--calendar-coll-event-background-saturation),
|
|
||||||
var(--calendar-coll-event-background-lightness)) !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-event-time {
|
|
||||||
|
.calendar-view .fc-event-time {
|
||||||
opacity: .75;
|
opacity: .75;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* List view
|
||||||
|
*/
|
||||||
|
|
||||||
|
.fc-list-table tr.fc-event.archived {
|
||||||
|
opacity: .5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fc-list-table .fc-list-event-dot {
|
||||||
|
/* Apply note colors to the list item dots */
|
||||||
|
--fc-event-border-color: var(--custom-color);
|
||||||
|
}
|
||||||
|
|
||||||
/* #endregion */
|
/* #endregion */
|
||||||
@ -307,9 +307,11 @@ function useEventDisplayCustomization(parentNote: FNote) {
|
|||||||
$(mainContainer ?? e.el).append($(promotedAttributesHtml));
|
$(mainContainer ?? e.el).append($(promotedAttributesHtml));
|
||||||
}
|
}
|
||||||
|
|
||||||
e.el.addEventListener("contextmenu", (contextMenuEvent) => {
|
e.el.addEventListener("contextmenu", async (contextMenuEvent) => {
|
||||||
const noteId = e.event.extendedProps.noteId;
|
const note = await froca.getNote(e.event.extendedProps.noteId);
|
||||||
openCalendarContextMenu(contextMenuEvent, noteId, parentNote);
|
if (!note) return;
|
||||||
|
|
||||||
|
openCalendarContextMenu(contextMenuEvent, note, parentNote);
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
return { eventDidMount };
|
return { eventDidMount };
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
import path from "path";
|
import path, { join } from "path";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import { LOCALES } from "@triliumnext/commons";
|
import { LOCALES } from "@triliumnext/commons";
|
||||||
import { PRODUCT_NAME } from "../src/app-info.js";
|
import { PRODUCT_NAME } from "../src/app-info.js";
|
||||||
import type { ForgeConfig } from "@electron-forge/shared-types";
|
import type { ForgeConfig } from "@electron-forge/shared-types";
|
||||||
|
import { existsSync } from "fs";
|
||||||
|
|
||||||
const ELECTRON_FORGE_DIR = __dirname;
|
const ELECTRON_FORGE_DIR = __dirname;
|
||||||
|
|
||||||
@ -228,8 +229,22 @@ const config: ForgeConfig = {
|
|||||||
// Ensure all locales that should be kept are actually present.
|
// Ensure all locales that should be kept are actually present.
|
||||||
for (const locale of localesToKeep) {
|
for (const locale of localesToKeep) {
|
||||||
if (!keptLocales.has(locale)) {
|
if (!keptLocales.has(locale)) {
|
||||||
console.error(`Locale ${locale} was not found in the packaged app.`);
|
throw new Error(`Locale ${locale} was not found in the packaged app.`);
|
||||||
process.exit(1);
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check that the bettersqlite3 binary has the right architecture.
|
||||||
|
if (packageResult.platform === "linux" && packageResult.arch === "arm64") {
|
||||||
|
for (const outputPath of packageResult.outputPaths) {
|
||||||
|
const binaryPath = join(outputPath, "resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node");
|
||||||
|
if (!existsSync(binaryPath)) {
|
||||||
|
throw new Error(`[better-sqlite3] Unable to find .node file at ${binaryPath}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const actualArch = getELFArch(binaryPath);
|
||||||
|
if (actualArch !== "ARM64") {
|
||||||
|
throw new Error(`[better-sqlite3] Expected ARM64 architecture but got ${actualArch} at: ${binaryPath}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -284,4 +299,20 @@ function getExtraResourcesForPlatform() {
|
|||||||
return resources;
|
return resources;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getELFArch(file: string) {
|
||||||
|
const buf = fs.readFileSync(file);
|
||||||
|
|
||||||
|
if (buf[0] !== 0x7f || buf[1] !== 0x45 || buf[2] !== 0x4c || buf[3] !== 0x46) {
|
||||||
|
throw new Error("Not an ELF file");
|
||||||
|
}
|
||||||
|
|
||||||
|
const eiClass = buf[4]; // 1=32-bit, 2=64-bit
|
||||||
|
const eiMachine = buf[18]; // architecture code
|
||||||
|
|
||||||
|
if (eiMachine === 0x3E) return 'x86-64';
|
||||||
|
if (eiMachine === 0xB7) return 'ARM64';
|
||||||
|
return 'other';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
"better-sqlite3": "12.5.0",
|
"better-sqlite3": "12.5.0",
|
||||||
"mime-types": "3.0.2",
|
"mime-types": "3.0.2",
|
||||||
"sanitize-filename": "1.6.3",
|
"sanitize-filename": "1.6.3",
|
||||||
"tsx": "4.20.6",
|
"tsx": "4.21.0",
|
||||||
"yargs": "18.0.0"
|
"yargs": "18.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -43,7 +43,7 @@ test("User can change language from settings", async ({ page, context }) => {
|
|||||||
// Check that the default value (English) is set.
|
// Check that the default value (English) is set.
|
||||||
await expect(app.currentNoteSplit).toContainText("First day of the week");
|
await expect(app.currentNoteSplit).toContainText("First day of the week");
|
||||||
const languageCombobox = app.dropdown(app.currentNoteSplit.locator(".options-section .dropdown").first());
|
const languageCombobox = app.dropdown(app.currentNoteSplit.locator(".options-section .dropdown").first());
|
||||||
await expect(languageCombobox).toContainText("English");
|
await expect(languageCombobox).toContainText("English (United States)");
|
||||||
|
|
||||||
// Select Chinese and ensure the translation is set.
|
// Select Chinese and ensure the translation is set.
|
||||||
await languageCombobox.selectOptionByText("简体中文");
|
await languageCombobox.selectOptionByText("简体中文");
|
||||||
@ -53,8 +53,8 @@ test("User can change language from settings", async ({ page, context }) => {
|
|||||||
await expect(languageCombobox).toContainText("简体中文");
|
await expect(languageCombobox).toContainText("简体中文");
|
||||||
|
|
||||||
// Select English again.
|
// Select English again.
|
||||||
await languageCombobox.selectOptionByText("English");
|
await languageCombobox.selectOptionByText("English (United States)");
|
||||||
await app.currentNoteSplit.locator("button[name=restart-app-button]").click();
|
await app.currentNoteSplit.locator("button[name=restart-app-button]").click();
|
||||||
await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
|
await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
|
||||||
await expect(languageCombobox).toContainText("English");
|
await expect(languageCombobox).toContainText("English (United States)");
|
||||||
});
|
});
|
||||||
|
|||||||
55
docs/README-fa.md
vendored
55
docs/README-fa.md
vendored
@ -33,50 +33,39 @@ quick overview:
|
|||||||
|
|
||||||
<a href="https://triliumnext.github.io/Docs/Wiki/screenshot-tour"><img src="./docs/app.png" alt="Trilium Screenshot" width="1000"></a>
|
<a href="https://triliumnext.github.io/Docs/Wiki/screenshot-tour"><img src="./docs/app.png" alt="Trilium Screenshot" width="1000"></a>
|
||||||
|
|
||||||
## ⏬ Download
|
## ⏬ دانلود
|
||||||
- [Latest release](https://github.com/TriliumNext/Trilium/releases/latest) –
|
- [آخرین انتشار]{1} – نسخه پایدار، برای بیشتر کاربران پیشنهاد میشود.
|
||||||
stable version, recommended for most users.
|
|
||||||
- [Nightly build](https://github.com/TriliumNext/Trilium/releases/tag/nightly) –
|
- [Nightly build](https://github.com/TriliumNext/Trilium/releases/tag/nightly) –
|
||||||
unstable development version, updated daily with the latest features and
|
unstable development version, updated daily with the latest features and
|
||||||
fixes.
|
fixes.
|
||||||
|
|
||||||
## 📚 Documentation
|
## 📚 کتابچه راهنما
|
||||||
|
|
||||||
**Visit our comprehensive documentation at
|
**Visit our comprehensive documentation at
|
||||||
[docs.triliumnotes.org](https://docs.triliumnotes.org/)**
|
[docs.triliumnotes.org](https://docs.triliumnotes.org/)**
|
||||||
|
|
||||||
Our documentation is available in multiple formats:
|
مستندات ما در چندین قالب مختلف در دسترس است:
|
||||||
- **Online Documentation**: Browse the full documentation at
|
- مستندات آنلاین: میتوانید نسخهٔ کامل مستندات را در
|
||||||
[docs.triliumnotes.org](https://docs.triliumnotes.org/)
|
[docs.triliumnotes.org](https://docs.triliumnotes.org/) مرور کنید
|
||||||
- **In-App Help**: Press `F1` within Trilium to access the same documentation
|
- ** In-App Help **: Press `F1 ` در Trilium برای دسترسی به همان اسناد به طور
|
||||||
directly in the application
|
مستقیم در برنامه
|
||||||
- **GitHub**: Navigate through the [User
|
- ** GitHub **: از طریق [راهنمای کاربر] در این مخزن حرکت کنید
|
||||||
Guide](./docs/User%20Guide/User%20Guide/) in this repository
|
|
||||||
|
|
||||||
### Quick Links
|
### لینکهای سریع
|
||||||
- [Getting Started Guide](https://docs.triliumnotes.org/)
|
- راهنمای شروع کار
|
||||||
- [Installation
|
- دستورالعملهای نصب
|
||||||
Instructions](./docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation.md)
|
- راهاندازی داکر
|
||||||
- [Docker
|
- ارتقای TriliumNext
|
||||||
Setup](./docs/User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation/1.%20Installing%20the%20server/Using%20Docker.md)
|
- مفاهیم و ویژگیهای پایه
|
||||||
- [Upgrading
|
- الگوهای پایگاه دانشی شخصی
|
||||||
TriliumNext](./docs/User%20Guide/User%20Guide/Installation%20%26%20Setup/Upgrading%20TriliumNext.md)
|
|
||||||
- [Basic Concepts and
|
|
||||||
Features](./docs/User%20Guide/User%20Guide/Basic%20Concepts%20and%20Features/Notes.md)
|
|
||||||
- [Patterns of Personal Knowledge
|
|
||||||
Base](https://triliumnext.github.io/Docs/Wiki/patterns-of-personal-knowledge)
|
|
||||||
|
|
||||||
## 🎁 Features
|
## 🎁 ویژگیها
|
||||||
|
|
||||||
* Notes can be arranged into arbitrarily deep tree. Single note can be placed
|
* یادداشتها میتوانند در یک درخت با عمق دلخواه سازماندهی شوند. یک یادداشت
|
||||||
into multiple places in the tree (see
|
میتواند در چندین نقطهٔ مختلف از درخت قرار گیرد.
|
||||||
[cloning](https://triliumnext.github.io/Docs/Wiki/cloning-notes))
|
* ویرایشگر یادداشت غنی WYSIWYG از جمله جداول، تصاویر و [math] [1] با علامت گذاری
|
||||||
* Rich WYSIWYG note editor including e.g. tables, images and
|
[autoformat] [2]
|
||||||
[math](https://triliumnext.github.io/Docs/Wiki/text-notes) with markdown
|
* پشتیبانی از ویرایش [یادداشت با کد منبع][۱]، از جمله نحو برجسته
|
||||||
[autoformat](https://triliumnext.github.io/Docs/Wiki/text-notes#autoformat)
|
|
||||||
* Support for editing [notes with source
|
|
||||||
code](https://triliumnext.github.io/Docs/Wiki/code-notes), including syntax
|
|
||||||
highlighting
|
|
||||||
* Fast and easy [navigation between
|
* Fast and easy [navigation between
|
||||||
notes](https://triliumnext.github.io/Docs/Wiki/note-navigation), full text
|
notes](https://triliumnext.github.io/Docs/Wiki/note-navigation), full text
|
||||||
search and [note
|
search and [note
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
"esbuild": "0.27.0",
|
"esbuild": "0.27.0",
|
||||||
"eslint": "9.39.1",
|
"eslint": "9.39.1",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-playwright": "2.3.0",
|
"eslint-plugin-playwright": "2.4.0",
|
||||||
"eslint-plugin-react-hooks": "7.0.1",
|
"eslint-plugin-react-hooks": "7.0.1",
|
||||||
"happy-dom": "~20.0.0",
|
"happy-dom": "~20.0.0",
|
||||||
"http-server": "14.1.1",
|
"http-server": "14.1.1",
|
||||||
@ -62,7 +62,7 @@
|
|||||||
"react-refresh": "0.18.0",
|
"react-refresh": "0.18.0",
|
||||||
"rollup-plugin-webpack-stats": "2.1.8",
|
"rollup-plugin-webpack-stats": "2.1.8",
|
||||||
"tslib": "2.8.1",
|
"tslib": "2.8.1",
|
||||||
"tsx": "4.20.6",
|
"tsx": "4.21.0",
|
||||||
"typescript": "~5.9.0",
|
"typescript": "~5.9.0",
|
||||||
"typescript-eslint": "8.48.0",
|
"typescript-eslint": "8.48.0",
|
||||||
"upath": "2.0.1",
|
"upath": "2.0.1",
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export interface Locale {
|
|||||||
const UNSORTED_LOCALES = [
|
const UNSORTED_LOCALES = [
|
||||||
{ id: "cn", name: "简体中文", electronLocale: "zh_CN" },
|
{ id: "cn", name: "简体中文", electronLocale: "zh_CN" },
|
||||||
{ id: "de", name: "Deutsch", electronLocale: "de" },
|
{ id: "de", name: "Deutsch", electronLocale: "de" },
|
||||||
{ id: "en", name: "English", electronLocale: "en" },
|
{ id: "en", name: "English (United States)", electronLocale: "en" },
|
||||||
{ id: "en-GB", name: "English (United Kingdom)", electronLocale: "en_GB" },
|
{ id: "en-GB", name: "English (United Kingdom)", electronLocale: "en_GB" },
|
||||||
{ id: "es", name: "Español", electronLocale: "es" },
|
{ id: "es", name: "Español", electronLocale: "es" },
|
||||||
{ id: "fr", name: "Français", electronLocale: "fr" },
|
{ id: "fr", name: "Français", electronLocale: "fr" },
|
||||||
|
|||||||
428
pnpm-lock.yaml
generated
428
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user