Compare commits

..

4 Commits

Author SHA1 Message Date
Thomas Miceli
864880b442 v1.0.1 2023-04-12 13:34:22 +02:00
Thomas Miceli
51dadcecef Change redirections when not logged in 2023-04-12 13:30:51 +02:00
Thomas Miceli
ab59d7956a Updated base footer 2023-04-12 13:25:41 +02:00
Thomas Miceli
8e481d70f0 Update README.md 2023-04-12 12:50:47 +02:00
6 changed files with 17 additions and 11 deletions

9
CHANGELOG.md Normal file
View File

@@ -0,0 +1,9 @@
# Changelog
## [1.0.1](https://github.com/thomiceli/opengist/compare/v1.0.0...v1.0.1) - [2023-04-12]
### Changed
- Updated base footer
- Changed redirections when not logged in
## 1.0.0 - [2023-04-10]
- Initial release

View File

@@ -55,7 +55,7 @@ docker pull ghcr.io/thomiceli/opengist:1
It can be used in a `docker-compose.yml` file :
1. Create a `docker-compose.yml` file with the following content
2. Run `docker-compose up -d`
2. Run `docker compose up -d`
3. Opengist is now running on port 6157, you can browse http://localhost:6157
```yml

View File

@@ -11,7 +11,7 @@ import (
"strings"
)
var OpengistVersion = "1.0.0"
var OpengistVersion = "1.0.1"
var C *config

View File

@@ -300,7 +300,7 @@ func logged(next echo.HandlerFunc) echo.HandlerFunc {
if user != nil {
return next(ctx)
}
return redirect(ctx, "/all")
return redirect(ctx, "/login")
}
}

View File

@@ -1,12 +1,9 @@
{{ define "footer" }}
<p class="text-slate-400 py-8 [&>*]:mx-1.5 flex">
<span>
<a target="_blank" style="margin-left: 0 !important;" class="text-gray-500 hover:text-white font-bold inline-flex" href="https://github.com/thomiceli/opengist">
<span class="mr-1">Opengist</span>
<svg width="24" height="24" fill="currentColor">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.463 2 11.97c0 4.404 2.865 8.14 6.839 9.458.5.092.682-.216.682-.48 0-.236-.008-.864-.013-1.695-2.782.602-3.369-1.337-3.369-1.337-.454-1.151-1.11-1.458-1.11-1.458-.908-.618.069-.606.069-.606 1.003.07 1.531 1.027 1.531 1.027.892 1.524 2.341 1.084 2.91.828.092-.643.35-1.083.636-1.332-2.22-.251-4.555-1.107-4.555-4.927 0-1.088.39-1.979 1.029-2.675-.103-.252-.446-1.266.098-2.638 0 0 .84-.268 2.75 1.022A9.606 9.606 0 0112 6.82c.85.004 1.705.114 2.504.336 1.909-1.29 2.747-1.022 2.747-1.022.546 1.372.202 2.386.1 2.638.64.696 1.028 1.587 1.028 2.675 0 3.83-2.339 4.673-4.566 4.92.359.307.678.915.678 1.846 0 1.332-.012 2.407-.012 2.734 0 .267.18.577.688.48C19.137 20.107 22 16.373 22 11.969 22 6.463 17.522 2 12 2z"></path>
</svg>
</a>
<a target="_blank" style="margin-left: 0 !important;" class="text-gray-500 hover:text-white inline-flex" href="https://github.com/thomiceli/opengist">
<span class="mr-1">Source</span>
</a>
</span>
<span class="text-gray-500">Load: <span class="font-bold">{{ loadedTime .loadStartTime }}</span></span>

View File

@@ -43,8 +43,8 @@
<div class="hidden sm:block sm:ml-6">
<div class="flex space-x-4">
<a href="/all" class="text-slate-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium" aria-current="page">All</a>
<a href="/" class="text-slate-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">New</a>
{{ if .userLogged }}
<a href="/" class="text-slate-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">New</a>
<a href="/{{ .userLogged.Username }}" class="text-slate-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">My gists</a>
{{ end }}
</div>
@@ -85,8 +85,8 @@
<div class="sm:hidden hidden" id="mobile-menu">
<div class="px-2 pt-2 pb-3 space-y-1">
<a href="/all" class="bg-gray-900 text-white block px-3 py-2 rounded-md text-base font-medium" aria-current="page">All</a>
<a href="/" class="text-slate-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">New</a>
{{ if .userLogged }}
<a href="/" class="text-slate-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">New</a>
<a href="/{{ .userLogged.Username }}" class="text-slate-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">My gists</a>
<a href="/settings" class="text-slate-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Settings</a>