From ed59c5a49278c7dff01a5770011e77712d0cf530 Mon Sep 17 00:00:00 2001 From: puutaro Date: Wed, 31 Jul 2024 19:24:52 +0900 Subject: [PATCH] add settingimport md --- md/developer/configs/editBoxTitleConfig.md | 8 ++ md/developer/configs/listIndexConfig.md | 9 +- md/developer/configs/listLogoConfig.md | 8 ++ md/developer/configs/menuConfig.md | 6 ++ md/developer/configs/settingImport.md | 95 +++++++++++++++++++ md/developer/configs/toolbarButtonConfig.md | 8 +- .../configs/ubuntuExtraStartupShellPaths.md | 6 ++ md/developer/set_replace_variables.md | 55 ++++++++++- md/developer/setting_variables.md | 72 ++++++++++++++ 9 files changed, 262 insertions(+), 5 deletions(-) create mode 100644 md/developer/configs/settingImport.md diff --git a/md/developer/configs/editBoxTitleConfig.md b/md/developer/configs/editBoxTitleConfig.md index 1cadff6e3..bd5d2fe68 100644 --- a/md/developer/configs/editBoxTitleConfig.md +++ b/md/developer/configs/editBoxTitleConfig.md @@ -16,6 +16,7 @@ Table * [image](#image) * [Format for image](#format-for-image) * [Key-value table for image](#key-value-table-for-image) +* [settingimport](#settingimport) ## How to specify @@ -93,3 +94,10 @@ key-value | Key name | value | Description | |-------------------------|---------------------|------------------------------------------| | `disable` | `ON` / `OFF` | disable title image | + + + +## settingimport + +Import enable to this config, -> [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md) + diff --git a/md/developer/configs/listIndexConfig.md b/md/developer/configs/listIndexConfig.md index afac2a3ff..6983be2e5 100755 --- a/md/developer/configs/listIndexConfig.md +++ b/md/developer/configs/listIndexConfig.md @@ -41,7 +41,7 @@ Table * [Js action macro](#js-action-macro) * [longClick](#longclick) * [alter](#alter) - +* [settingimport](#settingimport) ## How to specify @@ -466,4 +466,9 @@ Similer to [click](#click) ### alter -Alter by condition [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/alter.md) \ No newline at end of file +Alter by condition [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/alter.md) + +## settingimport + +Import enable to this config, -> [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md) + diff --git a/md/developer/configs/listLogoConfig.md b/md/developer/configs/listLogoConfig.md index fb6327e7c..1c3529d9f 100644 --- a/md/developer/configs/listLogoConfig.md +++ b/md/developer/configs/listLogoConfig.md @@ -54,6 +54,7 @@ Table * [Js action macro](#js-action-macro) * [longClick](#longclick) * [alter](#alter) +* [settingimport](#settingimport) ## How to specify @@ -475,3 +476,10 @@ Similar to [click](#click) ### alter Alter by condition [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/alter.md) + + +## settingimport + +Import enable to this config, -> [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md) + + diff --git a/md/developer/configs/menuConfig.md b/md/developer/configs/menuConfig.md index eb0360400..a59591c09 100644 --- a/md/developer/configs/menuConfig.md +++ b/md/developer/configs/menuConfig.md @@ -26,6 +26,7 @@ Table * [Format for parentName](#format-for-parentname) * [Ex for parentName](#ex-for-parentname) * [alter](#alter) +* [settingimport](#settingimport) ## How to specify @@ -222,3 +223,8 @@ name=edit ### alter Alter by condition [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/alter.md) + +## settingimport + +Import enable to this config, -> [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md) + diff --git a/md/developer/configs/settingImport.md b/md/developer/configs/settingImport.md new file mode 100644 index 000000000..f2aa4e657 --- /dev/null +++ b/md/developer/configs/settingImport.md @@ -0,0 +1,95 @@ +# settingimport + +Enable config file import + +- This is second priority + +## Enable configs + +Enable all config like [this](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs) + +## Example + +- `${list index config path1}` con + +### src list index config + +```js.js +type= + tsvEdit, + +list= + listDir=`${cmdTtsPlayerTableTsvPath}` + |compPath=`${cmdTtsPlayerTableInitTsvConPath}` + |prefix=`${TTS_PREFIX}` + |suffix=`${TSV_SUFFIX}` + , + +name= + removeExtend=, + +click= + enableUpdate=ON + |acVar=runToConfigState + ?importPath= + `${cmdTtsPlayerChangeStateAction}` + ?replace= + STATE=`${MANAGER}` + &ON_LIST_DIR_UPDATER=ON + &ON_PLAY_INFO_SAVE=ON, + +longClick= + |func=MENU + ?args= + menuPath= + `${cmdTtsPlayerTableLongPressListIndexMenuPath}`, + + +``` + +### import list index config + +```js.js + +click= + enableUpdate=OFF + |func=RENAME, + +searchBox= + visible=OFF, + +``` + +### result list index config + +```js.js +type= + tsvEdit, + +list= + listDir=`${cmdTtsPlayerTableTsvPath}` + |compPath=`${cmdTtsPlayerTableInitTsvConPath}` + |prefix=`${TTS_PREFIX}` + |suffix=`${TSV_SUFFIX}` + , + +name= + removeExtend=, + +click= + enableUpdate=OFF + |func=RENAME, + +longClick= + |func=MENU + ?args= + menuPath= + `${cmdTtsPlayerTableLongPressListIndexMenuPath}`, + +searchBox= + visible=OFF, + +``` + +- Override click main key with second click key +- Add search box key diff --git a/md/developer/configs/toolbarButtonConfig.md b/md/developer/configs/toolbarButtonConfig.md index ddf9867f1..9d7a1aa2d 100755 --- a/md/developer/configs/toolbarButtonConfig.md +++ b/md/developer/configs/toolbarButtonConfig.md @@ -12,7 +12,7 @@ Table * [Js action macro](#js-action-macro) * [Setting key ](#setting-key-) * [Example](#example) - +* [settingimport](#settingimport) ## Overview @@ -177,3 +177,9 @@ click= icon=plus, ``` + + +## settingimport + +Import enable to this config, -> [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md) + diff --git a/md/developer/configs/ubuntuExtraStartupShellPaths.md b/md/developer/configs/ubuntuExtraStartupShellPaths.md index c1ff2a0fb..1006e8e4c 100644 --- a/md/developer/configs/ubuntuExtraStartupShellPaths.md +++ b/md/developer/configs/ubuntuExtraStartupShellPaths.md @@ -72,3 +72,9 @@ Key-value that you want to set | `disable` | `ON`
other | disable to auto start | - Concat by `,` + + +## settingimport + +Import enable to this config, -> [detail](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md) + diff --git a/md/developer/set_replace_variables.md b/md/developer/set_replace_variables.md index 4d176f147..9c36cc460 100755 --- a/md/developer/set_replace_variables.md +++ b/md/developer/set_replace_variables.md @@ -6,6 +6,7 @@ Table ----------------- * [Overview](#overview) * [Specify file path](#specify-file-path) +* [settingimport](#settingimport) ## Overview @@ -66,7 +67,57 @@ settingVariables= currentAppDirPath= "${01}", // replace variable3 description -setReplaceVariables= - "currentFannelDirPath=${currentAppDirPath}/${001}", +"currentFannelDirPath=${currentAppDirPath}/${001}", ``` + +## settingimport + +Other Replace variable can import + +- This is second priority + +### example for settingimport + +#### src replace variables + +```setReplaceVariables.js +settingVariables= + "editSettingVariables", +currentAppDirPath= + "${01}", +currentFannelDirPath= + "${currentAppDirPath}/${001}", +settingimport= + "${import replace varialbe path}" +``` + +#### ${import replace variable path} + +```js.js +currentAppDirPath= + "${import current app dir path}", +{import variable name1}= + {import variable value1}, +{import variable name2}= + {import variable value2}, +``` + + +#### result replace variable + +```setReplaceVariables.js +settingVariables= + "editSettingVariables", +currentAppDirPath= + "${01}", +currentAppDirPath= + "${import current app dir path}", +{import variable name1}= + {import variable value1}, +{import variable name2}= + {import variable value2}, +``` + +- Override `currentAppDirPath` variable with second click key +- Add `{import variable name1}`, `{import variable name2}` key \ No newline at end of file diff --git a/md/developer/setting_variables.md b/md/developer/setting_variables.md index 190e22559..7f05d772c 100755 --- a/md/developer/setting_variables.md +++ b/md/developer/setting_variables.md @@ -39,6 +39,7 @@ Table of Contents * [settingButtonConfig](#settingbuttonconfig) * [extraButtonConfig](#extrabuttonconfig) * [editBoxTitleConfig](#editboxtitleconfig) +* [importDisableValList](#importdisablevallist) * [noScrollSaveUrls](#noscrollsaveurls) * [terminalFontZoom](#terminalfontzoom) * [terminalFontColor](#terminalfontcolor) @@ -513,6 +514,77 @@ Where to display script result Import setting variable from js file - Set js file full paths by comma separated or multiple specify this variable +- This is second priority + +### Example for editBoxTitleConfig + +- src con + +```js.js +/// SETTING_SECTION_START +settingImport=`${IMPORT_PATH}` +importDisableValList="hideSettingVariables" +terminalDo="OFF" +setVariableTypes=`file://${setVariableTypesForTable}` +qrDialogConfig=`file://${cmdYoutuberTableQrDialogConfigPath}` +listIndexConfig=`file://${cmdYoutuberTableListIndexConfigPath}` +settingButtonConfig=`file://${cmdYoutuberTableSettingBtnConfigPath}` +hideSettingVariables="manager,playBtns" +hideSettingVariables=`file://${configHidValPath}` +/// SETTING_SECTION_END +``` + +-`${IMPORT_PATH}` con + +```js.js +/// SETTING_SECTION_START +editExecute="ALWAYS" +onUpdateLastModify="ON" +onAdBlock="OFF" +playButtonConfig="visible=OFF,disable=ON,color=gray,icon=play" +editButtonConfig="visible=OFF,disable=ON,color=gray,icon=list" +settingButtonConfig=`file://${cmdYoutuberSettingButtonConfigPath}` +fannelStateConfig=`file://` +setReplaceVariables="file://" +hideSettingVariables="file://" +srcImageAnchorLongPressJsPath=`${cmdYoutuberLongPressAction}` +srcAnchorLongPressJsPath=`${cmdYoutuberLongPressAction}` +/// SETTING_SECTION_END +``` + +#### Result setting variable + +- src con side + +```js.js +importDisableValList +terminalDo +setVariableTypes +qrDialogConfig +listIndexConfig +settingButtonConfig +hideSettingVariables +hideSettingVariables +``` + +- import path con side + +```js.js +editExecute +onUpdateLastModify +onAdBlock +playButtonConfig +editButtonConfig +settingButtonConfig <- second setting contents +fannelStateConfig +setReplaceVariables +hideSettingVariables <- second setting contents +srcImageAnchorLongPressJsPath +srcAnchorLongPressJsPath +``` + +- `setReplaceVariables` import is forced. This is override src con. +- Override `settingButtonConfig` and `hideSettingVariables` (inner config con import is depend on [setting import for config](https://github.com/puutaro/CommandClick/blob/master/md/developer/configs/settingImport.md)) ## importDisableValList