-
+
@@ -8,7 +8,6 @@
diff --git a/src/components/Workspace/SideBarSection.vue b/src/components/Workspace/SideBarSection.vue
new file mode 100644
index 00000000..aee666a2
--- /dev/null
+++ b/src/components/Workspace/SideBarSection.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
diff --git a/src/views/About.vue b/src/views/About.vue
index 83585d71..c4273ea9 100644
--- a/src/views/About.vue
+++ b/src/views/About.vue
@@ -9,15 +9,6 @@
highly customizable and functianl dashboard, in order to improvde productivity
and enable easy organisation of running services or web links.
-
- Dashy is a web-based project with PWA mobile support. It's written in TypeScript,
- and using the Vue.js framework, with a simple Node.js backend.
- It can be run in a light-weight Alpine Docker container, with support for
- healthcheck monitoring, self-updating and automatic restarting. Configuration
- is done with a single YAML file, that is merged with the application when it
- is built / compiled. The configuration can me modified using the UI, and then
- exported back into the main config file.
-
@@ -51,7 +42,7 @@
Dashy is developed an maintained by Alicia Sykes
- (@Lissy93).
+ (@Lissy93), with support from the community.
- PGP Key -
0688 F8D3 4587 D954 E9E5 1FB8 FEDB 68F5 5C02 83A7
- BTC Address -
3853bSxupMjvxEYfwGDGAaLZhTKxB2vEVC
@@ -101,8 +92,8 @@ article.about {
background: var(--about-page-background);
color: var(--about-page-color);
width: 80%;
- max-width: 800px;
- margin: 1rem auto;
+ max-width: 1000px;
+ margin: 1rem auto 2.5rem auto;
padding: 1rem;
border: 1px solid var(--about-page-accent);
border-radius: var(--curve-factor);
diff --git a/src/views/Workspace.vue b/src/views/Workspace.vue
index 3afabfa8..342f0731 100644
--- a/src/views/Workspace.vue
+++ b/src/views/Workspace.vue
@@ -1,6 +1,6 @@
-
+
@@ -9,11 +9,13 @@
import SideBar from '@/components/Workspace/SideBar';
import WebContent from '@/components/Workspace/WebContent';
+import Defaults, { localStorageKeys } from '@/utils/defaults';
export default {
name: 'Workspace',
props: {
sections: Array,
+ appConfig: Object,
},
data: () => ({
url: '',
@@ -22,6 +24,27 @@ export default {
SideBar,
WebContent,
},
+ methods: {
+ launchService(url) {
+ this.url = url;
+ },
+ setTheme() {
+ const theme = localStorage[localStorageKeys.THEME] || this.confTheme || Defaults.theme;
+ const htmlTag = document.getElementsByTagName('html')[0];
+ if (htmlTag.hasAttribute('data-theme')) htmlTag.removeAttribute('data-theme');
+ htmlTag.setAttribute('data-theme', theme);
+ },
+ initiateFontAwesome() {
+ const fontAwesomeScript = document.createElement('script');
+ const faKey = this.appConfig.fontAwesomeKey || Defaults.fontAwesomeKey;
+ fontAwesomeScript.setAttribute('src', `https://kit.fontawesome.com/${faKey}.js`);
+ document.head.appendChild(fontAwesomeScript);
+ },
+ },
+ mounted() {
+ this.setTheme();
+ this.initiateFontAwesome();
+ },
};