From c92083f88f784bfa78eb74e3669555f055416e5f Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 17 Jun 2021 13:34:02 +0100 Subject: [PATCH] Commiting in order to switch computers --- docs/backup-restore.md | 16 ++++++- src/components/Settings/ThemeSelector.vue | 1 + src/components/Workspace/SideBar.vue | 20 +++++++- src/components/Workspace/SideBarItem.vue | 18 ++----- src/components/Workspace/SideBarSection.vue | 52 +++++++++++++++++++++ src/views/About.vue | 15 ++---- src/views/Workspace.vue | 25 +++++++++- 7 files changed, 118 insertions(+), 29 deletions(-) create mode 100644 src/components/Workspace/SideBarSection.vue diff --git a/docs/backup-restore.md b/docs/backup-restore.md index 11c578e9..2c6b2158 100644 --- a/docs/backup-restore.md +++ b/docs/backup-restore.md @@ -49,6 +49,20 @@ Maximum of 24mb of storage per user. Please do not repeatedly hit the endpoint, - Add your `zone_id` (found in the Overview tab of your desired domain on Cloudflare) - Add your `route`, which should be a domain or host, supporting a wildcard +```toml +name = "dashy-worker" +type = "javascript" + +workers_dev = true +route = "example.com/*" +zone_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +account_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + +kv_namespaces = [ + { binding = "DASHY_CLOUD_BACKUP", id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } +] +``` + #### Complete `index.js` - Write code to handle your requests, and interact with any other data sources in this file - Generally, this is done within an event listener for 'fetch', and returns a promise @@ -66,7 +80,7 @@ async function handleRequest(request) { } ``` -- For the code used for Dashy's cloud service, see [here](https://notes.aliciasykes.com/p/j2F1deljv1) +- For the code used for Dashy's cloud service, see [here](https://gist.github.com/Lissy93/d19b43d50f30e02fa25f349cf5cb5ed8#file-index-js) #### Commands diff --git a/src/components/Settings/ThemeSelector.vue b/src/components/Settings/ThemeSelector.vue index d978240e..92d903f6 100644 --- a/src/components/Settings/ThemeSelector.vue +++ b/src/components/Settings/ThemeSelector.vue @@ -54,6 +54,7 @@ export default { } }, methods: { + /* Sets the theme, by updating data-theme attribute on the html tag */ setLocalTheme(newTheme) { const htmlTag = document.getElementsByTagName('html')[0]; if (htmlTag.hasAttribute('data-theme')) htmlTag.removeAttribute('data-theme'); diff --git a/src/components/Workspace/SideBar.vue b/src/components/Workspace/SideBar.vue index 4c91eeb4..826ea446 100644 --- a/src/components/Workspace/SideBar.vue +++ b/src/components/Workspace/SideBar.vue @@ -1,7 +1,13 @@ @@ -9,6 +15,7 @@ diff --git a/src/components/Workspace/SideBarItem.vue b/src/components/Workspace/SideBarItem.vue index cb0c33fb..16e27a62 100644 --- a/src/components/Workspace/SideBarItem.vue +++ b/src/components/Workspace/SideBarItem.vue @@ -1,6 +1,6 @@ @@ -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 @@ Alicia Sykes Dashy is developed an maintained by Alicia Sykes - (@Lissy93). + (@Lissy93), with support from the community.