diff --git a/.vscode/settings.json b/.vscode/settings.json index e7f25f883..67e7943f2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -54,13 +54,25 @@ "rule": "unused-imports/no-unused-imports", "severity": "off" }, - { "rule": "@typescript-eslint/require-await", "severity": "info" }, - { "rule": "@typescript-eslint/await-thenable", "severity": "info" }, - { "rule": "@typescript-eslint/no-floating-promises", "severity": "info" }, - { "rule": "@typescript-eslint/no-misused-promises", "severity": "info" } + { + "rule": "@typescript-eslint/require-await", + "severity": "info" + }, + { + "rule": "@typescript-eslint/await-thenable", + "severity": "info" + }, + { + "rule": "@typescript-eslint/no-floating-promises", + "severity": "info" + }, + { + "rule": "@typescript-eslint/no-misused-promises", + "severity": "info" + } ], "cSpell.words": ["Hydable", "rsshub", "Русский"], - "editor.foldingImportsByDefault": true, + // "editor.foldingImportsByDefault": true, "commentTranslate.hover.enabled": false, "typescript.tsdk": "node_modules/typescript/lib", "i18n-ally.enabledFrameworks": ["i18next"], diff --git a/CHANGELOG.md b/CHANGELOG.md index e6effccd3..641564817 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -# [0.1.0-beta.0](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.21...v0.1.0-beta.0) (2024-10-23) +## [0.1.1-beta.0](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.21...v0.1.1-beta.0) (2024-10-25) ### Bug Fixes @@ -76,6 +76,7 @@ * avoid image cls in entry content ([#666](https://github.com/RSSNext/follow/issues/666)) ([ccda887](https://github.com/RSSNext/follow/commit/ccda8875e93a52131307e69956c2d58fa5481e46)) * blurhash covers the image ([98d3715](https://github.com/RSSNext/follow/commit/98d3715cbd45938b2e0558a25afbb01ba265ad91)), closes [#959](https://github.com/RSSNext/follow/issues/959) * blurhash size ([fc469ab](https://github.com/RSSNext/follow/commit/fc469ab4f5f15e9aa53cfad1920180af79b64836)) +* boost modal and reward desc behavior ([8212d06](https://github.com/RSSNext/follow/commit/8212d0699db1cbf8dd40fec1c309a834f56014d9)) * boost modal use async modal ([0c1215d](https://github.com/RSSNext/follow/commit/0c1215dbf0a3e50ecb295e60e305c857c4538255)) * border color in dark mode ([472fbb2](https://github.com/RSSNext/follow/commit/472fbb2a6b41d9953bbfbda5452558621f71c8d5)) * **build:** ensure needed node_module is copied in dist ([5e4226a](https://github.com/RSSNext/follow/commit/5e4226ab176428205265d0ca69350c80c2263015)) @@ -121,6 +122,7 @@ * config `__dirname` resolve ([f3f3cac](https://github.com/RSSNext/follow/commit/f3f3cac2b4ff0865f863b848397f0e27caa435b3)) * context menu item title should use title case ([f11eb19](https://github.com/RSSNext/follow/commit/f11eb198157f26861b3d69965f051c2a5b02886e)) * context menu sub menu ([9352dd1](https://github.com/RSSNext/follow/commit/9352dd1a2a2d4d30c04cb41a22b95a0dda3eeb40)) +* convert html to markdown before save to obsidian ([bef80de](https://github.com/RSSNext/follow/commit/bef80de315fd320d565196f17e658f4dbcbc69a1)) * copy grammatical ([0267b08](https://github.com/RSSNext/follow/commit/0267b080c01733671ac4fc12cfd5ec9c1807c928)) * copywrite ([8967d20](https://github.com/RSSNext/follow/commit/8967d20102bc1ad6f2f94b38909c7abfca6168d1)) * corner player tooltip bg color ([16b91f9](https://github.com/RSSNext/follow/commit/16b91f9a7d3267f34f525c2e820efff6e1cbc049)) @@ -136,11 +138,13 @@ * **db:** remove remaining data if unfollow feed ([1edf560](https://github.com/RSSNext/follow/commit/1edf5605e9621219e6cdfc732f12e6464113f765)) * debug for forworded handled host ([c0ec27d](https://github.com/RSSNext/follow/commit/c0ec27d04853508a888267a1c5273b07eee3bfa6)) * debug proxy inject env ([6b80cdc](https://github.com/RSSNext/follow/commit/6b80cdc6e7141913643f77a0b9a089333b86278d)) +* debug vercel headers ([29a48ee](https://github.com/RSSNext/follow/commit/29a48eed489695291ceb016a553d0d8caea0e84d)) * deeplink adding feed does not work on Windows ([#1002](https://github.com/RSSNext/follow/issues/1002)) ([9d5f2c9](https://github.com/RSSNext/follow/commit/9d5f2c908ee3c91083a57b964236d0c41a5c41c9)) * deeplink navigate ([00d41ce](https://github.com/RSSNext/follow/commit/00d41cee5632dab86f7a93b1bc965cb3a896417a)) * default extra window size ([5688eff](https://github.com/RSSNext/follow/commit/5688eff6a70ab9abc3e94d9dce861726df8d9123)) * determine snowflake id ([7dbf48b](https://github.com/RSSNext/follow/commit/7dbf48b92c9445b83588bcf11892f3728e959977)) * devtools font not work due to comment ([#846](https://github.com/RSSNext/follow/issues/846)) ([ac09c71](https://github.com/RSSNext/follow/commit/ac09c711d94cd966b5c9839276d11b2e2235e2ce)) +* disable auto toggle readability in web ([b94e051](https://github.com/RSSNext/follow/commit/b94e051c1c4593e34e2c5bd23e885e30ac045d97)) * disable window blur material lower than windows 11 ([3735390](https://github.com/RSSNext/follow/commit/3735390af80671a4bf954f70062f3838206b8890)) * disabled ghost button style ([e01985b](https://github.com/RSSNext/follow/commit/e01985b1e9bf8a60ea20f47fc3e7a7a9a969bca9)) * discover form overflow scrollbar ([1145e92](https://github.com/RSSNext/follow/commit/1145e92ae7125873d69f2689d86418b004d93319)) @@ -164,6 +168,7 @@ * drawer top edge anchor ([248369a](https://github.com/RSSNext/follow/commit/248369afe6d085885fd76a4ecf6a3f9b692b14cf)) * dropmenu icon prop passive, profile avatar button cls ([ddfcffe](https://github.com/RSSNext/follow/commit/ddfcffeda59c2d2503645b36aba423eff9e2b5b9)) * duplicated separator ([6e1ee50](https://github.com/RSSNext/follow/commit/6e1ee50536ded4b65f76cdb35bdf98c4657a1a74)) +* **dx:** reload page if store circular import detected ([f60fc6f](https://github.com/RSSNext/follow/commit/f60fc6f1d423521d99532a142e37e2e7330cd85a)) * dynamic import error component ([d98c06e](https://github.com/RSSNext/follow/commit/d98c06e1c04cd5a1189c47653dc20bef1b6a9aa2)) * dynamic load i18n resource in electron prod ([2328648](https://github.com/RSSNext/follow/commit/232864852a934d571a2b47af7f4d02c787cc8250)) * eagle icon ([021dfab](https://github.com/RSSNext/follow/commit/021dfab5eeb888f155982cc1cd3636b2b4ca52a3)) @@ -176,6 +181,7 @@ * electron window frame and `backgroundMaterial` ([e18ec75](https://github.com/RSSNext/follow/commit/e18ec754a05231fb82a7cbdb80632d79a6232872)) * electron window layout titleSticky ui ([#1010](https://github.com/RSSNext/follow/issues/1010)) ([1135361](https://github.com/RSSNext/follow/commit/113536104e635d78a1ad7ec46041aa4156131002)) * electron window type ([909d692](https://github.com/RSSNext/follow/commit/909d6929da5bd3930a6e1d8aa3342c46d00e5c7d)) +* embed video can not play, close [#1086](https://github.com/RSSNext/follow/issues/1086) ([1554a93](https://github.com/RSSNext/follow/commit/1554a93c956e276f45d4f0fd88872cf0ec6d649f)) * empty default font on electron app ([#481](https://github.com/RSSNext/follow/issues/481)) ([4f9d4f2](https://github.com/RSSNext/follow/commit/4f9d4f26f22ac86cce64bb9f1582c2be2b3361c3)) * empty entry list will throw not found feed error, fixed [#224](https://github.com/RSSNext/follow/issues/224) ([c41756d](https://github.com/RSSNext/follow/commit/c41756d2b91173a753e09f5de988b71a27daa9ba)) * empty title break ([fbbb2a9](https://github.com/RSSNext/follow/commit/fbbb2a98b204ff17d80f1826134b713854a0f40d)) @@ -191,6 +197,7 @@ * entry preview modal content ([8492c2a](https://github.com/RSSNext/follow/commit/8492c2afb3af79726b9448359a63b432b04a3518)) * entry read history more not showing on desktop ([0c6494b](https://github.com/RSSNext/follow/commit/0c6494b5682078fa1da1ea2e6f5d81aa436a5155)) * entry view tracker params ([0c05a8b](https://github.com/RSSNext/follow/commit/0c05a8b88c1c385b7809f1ea9e3355f0d11e69dd)) +* **entry-colmun:** refetch view as deps ([39be37e](https://github.com/RSSNext/follow/commit/39be37e378dba2beb3adccfa17c328168939a0e5)) * **entry-layout:** only padding left in wide mode ([c0d49e5](https://github.com/RSSNext/follow/commit/c0d49e5436b9f93857c9efa4bdaf4cc939e86c73)) * env example ([cdb8dd5](https://github.com/RSSNext/follow/commit/cdb8dd5cf31ec2d43b18a50cdd3259302620867e)) * error boundary lazy suspense ([fefd578](https://github.com/RSSNext/follow/commit/fefd578df9cacaef79a92b190a862931f2e5a39a)) @@ -212,6 +219,7 @@ * feed column layout ([8a31463](https://github.com/RSSNext/follow/commit/8a31463e4ef82811e0f7d5fd40cb3281202a24e3)) * feed column resize perf ([a09f55a](https://github.com/RSSNext/follow/commit/a09f55af080714d0b0022983421e942d14ceb562)) * feed column vertical align ([63139f2](https://github.com/RSSNext/follow/commit/63139f25b2b771480de4c04d91967067897c94fc)) +* feed form max width of markdown container ([99478f1](https://github.com/RSSNext/follow/commit/99478f1d9995fc548ea84684e8e91e98c676827c)) * feed form view type radio text wrap ([d9e89e2](https://github.com/RSSNext/follow/commit/d9e89e213c57908c18dc1391bb7c07d35f7b02ca)) * feed icon in player cover ([c6a8613](https://github.com/RSSNext/follow/commit/c6a8613b29cec24bb61eec2196f1827ae9a759fa)) * feed icon style ([3f04f14](https://github.com/RSSNext/follow/commit/3f04f148f5a34d47da8dab1a4fc4b00f9a2fadba)) @@ -223,6 +231,7 @@ * fill relative url in entry title link, fix [#372](https://github.com/RSSNext/follow/issues/372) ([7c3aab6](https://github.com/RSSNext/follow/commit/7c3aab6f042a710aaa99d8fb7a774fce89af2b08)) * Fix popup's width when viewport changes. ([#981](https://github.com/RSSNext/follow/issues/981)) ([6f20509](https://github.com/RSSNext/follow/commit/6f2050908f93d95a98e5e4cdb71ba03c24844277)) * fix the fixed misalignment when image is empty and name is also empty ([#179](https://github.com/RSSNext/follow/issues/179)) ([f6b62c8](https://github.com/RSSNext/follow/commit/f6b62c8ce0908772c394d653857197c9302e332b)) +* fix toast wrong tip amount ([#1139](https://github.com/RSSNext/follow/issues/1139)) ([7c7be10](https://github.com/RSSNext/follow/commit/7c7be1016a38d5eea3e83c3bb4ad450768c2b633)) * fixed text overlap issues caused by style ([#527](https://github.com/RSSNext/follow/issues/527)) ([103bd6a](https://github.com/RSSNext/follow/commit/103bd6a414beb9a808a9ad661348ff416626bc18)) * flat ([6bada5e](https://github.com/RSSNext/follow/commit/6bada5e986ff77ef5de42d18734ea92f872ca818)) * font name duplicated if installed default font ([1efdd40](https://github.com/RSSNext/follow/commit/1efdd40f99cb1ad52f048bd53648f32b4cfbbae8)) @@ -286,6 +295,7 @@ * inbox ([df86527](https://github.com/RSSNext/follow/commit/df86527072df1a30c65bce8ab48a963be596a716)) * inbox data refreshment ([a3a7c82](https://github.com/RSSNext/follow/commit/a3a7c82ea6308756a800514d9df528815ba77781)) * inbox unread filter ([ea643e5](https://github.com/RSSNext/follow/commit/ea643e5ffe84ac5d474876c847bd5cd40fe2ba22)), closes [#792](https://github.com/RSSNext/follow/issues/792) +* **inbox:** do not inject host style in mail render ([483d4ac](https://github.com/RSSNext/follow/commit/483d4acc39067b85b0861f559ec5db10cf397ab8)) * incorrect tooltip in read history ([#385](https://github.com/RSSNext/follow/issues/385)) ([cabe210](https://github.com/RSSNext/follow/commit/cabe210aaf8f4a1133fa653532874fa86d02c252)) * increase feeds tab cell width ([5d7faf7](https://github.com/RSSNext/follow/commit/5d7faf70b49c9b5f35323dc5716ba15772d95074)) * init store after app init ([728ea84](https://github.com/RSSNext/follow/commit/728ea84fa6e9faff1990184285390a1d86eb2c56)) @@ -303,6 +313,8 @@ * language setting syncing ([fa1dc5d](https://github.com/RSSNext/follow/commit/fa1dc5df35a2225bb22320a8fc049d3c0b75fa5b)) * layout shift ([f5f5213](https://github.com/RSSNext/follow/commit/f5f521300f59a0194a349342d2990e2c5d4bfd63)) * less white space, close [#818](https://github.com/RSSNext/follow/issues/818) ([4b0802d](https://github.com/RSSNext/follow/commit/4b0802da69bd64192f622c08e53ba95484d27c71)) +* limit preview media image max height ([bd77bc4](https://github.com/RSSNext/follow/commit/bd77bc400fa35285ed2239a44ac78a8faa2d5382)), closes [#1131](https://github.com/RSSNext/follow/issues/1131) +* limit select area ([f7696b3](https://github.com/RSSNext/follow/commit/f7696b3f8acee99379557320e68d9bf8543e53c3)) * link underline style when selected ([781b120](https://github.com/RSSNext/follow/commit/781b1200f8eae3f61b39dc53151c5a688fa36d1b)) * lint ([ef0d80d](https://github.com/RSSNext/follow/commit/ef0d80d8546c804b1b52c58fca7640d2f541188a)) * list data store and list edit form ([f420e78](https://github.com/RSSNext/follow/commit/f420e78ca921217b18a5c6b4811074d8eb11fe4e)) @@ -324,6 +336,7 @@ * **login-button:** add overflow ([650aeeb](https://github.com/RSSNext/follow/commit/650aeeb099a18341a6fd25b006e77818f040fa93)) * make media take up space ([a0a26a9](https://github.com/RSSNext/follow/commit/a0a26a98dc9f1ab877025b8e43cbab7ce933537f)), closes [#1050](https://github.com/RSSNext/follow/issues/1050) * margin between the top bar and the content ([#1054](https://github.com/RSSNext/follow/issues/1054)) ([e6491e5](https://github.com/RSSNext/follow/commit/e6491e512b891409c1200be315dd3065c33bee20)) +* margin condition in EntryListHeader ([#1103](https://github.com/RSSNext/follow/issues/1103)) ([ac7fa6b](https://github.com/RSSNext/follow/commit/ac7fa6bba7f46abec5b016bd8fee894d71a8c1da)) * mark all as read height ([eb1a944](https://github.com/RSSNext/follow/commit/eb1a9440b5e3eb8fa205251c312e47a1ad47d77f)), closes [#811](https://github.com/RSSNext/follow/issues/811) * mark all as read in feed action ([cbb5022](https://github.com/RSSNext/follow/commit/cbb502223fd82212f8534eb578786cb138813474)) * mark all button overlay position ([5e34d36](https://github.com/RSSNext/follow/commit/5e34d3650eaaa999c660377db3e955269123eab5)) @@ -354,10 +367,12 @@ * navigating from a tts player doesn't work properly ([#828](https://github.com/RSSNext/follow/issues/828)) ([22a72ac](https://github.com/RSSNext/follow/commit/22a72ac15b8aa7ae5707f68051951ea5707a4ae9)) * new invitation button zindex ([0d79392](https://github.com/RSSNext/follow/commit/0d79392cde4c282cbc3faf69fd697b3726638279)) * nightly build ci ([85a52ad](https://github.com/RSSNext/follow/commit/85a52ad1dfc3f55950b7ae3b59c2c18eaee0e37e)) +* no scale for inline image ([8f7a101](https://github.com/RSSNext/follow/commit/8f7a101013157132c981f475bef1af8086ec0670)) * not showing '0' when no followers on the search results card ([#1032](https://github.com/RSSNext/follow/issues/1032)) ([a09b80e](https://github.com/RSSNext/follow/commit/a09b80e933af86c16040ebae4e0395e795fb240a)) * null bigint error ([fa2d0f3](https://github.com/RSSNext/follow/commit/fa2d0f3583f4bdb06c75e79ae78093323db49619)) * null reference introduced in ab8c9e5 ([#667](https://github.com/RSSNext/follow/issues/667)) ([1eae565](https://github.com/RSSNext/follow/commit/1eae565fb37c2ed3b6a627855862d2ae30c3dc00)) * only can add feed to owned lists, fixed [#863](https://github.com/RSSNext/follow/issues/863) ([0c306bc](https://github.com/RSSNext/follow/commit/0c306bc34ac351ad36617e07769df8dc647d24b5)) +* only fit content for image media ([4417092](https://github.com/RSSNext/follow/commit/4417092cfb3c3634f7e1af1bc708e1574d384cc6)) * only navigate to root when document is focus ([b0bad7a](https://github.com/RSSNext/follow/commit/b0bad7afe07e847a0e7b6eabaa02a2c17d024d25)) * only valid feed can be claimed ([1e03bf6](https://github.com/RSSNext/follow/commit/1e03bf66e17e3d873081c9f6faa93ee2407f57e1)) * only windows 11 can manually resize logic ([338803a](https://github.com/RSSNext/follow/commit/338803a18936c29fcea694c95baef1b3e8650980)) @@ -365,6 +380,7 @@ * optimize ai daily modal ([8872067](https://github.com/RSSNext/follow/commit/88720679df1371543c0feb5d3a48b7b7e664a20b)) * optimize code string parser ([b3d32d0](https://github.com/RSSNext/follow/commit/b3d32d09fd4d5b53ae1692ffdc154e8d37a77fdd)) * optimize invitation page ([5f93e4b](https://github.com/RSSNext/follow/commit/5f93e4baac340998b08aaa273e2185893fe88e92)) +* optimize the appearing horizontal scroll bar. ([#1108](https://github.com/RSSNext/follow/issues/1108)) ([8532257](https://github.com/RSSNext/follow/commit/8532257f5c64d79561507ddd8a7aea8eac1f8521)) * optimize the content margin of the Discover Page ([#1021](https://github.com/RSSNext/follow/issues/1021)) ([3cf887b](https://github.com/RSSNext/follow/commit/3cf887be4f47ca96df2c41d83082a1e1ad262293)) * optional response data for check new, fixed [#195](https://github.com/RSSNext/follow/issues/195) ([2c650b0](https://github.com/RSSNext/follow/commit/2c650b08ae031e18dbe4b25d9c124c3eb7ff4f9a)) * overflow text in setting modal layout ([b34aa57](https://github.com/RSSNext/follow/commit/b34aa579f07af9dd3feca036b8996e561204d850)) @@ -373,6 +389,7 @@ * panel split color in dark mode ([3a0cfa1](https://github.com/RSSNext/follow/commit/3a0cfa1ebf794351d7f7b1132c0068a55ff2e9a6)) * panel spliter zindex ([23e428a](https://github.com/RSSNext/follow/commit/23e428ad30d5df968e881462a699fdf40db43131)) * peek modal header background color and copywrite ([b8be81b](https://github.com/RSSNext/follow/commit/b8be81b2105d2c229955a433af91c43f5286194a)) +* peek modal overlay transition when dismiss ([aeb380c](https://github.com/RSSNext/follow/commit/aeb380cc2c782427e16d5106c65eae0151d674df)) * picture action button position ([b18e4a2](https://github.com/RSSNext/follow/commit/b18e4a2bd4f4266e4e44da17b3deac9826570322)), closes [#811](https://github.com/RSSNext/follow/issues/811) * picture entry preview in Grid view ([#658](https://github.com/RSSNext/follow/issues/658)) ([634978f](https://github.com/RSSNext/follow/commit/634978f427865f646088f13a315207cde63d532c)) * player holder size ([78cb08c](https://github.com/RSSNext/follow/commit/78cb08c7dc98aeab9cb5575296470106dbeb4e84)) @@ -390,6 +407,7 @@ * prevent translation popup from being obscured by time display ([#631](https://github.com/RSSNext/follow/issues/631)) ([ea6fbc2](https://github.com/RSSNext/follow/commit/ea6fbc27e6d29d59c4419422a6a12c81d56c2c98)) * preview image and video size ([e4e4700](https://github.com/RSSNext/follow/commit/e4e47006ee55aa59db5fdb76f565a5ec929f3d95)) * preview image fallback ([7410ca2](https://github.com/RSSNext/follow/commit/7410ca229afdb6fafb01f5ebe370d01dc33a4500)) +* preview image size ([553640e](https://github.com/RSSNext/follow/commit/553640e495d0c6e521c59448a6997476ff2b631c)) * preview image size ([af474c1](https://github.com/RSSNext/follow/commit/af474c1592b5cf92c114936ccb3e6686ea737e37)) * preview image width ([7847da8](https://github.com/RSSNext/follow/commit/7847da84321e8c33f002e72c6653338602c35dc9)) * preview media entry background color in dark mode ([4751447](https://github.com/RSSNext/follow/commit/4751447ce2bd9e0dd7d6865ed48b600a747556cf)) @@ -429,6 +447,7 @@ * remove motion overlay, fixed [#868](https://github.com/RSSNext/follow/issues/868) ([e5e53b8](https://github.com/RSSNext/follow/commit/e5e53b8ef8486ed9047c0efe1b67c9fa3184673d)) * remove posthog, and fix [#1022](https://github.com/RSSNext/follow/issues/1022) ([9cb25c9](https://github.com/RSSNext/follow/commit/9cb25c96565e5660e0e2943b866915b8fa3e5ef7)) * remove prefetch achievement ([619aa82](https://github.com/RSSNext/follow/commit/619aa82b5ceeafcf6cf34f32b64e01b7e8c864b5)) +* remove timeline tabs ([3d1c10d](https://github.com/RSSNext/follow/commit/3d1c10d4af48c902e2e41f4388308095075d897f)) * remove windows under blur and ensure main window in the screen bounds ([d772343](https://github.com/RSSNext/follow/commit/d7723435a1527e5f9c065c36bf1d1d81b3b43ec4)) * rename category input composition and style ([1ab3770](https://github.com/RSSNext/follow/commit/1ab3770f0279eb043f7a37a1b5251e5ead0ef0b6)) * reorganize package.json ([b2c48a4](https://github.com/RSSNext/follow/commit/b2c48a49e3789cb3dfd9e9170f5371fc6b25c4b1)) @@ -442,14 +461,18 @@ * rewrite ([3a8cbf2](https://github.com/RSSNext/follow/commit/3a8cbf243903f08392dd1d3eab723b31ff86143a)) * round left only in electron ([2d10811](https://github.com/RSSNext/follow/commit/2d10811273d2053b889b2688189b4212b6e9d6a1)) * safari entry colmun styles ([f36cfd3](https://github.com/RSSNext/follow/commit/f36cfd36103016d4d8afffd471a218e435096e43)) +* safe file name ([3af3935](https://github.com/RSSNext/follow/commit/3af3935fcac43cc2cfc03b654059e1d26a77f57c)), closes [#1129](https://github.com/RSSNext/follow/issues/1129) * save to Obsidian error in browser environment ([#1040](https://github.com/RSSNext/follow/issues/1040)) ([497cb5a](https://github.com/RSSNext/follow/commit/497cb5a96512e02c9f6ca12688f0939db69f6164)) * scroll to top when switch to other entry ([4ec1c93](https://github.com/RSSNext/follow/commit/4ec1c93e95d79daa84018b9bb0f84f03ba0f4dee)) * search entries ([4cbe2a2](https://github.com/RSSNext/follow/commit/4cbe2a2d816e1a56bd89206d1026fc19d86d47b1)) * search items ensure unique keys ([#597](https://github.com/RSSNext/follow/issues/597)) ([ff14738](https://github.com/RSSNext/follow/commit/ff14738eeacf04ffe0c457f3600287fb2ddd0529)) * sentry config ([779236e](https://github.com/RSSNext/follow/commit/779236e0827af3981bce29e3c1ac9a527aec3fd5)) * **server:** client api client ([f54c886](https://github.com/RSSNext/follow/commit/f54c8869501847e07310a93298c5038abc8e0a1a)) +* **server:** deeplink handler ([1decc35](https://github.com/RSSNext/follow/commit/1decc3555a5ff0ede2a7b8146210be5973907995)) * **server:** inject `WEB_URL` env ([db7ba9d](https://github.com/RSSNext/follow/commit/db7ba9df8d9d638b77873e54d18fcbfc58faf073)) * **server:** og title template ([8678de0](https://github.com/RSSNext/follow/commit/8678de0d66eeff41e3c375ed1b9a14420e9756a8)) +* **server:** should bundle some deps ([0745685](https://github.com/RSSNext/follow/commit/0745685beaef806d0a9e6d33e946ca7a1a3590db)) +* **server:** upstream origin url ([27faed9](https://github.com/RSSNext/follow/commit/27faed996539c74e3e55f5c2c9f021b764c18400)) * **server:** workspace deps as dev deps ([6eb4b2d](https://github.com/RSSNext/follow/commit/6eb4b2d260dd26a51d19afeac0ddd79e0cc6fe9a)) * set auth config first ([a281f58](https://github.com/RSSNext/follow/commit/a281f58a811213d933585280238fec4088ad7749)) * set cmdf container `z-index` to `1000` ([#859](https://github.com/RSSNext/follow/issues/859)) ([db1d190](https://github.com/RSSNext/follow/commit/db1d19076c781696b9421f53dd79c35a6f49a324)) @@ -486,6 +509,7 @@ * social media feed icon style ([841f445](https://github.com/RSSNext/follow/commit/841f445403aef7acc01e30345be963257eea5e14)) * social media typesetting ([664b70d](https://github.com/RSSNext/follow/commit/664b70d00871ed7f3a3f327bff8aca24c7b4a9a5)) * social media typography ([5d27d29](https://github.com/RSSNext/follow/commit/5d27d29e4bd2791248d6a907a889a4907f0e0d20)) +* solve overflow issue in achievement model ([#1114](https://github.com/RSSNext/follow/issues/1114)) ([f726921](https://github.com/RSSNext/follow/commit/f72692145bc59a8e18bbb25ef681b62acfabba94)) * sort by preferred title, fix [#390](https://github.com/RSSNext/follow/issues/390) ([cc25c67](https://github.com/RSSNext/follow/commit/cc25c6785e98f7a200904bdac2b36ff03cf358dd)) * sort categories suggestions ([2c53ecb](https://github.com/RSSNext/follow/commit/2c53ecb65b4b79851ae7498d90427a951b68acb7)) * sort shortcut ([1f8e4a3](https://github.com/RSSNext/follow/commit/1f8e4a3b966891787f05d9b6d0ec0fe327260e49)) @@ -521,6 +545,7 @@ * The problem with the display of the right content area ([#501](https://github.com/RSSNext/follow/issues/501)) ([4692ebd](https://github.com/RSSNext/follow/commit/4692ebd11ecf9b05a57e49270f920a33bbd9a5c3)) * the search results on the Discover Page are not centered ([#1029](https://github.com/RSSNext/follow/issues/1029)) ([93461e8](https://github.com/RSSNext/follow/commit/93461e8ad7ed47adba6afa351c816d1392ecc2f7)) * threshold for sidebar temp show ([7d62ea6](https://github.com/RSSNext/follow/commit/7d62ea6801713e2b43b116c5ddfea0b1a96a6fe8)) +* timeline margin and picture view content top marigin, closes [#1106](https://github.com/RSSNext/follow/issues/1106) ([cf08c75](https://github.com/RSSNext/follow/commit/cf08c752751307c971bd3ded72a2cc500ae3ba7b)) * timeline tabs styles ([0a98f37](https://github.com/RSSNext/follow/commit/0a98f371a837ba3b7e4bc086f6352af6033c2081)) * tip modal styles ([3154c4f](https://github.com/RSSNext/follow/commit/3154c4f95b47d7fbce6142f49b211799408bc5aa)) * toc active logic ([13ba679](https://github.com/RSSNext/follow/commit/13ba679ed879920798e434ee10c3fb407395dcb1)) @@ -568,6 +593,7 @@ * types ([4287b5d](https://github.com/RSSNext/follow/commit/4287b5d986e74fbb2f96c2f322f09f921f773d7a)) * types ([d9458a1](https://github.com/RSSNext/follow/commit/d9458a1850b3e83e9bbb9374d4fc3b6884a24837)) * typing ([a386fd6](https://github.com/RSSNext/follow/commit/a386fd6e97fb98c42b3eedf156c5b167ff67bd34)) +* typo ([44d3c1a](https://github.com/RSSNext/follow/commit/44d3c1af68e62bfe5815c87e63228369f4c53afd)) * typo ([deb96c5](https://github.com/RSSNext/follow/commit/deb96c538258c939c60762c723d58955899031cf)) * **ui:** entry title line height ([#608](https://github.com/RSSNext/follow/issues/608)) ([5309491](https://github.com/RSSNext/follow/commit/53094912981ad8cfc79120621725bab1708250f8)) * **ui:** fetch error toast margin ([e5fc18f](https://github.com/RSSNext/follow/commit/e5fc18fd9a16a0e32928b2d2b04c7d48d546c782)) @@ -578,6 +604,8 @@ * unify date item mark read styles ([9f5cbab](https://github.com/RSSNext/follow/commit/9f5cbabfafc905046258ceb5fe2c0bdd6993b830)) * unify player actions icons ([7d2382d](https://github.com/RSSNext/follow/commit/7d2382d56bf4b4186e566191cbbb1662a6a15d30)) * unify setting tab icon color, fix [#303](https://github.com/RSSNext/follow/issues/303) ([33a049a](https://github.com/RSSNext/follow/commit/33a049a8513f5c3cab9ce8a6adefadf7399164f8)) +* unique id for entry timeline data, fixed [#1101](https://github.com/RSSNext/follow/issues/1101) ([e86c60d](https://github.com/RSSNext/follow/commit/e86c60d4c43a5e20f61d4628b23a77db5623c715)) +* unique key of skeleton ([ab43626](https://github.com/RSSNext/follow/commit/ab436266ad255433143af90b820fefc42375caa4)) * unread state not up to date, fix [#485](https://github.com/RSSNext/follow/issues/485) ([96f7762](https://github.com/RSSNext/follow/commit/96f77623edd04582e95aa8125ccf4515daac96c1)) * update cmdk high contrast, [@unixzii](https://github.com/unixzii) advice ([cbd7593](https://github.com/RSSNext/follow/commit/cbd75932433ad056b257c5934e6aefc3c0d829dd)) * update DropdownMenuTrigger class for open state styling ([#931](https://github.com/RSSNext/follow/issues/931)) ([25234e1](https://github.com/RSSNext/follow/commit/25234e1bc1b6cd695f93d51b52fb62ddc9adba63)) @@ -586,6 +614,7 @@ * update invitation fab ([0cd1837](https://github.com/RSSNext/follow/commit/0cd183780f299b94a800cd86342484afa7f716bd)) * update lists table ui ([0d68e75](https://github.com/RSSNext/follow/commit/0d68e7584592d08191c54a16257dd92924216387)) * update search for ([b51d75f](https://github.com/RSSNext/follow/commit/b51d75ffc9b0a9c2760269041aaa4c5a7f6b26d0)) +* update tax display logic ([c8ccf35](https://github.com/RSSNext/follow/commit/c8ccf352f23196eb89fa8a8606466edc557472af)) * update unread dot style ([e2fef01](https://github.com/RSSNext/follow/commit/e2fef01d2c374f720a6ff4b265344c828f8b80ba)) * updater should closes all window first ([7cb1a94](https://github.com/RSSNext/follow/commit/7cb1a94a15383e3190c37d3fea9ff0ff5a97dfd5)) * upgrade tip when player open ([033831b](https://github.com/RSSNext/follow/commit/033831bdab0a85a2f1f02af85c6da2278e40de5e)) @@ -613,6 +642,7 @@ * wait language load then switch to target language ([bbe4ea6](https://github.com/RSSNext/follow/commit/bbe4ea66e75a8911e9ef39764d02d22251ba743e)) * wallet table latyout ([6c60dd2](https://github.com/RSSNext/follow/commit/6c60dd265245d08d622c59d035d2124285ff68f1)) * **wallet:** add missing space between words in wallet ([#279](https://github.com/RSSNext/follow/issues/279)) ([6873d21](https://github.com/RSSNext/follow/commit/6873d21e267fda102b13bc2a4e52de9bd7eea206)) +* **wallet:** balance align ([3a35a97](https://github.com/RSSNext/follow/commit/3a35a971f1435b6667b1a555b48a2556cf2c2782)) * win UI - feed claim modal ui & header readHistory ui ([#1019](https://github.com/RSSNext/follow/issues/1019)) ([77edf34](https://github.com/RSSNext/follow/commit/77edf34db7907de7679281f9f5e2467dad0959fa)) * window titlebar position, fixed [#197](https://github.com/RSSNext/follow/issues/197) ([b6158ec](https://github.com/RSSNext/follow/commit/b6158ec0bd1e18aed29d028f2ff86008489c8a64)) * windows app titlebar style in dark mode and radius ([3843905](https://github.com/RSSNext/follow/commit/38439050bb6db71bf6d966ab43026b660ad24f9a)) @@ -627,6 +657,8 @@ * **windows:** skip remove locle ([5df82d0](https://github.com/RSSNext/follow/commit/5df82d0c0f98bebb6e78a694a6ceda3644eb36ef)) * withdraw availableBalance ([2be9c93](https://github.com/RSSNext/follow/commit/2be9c93225b95d7515c0a590905865053442daac)) * withdraw availableBalance ([167d82a](https://github.com/RSSNext/follow/commit/167d82adc061078102fa9984d29f94735d052ce9)) +* word break ([b0641ff](https://github.com/RSSNext/follow/commit/b0641ffe3f086850044fa371a9090076933ebd4c)), closes [#1117](https://github.com/RSSNext/follow/issues/1117) +* Wrong initial position of tab animation ([#1087](https://github.com/RSSNext/follow/issues/1087)) ([bb2b350](https://github.com/RSSNext/follow/commit/bb2b350fe71b353af0d1f612aba196291723ca14)) * wrong opening status of newly added feed ([#726](https://github.com/RSSNext/follow/issues/726)) ([2520ddb](https://github.com/RSSNext/follow/commit/2520ddb0f4f1923b729ae707a703713f1a158f06)) * wrong text wrap ([#316](https://github.com/RSSNext/follow/issues/316)) ([0cee7ef](https://github.com/RSSNext/follow/commit/0cee7eff25ed1058b108f1c7a9c643ea17b479c0)) * wtf, cursor deleted my code ([1852d1e](https://github.com/RSSNext/follow/commit/1852d1ee812567c473ff26d316b93d1ccf8e8a88)) @@ -649,6 +681,7 @@ * add BoostingContributors components to enhance boost functionality ([4d6b9ff](https://github.com/RSSNext/follow/commit/4d6b9fff9f92bfbd97b0834f25ec3d0dc7bfc3e2)) * add BoostProgress and LevelBenefits components for enhanced feed boost ([8db9ee3](https://github.com/RSSNext/follow/commit/8db9ee3f3e231666a2f8cd30f9042030268576a0)) * add bundleId to PushReceiver ([f196493](https://github.com/RSSNext/follow/commit/f196493b68a84489de93ac0c3944b039c79f25c0)) +* add close button on image preview modal, closed [#1132](https://github.com/RSSNext/follow/issues/1132) ([6edbf10](https://github.com/RSSNext/follow/commit/6edbf10fcd4b410b6456f51693556816a0923516)) * add copy title to context menu of feed entry ([#801](https://github.com/RSSNext/follow/issues/801)) ([1f57ab2](https://github.com/RSSNext/follow/commit/1f57ab2ac76ef04aff37814b4c7e961ad33b6e11)) * add discover back to top fab ([a97e60c](https://github.com/RSSNext/follow/commit/a97e60cd005ca7ebb5aed56655b94975ebf1ccb7)) * add divider when sticky for date item ([755e292](https://github.com/RSSNext/follow/commit/755e292af05c3adeae8943cc5c4c05af11d30d16)) @@ -658,9 +691,11 @@ * add fallback image tip ([c244aab](https://github.com/RSSNext/follow/commit/c244aab0b77b2a143c4802552de486526e96f513)) * add getBoosters query to fetch boosters by feedId ([f4fbe81](https://github.com/RSSNext/follow/commit/f4fbe81bfea7c10dfed3314bddef4cd9a6fa18d2)) * add guess code lang option ([cbd8a72](https://github.com/RSSNext/follow/commit/cbd8a722b2940c4ad9092bfe4e08f850b8bc7c5d)) +* add horizontal scroll functionality to TimelineTabs ([#1081](https://github.com/RSSNext/follow/issues/1081)) ([9778ce2](https://github.com/RSSNext/follow/commit/9778ce203713e715a7d877e3bc109a77e39bbbca)) * add i18n detector ([7eb8a32](https://github.com/RSSNext/follow/commit/7eb8a322c78c7e075ed842036971e9aa5f094341)) * add link parser for audio timestamp navigate ([1478fa5](https://github.com/RSSNext/follow/commit/1478fa5a9343384f45a57431d029480a96b8441c)) * add loading when Discover Inbox querying data ([#891](https://github.com/RSSNext/follow/issues/891)) ([30591f8](https://github.com/RSSNext/follow/commit/30591f8415068d748b5462257787d572065a3449)) +* add login track ([522840b](https://github.com/RSSNext/follow/commit/522840b5d7ad192a0c15895b91647e7860804c5f)) * add manual setting lang lock keyu ([b9c6a8b](https://github.com/RSSNext/follow/commit/b9c6a8b58099c86a178494ffe4c875f7c31760a3)) * add missing words in zh-HK ([#610](https://github.com/RSSNext/follow/issues/610)) ([d34c1c9](https://github.com/RSSNext/follow/commit/d34c1c95d68445075987f833d29956b45e1036a3)) * add more words i18n ([#516](https://github.com/RSSNext/follow/issues/516)) ([e2b8ec8](https://github.com/RSSNext/follow/commit/e2b8ec88624ad1e8e7f6136a624fc284ae3fb77b)) @@ -677,6 +712,7 @@ * add setting user profile avatar preview ([2412d59](https://github.com/RSSNext/follow/commit/2412d59e3e91b327af102cc9f006e1022fa3b69e)) * add show all when filtered media mode ([38c21da](https://github.com/RSSNext/follow/commit/38c21dae11b84d1cb493078f999c7dac9b72d348)) * add support for pointer cursor ([#517](https://github.com/RSSNext/follow/issues/517)) ([b6ff6fb](https://github.com/RSSNext/follow/commit/b6ff6fb48f3133e10f8fc7598eaa9a7bc63aec25)) +* add system-ui font selection to desktop app ([#1109](https://github.com/RSSNext/follow/issues/1109)) ([841126c](https://github.com/RSSNext/follow/commit/841126cfac3796ef3524c7cf13d4f6ee58dc3919)) * add theme in user dropmemu ([f254e14](https://github.com/RSSNext/follow/commit/f254e144ed6172f11250f3fd9bcbca3fbfc02add)) * add tts ([#215](https://github.com/RSSNext/follow/issues/215)) ([b9fecc4](https://github.com/RSSNext/follow/commit/b9fecc46bf523a0ad07a9a9dc26adf40287f7653)) * add view feed url on exteral feed url ([0a61fa3](https://github.com/RSSNext/follow/commit/0a61fa37c3df29b686c937f802202534ba79d602)) @@ -708,6 +744,7 @@ * context menu of adding feeds to lists ([afb79a2](https://github.com/RSSNext/follow/commit/afb79a27fba87d43e62ea06c3a64267ac3d7f4e4)) * context sub menu ([2d18c53](https://github.com/RSSNext/follow/commit/2d18c53de0cb8c99336d0e915941b1fdee36df98)) * copy logo svg ([512699c](https://github.com/RSSNext/follow/commit/512699c07080f3064f984f23a21e28356ef9fcc0)) +* copywriting ([079ec27](https://github.com/RSSNext/follow/commit/079ec2723530a0765c5b12c95bb57c878b412033)) * **corner-player:** support now playing ([#717](https://github.com/RSSNext/follow/issues/717)) ([553f71b](https://github.com/RSSNext/follow/commit/553f71b1babb7a483fe8ddef741e281f1eb77730)) * custom feed title ([#300](https://github.com/RSSNext/follow/issues/300)) ([501e2f4](https://github.com/RSSNext/follow/commit/501e2f44c1d3eb9a1a316549faedb2e1288f7fbe)) * daily reward display ([78db8ad](https://github.com/RSSNext/follow/commit/78db8ad50f084bd3a68d64a73d026a1ad786ae63)) @@ -724,6 +761,7 @@ * display power purchase and tx ([dbe7aee](https://github.com/RSSNext/follow/commit/dbe7aee9151ee04147edbce7d34e1275edfc1254)) * display power ranking ([1150289](https://github.com/RSSNext/follow/commit/1150289d6433856359bcad8fbc94f8a03713e838)) * display subs and earn for lists list ([c0d2663](https://github.com/RSSNext/follow/commit/c0d2663df92d2935ec2ddc2010ecce95bb50d93a)) +* display tax amount in balance renderer ([#1140](https://github.com/RSSNext/follow/issues/1140)) ([7e670a3](https://github.com/RSSNext/follow/commit/7e670a3f72b8d11000017e9d382466c935443017)) * double click to video fullscreen ([c066820](https://github.com/RSSNext/follow/commit/c066820ce8baeed808b788e9c780f75c53ba8909)) * dual code theme ([#511](https://github.com/RSSNext/follow/issues/511)) ([f278377](https://github.com/RSSNext/follow/commit/f278377d1017f9edf89c583a4fb24eb48451daf1)) * dynamic update relative time ([744422f](https://github.com/RSSNext/follow/commit/744422fc12050e09d3cb147c2affe5e95af2056b)) @@ -771,6 +809,7 @@ * **i18n:** add Russian language support ([#402](https://github.com/RSSNext/follow/issues/402)) ([0745ac0](https://github.com/RSSNext/follow/commit/0745ac07dd2a4a34e4251c034678ace15c302697)) * **i18n:** add Spanish language support ([#400](https://github.com/RSSNext/follow/issues/400)) ([6b7823d](https://github.com/RSSNext/follow/commit/6b7823d9b314509f209516b1d7412446ff4ac1a3)) * **i18n:** add zh-CN i18n for external page ([#399](https://github.com/RSSNext/follow/issues/399)) ([49a5c50](https://github.com/RSSNext/follow/commit/49a5c50236d51c3c728bb51cd19f34915291e59a)) +* **i18n:** Added multiple text translations (zh-TW) ([#1130](https://github.com/RSSNext/follow/issues/1130)) ([10a59cb](https://github.com/RSSNext/follow/commit/10a59cb066a5f1b4e00027598456ff4ec93c784a)) * **i18n:** added Turkish language ([#544](https://github.com/RSSNext/follow/issues/544)) ([3751363](https://github.com/RSSNext/follow/commit/3751363d45af3096ccefb81bf60ac72040fce505)) * **i18n:** Chinese: Update `errors` ([#687](https://github.com/RSSNext/follow/issues/687)) ([368d232](https://github.com/RSSNext/follow/commit/368d23250817bb4033168d8736f8e0ed5cd9475f)) * **i18n:** Chinese: Update translation ([#679](https://github.com/RSSNext/follow/issues/679)) ([36593cc](https://github.com/RSSNext/follow/commit/36593cc05a1b94545266e65008ef4a52f80cfbfe)) @@ -832,6 +871,7 @@ * more achievemnt ([#964](https://github.com/RSSNext/follow/issues/964)) ([d18ed86](https://github.com/RSSNext/follow/commit/d18ed862244ec90de406c90e494eae019a6c3b8f)) * more excluded path params ([3d16aa9](https://github.com/RSSNext/follow/commit/3d16aa9f8b3b369a146537f19ab9a2fe230e9553)) * more i18n text ([6f8acce](https://github.com/RSSNext/follow/commit/6f8acced7bc51d2bb22325506e1c9bc97ee963f7)) +* muti select action ([#1062](https://github.com/RSSNext/follow/issues/1062)) ([94ab663](https://github.com/RSSNext/follow/commit/94ab66366ad8e0f61341440ff00b305314e59a1f)) * native menu add `hide` prop ([8c6753d](https://github.com/RSSNext/follow/commit/8c6753d4a66d1e7ad09efcbbca24c8cf51ed8222)) * navigator bar ([56750fd](https://github.com/RSSNext/follow/commit/56750fd1722eaca7416e5c8617fb501fcf055cac)) * new design for mark read in date item ([e5b0583](https://github.com/RSSNext/follow/commit/e5b0583d38e41d81663bec1ee16e0c24cb385d7a)) diff --git a/apps/main/package.json b/apps/main/package.json index 22f308a94..c14d007c7 100644 --- a/apps/main/package.json +++ b/apps/main/package.json @@ -30,8 +30,6 @@ "@mozilla/readability": "^0.5.0", "@sentry/electron": "5.6.0", "builder-util-runtime": "9.2.10", - "dayjs": "1.11.13", - "dotenv": "16.4.5", "electron-context-menu": "4.0.4", "electron-log": "5.2.0", "electron-squirrel-startup": "1.0.1", @@ -39,10 +37,8 @@ "font-list": "1.5.1", "i18next": "^23.16.0", "linkedom": "^0.18.5", - "lodash-es": "4.17.21", "lowdb": "7.0.1", "msedge-tts": "1.3.4", - "nanoid": "5.0.7", "ofetch": "1.4.1", "semver": "7.6.3", "vscode-languagedetection": "npm:@vscode/vscode-languagedetection@^1.0.22" diff --git a/apps/main/src/index.ts b/apps/main/src/index.ts index 1bddaae9a..836a807f3 100644 --- a/apps/main/src/index.ts +++ b/apps/main/src/index.ts @@ -72,7 +72,9 @@ function bootstrap() { userAgent = userAgent.replace(/\s?Electron\/[\d.]+/, "") userAgent = userAgent.replace(/\s?Follow\/[\d.a-zA-Z-]+/, "") } - details.requestHeaders["Origin"] = "https://app.follow.is" + if (env.VITE_OPENPANEL_API_URL && details.url.startsWith(env.VITE_OPENPANEL_API_URL)) { + details.requestHeaders["Origin"] = "https://app.follow.is" + } details.requestHeaders["User-Agent"] = userAgent callback({ cancel: false, requestHeaders: details.requestHeaders }) }) @@ -121,7 +123,7 @@ function bootstrap() { app.on("before-quit", () => { // store window pos when before app quit const window = getMainWindow() - if (!window) return + if (!window || window.isDestroyed()) return const bounds = window.getBounds() store.set(windowStateStoreKey, { diff --git a/apps/main/src/tipc/app.ts b/apps/main/src/tipc/app.ts index d932e86ff..0b09a1d7a 100644 --- a/apps/main/src/tipc/app.ts +++ b/apps/main/src/tipc/app.ts @@ -241,7 +241,7 @@ export const appRoute = { try { const { url, title, content, author, publishedAt, vaultPath } = input - const fileName = `${(title || publishedAt).trim().slice(0, 20)}.md` + const fileName = `${(title || publishedAt).trim().slice(0, 20).replaceAll("/", "-")}.md` const filePath = path.join(vaultPath, fileName) const exists = fs.existsSync(filePath) if (exists) { diff --git a/apps/renderer/package.json b/apps/renderer/package.json index 001f138ee..81fed57ec 100644 --- a/apps/renderer/package.json +++ b/apps/renderer/package.json @@ -4,6 +4,7 @@ "private": true, "main": "./dist/main/index.js", "scripts": { + "dev": "cd ../.. && pnpm dev:web", "test": "vitest", "typecheck": "tsc --noEmit" }, @@ -16,39 +17,28 @@ "@headlessui/react": "2.1.10", "@hono/auth-js": "1.0.11", "@hookform/resolvers": "3.9.0", - "@iconify/tools": "4.0.7", "@lottiefiles/dotlottie-react": "0.9.1", "@microflash/remark-callout-directives": "4.3.1", - "@mozilla/readability": "^0.5.0", "@openpanel/web": "1.0.1", "@radix-ui/react-avatar": "1.1.1", - "@radix-ui/react-checkbox": "1.1.2", "@radix-ui/react-context-menu": "2.2.2", "@radix-ui/react-dialog": "1.1.2", "@radix-ui/react-dropdown-menu": "2.1.2", "@radix-ui/react-hover-card": "1.1.2", "@radix-ui/react-label": "2.1.0", "@radix-ui/react-popover": "1.1.2", - "@radix-ui/react-radio-group": "1.2.1", - "@radix-ui/react-scroll-area": "1.2.0", - "@radix-ui/react-select": "2.1.2", "@radix-ui/react-slider": "^1.2.1", "@radix-ui/react-slot": "1.1.0", - "@radix-ui/react-switch": "1.1.1", - "@radix-ui/react-tabs": "1.1.1", - "@radix-ui/react-toast": "1.2.2", - "@radix-ui/react-tooltip": "1.1.3", "@sentry/react": "8.34.0", "@shikijs/transformers": "1.22.0", - "@t3-oss/env-core": "^0.11.1", "@tanstack/query-sync-storage-persister": "5.59.13", "@tanstack/react-query": "5.59.14", "@tanstack/react-query-devtools": "5.59.14", "@tanstack/react-query-persist-client": "5.59.14", "@use-gesture/react": "10.3.1", + "@welldone-software/why-did-you-render": "8.0.3", "@yornaath/batshit": "0.10.1", "camelcase-keys": "9.1.3", - "class-variance-authority": "0.7.0", "click-to-react-component": "1.1.0", "clsx": "2.1.1", "cmdk": "1.0.0", @@ -62,6 +52,7 @@ "franc-min": "6.2.0", "fuse.js": "7.0.0", "hast-util-to-jsx-runtime": "2.3.2", + "hast-util-to-mdast": "^10.1.0", "hast-util-to-text": "4.0.2", "i18next": "^23.16.0", "i18next-browser-languagedetector": "8.0.0", @@ -72,12 +63,13 @@ "lethargy": "1.0.9", "lodash-es": "4.17.21", "masonic": "4.0.1", + "mdast-util-to-markdown": "^2.1.0", "nanoid": "5.0.7", "ofetch": "1.4.1", "path-to-regexp": "8.2.0", "re-resizable": "6.10.0", "react-blurhash": "^0.3.0", - "react-error-boundary": "4.0.13", + "react-error-boundary": "4.1.2", "react-fast-marquee": "1.6.5", "react-hook-form": "7.53.0", "react-hotkeys-hook": "4.5.1", @@ -85,7 +77,7 @@ "react-intersection-observer": "9.13.1", "react-resizable-layout": "npm:@innei/react-resizable-layout@0.7.3-fork.1", "react-router-dom": "6.27.0", - "react-selecto": "1.26.3", + "react-selecto": "^1.26.3", "react-shadow": "20.5.0", "react-virtuoso": "4.12.0", "rehype-infer-description-meta": "2.0.0", @@ -100,8 +92,6 @@ "shiki": "1.22.0", "sonner": "^1.5.0", "swiper": "11.1.14", - "tailwind-merge": "2.5.4", - "tailwindcss-motion": "0.3.0-beta", "tldts": "6.1.51", "unified": "11.0.5", "use-context-selector": "2.0.0", @@ -113,7 +103,14 @@ }, "devDependencies": { "@babel/generator": "7.25.7", + "@follow/atoms": "workspace:*", + "@follow/components": "workspace:*", + "@follow/constants": "workspace:*", + "@follow/hooks": "workspace:*", + "@follow/models": "workspace:*", + "@follow/shared": "workspace:*", "@follow/types": "workspace:*", + "@follow/utils": "workspace:*", "@hono/node-server": "1.13.2", "@types/katex": "0.16.7", "@types/lodash-es": "4.17.12", diff --git a/apps/renderer/src/App.tsx b/apps/renderer/src/App.tsx index a7ae6fa9f..d4f92844a 100644 --- a/apps/renderer/src/App.tsx +++ b/apps/renderer/src/App.tsx @@ -1,4 +1,5 @@ import { IN_ELECTRON } from "@follow/shared/constants" +import { cn, getOS } from "@follow/utils/utils" import { useEffect, useLayoutEffect } from "react" import { Outlet } from "react-router-dom" @@ -9,7 +10,6 @@ import { useUISettingKey } from "./atoms/settings/ui" import { navigateEntry } from "./hooks/biz/useNavigateEntry" import { applyAfterReadyCallbacks } from "./initialize/queue" import { appLog } from "./lib/log" -import { cn, getOS } from "./lib/utils" import { Titlebar } from "./modules/app/Titlebar" import { RootProviders } from "./providers/root-providers" import { handlers } from "./tipc" diff --git a/apps/renderer/src/api/trending.ts b/apps/renderer/src/api/trending.ts index 18c9d5777..92a81212b 100644 --- a/apps/renderer/src/api/trending.ts +++ b/apps/renderer/src/api/trending.ts @@ -1,7 +1,7 @@ +import type { Models } from "@follow/models" import camelcaseKeys from "camelcase-keys" import { apiFetch } from "~/lib/api-fetch" -import type { Models } from "~/models" const v1ApiPrefix = "/v1" export const getTrendingAggregates = async () => { diff --git a/apps/renderer/src/atoms/corner-player.ts b/apps/renderer/src/atoms/corner-player.ts index 72075bd5e..0609b2b43 100644 --- a/apps/renderer/src/atoms/corner-player.ts +++ b/apps/renderer/src/atoms/corner-player.ts @@ -1,7 +1,7 @@ +import { getStorageNS } from "@follow/utils/ns" import { atomWithStorage } from "jotai/utils" import { createAtomHooks } from "~/lib/jotai" -import { getStorageNS } from "~/lib/ns" type CornerPlayerAtomValue = { show: boolean diff --git a/apps/renderer/src/atoms/hooks/viewport.ts b/apps/renderer/src/atoms/hooks/viewport.ts deleted file mode 100644 index 8e9c1b4e7..000000000 --- a/apps/renderer/src/atoms/hooks/viewport.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { ExtractAtomValue } from "jotai" -import { useAtomValue } from "jotai" -import { selectAtom } from "jotai/utils" -import { useCallback } from "react" - -import { jotaiStore } from "~/lib/jotai" - -import { viewportAtom } from "../viewport" - -export const useViewport = (selector: (value: ExtractAtomValue) => T): T => - useAtomValue( - selectAtom( - viewportAtom, - useCallback((atomValue) => selector(atomValue), []), - ), - ) - -export const useIsMobile = () => - useViewport(useCallback((v: ExtractAtomValue) => isMobile(v), [])) - -const isMobile = (v: ExtractAtomValue) => (v.sm || v.md || !v.sm) && !v.lg -export const currentIsMobile = () => { - const v = jotaiStore.get(viewportAtom) - return isMobile(v) -} - -export const getViewport = () => jotaiStore.get(viewportAtom) diff --git a/apps/renderer/src/atoms/player.ts b/apps/renderer/src/atoms/player.ts index f09f4f4bc..fd6bf6f7e 100644 --- a/apps/renderer/src/atoms/player.ts +++ b/apps/renderer/src/atoms/player.ts @@ -1,10 +1,10 @@ +import { getStorageNS } from "@follow/utils/ns" import { noop } from "foxact/noop" import { atomWithStorage, createJSONStorage } from "jotai/utils" import type { SyncStorage } from "jotai/vanilla/utils/atomWithStorage" import { getRouteParams } from "~/hooks/biz/useRouteParams" import { createAtomHooks } from "~/lib/jotai" -import { getStorageNS } from "~/lib/ns" type PlayerAtomValue = { show: boolean diff --git a/apps/renderer/src/atoms/route.ts b/apps/renderer/src/atoms/route.ts deleted file mode 100644 index 71fb1a252..000000000 --- a/apps/renderer/src/atoms/route.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { atom, useAtomValue } from "jotai" -import { selectAtom } from "jotai/utils" -import { useMemo } from "react" -import type { Location, NavigateFunction, Params } from "react-router-dom" - -import { createAtomHooks } from "~/lib/jotai" - -interface RouteAtom { - params: Readonly> - searchParams: URLSearchParams - location: Location -} - -export const [routeAtom, , , , getReadonlyRoute, setRoute] = createAtomHooks( - atom({ - params: {}, - searchParams: new URLSearchParams(), - - location: { - pathname: "", - search: "", - hash: "", - state: null, - key: "", - }, - }), -) - -const noop = [] -export const useReadonlyRouteSelector = ( - selector: (route: RouteAtom) => T, - deps: any[] = noop, -): T => useAtomValue(useMemo(() => selectAtom(routeAtom, (route) => selector(route)), deps)) - -// Vite HMR will create new router instance, but RouterProvider always stable - -const [, , , , navigate, setNavigate] = createAtomHooks( - atom<{ fn: NavigateFunction | null }>({ fn() {} }), -) -const getStableRouterNavigate = () => navigate().fn -export { getStableRouterNavigate, setNavigate } diff --git a/apps/renderer/src/atoms/server-configs.ts b/apps/renderer/src/atoms/server-configs.ts index d48daba17..02eac3b64 100644 --- a/apps/renderer/src/atoms/server-configs.ts +++ b/apps/renderer/src/atoms/server-configs.ts @@ -1,7 +1,7 @@ +import type { ServerConfigs } from "@follow/models/types" import { atom } from "jotai" import { createAtomHooks } from "~/lib/jotai" -import type { ServerConfigs } from "~/models" export const [, , useServerConfigs, , getServerConfigs, setServerConfigs] = createAtomHooks( atom>(null), diff --git a/apps/renderer/src/atoms/settings/general.ts b/apps/renderer/src/atoms/settings/general.ts index a9b6ba98b..8fff08649 100644 --- a/apps/renderer/src/atoms/settings/general.ts +++ b/apps/renderer/src/atoms/settings/general.ts @@ -1,9 +1,8 @@ +import { createSettingAtom } from "@follow/atoms/helper/setting.js" import type { GeneralSettings } from "@follow/shared/interface/settings" import { jotaiStore } from "~/lib/jotai" -import { createSettingAtom } from "./helper" - const createDefaultSettings = (): GeneralSettings => ({ // App appLaunchOnStartup: false, diff --git a/apps/renderer/src/atoms/settings/helper.ts b/apps/renderer/src/atoms/settings/helper.ts deleted file mode 100644 index b66ac0874..000000000 --- a/apps/renderer/src/atoms/settings/helper.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { useAtomValue } from "jotai" -import { atomWithStorage, selectAtom } from "jotai/utils" -import { useMemo } from "react" - -import { useRefValue } from "~/hooks/common" -import { EventBus } from "~/lib/event-bus" -import { createAtomHooks } from "~/lib/jotai" -import { getStorageNS } from "~/lib/ns" -import type { SettingItem } from "~/modules/settings/setting-builder" -import { createSettingBuilder } from "~/modules/settings/setting-builder" - -declare module "~/lib/event-bus" { - interface CustomEvent { - SETTING_CHANGE_EVENT: { - updated: number - payload: Record - key: string - } - } -} - -export const createSettingAtom = ( - settingKey: string, - createDefaultSettings: () => T, -) => { - const atom = atomWithStorage(getStorageNS(settingKey), createDefaultSettings(), undefined, { - getOnInit: true, - }) - - const [, , useSettingValue, , getSettings, setSettings] = createAtomHooks(atom) - - const initializeDefaultSettings = () => { - const currentSettings = getSettings() - const defaultSettings = createDefaultSettings() - if (typeof currentSettings !== "object") setSettings(defaultSettings) - const newSettings = { ...defaultSettings, ...currentSettings } - setSettings(newSettings) - } - - const selectAtomCacheMap = {} as Record, any> - - const useSettingKey = >(key: T) => { - let selectedAtom = selectAtomCacheMap[key] - if (!selectedAtom) { - selectedAtom = selectAtom(atom, (s) => s[key]) - selectAtomCacheMap[key] = selectedAtom - } - - return useAtomValue(selectedAtom) as ReturnType[T] - } - - const useSettingSelector = < - T extends keyof ReturnType, - S extends ReturnType, - R = S[T], - >( - selector: (s: S) => R, - ): R => { - const stableSelector = useRefValue(selector) - - return useAtomValue( - // @ts-expect-error - useMemo(() => selectAtom(atom, stableSelector.current), [stableSelector]), - ) - } - - const setSetting = >( - key: K, - value: ReturnType[K], - ) => { - const updated = Date.now() - setSettings({ - ...getSettings(), - [key]: value, - - updated, - }) - - EventBus.dispatch("SETTING_CHANGE_EVENT", { - payload: { [key]: value }, - updated, - key: settingKey, - }) - } - - const clearSettings = () => { - setSettings(createDefaultSettings()) - } - - Object.defineProperty(useSettingValue, "select", { - value: useSettingSelector, - }) - - return { - useSettingKey, - useSettingSelector, - setSetting, - clearSettings, - initializeDefaultSettings, - - useSettingValue, - getSettings, - - settingAtom: atom, - } as { - useSettingKey: typeof useSettingKey - useSettingSelector: typeof useSettingSelector - setSetting: typeof setSetting - clearSettings: typeof clearSettings - initializeDefaultSettings: typeof initializeDefaultSettings - useSettingValue: typeof useSettingValue & { - select: T>>(key: T) => Awaited - } - getSettings: typeof getSettings - settingAtom: typeof atom - } -} - -export const createDefineSettingItem = - (_getSetting: () => T, setSetting: (key: any, value: Partial) => void) => - ( - key: K, - options: { - label: string - description?: string | JSX.Element - onChange?: (value: T[K]) => void - hide?: boolean - } & Omit, "onChange" | "description" | "label" | "hide" | "key">, - ): any => { - const { label, description, onChange, hide, ...rest } = options - - return { - key, - label, - description, - onChange: (value: any) => { - if (onChange) return onChange(value as any) - setSetting(key, value as any) - }, - disabled: hide, - ...rest, - } as SettingItem - } - -export const createSetting = ( - useSetting: () => T, - setSetting: (key: any, value: Partial) => void, -) => { - const SettingBuilder = createSettingBuilder(useSetting) - const defineSettingItem = createDefineSettingItem(useSetting, setSetting) - return { - SettingBuilder, - defineSettingItem, - } -} diff --git a/apps/renderer/src/atoms/settings/integration.ts b/apps/renderer/src/atoms/settings/integration.ts index f54a02ace..18ef943e3 100644 --- a/apps/renderer/src/atoms/settings/integration.ts +++ b/apps/renderer/src/atoms/settings/integration.ts @@ -1,7 +1,6 @@ +import { createSettingAtom } from "@follow/atoms/helper/setting.js" import type { IntegrationSettings } from "@follow/shared/interface/settings" -import { createSettingAtom } from "./helper" - export const createDefaultSettings = (): IntegrationSettings => ({ // eagle enableEagle: true, diff --git a/apps/renderer/src/atoms/settings/ui.ts b/apps/renderer/src/atoms/settings/ui.ts index 465aa4869..cce52ab74 100644 --- a/apps/renderer/src/atoms/settings/ui.ts +++ b/apps/renderer/src/atoms/settings/ui.ts @@ -1,7 +1,6 @@ +import { createSettingAtom } from "@follow/atoms/helper/setting.js" import type { UISettings } from "@follow/shared/interface/settings" -import { createSettingAtom } from "./helper" - export const createDefaultSettings = (): UISettings => ({ // Sidebar entryColWidth: 356, diff --git a/apps/renderer/src/atoms/sidebar.ts b/apps/renderer/src/atoms/sidebar.ts index 1300157a2..b946206e0 100644 --- a/apps/renderer/src/atoms/sidebar.ts +++ b/apps/renderer/src/atoms/sidebar.ts @@ -1,7 +1,7 @@ +import { FeedViewType } from "@follow/constants" import { atom } from "jotai" import { getRouteParams } from "~/hooks/biz/useRouteParams" -import { FeedViewType } from "~/lib/enum" import { createAtomHooks } from "~/lib/jotai" const defaultFeedView = FeedViewType.Articles diff --git a/apps/renderer/src/atoms/source-content.tsx b/apps/renderer/src/atoms/source-content.tsx index 5fd747c1e..0c7d292f5 100644 --- a/apps/renderer/src/atoms/source-content.tsx +++ b/apps/renderer/src/atoms/source-content.tsx @@ -1,7 +1,7 @@ import { atom } from "jotai" import { useCallback } from "react" -import { useModalStack } from "~/components/ui/modal" +import { useModalStack } from "~/components/ui/modal/stacked/hooks" import { createAtomHooks } from "~/lib/jotai" import { SourceContentView } from "~/modules/entry-content/components/SourceContentView" diff --git a/apps/renderer/src/atoms/updater.ts b/apps/renderer/src/atoms/updater.ts index 297e688d7..548d3cfa1 100644 --- a/apps/renderer/src/atoms/updater.ts +++ b/apps/renderer/src/atoms/updater.ts @@ -1,7 +1,7 @@ +import { getStorageNS } from "@follow/utils/ns" import { atomWithStorage } from "jotai/utils" import { createAtomHooks } from "~/lib/jotai" -import { getStorageNS } from "~/lib/ns" export const [, , useUpdaterStatus, , , setUpdaterStatus] = createAtomHooks( atomWithStorage(getStorageNS("updater"), false, undefined, { diff --git a/apps/renderer/src/atoms/user.ts b/apps/renderer/src/atoms/user.ts index 36482817e..41af27f60 100644 --- a/apps/renderer/src/atoms/user.ts +++ b/apps/renderer/src/atoms/user.ts @@ -1,7 +1,7 @@ import type { User } from "@auth/core/types" +import type { UserRole } from "@follow/constants" import { atom } from "jotai" -import type { UserRole } from "~/lib/enum" import { createAtomHooks } from "~/lib/jotai" export const [, , useWhoami, , whoami, setWhoami] = createAtomHooks(atom>(null)) diff --git a/apps/renderer/src/atoms/viewport.ts b/apps/renderer/src/atoms/viewport.ts deleted file mode 100644 index 02b82f760..000000000 --- a/apps/renderer/src/atoms/viewport.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { atom } from "jotai" - -export const viewportAtom = atom({ - /** - * 640px - */ - sm: false, - - /** - * 768px - */ - md: false, - - /** - * 1024px - */ - lg: false, - - /** - * 1280px - */ - xl: false, - - /** - * 1536px - */ - "2xl": false, - - h: 0, - w: 0, -}) diff --git a/apps/renderer/src/components/common/ErrorElement.tsx b/apps/renderer/src/components/common/ErrorElement.tsx index 23f0392ad..2c8ae4f1e 100644 --- a/apps/renderer/src/components/common/ErrorElement.tsx +++ b/apps/renderer/src/components/common/ErrorElement.tsx @@ -1,3 +1,4 @@ +import { Button } from "@follow/components/ui/button/index.js" import { captureException } from "@sentry/react" import { useEffect, useRef } from "react" import { isRouteErrorResponse, useNavigate, useRouteError } from "react-router-dom" @@ -7,7 +8,6 @@ import { attachOpenInEditor } from "~/lib/dev" import { getNewIssueUrl } from "~/lib/issues" import { clearLocalPersistStoreData } from "~/store/utils/clear" -import { Button } from "../ui/button" import { PoweredByFooter } from "./PoweredByFooter" export function ErrorElement() { diff --git a/apps/renderer/src/components/common/LoadMoreIndicator.tsx b/apps/renderer/src/components/common/LoadMoreIndicator.tsx index 18102bfb6..e645155f2 100644 --- a/apps/renderer/src/components/common/LoadMoreIndicator.tsx +++ b/apps/renderer/src/components/common/LoadMoreIndicator.tsx @@ -1,7 +1,6 @@ +import { LoadingCircle } from "@follow/components/ui/loading/index.jsx" import { useInView } from "react-intersection-observer" -import { LoadingCircle } from "../ui/loading" - export const LoadMoreIndicator: Component<{ onLoading: () => void }> = ({ onLoading, children, className }) => { diff --git a/apps/renderer/src/components/common/LoadRemixAsyncComponent.tsx b/apps/renderer/src/components/common/LoadRemixAsyncComponent.tsx index e91defd7a..40208aae7 100644 --- a/apps/renderer/src/components/common/LoadRemixAsyncComponent.tsx +++ b/apps/renderer/src/components/common/LoadRemixAsyncComponent.tsx @@ -1,8 +1,7 @@ +import { LoadingCircle } from "@follow/components/ui/loading/index.jsx" import type { FC, ReactNode } from "react" import { createElement, useEffect, useState } from "react" -import { LoadingCircle } from "../ui/loading" - export const LoadRemixAsyncComponent: FC<{ loader: () => Promise Header: FC<{ loader: () => any; [key: string]: any }> diff --git a/apps/renderer/src/components/common/MemoedDangerousHTMLStyle.tsx b/apps/renderer/src/components/common/MemoedDangerousHTMLStyle.tsx deleted file mode 100644 index cad4cf7d5..000000000 --- a/apps/renderer/src/components/common/MemoedDangerousHTMLStyle.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import type { FC } from "react" -import { memo, useMemo } from "react" - -export const MemoedDangerousHTMLStyle: FC< - { - children: string - } & React.DetailedHTMLProps, HTMLStyleElement> & - Record -> = memo(({ children, ...rest }) => ( -