Web-based portfolio frontend for Gitea https://code.ivysaur.me/teafolio
Go to file
mappu 90cd2b6440 api: remove oldestCommit support
For codesite-migrated repositories, looking at the oldest commit is
preferable to determine the "create date". But for forked projects,
looking at the oldest commit is incorrect for when we started the project
If inferring the real create date has to be manual, then let's rely on
the Gitea metadata - it's faster and can be modified by hand if needed
2020-11-19 12:06:57 +13:00
doc doc: add screenshot 2020-05-02 14:25:38 +12:00
static css: fix page reflow flash when loading shield badges 2020-05-24 18:40:43 +12:00
.gitignore initial commit 2020-05-02 14:16:49 +12:00
Dockerfile initial commit 2020-05-02 14:16:49 +12:00
README.md doc/changelog: v1.1.1 2020-11-08 13:27:07 +13:00
api.go api: remove oldestCommit support 2020-11-19 12:06:57 +13:00
config.toml.sample support semaphore limiting + context-cancellation of Gitea API requests 2020-05-24 18:39:24 +12:00
go.mod support semaphore limiting + context-cancellation of Gitea API requests 2020-05-24 18:39:24 +12:00
go.sum support semaphore limiting + context-cancellation of Gitea API requests 2020-05-24 18:39:24 +12:00
main.go implement homepage caching with periodic refresh 2020-11-19 11:57:17 +13:00
pages.go api: remove oldestCommit support 2020-11-19 12:06:57 +13:00
router.go app: split router, templates into separate files 2020-11-19 11:24:10 +13:00
sync.go api: remove oldestCommit support 2020-11-19 12:06:57 +13:00

README.md

teafolio

Teafolio is a web-based portfolio frontend for a Gitea server.

Compared to the earlier codesite project, the repository list and detailed information is loaded live from a Gitea server.

Written in Go

Usage

  1. Compile the binary: go build
  2. Modify the sample config.toml file to point to your Gitea instance
    • teafolio will look for config.toml in the current directory, or, you can supply a custom path with -ConfigFile
  3. Deploy binary + static/ directory to webserver

Production (Docker)

docker build -t teafolio:latest .
docker run --restart=always -d -p 5656:5656 -v $(pwd)/config.toml:/app/config.toml teafolio:latest

Production (Dokku)

By default, Dokku will proxy HTTP on port 5000.

dokku apps:create teafolio
dokku storage:mount teafolio /srv/teafolio-dokku/config.toml:/app/config.toml

CHANGELOG

2020-11-08 v1.1.1

  • Fix an issue with newer versions of Gitea that paginate repoistory list responses
  • Fix an issue with blocking semaphores for a cancelled network request

2020-05-24 v1.1.0

  • Support limiting the number of concurrent API requests to Gitea
  • Display total number of projects
  • Fix cosmetic issues with page background image, page height, and margins around thumbnails

2020-05-24 v1.0.1

  • Remove image dependency from static files
  • Fix a cosmetic issue with h2/h3 margins

2020-05-05 v1.0.0

  • Initial release