Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
ccec6d28
Commit
ccec6d28
authored
Apr 08, 2021
by
schneider210
Browse files
feat: configure to show either of the panel toggles
parent
80460e29
Pipeline
#186786
passed with stages
in 7 minutes and 13 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
ccec6d28
...
...
@@ -165,22 +165,26 @@ import '@subugoe/tido/dist/tido'
{
"
connector
"
:
[
1
],
"
panel_label
"
:
"
Contents
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
},
{
"
connector
"
:
[
3
],
"
panel_label
"
:
"
Image
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
},
{
"
connector
"
:
[
4
],
"
panel_label
"
:
"
Text
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
false
},
{
"
connector
"
:
[
2
],
"
panel_label
"
:
"
Metadata
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
}
],
"
rtl
"
:
false
,
...
...
@@ -306,7 +310,7 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
```
html
<script
id=
"tido-config"
type=
"application/json"
>
{
"
entrypoint
"
:
"
https://
{server}{/prefix}/{collection}
/collection.json
"
,
"
entrypoint
"
:
"
https://
subugoe.pages.gwdg.de/emo/backend/sampledata
/collection.json
"
,
"
colors
"
:
{
"
primary
"
:
""
,
"
secondary
"
:
""
,
...
...
@@ -348,22 +352,26 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
{
"
connector
"
:
[
1
],
"
panel_label
"
:
"
Contents
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
},
{
"
connector
"
:
[
3
],
"
panel_label
"
:
"
Image
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
},
{
"
connector
"
:
[
4
],
"
panel_label
"
:
"
Text
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
false
},
{
"
connector
"
:
[
2
],
"
panel_label
"
:
"
Metadata
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
}
],
"
rtl
"
:
false
,
...
...
@@ -479,22 +487,26 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
{
"connector"
:
[
1
],
"panel_label"
:
"Contents"
,
"show"
:
true
"show"
:
true
,
"toggle"
:
true
},
{
"connector"
:
[
3
],
"panel_label"
:
"Image"
,
"show"
:
true
"show"
:
true
,
"toggle"
:
true
},
{
"connector"
:
[
4
],
"panel_label"
:
"Text"
,
"show"
:
true
"show"
:
true
,
"toggle"
:
false
},
{
"connector"
:
[
2
],
"panel_label"
:
"Metadata"
,
"show"
:
true
"show"
:
true
,
"toggle"
:
true
}
]
,
...
...
@@ -540,6 +552,12 @@ Each object inside that constant consists of similar keys: `connector`, `pane_la
toggles (
`show`
or rather
`hide`
) the appropriate panel respectively
-
**toggle**
whether to show the related panel toggle or not
Defaults to
`true`
.
**Note**
:
## Viewer Components
...
...
src/components/togglebar/toggleFilter.vue
View file @
ccec6d28
...
...
@@ -2,7 +2,7 @@
<div>
<q-btn-dropdown
v-if=
"$q.screen.width
<
1100"
:dropdown-icon=
"
dropico
n"
:dropdown-icon=
"
fasCaretDow
n"
outline
flat
:class=
"$q.dark.isActive ? 'bg-black' : 'bg-secondary text-black'"
...
...
@@ -24,10 +24,9 @@
import
{
fasCaretDown
}
from
'
@quasar/extras/fontawesome-v5
'
;
export
default
{
computed
:
{
dropicon
()
{
return
fasCaretDown
;
},
// keep icon from reactivity
created
()
{
this
.
fasCaretDown
=
fasCaretDown
;
},
};
</
script
>
src/components/togglebar/toggleIndex.vue
View file @
ccec6d28
...
...
@@ -7,6 +7,7 @@
:key=
"`toggle$
{i}`"
>
<q-item
v-if=
"p.toggle"
v-close-popup
clickable
flat
...
...
src/index.template.html
View file @
ccec6d28
...
...
@@ -31,7 +31,7 @@
-->
<script
id=
"tido-config"
type=
"application/json"
>
{
"
entrypoint
"
:
""
,
"
entrypoint
"
:
"
https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/arabic-karshuni/collection.json
"
,
"
colors
"
:
{
"
primary
"
:
""
,
"
secondary
"
:
""
,
...
...
@@ -63,22 +63,26 @@
{
"
connector
"
:
[
1
],
"
panel_label
"
:
"
Contents
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
},
{
"
connector
"
:
[
3
],
"
panel_label
"
:
"
Image
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
},
{
"
connector
"
:
[
4
],
"
panel_label
"
:
"
Text
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
false
},
{
"
connector
"
:
[
2
],
"
panel_label
"
:
"
Metadata
"
,
"
show
"
:
true
"
show
"
:
true
,
"
toggle
"
:
true
}
],
"
rtl
"
:
false
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment