Switch to tabs for everything. (Note: don't know if this will break the .yml files)

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2022-10-18 15:37:38 +02:00
parent 12b07a6441
commit e32ba6131f
5 changed files with 181 additions and 213 deletions

View File

@ -1,6 +1,6 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: "gomod" # See documentation for possible values - package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests directory: "/" # Location of package manifests
schedule: schedule:
interval: "daily" interval: "daily"

View File

@ -1,29 +1,29 @@
name: Docker name: Docker
on: on:
push: push:
branches: branches:
- 'master' - 'master'
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- -
name: Login to DockerHub name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
push: true push: true
tags: realprojectsegfault/segfautils:latest tags: realprojectsegfault/segfautils:latest

View File

@ -1,185 +1,162 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Segfautils announcement command centre</title> <title>Segfautils announcement command centre</title>
<style> <style>
body { body {
background-color: #252525; background-color: #252525;
color: #fff; color: #fff;
font-family: 'JetBrains Mono', 'JetBrainsMono Nerd Font', monospace font-family: 'JetBrains Mono', 'JetBrainsMono Nerd Font', monospace
} }
.container {
width: 100%;
max-width: 400px;
margin: 0 auto;
position: relative;
}
#contact input[type="token"],
#contact input[type="link"],
#contact textarea,
#contact select,
#contact button[type="submit"] {
font: 500 15px/16px "Roboto", sans-serif;
}
.container h1 { .container {
text-align: center; width: 100%;
margin: 0; max-width: 400px;
padding: 0; margin: 0 auto;
font-size: 2rem; position: relative;
} }
#contact input[type="token"],
#contact input[type="link"],
#contact textarea,
#contact select,
#contact button[type="submit"] {
font: 500 15px/16px "Roboto", sans-serif;
}
.container h1 {
text-align: center;
margin: 0;
padding: 0;
font-size: 2rem;
}
#contact textarea { #contact textarea {
text-align: center; text-align: center;
border-radius: 5px; border-radius: 5px;
margin-top: 10px; margin-top: 10px;
width: 100%; width: 100%;
border: none; border: none;
color: #FFF; color: #FFF;
background: #3b3b3b; background: #3b3b3b;
margin: 0 0 5px; margin: 0 0 5px;
padding: 10px; padding: 10px;
height: 100px; height: 100px;
max-width: 100%; max-width: 100%;
resize: none; resize: none;
} }
#contact input, select { #contact input,
text-align: center; select {
border-radius: 5px; text-align: center;
color: #FFF; border-radius: 5px;
width: 100%; color: #FFF;
border: none; width: 100%;
background: #3b3b3b; border: none;
margin: 0 0 5px; background: #3b3b3b;
padding: 10px; margin: 0 0 5px;
max-width: 100%; padding: 10px;
} max-width: 100%;
#contact select { }
width: 105%;
max-width: 105%; #contact select {
} width: 105%;
max-width: 105%;
}
#contact button[type="submit"] { #contact button[type="submit"] {
cursor: pointer; cursor: pointer;
width: 105%; width: 105%;
border: none; border: none;
background: #00d4aa; background: #00d4aa;
color: #252525; color: #252525;
margin: 0 0 5px; margin: 0 0 5px;
padding: 10px; padding: 10px;
font-size: 15px; font-size: 15px;
border-radius: 5px; border-radius: 5px;
} }
#contact button[type="submit"]:hover { #contact button[type="submit"]:hover {
background: #00a484; background: #00a484;
-webkit-transition: background 0.3s ease-in-out; -webkit-transition: background 0.3s ease-in-out;
-moz-transition: background 0.3s ease-in-out; -moz-transition: background 0.3s ease-in-out;
transition: background-color 0.3s ease-in-out; transition: background-color 0.3s ease-in-out;
} }
#contact button[type="submit"]:active { #contact button[type="submit"]:active {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
} }
#contact button[type="delete"] { #contact button[type="delete"] {
cursor: pointer; cursor: pointer;
width: 105%; width: 105%;
border: none; border: none;
background: #d10006; background: #d10006;
color: #FFF; color: #FFF;
margin: 0 0 5px; margin: 0 0 5px;
padding: 10px; padding: 10px;
font-size: 15px; font-size: 15px;
border-radius: 5px; border-radius: 5px;
} }
#contact button[type="delete"]:hover { #contact button[type="delete"]:hover {
background: #990005; background: #990005;
-webkit-transition: background 0.3s ease-in-out; -webkit-transition: background 0.3s ease-in-out;
-moz-transition: background 0.3s ease-in-out; -moz-transition: background 0.3s ease-in-out;
transition: background-color 0.3s ease-in-out; transition: background-color 0.3s ease-in-out;
} }
#contact button[type="delete"]:active { #contact button[type="delete"]:active {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
} }
a { a {
color: #00d4aa; color: #00d4aa;
} }
a:hover { a:hover {
color: #4beacb; color: #4beacb;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>Post Announcement</h1> <h1>Post Announcement</h1>
<form <form id="contact" action="/api/announcements/post" method="POST" target="_blank">
id="contact" <div class="meta">
action="/api/announcements/post" <input type="password" name="token" placeholder="Your authentication token" required />
method="POST" <br />
target="_blank" <select id="severity" name="severity" required>
> <option value="" selected disabled>Select severity of announcement</option>
<div class="meta"> <option value="info">Information announcement</option>
<input <option value="low">Low severity</option>
type="password" <option value="medium">Medium severity</option>
name="token" <option value="high">High severity</option>
placeholder="Your authentication token" </select>
required </div>
/> <textarea name="title" rows="4" cols="25" required placeholder="The announcement text"></textarea>
<br /> <br />
<select id="severity" name="severity" required> <input type="text" name="link" placeholder="Your link for more details" />
<option value="" selected disabled>Select severity of announcement</option> <br />
<option value="info">Information announcement</option> <button type="submit" />Submit</button>
<option value="low">Low severity</option> </form>
<option value="medium">Medium severity</option> <h1 style="margin-top: 20px;">Delete Announcement</h1>
<option value="high">High severity</option> <form id="contact" action="/api/announcements/delete" method="POST" target="_blank">
</select> <div class="meta">
</div> <input type="password" name="token" placeholder="Your authentication token" required />
<textarea <br />
name="title" </div>
rows="4" <button type="delete" />Delete</button>
cols="25" </form>
required </div>
placeholder="The announcement text"></textarea>
<br />
<input
type="text"
name="link"
placeholder="Your link for more details"
/>
<br />
<button type="submit" />Submit</button>
</form>
<h1 style="margin-top: 20px;">Delete Announcement</h1>
<form
id="contact"
action="/api/announcements/delete"
method="POST"
target="_blank"
>
<div class="meta">
<input
type="password"
name="token"
placeholder="Your authentication token"
required
/>
<br />
</div>
<button type="delete"/>Delete</button>
</form>
</div>
</body> </body>
</html>
</html>

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -22,18 +23,11 @@
</style> </style>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script> <script src="https://js.hcaptcha.com/1/api.js" async defer></script>
</head> </head>
<body> <body>
<form <form action="/api/form" method="POST">
action="/api/form"
method="POST"
>
<div class="meta"> <div class="meta">
<input <input type="text" name="email" placeholder="Your email" required />
type="text"
name="email"
placeholder="Your email"
required
/>
<select id="commentType" name="commentType" required> <select id="commentType" name="commentType" required>
<option value="" selected disabled>Select a type of comment</option> <option value="" selected disabled>Select a type of comment</option>
<option value="Feedback">Feedback</option> <option value="Feedback">Feedback</option>
@ -42,16 +36,10 @@
<option value="Bug">Bug</option> <option value="Bug">Bug</option>
</select> </select>
</div> </div>
<textarea <textarea id="comment" name="message" rows="4" cols="25" required placeholder="Your message"></textarea>
id="comment"
name="message"
rows="4"
cols="25"
required
placeholder="Your message"
></textarea>
<div class="h-captcha" data-sitekey="{{.HCaptchaSiteKey}}"></div> <div class="h-captcha" data-sitekey="{{.HCaptchaSiteKey}}"></div>
<input type="submit" value="Submit" /> <input type="submit" value="Submit" />
</form> </form>
</body> </body>
</html> </html>

View File

@ -1,4 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -20,8 +21,10 @@
} }
</style> </style>
</head> </head>
<body> <body>
<h1>Welcome to Segfautils</h1> <h1>Welcome to Segfautils</h1>
<h3>Running at port {{.Port}} | <a href="https://github.com/ProjectSegfault/segfautils/" target="_blank">GitHub</a></h3> <h3>Running at port {{.Port}} | <a href="https://github.com/ProjectSegfault/segfautils/" target="_blank">GitHub</a>
<h3><a href="/form">Click here for an example form implementation</a></h3> </h3>
<h3><a href="/form">Click here for an example form implementation</a></h3>
</body> </body>