1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-21 18:23:13 +00:00

Refactor most of this PR into the "Internals" plugin

This commit is contained in:
Jeremy Ruston 2025-04-09 22:01:43 +01:00
parent c8f17511f9
commit 04ad642be7
11 changed files with 61 additions and 64 deletions

View File

@ -5,7 +5,6 @@ Filter/Caption: Filter
Filter/Hint: Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]
Filter/Matches: //<small><<resultCount>> matches</small>//
Filter/FilterResults/Results/Caption: Results
Filter/FilterResults/Inspect/Caption: Inspect
Matches: //<small><<resultCount>> matches</small>//
Matches/All: All matches:
Matches/NoMatch: //No match//

View File

@ -1,2 +0,0 @@
title: $:/tags/AdvancedSearch/FilterResults
list: $:/core/ui/AdvancedSearch/Filter/FilterResults/Results $:/core/ui/AdvancedSearch/Filter/FilterResults/Inspect

View File

@ -1,7 +1,6 @@
caption: inspect-filter
created: 20250401094200994
modified: 20250401094200994
tags: Macros [[Core Macros]]
title: inspect-filter Macro
type: text/vnd.tiddlywiki

View File

@ -1,6 +1,7 @@
title: $:/core/ui/AdvancedSearch/Filter/FilterResults/Inspect
title: $:/plugins/tiddlywiki/internals/InspectResultsTab
tags: $:/tags/AdvancedSearch/FilterResults
caption: {{$:/language/Search/Filter/FilterResults/Inspect/Caption}}
caption: Inspect
list-after: $:/core/ui/AdvancedSearch/Filter/FilterResults/Results
\whitespace trim

View File

@ -1,4 +1,4 @@
title: $:/core/macros/inspect-filter
title: $:/plugins/tiddlywiki/internals/inspect-filter
tags: $:/tags/Macro
\whitespace trim

View File

@ -1,5 +1,5 @@
/*\
title: $:/core/modules/filters/inspect.js
title: $:/plugins/tiddlywiki/internals/filters/inspect.js
type: application/javascript
module-type: filteroperator

View File

@ -2,3 +2,59 @@ title: $:/plugins/tiddlywiki/internals/styles
tags: $:/tags/Stylesheet
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
/*
** Filter Inspection
*/
.tc-inspect-filter-box {
--box-background-color: <<colour code-border>>;
--box-foreground-color: <<colour code-foreground>>;
}
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal {
display: flex;
}
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal > .tc-box > .tc-box-content,
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal .tc-inspect-run-box > .tc-box-content,
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal .tc-inspect-operation-box > .tc-box-content,
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal .tc-inspect-operator-box > .tc-box-content {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
}
.tc-inspect-operations-wrapper {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
}
.tc-inspect-run-box {
--box-background-color: #ffc;
--box-foreground-color: #440;
}
.tc-inspect-operation-box {
--box-background-color: #cfc;
--box-foreground-color: #040;
}
.tc-inspect-operator-box {
--box-background-color: #fcc;
--box-foreground-color: #400;
}
.tc-box.tc-inspect-input-box {
--box-background-color: #fcf;
--box-foreground-color: #404;
}
.tc-box.tc-inspect-output-box {
--box-background-color: #cff;
--box-foreground-color: #044;
}

View File

@ -3589,62 +3589,6 @@ span.tc-translink > a:first-child {
}
/*
** Filter Inspection
*/
.tc-inspect-filter-box {
--box-background-color: <<colour code-border>>;
--box-foreground-color: <<colour code-foreground>>;
}
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal {
display: flex;
}
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal > .tc-box > .tc-box-content,
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal .tc-inspect-run-box > .tc-box-content,
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal .tc-inspect-operation-box > .tc-box-content,
.tc-inspect-filter-box.tc-inspect-filter-box-horizontal .tc-inspect-operator-box > .tc-box-content {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
}
.tc-inspect-operations-wrapper {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
}
.tc-inspect-run-box {
--box-background-color: #ffc;
--box-foreground-color: #440;
}
.tc-inspect-operation-box {
--box-background-color: #cfc;
--box-foreground-color: #040;
}
.tc-inspect-operator-box {
--box-background-color: #fcc;
--box-foreground-color: #400;
}
.tc-box.tc-inspect-input-box {
--box-background-color: #fcf;
--box-foreground-color: #404;
}
.tc-box.tc-inspect-output-box {
--box-background-color: #cff;
--box-foreground-color: #044;
}
/*
** Flexbox utility classes
*/