Commit Graph

41 Commits

Author SHA1 Message Date
Valentin Brandl
c71925f61e
Add migration subcommand 2019-07-07 14:52:42 +02:00
Valentin Brandl
a239a3f80b
Calculate number of commits
The number of commits is shown in the overview page and returned in the
JSON response.

Closes #33
2019-07-07 13:30:17 +02:00
Valentin Brandl
ac8ba338bb
Don't reuse cache struct
Also we avoid converting from String into Cow<'a, str>'
2019-06-16 21:45:13 +02:00
Valentin Brandl
ce77854754
Implement JSON endpoint 2019-06-16 14:33:15 +02:00
Valentin Brandl
8d4de48c11
Calculate repo count on start and increment when a new repo is cloned
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-12 21:51:54 +02:00
Valentin Brandl
60dc242e5a
Add repo count to templates 2019-06-12 21:50:45 +02:00
Valentin Brandl
6438bbba82
Make code async 2019-05-19 13:56:11 +02:00
Valentin Brandl
2236cf8b53
Refactor into smaller modules and implement new logger 2019-05-14 01:12:13 +02:00
Valentin Brandl
0a58a75cd1
Serve favicon
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-13 21:58:07 +02:00
Valentin Brandl
791cb38a41
Implement generator and use custom result type 2019-05-04 15:45:25 +02:00
Valentin Brandl
7b45d72b97
Make worker threads configurable 2019-05-01 16:37:51 +02:00
Valentin Brandl
852a31315d
Start 4 worker threads 2019-05-01 16:21:36 +02:00
Valentin Brandl
8fc46ab7cc
Use all lowercase path names for storage and caching
`Microsoft/vscode` and `microsoft/vscode` point to the same directory
but the repo would have been cloned twice.
2019-04-30 16:45:29 +02:00
Valentin Brandl
f5a5560a62
Refactor to remove duplicate code and add some logs 2019-04-30 15:22:58 +02:00
Valentin Brandl
a0ea761dd8
Remove unused extern crate declatations 2019-04-30 14:39:55 +02:00
Valentin Brandl
6b68d291c8
Use prefixed numbers for badges 2019-04-30 14:20:33 +02:00
Valentin Brandl
bdf9d382d4
Use version info struct 2019-04-30 14:19:40 +02:00
Valentin Brandl
c81fc5478b
Implement improved overview page 2019-04-29 20:42:17 +02:00
Valentin Brandl
361b446f2a
Use new Service trait 2019-04-29 20:41:53 +02:00
Valentin Brandl
34e2942f5f
Also return HEAD when calculating HOC 2019-04-29 20:40:05 +02:00
Valentin Brandl
8d7f696dea
Make domain name configurable
The domain name can be set using the `--domain` or `-d` flags. It
defaults to `hitsofocode.com`.

Also the CLI options are now parsed inside a lazy_static context to be
available for the templates.
2019-04-23 22:50:51 +02:00
Valentin Brandl
33288efe82
Use templates and load version information 2019-04-23 18:21:03 +02:00
Valentin Brandl
2db66ee850
Check if repos exist before cloning 2019-04-21 20:45:36 +02:00
Valentin Brandl
f832e10fac
Add custom error pages 2019-04-21 17:57:57 +02:00
Valentin Brandl
d890288640
Remove color feature 2019-04-20 15:01:11 +02:00
Valentin Brandl
9284bceda6
Implement caching 2019-04-19 22:51:58 +02:00
Valentin Brandl
1a1a416990
Add badge colors and example endpoint 2019-04-19 16:02:04 +02:00
Valentin Brandl
bfbd0d5cb0
Move errors in own module 2019-04-19 16:01:47 +02:00
Valentin Brandl
660dfb46e1
Use bare repositories
This is a breaking change and all cached repositories must be deleted
2019-04-19 12:18:16 +02:00
Valentin Brandl
645bc887c2
Set more cache headers 2019-04-18 15:13:58 +02:00
Valentin Brandl
1f010074fa
Set expiry header to 60 seconds
Closes #9
2019-04-18 14:45:57 +02:00
Valentin Brandl
37242cced3
Implement redirecting overview page
Closes #7
2019-04-18 14:32:30 +02:00
Valentin Brandl
254351e391
Add tacit css 2019-04-17 20:48:47 +02:00
Valentin Brandl
bbb006fcf0
Set content-type header for index page 2019-04-17 16:16:50 +02:00
Valentin Brandl
c91c6b9793
Add content-type header 2019-04-16 22:18:40 +02:00
Valentin Brandl
c6e6a9b5fe
Implement streaming responses 2019-04-16 21:37:39 +02:00
Valentin Brandl
14b9b9fa44
Serve index page 2019-04-16 20:55:25 +02:00
Valentin Brandl
5944681086
Implement gitlab and bitbucket support 2019-04-16 19:52:12 +02:00
Valentin Brandl
d279895563
Only pull if not freshly cloned 2019-04-16 17:51:56 +02:00
Valentin Brandl
22a10de797
Fix paths 2019-04-16 17:33:27 +02:00
Valentin Brandl
8eddedab84
Initial commit 2019-04-16 16:57:06 +02:00