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

View File

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

View File

@ -13,7 +13,7 @@
id="contact-form"
>
<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>
</div>
<div class="meta">
@ -42,7 +42,7 @@
placeholder="Your message"
/>
<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>
</div>
<HCaptcha

View File

@ -7,7 +7,14 @@
"category": "Instances",
"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",
"description": "A frontend for Reddit.",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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