From 235c05eafaee30317315413763e1d1ded69be399 Mon Sep 17 00:00:00 2001 From: Akis Date: Fri, 12 Aug 2022 14:15:39 +0300 Subject: [PATCH] format and remove github workflow --- .github/dependabot.yml | 11 ------ .github/workflows/build.yml | 24 ------------ .woodpecker.yml | 78 ++++++++++++++++++------------------- src/lib/Card/Link.svelte | 4 +- src/lib/ContactForm.svelte | 4 +- src/lib/Instances.json | 9 ++++- src/lib/Nav.svelte | 7 ++-- src/lib/Projects.json | 2 +- src/lib/Team.json | 2 +- src/lib/ThemeToggle.svelte | 6 +-- src/lib/app.css | 2 +- src/routes/index.svelte | 9 +++-- src/routes/instances.svelte | 10 +++-- src/routes/projects.svelte | 6 +-- src/routes/team.svelte | 16 ++++---- unocss.config.ts | 2 +- vite.config.js | 6 +-- 17 files changed, 85 insertions(+), 113 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 75ec0c0..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -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" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 577b3ab..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 diff --git a/.woodpecker.yml b/.woodpecker.yml index 9103de5..dde3a79 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/src/lib/Card/Link.svelte b/src/lib/Card/Link.svelte index f916571..8ce2889 100644 --- a/src/lib/Card/Link.svelte +++ b/src/lib/Card/Link.svelte @@ -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; } - \ No newline at end of file + diff --git a/src/lib/ContactForm.svelte b/src/lib/ContactForm.svelte index 4556c54..564b4de 100644 --- a/src/lib/ContactForm.svelte +++ b/src/lib/ContactForm.svelte @@ -13,7 +13,7 @@ id="contact-form" >
-
+
Your IP will be logged for anti-abuse measures.
@@ -42,7 +42,7 @@ placeholder="Your message" />
-
+
The submit button will be visible when you complete the Captcha.