title: $:/plugins/Gk0Wk/CPL-Repo/views/system/settings
caption: <$text text={{{ [[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]search[zh]then[设置]else[Settings]] }}}/>
created: 20231010201844662
modified: 20231010204310339
subtitle: <$text text={{{ [[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]search[zh]then[CPL 设置]else[CPL Settings]] }}}/>
tags: 
type: text/vnd.tiddlywiki

<$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]search[zh]then[yes]else[no]]" variable="chinese">

<$list filter="[<chinese>match[yes]]">

在该页面内您可以对 CPL 插件的行为进行设定。

; CPL 数据库镜像入口 <$select tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/current-static-repo" field="text">
<$list filter="[{$:/plugins/Gk0Wk/CPL-Repo/config/static-repos}enlist-input[]]" variable="repo">
<option value=<<repo>>><$text text=<<repo>>/></option>
</$list>
</$select>

; CPL 服务器功能源 <$select tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/current-server-repo" field="text">
<$list filter="[{$:/plugins/Gk0Wk/CPL-Repo/config/server-repos}enlist-input[]]" variable="repo">
<option value=<<repo>>><$text text=<<repo>>/></option>
</$list>
</$select>

<<<
当 CPL 获取插件数据库经常失败时，你可以尝试切换静态数据库镜像；评论、评分、统计和登录等功能由服务器功能源提供。

欢迎各位大佬部署国内镜像，详情请咨询QQ交流群或在[[GitHub Issue|https://github.com/tiddly-gittly/TiddlyWiki-CPL/issues]]提问

你可以手动更改数据库镜像入口：[[$:/plugins/Gk0Wk/CPL-Repo/config/current-static-repo]]

你也可以单独更改 CPL 服务器功能源：[[$:/plugins/Gk0Wk/CPL-Repo/config/current-server-repo]]
<<<

; 自动更新检查间隔 <$edit-text tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-update-intervals-minutes" tag="input" default="-1" /> (分钟/次)

<<<
自动更新检查会在 Wiki 刚打开时进行，并每隔指定间隔进行一次检查

显然自动检查需要联网，每次所消耗的流量很小，大概10KB。如果发现有插件可以更新，会在 CPL 面板顶部提醒。

当值小于等于0，则关闭自动更新，也包括刚打开 Wiki 的那一次。

关闭后可以手动在 [[$:/ControlPanel]] 的 [CPL] 中进行检查。
<<<

<$checkbox
  tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-load-database-in-cpl-layout"
  field="text"
  checked="yes"
  unchecked="no"
  default="yes">
  进入 CPL 布局时自动加载数据库
</$checkbox>

; <$checkbox
  tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-check-updates-in-cpl-layout"
  field="text"
  checked="yes"
  unchecked="no"
  default="no">
  进入 CPL 布局时自动检查更新
</$checkbox>

; <$checkbox
  tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-confirm-install"
  field="text"
  checked="yes"
  unchecked="no"
  default="no">
  更新时自动确认安装（跳过确认弹框）
</$checkbox>

; 插件更新筛选器 <$edit-text tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/update-filter" tag="input" default="" />

<<<
插件更新是有选择的，你可以通过修改筛选器来排除一些插件。
<<<

</$list>

<$list filter="[<chinese>match[no]]">

In this page you can set the behavior of the CPL plugin.

; CPL Database Mirror Entry <$select tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/current-static-repo" field="text">
<$list filter="[{$:/plugins/Gk0Wk/CPL-Repo/config/static-repos}enlist-input[]]" variable="repo">
<option value=<<repo>>><$text text=<<repo>>/></option>
</$list>
</$select>

; CPL Feature Server <$select tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/current-server-repo" field="text">
<$list filter="[{$:/plugins/Gk0Wk/CPL-Repo/config/server-repos}enlist-input[]]" variable="repo">
<option value=<<repo>>><$text text=<<repo>>/></option>
</$list>
</$select>

<<<
When CPL often fails to fetch the plugin database, you can switch the static database mirror. Comments, ratings, stats, and login are provided by the feature server.

If you'd like to deploy your own mirrors, feel free to ask questions in the [[GitHub Issue|https://github.com/tiddly-gittly/TiddlyWiki-CPL/issues]]!

You can manually change the database mirror entry: [[$:/plugins/Gk0Wk/CPL-Repo/config/current-static-repo]]

You can also configure the CPL feature server independently: [[$:/plugins/Gk0Wk/CPL-Repo/config/current-server-repo]]
<<<

; Automatic update of check intervals <$edit-text tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-update-intervals-minutes" tag="input" default="-1" /> (minute(s) per time)

<<<
The automatic update check is performed when the Wiki is first opened, and at specified intervals

Obviously auto-checking requires an internet connection and consumes very little traffic each time, about 10KB. If a plugin is found to be updatable, the CPL panel will show a notice at the top.

When the value is less than or equal to 0, auto-update is turned off, also when the Wiki is just opened.

After closing it can be checked manually in [CPL] of [[$:/ControlPanel]].
<<<

<$checkbox
  tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-load-database-in-cpl-layout"
  field="text"
  checked="yes"
  unchecked="no"
  default="yes">
  Automatically load the database when entering the CPL layout
</$checkbox>

; <$checkbox
  tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-check-updates-in-cpl-layout"
  field="text"
  checked="yes"
  unchecked="no"
  default="no">
  Automatically check for updates when entering the CPL layout
</$checkbox>

; <$checkbox
  tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/auto-confirm-install"
  field="text"
  checked="yes"
  unchecked="no"
  default="no">
  Auto-confirm installation during updates (skip confirmation dialog)
</$checkbox>

; Plugin Update Filter <$edit-text tiddler="$:/plugins/Gk0Wk/CPL-Repo/config/update-filter" tag="input" default="" />

<<<
Plugin updates are selective and you can exclude some plugins by modifying the filter.
<<<

</$list>

</$list>
