shiori/internal/webserver
Monirzadeh 4a5564d60b
feat: store created and modified time separately on database for bookmarks (#896)
* sqlite migrate script

* create time just when bookmark added and modified update if change happen

* show added and modified time in footer instead of header

* add bun.lockb that missing

* add migrate for postgres

* add pg support of created time

* change modifed to modifed_at and create to created_at in sqlite

* change modifed to modifed_at and create to created_at in postgre

* add created_at to mariadb

* fix migration file names

* better variable name and more clear code for add modified time if created and modified is not in same day

* add unittest

* add unittest to sure filters work as expected

* index for created_at and modified_at

* build new styles.css

* update swagger documents

* make styles

* change Created and Modified to CreatedAt and ModifiedAt

* fix missing Modified

* fix typo

* missing Modified

* fix typo

* make swagger

* run tests parallel

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>

* remove t.Parallel()

* remove dayjs dependency and combine two function

* better unittest name

* fix typo

* diffrnt footer style for login and content page

* use class instead of id

* back parallel

* change duplicate url

* remvoe run Parallel

* make styles

---------

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
2024-06-26 20:17:51 +02:00
..
assets-dev.go Initial new web interfaces 2019-05-27 17:01:53 +07:00
assets-prod.go replace assets generation with embed (#423) 2022-05-26 19:36:23 +02:00
handler-api-ext.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
handler-api.go feat: store created and modified time separately on database for bookmarks (#896) 2024-06-26 20:17:51 +02:00
handler.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
server.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
utils.go Fixed lint errors after refactor (#806) 2023-12-28 18:37:19 +01:00
utils_ip.go fix(log): record user real ip from headers (#603) 2023-06-11 21:25:23 +02:00
utils_ip_test.go fix(log): record user real ip from headers (#603) 2023-06-11 21:25:23 +02:00