Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrychenzw committed Jun 4, 2024
1 parent 1661887 commit 13582a3
Show file tree
Hide file tree
Showing 8 changed files with 420 additions and 95 deletions.
19 changes: 18 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ interface ZKNavigationSettings {
BranchTab: number;
HeightOfBranchGraph:number;
FileExtension:string; // "all" or ".md only"
SectionTab:number;
HeightOfFamilyGraph: number;
HeightOfInlinksGraph: number;
HeightOfOutlinksGraph: number;
DirectionOfBranchGraph: string,
DirectionOfFamilyGraph: string,
DirectionOfInlinksGraph: string,
DirectionOfOutlinksGraph: string,
}

//Default value for setting field
Expand All @@ -72,7 +80,16 @@ const DEFAULT_SETTINGS: ZKNavigationSettings = {
zoomPanScaleArr:[],
BranchTab: 0,
HeightOfBranchGraph: 530,
FileExtension: "md"
FileExtension: "md",
SectionTab: 0,
HeightOfFamilyGraph: 200,
HeightOfInlinksGraph: 200,
HeightOfOutlinksGraph: 200,
DirectionOfBranchGraph: "LR",
DirectionOfFamilyGraph: "LR",
DirectionOfInlinksGraph: "TB",
DirectionOfOutlinksGraph: "TB",

}

export default class ZKNavigationPlugin extends Plugin {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "zettelkasten-navigation",
"name": "zettelkasten navigation",
"version": "0.0.45",
"version": "0.0.46",
"minAppVersion": "1.5.7",
"description": "Visualize a Luhmann-style zettelkasten.",
"author": "terrychenzw",
Expand Down
25 changes: 18 additions & 7 deletions src/lang/locale/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
// setting.ts
"ZK main notes": "ZK main notes",
"ZK main notes": "Main notes",
"Main notes folder location": "Main notes folder location",
"Specify a folder location to identify main notes": "Specify a folder location to identify main notes",
"Example: folder1/folder2": "Example: folder1/folder2",
Expand All @@ -16,15 +16,15 @@ export default {
'" "(blank)': '" "(blank)',
'"-"(hyphen)': '"-"(hyphen)',
'"_"(underscore)': '"_"(underscore)',
"ZK index file": "ZK index file",
"Indexes folder location": "Indexes folder location",
"ZK index file": "Index",
"Indexes folder location": "Index files folder location",
"zk-index-graph-view": "zk-index-graph-view",
"Name of index button": "Name of index button",
"Suggest mode of index modal": "Suggest mode of index modal",
"Suggest mode of index modal": "Suggestion mode of index modal",
"Keyword Order": "Keyword Order",
"Fuzzy Suggest": "Fuzzy Suggest",
"Set red dash line for nodes with ID ends with letter": "Set red dash line for nodes with ID ends with letter",
"In order to distinguish nodes which ID ends with letter and number": "In order to distinguish nodes which ID ends with letter and number",
"In order to distinguish nodes which ID ends with letter and number": "In order to distinguish nodes which ID ends with letter or number",
"Fold node toggle": "Fold node toggle",
"Open the fold icon(🟡🟢)": "Open the fold icon(🟡🟢)",
"zk-local-graph-view": "zk-local-graph-view",
Expand All @@ -35,9 +35,20 @@ export default {
"Open outlinks graph": "Open outlinks graph",
"Mermaid graph to display outlinks": "Mermaid graph to display outlinks",
"Height of branch graph": "Height of branch graph",
"Enter a number to set the height of branch graph in pixels.": "Enter a number to set the height of branch graph in pixels.",
"Enter a number to set the height of graph in pixels.": "Enter a number to set the height of graph in pixels.",
"all file extension": "all file extension",
".md only": ".md only",
"Index graph styles": "Index graph styles",
"Height of close-relative graph": "Height of close-relative graph",
"Height of inlinks graph": "Height of inlinks graph",
"Height of outlinks graph": "Height of outlinks graph",
"direction of branch graph": "direction of branch graph",
'"LR": feft to right': '"LR": feft to right',
'"RL": right to left': '"RL": right to left',
'"TB": top to bottom': '"TB": top to bottom',
'"BT": bottom to top': '"BT": bottom to top',
"direction of graph": "direction of graph",
"Detect file extensions": "Detect file extensions",

// indexView.ts
"Display from : ": "Display from : ",
Expand All @@ -50,7 +61,7 @@ export default {
"end": "end",
"title": "title",
"both": "both",
"Current index: ": "Current index: ",
"Current index: ": "Current index:",

// localView.ts
"close relative": "close relative",
Expand Down
20 changes: 15 additions & 5 deletions src/lang/locale/zh.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
// setting.ts
"ZK main notes": "主笔记",
"Main notes folder location": "主笔记存放位置",
"Main notes folder location": "主笔记文件存放位置",
"Specify a folder location to identify main notes": "指定主笔记的文件夹",
"Example: folder1/folder2": "比如: 文件夹/子文件夹",
"Main notes tag": "主笔记标签",
Expand All @@ -16,15 +16,15 @@ export default {
'" "(blank)': '" "(空格)',
'"-"(hyphen)': '"-"(横线)',
'"_"(underscore)': '"_"(下划线)',
"ZK index file": "关键词文件",
"ZK index file": "关键词",
"Indexes folder location": "关键词文件存放位置",
"zk-index-graph-view": "关键词分支视图",
"Name of index button": "关键词按钮名称",
"Suggest mode of index modal": "关键词查找模式",
"Keyword Order": "顺序查找",
"Fuzzy Suggest": "模糊查找",
"Set red dash line for nodes with ID ends with letter": "ID为字母结尾的节点设置红色虚线框",
"In order to distinguish nodes which ID ends with letter and number": "区分数字结尾ID vs 字母结尾ID",
"In order to distinguish nodes which ID ends with letter and number": "区分: 数字结尾ID vs 字母结尾ID",
"Fold node toggle": "折叠开关",
"Open the fold icon(🟡🟢)": "点击图标(🟡🟢)进行折叠",
"zk-local-graph-view": "局部关系视图",
Expand All @@ -35,9 +35,19 @@ export default {
"Open outlinks graph": "打开出链视图",
"Mermaid graph to display outlinks": "显示当前笔记及其所有出链",
"Height of branch graph": "分支视图高度",
"Enter a number to set the height of branch graph in pixels.": "输入一个像素值来设置分支视图的高度.",
"Enter a number to set the height of graph in pixels.": "输入一个像素值来设置视图的高度.",
"all file extension": "检索所有类型出链",
".md only": "仅检索.md类型出链",
"Index graph styles": "视图样式设置",
"Height of close-relative graph": "邻近视图高度",
"Height of inlinks graph": "入链视图高度",
"Height of outlinks graph": "出链视图高度",
"direction of graph": "树状图方向",
'"LR": feft to right': '"LR": 从左到右',
'"RL": right to left': '"RL": 从右到左',
'"TB": top to bottom': '"TB": 从上到下',
'"BT": bottom to top': '"BT": 从下到上',
"Detect file extensions": "限定出链的文件类型",

// indexView.ts
"Display from : ": "起点:",
Expand All @@ -50,7 +60,7 @@ export default {
"end": "最后一层",
"title": "标题",
"both": "ID + 标题",
"Current index: ": "当前关键词",
"Current index: ": "当前关键词:",

// localView.ts
"close relative": "邻近",
Expand Down
Loading

0 comments on commit 13582a3

Please sign in to comment.