Commit 26071d5c authored by schneider210's avatar schneider210
Browse files

refactor: delete legacy code (standalone) as agreed upon in today's refinement

parent 56338a55
Pipeline #223505 passed with stages
in 5 minutes and 17 seconds
...@@ -294,8 +294,7 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau ...@@ -294,8 +294,7 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
"toggle": true "toggle": true
} }
], ],
"rtl": false, "rtl": false
"standalone": true
} </script> } </script>
``` ```
...@@ -467,12 +466,6 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau ...@@ -467,12 +466,6 @@ As a rule of thumb, each key with a boolean value (e.g. *true* or *false*) defau
Defaults to `false` Defaults to `false`
- **standalone**
denotes if the Viewer will be used as a single page application or if it will be embedded into an existing page. If you want to use it in the latter case, please toggle the value to `false`. That way the language toggle in the footer section will not show up.
Defaults to `true`
### Configure the Panels ### Configure the Panels
```json ```json
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
:manifests="manifests" :manifests="manifests"
:panels="panels" :panels="panels"
:projectcolors="config.colors" :projectcolors="config.colors"
:standalone="config.standalone"
/> />
<q-page-container class="root"> <q-page-container class="root">
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
class="row justify-center items-center" class="row justify-center items-center"
reveal reveal
> >
<Language v-if="standalone" /> <Language v-if="config['language-switch']" />
<Color :projectcolors="projectcolors" /> <Color :projectcolors="projectcolors" />
<Softwareinfo /> <Softwareinfo />
</div> </div>
...@@ -29,11 +30,15 @@ export default { ...@@ -29,11 +30,15 @@ export default {
Softwareinfo, Softwareinfo,
}, },
props: { props: {
config: {
type: Object,
default: () => {},
},
projectcolors: { projectcolors: {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
standalone: Boolean,
}, },
}; };
</script> </script>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
<Tools <Tools
:config="config" :config="config"
:projectcolors="projectcolors" :projectcolors="projectcolors"
:standalone="standalone"
/> />
</q-toolbar> </q-toolbar>
...@@ -50,7 +49,6 @@ ...@@ -50,7 +49,6 @@
<Tools <Tools
:config="config" :config="config"
:projectcolors="projectcolors" :projectcolors="projectcolors"
:standalone="standalone"
/> />
</div> </div>
</q-toolbar> </q-toolbar>
...@@ -112,7 +110,6 @@ export default { ...@@ -112,7 +110,6 @@ export default {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
standalone: Boolean,
}, },
}; };
</script> </script>
......
<template> <template>
<div class="row no-wrap justify-end col-xs-3"> <div class="row no-wrap justify-end col-xs-3">
<Language <Language
v-if="standalone && config['language-switch']" v-if="config['language-switch']"
:config="config" :config="config"
/> />
...@@ -32,7 +32,6 @@ export default { ...@@ -32,7 +32,6 @@ export default {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
standalone: Boolean,
}, },
}; };
</script> </script>
...@@ -126,8 +126,7 @@ ...@@ -126,8 +126,7 @@
"toggle": true "toggle": true
} }
], ],
"rtl": false, "rtl": false
"standalone": true
} }
</script> </script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment