shiori/internal/cmd
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
..
add.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
check.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
delete.go Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
export.go feat: store created and modified time separately on database for bookmarks (#896) 2024-06-26 20:17:51 +02:00
import.go feat: store created and modified time separately on database for bookmarks (#896) 2024-06-26 20:17:51 +02:00
open.go Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
pocket.go feat: store created and modified time separately on database for bookmarks (#896) 2024-06-26 20:17:51 +02:00
print.go Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
root.go feat: new migrations system (#876) 2024-04-27 07:46:36 +02:00
serve.go fix: fix problems that may be raised from a 1.5.5 upgrade (#837) 2024-02-08 09:26:33 +01:00
server.go fix: override configuration from flags only if set (#865) 2024-03-30 08:33:05 +01:00
server_test.go fix: override configuration from flags only if set (#865) 2024-03-30 08:33:05 +01:00
update.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
utils.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
utils_test.go Initial unit test.. 2019-09-23 15:55:17 +07:00
version.go Show version in login page (#652) 2023-07-21 09:25:19 +02:00