From 044b7142958fe074d054942adf11a9e9722322ec Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Fri, 2 May 2025 02:57:46 +0200 Subject: [PATCH 01/18] feat: include data for other platforms to generate embeds --- nuxt.config.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index c27a274..faf56fd 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,5 +2,19 @@ export default defineNuxtConfig({ compatibilityDate: '2024-11-01', devtools: { enabled: true }, - modules: ['@nuxt/fonts', '@nuxt/image'] + modules: ['@nuxt/fonts', '@nuxt/image'], + app: { + head: { + title: 'Gorb - The Chat App', + // this is purely used to embed in that other chat app, and similar stuff + meta: [ + { property: 'og:title', content: 'Gorb - The Federated Chat App' }, + { property: 'og:description', content: 'GORB! The open-source and federated chat application!' }, + // { property: 'og:image', content: 'missing' }, + { property: 'og:url', content: 'https://gorb.app' }, + { property: 'og:type', content: 'website' }, + { property: 'og:site_name', content: 'Gorb' } + ] + } + } }) \ No newline at end of file From eb467e3255be9b9757996ba32ae96bf5fcb20d33 Mon Sep 17 00:00:00 2001 From: Radical Date: Mon, 5 May 2025 03:08:31 +0200 Subject: [PATCH 02/18] ci: add ci to automatically publish new versions --- .woodpecker/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .woodpecker/build.yml diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..0a51867 --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,20 @@ +steps: + - name: build + image: node:alpine + commands: + - npm install -g pnpm + - pnpm install + - pnpm build + + - name: publish + image: debian:12 + commands: + - apt update -y && apt install -y rsync openssh-client + - printf "Host *\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config + - ssh-agent bash -c "ssh-add <(echo '$KEY' | base64 -d) && rsync --archive --verbose --compress --hard-links --delete-during --partial --progress ./.output/ root@gorb.app:/var/www/gorb.app && ssh root@gorb.app systemctl restart gorb.app.service" + environment: + KEY: + from_secret: ssh_key + when: + - branch: main + event: push From 1f7ec956ca92a7cd7a4fe67137a53678e127943d Mon Sep 17 00:00:00 2001 From: Radical Date: Mon, 5 May 2025 03:13:09 +0200 Subject: [PATCH 03/18] ci: add when to build step --- .woodpecker/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 0a51867..13d578b 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -5,6 +5,9 @@ steps: - npm install -g pnpm - pnpm install - pnpm build + when: + - event: push + - event: pull_request - name: publish image: debian:12 From f6047894e0db5ccdd84702d53e4311407db02d4e Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Mon, 5 May 2025 11:16:24 +0200 Subject: [PATCH 04/18] feat: add Discord embed color meta tag --- nuxt.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index faf56fd..54649b8 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -13,7 +13,8 @@ export default defineNuxtConfig({ // { property: 'og:image', content: 'missing' }, { property: 'og:url', content: 'https://gorb.app' }, { property: 'og:type', content: 'website' }, - { property: 'og:site_name', content: 'Gorb' } + { property: 'og:site_name', content: 'Gorb' }, + { property: 'theme-color', content: "#c200c2" } ] } } From 1e261d1a1bf35325e74065d52c8198faf91eed00 Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Mon, 5 May 2025 11:18:09 +0200 Subject: [PATCH 05/18] feat: set custom title and description for homepage --- pages/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/index.vue b/pages/index.vue index 5d53c22..c7eac12 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -15,6 +15,13 @@ \ No newline at end of file diff --git a/components/Footer.vue b/components/Footer.vue new file mode 100644 index 0000000..8084402 --- /dev/null +++ b/components/Footer.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/components/Header.vue b/components/Header.vue new file mode 100644 index 0000000..940ac03 --- /dev/null +++ b/components/Header.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/nuxt.config.ts b/nuxt.config.ts index cb193ba..ca82a71 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,6 +3,10 @@ export default defineNuxtConfig({ compatibilityDate: '2024-11-01', devtools: { enabled: true }, modules: ['@nuxt/fonts', '@nuxt/image'], + css: [ + '@/public/variables.css', + '@/public/global.css' + ], app: { head: { title: 'Gorb - Open-Source Chat Platform', diff --git a/public/global.css b/public/global.css new file mode 100644 index 0000000..faf4c7c --- /dev/null +++ b/public/global.css @@ -0,0 +1,6 @@ +.pansexual-gradient { + background: linear-gradient(to right, #FE218C, #FED84E, #1CB3F7); + background-clip: text; + -webkit-text-fill-color: transparent; + -webkit-background-clip: text; +} \ No newline at end of file diff --git a/public/variables.css b/public/variables.css new file mode 100644 index 0000000..62aff2d --- /dev/null +++ b/public/variables.css @@ -0,0 +1,31 @@ +/* this file may want to be moved to a /styles folder, or /assets folder, or smth */ +:root { + --text-colour: #141210; + --background-colour: #f4ebe0; + --background-secondary-colour: #efe4db; + + --primary-colour: #f97635; + --secondary-colour: #cab39b; + --tertiary-colour: #e8ac84; + --accent-colour: #ed7a41; +} + +@media (prefers-color-scheme: dark) { + :root { + --text-colour: #efedec; + --background-colour: #201d19; + --background-secondary-colour: #1d1915; + + --primary-colour: #f97635; + --secondary-colour: #b35618; + --tertiary-colour: #7c4018; + --accent-colour: #cc764a; + } +} + +/* unchanging no matter the theme */ +:root { + --text-on-primary-colour: #fff; + --text-on-secondary-colour: #fff; + --text-on-accent-colour: #fff; +} \ No newline at end of file From 14f4ee86e5b17bb536745917948f286c4435acf0 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Wed, 28 May 2025 07:13:40 +0200 Subject: [PATCH 14/18] feat: source page --- pages/index.vue | 5 ++-- pages/source.vue | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 pages/source.vue diff --git a/pages/index.vue b/pages/index.vue index 8581fa5..f1da95c 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -4,14 +4,13 @@ Welcome to GORB!

- The Open-Source and Federated + The Open-Source and Federated Chat Platform!

Go to web client

IT DOESN'T EXIST YET

- BUT! Check out our Git to check on our - progress! + BUT! Check out our Git to check on our progress!

diff --git a/pages/source.vue b/pages/source.vue new file mode 100644 index 0000000..d5a3e1e --- /dev/null +++ b/pages/source.vue @@ -0,0 +1,64 @@ + + + + + \ No newline at end of file From f874f3db798df5db00145a7d03e6db0ae82a5aa2 Mon Sep 17 00:00:00 2001 From: Radical Date: Fri, 30 May 2025 18:27:23 +0200 Subject: [PATCH 15/18] ci: prerender site --- .woodpecker/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 13d578b..e8c263c 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -4,7 +4,7 @@ steps: commands: - npm install -g pnpm - pnpm install - - pnpm build + - pnpm build --prerender when: - event: push - event: pull_request From 99f3d569f72c0479fc5f2c9a5d512049196a2fd2 Mon Sep 17 00:00:00 2001 From: Radical Date: Fri, 30 May 2025 18:29:35 +0200 Subject: [PATCH 16/18] ci: only include needed public folder --- .woodpecker/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index e8c263c..6d267ed 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -14,7 +14,7 @@ steps: commands: - apt update -y && apt install -y rsync openssh-client - printf "Host *\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config - - ssh-agent bash -c "ssh-add <(echo '$KEY' | base64 -d) && rsync --archive --verbose --compress --hard-links --delete-during --partial --progress ./.output/ root@gorb.app:/var/www/gorb.app && ssh root@gorb.app systemctl restart gorb.app.service" + - ssh-agent bash -c "ssh-add <(echo '$KEY' | base64 -d) && rsync --archive --verbose --compress --hard-links --delete-during --partial --progress ./.output/public/ root@gorb.app:/var/www/gorb.app && ssh root@gorb.app systemctl restart gorb.app.service" environment: KEY: from_secret: ssh_key From eac11f06da257b2bb31ed6f246d5a963ea84f267 Mon Sep 17 00:00:00 2001 From: Radical Date: Fri, 30 May 2025 18:43:07 +0200 Subject: [PATCH 17/18] feat: add .well-known/gorb.txt Used by frontend to locate the API when its not on /api --- public/.well-known/gorb.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 public/.well-known/gorb.txt diff --git a/public/.well-known/gorb.txt b/public/.well-known/gorb.txt new file mode 100644 index 0000000..4c97686 --- /dev/null +++ b/public/.well-known/gorb.txt @@ -0,0 +1 @@ +ApiBaseUrl: https://api.gorb.app \ No newline at end of file From 3b95c1628045241825ace5c4ccd1db6afa5fe131 Mon Sep 17 00:00:00 2001 From: Radical Date: Fri, 30 May 2025 18:46:13 +0200 Subject: [PATCH 18/18] ci: remove leftover ssh command --- .woodpecker/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 6d267ed..869988e 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -14,7 +14,7 @@ steps: commands: - apt update -y && apt install -y rsync openssh-client - printf "Host *\n StrictHostKeyChecking no" >> /etc/ssh/ssh_config - - ssh-agent bash -c "ssh-add <(echo '$KEY' | base64 -d) && rsync --archive --verbose --compress --hard-links --delete-during --partial --progress ./.output/public/ root@gorb.app:/var/www/gorb.app && ssh root@gorb.app systemctl restart gorb.app.service" + - ssh-agent bash -c "ssh-add <(echo '$KEY' | base64 -d) && rsync --archive --verbose --compress --hard-links --delete-during --partial --progress ./.output/public/ root@gorb.app:/var/www/gorb.app" environment: KEY: from_secret: ssh_key