format and remove github workflow

This commit is contained in:
Akis 2022-08-12 14:15:39 +03:00
parent 67f63c88ab
commit 235c05eafa
Signed by untrusted user: akis
GPG Key ID: 267BF5C6677944ED
17 changed files with 85 additions and 113 deletions

View File

@ -1,11 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

View File

@ -1,24 +0,0 @@
name: Build to build branch
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
npm run build
- name: Deploy to build branch
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: build # The branch the action should deploy to.
folder: build # The folder the action should deploy.
commit-message: Successfully built
clean: true
single-commit: false

View File

@ -1,40 +1,40 @@
pipeline: pipeline:
build: build:
image: node:bullseye-slim image: node:bullseye-slim
commands: commands:
- npm install - npm install
- npm run build - npm run build
- pwd - pwd
- mv build/ ../ - mv build/ ../
- rm -rf * - rm -rf *
- mv ../build/* . - mv ../build/* .
push: push:
image: appleboy/drone-git-push image: appleboy/drone-git-push
settings: settings:
branch: build branch: build
remote: git@git.projectsegfau.lt:ProjectSegfault/website.git remote: git@git.projectsegfau.lt:ProjectSegfault/website.git
force: true force: true
commit: true commit: true
commit_message : Successfully built the page. commit_message: Successfully built the page.
ssh_key: ssh_key:
from_secret: ssh_key_git from_secret: ssh_key_git
update: update:
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: host:
- projectsegfau.lt - projectsegfau.lt
username: gitea username: gitea
key: key:
from_secret: ssh_key from_secret: ssh_key
port: 6665 port: 6665
command_timeout: 1m command_timeout: 1m
script: script:
- cd /var/www/ - cd /var/www/
- rm -rf html - rm -rf html
- git clone https://git.projectsegfau.lt/ProjectSegfault/website.git html - git clone https://git.projectsegfau.lt/ProjectSegfault/website.git html
- cd html - cd html
- git checkout build - git checkout build
# I HATE GIT AND HOW THEY FORCE THIS # I HATE GIT AND HOW THEY FORCE THIS
# todo: do the funny pull but find a way to accept the changes. # todo: do the funny pull but find a way to accept the changes.
branches: main branches: main

View File

@ -45,7 +45,7 @@
} }
.gitcolored { .gitcolored {
background-color: #F05032; background-color: #f05032;
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
display: flex; display: flex;
@ -62,4 +62,4 @@
text-decoration: none; text-decoration: none;
width: fit-content; width: fit-content;
} }
</style> </style>

View File

@ -13,7 +13,7 @@
id="contact-form" id="contact-form"
> >
<div class="note"> <div class="note">
<div class="i-fa6-solid:lock"></div> <div class="i-fa6-solid:lock" />
<b>Your IP will be logged for anti-abuse measures.</b> <b>Your IP will be logged for anti-abuse measures.</b>
</div> </div>
<div class="meta"> <div class="meta">
@ -42,7 +42,7 @@
placeholder="Your message" placeholder="Your message"
/> />
<div class="note"> <div class="note">
<div class="i-fa6-solid:circle-info"></div> <div class="i-fa6-solid:circle-info" />
<b>The submit button will be visible when you complete the Captcha.</b> <b>The submit button will be visible when you complete the Captcha.</b>
</div> </div>
<HCaptcha <HCaptcha

View File

@ -7,7 +7,14 @@
"category": "Instances", "category": "Instances",
"projectWebsite": "https://invidious.io/" "projectWebsite": "https://invidious.io/"
}, },
{ "name": "Librarian (LBRY)", "description": "A frontend for Odysee.", "website": "https://lbry.projectsegfau.lt/", "icon": "https://codeberg.org/librarian/librarian/raw/branch/main/static/img/librarian.svg", "category": "Instances", "projectWebsite": "https://codeberg.org/librarian/librarian" }, {
"name": "Librarian (LBRY)",
"description": "A frontend for Odysee.",
"website": "https://lbry.projectsegfau.lt/",
"icon": "https://codeberg.org/librarian/librarian/raw/branch/main/static/img/librarian.svg",
"category": "Instances",
"projectWebsite": "https://codeberg.org/librarian/librarian"
},
{ {
"name": "Libreddit", "name": "Libreddit",
"description": "A frontend for Reddit.", "description": "A frontend for Reddit.",

View File

@ -27,8 +27,7 @@
<input type="checkbox" id="toggle-menu" /> <input type="checkbox" id="toggle-menu" />
<label class="menu-icon" for="toggle-menu"> <label class="menu-icon" for="toggle-menu">
<div id="menu-icon" class="i-fa6-solid:bars"> <div id="menu-icon" class="i-fa6-solid:bars" />
</div>
</label> </label>
<div class="links"> <div class="links">
@ -42,10 +41,10 @@
> >
{/each} {/each}
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/"> <a href="https://matrix.to/#/#project-segfault:projectsegfau.lt/">
<div class="i-simple-icons:matrix"></div> <div class="i-simple-icons:matrix" />
</a> </a>
<a href="https://git.projectsegfau.lt/ProjectSegfault/"> <a href="https://git.projectsegfau.lt/ProjectSegfault/">
<div class="i-simple-icons:git"></div> <div class="i-simple-icons:git" />
</a> </a>
<div> <div>
<ThemeToggle /> <ThemeToggle />

View File

@ -11,4 +11,4 @@
"git": "https://git.projectsegfau.lt/ProjectSegfault/Segfautils/", "git": "https://git.projectsegfau.lt/ProjectSegfault/Segfautils/",
"website": "https://segfautils.projectsegfau.lt/" "website": "https://segfautils.projectsegfau.lt/"
} }
] ]

View File

@ -63,4 +63,4 @@
"email": "mailto:cat-support@projectsegfau.lt", "email": "mailto:cat-support@projectsegfau.lt",
"picture": "https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/tRNGfetEFQhDchqzhfBbxtUi" "picture": "https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/tRNGfetEFQhDchqzhfBbxtUi"
} }
] ]

View File

@ -17,11 +17,9 @@
<DarkMode bind:theme /> <DarkMode bind:theme />
{#if theme === "dark"} {#if theme === "dark"}
<div on:click={toggle} class="i-fa6-solid:sun"> <div on:click={toggle} class="i-fa6-solid:sun" />
</div>
{:else if theme === "light"} {:else if theme === "light"}
<div on:click={toggle} class="i-fa6-solid:moon"> <div on:click={toggle} class="i-fa6-solid:moon" />
</div>
{/if} {/if}
<style> <style>

View File

@ -15,7 +15,7 @@ html {
--text: #ffffffde; --text: #ffffffde;
--grey: #5454547a; --grey: #5454547a;
--alt: #333; --alt: #333;
--alt-text: #ddd --alt-text: #ddd;
} }
html.light { html.light {

View File

@ -26,7 +26,10 @@
<div class="buttons"> <div class="buttons">
<a href="/instances">Explore our services</a> <a href="/instances">Explore our services</a>
<a href="/projects">Explore our projects</a> <a href="/projects">Explore our projects</a>
<a href="/donate"><div class="i-fa6-solid:money-bill"></div> Donate</a> <a href="/donate"
><div class="i-fa6-solid:money-bill" />
Donate</a
>
</div> </div>
</Hero> </Hero>
@ -38,9 +41,9 @@
<div class="announcement"> <div class="announcement">
<div class="general"> <div class="general">
{#if announcements.severity === "info"} {#if announcements.severity === "info"}
<div class="i-fa6-solid:circle-info"></div> <div class="i-fa6-solid:circle-info" />
{:else} {:else}
<div class="i-fa6-solid:triangle-exclamation"></div> <div class="i-fa6-solid:triangle-exclamation" />
{/if} {/if}
<span> <span>
{dayjs {dayjs

View File

@ -28,9 +28,13 @@
icon={item.icon} icon={item.icon}
> >
<LinksOuter> <LinksOuter>
<Link url={item.projectWebsite} classes="web"> <Link
url={item.projectWebsite}
classes="web"
>
<div class="projectWebsite"> <div class="projectWebsite">
<div class="i-fa6-solid:globe" /><span>Project website</span> <div class="i-fa6-solid:globe" />
<span>Project website</span>
</div> </div>
</Link> </Link>
</LinksOuter> </LinksOuter>
@ -61,7 +65,7 @@
text-decoration: none; text-decoration: none;
color: var(--text); color: var(--text);
} }
.projectWebsite { .projectWebsite {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -15,16 +15,16 @@
<LinksOuter> <LinksOuter>
{#if website} {#if website}
<Link url={website} classes="web"> <Link url={website} classes="web">
<div class="i-fa6-solid:globe"></div> <div class="i-fa6-solid:globe" />
</Link> </Link>
{/if} {/if}
{#if git} {#if git}
<Link url={git} classes="gitcolored"> <Link url={git} classes="gitcolored">
<div class="i-simple-icons:git"></div> <div class="i-simple-icons:git" />
</Link> </Link>
{/if} {/if}
</LinksOuter> </LinksOuter>
</CardInner> </CardInner>
{/each} {/each}
</CardOuter> </CardOuter>

View File

@ -15,46 +15,46 @@
<LinksOuter> <LinksOuter>
{#if matrix} {#if matrix}
<Link url={matrix} classes="matrixcolored"> <Link url={matrix} classes="matrixcolored">
<div class="i-simple-icons:matrix"></div> <div class="i-simple-icons:matrix" />
</Link> </Link>
{/if} {/if}
{#if discord} {#if discord}
<Link url={discord} classes="discordcolored"> <Link url={discord} classes="discordcolored">
<div class="i-simple-icons:discord"></div> <div class="i-simple-icons:discord" />
</Link> </Link>
{/if} {/if}
{#if git} {#if git}
<Link url={git} classes="gitcolored"> <Link url={git} classes="gitcolored">
<div class="i-simple-icons:git"></div> <div class="i-simple-icons:git" />
</Link> </Link>
{/if} {/if}
{#if website} {#if website}
<Link url={website} classes="web"> <Link url={website} classes="web">
<div class="i-fa6-solid:globe"></div> <div class="i-fa6-solid:globe" />
</Link> </Link>
{/if} {/if}
{#if email} {#if email}
<Link url="mailto:{email}" classes="email"> <Link url="mailto:{email}" classes="email">
<div class="i-fa6-solid:envelope"></div> <div class="i-fa6-solid:envelope" />
</Link> </Link>
{/if} {/if}
{#if pgp} {#if pgp}
<Link url={pgp} classes="pgp"> <Link url={pgp} classes="pgp">
<div class="i-fa6-solid:key"></div> <div class="i-fa6-solid:key" />
</Link> </Link>
{/if} {/if}
{#if picture} {#if picture}
<Link url={picture} classes="picture"> <Link url={picture} classes="picture">
<div class="i-fa6-solid:camera"></div> <div class="i-fa6-solid:camera" />
</Link> </Link>
{/if} {/if}
</LinksOuter> </LinksOuter>
</CardInner> </CardInner>
{/each} {/each}
</CardOuter> </CardOuter>

View File

@ -21,4 +21,4 @@ export default defineConfig({
], ],
transformers: [transformerVariantGroup(), transformerDirectives()] transformers: [transformerVariantGroup(), transformerDirectives()]
}); });

View File

@ -1,13 +1,9 @@
import { sveltekit } from "@sveltejs/kit/vite"; import { sveltekit } from "@sveltejs/kit/vite";
import unoCSS from "unocss/vite"; import unoCSS from "unocss/vite";
/** @type {import('vite').UserConfig} */ /** @type {import('vite').UserConfig} */
const config = { const config = {
plugins: [ plugins: [sveltekit(), unoCSS()]
sveltekit(),
unoCSS()
]
}; };
export default config; export default config;