From c225013d1a7f3a25e93503b4569b86bab4c4a975 Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Wed, 21 Aug 2024 18:16:13 +0800 Subject: [PATCH] Add type attribute to input fields in control panel (#8518) --- core/ui/ControlPanel/Basics.tid | 2 +- core/ui/ControlPanel/Saving/GitHub.tid | 2 +- core/ui/ControlPanel/Saving/GitLab.tid | 2 +- core/ui/ControlPanel/Saving/TiddlySpot.tid | 2 +- core/ui/ControlPanel/Saving/gitea.tid | 2 +- core/ui/ControlPanel/SocialCard.tid | 6 +++--- plugins/tiddlywiki/codemirror/settings/cursorBlinkRate.tid | 2 +- plugins/tiddlywiki/codemirror/settings/indentUnit.tid | 2 +- plugins/tiddlywiki/codemirror/settings/tabSize.tid | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/ui/ControlPanel/Basics.tid b/core/ui/ControlPanel/Basics.tid index b2ef2832a..961cbe161 100644 --- a/core/ui/ControlPanel/Basics.tid +++ b/core/ui/ControlPanel/Basics.tid @@ -25,7 +25,7 @@ caption: {{$:/language/ControlPanel/Basics/Caption}} |<$link to="$:/SiteTitle"><> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | |<$link to="$:/SiteSubtitle"><> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | |<$link to="$:/status/UserName"><> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> | -|<$link to="$:/config/AnimationDuration"><> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> | +|<$link to="$:/config/AnimationDuration"><> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input" type="number"/> | |<$link to="$:/DefaultTiddlers"><> |<>
<$edit class="tc-edit-texteditor" tiddler="$:/DefaultTiddlers" autoHeight="yes"/>
//<>// | |<$link to="$:/language/DefaultNewTiddlerTitle"><> |<$edit-text tiddler="$:/language/DefaultNewTiddlerTitle" default="" tag="input"/> | |<$link to="$:/config/NewJournal/Title"><> |<$edit-text tiddler="$:/config/NewJournal/Title" default="" tag="input"/> | diff --git a/core/ui/ControlPanel/Saving/GitHub.tid b/core/ui/ControlPanel/Saving/GitHub.tid index 5782d0dcd..ba13dc252 100644 --- a/core/ui/ControlPanel/Saving/GitHub.tid +++ b/core/ui/ControlPanel/Saving/GitHub.tid @@ -13,4 +13,4 @@ caption: {{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}} |<> |<$edit-text tiddler="$:/GitHub/Branch" default="main" tag="input"/> | |<> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> | |<> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> | -|<> |<$edit-text tiddler="$:/GitHub/ServerURL" default="https://api.github.com" tag="input"/> | \ No newline at end of file +|<> |<$edit-text tiddler="$:/GitHub/ServerURL" default="https://api.github.com" tag="input" type="url"/> | \ No newline at end of file diff --git a/core/ui/ControlPanel/Saving/GitLab.tid b/core/ui/ControlPanel/Saving/GitLab.tid index dbe198824..b4f0fd8e9 100644 --- a/core/ui/ControlPanel/Saving/GitLab.tid +++ b/core/ui/ControlPanel/Saving/GitLab.tid @@ -13,4 +13,4 @@ caption: {{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}} |<> |<$edit-text tiddler="$:/GitLab/Branch" default="master" tag="input"/> | |<> |<$edit-text tiddler="$:/GitLab/Path" default="" tag="input"/> | |<> |<$edit-text tiddler="$:/GitLab/Filename" default="" tag="input"/> | -|<> |<$edit-text tiddler="$:/GitLab/ServerURL" default="https://gitlab.com/api/v4" tag="input"/> | \ No newline at end of file +|<> |<$edit-text tiddler="$:/GitLab/ServerURL" default="https://gitlab.com/api/v4" tag="input" type="url"/> | \ No newline at end of file diff --git a/core/ui/ControlPanel/Saving/TiddlySpot.tid b/core/ui/ControlPanel/Saving/TiddlySpot.tid index a36115ec4..65613d87d 100644 --- a/core/ui/ControlPanel/Saving/TiddlySpot.tid +++ b/core/ui/ControlPanel/Saving/TiddlySpot.tid @@ -34,7 +34,7 @@ http://$(userName)$.tiddlyspot.com/$path$/ ''<>'' -|<> |<$edit-text tiddler="$:/UploadURL" default="" tag="input"/> | +|<> |<$edit-text tiddler="$:/UploadURL" default="" tag="input" type="url"/> | |<> |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> | |<> |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> | |<> |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> | diff --git a/core/ui/ControlPanel/Saving/gitea.tid b/core/ui/ControlPanel/Saving/gitea.tid index 48a4c4ca1..cc4d83369 100644 --- a/core/ui/ControlPanel/Saving/gitea.tid +++ b/core/ui/ControlPanel/Saving/gitea.tid @@ -13,4 +13,4 @@ caption: {{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}} |<> |<$edit-text tiddler="$:/Gitea/Branch" default="master" tag="input"/> | |<> |<$edit-text tiddler="$:/Gitea/Path" default="" tag="input"/> | |<> |<$edit-text tiddler="$:/Gitea/Filename" default="" tag="input"/> | -|<> |<$edit-text tiddler="$:/Gitea/ServerURL" default="https://gitea/api/v1" tag="input"/> | +|<> |<$edit-text tiddler="$:/Gitea/ServerURL" default="https://gitea/api/v1" tag="input" type="url"/> | diff --git a/core/ui/ControlPanel/SocialCard.tid b/core/ui/ControlPanel/SocialCard.tid index 591c6550f..41c9ebfa0 100644 --- a/core/ui/ControlPanel/SocialCard.tid +++ b/core/ui/ControlPanel/SocialCard.tid @@ -8,9 +8,9 @@ caption: {{$:/language/ControlPanel/SocialCard/Caption}} |<$link to="$:/SiteTitle"><> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | |<$link to="$:/SiteSubtitle"><> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | -|<$link to="$:/SiteDomain"><> |<$edit-text tiddler="$:/SiteDomain" default="" tag="input"/> | -|<$link to="$:/SiteUrl"><> |<$edit-text tiddler="$:/SiteUrl" default="" tag="input"/> | -|<$link to="$:/SitePreviewUrl"><> |<$edit-text tiddler="$:/SitePreviewUrl" default="" tag="input"/> | +|<$link to="$:/SiteDomain"><> |<$edit-text tiddler="$:/SiteDomain" default="" tag="input" type="url"/> | +|<$link to="$:/SiteUrl"><> |<$edit-text tiddler="$:/SiteUrl" default="" tag="input" type="url"/> | +|<$link to="$:/SitePreviewUrl"><> |<$edit-text tiddler="$:/SitePreviewUrl" default="" tag="input" type="url"/> | <%if [[$:/SitePreviewUrl]get[text]else[]!is[blank]] %>
diff --git a/plugins/tiddlywiki/codemirror/settings/cursorBlinkRate.tid b/plugins/tiddlywiki/codemirror/settings/cursorBlinkRate.tid index ba540ea4c..59cf44fcb 100644 --- a/plugins/tiddlywiki/codemirror/settings/cursorBlinkRate.tid +++ b/plugins/tiddlywiki/codemirror/settings/cursorBlinkRate.tid @@ -4,4 +4,4 @@ caption: {{$:/language/codemirror/cursorBlinkRate/hint}} \define lingo-base() $:/language/codemirror/cursorBlinkRate/ -|<$link to="$:/config/codemirror/cursorBlinkRate"><> |<$edit-text tiddler="$:/config/codemirror/cursorBlinkRate" default="" placeholder="cursorBlinkRate" tag="input"/> | +|<$link to="$:/config/codemirror/cursorBlinkRate"><> |<$edit-text tiddler="$:/config/codemirror/cursorBlinkRate" default="" placeholder="cursorBlinkRate" tag="input" type="number"/> | diff --git a/plugins/tiddlywiki/codemirror/settings/indentUnit.tid b/plugins/tiddlywiki/codemirror/settings/indentUnit.tid index b463f3e78..36518d938 100644 --- a/plugins/tiddlywiki/codemirror/settings/indentUnit.tid +++ b/plugins/tiddlywiki/codemirror/settings/indentUnit.tid @@ -4,4 +4,4 @@ caption: {{$:/language/codemirror/indentUnit/hint}} \define lingo-base() $:/language/codemirror/indentUnit/ -|<$link to="$:/config/codemirror/indentUnit"><> |<$edit-text tiddler="$:/config/codemirror/indentUnit" default="" placeholder="indentUnit" tag="input"/> | +|<$link to="$:/config/codemirror/indentUnit"><> |<$edit-text tiddler="$:/config/codemirror/indentUnit" default="" placeholder="indentUnit" tag="input" type="number"/> | diff --git a/plugins/tiddlywiki/codemirror/settings/tabSize.tid b/plugins/tiddlywiki/codemirror/settings/tabSize.tid index 1ca932b19..76092465f 100644 --- a/plugins/tiddlywiki/codemirror/settings/tabSize.tid +++ b/plugins/tiddlywiki/codemirror/settings/tabSize.tid @@ -4,4 +4,4 @@ caption: {{$:/language/codemirror/tabSize/hint}} \define lingo-base() $:/language/codemirror/tabSize/ -|<$link to="$:/config/codemirror/tabSize"><> |<$edit-text tiddler="$:/config/codemirror/tabSize" default="" placeholder="tabSize" tag="input"/> | +|<$link to="$:/config/codemirror/tabSize"><> |<$edit-text tiddler="$:/config/codemirror/tabSize" default="" placeholder="tabSize" tag="input" type="number"/> |