blinkies
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Lizzy Hunt 2024-03-27 15:38:53 -06:00
parent 97efd2a374
commit dd7bb4cfde
No known key found for this signature in database
GPG Key ID: E835BD4B08CCAF96
10 changed files with 41 additions and 9 deletions

View File

@ -111,7 +111,7 @@ func MakeServer(argv *args.Arguments, dbConn *sql.DB) *http.Server {
mux.HandleFunc("GET /{name}", func(w http.ResponseWriter, r *http.Request) { mux.HandleFunc("GET /{name}", func(w http.ResponseWriter, r *http.Request) {
requestContext := makeRequestContext() requestContext := makeRequestContext()
name := r.PathValue("name") name := r.PathValue("name")
LogRequestContinuation(requestContext, r, w)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) LogRequestContinuation(requestContext, r, w)(VerifySessionContinuation, FailurePassingContinuation)(IdContinuation, IdContinuation)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation)
}) })
return &http.Server{ return &http.Server{

View File

@ -29,8 +29,8 @@ func GetArgs() (*Arguments, error) {
databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database") databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database")
templatePath := flag.String("template-path", "./templates", "Path to the template directory") templatePath := flag.String("template-path", "./templates", "Path to the template directory")
staticPath := flag.String("static-path", "./static", "Path to the static directory") staticPath := flag.String("static-path", "./static", "Path to the static directory")
scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron")
scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron")
server := flag.Bool("server", false, "Run the server") server := flag.Bool("server", false, "Run the server")
migrate := flag.Bool("migrate", false, "Run the migrations") migrate := flag.Bool("migrate", false, "Run the migrations")

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -19,11 +19,21 @@
</head> </head>
<body> <body>
<div id="content" class="container"> <div id="content" class="container">
<div class="header"> <div>
<h1>hatecomputers.club</h1> <h1>hatecomputers.club</h1>
<a href="javascript:void(0);" id="theme-switcher"></a> <a href="javascript:void(0);" id="theme-switcher">light mode.</a>
<span> | </span>
<a href="/">home.</a>
<span> | </span>
<a href="/">about.</a>
<span> | </span>
<a href="/">guestbook.</a>
<span> | </span>
<a href="/">webring.</a>
<span> | </span> <span> | </span>
{{ if .User }} {{ if .User }}
<a href="/dns">dns.</a>
<span> | </span>
<a href="/logout">logout, {{ .User.DisplayName }}.</a> <a href="/logout">logout, {{ .User.DisplayName }}.</a>
{{ else }} {{ else }}
<a href="/login">login.</a> <a href="/login">login.</a>
@ -34,7 +44,29 @@
<div id="content"> <div id="content">
{{ template "content" . }} {{ template "content" . }}
</div> </div>
<p class="blinky">hi</p>
<hr>
<div class="footer">
<div>
<img width="150" height="20" src="/static/img/blinkies/hatecomputers-club.gif">
<img width="150" height="20" src="/static/img/blinkies/loveuguys.gif">
<img width="150" height="20" src="/static/img/blinkies/autism.gif">
<img width="150" height="20" src="/static/img/blinkies/fuckcomputers.gif">
<img width="150" height="20" src="/static/img/blinkies/connection.gif">
</div>
{{ if .User }}
<a href="https://git.hatecomputers.club/{{ .User.Username }}">git</a>
{{ else }}
<a href="https://git.hatecomputers.club">git.</a>
{{ end }}
<span> | </span>
<a href="https://mail.hatecomputers.club">e-mail.</a>
<span> | </span>
<a href="https://auth.hatecomputers.club">sso.</a>
</div>
</div> </div>
<script data-main="/static/js/script.js" src="/static/js/require.js"></script> <script data-main="/static/js/script.js" src="/static/js/require.js"></script>

View File

@ -1,3 +1,3 @@
{{ define "content" }} {{ define "content" }}
<p class="blinky">under construction!</p>
{{ end }} {{ end }}