fix: fix obsidian release issues

This commit is contained in:
StinsonZ 2024-02-06 16:47:09 +08:00
parent 71a54ef7c7
commit 91bdb23467
4 changed files with 46 additions and 46 deletions

View file

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015-2020 Yichuan Shen
Copyright (c) 2023-2024 Stinson Zhao
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

View file

@ -1,7 +1,7 @@
{
"name": "goban-sgf",
"version": "1.0.0",
"description": "Obsidian plugin for recording Go games (SGF format goban).",
"description": "Play and record Go games, using SGF format.",
"main": "main.js",
"type": "module",
"scripts": {

View file

@ -1,34 +1,34 @@
export default {
CREATE_NEW: "New Goban File",
CREATE_NEW: "New goban file",
UNTITLED: "Untitled",
NOFILE: "No file",
FOLDER: "Goban Folder",
FOLDER_INFO: "Default storage path for the new Goban, and will be automatically created if it does not exist.",
FOLDER: "Goban folder",
FOLDER_INFO: "Default storage path for the new goban, and will be automatically created if it does not exist.",
ERROR_CREATING_GOBAN: "Error when creating Goban file",
ERROR_OPEN_GOBAN: "Error when opening Goban file",
OPEN_AS_GOBAN: "Open as Goban file",
TOGGLE_MD_GOBAN: "Toggle Markdown / Goban",
OPEN_AS_GOBAN: "Open as goban file",
TOGGLE_MD_GOBAN: "Toggle markdown / goban",
CONTENT_INVALID: "SGF content is invalid",
OPEN_AS_MD: "Open as Markdown file",
OPEN_AS_MD: "Open as markdown file",
WHITE: "White",
BLACK: "Black",
GAME_INFO: "Game Info",
GAME_INFO: "Game info",
PLAY_MODE: 'Play',
EDIT_MODE: "Edit",
VIEW_MODE: 'View',
CONFIRM: "Confirm",
CANCEL: "Cancel",
GAME_NAME: "Game Name",
TOURNAMENT_NAME: "Event Name",
GAME_NAME: "Game name",
TOURNAMENT_NAME: "Event name",
DATE: "Date",
NOTES: "Notes",
GAME_RESULT: "Result",
KOMI: "Komi",
HANDICAP: "Handicap",
GOBAN_SIZE: "Board Size",
GOBAN_SIZE: "Board size",
RANK: "Rank",
SWITCH_GAME: "Switch Game",
EXIT_EDIT: "Exit Edit Mode",
SWITCH_GAME: "Switch game",
EXIT_EDIT: "Exit edit mode",
CROSS: "Cross",
TRIANGLE: "Triangle",
SQUARE: "Square",
@ -36,42 +36,42 @@ export default {
NUMBER: "Number",
ALPHA: "Alpha",
STONE: "Stone",
BLACK_STONE: "Black Stone",
WHITE_STONE: "White Stone",
BLACK_STONE: "Black stone",
WHITE_STONE: "White stone",
CURRENT_SELECT_IS: "Current: ",
CLICK_TO_TOGGLE: "Click to Toggle",
EDIT_LABEL: 'Edit Label',
CLICK_TO_TOGGLE: "Click to toggle",
EDIT_LABEL: 'Edit label',
RESIGN: 'Resign',
SKIP: 'Skip',
NAV: 'Navigation',
START: 'Beginning',
ENDING: 'Ending',
PREV_BRANCH: 'Previous Branch',
NEXT_BRANCH: 'Next Branch',
PREV_COMMENT: 'Previous Comment',
NEXT_COMMENT: 'Next Comment',
PREV_FOCUS: 'Previous Hotspot',
NEXT_FOCUS: 'Next Hotspo',
PREV_BRANCH: 'Previous branch',
NEXT_BRANCH: 'Next branch',
PREV_COMMENT: 'Previous comment',
NEXT_COMMENT: 'Next comment',
PREV_FOCUS: 'Previous hotspot',
NEXT_FOCUS: 'Next hotspo',
COMMENT: "Comment",
COMMENT_TITLE: "Comment Title",
COMMENT_TITLE: "Comment title",
FINISH: 'Finish',
VARIATION_BRANCH: 'Variation Branch',
SET_TO_MAIN: 'Set to Main Branch',
MOVE_LEFT: 'Move Left',
MOVE_RIGHT: 'Move Right',
DELETE_NODE: 'Delete Node & Followings',
VARIATION_BRANCH: 'Variation branch',
SET_TO_MAIN: 'Set to main branch',
MOVE_LEFT: 'Move left',
MOVE_RIGHT: 'Move right',
DELETE_NODE: 'Delete node & followings',
DELETE_NODE_CONFIRM: 'This will delete this node and all following nodes, continue?',
ANNOTATION: 'Annotation',
CLEAR_ANNOTATION: 'Clear All Annotations',
DISPLAY_SETTINGS: 'Display Settings',
CLEAR_ANNOTATION: 'Clear all annotations',
DISPLAY_SETTINGS: 'Display settings',
SELECT_YES: 'Yes',
SELECT_NO: 'No',
SELECT_INHERIT: 'Inherit',
IMPORT_SGF: 'Import SGF File',
IMPORT_SGF: 'Import SGF file',
TOO_LARGE: 'File too large',
IMPORT_CONFIRM_TITLE: 'Import the SGF file into the current goban',
IMPORT_CONFIRM_MSG: 'This will overwrite the existing content of the current goban, are you sure?',
EXPORT_SGF: 'Export SGF File',
EXPORT_SGF: 'Export SGF file',
GOTO_END_AT_BEGINNING: 'Default to end when opening',
FUZZY_STONE_PLACEMENT: 'Stones don\'t need to align precisely',
SHOW_NEXT_MOVE: 'Show next move position',
@ -88,17 +88,17 @@ export default {
INIT_HANDICAP_INFO: 'Fill in the integer between 0-9, 0 and 1 both indicate No-Handicap.',
INIT_SIZE: 'Default board size',
SHOW_RANGE: 'Limit to part of the board',
AXIOS_X: 'Horizontal Range',
AXIOS_Y: 'Vertical Range',
AXIOS_X: 'Horizontal range',
AXIOS_Y: 'Vertical range',
PAGE_SETTINGS_INFO: 'All settings here only apply to this game record and will override the settings with the same name in the plugin. If you want to share this configuration in multiple game record files, it is recommended to create a new game record file with all the settings here and use it as a template file to create new files using the Templater plugin, or manually create a copy to create a new game record.',
AN_GOOD_FOR_BLACK: 'Good for Black',
AN_UNCLEAR_POSITION: 'Unclear Position',
AN_EVEN_POSITION: 'Even Position',
AN_GOOD_FOR_WHITE: 'Good for White',
AN_GOOD_MOVE: 'Good Move',
AN_INTERESTING_MOVE: 'Interesting Move',
AN_DOUBTFUL_MOVE: 'Doubtful Move',
AN_BAD_MOVE: 'Bad Move',
AN_GOOD_FOR_BLACK: 'Good for Bblack',
AN_UNCLEAR_POSITION: 'Unclear position',
AN_EVEN_POSITION: 'Even position',
AN_GOOD_FOR_WHITE: 'Good for white',
AN_GOOD_MOVE: 'Good move',
AN_INTERESTING_MOVE: 'Interesting move',
AN_DOUBTFUL_MOVE: 'Doubtful move',
AN_BAD_MOVE: 'Bad move',
AN_HOTSPOT: 'Hotspot',
BM_LOW_CHINESE_OPENING: 'Low Chinese Opening',
BM_HIGH_CHINESE_OPENING: 'High Chinese Opening',

View file

@ -251,7 +251,7 @@ export default class GobanSGFPlugin extends Plugin {
private addCommands() {
this.addCommand({
id: 'Create New Goban',
id: 'create-new-goban',
name: `${t('CREATE_NEW')}`,
callback: () => {
this.createAndOpenGoban()
@ -259,7 +259,7 @@ export default class GobanSGFPlugin extends Plugin {
})
this.addCommand({
id: 'Toggle to Markdown or Goban',
id: 'toggle-to-markdown-or-goban',
name: `${t('TOGGLE_MD_GOBAN')}`,
mobileOnly: false,
callback: () => {