From 8dd4c2b5fb2fe84479620ef0a6a7f8dcc6f38f5c Mon Sep 17 00:00:00 2001 From: SelfhostedPro <66331933+SelfhostedPro@users.noreply.github.com> Date: Wed, 21 Oct 2020 07:46:34 -0700 Subject: [PATCH 1/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df3bc1f5..7dca29f8 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Currently only linux has been verified as working but we are open to the idea of **Keep in mind, this is an alpha so the risk of data loss is real and it may not be stable** -Installation documentation can be found [here](https://ycht.tech/Installation/yacht/). +Installation documentation can be found [here](https://yacht.sh/Installation/yacht/). -Check out the getting started guide if this is the first time you've used Yacht: https://ycht.tech/Installation/gettingstarted/ +Check out the getting started guide if this is the first time you've used Yacht: https://yacht.sh/Installation/gettingstarted/ ## Features So Far: * Vuetify UI Framework From e73dc61e405aea35988930d20f56f25759903c55 Mon Sep 17 00:00:00 2001 From: SelfhostedPro Date: Thu, 22 Oct 2020 08:24:06 -0700 Subject: [PATCH 2/4] added arg for theme --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 124f580e..7afca641 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ # Build Vue +ARG VUE_APP_THEME=Default FROM node:14.5.0-alpine as build-stage WORKDIR /app COPY ./frontend/package*.json ./ @@ -11,7 +12,6 @@ FROM lsiobase/alpine:3.12 as deploy-stage # MAINTANER Your Name "info@selfhosted.pro" # Set Variables -ENV FLASK_CONFIG=production ENV PYTHONIOENCODING=UTF-8 WORKDIR /api From a0ab6f7f2b0ac08167ae0504a95240db70cd938f Mon Sep 17 00:00:00 2001 From: SelfhostedPro Date: Thu, 22 Oct 2020 09:26:48 -0700 Subject: [PATCH 3/4] fixed default theming --- Dockerfile | 3 ++- backend/requirements.txt | 4 ++-- frontend/src/App.vue | 2 +- frontend/src/plugins/vuetify.js | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7afca641..eec2392b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Build Vue -ARG VUE_APP_THEME=Default FROM node:14.5.0-alpine as build-stage +ARG VUE_APP_THEME=Default +ENV VUE_APP_THEME=${VUE_APP_THEME} WORKDIR /app COPY ./frontend/package*.json ./ RUN npm install diff --git a/backend/requirements.txt b/backend/requirements.txt index a6437f01..1c3b4585 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -11,14 +11,14 @@ dnspython==2.0.0 docker==4.3.0 email-validator==1.1.1 fastapi==0.60.2 -fastapi-users==3.0.3 +fastapi-users==3.0.6 gunicorn==20.0.4 h11==0.9.0 httptools==0.1.1 idna==2.10 python-jose==3.2.0 makefun==1.9.2 -passlib==1.7.3 +passlib==1.7.4 pycparser==2.20 pydantic==1.6.1 PyJWT==1.7.1 diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 2ae6fc80..efd68c93 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -72,7 +72,7 @@ export default { if (dark_theme == "false") { this.$vuetify.theme.dark = false; - } else { + } else if (dark_theme == "true"){ this.$vuetify.theme.dark = true; } if (theme) { diff --git a/frontend/src/plugins/vuetify.js b/frontend/src/plugins/vuetify.js index 84e8c084..f298df83 100644 --- a/frontend/src/plugins/vuetify.js +++ b/frontend/src/plugins/vuetify.js @@ -31,6 +31,7 @@ function theme() { }, DigitalOcean: { theme: { + dark: false, themes: { light: { primary: "#008bcf", @@ -47,7 +48,6 @@ function theme() { foreground: "#1E1E1E" } }, - dark: false, options: { customProperties: true, } From e344ebdcf4b142ff749adb6c018f7f61bb015fcd Mon Sep 17 00:00:00 2001 From: SelfhostedPro Date: Thu, 22 Oct 2020 12:53:39 -0700 Subject: [PATCH 4/4] removed unique requirement for replacement values in template variables --- backend/api/db/models/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/db/models/containers.py b/backend/api/db/models/containers.py index cc29f84e..2d4db000 100644 --- a/backend/api/db/models/containers.py +++ b/backend/api/db/models/containers.py @@ -78,4 +78,4 @@ class TemplateVariables(Base): variable = Column(String(255), nullable=False, unique=True, index=True) replacement = Column(String(255), - nullable=False, unique=True, index=True) + nullable=False, unique=False, index=True)