chore: Release v0.0.1-alpha.14 (#548)

This commit is contained in:
DIYgod
2024-09-22 14:09:32 +08:00
committed by GitHub
706 changed files with 17135 additions and 6136 deletions
+21 -1
View File
@@ -32,6 +32,11 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
id-token: write
contents: write
attestations: write
steps:
- name: Check out Git repository Fully
uses: actions/checkout@v4
@@ -140,14 +145,29 @@ jobs:
path: |
out/make/**/*.dmg
retention-days: 90
- name: Generate artifact attestation
if: github.ref_type == 'tag' || github.event.inputs.tag_version != ''
continue-on-error: true
uses: actions/attest-build-provenance@v1
with:
subject-path: |
out/make/**/*.dmg
out/make/**/*.zip
out/make/**/*.exe
out/make/**/*.AppImage
out/make/**/*.yml
- run: npx changelogithub
if: github.ref_type == 'tag' || github.event.inputs.tag_version != ''
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Version
id: version
uses: ./.github/actions/setup-version
- name: Create Release Draft
if: github.ref_type == 'tag' || github.event.inputs.tag_version != ''
uses: softprops/action-gh-release@v2
+5 -5
View File
@@ -3,13 +3,13 @@ on:
push:
branches: [main, dev]
name: CI Typecheck and Lint
name: CI Format, Typecheck and Lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Lint and Typecheck
name: Format, Lint and Typecheck
runs-on: ubuntu-latest
strategy:
@@ -33,10 +33,10 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Lint and Typecheck
- name: Format, Lint and Typecheck
run: |
pnpm run format:check
pnpm run typecheck
npm run lint
pnpm run lint
- name: Run test
run: pnpm test
+4 -1
View File
@@ -1 +1,4 @@
src/hono.ts
packages/shared/src/hono.ts
pnpm-lock.yaml
CHANGELOG.md
+1 -1
View File
@@ -55,7 +55,7 @@
"severity": "off"
}
],
"cSpell.words": ["rsshub"],
"cSpell.words": ["rsshub", "Русский"],
"editor.foldingImportsByDefault": true,
"commentTranslate.hover.enabled": false,
"typescript.tsdk": "node_modules/typescript/lib",
+97 -1
View File
@@ -1,6 +1,6 @@
# CHANGELOG
## [0.0.1-alpha.13](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.3...v0.0.1-alpha.13) (2024-09-16)
## [0.0.1-alpha.14](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.3...v0.0.1-alpha.14) (2024-09-22)
### Bug Fixes
@@ -21,30 +21,39 @@
* add feed should validate feed id first ([767710d](https://github.com/RSSNext/follow/commit/767710deda41af1842179ef03f9b6b1b79208f9e))
* add feed temp store use nonce ([6e36232](https://github.com/RSSNext/follow/commit/6e36232b41f1b6d877caf74e1ad7be50da716381))
* add feed when site url not match ([1a2190c](https://github.com/RSSNext/follow/commit/1a2190c1aa834a33932788e65269a1128fd3a7e2))
* add hover bg color when context menu opened ([6ceb263](https://github.com/RSSNext/follow/commit/6ceb263b777ccc9681cd086a28e019ce9bda3a43))
* add language selector loading lock map ([2d14c1e](https://github.com/RSSNext/follow/commit/2d14c1e5b5ad086b3556dd9a8862a6ce00368c4d))
* add link ([d9168c0](https://github.com/RSSNext/follow/commit/d9168c01b3f2a16fbfeadb722173e819dd3feb80))
* add nonce id for temp feed ([8f81d99](https://github.com/RSSNext/follow/commit/8f81d99f1dd48e60f9861d69c840c77fa70bde93))
* add page error boundary ([86d366d](https://github.com/RSSNext/follow/commit/86d366db76add0ad07eb921290b9444b211e2c4f))
* add show readability tip condition ([208e404](https://github.com/RSSNext/follow/commit/208e4040cea5d3485acf5750e7120fb5f715e30f))
* add some polyfills for old browser, fixed [#236](https://github.com/RSSNext/follow/issues/236) ([b1fbfbd](https://github.com/RSSNext/follow/commit/b1fbfbd7e38a6a10430f7ed2d4b0644c2d5bbf22))
* add tooltip for resize panel ([cdec351](https://github.com/RSSNext/follow/commit/cdec3510352cc7281e75ef1957e32bc6e712cf04))
* adjust card style ([bec6d1a](https://github.com/RSSNext/follow/commit/bec6d1a259560261d06c9ed1f4ac56549f1eaae7))
* adjust claim modal style ([ea3c96f](https://github.com/RSSNext/follow/commit/ea3c96f8f3745440108255980e3b66e38d83af4c))
* adjust code block padding ([3a164e6](https://github.com/RSSNext/follow/commit/3a164e6aa893b9c6be10b87ac981c2a4ccca4bee))
* adjust layout ([cf9285b](https://github.com/RSSNext/follow/commit/cf9285b40e6fc8b027588fe01a0f50b29dd202dc))
* adjust responsive breakpoint for entry content ([d9235f4](https://github.com/RSSNext/follow/commit/d9235f4e68b71c143b2c404c925a3602378a3cda))
* after webview fullscreen force repaint ([4187b52](https://github.com/RSSNext/follow/commit/4187b52ae213d9b00f70aac4a6c0dacbb2339e50))
* align end for corner button in player ([#301](https://github.com/RSSNext/follow/issues/301)) ([e551063](https://github.com/RSSNext/follow/commit/e55106307a7ce04be3e6cf34079d6781203eff1e))
* align to the baseline ([aebae13](https://github.com/RSSNext/follow/commit/aebae13cbcb0b5dde10bad8e06868c0eb605b13d))
* allow cancel proxy configuration ([#545](https://github.com/RSSNext/follow/issues/545)) ([6e70350](https://github.com/RSSNext/follow/commit/6e70350f05821c26a92700d38e9243d9730eeff0))
* allow logout on login page ([#244](https://github.com/RSSNext/follow/issues/244)) ([8b679d1](https://github.com/RSSNext/follow/commit/8b679d1abdb7db2515bd1acb013adb7d1870312f))
* allow prod and dev builds running in the same time ([#479](https://github.com/RSSNext/follow/issues/479)) ([7140751](https://github.com/RSSNext/follow/commit/7140751bc2c068782b6e9e9255754629d89152c9))
* allow toggle switch by clicking label ([#185](https://github.com/RSSNext/follow/issues/185)) ([5d98eb4](https://github.com/RSSNext/follow/commit/5d98eb42303e4ba6bbe0bfd37d8a17b31f66658a))
* alpha typo ([961a75c](https://github.com/RSSNext/follow/commit/961a75cd46227c7bb11bae3743b970b2884ccc44))
* audio player async logic and auto pause logic ([ba40b44](https://github.com/RSSNext/follow/commit/ba40b44ce91bb8acd118b9c6d846ed8d5b9b022c))
* audioCover animation and estimatedMins style ([#523](https://github.com/RSSNext/follow/issues/523)) ([11ff31b](https://github.com/RSSNext/follow/commit/11ff31bd40af1884a1760d0d1ca5b9a726f13620))
* auto completion can not open when focus in modal ([591f13b](https://github.com/RSSNext/follow/commit/591f13b17f8a22c0c39718d67a88b2024c57efb7))
* auto fill default category and view ([ab31850](https://github.com/RSSNext/follow/commit/ab31850b68b215bef9c4c1ed4e75abad5aaa625d))
* avatar setting ([55b7868](https://github.com/RSSNext/follow/commit/55b7868f2e2aa3c01468e1268e3436485491ee1a))
* border color in dark mode ([472fbb2](https://github.com/RSSNext/follow/commit/472fbb2a6b41d9953bbfbda5452558621f71c8d5))
* button align ([456b6f2](https://github.com/RSSNext/follow/commit/456b6f2c0c41734d771b9677971430178c0cd20a))
* button styles, fixed [#202](https://github.com/RSSNext/follow/issues/202) ([6649577](https://github.com/RSSNext/follow/commit/66495777798cb4775ccc440a0c6354dcebe6cd9e))
* button transition ([f731d1e](https://github.com/RSSNext/follow/commit/f731d1e34e151828b6fa9553361f476da9d7e39b))
* calc toc scroller range when entry content changed ([66035fe](https://github.com/RSSNext/follow/commit/66035fea72e3ce0c6fbcd8380fbdef612e052cb4))
* can use under window blur ([9b2656e](https://github.com/RSSNext/follow/commit/9b2656ec53f3865378b7f2392d59a6828b31149c))
* catch access stylesheet error ([16a6231](https://github.com/RSSNext/follow/commit/16a62310e3e0e2a79c5392cec0e7658b97d0ee21))
* category in route should encodeURLComponent ([d5b79cb](https://github.com/RSSNext/follow/commit/d5b79cba8a5d6d8fe18efee5d58da5610fc3ce68))
* check undefined view ([71712f4](https://github.com/RSSNext/follow/commit/71712f464d2ab3043b602d4d2c311e4cc851e046))
* ci and tootip portal ([3729917](https://github.com/RSSNext/follow/commit/37299173c8fcaf88d44b1a54baf7ddc03aa20ca6))
@@ -57,6 +66,7 @@
* copywrite ([8967d20](https://github.com/RSSNext/follow/commit/8967d20102bc1ad6f2f94b38909c7abfca6168d1))
* corner player tooltip bg color ([16b91f9](https://github.com/RSSNext/follow/commit/16b91f9a7d3267f34f525c2e820efff6e1cbc049))
* correct follower word ([#438](https://github.com/RSSNext/follow/issues/438)) ([e31e343](https://github.com/RSSNext/follow/commit/e31e3433dfdafcab2276f2794065af81ca1f75fe))
* crashes when docs appear in the discover result ([#494](https://github.com/RSSNext/follow/issues/494)) ([0c470be](https://github.com/RSSNext/follow/commit/0c470bed3eed1533d36e2eff60f9a1aa0ff0d861))
* custom modal ([8d03308](https://github.com/RSSNext/follow/commit/8d03308091a57745489bb48617b7e11134bb89c3))
* daily report animation ([ff16272](https://github.com/RSSNext/follow/commit/ff162722a927d3708f3d857626e6412ae35d3880))
* daily report link title ([0a58159](https://github.com/RSSNext/follow/commit/0a58159acd4fbc12e970f745f27e6488904a99d9))
@@ -67,22 +77,29 @@
* deeplink navigate ([00d41ce](https://github.com/RSSNext/follow/commit/00d41cee5632dab86f7a93b1bc965cb3a896417a))
* default extra window size ([5688eff](https://github.com/RSSNext/follow/commit/5688eff6a70ab9abc3e94d9dce861726df8d9123))
* 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))
* discover form should preview twice when has optional value ([f0f8185](https://github.com/RSSNext/follow/commit/f0f8185d92e447943c14a4ceeeceb7211498bc28))
* discover page title i18n ([b92d317](https://github.com/RSSNext/follow/commit/b92d317e9c1dbdd674a6b122a02f3f6a3826682f))
* **discover:** update follow status after add feed, closes [#269](https://github.com/RSSNext/follow/issues/269), closes ([32a55ec](https://github.com/RSSNext/follow/commit/32a55ece6440f80f837adc6d558029ea5fbd6982))
* don't retry when 404 ([8bd9bd0](https://github.com/RSSNext/follow/commit/8bd9bd0a8bf92764d8dd13a0728e3ab821b3484b))
* dont handle unread when filter applied ([acfb35a](https://github.com/RSSNext/follow/commit/acfb35abd0edb85989549849d0176c4a65e5f9fa))
* downgarde vitest ([dee089e](https://github.com/RSSNext/follow/commit/dee089e1c75bf9031663b682aff9cee33b60db76))
* draggable panel dragging bg color ([8de7078](https://github.com/RSSNext/follow/commit/8de7078d10b733456c480117ba8ed8d2166e20b9))
* drawer edge shadow style ([cbb8649](https://github.com/RSSNext/follow/commit/cbb8649fde99e7a800153ad35aa041aaf44e6dcf))
* duplicated separator ([6e1ee50](https://github.com/RSSNext/follow/commit/6e1ee50536ded4b65f76cdb35bdf98c4657a1a74))
* 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))
* electron context menu i18n ([1a1d8ab](https://github.com/RSSNext/follow/commit/1a1d8ab5c1ff4917d3b3368059eff0b4cdf57520))
* electron exit webview fullscreen sidebar color ([bc7914f](https://github.com/RSSNext/follow/commit/bc7914f803939897d817080972e5307cf58f8caf))
* electron external window size option ([399d5d7](https://github.com/RSSNext/follow/commit/399d5d7a2cda5c7a7f9ce91ae9b9125f9ece7c54))
* electron search ([63bea18](https://github.com/RSSNext/follow/commit/63bea180f545e2f64cdc7e379f807333fee0ded6))
* electron title bar drag-region ([29ab323](https://github.com/RSSNext/follow/commit/29ab32344fafda613b0c9d49b587786eaa40b00a))
* electron window frame and `backgroundMaterial` ([e18ec75](https://github.com/RSSNext/follow/commit/e18ec754a05231fb82a7cbdb80632d79a6232872))
* electron window type ([909d692](https://github.com/RSSNext/follow/commit/909d6929da5bd3930a6e1d8aa3342c46d00e5c7d))
* 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))
* ensure unique keys for search items ([#500](https://github.com/RSSNext/follow/issues/500)) ([6c6b082](https://github.com/RSSNext/follow/commit/6c6b0828b83ff62d95c56417dcb0ebc1faed9535))
* entries hasNext ([4cb5678](https://github.com/RSSNext/follow/commit/4cb56784acfb46516a4320f0088c294eafb32fcf))
* entry bar action ([ba23dcf](https://github.com/RSSNext/follow/commit/ba23dcf46ff7569562d0a786ab85d46093b8abe8))
* entry column padding top and filter unread/read in tweet view ([d181771](https://github.com/RSSNext/follow/commit/d181771a7bf314cdb30f2fdd76294c5cded524ab))
@@ -101,6 +118,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 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))
* feed icon style ([03c202e](https://github.com/RSSNext/follow/commit/03c202eb568c684e9645003b65f48cad6099071b))
@@ -109,9 +127,12 @@
* **feed-icon:** re-render loop ([b6f78bb](https://github.com/RSSNext/follow/commit/b6f78bbbf89b804fc4a0ad89b524f0a24673c19a))
* 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 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))
* 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))
* format ([cd4473b](https://github.com/RSSNext/follow/commit/cd4473b3062ca780c0c163c81d3d265077c26862))
* format time locale fallback ([6b1009e](https://github.com/RSSNext/follow/commit/6b1009ecfde47d68859a202a2be8a1cde901f2fc))
* generate i18n template location ([0877448](https://github.com/RSSNext/follow/commit/08774485b10e22dee67333652bb28ecb700e077b))
* gird item text and icon align center ([eabd59c](https://github.com/RSSNext/follow/commit/eabd59cf1feb774759279832005fcd0e26aa7bb6))
* gird mode skeleton ([0a7f648](https://github.com/RSSNext/follow/commit/0a7f6488c176ee059f7c87f3c51e0234c85c1d4c))
* group header extra action button for wider mode ([213b4a5](https://github.com/RSSNext/follow/commit/213b4a5864c78716648b2319f5d6f0dfcb531e3a))
@@ -123,32 +144,41 @@
* hide entry read history, fixed [#278](https://github.com/RSSNext/follow/issues/278) ([a73b4ab](https://github.com/RSSNext/follow/commit/a73b4abe2212b5ba969770358d8db7306b6ad4e6))
* hide peek modal toc ([9c66b33](https://github.com/RSSNext/follow/commit/9c66b33887126287d9f6f5a39f85f76818e28f1f))
* hide tip when feed owned by me ([dfb3c6d](https://github.com/RSSNext/follow/commit/dfb3c6d377041f524c9da80c03639e6fea304202))
* hono.ts ([fd03caa](https://github.com/RSSNext/follow/commit/fd03caac22f9e035734d369351134ed63da93439))
* i18n dispatcher ([c038c79](https://github.com/RSSNext/follow/commit/c038c791af14418ee641af08e689a619b99a1735))
* i18n persist ([18e0353](https://github.com/RSSNext/follow/commit/18e035394b8d1a77f8454f47e0049359e69d750a))
* **i18n:** dup key ([d90964e](https://github.com/RSSNext/follow/commit/d90964ea9e32d5d7b162d6d7525df213ac732e12))
* **i18n:** give star ([#502](https://github.com/RSSNext/follow/issues/502)) ([9ead475](https://github.com/RSSNext/follow/commit/9ead4754d31fee3a1c14a3ef9210a621c2dd039f))
* icon button transition ([596538b](https://github.com/RSSNext/follow/commit/596538ba10b6b70d12ccc4efdd9f206d9ba11817))
* icon fallback line height ([02cd98d](https://github.com/RSSNext/follow/commit/02cd98d9cc9c09006a91277a5b976d753054738d))
* image url replacement ([8e75a8c](https://github.com/RSSNext/follow/commit/8e75a8cc6931b354e3206ea22917842c991d4c45))
* import circular and copywrite i18n ([725f9f5](https://github.com/RSSNext/follow/commit/725f9f5509c3b34079923fad47096b108568ccd6))
* improve code block parser ([e72cb2d](https://github.com/RSSNext/follow/commit/e72cb2df3f1f5cd314feeb4a9bcc20e30204bca5))
* incorrect tooltip in read history ([#385](https://github.com/RSSNext/follow/issues/385)) ([cabe210](https://github.com/RSSNext/follow/commit/cabe210aaf8f4a1133fa653532874fa86d02c252))
* inline table style ([5837bd4](https://github.com/RSSNext/follow/commit/5837bd4089b59855d0b583aed5d0e97fce04e094))
* Input issues fixed [#535](https://github.com/RSSNext/follow/issues/535),[#536](https://github.com/RSSNext/follow/issues/536) ([3d48637](https://github.com/RSSNext/follow/commit/3d486379b91dff13bfbcc90532efd3e186405a13))
* intelligence ([8b889d1](https://github.com/RSSNext/follow/commit/8b889d1307186d07c4672879d77f77e1d8fead7b))
* invitation code wrap ([4b48202](https://github.com/RSSNext/follow/commit/4b48202ea70ed80b858312d35cf04d1d66515865))
* invitation page error display area ([5915357](https://github.com/RSSNext/follow/commit/59153573d8a5d368adfe41b0f5cebc4d6d44a9f3))
* **item:** center content if no desc ([18e26a4](https://github.com/RSSNext/follow/commit/18e26a41c3cf80316bc97c44a1239e6ec45c5db9))
* kbd cls and set home scope in shortcuts guideline ([d9999a3](https://github.com/RSSNext/follow/commit/d9999a3fc6cfeae0f3b45b6390cf79d9135566b7))
* lang/*.json ([#526](https://github.com/RSSNext/follow/issues/526)) ([be3b2e7](https://github.com/RSSNext/follow/commit/be3b2e7503c1061a1e312394bb0c3556e39ec062))
* language setting syncing ([fa1dc5d](https://github.com/RSSNext/follow/commit/fa1dc5df35a2225bb22320a8fc049d3c0b75fa5b))
* link underline style when selected ([781b120](https://github.com/RSSNext/follow/commit/781b1200f8eae3f61b39dc53151c5a688fa36d1b))
* lint ([ef0d80d](https://github.com/RSSNext/follow/commit/ef0d80d8546c804b1b52c58fca7640d2f541188a))
* list item overlay style ([20ef773](https://github.com/RSSNext/follow/commit/20ef77342e73d205409644386c162dc164da009e))
* loadFile options hash ([b41fa66](https://github.com/RSSNext/follow/commit/b41fa665fa334f0037de294d8e0585a5cf94c649))
* loading circle clip path ([ba396be](https://github.com/RSSNext/follow/commit/ba396beaa78eae3c1b250fd846cc8434c2abc07f))
* loading style ([61ee2cc](https://github.com/RSSNext/follow/commit/61ee2ccb3e30d3ab82de0bfe6aca35df38794dca))
* login page style ([094a668](https://github.com/RSSNext/follow/commit/094a6684b62de69748f20011f5bd0f68833c30e1))
* 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))
* mark read tooltip and shortcut optional ([d4d72dd](https://github.com/RSSNext/follow/commit/d4d72ddf933c89d246585c77b22f8f498b2a98a1))
* markdown link populate relative link ([bad5869](https://github.com/RSSNext/follow/commit/bad5869f3f974b96fa5513b99574f60fb8aba963))
* masonry layout cls ([9428368](https://github.com/RSSNext/follow/commit/9428368cfc4a00afb1c72f9ca3a4267b311c5b2b))
* **media:** if no src then return null ([183009a](https://github.com/RSSNext/follow/commit/183009adee6d5674923a72ae0f5a10b85d4c7ba6))
* missing feed caused by parsing domain error ([1385876](https://github.com/RSSNext/follow/commit/13858762b4fed592ab7e5040ae6a59a9f3872747))
* modal max height ([f9dc545](https://github.com/RSSNext/follow/commit/f9dc5458ab18af0a683834115324bba615323636))
* modal max height, fixed [#230](https://github.com/RSSNext/follow/issues/230) ([fbf4727](https://github.com/RSSNext/follow/commit/fbf4727608ada80ba0f42349f2dace0543e22f9e))
* modal overlay zindex, fixed [#271](https://github.com/RSSNext/follow/issues/271) ([7a5000f](https://github.com/RSSNext/follow/commit/7a5000f20503ade15033822d9ad1c11303424728))
* modal prevent dimiss when mouse select text ([d99dfbc](https://github.com/RSSNext/follow/commit/d99dfbc79a2d6adb19eb7086fbc3aff8e860fb7b))
@@ -159,13 +189,17 @@
* optimize code string parser ([b3d32d0](https://github.com/RSSNext/follow/commit/b3d32d09fd4d5b53ae1692ffdc154e8d37a77fdd))
* optimize invitation page ([5f93e4b](https://github.com/RSSNext/follow/commit/5f93e4baac340998b08aaa273e2185893fe88e92))
* 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))
* panel resize cursor style alway in `ew-reisze` ([41416d2](https://github.com/RSSNext/follow/commit/41416d21c8ce33029cba45dfe820a7cb04b0adc3))
* 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))
* player holder size ([78cb08c](https://github.com/RSSNext/follow/commit/78cb08c7dc98aeab9cb5575296470106dbeb4e84))
* player marquee mask ([aa9ca62](https://github.com/RSSNext/follow/commit/aa9ca624a8d0304838bc05c330a8165a41430d3e))
* position of swiper navigation buttons ([#541](https://github.com/RSSNext/follow/issues/541)) ([0d760e7](https://github.com/RSSNext/follow/commit/0d760e7bf9e4e74f823c715237c300773865650a))
* posthog capture app info ([8cf7ae2](https://github.com/RSSNext/follow/commit/8cf7ae26f47d6cbc58322978d915c699d16f95a3))
* posthog tracker ([f4790da](https://github.com/RSSNext/follow/commit/f4790da8b1f27937b47b27d127497742684e9cc1))
* power balance align center ([972ff76](https://github.com/RSSNext/follow/commit/972ff7675e75014270764ba8b69372ae0d7dd3a8))
* power icon color ([a765cd2](https://github.com/RSSNext/follow/commit/a765cd2853ff4fdc267db94600725e5c7dabbaae))
* preview image and video size ([e4e4700](https://github.com/RSSNext/follow/commit/e4e47006ee55aa59db5fdb76f565a5ec929f3d95))
* preview image fallback ([7410ca2](https://github.com/RSSNext/follow/commit/7410ca229afdb6fafb01f5ebe370d01dc33a4500))
@@ -175,6 +209,7 @@
* profile header transform when scroll up/down ([c0683ee](https://github.com/RSSNext/follow/commit/c0683eee6def2b835e79dab9eea37cb4567f02b7))
* prose max widht ([2bd5b45](https://github.com/RSSNext/follow/commit/2bd5b45e6bb4cc127dd07aa073d3b83c0a8bee82))
* provide a default ctx value for modal ([38ab5bf](https://github.com/RSSNext/follow/commit/38ab5bffafad32f97ac11a743a35be0a6012403d))
* radix auto focus issue ([b3d05b4](https://github.com/RSSNext/follow/commit/b3d05b42e9b0afd8b4e828bdf57eb564a53e613f))
* read history always show ([#413](https://github.com/RSSNext/follow/issues/413)) ([c3675b2](https://github.com/RSSNext/follow/commit/c3675b25886ddd33f232f0c146208cb8f42c0b36))
* read history delay to polling ([f6f8ec8](https://github.com/RSSNext/follow/commit/f6f8ec84dbb0e86b2d5a109088a1759b62c17dec))
* read history style in wide mode ([07ca5ea](https://github.com/RSSNext/follow/commit/07ca5ea22ea6675d08c5df72389733361c4789bb))
@@ -182,18 +217,27 @@
* reduce tolltip re-render ([c43bafd](https://github.com/RSSNext/follow/commit/c43bafdd5cd7a94f66c722e30d76ae31307f263f))
* reduce wallet setting margin size ([826ebd0](https://github.com/RSSNext/follow/commit/826ebd041a9a143d7785a52d95dc81388b0ea2b4))
* ref not found error ([372e043](https://github.com/RSSNext/follow/commit/372e043ed47c47f7677406bdb1115c7fe577dc29))
* regarding the style issue of selecting subscription types using the Tab and arrow keys ([#525](https://github.com/RSSNext/follow/issues/525)) ([cea7f4a](https://github.com/RSSNext/follow/commit/cea7f4a95ab7336c85613cc551c48639e20b2b9d))
* remove `src` ([9aa16b6](https://github.com/RSSNext/follow/commit/9aa16b62d84f40c90334396d219ee9ab2a371750))
* remove button leading ([84835c5](https://github.com/RSSNext/follow/commit/84835c5ed9df6ac1370b532980929049e8c0d245))
* remove comment ([5343ab2](https://github.com/RSSNext/follow/commit/5343ab2dbe3549a740509e150ebb27cad8b770a4))
* remove debug `zh_CN` args ([d650b47](https://github.com/RSSNext/follow/commit/d650b473b966471105c06841876183bc79fad714))
* remove duplicated en and tweak lang sort ([#547](https://github.com/RSSNext/follow/issues/547)) ([2bd3d0b](https://github.com/RSSNext/follow/commit/2bd3d0b4c8c68014771375d97d75e491bfd28385))
* remove duplicated shortcuts ([bc3ecde](https://github.com/RSSNext/follow/commit/bc3ecde2e22f22d12894a89d5e671a3e143d17d4))
* remove electron's default user-agent keep browser user agent ([#356](https://github.com/RSSNext/follow/issues/356)) ([adb39bc](https://github.com/RSSNext/follow/commit/adb39bcc056971698de9cf49f9934a575ef2ab3b))
* 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))
* reset is archived state on reset ([b701dd6](https://github.com/RSSNext/follow/commit/b701dd6e1badeaf0d0470bcff28abc3fb4057893))
* resizeable panel ([e2664c2](https://github.com/RSSNext/follow/commit/e2664c2dda663343fa8f53536d6b625daaba6103))
* Respect app light/dark mode over OS preference [#228](https://github.com/RSSNext/follow/issues/228) ([ecef3e9](https://github.com/RSSNext/follow/commit/ecef3e961a79ac9c99bf9a419fa7573433148da0))
* 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))
* 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))
* sentry config ([779236e](https://github.com/RSSNext/follow/commit/779236e0827af3981bce29e3c1ac9a527aec3fd5))
* set auth config first ([a281f58](https://github.com/RSSNext/follow/commit/a281f58a811213d933585280238fec4088ad7749))
* set language when init ([fb3b592](https://github.com/RSSNext/follow/commit/fb3b59210ea1f54af234653b5146ba8a9d4bb8cb))
* set selector width as a fixed value ([eb2a845](https://github.com/RSSNext/follow/commit/eb2a84520df503ca4f36955b9d1b312d086fe75a))
* setting align ([b0e86b0](https://github.com/RSSNext/follow/commit/b0e86b08d51deb3d62a96ce93c78bc5b7683e259))
@@ -208,6 +252,7 @@
* shortcut modal overlay and id ([c210dc9](https://github.com/RSSNext/follow/commit/c210dc900eda2b30e05a9a5434f06810c1a6cd14))
* shortcuts kbd shake ([#433](https://github.com/RSSNext/follow/issues/433)) ([7e8f462](https://github.com/RSSNext/follow/commit/7e8f462424e6b2b98b316c9814610034db93f8c9))
* should dismiss when outside (quick new panel) ([675ac84](https://github.com/RSSNext/follow/commit/675ac845d4b9d7c6a71b7891440d2860ca34f0a4))
* should use markdown to render link in rsshub parameter desc ([#505](https://github.com/RSSNext/follow/issues/505)) ([2f64787](https://github.com/RSSNext/follow/commit/2f64787e4bc1bc21bf1c1741ed0179f80c66549a))
* show add feed error message ([7763129](https://github.com/RSSNext/follow/commit/77631299438b4fe6b575a9de5881cebfea6e4ba4))
* show episode cover for podcast ([#315](https://github.com/RSSNext/follow/issues/315)) ([4ef7f8c](https://github.com/RSSNext/follow/commit/4ef7f8cbd38dd0a148c053e5ee0468e282efe5fb))
* show filtered button only if no next page ([6fb46e7](https://github.com/RSSNext/follow/commit/6fb46e7887409f735df99f7aa08cd0ef61976981))
@@ -219,18 +264,22 @@
* social media typography ([5d27d29](https://github.com/RSSNext/follow/commit/5d27d29e4bd2791248d6a907a889a4907f0e0d20))
* sort by preferred title, fix [#390](https://github.com/RSSNext/follow/issues/390) ([cc25c67](https://github.com/RSSNext/follow/commit/cc25c6785e98f7a200904bdac2b36ff03cf358dd))
* sort shortcut ([1f8e4a3](https://github.com/RSSNext/follow/commit/1f8e4a3b966891787f05d9b6d0ec0fe327260e49))
* split entry history api and accurate count ([8f3acd6](https://github.com/RSSNext/follow/commit/8f3acd648eab7f44f61c1685b996f02cfe8cc443))
* stable mark all feed list, fixed [#245](https://github.com/RSSNext/follow/issues/245) ([c9d098f](https://github.com/RSSNext/follow/commit/c9d098f4e9bc5d3e3ca5bd026f1947adf6dbcca7))
* stable shadow dom key ([06cafb5](https://github.com/RSSNext/follow/commit/06cafb50d8490a29856c27d9344b76090e9f81af))
* star icon place in grid template ([dc3ca01](https://github.com/RSSNext/follow/commit/dc3ca01df3870f5ef43b0e4654aa84fa46f034d8))
* stop stopPropagation on Media Imag ([a92f96b](https://github.com/RSSNext/follow/commit/a92f96bf6159316f595a742209a6bbca0d0b41fa))
* stored user profile item style ([64f40ee](https://github.com/RSSNext/follow/commit/64f40ee614a3d820b555c76b957287f289d01bb9))
* style ([#359](https://github.com/RSSNext/follow/issues/359)) ([3d39308](https://github.com/RSSNext/follow/commit/3d393086966826f194ae660b43bcb0cb33b3d6f3))
* style center ([a5e3311](https://github.com/RSSNext/follow/commit/a5e33112ff2782cdbca316ff1d4dd6fd78116a1c))
* **style:** button align center and ([38a5cb6](https://github.com/RSSNext/follow/commit/38a5cb682dc0c3082664a2192686ad16f68ecec3))
* **style:** video play button align center ([465f1a6](https://github.com/RSSNext/follow/commit/465f1a6acf6a1d96a28e724f071f8a68a327a56d))
* subcription status & category empty, input value null ([#263](https://github.com/RSSNext/follow/issues/263)) ([93e2ccf](https://github.com/RSSNext/follow/commit/93e2ccfd5831f8a7f43932acd2976785e3adfbff))
* subview layout ([36a34de](https://github.com/RSSNext/follow/commit/36a34de26caf2ff00847827635eedd3771faadc0))
* supports Windows ([#189](https://github.com/RSSNext/follow/issues/189)) ([486a328](https://github.com/RSSNext/follow/commit/486a328d357317361ef24222fab09eb47e26d07d))
* swap show all and unread only copy, fixed [#307](https://github.com/RSSNext/follow/issues/307) ([2b366d1](https://github.com/RSSNext/follow/commit/2b366d1e28e78649e1a7ed6d221d704bcbe4c520))
* the filename case issue with generate-i18n-locale add zh-hk ([#463](https://github.com/RSSNext/follow/issues/463)) ([a2eeb25](https://github.com/RSSNext/follow/commit/a2eeb253b3d8acb87d0d2f54914a19a9c75eb7ce))
* 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))
* threshold for sidebar temp show ([7d62ea6](https://github.com/RSSNext/follow/commit/7d62ea6801713e2b43b116c5ddfea0b1a96a6fe8))
* tip modal styles ([3154c4f](https://github.com/RSSNext/follow/commit/3154c4f95b47d7fbce6142f49b211799408bc5aa))
* toc active logic ([13ba679](https://github.com/RSSNext/follow/commit/13ba679ed879920798e434ee10c3fb407395dcb1))
@@ -259,13 +308,18 @@
* types ([d9458a1](https://github.com/RSSNext/follow/commit/d9458a1850b3e83e9bbb9374d4fc3b6884a24837))
* typing ([a386fd6](https://github.com/RSSNext/follow/commit/a386fd6e97fb98c42b3eedf156c5b167ff67bd34))
* typo ([deb96c5](https://github.com/RSSNext/follow/commit/deb96c538258c939c60762c723d58955899031cf))
* **ui:** social media gap if no media ([1435632](https://github.com/RSSNext/follow/commit/14356325e42d87c43f33b975fbb1d963cfa67251))
* **ui:** social media unread dot position ([e760676](https://github.com/RSSNext/follow/commit/e760676827297f60a4d00a51f4be98579c93c9f7))
* undo kbd color in dark mode ([2a106ae](https://github.com/RSSNext/follow/commit/2a106ae632e0641d58d0d45b88f61a1c5c6eafa5))
* unfollow ([613fdf8](https://github.com/RSSNext/follow/commit/613fdf85b7dc7148f4ade612805f9f3bd98f2268))
* 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))
* 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 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 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))
@@ -284,6 +338,7 @@
* **wallet:** add missing space between words in wallet ([#279](https://github.com/RSSNext/follow/issues/279)) ([6873d21](https://github.com/RSSNext/follow/commit/6873d21e267fda102b13bc2a4e52de9bd7eea206))
* 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))
* windows load locale resource, fixed [#447](https://github.com/RSSNext/follow/issues/447) ([862757a](https://github.com/RSSNext/follow/commit/862757a99ff5246058db5ca0d7e60b5f08a2f7ed))
* windows locale lead to app crash, fixed [#255](https://github.com/RSSNext/follow/issues/255) ([bb43da9](https://github.com/RSSNext/follow/commit/bb43da981894d4bf611218bd4b2001a39636df64))
* windows maximize will lost frame and background material ([2bd0e78](https://github.com/RSSNext/follow/commit/2bd0e78e4f859d9c98f53f748c9871a41348db1c))
* windows multi-display ([7490cd1](https://github.com/RSSNext/follow/commit/7490cd12d0e42a7f41931acd9d77bf64be39a26d))
@@ -295,7 +350,11 @@
### Features
* 10x token ([#354](https://github.com/RSSNext/follow/issues/354)) ([9088aea](https://github.com/RSSNext/follow/commit/9088aea6517b71fcd2ed387358fb9e8e97a962a9))
* achievement ([#512](https://github.com/RSSNext/follow/issues/512)) ([eaf1cd2](https://github.com/RSSNext/follow/commit/eaf1cd27af86cf895d14814ab530498ba3f0f44a))
* active entry when the entry modal is present ([1dc6160](https://github.com/RSSNext/follow/commit/1dc6160b972ba9baa7fdd2a5e90882a9cdd92b48))
* Add an indent to the table of contents ([#455](https://github.com/RSSNext/follow/issues/455)) ([0bd1b14](https://github.com/RSSNext/follow/commit/0bd1b14b59c733dd61c228f07e506dc49c9ccaa1))
* add biz code i18n for fr and ru ([#521](https://github.com/RSSNext/follow/issues/521)) ([0dc4b86](https://github.com/RSSNext/follow/commit/0dc4b866d7eff2d32df2158902d6d1fbdea41f27))
* add biz code i18n for zh-cn ([#503](https://github.com/RSSNext/follow/issues/503)) ([d35e011](https://github.com/RSSNext/follow/commit/d35e0119953a154d18273c1d155f14d03c9a6ce8))
* add biz user info on sentry tracker ([e3e52ab](https://github.com/RSSNext/follow/commit/e3e52abedeb5507ca71d663faa7ef050b661cf0a))
* 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))
@@ -306,26 +365,36 @@
* 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 manual setting lang lock keyu ([b9c6a8b](https://github.com/RSSNext/follow/commit/b9c6a8b58099c86a178494ffe4c875f7c31760a3))
* add object-cover to feed icon, add zh-HK and zh-TW errors lang ([#508](https://github.com/RSSNext/follow/issues/508)) ([9351a8f](https://github.com/RSSNext/follow/commit/9351a8fe735977ae02320370f9aa6a83854d7adf))
* add og image, fixed [#242](https://github.com/RSSNext/follow/issues/242) ([5d4e958](https://github.com/RSSNext/follow/commit/5d4e9586569e4afe212138d2001ed9007ce9950b))
* add player download src ([fc50751](https://github.com/RSSNext/follow/commit/fc5075139f2f82a66c703349a719927c35b11b09))
* add preview image bottom indicator ([bbc1591](https://github.com/RSSNext/follow/commit/bbc15913e8a1afd148c4c70a8056c64d46587791))
* add readability action rules ([5e8fb17](https://github.com/RSSNext/follow/commit/5e8fb17f4a849abd755d92d32d3e5e1a76a2d2ab))
* add reason debug for response error toast ([7d4260a](https://github.com/RSSNext/follow/commit/7d4260a614e678ae40c04630840e870db1298830))
* add resize indicator ([b752a60](https://github.com/RSSNext/follow/commit/b752a60db6db302c2ac3860a94993d75c29785be))
* 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 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))
* adjust spring scroll preset ([be3aa09](https://github.com/RSSNext/follow/commit/be3aa09b8e8c30a1797afdf558eb40b5c360cb34))
* ai daily in article content column ([a625d04](https://github.com/RSSNext/follow/commit/a625d04328ea209ead68ce0391a7108cbb2c4e6a))
* ai daily modal ([67d9559](https://github.com/RSSNext/follow/commit/67d9559229baca34aa3328ba711d0e29def5bb8e))
* apm ([602f50a](https://github.com/RSSNext/follow/commit/602f50aa1a2b1ad9559ae22c92c599907df0b8cc))
* **audio-view:** seek circle indicator ([94b9535](https://github.com/RSSNext/follow/commit/94b9535d28292dbc209e251e3b0cb18d480d6a3b))
* auto claim daily `POWER`, and update table style ([ca381ce](https://github.com/RSSNext/follow/commit/ca381cebf81cc745e56fe35811004d89b55609ba))
* auto enable readability if no content ([27ecfc4](https://github.com/RSSNext/follow/commit/27ecfc4a86f3e35f245c1bca2d1dba57ff7364f2))
* auto trim discover in search input ([039dd3d](https://github.com/RSSNext/follow/commit/039dd3dcd531d973d2c205a35693bcdd62657be4))
* cache i18n resource to speed up loading time ([b3748cc](https://github.com/RSSNext/follow/commit/b3748ccfe07964c0b7c45f6e29a8225883d1dfa4))
* cache tips for feed claim ([b307553](https://github.com/RSSNext/follow/commit/b3075535d67438cd78ffbe8209da216d8a57f433))
* cancel hover read when mouse leave quickly ([c5d5fc2](https://github.com/RSSNext/follow/commit/c5d5fc23193ad5faa30903113f1df1056c508fc4))
* change corner-player animation ([#513](https://github.com/RSSNext/follow/issues/513)) ([1ad247d](https://github.com/RSSNext/follow/commit/1ad247dbeec85988e34fa8404dd6d970e9ce37e4))
* change language only based on user device language and fix async chain ([13d62d5](https://github.com/RSSNext/follow/commit/13d62d5fe9ab50845247999e0f677fbeb1e3938b))
* clear autocompletion ([1118870](https://github.com/RSSNext/follow/commit/1118870c9e288d868b7a98fb085da1915043101d))
* clearer social media images ([02176d3](https://github.com/RSSNext/follow/commit/02176d3e49fcc4b1248d1c6a9700369ff316374d))
* clickable entry id in ai daily ([0ffe1e5](https://github.com/RSSNext/follow/commit/0ffe1e5b6d74f9ad09775b9100fef2e53d3a6595))
* collapseable user profile subscription, refer [#489](https://github.com/RSSNext/follow/issues/489) ([d22f4e5](https://github.com/RSSNext/follow/commit/d22f4e5d2b4212673652c266247eac78fbdcd059))
* compatible with feeds without siteURL ([87dc225](https://github.com/RSSNext/follow/commit/87dc2251b42a96628bdcb9cdcd36c998a8829c5e))
* context sub menu ([2d18c53](https://github.com/RSSNext/follow/commit/2d18c53de0cb8c99336d0e915941b1fdee36df98))
* copy logo svg ([512699c](https://github.com/RSSNext/follow/commit/512699c07080f3064f984f23a21e28356ef9fcc0))
@@ -337,8 +406,11 @@
* display feed certification in discover result ([425b8c3](https://github.com/RSSNext/follow/commit/425b8c3003b552215350d534640e18512e9d819b))
* display power purchase and tx ([dbe7aee](https://github.com/RSSNext/follow/commit/dbe7aee9151ee04147edbce7d34e1275edfc1254))
* 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))
* electron about redirect to app setting about, and add some other action ([159a11d](https://github.com/RSSNext/follow/commit/159a11da67affde5dcd220ed4ea192d34d0c0884))
* electron app locale sync to ui ([7912b53](https://github.com/RSSNext/follow/commit/7912b5351a5221aae7bbe2a4a6634defc0a1a039))
* enlarge the interactive area of the close button ([#483](https://github.com/RSSNext/follow/issues/483)) ([3cc7c21](https://github.com/RSSNext/follow/commit/3cc7c2117d951f9994963c7e4017293b4a8840fa))
* entry preview modal ([3981995](https://github.com/RSSNext/follow/commit/3981995a248680844cdd5a1f7663135863f4ef5f))
* expand entry read history ([#377](https://github.com/RSSNext/follow/issues/377)) ([e7f923a](https://github.com/RSSNext/follow/commit/e7f923a0a08e5a4c7e13ff8dd76820f1b4265f25))
* external page i18n ([8d8aa09](https://github.com/RSSNext/follow/commit/8d8aa09230eb5ddd55dffe074b20c9ed81e84a99))
@@ -347,18 +419,28 @@
* feed action add mark all as read ([7b72ef2](https://github.com/RSSNext/follow/commit/7b72ef211b962fc112647a34b10b815cf1b611ae))
* feed claim indicator ([85d8e22](https://github.com/RSSNext/follow/commit/85d8e226fbc7abe56d135cbf3afb2beffe076f13))
* feed form data prefetch from store ([7525130](https://github.com/RSSNext/follow/commit/75251307827c07c697c6c39b7485280759db25af))
* filter unused params ([cb9860d](https://github.com/RSSNext/follow/commit/cb9860d4b3fce913c2e9ecba0dd607c75592b8cf))
* flip for power claim toast ([7469ed2](https://github.com/RSSNext/follow/commit/7469ed243376a13d9bcb463d6d6af445293d7b97))
* follow feed by feed id ([30d1851](https://github.com/RSSNext/follow/commit/30d1851e3aefcc2da06981537627ccd415bb082c))
* guess code language ([03ba85a](https://github.com/RSSNext/follow/commit/03ba85a37302d41f3403d629849b1b4d3db915ba))
* hoverable translation design, fixes [#268](https://github.com/RSSNext/follow/issues/268) ([3ff11dc](https://github.com/RSSNext/follow/commit/3ff11dce35061de2b784621519eee79f87a93993))
* i18n for biz error ([c26bc52](https://github.com/RSSNext/follow/commit/c26bc5298bac31840de1c3c051ad1f91021a016f))
* i18n for user profile ([d81c2b5](https://github.com/RSSNext/follow/commit/d81c2b5791fcf1284809b68dd68b4067581cdb44))
* i18n generator ([d20ef05](https://github.com/RSSNext/follow/commit/d20ef05794dd6872cf553c11948172655275818a))
* **i18n:** add Finnish language support ([#401](https://github.com/RSSNext/follow/issues/401)) ([b1a625a](https://github.com/RSSNext/follow/commit/b1a625a036f8fd748e2efd6ffdf8cd6677c65f2a))
* **i18n:** add ar language support ([#408](https://github.com/RSSNext/follow/issues/408)) ([35a6589](https://github.com/RSSNext/follow/commit/35a6589f2555c64aa938c6b0f120b3321cbc1809))
* **i18n:** add ar-iq/kw/tn language support ([#462](https://github.com/RSSNext/follow/issues/462)) ([01ccd47](https://github.com/RSSNext/follow/commit/01ccd47358ed409b1bc8690467e96f16a8e7f30c))
* **i18n:** add French language support ([#409](https://github.com/RSSNext/follow/issues/409)) ([4197824](https://github.com/RSSNext/follow/commit/4197824a25f6b77a5d1f22489b6d9c76587eb392))
* **i18n:** add Italian language support ([#407](https://github.com/RSSNext/follow/issues/407)) ([79006a2](https://github.com/RSSNext/follow/commit/79006a2f10b9c1d59ea2b3d42ed4ac139ae1c93b))
* **i18n:** add Japanese language support ([#404](https://github.com/RSSNext/follow/issues/404)) ([6a8b243](https://github.com/RSSNext/follow/commit/6a8b243c3338a7c866383afb9e4ff845d7d2389a))
* **i18n:** add Portuguese language support ([#406](https://github.com/RSSNext/follow/issues/406)) ([d624c43](https://github.com/RSSNext/follow/commit/d624c43d1b9efabd927db4ff9af79afe009cf9a0))
* **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:** complete Traditional Chinese translation for native file ([#506](https://github.com/RSSNext/follow/issues/506)) ([2059329](https://github.com/RSSNext/follow/commit/2059329691b375a73cd9cb4f2389b68bbb544e41))
* **i18n:** fill out and optimized partial Chinese translations ([#431](https://github.com/RSSNext/follow/issues/431)) ([5f87190](https://github.com/RSSNext/follow/commit/5f87190f018fea7f34c3ccbfad081fd8b855f5b8))
* **i18n:** improve zh-CN ([#410](https://github.com/RSSNext/follow/issues/410)) ([0b0304e](https://github.com/RSSNext/follow/commit/0b0304eaa1dfa8396e78612a9a6a50653ce9669e))
* **i18n:** Optimized Chinese translations ([#443](https://github.com/RSSNext/follow/issues/443)) ([77e14cf](https://github.com/RSSNext/follow/commit/77e14cf651a44578c540cdd681a2ee1ea5a2f557))
* **i18n:** Simplified Chinese (partial) ([#353](https://github.com/RSSNext/follow/issues/353)) ([140d01a](https://github.com/RSSNext/follow/commit/140d01a521a472b56f420585f57b577727dee996))
* ignore feed errors within 9 hours ([b71926e](https://github.com/RSSNext/follow/commit/b71926ec286b77dd1b9fc25df459176063b194da))
* impl cmd+b ([ea8a832](https://github.com/RSSNext/follow/commit/ea8a83271e9be37c277540eb605651d7166d2ea4))
@@ -375,16 +457,19 @@
* language indicator ([bf7da04](https://github.com/RSSNext/follow/commit/bf7da0431fdffc45cf0136b9e5709bb1952f1036))
* larger text for date item ([c1ea43f](https://github.com/RSSNext/follow/commit/c1ea43fee280bf539d61b1f3c439a7031cf4ed3e))
* lighter unread number ([e7dba4f](https://github.com/RSSNext/follow/commit/e7dba4f18e8a078889e7923d1760cb08c29873fc))
* lists ([#533](https://github.com/RSSNext/follow/issues/533)) ([ffcc6c9](https://github.com/RSSNext/follow/commit/ffcc6c90d53b372d2d180f53d32fa47dff9daac4))
* load archived entries ([d7f4bb6](https://github.com/RSSNext/follow/commit/d7f4bb6b9f388849565a7d8fc21d2eafc0610d08))
* loading component new design ([91d0d76](https://github.com/RSSNext/follow/commit/91d0d76efecab753f1c0ff574c0982d45e29eece))
* loading indicator in external pages ([a931e85](https://github.com/RSSNext/follow/commit/a931e8509126c62f206ffe286b4b592cf4fb9035))
* make social media text can selectable ([72c4d6b](https://github.com/RSSNext/follow/commit/72c4d6b83f7a7fe95b2cb505790cb75b38080b93))
* manage feeds fuzzy search by feed title ([2839010](https://github.com/RSSNext/follow/commit/2839010964f4b27fb1e473211b17913506869fda))
* mark all as read new design ([11577dd](https://github.com/RSSNext/follow/commit/11577dd74040164ab7cd5190778cbe32022852ac))
* mark all flat button ([0611470](https://github.com/RSSNext/follow/commit/0611470551bde66bcc1fca6feae6e0005f0640cd))
* mark read doesn't require manual confirmation if hotkey called, fixed [#293](https://github.com/RSSNext/follow/issues/293) ([6ce06be](https://github.com/RSSNext/follow/commit/6ce06be58d9c5017c77b774cc53fa6076167d563))
* mark read for cateogry in ctx menu ([da79f1c](https://github.com/RSSNext/follow/commit/da79f1c2783fa65f164aaf4942ebfa2156b4bf26))
* markdown heading render ([f3ac1ac](https://github.com/RSSNext/follow/commit/f3ac1ac3c6e2c36203288921f0ea8c3635eec539))
* modal resize and draggable to absolute position ([aad5eba](https://github.com/RSSNext/follow/commit/aad5eba2edb66039d123e9e60e484b55d9a037df))
* more excluded path params ([3d16aa9](https://github.com/RSSNext/follow/commit/3d16aa9f8b3b369a146537f19ab9a2fe230e9553))
* more i18n text ([6f8acce](https://github.com/RSSNext/follow/commit/6f8acced7bc51d2bb22325506e1c9bc97ee963f7))
* 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))
@@ -419,6 +504,9 @@
* setting sync ([#273](https://github.com/RSSNext/follow/issues/273)) ([f1a3481](https://github.com/RSSNext/follow/commit/f1a34812fbb7ef0a503fc4e1c8ebdc46e376e391))
* shortcut h to show shortcuts modal ([#361](https://github.com/RSSNext/follow/issues/361)) ([e9dc7b2](https://github.com/RSSNext/follow/commit/e9dc7b2f4c2cb26d55f2b24ebfa12d1cf3db568d))
* show edit when self ([#412](https://github.com/RSSNext/follow/issues/412)) ([22b94a5](https://github.com/RSSNext/follow/commit/22b94a5d13e82468da1c9a14d6cfc9d272f22841))
* show media fallback for picture items ([83123f8](https://github.com/RSSNext/follow/commit/83123f8fb23e03a3384719e9228301aac122c215))
* show media fallback for video item ([3446a81](https://github.com/RSSNext/follow/commit/3446a81ea28d9e18e5dfa18306758cda64637520))
* show reasons for profile update failure ([#484](https://github.com/RSSNext/follow/issues/484)) ([b8b94ac](https://github.com/RSSNext/follow/commit/b8b94ac6c4e97088144f20cb8abd8f1d8080f8fd))
* smaller and fixed unread dot ([72aa3a8](https://github.com/RSSNext/follow/commit/72aa3a8cae968893b7ca3b0f8abf11c50c739c74))
* some optimize ([5f61579](https://github.com/RSSNext/follow/commit/5f6157972c7ce2bf45b6e7b4026d9e727795c9a3))
* sort the query results by the number of followers in asc order ([#379](https://github.com/RSSNext/follow/issues/379)) ([304cb7f](https://github.com/RSSNext/follow/commit/304cb7f59f8622cb076e5bf2b240b1a3f6c2614c))
@@ -430,12 +518,15 @@
* support Electron native search page content ([#198](https://github.com/RSSNext/follow/issues/198)) ([29b67dc](https://github.com/RSSNext/follow/commit/29b67dcf1b1c1c41b4b4d6be5df4dcfade6c31f5))
* support i18n ([#345](https://github.com/RSSNext/follow/issues/345)) ([53c1c66](https://github.com/RSSNext/follow/commit/53c1c6639f3e7383ec77f6aace672ba34cd8bbba))
* support pageup/pagedown to scroll up/down ([6e0c3bc](https://github.com/RSSNext/follow/commit/6e0c3bc5e3e2437a51fa991940b4e4496ed2bb75))
* support setting proxy for app ([#452](https://github.com/RSSNext/follow/issues/452)) ([cfd5275](https://github.com/RSSNext/follow/commit/cfd527545ade50a529698bdd57ec16d0f3ccee98))
* support toc parser ([fb4ca52](https://github.com/RSSNext/follow/commit/fb4ca522440aced4d2aa18fda2a9d5c43e32d0d1))
* sync indicator when disable ([945ddda](https://github.com/RSSNext/follow/commit/945dddae2534f07e5289e307c36de1f8334636bc))
* tiny styles ([78bcc55](https://github.com/RSSNext/follow/commit/78bcc5562baa12cece51da6564b77c6f37a1596c))
* tip to entries ([de22411](https://github.com/RSSNext/follow/commit/de22411dab3a5a0ddac886de93cd3da4f31e5494))
* toast when upgrade ([2a71bfc](https://github.com/RSSNext/follow/commit/2a71bfc0756011c0226c16ef53a755a47cf44acb))
* toc hoverable ([3be6f2b](https://github.com/RSSNext/follow/commit/3be6f2ba019cb914e8ff452065d252e01e7ae496))
* toc position calcation ([a7828d4](https://github.com/RSSNext/follow/commit/a7828d41e1e8e849a4f7df7e0c5e50c5d15a2491))
* **ui:** social media ui refresh ([#459](https://github.com/RSSNext/follow/issues/459)) ([fcd96ab](https://github.com/RSSNext/follow/commit/fcd96ab2db4335caa8a6d5055cf12b0a2802fea1))
* update hono.ts ([66174a0](https://github.com/RSSNext/follow/commit/66174a028d0e709e0bd38cd7862bddeb1bdd19b4))
* update hono.ts ([c9e65dc](https://github.com/RSSNext/follow/commit/c9e65dcdde649963aafaad3c0b83165bf86df5dd))
* update invitation dialog text ([b062ea2](https://github.com/RSSNext/follow/commit/b062ea2353093ec67e1309652bc0d996b87b177a))
@@ -444,6 +535,9 @@
* update redirect page layout ([bca6276](https://github.com/RSSNext/follow/commit/bca627696eca663abb02483ffb5c98ed2dc0eebc))
* use check api for dailytask; claim toast ([feec0b0](https://github.com/RSSNext/follow/commit/feec0b0f0fb717725bf34208715d89c73968e885))
* use claim check api ([03764da](https://github.com/RSSNext/follow/commit/03764dac0ec500068376372ce4d85b1bc412bcd4))
* use dotlottie and add confetti ([2385d15](https://github.com/RSSNext/follow/commit/2385d1530c62d7adada3923832d8f57a13268b6e))
* use user.handle default to share profile url ([36d51d9](https://github.com/RSSNext/follow/commit/36d51d96f89a0182fd59cd48ff175ea5e8009f2e))
* **ux:** rotating icon when reset rotate back ([13105ee](https://github.com/RSSNext/follow/commit/13105ee4177edb75d31b43d2bd1161516dcc8b8a))
* video player ([#225](https://github.com/RSSNext/follow/issues/225)) ([bb7d312](https://github.com/RSSNext/follow/commit/bb7d3127a9fe4543af12edfc49ce745e6ee7099e))
* video player i18n ([a498228](https://github.com/RSSNext/follow/commit/a4982289f8b4a7967e9ebea837109bd5e342b663))
* warn when go to external untrusted link ([06be9b5](https://github.com/RSSNext/follow/commit/06be9b58f7c054ef166ea7d5759944280de9a201))
@@ -451,8 +545,10 @@
### Performance Improvements
* **i18n:** use nested key to reduce i18n resource size ([4fb1487](https://github.com/RSSNext/follow/commit/4fb1487576bf3100e6cb2a8170c9d936b6401b42))
* memo entry column to reduce resize panel re-render ([6bca4b4](https://github.com/RSSNext/follow/commit/6bca4b4a033d27b0953a8e6c3e625e3cd9b71277))
* merge all namespace of i18n resource in prod ([92bfce0](https://github.com/RSSNext/follow/commit/92bfce0f7e5faa6eef8d19d813f682271dc1bbf0))
* persist tts voices ([9ea05b9](https://github.com/RSSNext/follow/commit/9ea05b9e517ccb67a4fc49cf85a255d15557a010))
* prefetch for entry list ([5c7a27d](https://github.com/RSSNext/follow/commit/5c7a27de7dedfaf1812f26823207331543dfcead))
* reduce re-render when ctx menu open ([96ff9f6](https://github.com/RSSNext/follow/commit/96ff9f660c0a469daafbb5f5cad47370bcd3a8f0))
* shadow dom css cache ([c1e3a02](https://github.com/RSSNext/follow/commit/c1e3a025f7ef8ff570399a44a95797c2c8261e42))
+2
View File
@@ -128,3 +128,5 @@ Since it is not very convenient to develop in Electron, the first way to develop
Follow is licensed under the GNU General Public License version 3 with the addition of the following special exception:
All content in the `icons/mgc` directory is copyrighted by https://mgc.mingcute.com/ and cannot be redistributed.
All content in the `lottie` directory is distributed under the [Lottie Simple License](https://lottiefiles.com/page/license).
+3
View File
@@ -0,0 +1,3 @@
export type { RendererHandlers } from "./src/renderer-handlers"
export type { Router } from "./src/tipc"
export { router } from "./src/tipc"
+2
View File
@@ -0,0 +1,2 @@
import "../../types/vite"
import "../../types/authjs"
+57
View File
@@ -0,0 +1,57 @@
{
"name": "@follow/electron-main",
"type": "module",
"private": true,
"author": "Follow Team",
"license": "GPL-3.0-only",
"homepage": "https://github.com/RSSNext",
"repository": {
"url": "https://github.com/RSSNext/follow",
"type": "git"
},
"exports": {
".": {
"types": "./dist/export.d.ts",
"import": "./dist/export.js"
}
},
"main": "./src/index.ts",
"scripts": {
"typecheck": "tsup && tsc --noEmit"
},
"dependencies": {
"@egoist/tipc": "0.3.2",
"@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/utils": "^3.0.0",
"@follow/shared": "workspace:*",
"@mozilla/readability": "^0.5.0",
"@sentry/electron": "5.4.0",
"builder-util-runtime": "9.2.5",
"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",
"electron-updater": "^6.3.4",
"font-list": "1.5.1",
"i18next": "^23.15.1",
"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.0",
"posthog-js": "1.163.0",
"posthog-node": "4.2.0",
"semver": "7.6.3",
"vscode-languagedetection": "npm:@vscode/vscode-languagedetection@^1.0.22"
},
"devDependencies": {
"@types/lodash-es": "4.17.12",
"@types/node": "^22.5.5",
"electron": "32.1.2",
"electron-devtools-installer": "3.2.0",
"hono": "4.6.2",
"typescript": "^5.6.2"
}
}
+5
View File
@@ -0,0 +1,5 @@
const langs = ["en", "zh-CN", "ja"]
export const currentSupportedLanguages = langs.sort()
export const ns = ["native"] as const
export const defaultNS = "native" as const
+13
View File
@@ -0,0 +1,13 @@
import type { defaultNS, ns } from "./constants"
import type { resources } from "./resources"
declare module "i18next" {
interface CustomTypeOptions {
ns: typeof ns
resources: (typeof resources)["en"]
defaultNS: typeof defaultNS
// if you see an error like: "Argument of type 'DefaultTFuncReturn' is not assignable to parameter of type xyz"
// set returnNull to false (and also in the i18next init options)
// returnNull: false;
}
}
+15
View File
@@ -0,0 +1,15 @@
import en from "@locales/native/en.json"
import ja from "@locales/native/ja.json"
import zh from "@locales/native/zh-CN.json"
export const resources = {
en: {
native: en,
},
zh: {
native: zh,
},
ja: {
native: ja,
},
}
+10 -7
View File
@@ -1,12 +1,13 @@
import { electronApp, optimizer } from "@electron-toolkit/utils"
import { APP_PROTOCOL, DEEPLINK_SCHEME } from "@shared/constants"
import { extractElectronWindowOptions } from "@shared/electron"
import { APP_PROTOCOL, DEEPLINK_SCHEME } from "@follow/shared/constants"
import { extractElectronWindowOptions } from "@follow/shared/electron"
import { env } from "@follow/shared/env"
import { app, BrowserWindow, session } from "electron"
import squirrelStartup from "electron-squirrel-startup"
import { env } from "../env"
import { isDev, isMacOS } from "./env"
import { initializeApp } from "./init"
import { initializeAppStage0, initializeAppStage1 } from "./init"
import { updateProxy } from "./lib/proxy"
import { setAuthSessionToken } from "./lib/user"
import { registerUpdater } from "./updater"
import { createMainWindow, createWindow } from "./window"
@@ -17,7 +18,8 @@ if (squirrelStartup) {
app.quit()
}
function bootsharp() {
function bootstrap() {
initializeAppStage0()
const gotTheLock = app.requestSingleInstanceLock()
if (!gotTheLock) {
@@ -28,7 +30,7 @@ function bootsharp() {
let mainWindow: BrowserWindow
initializeApp()
initializeAppStage1()
app.on("second-instance", (_, commandLine) => {
if (mainWindow) {
@@ -51,6 +53,7 @@ function bootsharp() {
mainWindow = createMainWindow()
updateProxy()
registerUpdater()
//remove Electron, Follow from user agent
@@ -164,4 +167,4 @@ function bootsharp() {
})
}
bootsharp()
bootstrap()
+45 -9
View File
@@ -1,11 +1,12 @@
import path from "node:path"
import { registerIpcMain } from "@egoist/tipc/main"
import { APP_PROTOCOL } from "@shared/constants"
import { APP_PROTOCOL } from "@follow/shared/constants"
import { app, nativeTheme, shell } from "electron"
import contextMenu from "electron-context-menu"
import { getIconPath } from "./helper"
import { t } from "./lib/i18n"
import { store } from "./lib/store"
import { registerAppMenu } from "./menu"
import { initializeSentry } from "./sentry"
@@ -17,7 +18,14 @@ const appFolder = {
}
const isDev = process.env.NODE_ENV === "development"
export const initializeApp = () => {
/**
* Mandatory and fast initializers for the app
*/
export function initializeAppStage0() {
app.setPath("appData", path.join(app.getPath("appData"), isDev ? appFolder.dev : appFolder.prod))
}
export const initializeAppStage1 = () => {
if (process.defaultApp) {
if (process.argv.length >= 2) {
app.setAsDefaultProtocolClient(APP_PROTOCOL, process.execPath, [
@@ -32,8 +40,6 @@ export const initializeApp = () => {
registerIpcMain(router)
app.setPath("appData", path.join(app.getPath("appData"), isDev ? appFolder.dev : appFolder.prod))
if (app.dock) {
app.dock.setIcon(getIconPath())
}
@@ -45,9 +51,18 @@ export const initializeApp = () => {
}
// In this file you can include the rest of your app"s specific main process
// code. You can also put them in separate files and require them here.
registerAppMenu()
contextMenu({
registerMenuAndContextMenu()
}
let contextMenuDisposer: () => void
export const registerMenuAndContextMenu = () => {
registerAppMenu()
if (contextMenuDisposer) {
contextMenuDisposer()
}
contextMenuDisposer = contextMenu({
showSaveImageAs: true,
showCopyLink: true,
showCopyImageAddress: true,
@@ -56,18 +71,39 @@ export const initializeApp = () => {
showSelectAll: false,
showCopyVideoAddress: true,
showSaveVideoAs: true,
labels: {
saveImageAs: t("contextMenu.saveImageAs"),
copyLink: t("contextMenu.copyLink"),
copyImageAddress: t("contextMenu.copyImageAddress"),
copyImage: t("contextMenu.copyImage"),
copyVideoAddress: t("contextMenu.copyVideoAddress"),
saveVideoAs: t("contextMenu.saveVideoAs"),
inspect: t("contextMenu.inspect"),
copy: t("contextMenu.copy"),
cut: t("contextMenu.cut"),
paste: t("contextMenu.paste"),
saveImage: t("contextMenu.saveImage"),
saveVideo: t("contextMenu.saveVideo"),
selectAll: t("contextMenu.selectAll"),
services: t("contextMenu.services"),
searchWithGoogle: t("contextMenu.searchWithGoogle"),
learnSpelling: t("contextMenu.learnSpelling"),
lookUpSelection: t("contextMenu.lookUpSelection"),
saveLinkAs: t("contextMenu.saveLinkAs"),
},
prepend: (_defaultActions, params) => {
return [
{
label: "Open Image in Browser",
label: t("contextMenu.openImageInBrowser"),
visible: params.mediaType === "image",
click: () => {
shell.openExternal(params.srcURL)
},
},
{
label: "Open Link in Browser",
label: t("contextMenu.openLinkInBrowser"),
visible: params.linkURL !== "",
click: () => {
shell.openExternal(params.linkURL)
@@ -1,9 +1,9 @@
import { env } from "@env"
import { env } from "@follow/shared/env"
import PKG from "@pkg"
import { hc } from "hono/client"
import { ofetch } from "ofetch"
import type { AppType } from "../../hono"
import type { AppType } from "../../../../packages/shared/src/hono"
import { logger } from "../logger"
import { getAuthSessionToken } from "./user"
+58
View File
@@ -0,0 +1,58 @@
import type { BrowserWindow } from "electron"
import { Menu } from "electron"
import { t } from "./i18n"
export const registerContextMenu = (window: BrowserWindow) => {
const handler = (_event: Electron.Event, props: Electron.ContextMenuParams) => {
const { selectionText, isEditable } = props
const selectionMenu = Menu.buildFromTemplate([
{ role: "copy", label: t("menu.copy"), accelerator: "CmdOrCtrl+C" },
{ type: "separator" },
{ role: "selectAll", label: t("menu.selectAll"), accelerator: "CmdOrCtrl+A" },
])
const inputMenu = Menu.buildFromTemplate([
{ role: "undo", label: t("menu.undo"), accelerator: "CmdOrCtrl+Z" },
{
role: "redo",
label: t("menu.redo"),
accelerator: "CmdOrCtrl+Shift+Z",
},
{ type: "separator" },
{
role: "cut",
label: t("menu.cut"),
accelerator: "CmdOrCtrl+X",
},
{
role: "copy",
label: t("menu.copy"),
accelerator: "CmdOrCtrl+C",
},
{
role: "paste",
label: t("menu.paste"),
accelerator: "CmdOrCtrl+V",
},
{
type: "separator",
},
{ role: "selectAll", label: t("menu.selectAll"), accelerator: "CmdOrCtrl+A" },
])
if (isEditable) {
inputMenu.popup({
window,
})
} else if (selectionText && selectionText.trim() !== "") {
selectionMenu.popup({ window })
}
}
window.webContents.on("context-menu", handler)
return () => {
window.webContents.removeListener("context-menu", handler)
}
}
+15
View File
@@ -0,0 +1,15 @@
import i18next from "i18next"
import { resources } from "../@types/resources"
export const defaultNS = "native"
export const i18n = i18next.createInstance() as typeof i18next
i18n.init({
fallbackLng: "en",
defaultNS,
resources,
})
export const { t } = i18n
@@ -1,4 +1,4 @@
import { env } from "@env"
import { env } from "@follow/shared/env"
import { PostHog } from "posthog-node"
import { getUser } from "./user"
+76
View File
@@ -0,0 +1,76 @@
import { session } from "electron"
import { logger } from "../logger"
import { store } from "./store"
// Sets up the proxy configuration for the app.
//
// See https://www.electronjs.org/docs/latest/api/session#sessetproxyconfig
// for more information about the proxy API.
//
// The open-source project [poooi/poi](https://github.com/poooi/poi) is doing well in proxy configuration
// refer the following files for more details:
//
// https://github.com/poooi/poi/blob/5741d0d02c0a08626dd53196b094223457014491/lib/proxy.ts#L36
// https://github.com/poooi/poi/blob/5741d0d02c0a08626dd53196b094223457014491/views/components/settings/network/index.es
export const setProxyConfig = (inputProxy: string) => {
const proxyUri = normalizeProxyUri(inputProxy)
store.set("proxy", proxyUri)
if (!proxyUri) {
return false
}
return true
}
export const getProxyConfig = () => {
const proxyConfig = store.get("proxy") as string | undefined
if (!proxyConfig) {
return
}
const proxyUri = normalizeProxyUri(proxyConfig)
return proxyUri
}
const URL_SCHEME = new Set(["http:", "https:", "ftp:", "socks:", "socks4:", "socks5:"])
const normalizeProxyUri = (userProxy: string) => {
if (!userProxy) {
return
}
try {
const proxyUrl = new URL(userProxy)
if (!URL_SCHEME.has(proxyUrl.protocol) || !proxyUrl.hostname || !proxyUrl.port) {
return
}
// There are multiple ways to specify a proxy in Electron,
// but for security reasons, we only support simple proxy URLs for now.
return [
`${proxyUrl.protocol}//${proxyUrl.hostname}:${proxyUrl.port}`,
// Failing over to using no proxy if the proxy is unavailable
"direct://",
].join(",")
} catch {
return
}
}
const BYPASS_RULES = ["<local>"].join(";")
export const updateProxy = () => {
const proxyUri = getProxyConfig()
if (!proxyUri) {
session.defaultSession.setProxy({
// Note that the system mode is different from setting no proxy configuration.
// In the latter case, Electron falls back to the system settings only if no command-line options influence the proxy configuration.
mode: "system",
})
return
}
logger.log(`Loading proxy: ${proxyUri}`)
session.defaultSession.setProxy({
proxyRules: proxyUri,
proxyBypassRules: BYPASS_RULES,
})
}
@@ -3,10 +3,14 @@ import { resolve } from "node:path"
import { app } from "electron"
import { JSONFileSyncPreset } from "lowdb/node"
export const db = JSONFileSyncPreset(resolve(app.getPath("userData"), "db.json"), {})
const db = JSONFileSyncPreset(resolve(app.getPath("userData"), "db.json"), {}) as {
data: Record<string, unknown>
write: () => void
read: () => void
}
export const store = {
get: (key: string) => db.data[key],
get: (key: string) => db.data[key] as any,
set: (key: string, value: any) => {
db.data[key] = value
db.write()
+69 -31
View File
@@ -1,9 +1,10 @@
import { dispatchEventOnWindow } from "@follow/shared/event"
import { name } from "@pkg"
import { dispatchEventOnWindow } from "@shared/event"
import type { BrowserWindow, MenuItem, MenuItemConstructorOptions } from "electron"
import { Menu } from "electron"
import { isDev, isMacOS } from "./env"
import { t } from "./lib/i18n"
import { revealLogFile } from "./logger"
import { checkForUpdates, quitAndInstall } from "./updater"
import { createSettingWindow, createWindow, getMainWindow } from "./window"
@@ -17,24 +18,24 @@ export const registerAppMenu = () => {
submenu: [
{
type: "normal",
label: `About ${name}`,
label: t("menu.about", { name }),
click: () => {
createSettingWindow("about")
},
},
{ type: "separator" },
{
label: "Settings...",
label: t("menu.settings"),
accelerator: "CmdOrCtrl+,",
click: () => createSettingWindow(),
},
{ type: "separator" },
{ role: "services" },
{ role: "services", label: t("menu.services") },
{ type: "separator" },
{ role: "hide" },
{ role: "hideOthers" },
{ role: "hide", label: t("menu.hide", { name }) },
{ role: "hideOthers", label: t("menu.hideOthers") },
{ type: "separator" },
{ role: "quit" },
{ role: "quit", label: t("menu.quit", { name }) },
],
},
] as MenuItemConstructorOptions[])
@@ -42,10 +43,11 @@ export const registerAppMenu = () => {
{
role: "fileMenu",
label: t("menu.file"),
submenu: [
{
type: "normal",
label: "Quick Add",
label: t("menu.quickAdd"),
accelerator: "CmdOrCtrl+N",
click: () => {
const mainWindow = getMainWindow()
@@ -57,7 +59,7 @@ export const registerAppMenu = () => {
{
type: "normal",
label: "Discover",
label: t("menu.discover"),
accelerator: "CmdOrCtrl+T",
click: () => {
const mainWindow = getMainWindow()
@@ -68,22 +70,22 @@ export const registerAppMenu = () => {
},
{ type: "separator" },
{ role: "close" },
{ role: "close", label: t("menu.close") },
],
},
{
label: "Edit",
label: t("menu.edit"),
submenu: [
{ role: "undo" },
{ role: "redo" },
{ role: "undo", label: t("menu.undo") },
{ role: "redo", label: t("menu.redo") },
{ type: "separator" },
{ role: "cut" },
{ role: "copy" },
{ role: "paste" },
{ role: "cut", label: t("menu.cut") },
{ role: "copy", label: t("menu.copy") },
{ role: "paste", label: t("menu.paste") },
{ type: "separator" },
{
type: "normal",
label: "Search",
label: t("menu.search"),
accelerator: "CmdOrCtrl+F",
click(_e, window) {
if (!window) return
@@ -92,37 +94,73 @@ export const registerAppMenu = () => {
},
...((isMacOS
? [
{ role: "pasteAndMatchStyle" },
{ role: "delete" },
{ role: "selectAll" },
{ role: "pasteAndMatchStyle", label: t("menu.pasteAndMatchStyle") },
{ role: "delete", label: t("menu.delete") },
{ role: "selectAll", label: t("menu.selectAll") },
{ type: "separator" },
{
label: "Speech",
submenu: [{ role: "startSpeaking" }, { role: "stopSpeaking" }],
label: t("menu.speech"),
submenu: [
{ role: "startSpeaking", label: t("menu.startSpeaking") },
{ role: "stopSpeaking", label: t("menu.stopSpeaking") },
],
},
]
: [
{ role: "delete" },
{ role: "delete", label: t("menu.delete") },
{ type: "separator" },
{ role: "selectAll" },
{ role: "selectAll", label: t("menu.selectAll") },
]) as MenuItemConstructorOptions[]),
],
},
{
role: "viewMenu",
label: t("menu.view"),
submenu: [
{ role: "reload", label: t("menu.reload") },
{ role: "forceReload", label: t("menu.forceReload") },
{ role: "toggleDevTools", label: t("menu.toggleDevTools") },
{ type: "separator" },
{ role: "resetZoom", label: t("menu.actualSize") },
{ role: "zoomIn", label: t("menu.zoomIn") },
{ role: "zoomOut", label: t("menu.zoomOut") },
{ type: "separator" },
{ role: "togglefullscreen", label: t("menu.toggleFullScreen") },
],
},
{ role: "windowMenu" },
{
role: "help",
role: "windowMenu",
label: t("menu.window"),
submenu: [
{
label: "Open log file",
role: "minimize",
label: t("menu.minimize"),
},
{
role: "zoom",
label: t("menu.zoom"),
},
{
type: "separator",
},
{
role: "front",
label: t("menu.front"),
},
],
},
{
role: "help",
label: t("menu.help"),
submenu: [
{
label: t("menu.openLogFile"),
click: async () => {
await revealLogFile()
},
},
{
label: "Check for Updates",
label: t("menu.checkForUpdates"),
click: async () => {
getMainWindow()?.show()
await checkForUpdates()
@@ -134,10 +172,10 @@ export const registerAppMenu = () => {
if (isDev) {
menus.push({
label: "Debug",
label: t("menu.debug"),
submenu: [
{
label: "follow https://github.com/RSSNext/follow/releases.atom",
label: t("menu.followReleases"),
click: () => {
createWindow({
extraPath: `#add?url=${encodeURIComponent(
@@ -150,7 +188,7 @@ export const registerAppMenu = () => {
},
{
type: "normal",
label: "Debug: Quit and Install Update",
label: t("menu.quitAndInstallUpdate"),
click() {
quitAndInstall()
},
@@ -1,10 +1,15 @@
import path from "node:path"
import { getRendererHandlers } from "@egoist/tipc/main"
import { callGlobalContextMethod } from "@shared/bridge"
import { callGlobalContextMethod } from "@follow/shared/bridge"
import type { BrowserWindow } from "electron"
import { app, clipboard, dialog, screen } from "electron"
import { registerMenuAndContextMenu } from "~/init"
import { isWindows11 } from "../env"
import { downloadFile } from "../lib/download"
import { i18n } from "../lib/i18n"
import { cleanAuthSessionToken, cleanUser } from "../lib/user"
import type { RendererHandlers } from "../renderer-handlers"
import { quitAndInstall } from "../updater"
@@ -66,58 +71,59 @@ export const appRoute = {
case "maximum": {
// FIXME: this is a electron bug, see https://github.com/RSSNext/Follow/issues/231
// So in this way we use a workaround to fix it, that is manually resize the window
if (isWindows11) {
const display = screen.getDisplayMatching(window.getBounds())
const size = display.workAreaSize
// Comemnt the manually handle logic and disable backgroundMaterial for now
// if (isWindows11) {
// const display = screen.getDisplayMatching(window.getBounds())
// const size = display.workAreaSize
const isMaximized = size.height === window.getSize()[1]
// const isMaximized = size.height === window.getSize()[1]
const storeKey = Symbol.for("maximized")
if (isMaximized) {
const stored = window[storeKey]
if (!stored) return
// const storeKey = Symbol.for("maximized")
// if (isMaximized) {
// const stored = window[storeKey]
// if (!stored) return
window.setResizable(true)
window.setMovable(true)
// window.setResizable(true)
// window.setMovable(true)
window.setBounds(
{
width: stored.size[0],
height: stored.size[1],
x: stored.position[0],
y: stored.position[1],
},
true,
)
// window.setBounds(
// {
// width: stored.size[0],
// height: stored.size[1],
// x: stored.position[0],
// y: stored.position[1],
// },
// true,
// )
delete window[storeKey]
} else {
const currentWindowSize = window.getSize()
const currentWindowPosition = window.getPosition()
window[storeKey] = {
size: currentWindowSize,
position: currentWindowPosition,
}
// delete window[storeKey]
// } else {
// const currentWindowSize = window.getSize()
// const currentWindowPosition = window.getPosition()
// window[storeKey] = {
// size: currentWindowSize,
// position: currentWindowPosition,
// }
// Maually Resize
const { workArea } = display
// // Maually Resize
// const { workArea } = display
window.setBounds(
{
x: workArea.x,
y: workArea.y,
width: workArea.width,
height: workArea.height,
},
true,
)
// window.setBounds(
// {
// x: workArea.x,
// y: workArea.y,
// width: workArea.width,
// height: workArea.height,
// },
// true,
// )
window.setResizable(false)
window.setMovable(false)
}
// window.setResizable(false)
// window.setMovable(false)
// }
return
}
// return
// }
if (window.isMaximized()) {
window.unmaximize()
@@ -202,7 +208,18 @@ export const appRoute = {
}),
getAppPath: t.procedure.action(async () => app.getAppPath()),
resolveAppAsarPath: t.procedure.input<string>().action(async ({ input }) => {
return path.resolve(app.getAppPath(), input)
}),
switchAppLocale: t.procedure.input<string>().action(async ({ input }) => {
i18n.changeLanguage(input)
registerMenuAndContextMenu()
app.commandLine.appendSwitch("lang", input)
}),
}
interface Sender extends Electron.WebContents {
getOwnerBrowserWindow: () => Electron.BrowserWindow | null
}
@@ -3,6 +3,7 @@ import { createRequire } from "node:module"
import { app, nativeTheme } from "electron"
import { setDockCount } from "../lib/dock"
import { setProxyConfig, updateProxy } from "../lib/proxy"
import { store } from "../lib/store"
import { createSettingWindow } from "../window"
import { t } from "./_instance"
@@ -39,4 +40,10 @@ export const settingRoute = {
setDockBadge: t.procedure.input<number>().action(async ({ input }) => {
setDockCount(input)
}),
getProxyConfig: t.procedure.action(async () => store.get("proxy")),
setProxyConfig: t.procedure.input<string>().action(async ({ input }) => {
const result = setProxyConfig(input)
updateProxy()
return result
}),
}
@@ -15,10 +15,10 @@ export const trackerRoute = {
setUser(user)
posthog?.capture({
event: "login",
distinctId: user.id,
distinctId: user.id ?? "",
properties: {
name: user.name,
handle: user.handle,
handle: user.handle ?? "",
},
})
}),
+35 -61
View File
@@ -2,13 +2,14 @@ import path from "node:path"
import { fileURLToPath } from "node:url"
import { is } from "@electron-toolkit/utils"
import { callGlobalContextMethod } from "@shared/bridge"
import { imageRefererMatches } from "@shared/image"
import { callGlobalContextMethod } from "@follow/shared/bridge"
import { imageRefererMatches } from "@follow/shared/image"
import type { BrowserWindowConstructorOptions } from "electron"
import { BrowserWindow, Menu, shell } from "electron"
import { BrowserWindow, screen, shell } from "electron"
import { isDev, isMacOS, isWindows11 } from "./env"
import { getIconPath } from "./helper"
import { registerContextMenu } from "./lib/context-menu"
import { store } from "./lib/store"
import { logger } from "./logger"
import { cancelPollingUpdateUnreadCount, pollingUpdateUnreadCount } from "./tipc/dock"
@@ -63,9 +64,10 @@ export function createWindow(
icon: getIconPath(),
titleBarStyle: "hidden",
backgroundMaterial: isWindows11 ? "mica" : undefined,
// Electron material bug, comment this for now
// backgroundMaterial: isWindows11 ? "mica" : undefined,
frame: true,
maximizable: !isWindows11,
} as Electron.BrowserWindowConstructorOptions)
break
}
@@ -81,18 +83,15 @@ export function createWindow(
...configs,
})
function refreshBound(timeout = 0) {
setTimeout(() => {
const mainWindow = getMainWindow()
if (!mainWindow) return
// FIXME: workaround for theme bug in full screen mode
const size = mainWindow.getSize()
mainWindow.setSize(size[0] + 1, size[1] + 1)
mainWindow.setSize(size[0], size[1])
}, timeout)
}
window.on("leave-html-full-screen", () => {
function refreshBound(timeout = 0) {
setTimeout(() => {
// FIXME: workaround for theme bug in full screen mode
const size = window?.getSize()
window?.setSize(size[0] + 1, size[1] + 1)
window?.setSize(size[0], size[1])
}, timeout)
}
// To solve the vibrancy losing issue when leaving full screen mode
// @see https://github.com/toeverything/AFFiNE/blob/280e24934a27557529479a70ab38c4f5fc65cb00/packages/frontend/electron/src/main/windows-manager/main-window.ts:L157
refreshBound()
@@ -142,52 +141,10 @@ export function createWindow(
},
})
})
const selectionMenu = Menu.buildFromTemplate([
{ role: "copy", accelerator: "CmdOrCtrl+C" },
{ type: "separator" },
{ role: "selectAll", accelerator: "CmdOrCtrl+A" },
])
const inputMenu = Menu.buildFromTemplate([
{ role: "undo", accelerator: "CmdOrCtrl+Z" },
{
role: "redo",
accelerator: "CmdOrCtrl+Shift+Z",
},
{ type: "separator" },
{
role: "cut",
accelerator: "CmdOrCtrl+X",
},
{
role: "copy",
accelerator: "CmdOrCtrl+C",
},
{
role: "paste",
accelerator: "CmdOrCtrl+V",
},
{
type: "separator",
},
{ role: "selectAll", accelerator: "CmdOrCtrl+A" },
])
window.webContents.on("context-menu", (_e, props) => {
const { selectionText, isEditable } = props
if (isEditable) {
inputMenu.popup({
window,
})
} else if (selectionText && selectionText.trim() !== "") {
selectionMenu.popup({ window })
}
})
registerContextMenu(window)
return window
}
export const createMainWindow = () => {
const storeKey = "windowState"
const windowState = store.get(storeKey) as {
@@ -196,12 +153,29 @@ export const createMainWindow = () => {
x: number
y: number
} | null
const primaryDisplay = screen.getPrimaryDisplay()
const { width: screenWidth, height: screenHeight } = primaryDisplay.workAreaSize
// Ensure the window is within screen bounds
const ensureInBounds = (value: number, size: number, max: number) => {
if (value + size > max) {
return Math.max(0, max - size)
}
return Math.max(0, value)
}
const width = windowState?.width || 1200
const height = windowState?.height || 900
const x =
windowState?.x !== undefined ? ensureInBounds(windowState.x, width, screenWidth) : undefined
const y =
windowState?.y !== undefined ? ensureInBounds(windowState.y, height, screenHeight) : undefined
const window = createWindow({
width: windowState?.width || 1200,
height: windowState?.height || 900,
x: windowState?.x,
y: windowState?.y,
x,
y,
minWidth: 1024,
minHeight: 500,
})
+17
View File
@@ -0,0 +1,17 @@
{
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
"compilerOptions": {
"outDir": "dist",
"types": ["electron-vite/node"],
"moduleResolution": "Bundler",
"noImplicitReturns": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"baseUrl": ".",
"paths": {
"@pkg": ["../../package.json"],
"@locales/*": ["../../locales/*"],
"~/*": ["./src/*"]
}
}
}
+12
View File
@@ -0,0 +1,12 @@
import { defineConfig } from "tsup"
export default defineConfig(() => ({
entry: ["./export.ts"],
outDir: "dist",
format: "esm",
clean: true,
dts: true,
splitting: false,
sourcemap: true,
skipNodeModulesBundle: true,
}))
+12
View File
@@ -0,0 +1,12 @@
import "../../types/authjs"
import type { ElectronAPI } from "@electron-toolkit/preload"
declare global {
interface Window {
electron?: ElectronAPI
api?: { canWindowBlur: boolean }
platform: NodeJS.Platform
}
}
export {}
+123
View File
@@ -0,0 +1,123 @@
{
"name": "@follow/web",
"type": "module",
"private": true,
"main": "./dist/main/index.js",
"scripts": {
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@egjs/react-infinitegrid": "4.12.0",
"@egoist/tipc": "0.3.2",
"@electron-toolkit/preload": "^3.0.1",
"@follow/electron-main": "workspace:*",
"@follow/shared": "workspace:*",
"@fontsource/sn-pro": "5.1.0",
"@headlessui/react": "2.1.8",
"@hono/auth-js": "1.0.10",
"@hookform/resolvers": "3.9.0",
"@iconify/tools": "4.0.6",
"@lottiefiles/dotlottie-react": "0.8.12",
"@microflash/remark-callout-directives": "4.3.1",
"@mozilla/readability": "^0.5.0",
"@radix-ui/react-alert-dialog": "1.1.1",
"@radix-ui/react-avatar": "1.1.0",
"@radix-ui/react-checkbox": "1.1.1",
"@radix-ui/react-context-menu": "2.2.1",
"@radix-ui/react-dialog": "1.1.1",
"@radix-ui/react-dropdown-menu": "2.1.1",
"@radix-ui/react-hover-card": "1.1.1",
"@radix-ui/react-label": "2.1.0",
"@radix-ui/react-popover": "1.1.1",
"@radix-ui/react-radio-group": "1.2.0",
"@radix-ui/react-scroll-area": "1.1.0",
"@radix-ui/react-select": "2.1.1",
"@radix-ui/react-slider": "^1.2.0",
"@radix-ui/react-slot": "1.1.0",
"@radix-ui/react-switch": "1.1.0",
"@radix-ui/react-tabs": "1.1.0",
"@radix-ui/react-toast": "1.2.1",
"@radix-ui/react-tooltip": "1.1.2",
"@sentry/react": "8.30.0",
"@sentry/vite-plugin": "2.22.4",
"@shikijs/transformers": "1.18.0",
"@t3-oss/env-core": "^0.11.1",
"@tanstack/query-sync-storage-persister": "5.56.2",
"@tanstack/react-query": "5.56.2",
"@tanstack/react-query-devtools": "5.56.2",
"@tanstack/react-query-persist-client": "5.56.2",
"@use-gesture/react": "10.3.1",
"@yornaath/batshit": "0.10.1",
"class-variance-authority": "0.7.0",
"click-to-react-component": "1.1.0",
"clsx": "2.1.1",
"cmdk": "1.0.0",
"dayjs": "1.11.13",
"dexie": "4.0.8",
"dnum": "^2.13.1",
"electron-log": "5.2.0",
"foxact": "0.2.38",
"framer-motion": "11.5.6",
"franc-min": "6.2.0",
"fuse.js": "7.0.0",
"hast-util-to-jsx-runtime": "2.3.0",
"hast-util-to-text": "4.0.2",
"i18next": "^23.15.1",
"i18next-browser-languagedetector": "8.0.0",
"idb-keyval": "6.2.1",
"immer": "10.1.1",
"jotai": "2.10.0",
"lethargy": "1.0.9",
"linkedom": "^0.18.5",
"lodash-es": "4.17.21",
"nanoid": "5.0.7",
"ofetch": "1.4.0",
"path-to-regexp": "8.1.0",
"posthog-js": "1.163.0",
"re-resizable": "6.9.18",
"react-error-boundary": "4.0.13",
"react-fast-marquee": "1.6.5",
"react-hook-form": "7.53.0",
"react-hotkeys-hook": "4.5.1",
"react-i18next": "^15.0.2",
"react-intersection-observer": "9.13.1",
"react-resizable-layout": "npm:@innei/react-resizable-layout@0.7.3-fork.1",
"react-router-dom": "6.26.2",
"react-selecto": "1.26.3",
"react-shadow": "20.5.0",
"react-virtuoso": "4.10.4",
"rehype-infer-description-meta": "2.0.0",
"rehype-parse": "9.0.0",
"rehype-sanitize": "6.0.0",
"rehype-stringify": "10.0.0",
"remark-directive": "3.0.0",
"remark-gfm": "4.0.0",
"remark-gh-alerts": "0.0.3",
"remark-parse": "11.0.0",
"remark-rehype": "11.1.1",
"shiki": "1.18.0",
"sonner": "^1.5.0",
"swiper": "11.1.14",
"tailwind-merge": "2.5.2",
"tldts": "6.1.47",
"unified": "11.0.5",
"use-context-selector": "2.0.0",
"usehooks-ts": "3.1.0",
"vfile": "6.0.3",
"zod": "3.23.8",
"zustand": "4.5.5"
},
"devDependencies": {
"@babel/generator": "7.25.6",
"@hono/node-server": "1.13.1",
"@types/lodash-es": "4.17.12",
"@types/node": "^22.5.5",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"fake-indexeddb": "6.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.6.2"
}
}

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

+43
View File
@@ -0,0 +1,43 @@
// This file is auto-generated by scripts/generate-i18n-locale.ts
// DONT EDIT THIS FILE MANUALLY
export const currentSupportedLanguages = [
"en",
"ja",
"zh-CN",
"zh-TW",
"zh-HK",
"pt",
"fr",
"ar-DZ",
"ar-SA",
"ar-MA",
"ar-IQ",
"ar-KW",
"ar-TN",
"fi",
"it",
"ru",
"es",
]
export const dayjsLocaleImportMap = {
en: ["en", () => import("dayjs/locale/en")],
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],
["ja"]: ["ja", () => import("dayjs/locale/ja")],
["ru"]: ["ru", () => import("dayjs/locale/ru")],
["fi"]: ["fi", () => import("dayjs/locale/fi")],
["it"]: ["it", () => import("dayjs/locale/it")],
["ar-DZ"]: ["ar-dz", () => import("dayjs/locale/ar-dz")],
["ar-SA"]: ["ar-sa", () => import("dayjs/locale/ar-sa")],
["ar-MA"]: ["ar-ma", () => import("dayjs/locale/ar-ma")],
["es"]: ["es", () => import("dayjs/locale/es")],
["fr"]: ["fr", () => import("dayjs/locale/fr")],
["pt"]: ["pt", () => import("dayjs/locale/pt")],
["zh-TW"]: ["zh-tw", () => import("dayjs/locale/zh-tw")],
["ar-IQ"]: ["ar-iq", () => import("dayjs/locale/ar-iq")],
["ar-KW"]: ["ar-kw", () => import("dayjs/locale/ar-kw")],
["ar-TN"]: ["ar-tn", () => import("dayjs/locale/ar-tn")],
["zh-HK"]: ["zh-hk", () => import("dayjs/locale/zh-hk")],
}
export const ns = ["app", "common", "lang", "settings", "shortcuts", "errors"] as const
export const defaultNS = "app" as const
@@ -0,0 +1,78 @@
// This file is auto-generated by scripts/generate-i18n-locale.ts
// DONT EDIT THIS FILE MANUALLY
import en from "../../../../locales/app/en.json"
import common_ardz from "../../../../locales/common/ar-DZ.json"
import common_ariq from "../../../../locales/common/ar-IQ.json"
import common_arkw from "../../../../locales/common/ar-KW.json"
import common_arma from "../../../../locales/common/ar-MA.json"
import common_arsa from "../../../../locales/common/ar-SA.json"
import common_artn from "../../../../locales/common/ar-TN.json"
import common_en from "../../../../locales/common/en.json"
import common_es from "../../../../locales/common/es.json"
import common_fi from "../../../../locales/common/fi.json"
import common_fr from "../../../../locales/common/fr.json"
import common_it from "../../../../locales/common/it.json"
import common_ja from "../../../../locales/common/ja.json"
import common_pt from "../../../../locales/common/pt.json"
import common_ru from "../../../../locales/common/ru.json"
import common_zhCN from "../../../../locales/common/zh-CN.json"
import common_zhTW from "../../../../locales/common/zh-TW.json"
import errors_en from "../../../../locales/errors/en.json"
import external_en from "../../../../locales/external/en.json"
import lang_ardz from "../../../../locales/lang/ar-DZ.json"
import lang_ariq from "../../../../locales/lang/ar-IQ.json"
import lang_arkw from "../../../../locales/lang/ar-KW.json"
import lang_arma from "../../../../locales/lang/ar-MA.json"
import lang_arsa from "../../../../locales/lang/ar-SA.json"
import lang_artn from "../../../../locales/lang/ar-TN.json"
import lang_en from "../../../../locales/lang/en.json"
import lang_es from "../../../../locales/lang/es.json"
import lang_fi from "../../../../locales/lang/fi.json"
import lang_fr from "../../../../locales/lang/fr.json"
import lang_it from "../../../../locales/lang/it.json"
import lang_ja from "../../../../locales/lang/ja.json"
import lang_pt from "../../../../locales/lang/pt.json"
import lang_ru from "../../../../locales/lang/ru.json"
import lang_zhCN from "../../../../locales/lang/zh-CN.json"
import lang_zhTW from "../../../../locales/lang/zh-TW.json"
import settings_en from "../../../../locales/settings/en.json"
import shortcuts_en from "../../../../locales/shortcuts/en.json"
/**
* This file is the language resource that is loaded in full when the app is initialized.
* When switching languages, the app will automatically download the required language resources,
* we will not load all the language resources to minimize the first screen loading time of the app.
* Generally, we only load english resources synchronously by default.
* In addition, we attach common resources for other languages, and the size of the common resources must be controlled.
*/
export const defaultResources = {
en: {
app: en,
lang: lang_en,
common: common_en,
external: external_en,
settings: settings_en,
shortcuts: shortcuts_en,
errors: errors_en,
},
"zh-CN": {
lang: lang_zhCN,
common: common_zhCN,
},
ja: {
lang: lang_ja,
common: common_ja,
},
ru: { lang: lang_ru, common: common_ru },
fi: { lang: lang_fi, common: common_fi },
it: { lang: lang_it, common: common_it },
"ar-DZ": { lang: lang_ardz, common: common_ardz },
"ar-SA": { lang: lang_arsa, common: common_arsa },
"ar-MA": { lang: lang_arma, common: common_arma },
"zh-TW": { lang: lang_zhTW, common: common_zhTW },
es: { lang: lang_es, common: common_es },
fr: { lang: lang_fr, common: common_fr },
pt: { lang: lang_pt, common: common_pt },
"ar-IQ": { lang: lang_ariq, common: common_ariq },
"ar-KW": { lang: lang_arkw, common: common_arkw },
"ar-TN": { lang: lang_artn, common: common_artn },
}
@@ -1,8 +1,9 @@
import { queryClient } from "@renderer/lib/query-client"
import { env } from "@follow/shared/env"
import { useEffect, useLayoutEffect } from "react"
import { Outlet } from "react-router-dom"
import { env } from "../../env.js"
import { queryClient } from "~/lib/query-client"
import { useAppIsReady } from "./atoms/app"
import { useUISettingKey } from "./atoms/settings/ui"
import { applyAfterReadyCallbacks } from "./initialize/queue.js"
@@ -1,6 +1,7 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { atom } from "jotai"
import { createAtomHooks } from "~/lib/jotai"
export const [, , useAppIsReady, , appIsReady, setAppIsReady] = createAtomHooks(atom(false))
export const [, , useAppSearchOpen, , , setAppSearchOpen] = createAtomHooks(atom(false))
@@ -1,7 +1,8 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { getStorageNS } from "@renderer/lib/ns"
import { atomWithStorage } from "jotai/utils"
import { createAtomHooks } from "~/lib/jotai"
import { getStorageNS } from "~/lib/ns"
type CornerPlayerAtomValue = {
show: boolean
type?: "audio"
@@ -1,5 +1,6 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { atom } from "jotai"
import { createAtomHooks } from "~/lib/jotai"
export const [, , useMainContainerElement, , getMainContainerElement, setMainContainerElement] =
createAtomHooks(atom<HTMLElement | null>(null))
@@ -1,9 +1,10 @@
import { jotaiStore } from "@renderer/lib/jotai"
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 = <T>(selector: (value: ExtractAtomValue<typeof viewportAtom>) => T): T =>
@@ -1,6 +1,7 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { atom } from "jotai"
import { createAtomHooks } from "~/lib/jotai"
export enum NetworkStatus {
ONLINE,
OFFLINE,
@@ -1,9 +1,10 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { getStorageNS } from "@renderer/lib/ns"
import { noop } from "foxact/noop"
import { atomWithStorage, createJSONStorage } from "jotai/utils"
import type { SyncStorage } from "jotai/vanilla/utils/atomWithStorage"
import { createAtomHooks } from "~/lib/jotai"
import { getStorageNS } from "~/lib/ns"
type PlayerAtomValue = {
show: boolean
type?: "audio"
@@ -1,6 +1,7 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { atom } from "jotai"
import { createAtomHooks } from "~/lib/jotai"
type Readability = {
title: string
content: string
@@ -1,9 +1,10 @@
import { createAtomHooks } from "@renderer/lib/jotai"
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<Params<string>>
searchParams: URLSearchParams
@@ -1,5 +1,6 @@
import { jotaiStore } from "@renderer/lib/jotai"
import type { GeneralSettings } from "@shared/interface/settings"
import type { GeneralSettings } from "@follow/shared/interface/settings"
import { jotaiStore } from "~/lib/jotai"
import { createSettingAtom } from "./helper"
@@ -43,4 +44,5 @@ export const generalServerSyncWhiteListKeys: (keyof GeneralSettings)[] = [
"appLaunchOnStartup",
"dataPersist",
"sendAnonymousData",
"language",
]
@@ -1,14 +1,15 @@
import { useRefValue } from "@renderer/hooks/common"
import { EventBus } from "@renderer/lib/event-bus"
import { createAtomHooks } from "@renderer/lib/jotai"
import { getStorageNS } from "@renderer/lib/ns"
import type { SettingItem } from "@renderer/modules/settings/setting-builder"
import { createSettingBuilder } from "@renderer/modules/settings/setting-builder"
import { useAtomValue } from "jotai"
import { atomWithStorage, selectAtom } from "jotai/utils"
import { useMemo } from "react"
declare module "@renderer/lib/event-bus" {
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
@@ -1,4 +1,4 @@
import type { IntegrationSettings } from "@shared/interface/settings"
import type { IntegrationSettings } from "@follow/shared/interface/settings"
import { createSettingAtom } from "./helper"
@@ -1,4 +1,4 @@
import type { UISettings } from "@shared/interface/settings"
import type { UISettings } from "@follow/shared/interface/settings"
import { createSettingAtom } from "./helper"
@@ -19,13 +19,15 @@ export const createDefaultSettings = (): UISettings => ({
modalDraggable: true,
modalOpaque: true,
reduceMotion: false,
usePointerCursor: false,
// Font
uiFontFamily: "SN Pro",
readerFontFamily: "inherit",
// Content
readerRenderInlineStyle: false,
codeHighlightTheme: "github-dark",
codeHighlightThemeLight: "github-light",
codeHighlightThemeDark: "github-dark",
guessCodeLanguage: true,
// View
@@ -1,8 +1,9 @@
import { getRouteParams } from "@renderer/hooks/biz/useRouteParams"
import { FeedViewType } from "@renderer/lib/enum"
import { createAtomHooks } from "@renderer/lib/jotai"
import { atom } from "jotai"
import { getRouteParams } from "~/hooks/biz/useRouteParams"
import { FeedViewType } from "~/lib/enum"
import { createAtomHooks } from "~/lib/jotai"
const defaultFeedView = FeedViewType.Articles
const viewAtom = atom<FeedViewType | -1>(-1)
const [
@@ -1,7 +1,8 @@
import { createAtomHooks } from "@renderer/lib/jotai"
import { getStorageNS } from "@renderer/lib/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, {
getOnInit: true,
@@ -1,7 +1,8 @@
import type { User } from "@auth/core/types"
import { createAtomHooks } from "@renderer/lib/jotai"
import { atom } from "jotai"
import { createAtomHooks } from "~/lib/jotai"
export const [, , useWhoami, , whoami, setWhoami] = createAtomHooks(atom<Nullable<User>>(null))
export const [, , useLoginModalShow, useSetLoginModalShow, getLoginModalShow, setLoginModalShow] =
@@ -1,11 +1,12 @@
import { attachOpenInEditor } from "@renderer/lib/dev"
import { getNewIssueUrl } from "@renderer/lib/issues"
import { clearLocalPersistStoreData } from "@renderer/store/utils/clear"
import { captureException } from "@sentry/react"
import { useEffect, useRef } from "react"
import { isRouteErrorResponse, useNavigate, useRouteError } from "react-router-dom"
import { toast } from "sonner"
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"
@@ -1,8 +1,9 @@
import { useReduceMotion } from "@renderer/hooks/biz/useReduceMotion"
import type { MotionProps } from "framer-motion"
import { m as M } from "framer-motion"
import { createElement, forwardRef } from "react"
import { useReduceMotion } from "~/hooks/biz/useReduceMotion"
const cacheMap = new Map<string, any>()
export const m: typeof M = new Proxy(M, {
get(target, p: string) {
@@ -1,9 +1,10 @@
import { isElectronBuild } from "@renderer/constants"
import { captureException } from "@sentry/react"
import { useEffect } from "react"
import type { Location } from "react-router-dom"
import { useLocation, useNavigate } from "react-router-dom"
import { isElectronBuild } from "~/constants"
import { Logo } from "../icons/logo"
import { Button } from "../ui/button"
import { PoweredByFooter } from "./PoweredByFooter"
@@ -1,5 +1,6 @@
import pkg from "@pkg"
import { cn } from "@renderer/lib/utils"
import { cn } from "~/lib/utils"
import { Logo } from "../icons/logo"
@@ -1,6 +1,3 @@
import { useUISettingKey } from "@renderer/atoms/settings/ui"
import { useReduceMotion } from "@renderer/hooks/biz/useReduceMotion"
import { useIsDark } from "@renderer/hooks/common"
import { nanoid } from "nanoid"
import type { FC, PropsWithChildren, ReactNode } from "react"
import {
@@ -14,6 +11,10 @@ import {
} from "react"
import root from "react-shadow"
import { useUISettingKey } from "~/atoms/settings/ui"
import { useReduceMotion } from "~/hooks/biz/useReduceMotion"
import { useIsDark } from "~/hooks/common"
const ShadowDOMContext = createContext(false)
const MemoedDangerousHTMLStyle: FC<
@@ -102,6 +103,7 @@ export const ShadowDOM: FC<PropsWithChildren<React.HTMLProps<HTMLElement>>> & {
const uiFont = useUISettingKey("uiFontFamily")
const reduceMotion = useReduceMotion()
const usePointerCursor = useUISettingKey("usePointerCursor")
return (
<root.div {...rest}>
@@ -110,8 +112,9 @@ export const ShadowDOM: FC<PropsWithChildren<React.HTMLProps<HTMLElement>>> & {
style={useMemo(
() => ({
fontFamily: `${uiFont},"SN Pro", system-ui, sans-serif`,
"--pointer": usePointerCursor ? "pointer" : "default",
}),
[uiFont],
[uiFont, usePointerCursor],
)}
id="shadow-html"
data-motion-reduce={reduceMotion}
@@ -150,21 +153,25 @@ function getLinkedStaticStyleSheets() {
if (!sheet) continue
if (!sheet.href) continue
const hasCache = cacheCssTextMap[sheet.href]
if (!hasCache) {
if (!sheet.href) continue
const rules = sheet.cssRules || sheet.rules
let cssText = ""
for (const rule of rules) {
cssText += rule.cssText
try {
if (!hasCache) {
if (!sheet.href) continue
const rules = sheet.cssRules || sheet.rules
let cssText = ""
for (const rule of rules) {
cssText += rule.cssText
}
cacheCssTextMap[sheet.href] = cssText
cssArray.push({
cssText: cacheCssTextMap[sheet.href],
ref: $link,
})
}
cacheCssTextMap[sheet.href] = cssText
} catch (e) {
console.info("Parse css error", sheet.href)
console.error(e)
}
cssArray.push({
cssText: cacheCssTextMap[sheet.href],
ref: $link,
})
}
return cssArray
@@ -1,12 +1,13 @@
import { getSidebarActiveView } from "@renderer/atoms/sidebar"
import { getRouteParams } from "@renderer/hooks/biz/useRouteParams"
import { nextFrame } from "@renderer/lib/dom"
import type { FeedModel } from "@renderer/models"
import { FeedForm } from "@renderer/modules/discover/feed-form"
import { entries } from "@renderer/queries/entries"
import type { FC } from "react"
import { useNavigate } from "react-router-dom"
import { getSidebarActiveView } from "~/atoms/sidebar"
import { getRouteParams } from "~/hooks/biz/useRouteParams"
import { nextFrame } from "~/lib/dom"
import type { FeedModel } from "~/models"
import { FeedForm } from "~/modules/discover/feed-form"
import { entries } from "~/queries/entries"
import type { AppErrorFallbackProps } from "../common/AppErrorBoundary"
import { FeedIcon } from "../feed-icon"
import { Button } from "../ui/button"
@@ -1,6 +1,7 @@
import { attachOpenInEditor } from "@renderer/lib/dev"
import type { FC } from "react"
import { attachOpenInEditor } from "~/lib/dev"
import type { AppErrorFallbackProps } from "../common/AppErrorBoundary"
import { FeedbackIssue } from "../common/ErrorElement"
import { m } from "../common/Motion"
@@ -1,6 +1,7 @@
import { attachOpenInEditor } from "@renderer/lib/dev"
import type { FC } from "react"
import { attachOpenInEditor } from "~/lib/dev"
import type { AppErrorFallbackProps } from "../common/AppErrorBoundary"
import { FeedbackIssue } from "../common/ErrorElement"
import { Button } from "../ui/button"

Some files were not shown because too many files have changed in this diff Show More