Commit graph

61 commits

Author SHA1 Message Date
Sung
e0c4cb1545
Use Apache 2.0 license (#708) 2025-10-31 23:41:21 -07:00
Sung
6314749263
Improve empty server sync when multiple clients exist (#706)
* Fix dbPath

* Require full sync when after another client uploads to an empty server

* Avoid orphan notes with empty sync
2025-10-26 17:54:24 -07:00
Sung
ae290a226f
Auto vacuum and manage connections (#705)
* Test concurrent sync

* Auto vacuum and manage connection
2025-10-26 16:59:53 -07:00
Sung
a46afb821f
Fix an edge case of repeated syncs due to orphaned note (#704)
* Split sync test

* Reproduce a bug

* Fix a bug

* Fix in a more correct way

* Add debug logs
2025-10-26 11:43:17 -07:00
Sung
f6a4c6344c
Remove public from CLI (#703)
* Remove public from CLI

* Write migration and test

* Use in-memory db for a test server

* Simplify CLI test db teardown

* Restructure packages to reduce duplication
2025-10-25 20:51:57 -07:00
Sung
b03ca999a5
Remove the unused encrypted and public fields (#700)
* Remove encrypted fields from notes and books

* Remove public from notes

* Use consistent flags
2025-10-19 18:32:20 -07:00
Sung
850f9cc6c9
Manage users with server CLI (#696) 2025-10-19 11:01:48 -07:00
Sung
03889a3d7e
Converge if using same book names while syncing (#694)
* Add healthcheck for Docker

* Prevent nil pointer if endpoint is wrong

* Converge if using same book names while syncing
2025-10-18 16:03:12 -07:00
Sung
c8238aa327
Handle errors (#693) 2025-10-12 16:17:01 -07:00
Sung
346bd9afb1
Add dbPath flag and update apiEndpoint flag (#692)
* Allow to specify CLI db path as a flag

* Make API endpoint flag per command and change case
2025-10-12 15:08:11 -07:00
Sung
24491bc68a
Allow to upload all data to an empty server (#690)
* Handle server switch

* Avoid losing data in case of race

* Simplify
2025-10-12 12:03:20 -07:00
Sung
e0f68fc8d8
Rate limit client (#689) 2025-10-11 16:14:20 -07:00
Sung
a62c7f9e93
Build cli v0.15.2 (#684) 2025-10-05 21:26:12 -07:00
Sung
61162e2add
Use SQLite on the server (#681)
* Use SQLite on server

* Remove pro

* Simplify

* Use flag

* Automate release
2025-10-05 17:02:30 -07:00
Sung
5928f9619f
Upgrade go and dependencies (#679) 2025-10-04 00:25:12 -07:00
Sung
b37820da1f
Remove Pro (#674) 2025-09-28 21:09:22 -07:00
Sung
8ffd44f362
Add 2025 (#673) 2025-08-08 22:31:20 -07:00
Sung
f1c0d0bc04
Upgrade color library (#660) 2024-02-03 10:29:28 +11:00
Sung
818ebcce69
Add 2024 (#656) 2024-01-28 11:50:22 +11:00
Sung
5eae1299f7
Allow to disable automatic upgrade check in CLI (#646) 2023-05-27 17:49:34 +10:00
Sung
17b4c7d6cf
Disable completion command (#637) 2023-03-10 21:05:18 +11:00
Sung
dd6f8c7f65
Upgrade dependencies (#630)
* Upgrade dependencies

* Fix broken test due to upstream behavior
2023-03-03 22:10:25 +11:00
Sung
b07858a3df
Increase the upgrade check interval to 8 weeks (#629) 2023-03-03 21:37:12 +11:00
Zach Nickel
ff0ae9ac29
Add note from stdin content (#616)
* add note from stdin content

* add tests and update help text
2023-02-10 21:34:23 +11:00
Sung
ee45144cd7
Add 2023 (#615) 2023-02-05 11:02:25 +11:00
Sung Won Cho
8e5c051437
Add 2022 (#600) 2022-05-10 20:19:04 +10:00
Sung Won Cho
5bba57fd29
Remove dependency on packr (#597)
* Embed files

* Build CLI

* Remove packr

* Embed view directory

* Embed static files

* Make view engine

* Populate build info
2022-05-09 20:34:23 +10:00
Sung Won Cho
9a054e9ff6
Fix build annotation (#578) 2022-02-12 09:11:44 +11:00
Sung Won Cho
504ba44852
Add 2021 (#574) 2021-12-08 22:26:15 +11:00
Sung Won Cho
a4640977b5
Allow to skip frontmatter when viewing note (#528) 2021-01-03 12:32:24 +11:00
Sung Won Cho
e9f3b080d5
Use XDG base directory (#527)
* Create platform specific directory definitions

* Fix CLI integration test

* Rename dirs to paths and get config path

* Namespace

* Fix initialization of dirs

* Simplify and change description

* Simplify

* Fix build flag

* Bump sqlite version

* Bump xgo
2021-01-03 12:11:22 +11:00
Sung Won Cho
5864e34bdd
Display helpful error if accidentally pointing to catchall handler (#455)
* Display helpful error if accidentally pointing to catchall handler

* Document change

* Fix logout

* Fix test
2020-04-25 18:48:44 +10:00
Sung Won Cho
ebe360d7ff
Dynamic hostname (#454)
* Display dynamic hostname for login

* Document change
2020-04-25 16:56:33 +10:00
Sung Won Cho
4b700f5e66
Fix upgrade url (#453) 2020-04-25 16:56:24 +10:00
Monomax Bot
96d3c50780
Upgrade dependencies (#450)
* Upgrade dependencies.

* Fix test

* Improve name

* Update doc

* Upgrade deps

* Fix lint

* Fix lint

Co-authored-by: Sung Won Cho <sung@monomax.sh>
2020-04-25 11:38:39 +10:00
Sung Won Cho
a9f052b19c
Remove repetition (#432)
* Remove repetition and digest

* Document change

* Fix test

* Fix test
2020-03-22 10:36:13 +11:00
Sung Won Cho
58a2b581aa
Allow to specify username and password as flags (#403)
* Allow to specify username and password as flags

* Format
2020-02-04 12:30:26 +10:00
Sung Won Cho
b92bff942b
Deprecate spaced repetition (#397)
* Change button style

* Require pro

* Update README

* Change wording

* Require sudo
2020-02-03 14:29:42 +10:00
Sung Won Cho
952e0e62f3
Update copyright notice for the new year (#382)
* Update script

* Update the year in the license
2020-01-07 11:59:40 +11:00
Sung Won Cho
3152ca770b
Alert when we stop learning (#375)
* Send password reset alert

* Send inactive reminder

* Send subscription confirmation email
2019-12-24 13:07:27 +07:00
Sung Won Cho
2124e28a9f
Use go module (#303)
* Migrate to gomodule

* Fix install

* Update makefile
2019-11-11 15:28:47 +08:00
Sung Won Cho
4a3fd2d1a7
Use Vagrant for easy development setup (#297)
* Use vagrant

* Stop using polling

* Fix test

* Document

* Fix
2019-11-03 20:04:17 -08:00
Sung Won Cho
5902585216
Allow to specify repetition rule (#280)
* Implement data model and basic UI for repetition rules

* Implement tooltip

* Allow to update and write test

* Stop processing the first repetition until having waited at least the frequency amount

* Set up email dev server reload

* Test pro only

* Allow to toggle repetition using token

* Remove unused

* Add last active

* Simplify nextActive calculation

* Create weekly digest repetition rules for existing users

* Fix style

* Fix link

* Create default repetition rule upon signup

* Get notes with thresholds

* Fix test

* Fix test
2019-10-28 00:34:59 -07:00
Sung Won Cho
1250825578
Include license notices (#255) 2019-09-30 11:55:11 +08:00
Sung Won Cho
2758923c34
Implement personal knowedge base version (#254)
* Allow to add and edit notes

* Implement search

* Implement settings

* Implement checkout page

* Implement paywall

* Fix inconsistent margin

* Render mobile menu

* Allow to logout

* emails

* Implement user migration

* Always build standalone

* Embed digest in email

* Move browser extension

* Fix test

* Use system font

* Add favicon and app icons

* Make tabbar smaller

* Initialize focus on editor

* Fix various UI audit issues

* Simplify asset serving

* Register sw

* Upgrade deps
2019-09-30 11:02:09 +08:00
Sung Won Cho
d71abdb150
Add debug log to HTTP request (#252) 2019-09-26 09:40:19 +08:00
Sung Won Cho
df4866b4d4
Allow to build for a specific platform (#250) 2019-09-11 23:45:06 +10:00
Sung Won Cho
a3ee4fbc21
Improve shell portability (#249) 2019-08-13 12:54:06 +10:00
Sung Won Cho
2c80340e19
Fix homebrew release (#242) 2019-08-01 11:42:43 +10:00
Sung Won Cho
4079dd4db9
Add vscode (#241) 2019-08-01 10:52:28 +10:00