update to quartzgun v0.2, add MIT license
This commit is contained in:
parent
4328b79c44
commit
99c7b9f095
5 changed files with 15 additions and 2 deletions
7
LICENSE
Normal file
7
LICENSE
Normal file
|
@ -0,0 +1,7 @@
|
|||
Copyright 2022 Derek Stevens <nilix@nilfm.cc>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -61,3 +61,7 @@ The `Adapter` interface and associated data types can be found in the [adapter.g
|
|||
- `SavePage(oldSlug, newSlug, title, content string) error`: given all the proper arguments, save a page to the backing store (eg filesystem, db)
|
||||
- `DeletePage(slug string) error`: given a slug, delete the corresponding page source and possibly its generated HTML, depending on the `Adapter`
|
||||
- `Build(buildOptions map[string][]string) BuildStatus`: takes a map of build option names to their values and builds the site, returning a `BuildStatus` object containing the success or failure as a boolean and the detailed status (eg, the console ouptut of the build process)
|
||||
|
||||
## license
|
||||
|
||||
`nirvash` is licensed under the [MIT license](./LICENSE).
|
2
go.mod
2
go.mod
|
@ -2,6 +2,6 @@ module nilfm.cc/git/nirvash
|
|||
|
||||
go 1.17
|
||||
|
||||
require nilfm.cc/git/quartzgun v0.1.2
|
||||
require nilfm.cc/git/quartzgun v0.2.0
|
||||
|
||||
require golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 // indirect
|
||||
|
|
2
go.sum
2
go.sum
|
@ -27,3 +27,5 @@ nilfm.cc/git/quartzgun v0.1.1 h1:swJg3im4YsD64MnfJHa2Bxm0adGT/ArAMHLAPeEjuS0=
|
|||
nilfm.cc/git/quartzgun v0.1.1/go.mod h1:/DDvt1DtzNuUf3HHaP29WMei/kkdaRW+ySmEzybvVto=
|
||||
nilfm.cc/git/quartzgun v0.1.2 h1:B0IN24Y1Bg2IVvKxXXVtTUNFdVL8h3k/r0+LFAyqtMI=
|
||||
nilfm.cc/git/quartzgun v0.1.2/go.mod h1:/DDvt1DtzNuUf3HHaP29WMei/kkdaRW+ySmEzybvVto=
|
||||
nilfm.cc/git/quartzgun v0.2.0 h1:JJjkCbRLaMmfGLe5GQHWhBkkY6Is0roTMyWC76VtBPI=
|
||||
nilfm.cc/git/quartzgun v0.2.0/go.mod h1:/DDvt1DtzNuUf3HHaP29WMei/kkdaRW+ySmEzybvVto=
|
||||
|
|
|
@ -48,7 +48,7 @@ func main() {
|
|||
rtr.Get("/login", renderer.Template(
|
||||
pathConcat(templateRoot, "login.html")))
|
||||
|
||||
rtr.Post("/login", Authorize("/", udb, "/login?tryagain=1"))
|
||||
rtr.Post("/login", Authorize("/", udb, "/login?tryagain=1", 84))
|
||||
|
||||
rtr.Get("/logout", Bunt("/", udb, "/login?tryagain=1"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue