Spruce up the control panel

Structure things with extensible tabs.
This commit is contained in:
Jermolene 2013-11-10 21:40:03 +00:00
parent dc6a9c6348
commit 2598e22422
15 changed files with 73 additions and 33 deletions

3
core/ui/ControlPanel.tid Normal file
View File

@ -0,0 +1,3 @@
title: $:/ControlPanel
<div class="tw-control-panel"><<tabs "[is[shadow]!has[draft.of]tag[$:/tags/ControlPanel]] [!is[shadow]!has[draft.of]tag[$:/tags/ControlPanel]]" "$:/core/ui/ControlPanel/Basics">></div>

View File

@ -0,0 +1,11 @@
title: $:/core/ui/ControlPanel/Appearance
tags: $:/tags/ControlPanel
caption: Appearance
! Theme
{{$:/snippets/themeswitcher}}
! Story View
{{$:/snippets/viewswitcher}}

View File

@ -0,0 +1,9 @@
title: $:/core/ui/ControlPanel/Basics
tags: $:/tags/ControlPanel
caption: Basics
|[[Title of this TiddlyWiki|SiteTitle]] |<$edit-text tiddler="SiteTitle" default="" tag="input"/> |
|[[Subtitle|SiteSubtitle]] |<$edit-text tiddler="SiteSubtitle" default="" tag="input"/> |
|[[Username for signing edits|$:/status/UserName]] |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> |
|[[Animation duration|$:/config/AnimationDuration]] |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> |
|[[DefaultTiddlers|$:/DefaultTiddlers]] |Choose which tiddlers are displayed at startup:<br> <$edit-text tag="textarea" tiddler="$:/DefaultTiddlers"/> |

View File

@ -0,0 +1,5 @@
title: $:/core/ui/ControlPanel/Encryption
tags: $:/tags/ControlPanel
caption: Encryption
{{$:/snippets/encryptionstatus}}

View File

@ -0,0 +1,13 @@
title: $:/core/ui/ControlPanel/Info
tags: $:/tags/ControlPanel
caption: Info
! Your Stuff
* Number of tiddlers: <$count filter="[!is[system]]"/>
! TiddlyWiki's Stuff
* Number of system tiddlers: <$count filter="[is[system]]"/>
* Number of shadow tiddlers: <$count filter="[is[shadow]]"/>
** Number of over-ridden shadow tiddlers: <$count filter="[!is[system]is[shadow]]"/>

View File

@ -1,6 +1,6 @@
title: $:/ConfigInfo
This tiddler displays the internal configuration of this wiki, which can be useful for troubleshooting, or just to help understand how TiddlyWiki5 works.
title: $:/core/ui/ControlPanel/Internals
tags: $:/tags/ControlPanel
caption: Internals
! Tiddler fields

View File

@ -0,0 +1,7 @@
title: $:/core/ui/ControlPanel/Plugins
tags: $:/tags/ControlPanel
caption: Plugins
<table><tbody><tr><th>Title</th><th>Description</th></tr><$list filter="[!has[draft.of]has[plugin-type]sort[title]]"><tr><td><$link to={{!!title}}><$view field="title"/></$link></td><td><$view field="description"/></td></tr></$list>
</tbody>
</table>

View File

@ -1,4 +1,4 @@
title: $:/ControlPanel
title: $:/ControlPanel_old
''Initial setup''

View File

@ -1,6 +0,0 @@
title: $:/WikiInfo
* Tiddlers: <$count filter="[!is[system]]"/>
* System tiddlers: <$count filter="[is[system]]"/>
* Shadow tiddlers: <$count filter="[is[shadow]]"/>
** Over-ridden shadow tiddlers: <$count filter="[!is[system]is[shadow]]"/>

View File

@ -0,0 +1,2 @@
title: $:/tags/ControlPanel
list: $:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Encryption $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Internals

View File

@ -3,15 +3,6 @@ title: $:/snippets/themeswitcher
Current theme: {{$:/theme}}
<$linkcatcher to="$:/theme">
<$list filter="[plugin-type[theme]sort[title]]">
<$reveal state="$:/theme" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/theme" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}>
<$view field="name" format="text"/>
</$link>
<$list filter="[plugin-type[theme]sort[title]]"><div><$reveal state="$:/theme" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/theme" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="name" format="text"/></$link></div>
</$list>
</$linkcatcher>

View File

@ -2,12 +2,7 @@ title: $:/snippets/viewswitcher
Current view: {{$:/view}}
<$linkcatcher to="$:/view">
<$list filter="classic zoomin pop">
<$reveal state="$:/view" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/view" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="title"/></$link>
<$linkcatcher to="$:/view"><$list filter="classic zoomin pop"><div><$reveal state="$:/view" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/view" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="title"/></$link>
</div>
</$list>
</$linkcatcher>

View File

@ -18,8 +18,6 @@ This is the developer documentation hub for TiddlyWiki.
! Internal Objects and Mechanisms
{{mechanism}}
<$list filter="[tag[mechanism]sort[title]]" type="ul"/>
! Module types
@ -29,8 +27,6 @@ See SyncAdaptorModules.
!! DeserializerModules
Deserializers are modules that read tiddlers from different text formats:
{{deserializers}}
Deserializers are modules that load tiddlers from different text formats:
<$list filter="[tag[deserializers]sort[title]]" type="ul"/>

View File

@ -1,4 +1,6 @@
title: $:/ControlPanel/ThemeTweaks
title: $:/themes/tiddlywiki/snowwhite/themetweaks
tags: $:/tags/ControlPanel
caption: Theme Tweaks
You can tweak certain aspects of the ''Snow White'' theme.

View File

@ -956,3 +956,15 @@ canvas.tw-edit-bitmapeditor {
width: 1em;
height: 1em;
}
/*
** Control panel
*/
.tw-control-panel td {
padding: 4px;
}
.tw-control-panel table, .tw-control-panel table input, .tw-control-panel table textarea {
width: 100%;
}