Commit Graph

84 Commits

Author SHA1 Message Date
Aluísio Augusto Silva Gonçalves
f81a5308ae frontend: make domain optional
Making the domain optional allows usage of bare hostnames for
the servers (e.g. when they're statically configured) and even
IP addresses if someone is so inclined (although presentation
might suffer in this case).
2021-03-31 16:44:44 -03:00
Lan Tian
5b5a09ccbd frontend: clamp telegram api response to 4096 chars 2021-03-31 22:43:46 +08:00
Lan Tian
dc4d7e6532 general: update makefiles for project 2021-03-15 00:49:13 +08:00
Lan Tian
4413f1032f general: try to fix multiarch build 2021-03-06 21:21:42 +08:00
Lan Tian
f6ddc5761b frontend: remove unnecessary URL escapes 2021-02-27 15:24:21 +08:00
Lan Tian
6cc0c617b4 frontend: add API for server list 2021-01-17 16:16:41 +08:00
Lan Tian
e2cc580da3 frontend: add CORS header to API 2021-01-17 12:45:20 +08:00
Lan Tian
da2c3d9aed frontend: add API 2021-01-17 12:35:29 +08:00
Lan Tian
a984095282 frontend: add tests against XSS 2021-01-17 02:21:23 +08:00
Lan Tian
1baf325149 frontend: move redirect logic to HTML 2021-01-17 01:33:14 +08:00
Lan Tian
72946e1113 frontend: filter output to prevent XSS 2021-01-17 01:14:49 +08:00
Simon Marsh
f4b6955343 Add utility functions for filtering results and rename templates 2021-01-12 10:21:03 +00:00
Simon Marsh
78ce724171 Fix bindata build step and parameterize docker build 2021-01-12 10:21:02 +00:00
Simon Marsh
6179c688be - Use bindata to package static file content in to the frontend binary
- Add golang templates to move HTML rendering out of the go code where possible
- Add an endpoint for serving static files
- Add URL escaping for servers and targets
2021-01-11 15:00:05 +00:00
Lan Tian
8d0e210572 Fix #7 2021-01-11 22:24:15 +08:00
Lan Tian
5000ad1bbf general: add s390x & ppc64le 2020-11-07 20:24:37 +08:00
Lan Tian
9e77de6b46 frontend: scratch-based docker image 2020-11-07 20:06:07 +08:00
Lan Tian
3bcfc3d36c Remove BIRDv1 support 2020-10-30 23:10:03 +08:00
Lan Tian
0216365551 frontend: improve robustness handling errors 2020-10-27 22:59:11 +08:00
Arnie97
7f5ea89a14 fix navbar for mobile devices 2020-08-16 21:20:23 +08:00
Lan Tian
437587b90a frontend: disallow search engine crawling 2020-08-15 20:26:16 +08:00
Arnie97
2a928f71ae fix: show fractions of a second in the correct column 2020-08-02 14:49:38 +08:00
Arnie97
7b1dc6718d frontend: support rebranding 2020-08-02 14:49:10 +08:00
Arnie97
6e4bbd6410 frontend: replace non-standard xhtml mix with html5 2020-08-02 14:48:58 +08:00
Arnie97
20b1233ec8 frontend: apply go fmt 2020-08-02 14:48:47 +08:00
Lan Tian
862e2aca7a frontend: fix telegram bot responding to non-commands 2020-07-10 20:56:37 +08:00
Lan Tian
9fc5076681 frontend: fix empty result bug 2020-07-10 00:12:02 +08:00
Lan Tian
c617ae4e0a frontend: for DN42, filter more weird whois prefixes 2020-07-10 00:10:36 +08:00
Lan Tian
f2fbfed412 frontend: for DN42 also filter whois lines beginning with space 2020-07-10 00:03:19 +08:00
Lan Tian
fc098c7d50 frontend: improve empty result handling 2020-06-29 15:04:32 +08:00
Lan Tian
47d7168718 frontend: fix empty response handling 2020-06-29 13:50:56 +08:00
Lan Tian
721b3f6cc7 frontend: cleanup telegram replies 2020-06-29 13:44:48 +08:00
YumiLee
bed9fefef2 修复AS跳转到whois时的bug 2020-06-21 00:55:00 +08:00
Lan Tian
c42dfc80b8 frontend: add git to docker image for go get 2020-06-01 23:20:29 +08:00
Lan Tian
0e647d9980 frontend: tell go to download external libs 2020-06-01 23:17:48 +08:00
Lan Tian
18d2d5ba6c frontend: generic query types 2020-06-01 23:08:41 +08:00
Lan Tian
93f03bfe4e frontend: add request logging 2020-06-01 23:05:08 +08:00
Lan Tian
df425a07c6 frontend: use regexp to parse summary table 2020-06-01 23:02:28 +08:00
Lan Tian
877afa24fd frontend: merge regexp from iedon/Birdlg-Go 2020-06-01 22:24:34 +08:00
Lan Tian
0b5e28851c frontend: fix small errors (iedon/Birdlg-Go 0b904fd) 2020-06-01 22:20:31 +08:00
Lan Tian
3fe3def49f frontend: use template for rendering (partial) 2020-06-01 22:17:25 +08:00
Lan Tian
4df9006c81 Remove extra spaces in commands 2020-05-17 22:11:34 +08:00
Lan Tian
b83c12224f Sort summary table 2020-05-12 01:33:14 +08:00
Lan Tian
d413de8563 frontend: handle confederation brackets in smartWriter 2020-05-04 12:46:21 +08:00
Lan Tian
fe42879d20 frontend: remove brackets from ASN (caused by confederation) 2020-05-04 12:42:18 +08:00
Lan Tian
c262ee3bdf Specifically add AS to ASN queries 2020-04-10 12:42:52 +08:00
Lan Tian
b974646749 Fix int overflow 2020-04-10 12:38:33 +08:00
Lan Tian
43f087e51b Improve DN42 related whois handling 2020-04-10 12:33:56 +08:00
Lan Tian
cc121c8b49 Disable telegram response logging 2020-04-10 00:22:26 +08:00
Lan Tian
c9f48686da Display sent telegram commands 2020-04-10 00:14:04 +08:00