fiskfan1999 / wvlist Goto Github PK
View Code? Open in Web Editor NEWopen-source Werke Verzeichnis database with community submissions
Home Page: https://wvlist.net
License: MIT License
open-source Werke Verzeichnis database with community submissions
Home Page: https://wvlist.net
License: MIT License
Hi!
Thanks for the project!
I built it using go 1.17.6
from the current Git master branch, running it using ./wvlist run -c config.json
works, however upon trying to load the website it resets the connection and prints:
open current: no such file or directory
2022/02/25 03:50:42 http: panic serving 192.168.5.10:59860: runtime error: slice bounds out of range [:9] with length 0
goroutine 18 [running]:
net/http.(*conn).serve.func1()
/usr/lib64/go/1.17/src/net/http/server.go:1802 +0xb9
panic({0x74fa60, 0xc000206030})
/usr/lib64/go/1.17/src/runtime/panic.go:1047 +0x266
main.GetLinkToCommitInRepositry({0x0, 0x55})
/mnt/WD01/GitHub/wvlist/linkToRepo.go:28 +0x155
main.HomePage({0x800cd8, 0xc000228000}, 0xc00021c000)
/mnt/WD01/GitHub/wvlist/homePage.go:51 +0x207
net/http.HandlerFunc.ServeHTTP(0x0, {0x800cd8, 0xc000228000}, 0x0)
/usr/lib64/go/1.17/src/net/http/server.go:2047 +0x2f
net/http.(*ServeMux).ServeHTTP(0x0, {0x800cd8, 0xc000228000}, 0xc00021c000)
/usr/lib64/go/1.17/src/net/http/server.go:2425 +0x149
net/http.serverHandler.ServeHTTP({0xc000210090}, {0x800cd8, 0xc000228000}, 0xc00021c000)
/usr/lib64/go/1.17/src/net/http/server.go:2879 +0x43b
net/http.(*conn).serve(0xc000214000, {0x802140, 0xc00007d3e0})
/usr/lib64/go/1.17/src/net/http/server.go:1930 +0xb08
created by net/http.(*Server).Serve
/usr/lib64/go/1.17/src/net/http/server.go:3034 +0x4e8
Did I miss something, or is it not compatible yet? I think the project is quite new - apologies I am too early!
Best,
Georg
Here is my working prototype for which flags to use. Especially wondering if anyone has any recommendations for the defaults
-p
plaintext port, set to 0 if disabled (default 6060 or some arbitrary port)-t
TLS port, set to 0 if disabled (default 0)*-d
Debug mode, listen and serve TLS muxer on plaintext (this allows the operator console to be used in plaintext while testing, should not be run in prod) (default false)-k
Key, path to fullchain.pem file (/etc/letsencrypt/live/wvlist.net/fullchain.pem) (default "")-s
Secret, path to private key file (same) (default "")-c
Config, path to config file (default ./config.json)* consider that http.ListenAndServeTLS
would panic if it is run with invalid paths (which is also the default).
I'm pretty sure this does not actually need to be in the WVEntry struct, commenting it out doesn't raise any concerns from the compiler.
Maybe it breaks some template that I didn't see.
Planned addition api features. Until these trample on already-existing api endpoints these can be added to /api/v1/
/view/id
)Refer to the following example.
Can confirm at the following link, lilypond sandbox
The lyrics text is very large and makes the incipits unnecessarily large in size. Preferably the text should be very small, such as the following example, in which it is not a lyric but a bit of text added as markup:
hint: The change should be something in the lilypond template file, found here
Line 135 in 2d270fa
just a reminder for when i work on this tomorrow
We should start a draft for how to handle splitting up really long pages. Even a moderately-sized page, such as this page can take a long time to load, especially over tor.
Here is my original suggestion:
/view/3402959793
), it will default to showing the first page of a paginated list. This will look identical to how the page looks currently, but will only show the first 50 (?) entries.something such as log.Print or something similar, or removed entirely.
One of the biggest hurdles here is that a large part of the daemon's function is reading files in the directory, in special directories like ./current, ./submissions, etc.
So I will probably figure out a way to move any files in those directories to somewhere else temporarily, put some files in there that I know and know how the daemon is supposed to react to, and then move the other files back afterwards. Or I might add more parameters so that some functions can read from a different directory instead of the hard-coded defaults.
These unit tests will probably be committed to master branch arbitrarily, and not as part of any number updates, because they are not supposed to change the behavior or even fix any bugs.
My plan is to have a global variable for all config parameters, a struct that will be fed with a .json
file
Currently it removes the "edit page" button but it is still possible to make an edit and submit it by writing the appropriate url into the browser.
Line 442 in 3f4e29a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.