Compare commits

..

103 commits

Author SHA1 Message Date
35f16b9d09 Merge pull request 'Bump forgejo-release to v2' (#50) from actions-update into main
All checks were successful
Run Tests on Code / test (push) Successful in 23s
Reviewed-on: https://forgejo.neshweb.net///Neshweb-Sites/main-site/pulls/50
2024-08-06 17:31:41 +00:00
8d84391acc Bump forgejo-release to v2
Some checks failed
Run Tests on Code / test (push) Successful in 49s
Build Docker Image on Pull Request / test (pull_request) Failing after 3m27s
2024-08-06 17:03:06 +00:00
a897e5bb03
Prettier Linting
All checks were successful
Run Tests on Code / test (push) Successful in 3m46s
2024-08-06 19:02:16 +02:00
6ac9e68827
Version Info in Footer; Various formatting fixes; Removed WS debugging; Removed Gitlab from Services
Some checks failed
Run Tests on Code / test (push) Failing after 30s
2024-07-31 22:31:52 +02:00
8392c7885d
Release 1.0.0
All checks were successful
Run Tests on Code / test (push) Successful in 21s
Build and Release Docker Image / test (push) Successful in 4m55s
Build and Release Docker Image / build (push) Successful in 1m27s
Build and Release Docker Image / release (push) Successful in 1m14s
2024-01-06 15:12:49 +01:00
b0fc76ccdf Merge pull request 'Rewrite page in Svelte 5' (#49) from rewrite/svelte into main
All checks were successful
Run Tests on Code / test (push) Successful in 21s
Reviewed-on: #49
2024-01-06 14:12:09 +00:00
ea8e759f6a
Prettier linting
All checks were successful
Run Tests on Code / test (push) Successful in 25s
Build Docker Image on Pull Request / test (pull_request) Successful in 3m26s
2024-01-06 15:03:39 +01:00
23bd323bf8
Edit About page contents 2024-01-06 15:03:39 +01:00
b36c2bc082
Release Candidate 1.0.0-rc.7 2024-01-06 15:03:39 +01:00
9eb15db026
Cosmetic Fixes 2024-01-06 15:03:39 +01:00
528055fca0
Fix Pull Request CI comparing Tag against package.json 2024-01-06 15:03:39 +01:00
9aa8ca05f4
Release Candidate 1.0.0-rc.6 2024-01-06 15:03:39 +01:00
a4806e13ea
Prettier Linting 2024-01-06 15:03:39 +01:00
3734b89970
Added sanitize-html to prevent XSS attacks on Mastodon Feed 2024-01-06 15:03:39 +01:00
7ba92af617
Add Mastodon Feed to Home Page + Mastodon Embed component + Adjust Muted color 2024-01-06 15:03:39 +01:00
ff8448a561
Cleaned About page by moving CSS test to separate route 2024-01-06 15:03:39 +01:00
678fbb76bd
Add content to Home Page 2024-01-06 15:03:39 +01:00
4ce3e29f57
Optimize Socket.io connections for fewer open requests at any one time 2024-01-06 15:03:39 +01:00
2d74a1eb89
Extend services list 2024-01-06 15:03:39 +01:00
0f50c43782
Adjust ServerCard for usage with Server list 2024-01-06 15:03:39 +01:00
c715471a9a
Remove erroneous connection details from read or not 2024-01-06 15:03:39 +01:00
d6dac5a2b8
Version bump 2024-01-06 15:03:39 +01:00
5ffb5f95f7
Release Candidate 1.0.0-rc.5 2024-01-06 15:03:39 +01:00
3525fdfcd1
Linting changes 2024-01-06 15:03:39 +01:00
abea3f1be9
Add initial /servers route 2024-01-06 15:03:39 +01:00
99679cc45b
Close Socket.io connection after fetching data on server 2024-01-06 15:03:39 +01:00
d150c6cdba
Including Version number on about page 2024-01-06 15:03:39 +01:00
d774bb169b
CSS tests on about page 2024-01-06 15:03:39 +01:00
6670dc4430
reduce box size for pages, reducing need for manual overrides in page components 2024-01-06 15:03:39 +01:00
c71684b7d9
Simplify css 2024-01-06 15:03:39 +01:00
7632941962
Reduce need for css overrides by rearanging values in pcss 2024-01-06 15:03:39 +01:00
f78e7ce6e1
linting changes 2024-01-06 15:03:39 +01:00
7ae357cf2f
this belongs to e67c19d688 2024-01-06 15:03:39 +01:00
3b017673b3
Return token promise instead of token, speeds up page loading a lot 2024-01-06 15:03:39 +01:00
fbe9f89c0f
remove debug logging 2024-01-06 15:03:39 +01:00
d9e0bae305
Fix display issues 2024-01-06 15:03:39 +01:00
85a722e160
Release Candidate 1.0.0-rc.4 2024-01-06 15:03:39 +01:00
9357cd84d5
Apply env var approach to CI and Dockerfile 2024-01-06 15:03:39 +01:00
1872b42d5d
Use env vars instead of file contents (also allows for easier ci testing) 2024-01-06 15:03:39 +01:00
e6cbae1bd6
Fix Syntax Error 2024-01-06 15:03:39 +01:00
536e7e6588
Restart Server after first lighthouse run if it crashed or closed 2024-01-06 15:03:37 +01:00
84f45fa16a
Fix crash on /services page when credentials file not present 2024-01-06 15:03:34 +01:00
9b476c6478
Release Candidate 1.0.0-rc.3 2024-01-06 15:03:34 +01:00
8e4bf3b409
linting changes 2024-01-06 15:03:34 +01:00
98e9a21f92
Add socket.io to package.json 2024-01-06 15:03:34 +01:00
3c1938af80
Integrate with Uptime Kuma Socket.io API 2024-01-06 15:03:34 +01:00
4523de1217
Add credentials.json to gitignore 2024-01-06 15:03:34 +01:00
2f02f7cabb
Split up Unlighthouse Runs + Build Site in release test step + fix pull request actions 2024-01-06 15:03:34 +01:00
a819351b26
Fix --no-sandbox export 2024-01-06 15:03:33 +01:00
98c015856f
Verbose export of --no-sandbox flag 2024-01-06 15:03:33 +01:00
1dee471ea5
Add Chromium --no-sandbox flag 2024-01-06 15:03:31 +01:00
af2762028b
Add urls to unlighthouse config 2024-01-06 15:03:30 +01:00
45f39399fe
Fix bash process spawning 2024-01-06 15:03:30 +01:00
71b981e036
Start server for unlighthouse in dev mode 2024-01-06 15:03:27 +01:00
ed9eadd31d
Revert 1263f7b984 2024-01-06 15:03:22 +01:00
f5d8ae4a46
Add apt update to dependency install step 2024-01-06 15:03:20 +01:00
a5381c5ba2
Correct apt package from chromium to chromium-browser 2024-01-06 15:03:18 +01:00
73ccdf5cac
Fix apt install step 2024-01-06 15:03:16 +01:00
b510f2c576
Add chromium dependency to Unlighthouse install step 2024-01-06 15:03:15 +01:00
5bd01c3a22
Prettier Changes 2024-01-06 15:03:12 +01:00
829e911674
Release Candidate 1.0.0-rc.2 2024-01-06 15:03:12 +01:00
8cadf96116
Add unlighthouse to Release + Pull Request Actions, Add Unlighthouse config file 2024-01-06 15:03:12 +01:00
ab0346b95c
Add title and description to placeholder pages 2024-01-06 15:03:09 +01:00
b1a2471841
Add Skeleton UI component from shadcn 2024-01-06 15:03:09 +01:00
b685f5e771
Apply renaming of Card -> ServiceCard to the services page 2024-01-06 15:03:09 +01:00
0a22ba5e08
Rename Card to ServiceCard. Add proper icon handling 2024-01-06 15:03:09 +01:00
0eb25708a0
Dynamically fetch list of icons and services and pass both to the ServiceCard 2024-01-06 15:03:09 +01:00
225b120ea0
Split pages.json to severs.json and services.json, move to /static/data/ 2024-01-06 15:03:09 +01:00
7f25f40fe6
API endpoint returning /data/services.json 2024-01-06 15:03:09 +01:00
ee5d6e947a
API endpoint listing all icons in icons directory 2024-01-06 15:03:09 +01:00
08282e07f0
Add IconType enum, make Service fields readonly 2024-01-06 15:03:09 +01:00
097d2e9e5e
Add separate -36 variants for 36px avifs 2024-01-06 15:03:09 +01:00
803aa95feb
Add unlighthouse to gitignore 2024-01-06 15:03:09 +01:00
c451e92745
Add .idea directory to gitignore, add pages for About and Servers 2024-01-06 15:03:09 +01:00
f05b68f820
Remove dummy data on Home page 2024-01-06 15:03:09 +01:00
159c78f9cc
USe node:20-bookworm for faster Actions 2024-01-06 15:03:05 +01:00
b2afbe35ec
Fix Dockerfile 2024-01-06 15:03:05 +01:00
74ab3328d2
Add correct type to Card prop 2024-01-06 15:02:54 +01:00
6ae4141b8c
Remove Eslint from linting job due to likely incompat with Svelte 5 2024-01-06 15:02:54 +01:00
3d31710c3f
Add service type 2024-01-06 15:02:54 +01:00
8aa858a49e
Prettier overwritten changes revert + eslint ignore ui components 2024-01-06 15:02:54 +01:00
eeaeca1006
Prettier changes 2024-01-06 15:02:54 +01:00
d99d508bd6
only check src directory 2024-01-06 15:02:54 +01:00
d9f6f2d0be
Release Candidate 1.0.0-rc.1 2024-01-06 15:02:54 +01:00
256f432c22
Add AGPLv3 License 2024-01-06 15:02:52 +01:00
3d87538aea
Add accessibility fields 2024-01-06 15:02:52 +01:00
090b97a3f6
Use avif instead of png/jpg 2024-01-06 15:02:52 +01:00
bfd9dcaa7d
Add Link Icon to card 2024-01-06 15:02:52 +01:00
6c2f29afa6
Added services page with unfinished service card element 2024-01-06 15:02:52 +01:00
0d1f4cd766
Switched port to 8000 2024-01-06 15:02:52 +01:00
7ec403841b
Added colors to tailwind config 2024-01-06 15:02:52 +01:00
be892d00c1
Adjusted pending color 2024-01-06 15:02:52 +01:00
bd0b102d02
Update gitignore 2024-01-06 15:02:51 +01:00
60710322b8
Delete config templates 2024-01-06 15:02:51 +01:00
c7317324ab
Add Navbar using shadcn Button 2024-01-06 15:02:51 +01:00
e4607afd22
Add postcss/tailwind/shadcn 2024-01-06 15:02:51 +01:00
0292f34504
Move icons to svelte ordering 2024-01-06 15:02:51 +01:00
3cd2a0f5af
Add Svelte 5/SvelteKit 2 2024-01-06 15:02:51 +01:00
04a1cd1580
Remove next.js 2024-01-06 15:02:51 +01:00
0824de8df1
Adopt Actions changes from other repos 2024-01-06 15:02:51 +01:00
d2206cbb72
Update build Action to resolve merge conflict with svelte rewrite branch
Some checks failed
Run Tests on Code / test (push) Has been cancelled
2024-01-06 15:01:32 +01:00
64632df708
Adjust build actions indenting
Some checks failed
Run Tests on Code / test (push) Has been cancelled
2024-01-06 14:51:57 +01:00
622c8539fe Update .forgejo/workflows/build+release.yml
All checks were successful
Run Tests on Code / test (push) Successful in 1m31s
2023-12-20 21:27:35 +00:00
12 changed files with 44 additions and 55 deletions

View file

@ -125,7 +125,7 @@ jobs:
runs-on: docker
steps:
- name: Release New Version
uses: actions/forgejo-release@v1
uses: actions/forgejo-release@v2
with:
direction: upload
url: https://forgejo.neshweb.net

View file

@ -44,17 +44,6 @@ jobs:
- name: Run Linter
run: yarn lint
- name: Check if Version in package.json matches Tag
run: |
echo "Test"
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" )
if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1
else
echo "Version is: '$VERSION'";
fi
- name: Build Site
run: yarn build

View file

@ -2,7 +2,7 @@
"name": "main-site",
"author": "Neshura",
"license": "AGPL-3.0-or-later",
"version": "1.0.0-rc.6",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "vite dev",

View file

@ -121,7 +121,7 @@
</div>
{/snippet}
<ol class="w-full">
<ol class="h-[40rem] w-full overflow-y-auto">
{#if loading}
{#each Array(maxToots ?? 5) as placeholder}
<li class="flex flex-col gap-3 px-4 py-3">

View file

@ -5,6 +5,7 @@
import Header from './Header.svelte';
import { socketStore } from '$lib/stores/socketStore';
import { beforeNavigate } from '$app/navigation';
import Footer from './Footer.svelte';
$effect(() => {
beforeNavigate((navigation) => {
@ -21,6 +22,8 @@
<Header />
<div class="h-full pt-16">
<div class="h-full pb-8 pt-16">
<slot />
</div>
<Footer />

View file

@ -9,9 +9,11 @@
<meta name="description" content="Landing Page for neshweb.net" />
</svelte:head>
<div class="grid max-h-full grid-cols-3 justify-center gap-4 overflow-auto p-8">
<div class="col-span-2 flex flex-col items-center">
<div class="flex flex-col gap-y-2 rounded-md border bg-black/55 p-4 backdrop-blur-sm">
<div
class="flex max-h-full flex-row flex-wrap justify-center justify-around gap-4 overflow-auto p-8"
>
<div class="flex w-[22rem] flex-1 flex-col items-center">
<div class="flex flex-col gap-y-2 rounded-xl border bg-black/55 p-4 backdrop-blur-sm">
<h1 class="text-center text-2xl">Home Page</h1>
<p>
I'm not sure what to put here quite yet, maybe I'll think of something eventually. In the
@ -20,7 +22,7 @@
</div>
</div>
<div
class="flex flex-col items-center gap-y-1 rounded-md border bg-black/55 py-1 backdrop-blur-sm"
class="flex w-[22rem] flex-col items-center gap-y-1 overflow-auto rounded-xl border bg-black/55 py-1 backdrop-blur-sm"
>
<p class="font-bold">Fediverse Accounts</p>
<Separator class="max-w-80" />

17
src/routes/Footer.svelte Normal file
View file

@ -0,0 +1,17 @@
<script lang="ts">
import { version } from '$app/environment';
</script>
<div
class="absolute bottom-0 z-50 flex h-8 w-full flex-row items-center gap-3 border-t bg-black/40 backdrop-blur-sm"
>
<p class="px-4">
Version:
<a
href="https://forgejo.neshweb.net/Neshweb-Sites/main-site/releases/tag/{version}"
class="text-secondary hover:underline"
>
{version}
</a>
</p>
</div>

View file

@ -6,9 +6,9 @@
</script>
<ul
class="absolute z-50 flex h-16 w-full flex-row items-center justify-center gap-3 border-b bg-black/40 backdrop-blur-sm"
class="absolute z-50 flex h-16 w-full flex-row items-center gap-3 overflow-x-auto border-b bg-black/40 backdrop-blur-sm"
>
<li>
<li class="ml-auto">
<Button
variant="ghost"
href="/"
@ -37,7 +37,7 @@
Services
</Button>
</li>
<li>
<li class="mr-auto">
<Button
variant="ghost"
href="/about"

View file

@ -1,18 +1,11 @@
<script lang="ts">
import { version } from '$app/environment';
</script>
<svelte:head>
<title>About</title>
<meta name="description" content="Information about this Website" />
</svelte:head>
<p>
Version:
<a
href="https://forgejo.neshweb.net/Neshweb-Sites/main-site/releases/tag/{version}"
class="hover:underline"
>
{version}
</a>
</p>
<div class="flex max-h-full flex-row flex-wrap justify-center gap-10 overflow-auto p-8">
<p>
This is just a small Website I built to organize all of the Services I am self-hosting. Maybe
I'll eventually add something actually useful to the site but until then this is all you'll get.
</p>
</div>

View file

@ -22,19 +22,15 @@
let monitorList = $state($uptimeStore);
console.log(monitorList);
let socket = $socketStore;
$effect(() => {
if (token) {
if (!socket.connected) {
socket.connect();
} else {
console.log('already connected');
}
socket.on('connect', () => {
console.log('logging in');
socket.emit('loginByToken', token, () => {});
});

View file

@ -29,15 +29,13 @@
if (token) {
if (!socket.connected) {
socket.connect();
} else {
console.log('connected');
}
socket.on('connect', () => {
console.log('login');
socket.emit('loginByToken', token, () => {});
});
socket.on('heartbeatList', (_: string, data) => {
socket.on('heartbeatList', (_, data) => {
let recent = data[data.length - 1];
let monitor: Heartbeat = {
monitorID: recent.monitor_id,
@ -89,7 +87,7 @@
<meta name="description" content="Overview of Services running on neshweb.net" />
</svelte:head>
<div class="flex max-h-full flex-row flex-wrap justify-center gap-10 overflow-auto p-8 pt-24">
<div class="flex max-h-full flex-row flex-wrap justify-center gap-10 overflow-auto p-8">
{#each services as service}
<ServiceCard {service} {icons} monitor={monitorList.get(service.id)} />
{/each}

View file

@ -82,15 +82,6 @@
"warn": "Note: Registration only via Admin",
"id": 10
},
{
"name": "Gitlab",
"icon": "/assets/icons/gitlab-logo",
"iconType": "svg",
"href": "https://gitlab.neshweb.net/",
"desc": "Self-hosted Git Service",
"warn": "Note: Registration only via Admin",
"id": 2
},
{
"name": "Forgejo",
"icon": "/assets/icons/forgejo-logo",