shiori/internal/model
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
..
account.go feat: allow selecting light/dark/follow themes in the webui (#924) 2024-06-06 10:44:43 +02:00
bookmark.go feat: store created and modified time separately on database for bookmarks (#896) 2024-06-26 20:17:51 +02:00
const.go fix: data dir permissions having execute for all (#493) 2022-10-09 18:50:42 +02:00
db.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
domains.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
errors.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
http.go Start working on new REST API. Refactor logic in domains. (#497) 2023-07-17 14:30:18 +01:00
legacy.go Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
main.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
tag.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00