reports!!!! and PoW!!!!!!!
this has taken quite a while (8 ish hours) but reports and proof of work challenges are completely implemented the proof of work challenges are bit iffy and could be gpu accelerated which is bad, so i plan to eventually switch to something memory hard like argon2id references used for pow: https://dev.to/ratmd/simple-proof-of-work-in-javascript-3kgm https://anubis.techaro.lol/docs/design/how-anubis-works https://anubis.techaro.lol/docs/design/why-proof-of-work as well as some other posts or repos found when searching
This commit is contained in:
+84
-5
@@ -20,7 +20,7 @@ body {
|
||||
margin: 0;
|
||||
font-family: Consolas, monospace;
|
||||
font-size: 14px;
|
||||
background-image:var(--qt-url);
|
||||
background-image: var(--qt-url);
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom right;
|
||||
background-size: auto 256px;
|
||||
@@ -28,7 +28,7 @@ body {
|
||||
}
|
||||
|
||||
b {
|
||||
font-weight: bold;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1,
|
||||
@@ -38,7 +38,7 @@ h2 {
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 6px 0;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@@ -79,6 +79,27 @@ textarea {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
textarea:focus {
|
||||
border-color: var(--border-strong);
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
background: var(--bg);
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid var(--border);
|
||||
font: inherit;
|
||||
padding: 12px;
|
||||
outline: none;
|
||||
color: var(--text);
|
||||
margin-top: 6px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
input[type="text"]:focus {
|
||||
border-color: var(--border-strong);
|
||||
}
|
||||
|
||||
.upload-tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -177,6 +198,12 @@ option {
|
||||
background-color: var(--text-muted);
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
background-color: var(--surface);
|
||||
color: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.link-btn {
|
||||
border: none;
|
||||
background: none;
|
||||
@@ -244,8 +271,9 @@ body.dragging::after {
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: var(--surface-between);
|
||||
padding-inline: 4px;
|
||||
background-color: var(--surface-between);
|
||||
padding-inline: 3px;
|
||||
border: 1px solid var(--surface-hover);
|
||||
}
|
||||
|
||||
.submit-container {
|
||||
@@ -253,4 +281,55 @@ code {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.noscript {
|
||||
border: var(--border-strong);
|
||||
background-color: var(--surface-between);
|
||||
width: 100%;
|
||||
display: block;
|
||||
font-size: larger;
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.full-dropdown {
|
||||
background: var(--bg);
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid var(--border);
|
||||
font: inherit;
|
||||
padding: 12px;
|
||||
outline: none;
|
||||
color: var(--text);
|
||||
margin-top: 6px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.loading {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.loading::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 200%;
|
||||
background: repeating-linear-gradient(
|
||||
45deg,
|
||||
var(--surface-hover) 0 25%,
|
||||
transparent 25% 50%
|
||||
);
|
||||
background-size: 1em 1em;
|
||||
animation: barStripe 1s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@keyframes barStripe {
|
||||
to {
|
||||
transform: translateX(-1em);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user