update deps

This commit is contained in:
2026-04-21 07:01:39 +02:00
parent 264669c681
commit d0923ef4ed
3 changed files with 59 additions and 26 deletions
+3 -3
View File
@@ -3,15 +3,15 @@ module github.com/skidoodle/pastebin
go 1.26.2 go 1.26.2
require ( require (
github.com/stretchr/testify v1.10.0 github.com/stretchr/testify v1.11.1
go.etcd.io/bbolt v1.4.3 go.etcd.io/bbolt v1.4.3
) )
require ( require (
github.com/davecgh/go-spew v1.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect github.com/stretchr/objx v0.5.3 // indirect
golang.org/x/sync v0.16.0 // indirect golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.43.0 // indirect golang.org/x/sys v0.43.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
+6
View File
@@ -4,12 +4,18 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/objx v0.5.3 h1:jmXUvGomnU1o3W/V5h2VEradbpJDwGrzugQQvL0POH4=
github.com/stretchr/objx v0.5.3/go.mod h1:rDQraq+vQZU7Fde9LOZLr8Tax6zZvy4kuNKF+QYS+U0=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
go.etcd.io/bbolt v1.4.3 h1:dEadXpI6G79deX5prL3QRNP6JB8UxVkqo4UPnHaNXJo= go.etcd.io/bbolt v1.4.3 h1:dEadXpI6G79deX5prL3QRNP6JB8UxVkqo4UPnHaNXJo=
go.etcd.io/bbolt v1.4.3/go.mod h1:tKQlpPaYCVFctUIgFKFnAlvbmB3tpy1vkTnDWohtc0E= go.etcd.io/bbolt v1.4.3/go.mod h1:tKQlpPaYCVFctUIgFKFnAlvbmB3tpy1vkTnDWohtc0E=
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI= golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI=
golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+49 -22
View File
@@ -1,5 +1,4 @@
:root { :root {
/* Unix/Terminal Aesthetic Palette */
--bg: #0d1117; --bg: #0d1117;
--text: #c9d1d9; --text: #c9d1d9;
--text-dim: #8b949e; --text-dim: #8b949e;
@@ -9,7 +8,7 @@
--secondary: #21262d; --secondary: #21262d;
--secondary-hover: #30363d; --secondary-hover: #30363d;
--accent: #58a6ff; --accent: #58a6ff;
--highlight: rgba(241, 250, 140, 0.1); /* Subtle Dracula Yellow */ --highlight: rgba(241, 250, 140, 0.1);
--margin: 1rem; --margin: 1rem;
--line-height: 1.5; --line-height: 1.5;
@@ -22,7 +21,8 @@
padding: 0; padding: 0;
} }
html, body { html,
body {
height: 100%; height: 100%;
width: 100%; width: 100%;
font-family: var(--font-mono); font-family: var(--font-mono);
@@ -60,7 +60,9 @@ body {
letter-spacing: -0.02em; letter-spacing: -0.02em;
} }
.nav-left .title:hover { color: var(--text); } .nav-left .title:hover {
color: var(--text);
}
.source-link { .source-link {
font-size: 0.75rem !important; font-size: 0.75rem !important;
@@ -89,8 +91,15 @@ body {
transition: all 0.1s ease; transition: all 0.1s ease;
} }
.primary { background-color: var(--primary); color: #ffffff; } .primary {
.secondary { background-color: var(--secondary); color: var(--text); } background-color: var(--primary);
color: #ffffff;
}
.secondary {
background-color: var(--secondary);
color: var(--text);
}
#metadata { #metadata {
display: flex; display: flex;
@@ -139,7 +148,8 @@ textarea {
overflow: auto; overflow: auto;
} }
pre, code { pre,
code {
background: transparent !important; background: transparent !important;
padding: 0 !important; padding: 0 !important;
margin: 0 !important; margin: 0 !important;
@@ -157,7 +167,6 @@ code.with-line-numbers {
grid-template-columns: calc(var(--digits, 1) * 1ch + 2rem) minmax(0, 1fr); grid-template-columns: calc(var(--digits, 1) * 1ch + 2rem) minmax(0, 1fr);
width: 100%; width: 100%;
min-height: calc(1em * var(--line-height)); min-height: calc(1em * var(--line-height));
/* Breathing room when targeting a line */
scroll-margin-top: 2rem; scroll-margin-top: 2rem;
} }
@@ -186,27 +195,34 @@ code.with-line-numbers {
word-break: break-all; word-break: break-all;
} }
/*
Line Highlight via URL Hash (#L315)
*/
.line:target { .line:target {
background-color: var(--highlight); background-color: var(--highlight);
} }
.line:target .line-number { .line:target .line-number {
opacity: 1; opacity: 1;
color: #f1fa8c; /* Dracula Yellow */ color: #f1fa8c;
border-right-color: #f1fa8c; border-right-color: #f1fa8c;
border-right-width: 2px; border-right-width: 2px;
} }
/* Selection */ ::selection {
::selection { background: rgba(59, 130, 246, 0.4); color: #ffffff; } background: rgba(59, 130, 246, 0.4);
color: #ffffff;
}
/* Scrollbar */ ::-webkit-scrollbar {
::-webkit-scrollbar { width: 6px; height: 6px; } width: 6px;
::-webkit-scrollbar-track { background: transparent; } height: 6px;
::-webkit-scrollbar-thumb { background: var(--secondary); } }
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--secondary);
}
.sr-only { .sr-only {
position: absolute; position: absolute;
@@ -221,8 +237,19 @@ code.with-line-numbers {
} }
@media (max-width: 640px) { @media (max-width: 640px) {
#metadata { display: none; } #metadata {
.line { grid-template-columns: 1fr; } display: none;
.line-number { display: none; } }
.line-code { padding-left: 0; }
.line {
grid-template-columns: 1fr;
}
.line-number {
display: none;
}
.line-code {
padding-left: 0;
}
} }