chore: Release v0.0.1-alpha.17 (#595)

This commit is contained in:
DIYgod
2024-09-23 21:37:00 +08:00
committed by GitHub
90 changed files with 2567 additions and 679 deletions
@@ -0,0 +1,63 @@
name: Auto Fix Lint and Format
on:
pull_request_target:
types: [opened, synchronize]
jobs:
auto-fix:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run linter and fix issues
run: pnpm run lint:fix
- name: Run formatter
run: pnpm run format
- name: Check for changes
id: check_changes
run: |
git diff --exit-code || echo "has_changes=true" >> $GITHUB_ENV
- name: Commit and push changes
if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: auto-fix linting and formatting issues"
commit_options: "--no-verify"
file_pattern: "."
- name: Add PR comment
if: steps.check_changes.outputs.has_changes == 'true' || env.has_changes == 'true'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Linting and formatting issues were automatically fixed. Please review the changes.'
});
-8
View File
@@ -51,14 +51,6 @@ jobs:
fetch-depth: 1
lfs: true
- name: Cache pnpm modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ matrix.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ matrix.os }}-
- name: Setup pnpm
uses: pnpm/action-setup@v4
+30 -1
View File
@@ -54,7 +54,36 @@ jobs:
if: runner.os == 'macOS'
run: pnpm add -g appdmg
# ... (macOS certificate and provisioning profile setup steps) ...
- name: Install the Apple certificate and provisioning profile
if: runner.os == 'macOS'
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: |
# create variables
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
PP_PATH=$RUNNER_TEMP/build_pp.provisionprofile
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
# import certificate and provisioning profile from secrets
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
# create temporary keychain
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
# import certificate to keychain
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
# apply provisioning profile
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
- name: Install dependencies
run: pnpm i
+25 -1
View File
@@ -1,6 +1,6 @@
# CHANGELOG
## [0.0.1-alpha.16](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.3...v0.0.1-alpha.16) (2024-09-22)
## [0.0.1-alpha.17](https://github.com/RSSNext/follow/compare/v0.0.1-alpha.3...v0.0.1-alpha.17) (2024-09-23)
### Bug Fixes
@@ -44,6 +44,7 @@
* 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))
* app width limit to 1024px ([09d7765](https://github.com/RSSNext/follow/commit/09d77657a07f81d69f80c3eea1620efe1ddb9da9))
* 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))
@@ -58,6 +59,8 @@
* catch access stylesheet error ([bbc2bef](https://github.com/RSSNext/follow/commit/bbc2bef800c5b01669742bb004e2656c9087f82f))
* 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 ([a5a4de0](https://github.com/RSSNext/follow/commit/a5a4de00e3612b7799869d133b893817dbcf82f4))
* ci ([8852a81](https://github.com/RSSNext/follow/commit/8852a81d4cfe80a0704bcf52220c39e9ccbe98de))
* ci and tootip portal ([3729917](https://github.com/RSSNext/follow/commit/37299173c8fcaf88d44b1a54baf7ddc03aa20ca6))
* ci env `NODE_OPTIONS` max-old-space-size ([b4f9b1b](https://github.com/RSSNext/follow/commit/b4f9b1b8ea326b1613ca291ed5bbcd932c5e837a))
* **ci:** fetch all depth ([a504a12](https://github.com/RSSNext/follow/commit/a504a127bca93a6675b3ff02bcea0b1eca6e9707))
@@ -111,6 +114,7 @@
* entry preview modal content ([8492c2a](https://github.com/RSSNext/follow/commit/8492c2afb3af79726b9448359a63b432b04a3518))
* entry read history more not showing on desktop ([0c6494b](https://github.com/RSSNext/follow/commit/0c6494b5682078fa1da1ea2e6f5d81aa436a5155))
* entry view tracker params ([0c05a8b](https://github.com/RSSNext/follow/commit/0c05a8b88c1c385b7809f1ea9e3355f0d11e69dd))
* **eslint:** json sort key ([5a81dd6](https://github.com/RSSNext/follow/commit/5a81dd6786b7c0e4a533f3cb4e50d7900d005875))
* exit full screen before hiding window ([#341](https://github.com/RSSNext/follow/issues/341)) ([bd5b08f](https://github.com/RSSNext/follow/commit/bd5b08f314ddaddb9b079b3d10b6928d28962df5))
* **exteral:** edit or follow in web app when login ([0ccadf7](https://github.com/RSSNext/follow/commit/0ccadf762bf5c761115a485ab4e68be938c527e6))
* **external-page:** feed list overlay style ([1dcffc6](https://github.com/RSSNext/follow/commit/1dcffc60d26596065bc024653d69a109a1941578))
@@ -158,7 +162,10 @@
* 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))
* import circular and copywrite i18n ([caf5fe5](https://github.com/RSSNext/follow/commit/caf5fe5c839cc68aec786114b5a659cc8352d167))
* import type error ([0658c4a](https://github.com/RSSNext/follow/commit/0658c4ab6bd3e9bbbb87a9faf07d00fc04aa0bc1))
* improve code block parser ([e72cb2d](https://github.com/RSSNext/follow/commit/e72cb2df3f1f5cd314feeb4a9bcc20e30204bca5))
* improve input component display on focus ([#581](https://github.com/RSSNext/follow/issues/581)) ([d8ddffb](https://github.com/RSSNext/follow/commit/d8ddffbc481dc086c8d1d2cd0c80bdef9126f306))
* 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))
@@ -172,7 +179,10 @@
* 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))
* list manage Modal button zh-cn word wrap ([#590](https://github.com/RSSNext/follow/issues/590)) ([0a89c2f](https://github.com/RSSNext/follow/commit/0a89c2ff73a0fde28c85b87401185332975264e0))
* **list:** adjust power fee ([47fc1ff](https://github.com/RSSNext/follow/commit/47fc1ff7c40961d102caf31c30d9a1eed8a98475))
* lists date group ([b57f43f](https://github.com/RSSNext/follow/commit/b57f43fbcc407fe6d6e81b6c6cfbbc38a7d52f68))
* lists edit follow modal in external page ([9cfe2ab](https://github.com/RSSNext/follow/commit/9cfe2ab68531384c0448806cd7366e5c4722461c))
* 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))
@@ -237,6 +247,7 @@
* 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))
* require title for list form ([#575](https://github.com/RSSNext/follow/issues/575)) ([b5aeada](https://github.com/RSSNext/follow/commit/b5aeada3cbe1f9f1b1a856c5a3a766a886e29d0d))
* 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))
@@ -302,6 +313,7 @@
* toc scroll logic ([261d12e](https://github.com/RSSNext/follow/commit/261d12e5600028a5bff3b2c1451271ee962403ed))
* tooltip in dark mode shadow ([55266ce](https://github.com/RSSNext/follow/commit/55266ce2cceea4e348c33989398f8f9bb92644a7))
* tooltip style in dark mode ([a61c79e](https://github.com/RSSNext/follow/commit/a61c79ee7d4bd73fdf35fa5565c711297a29c7a0))
* transcation table text overflow ([a026c6e](https://github.com/RSSNext/follow/commit/a026c6e34c0eeac1ee6acec1c8181c009ca0ab36))
* translation markdown tooltip wrapper style ([639bace](https://github.com/RSSNext/follow/commit/639bace313311db6319fb1fe168b68af7aa1e8e0))
* try fix vercel config ([968dea9](https://github.com/RSSNext/follow/commit/968dea91f474a76298091de6a23f3ba7a11fb22f))
* try to fix some sentry error ([0b31c1e](https://github.com/RSSNext/follow/commit/0b31c1e998212900dda0044acda8a3d4d5df1189))
@@ -312,6 +324,7 @@
* type error ([c7f11f9](https://github.com/RSSNext/follow/commit/c7f11f99f28bf918aaf8c03b74145b2f9b126a72))
* type error ([5cd41ad](https://github.com/RSSNext/follow/commit/5cd41ad10ccbd241083d6f951509eb0bafe6e25f))
* type error ([60f8347](https://github.com/RSSNext/follow/commit/60f8347eec118176681a9ad7fcab7f45e383fc1b))
* types ([831f0f8](https://github.com/RSSNext/follow/commit/831f0f892ac32bdb2963267e94c3130805924b59))
* types ([a116dd4](https://github.com/RSSNext/follow/commit/a116dd4018f90886239f7583cbc82b511ff2a902))
* types ([3c5b224](https://github.com/RSSNext/follow/commit/3c5b224904e8db1c8ba6b78cfb87d09cd81de98c))
* types ([7f5bb1e](https://github.com/RSSNext/follow/commit/7f5bb1e9343243f5259f9fde8ee3ac44bf993913))
@@ -336,6 +349,7 @@
* upgrade tip when player open ([033831b](https://github.com/RSSNext/follow/commit/033831bdab0a85a2f1f02af85c6da2278e40de5e))
* upload sentry sourcemap ([b23365f](https://github.com/RSSNext/follow/commit/b23365faad9927826140948b642c0caca542f135))
* use feed enabled condition ([9726d43](https://github.com/RSSNext/follow/commit/9726d4396673e2be02c60ce049ed07c5bf978380))
* use insertedAt as cursor for list ([#580](https://github.com/RSSNext/follow/issues/580)) ([e420451](https://github.com/RSSNext/follow/commit/e420451afc4eba6308ecf72ff710f390ee2b0b8b))
* use official embed player in bilibili video when use web ([#219](https://github.com/RSSNext/follow/issues/219)) ([9177a34](https://github.com/RSSNext/follow/commit/9177a349e087cdc60b22e2338146caaefd377694))
* user avatar use profile data if userId passed, fixed [#550](https://github.com/RSSNext/follow/issues/550) ([176afa7](https://github.com/RSSNext/follow/commit/176afa72ba1e0801ac383982f826cc19b215b242))
* user button color in dark mode ([04e3c38](https://github.com/RSSNext/follow/commit/04e3c386c5699e6b0907de2a98701668fc7f278b))
@@ -377,6 +391,7 @@
* 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 more words i18n ([#516](https://github.com/RSSNext/follow/issues/516)) ([e2b8ec8](https://github.com/RSSNext/follow/commit/e2b8ec88624ad1e8e7f6136a624fc284ae3fb77b))
* 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))
@@ -408,6 +423,7 @@
* 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 profile query by username ([09eae80](https://github.com/RSSNext/follow/commit/09eae80f3e3ed2756a207368df83799fd176be07))
* 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))
@@ -418,6 +434,7 @@
* display certification in discover form ([1e212ef](https://github.com/RSSNext/follow/commit/1e212effad12bab751179dc9a94d71a37a3b5ed8))
* display claimed feed list in settings ([d9ae277](https://github.com/RSSNext/follow/commit/d9ae277cfa861c4e558542820896bde821341dc4))
* display feed certification in discover result ([425b8c3](https://github.com/RSSNext/follow/commit/425b8c3003b552215350d534640e18512e9d819b))
* display feed list in lists external page ([0c4c3c5](https://github.com/RSSNext/follow/commit/0c4c3c5873c80c3854d26c213991bffc44e429c9))
* 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))
@@ -436,6 +453,8 @@
* 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))
* followed status for external follow button ([3a7ed50](https://github.com/RSSNext/follow/commit/3a7ed50c55071fb3065ba082fceef3a70214d798))
* force lists to be sorted by alphabetical ([c3b9fc9](https://github.com/RSSNext/follow/commit/c3b9fc9e7510f777a129063a2e09ae33658b3813))
* 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))
@@ -454,8 +473,10 @@
* **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:** Korean and fallback language name ([#582](https://github.com/RSSNext/follow/issues/582)) ([2ae12c9](https://github.com/RSSNext/follow/commit/2ae12c9d2b976c8165414cc74c7494b2cfd7ea7c))
* **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))
* **i18n:** Update Chinese Translation ([#572](https://github.com/RSSNext/follow/issues/572)) ([d24139b](https://github.com/RSSNext/follow/commit/d24139b82233ea04674c8b93ddee323d2c84a8ef))
* 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))
* impl masonry in view mark read and scroll to mark read ([4263658](https://github.com/RSSNext/follow/commit/4263658e3240850ca74fcaa666bf8145553f8874))
@@ -472,6 +493,7 @@
* 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))
* list api in subscription modal ([46e246a](https://github.com/RSSNext/follow/commit/46e246aa1734dfbc565533243ca4fb560d42ced7))
* 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))
@@ -503,6 +525,7 @@
* preview social media ai daily ([0252bc0](https://github.com/RSSNext/follow/commit/0252bc022306123973ffd27b1cb211aadffae052))
* prompt the full categories when editing the feed ([#392](https://github.com/RSSNext/follow/issues/392)) ([d5ce474](https://github.com/RSSNext/follow/commit/d5ce4744fe28c5d4d05844af6fe344fdf7849424))
* read clipboard ([e115b6d](https://github.com/RSSNext/follow/commit/e115b6de66df93422465044bc2d2930aa7a073fc))
* read image proxy url from ab value ([d81f57d](https://github.com/RSSNext/follow/commit/d81f57d2ad24ab9176a6d342f427676065c0f5f6))
* readability support ([#178](https://github.com/RSSNext/follow/issues/178)) ([6c052b8](https://github.com/RSSNext/follow/commit/6c052b881b77e75763a9c4117cd562d21a58044d))
* redesign image preview swiper style ([23971b5](https://github.com/RSSNext/follow/commit/23971b53f383dc1d6793c3b0dd4ca58a71c5b71e))
* reduce motion use fade-in and fade-out transition ([78053c1](https://github.com/RSSNext/follow/commit/78053c17fd91ccd7568fe57af3767cd6636929e2))
@@ -524,6 +547,7 @@
* 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 list by insertedat ([36fbbdd](https://github.com/RSSNext/follow/commit/36fbbddc6d8880f13b99fb38042692894383ecfa))
* 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))
* sortable feed list ([5dc93af](https://github.com/RSSNext/follow/commit/5dc93af2a77d6a81222c70f5d7b588e087d72af4))
* sortable feed list ([fdd2623](https://github.com/RSSNext/follow/commit/fdd26235548e0a5e24bd1e1eee679a14cd0bb527))
+1 -1
View File
@@ -8,7 +8,6 @@
"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:*",
@@ -71,6 +70,7 @@
"lethargy": "1.0.9",
"linkedom": "^0.18.5",
"lodash-es": "4.17.21",
"masonic": "4.0.1",
"nanoid": "5.0.7",
"ofetch": "1.4.0",
"path-to-regexp": "8.1.0",
+2 -1
View File
@@ -18,8 +18,8 @@ export const currentSupportedLanguages = [
"it",
"ru",
"es",
"ko",
]
export const dayjsLocaleImportMap = {
en: ["en", () => import("dayjs/locale/en")],
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],
@@ -38,6 +38,7 @@ export const dayjsLocaleImportMap = {
["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")],
["ko"]: ["ko", () => import("dayjs/locale/ko")],
}
export const ns = ["app", "common", "lang", "settings", "shortcuts", "errors"] as const
export const defaultNS = "app" as const
@@ -13,6 +13,7 @@ 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_ko from "../../../../locales/common/ko.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"
@@ -31,6 +32,7 @@ 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_ko from "../../../../locales/lang/ko.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"
@@ -75,4 +77,5 @@ export const defaultResources = {
"ar-IQ": { lang: lang_ariq, common: common_ariq },
"ar-KW": { lang: lang_arkw, common: common_arkw },
"ar-TN": { lang: lang_artn, common: common_artn },
ko: { lang: lang_ko, common: common_ko },
}
@@ -40,10 +40,7 @@ export const FeedCertification = ({
<Tooltip delayDuration={300}>
<TooltipTrigger asChild>
<i
className={cn(
"i-mgc-certificate-cute-fi ml-1.5 size-4 shrink-0 text-amber-500",
className,
)}
className={cn("i-mgc-certificate-cute-fi ml-1.5 shrink-0 text-amber-500", className)}
/>
</TooltipTrigger>
+10 -8
View File
@@ -1,4 +1,5 @@
import { Avatar, AvatarFallback, AvatarImage } from "@radix-ui/react-avatar"
import { m } from "framer-motion"
import type { ReactNode } from "react"
import { forwardRef, useMemo } from "react"
@@ -145,7 +146,7 @@ export function FeedIcon({
ImageElement = (
<PlatformIcon url={siteUrl} style={sizeStyle} className={cn("center mr-2", className)}>
<img style={sizeStyle} />
<m.img style={sizeStyle} initial={{ opacity: 0 }} animate={{ opacity: 1 }} />
</PlatformIcon>
)
break
@@ -158,7 +159,12 @@ export function FeedIcon({
})
ImageElement = (
<PlatformIcon url={image} style={sizeStyle} className={cn("center mr-2", className)}>
<img className={cn("mr-2", className)} style={sizeStyle} />
<m.img
className={cn("mr-2", className)}
style={sizeStyle}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
/>
</PlatformIcon>
)
break
@@ -207,11 +213,7 @@ export function FeedIcon({
if (fallback && !!finalSrc) {
return (
<Avatar className="shrink-0">
<AvatarImage
className="rounded-sm object-cover duration-200 animate-in fade-in-0"
asChild
src={finalSrc}
>
<AvatarImage className="rounded-sm object-cover" asChild src={finalSrc}>
{ImageElement}
</AvatarImage>
<AvatarFallback asChild>{fallbackIcon}</AvatarFallback>
@@ -224,7 +226,7 @@ export function FeedIcon({
// Else
return (
<Avatar className="shrink-0">
<AvatarImage className="duration-200 animate-in fade-in-0" asChild src={finalSrc}>
<AvatarImage asChild src={finalSrc}>
{ImageElement}
</AvatarImage>
<AvatarFallback>
+212
View File
@@ -0,0 +1,212 @@
import { clearRequestTimeout, requestTimeout } from "@essentials/request-timeout"
import { useWindowSize } from "@react-hook/window-size"
import { useForceUpdate } from "framer-motion"
import { throttle } from "lodash-es"
import type { ContainerPosition, MasonryProps, MasonryScrollerProps, Positioner } from "masonic"
import { createResizeObserver, useMasonry, usePositioner, useScrollToIndex } from "masonic"
import * as React from "react"
import { useScrollViewElement } from "./scroll-area/hooks"
/**
* A "batteries included" masonry grid which includes all of the implementation details below. This component is the
* easiest way to get off and running in your app, before switching to more advanced implementations, if necessary.
* It will change its column count to fit its container's width and will decide how many rows to render based upon
* the height of the browser `window`.
*
* @param props
*/
export const Masonry = <Item,>(props: MasonryProps<Item>) => {
const [scrollTop, setScrollTop] = React.useState(0)
const [isScrolling, setIsScrolling] = React.useState(false)
const scrollElement = useScrollViewElement()
const fps = props.scrollFps || 12
React.useEffect(() => {
if (!scrollElement) return
const scrollTimer: number | null = null
const handleScroll = throttle(() => {
setIsScrolling(true)
setScrollTop(scrollElement.scrollTop)
}, 1000 / fps)
scrollElement.addEventListener("scroll", handleScroll)
return () => {
scrollElement.removeEventListener("scroll", handleScroll)
if (scrollTimer) {
clearTimeout(scrollTimer)
}
}
}, [fps, scrollElement])
const didMount = React.useRef(0)
React.useEffect(() => {
if (didMount.current === 1) setIsScrolling(true)
let didUnsubscribe = false
const to = requestTimeout(
() => {
if (didUnsubscribe) return
// This is here to prevent premature bail outs while maintaining high resolution
// unsets. Without it there will always bee a lot of unnecessary DOM writes to style.
setIsScrolling(false)
},
40 + 1000 / fps,
)
didMount.current = 1
return () => {
didUnsubscribe = true
clearRequestTimeout(to)
}
}, [fps, scrollTop])
const containerRef = React.useRef<null | HTMLElement>(null)
const windowSize = useWindowSize({
initialWidth: props.ssrWidth,
initialHeight: props.ssrHeight,
})
const containerPos = useContainerPosition(containerRef, windowSize)
const nextProps = Object.assign(
{
offset: containerPos.offset,
width: containerPos.width || windowSize[0],
height: containerPos.height || windowSize[1],
containerRef,
},
props,
) as any
// Workaround for https://github.com/jaredLunde/masonic/issues/12
const itemCounter = React.useRef<number>(props.items.length)
let shrunk = false
if (props.items.length !== itemCounter.current) {
if (props.items.length < itemCounter.current) shrunk = true
itemCounter.current = props.items.length
}
nextProps.positioner = usePositioner(nextProps, [shrunk && Math.random()])
nextProps.resizeObserver = useResizeObserver(nextProps.positioner)
nextProps.scrollTop = scrollTop
nextProps.isScrolling = isScrolling
nextProps.height = window.innerHeight
const scrollToIndex = useScrollToIndex(nextProps.positioner, {
height: nextProps.height,
offset: containerPos.offset,
align: typeof props.scrollToIndex === "object" ? props.scrollToIndex.align : void 0,
})
const index =
props.scrollToIndex &&
(typeof props.scrollToIndex === "number" ? props.scrollToIndex : props.scrollToIndex.index)
React.useEffect(() => {
if (index !== void 0) scrollToIndex(index)
}, [index, scrollToIndex])
return React.createElement(MasonryScroller, nextProps)
}
function MasonryScroller<Item>(
props: MasonryScrollerProps<Item> & {
scrollTop: number
isScrolling: boolean
},
) {
// We put this in its own layer because it's the thing that will trigger the most updates
// and we don't want to slower ourselves by cycling through all the functions, objects, and effects
// of other hooks
// const { scrollTop, isScrolling } = useScroller(props.offset, props.scrollFps)
// This is an update-heavy phase and while we could just Object.assign here,
// it is way faster to inline and there's a relatively low hit to he bundle
// size.
return useMasonry<Item>({
scrollTop: props.scrollTop,
isScrolling: props.isScrolling,
positioner: props.positioner,
resizeObserver: props.resizeObserver,
items: props.items,
onRender: props.onRender,
as: props.as,
id: props.id,
className: props.className,
style: props.style,
role: props.role,
tabIndex: props.tabIndex,
containerRef: props.containerRef,
itemAs: props.itemAs,
itemStyle: props.itemStyle,
itemHeightEstimate: props.itemHeightEstimate,
itemKey: props.itemKey,
overscanBy: props.overscanBy,
height: props.height,
render: props.render,
})
}
function useContainerPosition(
elementRef: React.MutableRefObject<HTMLElement | null>,
deps: React.DependencyList = [],
): ContainerPosition & {
height: number
} {
const [containerPosition, setContainerPosition] = React.useState<
ContainerPosition & {
height: number
}
>({
offset: 0,
width: 0,
height: 0,
})
React.useLayoutEffect(() => {
const { current } = elementRef
if (current !== null) {
let offset = 0
let el = current
do {
offset += el.offsetTop || 0
el = el.offsetParent as HTMLElement
} while (el)
if (offset !== containerPosition.offset || current.offsetWidth !== containerPosition.width) {
setContainerPosition({
offset,
width: current.offsetWidth,
height: current.offsetHeight,
})
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, deps)
React.useEffect(() => {
const resizeObserver = new ResizeObserver(() => {
setContainerPosition((prev) => ({
...prev,
width: elementRef.current?.offsetWidth || 0,
}))
})
resizeObserver.observe(elementRef.current as HTMLElement)
return () => {
resizeObserver.disconnect()
}
}, [containerPosition, elementRef])
return containerPosition
}
function useResizeObserver(positioner: Positioner) {
const [forceUpdate] = useForceUpdate()
const resizeObserver = createResizeObserver(positioner, throttle(forceUpdate, 1000 / 12))
// Cleans up the resize observers when they change or the
// component unmounts
React.useEffect(() => () => resizeObserver.disconnect(), [resizeObserver])
return resizeObserver
}
+37
View File
@@ -0,0 +1,37 @@
import { useAtomValue } from "jotai"
import PostHog from "posthog-js"
import { useFeatureFlagEnabled } from "posthog-js/react"
import { jotaiStore } from "~/lib/jotai"
import type { FeatureKeys } from "~/modules/ab/atoms"
import { debugFeaturesAtom, enableDebugOverrideAtom, IS_DEBUG_ENV } from "~/modules/ab/atoms"
import { abPayloadFallback } from "~/modules/ab/fallback"
export const useAb = (feature: FeatureKeys) => {
const isEnableDebugOverrides = useAtomValue(enableDebugOverrideAtom)
const debugFeatureOverrides = useAtomValue(debugFeaturesAtom)
const isEnabled = useFeatureFlagEnabled(feature)
if (IS_DEBUG_ENV && isEnableDebugOverrides) return debugFeatureOverrides[feature]
return isEnabled
}
export const isAbEnabled = (feature: FeatureKeys) => {
const featureFlag = PostHog.getFeatureFlag(feature)
const enabled = typeof featureFlag === "boolean" ? featureFlag : featureFlag === "enabled"
const debugOverride = jotaiStore.get(debugFeaturesAtom)
const isEnableOverride = jotaiStore.get(enableDebugOverrideAtom)
if (isEnableOverride) {
return debugOverride[feature]
}
return enabled
}
export const getAbValue = (feature: FeatureKeys) => {
return PostHog.getFeatureFlagPayload(feature) || abPayloadFallback[feature]
}
@@ -46,7 +46,9 @@ export const useFeedActions = ({
shortcut: "E",
click: () => {
present({
title: t("sidebar.feed_actions.edit_feed"),
title: isList
? t("sidebar.feed_actions.edit_list")
: t("sidebar.feed_actions.edit_feed"),
content: ({ dismiss }) => (
<FeedForm asWidget id={feedId} onSuccess={dismiss} isList={isList} />
),
@@ -12,14 +12,30 @@ export const usePresentFeedFormModal = () => {
const me = useWhoami()
const t = useI18n()
return useCallback(
(feedId: string) => {
(
params:
| {
feedId: string
}
| {
listId: string
},
) => {
if (me) {
const isList = !!("listId" in params)
present({
title: t("sidebar.feed_actions.edit_feed"),
content: ({ dismiss }) => <FeedForm asWidget id={feedId} onSuccess={dismiss} />,
title: isList ? t("sidebar.feed_actions.edit_list") : t("sidebar.feed_actions.edit_feed"),
content: ({ dismiss }) => (
<FeedForm
asWidget
id={isList ? params.listId : params.feedId}
isList={isList}
onSuccess={dismiss}
/>
),
})
} else {
window.location.href = `${DEEPLINK_SCHEME}add?id=${feedId}`
window.location.href = `${DEEPLINK_SCHEME}add?id=${"feedId" in params ? params.feedId : params.listId}`
}
},
[me, present, t],
@@ -1,5 +1,6 @@
import { useMutation } from "@tanstack/react-query"
import { useHotkeys } from "react-hotkeys-hook"
import { Trans, useTranslation } from "react-i18next"
import { toast } from "sonner"
import { Kbd } from "~/components/ui/kbd/Kbd"
@@ -13,8 +14,10 @@ import { feedUnreadActions } from "~/store/unread"
import { navigateEntry } from "./useNavigateEntry"
import { getRouteParams } from "./useRouteParams"
export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void }) =>
useMutation({
export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void }) => {
const { t } = useTranslation()
return useMutation({
mutationFn: async (subscription: SubscriptionFlatModel) =>
subscriptionActions.unfollow(subscription.feedId).then((feed) => {
subscriptionQuery.byView(subscription.view).invalidate()
@@ -39,12 +42,13 @@ export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void })
toast.dismiss(toastId)
}
const toastId = toast(<UnfollowInfo title={feed.title!} undo={undo} />, {
duration: 3000,
action: {
label: (
<span className="flex items-center gap-1">
Undo
{t("words.undo")}
<Kbd className="inline-flex items-center border border-border bg-transparent dark:text-white">
Meta+Z
</Kbd>
@@ -68,6 +72,7 @@ export const useDeleteSubscription = ({ onSuccess }: { onSuccess?: () => void })
}
},
})
}
const UnfollowInfo = ({ title, undo }: { title: string; undo: () => any }) => {
useHotkeys("ctrl+z,meta+z", undo, {
@@ -76,7 +81,13 @@ const UnfollowInfo = ({ title, undo }: { title: string; undo: () => any }) => {
})
return (
<>
Feed <i className="mr-px font-semibold">{title}</i> has been unfollowed.
<Trans
ns="app"
i18nKey="notify.unfollow_feed"
components={{
FeedItem: <i className="mr-px font-semibold">{title}</i>,
}}
/>
</>
)
}
+2 -3
View File
@@ -97,13 +97,12 @@ export const initializeApp = async () => {
})
// should after hydrateSettings
const { dataPersist: enabledDataPersist, sendAnonymousData } = getGeneralSettings()
const { dataPersist: enabledDataPersist } = getGeneralSettings()
initSentry()
initPostHog()
await apm("i18n", initI18n)
if (sendAnonymousData) initPostHog()
let dataHydratedTime: undefined | number
// Initialize the database
if (enabledDataPersist) {
+6 -3
View File
@@ -1,6 +1,8 @@
import { env } from "@follow/shared/env"
import type { CaptureOptions, Properties } from "posthog-js"
import { posthog } from "posthog-js"
import { getGeneralSettings } from "~/atoms/settings/general"
import { whoami } from "~/atoms/user"
declare global {
@@ -12,9 +14,6 @@ declare global {
}
}
export const initPostHog = async () => {
if (import.meta.env.DEV) return
const { default: posthog } = await import("posthog-js")
if (env.VITE_POSTHOG_KEY === undefined) return
posthog.init(env.VITE_POSTHOG_KEY, {
person_profiles: "identified_only",
@@ -25,6 +24,10 @@ export const initPostHog = async () => {
window.posthog = {
reset,
capture(event_name: string, properties?: Properties | null, options?: CaptureOptions) {
if (import.meta.env.DEV) return
if (!getGeneralSettings().sendAnonymousData) {
return
}
return capture.apply(posthog, [
event_name,
{
+10 -2
View File
@@ -1,6 +1,7 @@
import { env } from "@follow/shared/env"
import { imageRefererMatches } from "@follow/shared/image"
import { getAbValue, isAbEnabled } from "~/hooks/biz/useAb"
export const getImageProxyUrl = ({
url,
width,
@@ -9,7 +10,14 @@ export const getImageProxyUrl = ({
url: string
width: number
height: number
}) => `${env.VITE_IMGPROXY_URL}/unsafe/fit-in/${width}x${height}/${encodeURIComponent(url)}`
}) => {
const abValue = getAbValue("Image_Proxy_V2")
if (isAbEnabled("Image_Proxy_V2")) {
return `${abValue}?url=${encodeURIComponent(url)}&width=${width}&height=${height}`
} else {
return `${abValue}/unsafe/fit-in/${width}x${height}/${encodeURIComponent(url)}`
}
}
export const replaceImgUrlIfNeed = (url: string) => {
for (const rule of imageRefererMatches) {
+15
View File
@@ -0,0 +1,15 @@
import FEATURES from "@constants/flags.json"
import { atom } from "jotai"
import { atomWithStorage } from "jotai/utils"
import { getStorageNS } from "~/lib/ns"
export type FeatureKeys = keyof typeof FEATURES
export const debugFeaturesAtom = atomWithStorage(getStorageNS("ab"), FEATURES, undefined, {
getOnInit: true,
})
export const IS_DEBUG_ENV = import.meta.env.DEV || import.meta.env["PREVIEW_MODE"]
export const enableDebugOverrideAtom = atom(IS_DEBUG_ENV)
+5
View File
@@ -0,0 +1,5 @@
import type { FeatureKeys } from "./atoms"
export const abPayloadFallback: Record<FeatureKeys, string> = {
Image_Proxy_V2: "https://thumbor.follow.is",
}
+30
View File
@@ -0,0 +1,30 @@
import type { FC } from "react"
import { forwardRef } from "react"
import { useAb } from "~/hooks/biz/useAb"
import type { FeatureKeys } from "./atoms"
const Noop = () => null
export const withFeature =
(feature: FeatureKeys) =>
<T extends object>(
Component: FC<T>,
FallbackComponent: any = Noop,
) => {
// @ts-expect-error
const WithFeature = forwardRef((props: T, ref: any) => {
const isEnabled = useAb(feature)
if (isEnabled === undefined) return null
return isEnabled ? (
<Component {...props} ref={ref} />
) : (
<FallbackComponent {...props} ref={ref} />
)
})
return WithFeature
}
@@ -0,0 +1,84 @@
import { useAtomValue, useSetAtom } from "jotai"
import { Divider } from "~/components/ui/divider"
import { Label } from "~/components/ui/label"
import { useModalStack } from "~/components/ui/modal"
import { RootPortal } from "~/components/ui/portal"
import { Switch } from "~/components/ui/switch"
import type { FeatureKeys } from "./atoms"
import { debugFeaturesAtom, enableDebugOverrideAtom, IS_DEBUG_ENV } from "./atoms"
export const FeatureFlagDebugger = () => {
if (IS_DEBUG_ENV) return <DebugToggle />
return null
}
const DebugToggle = () => {
const { present } = useModalStack()
return (
<RootPortal>
<div
tabIndex={-1}
onClick={() => {
present({
title: "A/B",
content: ABModalContent,
})
}}
className="fixed bottom-5 right-0 flex size-5 items-center justify-center opacity-40 duration-200 hover:opacity-100"
>
<i className="i-mingcute-switch-line" />
</div>
</RootPortal>
)
}
const SwitchInternal = ({ Key }: { Key: FeatureKeys }) => {
const enabled = useAtomValue(debugFeaturesAtom)[Key]
const setDebugFeatures = useSetAtom(debugFeaturesAtom)
return (
<Switch
checked={enabled}
onCheckedChange={(checked) => {
setDebugFeatures((prev) => ({ ...prev, [Key]: checked }))
}}
/>
)
}
const ABModalContent = () => {
const features = useAtomValue(debugFeaturesAtom)
const enableOverride = useAtomValue(enableDebugOverrideAtom)
const setEnableDebugOverride = useSetAtom(enableDebugOverrideAtom)
return (
<div>
<Label className="flex items-center justify-between">
Enable Override A/B
<Switch
checked={enableOverride}
onCheckedChange={(checked) => {
setEnableDebugOverride(checked)
}}
/>
</Label>
<Divider />
<div className={enableOverride ? "opacity-100" : "pointer-events-none opacity-40"}>
{Object.keys(features).map((key) => {
return (
<div key={key} className="flex w-full items-center justify-between">
<Label className="flex w-full items-center justify-between text-sm">
{key}
<SwitchInternal Key={key as any} />
</Label>
</div>
)
})}
</div>
</div>
)
}
+3 -1
View File
@@ -1,4 +1,5 @@
import { createElement, useCallback } from "react"
import { useTranslation } from "react-i18next"
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
import { getFeedById } from "~/store/feed"
@@ -7,6 +8,7 @@ import { FeedClaimModalContent } from "./feed-claim-modal"
export const useFeedClaimModal = ({ feedId }: { feedId?: string }) => {
const { present } = useModalStack()
const { t } = useTranslation()
return useCallback(() => {
if (!feedId) return
@@ -16,7 +18,7 @@ export const useFeedClaimModal = ({ feedId }: { feedId?: string }) => {
if (!feed) return
present({
title: "Feed Claim",
title: t("feed_claim_modal.title"),
content: () => createElement(FeedClaimModalContent, { feedId }),
modalClassName: "!h-auto !max-h-screen",
})
@@ -88,7 +88,16 @@ export const FeedForm: Component<{
)}
{feed ? (
<FeedInnerForm {...{ defaultValues, id, url, asWidget, onSuccess }} />
<FeedInnerForm
{...{
defaultValues,
id,
url,
asWidget,
onSuccess,
subscriptionData: feedQuery.data?.subscription,
}}
/>
) : feedQuery.isLoading ? (
<div className="flex flex-1 items-center justify-center">
<LoadingCircle size="large" />
@@ -156,16 +165,23 @@ const FeedInnerForm = ({
url,
asWidget,
onSuccess,
subscriptionData,
}: {
defaultValues?: z.infer<typeof formSchema>
url?: string
id?: string
asWidget?: boolean
onSuccess?: () => void
subscriptionData?: {
view?: number
category?: string | null
isPrivate?: boolean
title?: string | null
}
}) => {
const subscription = useSubscriptionByFeedId(id || "")
const buttonRef = useRef<HTMLButtonElement>(null)
const subscription = useSubscriptionByFeedId(id || "") || subscriptionData
const isSubscribed = !!subscription
const buttonRef = useRef<HTMLButtonElement>(null)
const feed = useFeedByIdOrUrl({ id, url })!
const isList = feed?.type === "list"
+25 -30
View File
@@ -311,36 +311,31 @@ const SearchCard: FC<{
)}
</CardContent>
<CardFooter>
{item.isSubscribed ? (
<Button variant="outline" disabled>
Followed
</Button>
) : (
<Button
onClick={() => {
present({
title: "Add Feed",
content: ({ dismiss }) => (
<FeedForm
asWidget
url={item.feed?.url}
id={item.feed?.id || item.list?.id}
isList={!!item.list?.id}
defaultValues={{
view: getSidebarActiveView().toString(),
}}
onSuccess={() => {
onSuccess(item)
dismiss()
}}
/>
),
})
}}
>
Follow
</Button>
)}
<Button
variant={item.isSubscribed ? "outline" : undefined}
onClick={() => {
present({
title: "Add Feed",
content: ({ dismiss }) => (
<FeedForm
asWidget
url={item.feed?.url}
id={item.feed?.id || item.list?.id}
isList={!!item.list?.id}
defaultValues={{
view: getSidebarActiveView().toString(),
}}
onSuccess={() => {
onSuccess(item)
dismiss()
}}
/>
),
})
}}
>
{item.isSubscribed ? "Followed" : "Follow"}
</Button>
<div className="ml-6 text-zinc-500">
<span className="font-medium text-zinc-800 dark:text-zinc-200">
{item.subscriptionCount}
+26 -20
View File
@@ -2,7 +2,7 @@ import { zodResolver } from "@hookform/resolvers/zod"
import { useMutation } from "@tanstack/react-query"
import { Fragment } from "react/jsx-runtime"
import { useForm } from "react-hook-form"
import { useTranslation } from "react-i18next"
import { Trans, useTranslation } from "react-i18next"
import { z } from "zod"
import { Button } from "~/components/ui/button"
@@ -35,20 +35,26 @@ const formSchema = z.object({
}),
})
const list = [
const NumberDisplay = ({ value }) => <span className="font-bold text-zinc-800">{value ?? 0}</span>
const list: {
key: string
title: I18nKeys
className: string
}[] = [
{
key: "parsedErrorItems",
title: "Parsed Error Items",
title: "discover.import.parsedErrorItems",
className: "text-red-500",
},
{
key: "successfulItems",
title: "Successful Items",
title: "discover.import.successfulItems",
className: "text-green-500",
},
{
key: "conflictItems",
title: "Conflict Items",
title: "discover.import.conflictItems",
className: "text-yellow-500",
},
]
@@ -88,6 +94,7 @@ export function DiscoverImport() {
function onSubmit(values: z.infer<typeof formSchema>) {
mutation.mutate(values.file)
}
const { t } = useTranslation()
return (
@@ -99,7 +106,7 @@ export function DiscoverImport() {
name="file"
render={({ field: { value, onChange, ...fieldProps } }) => (
<FormItem>
<FormLabel>OPML file</FormLabel>
<FormLabel>{t("discover.import.opml")}</FormLabel>
<FormControl>
<label
className="center flex h-[100px] w-full rounded-md border border-dashed"
@@ -149,26 +156,25 @@ export function DiscoverImport() {
<div className="mt-8 max-w-lg">
<Card>
<CardHeader className="block text-zinc-500">
<span className="font-bold text-zinc-800">
{mutation.data?.successfulItems.length || 0}
</span>{" "}
feeds were successfully imported,{" "}
<span className="font-bold text-zinc-800">
{mutation.data?.conflictItems.length || 0}
</span>{" "}
were already subscribed to, and{" "}
<span className="font-bold text-zinc-800">
{mutation.data?.parsedErrorItems.length || 0}
</span>{" "}
failed to import.
<Trans
ns="app"
i18nKey="discover.import.result"
components={{
SuccessfulNum: <NumberDisplay value={mutation.data?.successfulItems.length} />,
ConflictNum: <NumberDisplay value={mutation.data?.conflictItems.length} />,
ErrorNum: <NumberDisplay value={mutation.data?.parsedErrorItems.length} />,
}}
/>
</CardHeader>
<CardContent className="space-y-6">
{list.map((item) => (
<div key={item.key}>
<div className={cn("mb-4 text-lg font-medium", item.className)}>{item.title}</div>
<div className={cn("mb-4 text-lg font-medium", item.className)}>
{t(item.title)}
</div>
<div className="space-y-4">
{!mutation.data?.[item.key].length && (
<div className="text-zinc-500">No items</div>
<div className="text-zinc-500">{t("discover.import.noItems")}</div>
)}
{mutation.data?.[item.key].map((feed) => (
<FollowSummary className="max-w-[462px]" key={feed.id} feed={feed} />
@@ -9,6 +9,8 @@ export const useMasonryItemWidth = () => useContext(MasonryItemWidthContext)
export const MasonryItemsAspectRatioContext = createContextSelector({} as Record<string, number>)
export const MasonryIntersectionContext = createContext<IntersectionObserver>(null!)
export const useMasonryItemRatio = (url: string) =>
useContextSelector(MasonryItemsAspectRatioContext, (ctx) => ctx[url])
@@ -1,5 +1,7 @@
import { useLayoutEffect } from "foxact/use-isomorphic-layout-effect"
import { AnimatePresence, m } from "framer-motion"
import type { PropsWithChildren } from "react"
import { memo, useEffect, useState } from "react"
import { memo, useContext, useEffect, useMemo, useState } from "react"
import { useTranslation } from "react-i18next"
import { SwipeMedia } from "~/components/ui/media/SwipeMedia"
@@ -13,9 +15,10 @@ import { useImageDimensions } from "~/store/image"
import { usePreviewMedia } from "../../../components/ui/media/hooks"
import { EntryItemWrapper } from "../layouts/EntryItemWrapper"
import { GridItem } from "../templates/grid-item-template"
import { GridItem, GridItemFooter } from "../templates/grid-item-template"
import type { UniversalItemProps } from "../types"
import {
MasonryIntersectionContext,
useMasonryItemRatio,
useMasonryItemWidth,
useSetStableMasonryItemRatio,
@@ -71,20 +74,39 @@ export const PictureWaterFallItem = memo(function PictureWaterFallItem({
const isActive = useRouteParamsSelector(({ entryId }) => entryId === entry?.entries.id)
const previewMedia = usePreviewMedia()
const itemWidth = useMasonryItemWidth()
const [ref, setRef] = useState<HTMLDivElement | null>(null)
const intersectionObserver = useContext(MasonryIntersectionContext)
useLayoutEffect(() => {
if (ref) {
intersectionObserver.observe(ref)
}
return () => {
if (ref) {
intersectionObserver.unobserve(ref)
}
}
}, [ref, intersectionObserver])
const [isMouseEnter, setIsMouseEnter] = useState(false)
if (!entry) return null
return (
<EntryItemWrapper
view={FeedViewType.Pictures}
entry={entry}
itemClassName="group hover:bg-theme-item-hover rounded-md"
<div
ref={setRef}
data-entry-id={entryId}
onMouseEnter={() => setIsMouseEnter(true)}
onMouseLeave={() => setIsMouseEnter(false)}
>
<GridItem
wrapperClassName="p-0 h-full flex flex-col"
entryId={entryId}
entryPreview={entryPreview}
translation={translation}
<EntryItemWrapper
view={FeedViewType.Pictures}
entry={entry}
itemClassName="group hover:bg-theme-item-hover rounded-md"
style={{
width: itemWidth,
}}
>
{entry.entries.media && entry.entries.media.length > 0 ? (
<MasonryItemFixedDimensionWrapper url={entry.entries.media[0].url}>
@@ -94,10 +116,32 @@ export const PictureWaterFallItem = memo(function PictureWaterFallItem({
proxySize={proxySize}
imgClassName="object-cover"
uniqueKey={entryId}
onPreview={(media, i) => {
previewMedia(media, i)
}}
onPreview={previewMedia}
/>
<AnimatePresence>
{isMouseEnter && (
<m.div
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: 10 }}
className="absolute inset-x-0 -bottom-px z-[3] overflow-hidden rounded-b-md pb-1"
key="footer"
>
<div className="absolute inset-x-0 bottom-0 h-[56px]" style={maskStyle}>
<div className="absolute inset-x-0 bottom-0 h-[56px] bg-gradient-to-t from-black/80 to-transparent" />
</div>
<GridItemFooter
entryId={entryId}
entryPreview={entryPreview}
translation={translation}
titleClassName="!text-white"
descriptionClassName="!text-white/80"
timeClassName="!text-white/60"
/>
</m.div>
)}
</AnimatePresence>
</MasonryItemFixedDimensionWrapper>
) : (
<div className="center aspect-video flex-col gap-1 rounded-md bg-muted text-xs text-muted-foreground">
@@ -105,11 +149,14 @@ export const PictureWaterFallItem = memo(function PictureWaterFallItem({
No media available
</div>
)}
</GridItem>
</EntryItemWrapper>
</EntryItemWrapper>
</div>
)
})
const maskStyle = {
maskImage: "linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 10px)",
}
const MasonryItemFixedDimensionWrapper = (
props: PropsWithChildren<{
url: string
@@ -129,14 +176,18 @@ const MasonryItemFixedDimensionWrapper = (
setItemStableRatio(url, stableRadio)
}, [setItemStableRatio, stableRadio, url])
const style = useMemo(
() => ({
width: itemWidth,
height: itemWidth / stableRadioCtx,
}),
[itemWidth, stableRadioCtx],
)
if (!style.height) return null
return (
<div
className="relative flex h-full gap-2 overflow-x-auto"
style={{
width: itemWidth,
height: itemWidth / stableRadioCtx,
}}
>
<div className="relative flex h-full gap-2 overflow-x-auto overflow-y-hidden" style={style}>
{children}
</div>
)
@@ -153,13 +204,13 @@ export const PictureItemSkeleton = (
</div>
<div className="relative flex-1 px-2 pb-3 pt-1 text-sm">
<div className="relative mb-1 mt-1.5 truncate font-medium leading-none">
<Skeleton className="h-4 w-3/4 " />
<Skeleton className="h-4 w-3/4" />
</div>
<div className="mt-1 flex items-center gap-1 truncate text-[13px]">
<Skeleton className="mr-0.5 size-4" />
<Skeleton className="h-3 w-1/2 " />
<Skeleton className="h-3 w-1/2" />
<span className="text-zinc-500">·</span>
<Skeleton className="h-3 w-12 " />
<Skeleton className="h-3 w-12" />
</div>
</div>
</div>
@@ -1,10 +1,12 @@
import { MasonryInfiniteGrid } from "@egjs/react-infinitegrid"
import { debounce, throttle } from "lodash-es"
import type { CSSProperties, FC, PropsWithChildren } from "react"
import { memo, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
import { useSingleton } from "foxact/use-singleton"
import { throttle } from "lodash-es"
import type { RenderComponentProps } from "masonic"
import { useInfiniteLoader } from "masonic"
import type { FC } from "react"
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
import { useEventCallback } from "usehooks-ts"
import { useGeneralSettingKey } from "~/atoms/settings/general"
import { Masonry } from "~/components/ui/Masonry"
import { useScrollViewElement } from "~/components/ui/scroll-area/hooks"
import { nextFrame } from "~/lib/dom"
import { FeedViewType } from "~/lib/enum"
@@ -14,6 +16,7 @@ import { imageActions } from "~/store/image"
import { batchMarkRead } from "../hooks"
import { EntryItemSkeleton } from "../item"
import {
MasonryIntersectionContext,
MasonryItemsAspectRatioContext,
MasonryItemsAspectRatioSetterContext,
MasonryItemWidthContext,
@@ -51,9 +54,11 @@ const getCurrentColumn = (w: number) => {
return columns
}
const gutter = 24
export const PictureMasonry: FC<MasonryProps> = (props) => {
const { data } = props
const cacheMap = useSingleton(() => new Map<string, object>()).current
const [isInitDim, setIsInitDim] = useState(false)
const [isInitLayout, setIsInitLayout] = useState(false)
const [currentItemWidth, setCurrentItemWidth] = useState(0)
@@ -74,12 +79,13 @@ export const PictureMasonry: FC<MasonryProps> = (props) => {
}, [])
const containerRef = useRef<HTMLDivElement>(null)
const [currentColumn, setCurrentColumn] = useState(1)
useLayoutEffect(() => {
const $warpper = containerRef.current
if (!$warpper) return
const handler = () => {
const column = getCurrentColumn($warpper.clientWidth)
setCurrentItemWidth(Math.trunc($warpper.clientWidth / column - 20))
setCurrentItemWidth(Math.trunc($warpper.clientWidth / column - gutter))
setCurrentColumn(column)
@@ -87,7 +93,7 @@ export const PictureMasonry: FC<MasonryProps> = (props) => {
setIsInitLayout(true)
})
}
const recal = throttle(handler, 50)
const recal = throttle(handler, 1000 / 12)
let previousWidth = $warpper.offsetWidth
const resizeObserver = new ResizeObserver((entries) => {
@@ -108,146 +114,105 @@ export const PictureMasonry: FC<MasonryProps> = (props) => {
}
}, [])
const items = useMemo(() => {
const result = data.map((entryId) => {
const cache = cacheMap.get(entryId)
if (cache) {
return cache
}
const ret = { entryId }
cacheMap.set(entryId, ret)
return ret
}) as { entryId: string; cache?: object }[]
if (props.hasNextPage) {
for (let i = 0; i < 10; i++) {
result.push({
entryId: `placeholder${i}`,
})
}
}
return result
}, [cacheMap, data, props.hasNextPage])
const [masonryItemsRadio, setMasonryItemsRadio] = useState<Record<string, number>>({})
const maybeLoadMore = useInfiniteLoader(props.endReached, {
isItemLoaded: (index, items) => !!items[index],
minimumBatchSize: 32,
threshold: 3,
})
const scrollElement = useScrollViewElement()
const [intersectionObserver, setIntersectionObserver] = useState<IntersectionObserver>(null!)
useEffect(() => {
if (!scrollElement) return
const observer = new IntersectionObserver(
(entries) => {
const entryIds: string[] = []
entries.forEach((entry) => {
if (entry.intersectionRatio >= 0.5) {
entryIds.push((entry.target as HTMLDivElement).dataset.entryId as string)
}
})
batchMarkRead(entryIds)
},
{
rootMargin: "0px",
threshold: 1,
root: scrollElement,
},
)
setIntersectionObserver(observer)
return () => {
observer.disconnect()
}
}, [scrollElement])
return (
<div ref={containerRef} className="p-4">
<MasonryItemWidthContext.Provider value={currentItemWidth}>
{isInitDim && isInitLayout && (
<PictureMasonryImpl
{...props}
column={currentColumn}
restoreDimensions={restoreDimensions}
/>
)}
</MasonryItemWidthContext.Provider>
{isInitDim && isInitLayout && (
<MasonryItemWidthContext.Provider value={currentItemWidth}>
<MasonryItemsAspectRatioContext.Provider value={masonryItemsRadio}>
<MasonryItemsAspectRatioSetterContext.Provider value={setMasonryItemsRadio}>
<MasonryIntersectionContext.Provider value={intersectionObserver}>
<Masonry
items={items}
columnGutter={gutter}
columnWidth={currentItemWidth}
columnCount={currentColumn}
overscanBy={2}
render={render}
onRender={maybeLoadMore}
itemKey={itemKey}
/>
</MasonryIntersectionContext.Provider>
</MasonryItemsAspectRatioSetterContext.Provider>
</MasonryItemsAspectRatioContext.Provider>
</MasonryItemWidthContext.Provider>
)}
</div>
)
}
const itemKey = (item: { entryId: string }) => item.entryId
const render: React.ComponentType<
RenderComponentProps<{
entryId: string
}>
> = ({ data }) => {
if (data.entryId.startsWith("placeholder")) {
return <LoadingSkeletonItem />
}
return <PictureWaterFallItem entryId={data.entryId} />
}
interface MasonryProps {
data: string[]
endReached: () => Promise<any>
hasNextPage: boolean
}
const PictureMasonryImpl = ({
data,
endReached,
hasNextPage,
restoreDimensions,
column,
}: MasonryProps & {
restoreDimensions: () => Promise<void>
column: number
}) => {
const masonryRef = useRef<MasonryInfiniteGrid>(null)
const $scroll = useScrollViewElement()
const currentItemWidth = useContext(MasonryItemWidthContext)
const itemStyle: CSSProperties = useMemo(() => ({ width: currentItemWidth }), [currentItemWidth])
const [masonryItemsRadio, setMasonryItemsRadio] = useState<Record<string, number>>({})
const scrollMarkUnread = useGeneralSettingKey("scrollMarkUnread")
const inViewMarkRead = useGeneralSettingKey("renderMarkUnread")
const handleScroll = useEventCallback(
debounce(() => {
if (!scrollMarkUnread) return
const $masonryRef = masonryRef.current
if (!$masonryRef) return
const items = $masonryRef.getVisibleItems()
const first = items[0]
if (!first) return
const itemIndex = first.element?.dataset.index
if (itemIndex === undefined) return
const prevIndex = +itemIndex - 1
if (Number.isNaN(prevIndex)) return
if (prevIndex < 0) return
const markReadIdsSlice = data.slice(0, prevIndex + 1)
batchMarkRead(markReadIdsSlice)
}, 100),
)
return (
<MasonryItemsAspectRatioContext.Provider value={masonryItemsRadio}>
<MasonryItemsAspectRatioSetterContext.Provider value={setMasonryItemsRadio}>
<MasonryInfiniteGrid
ref={masonryRef}
onRenderComplete={useEventCallback((e) => {
if (!inViewMarkRead) {
return
}
const entryIds: string[] = []
for (const mount of e.mounted) {
const index = +(mount.element?.dataset.index as string)
if (Number.isNaN(index)) return
const entryId = data[index]
if (!entryId) continue
entryIds.push(entryId)
}
batchMarkRead(entryIds)
})}
placeholder={<LoadingSkeletonItem itemStyle={itemStyle} />}
onRequestAppend={(e) => {
if (!hasNextPage) return
e.wait()
const nextGroupKey = (+e.groupKey! || 0) + 1
e.currentTarget.appendPlaceholders(10, nextGroupKey)
endReached()
.then(restoreDimensions)
.finally(() => {
e.ready()
})
}}
onChangeScroll={handleScroll}
scrollContainer={$scroll}
gap={{ vertical: 24 }}
column={column}
>
{data.map((entryId, index) => (
<ItemWrapper
data-grid-groupkey={(index / 5) | 0}
data-index={index}
itemStyle={itemStyle}
key={entryId}
entryId={entryId}
>
<PictureWaterFallItem entryId={entryId} />
</ItemWrapper>
))}
</MasonryInfiniteGrid>
</MasonryItemsAspectRatioSetterContext.Provider>
</MasonryItemsAspectRatioContext.Provider>
)
}
const LoadingSkeletonItem = ({ itemStyle }: { itemStyle: CSSProperties }) => (
<div style={itemStyle}>
<EntryItemSkeleton count={1} view={FeedViewType.Pictures} />
</div>
)
const ItemWrapperImpl = ({
itemStyle,
style,
children,
entryId,
...rest
}: {
itemStyle: CSSProperties
entryId: string
} & React.HtmlHTMLAttributes<HTMLDivElement> &
PropsWithChildren) => (
<div
style={{
...style,
...itemStyle,
}}
{...rest}
>
{children}
</div>
)
const ItemWrapper = memo(ItemWrapperImpl)
const LoadingSkeletonItem = () => <EntryItemSkeleton count={1} view={FeedViewType.Pictures} />
@@ -9,9 +9,11 @@ import { ActionButton } from "~/components/ui/button"
import { RelativeDay } from "~/components/ui/datetime"
import { useScrollViewElement } from "~/components/ui/scroll-area/hooks"
import { IconScaleTransition } from "~/components/ux/transition/icon"
import { useRouteParams } from "~/hooks/biz/useRouteParams"
import { stopPropagation } from "~/lib/dom"
import { FeedViewType } from "~/lib/enum"
import { cn } from "~/lib/utils"
import { isListSubscription } from "~/store/subscription"
import { useMarkAllByRoute } from "../hooks/useMarkAll"
@@ -103,6 +105,9 @@ const DateItemInner: FC<{
const timerRef = useRef<any>()
const W = Wrapper ?? SafeFragment
const { feedId } = useRouteParams()
const isList = isListSubscription(feedId)
return (
<div
className={cn(className, isSticky && "border-b")}
@@ -131,7 +136,7 @@ const DateItemInner: FC<{
setConfirmMark(true)
}
}}
className="size-7 text-base"
className={cn("size-7 text-base", isList && "pointer-events-none opacity-0")}
>
<IconScaleTransition
icon1="i-mgc-check-filled text-green-600"
@@ -8,7 +8,7 @@ import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRoutePara
import { useAuthQuery } from "~/hooks/common"
import { entries, useEntries } from "~/queries/entries"
import { entryActions, useEntryIdsByFeedIdOrView } from "~/store/entry"
import { useFolderFeedsByFeedId } from "~/store/subscription"
import { isListSubscription, useFolderFeedsByFeedId } from "~/store/subscription"
import { feedUnreadActions } from "~/store/unread"
export const useEntryMarkReadHandler = (entriesIds: string[]) => {
@@ -60,6 +60,7 @@ export const useEntriesByView = ({
const unreadOnly = useGeneralSettingKey("unreadOnly")
const { feedId, view, isAllFeeds, isCollection } = routeParams
const isList = isListSubscription(feedId)
const folderIds = useFolderFeedsByFeedId({
feedId,
@@ -71,6 +72,7 @@ export const useEntriesByView = ({
view,
...(unreadOnly === true && { read: false }),
isArchived,
isList,
}
const query = useEntries(entriesOptions)
@@ -163,9 +165,15 @@ export const useEntriesByView = ({
setMergedEntries({ ...mergedEntries, [view]: entryIds })
}, [entryIdsAsDeps])
const sortEntries = isCollection
? sortEntriesIdByStarAt(mergedEntries[view])
: sortEntriesIdByEntryPublishedAt(mergedEntries[view])
const sortEntries = useMemo(
() =>
isCollection
? sortEntriesIdByStarAt(mergedEntries[view])
: isList
? sortEntriesIdByEntryInsertedAt(mergedEntries[view])
: sortEntriesIdByEntryPublishedAt(mergedEntries[view]),
[isCollection, isList, mergedEntries, view],
)
const groupByDate = useGeneralSettingKey("groupByDate")
const groupedCounts: number[] | undefined = useMemo(() => {
@@ -183,7 +191,9 @@ export const useEntriesByView = ({
if (!entry) {
continue
}
const date = new Date(entry.entries.publishedAt).toDateString()
const date = new Date(
isList ? entry.entries.insertedAt : entry.entries.publishedAt,
).toDateString()
if (date !== lastDate) {
counts.push(1)
lastDate = date
@@ -248,3 +258,12 @@ function sortEntriesIdByStarAt(entries: string[]) {
return bStar.localeCompare(aStar)
})
}
function sortEntriesIdByEntryInsertedAt(entries: string[]) {
const entriesId2Map = entryActions.getFlattenMapEntries()
return entries
.slice()
.sort((a, b) =>
entriesId2Map[b]?.entries.insertedAt.localeCompare(entriesId2Map[a]?.entries.insertedAt),
)
}
@@ -22,8 +22,9 @@ export const EntryItemWrapper: FC<
view?: number
itemClassName?: string
overlay?: boolean
style?: React.CSSProperties
} & PropsWithChildren
> = ({ entry, view, overlay, children, itemClassName }) => {
> = ({ entry, view, overlay, children, itemClassName, style }) => {
const { items } = useEntryActions({
view,
entry,
@@ -111,7 +112,7 @@ export const EntryItemWrapper: FC<
)
return (
<div data-entry-id={entry.entries.id}>
<div data-entry-id={entry.entries.id} style={style}>
<div
className={cn(
"relative",
@@ -9,8 +9,9 @@ import { useGeneralSettingKey } from "~/atoms/settings/general"
import { m } from "~/components/common/Motion"
import { EmptyIcon } from "~/components/icons/empty"
import { ReactVirtuosoItemPlaceholder } from "~/components/ui/placeholder"
import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
import { useRouteParams } from "~/hooks/biz/useRouteParams"
import { useEntry } from "~/store/entry"
import { isListSubscription } from "~/store/subscription"
import { DateItem } from "./components/DateItem"
import { EntryColumnShortcutHandler } from "./EntryColumnShortcutHandler"
@@ -132,10 +133,14 @@ const EntryHeadDateItem: FC<{
}> = memo(({ entryId }) => {
const entry = useEntry(entryId)
const view = useRouteParamsSelector((s) => s.view)
const routeParams = useRouteParams()
const { feedId, view } = routeParams
const isList = isListSubscription(feedId)
if (!entry) return <ReactVirtuosoItemPlaceholder />
const date = new Date(entry.entries.publishedAt).toDateString()
const date = new Date(
isList ? entry.entries.insertedAt : entry.entries.publishedAt,
).toDateString()
return <DateItem date={date} view={view} />
})
@@ -12,62 +12,78 @@ import { getPreferredTitle, useFeedById } from "~/store/feed"
import { StarIcon } from "../star-icon"
import type { UniversalItemProps } from "../types"
export function GridItem({
entryId,
entryPreview,
translation,
children,
wrapperClassName,
}: UniversalItemProps & {
interface GridItemProps extends UniversalItemProps {
children?: React.ReactNode
wrapperClassName?: string
}) {
}
export function GridItem(props: GridItemProps) {
const { entryId, entryPreview, wrapperClassName, children, translation } = props
const entry = useEntry(entryId) || entryPreview
const feeds = useFeedById(entry?.feedId)
const asRead = useAsRead(entry)
if (!entry) return <ReactVirtuosoItemPlaceholder />
return (
<div className={cn("p-1.5", wrapperClassName)}>
{children}
<div className={cn("relative px-2 py-1 text-sm")}>
<div className="flex items-center">
<div
className={cn(
"mr-1 size-1.5 shrink-0 self-center rounded-full bg-accent duration-200",
asRead && "mr-0 w-0",
)}
/>
<div
className={cn(
"relative mb-1 mt-1.5 flex w-full items-center gap-1 truncate font-medium leading-none",
!!entry.collections && "pr-5",
)}
>
<TitleMarquee className="min-w-0 grow">
<EntryTranslation source={entry.entries.title} target={translation?.title} />
</TitleMarquee>
{!!entry.collections && <StarIcon className="static shrink-0 self-end" />}
</div>
</div>
<div className="flex items-center gap-1 truncate text-[13px]">
<FeedIcon
fallback
className="mr-0.5 flex"
feed={feeds!}
entry={entry.entries}
size={18}
/>
<span className="min-w-0 truncate">{getPreferredTitle(feeds)}</span>
<span className="text-zinc-500">·</span>
<span className="text-zinc-500">
{dayjs
.duration(dayjs(entry.entries.publishedAt).diff(dayjs(), "minute"), "minute")
.humanize()}
</span>
<GridItemFooter entryId={entryId} entryPreview={entryPreview} translation={translation} />
</div>
)
}
export const GridItemFooter = ({
entryId,
entryPreview,
translation,
// classNames
titleClassName,
descriptionClassName,
timeClassName,
}: Pick<GridItemProps, "entryId" | "entryPreview" | "translation"> & {
titleClassName?: string
descriptionClassName?: string
timeClassName?: string
}) => {
const entry = useEntry(entryId) || entryPreview
const feeds = useFeedById(entry?.feedId)
const asRead = useAsRead(entry)
if (!entry) return null
return (
<div className={cn("relative px-2 py-1 text-sm")}>
<div className="flex items-center">
<div
className={cn(
"mr-1 size-1.5 shrink-0 self-center rounded-full bg-accent duration-200",
asRead && "mr-0 w-0",
)}
/>
<div
className={cn(
"relative mb-1 mt-1.5 flex w-full items-center gap-1 truncate font-medium leading-none",
!!entry.collections && "pr-5",
titleClassName,
)}
>
<TitleMarquee className="min-w-0 grow">
<EntryTranslation source={entry.entries.title} target={translation?.title} />
</TitleMarquee>
{!!entry.collections && <StarIcon className="static shrink-0 self-end" />}
</div>
</div>
<div className="flex items-center gap-1 truncate text-[13px]">
<FeedIcon fallback className="mr-0.5 flex" feed={feeds!} entry={entry.entries} size={18} />
<span className={cn("min-w-0 truncate", descriptionClassName)}>
{getPreferredTitle(feeds)}
</span>
<span className={cn("text-zinc-500", timeClassName)}>·</span>
<span className={cn("text-zinc-500", timeClassName)}>
{dayjs
.duration(dayjs(entry.entries.publishedAt).diff(dayjs(), "minute"), "minute")
.humanize()}
</span>
</div>
</div>
)
}
@@ -1,4 +1,3 @@
import { repository } from "@pkg"
import type { FallbackRender } from "@sentry/react"
import { ErrorBoundary } from "@sentry/react"
import type { FC } from "react"
@@ -413,6 +412,7 @@ const NoContent: FC<{
url: string
}> = ({ id, url }) => {
const status = useEntryInReadabilityStatus(id)
const { t } = useTranslation("app")
if (status !== ReadabilityStatus.INITIAL && status !== ReadabilityStatus.FAILURE) {
return null
@@ -420,21 +420,12 @@ const NoContent: FC<{
return (
<div className="center">
<div className="space-y-2 text-balance text-center text-sm text-zinc-400">
{(isWebBuild || status === ReadabilityStatus.FAILURE) && <span>No content</span>}
{(isWebBuild || status === ReadabilityStatus.FAILURE) && (
<span>{t("entry_content.no_content")}</span>
)}
{isWebBuild && (
<div>
<span>
Maybe web app doesn't support this content type. But you can{" "}
<a
target="_blank"
rel="noreferrer"
className="text-accent underline"
href={`${repository.url}/releases`}
>
download
</a>{" "}
the desktop app.
</span>
<span>{t("entry_content.web_app_notice")}</span>
</div>
)}
{url && window.electron && <ReadabilityAutoToggle url={url} id={id} />}
@@ -158,7 +158,7 @@ function FeedListImpl({ className, view }: { className?: string; view: number })
<div className="mt-1 flex h-6 w-full shrink-0 items-center rounded-md px-2.5 text-xs font-semibold text-theme-vibrancyFg transition-colors">
{t("words.lists")}
</div>
<SortableList view={view} expansion={expansion} data={listsData} />
<SortableList view={view} expansion={expansion} data={listsData} by="alphabetical" />
</>
)}
<div
@@ -179,7 +179,7 @@ function FeedListImpl({ className, view }: { className?: string; view: number })
onClick={stopPropagation}
>
<i className="i-mgc-add-cute-re text-3xl" />
<span className="text-base">Add some feeds</span>
<span className="text-base">{t("sidebar.add_more_feeds")}</span>
</Link>
</div>
)}
@@ -375,10 +375,10 @@ const SortByAlphabeticalList = ({ view, expansion, data }: FeedListProps) => {
)
}
const SortableList = (props: FeedListProps) => {
const by = useFeedListSortSelector((s) => s.by)
const SortableList = (props: FeedListProps & { by?: "count" | "alphabetical" }) => {
const userBy = useFeedListSortSelector((s) => s.by)
switch (by) {
switch (props.by || userBy) {
case "count": {
return <SortByUnreadList {...props} />
}
@@ -64,7 +64,7 @@ const Content = () => {
mask={false}
ref={setScroller}
rootClassName="h-full grow flex-1 shrink-0 overflow-auto pl-8 pr-7"
viewportClassName="pr-1 min-h-full [&>div]:min-h-full [&>div]:relative pb-8"
viewportClassName="px-1 min-h-full [&>div]:min-h-full [&>div]:relative pb-8"
>
<Component />
@@ -122,7 +122,7 @@ export function SettingModalLayout(
<SettingSyncIndicator />
</div>
</div>
<div className="relative flex h-full flex-1 flex-col bg-theme-background pt-1">
<div className="relative flex h-full min-w-0 flex-1 flex-col bg-theme-background pt-1">
<Suspense>{children}</Suspense>
</div>
</div>
@@ -4,6 +4,7 @@ import { useCallback, useEffect } from "react"
import { useTranslation } from "react-i18next"
import { currentSupportedLanguages } from "~/@types/constants"
import { defaultResources } from "~/@types/default-resource"
import { langLoadingLockMapAtom } from "~/atoms/lang"
import {
setGeneralSetting,
@@ -236,9 +237,14 @@ export const LanguageSelector = () => {
{currentSupportedLanguages.map((lang) => {
const percent = I18N_COMPLETENESS_MAP[lang]
const languageName =
langT(`langs.${lang}` as any) === `langs.${lang}`
? defaultResources[lang].lang.name
: langT(`langs.${lang}` as any)
return (
<SelectItem key={lang} value={lang}>
{langT(`langs.${lang}` as any)}{" "}
{languageName}{" "}
{typeof percent === "number" ? (percent >= 100 ? null : `(${percent}%)`) : null}
</SelectItem>
)
@@ -181,7 +181,7 @@ export const SettingLists = () => {
const formSchema = z.object({
view: z.string(),
title: z.string(),
title: z.string().min(1),
description: z.string().optional(),
image: z.string().optional(),
fee: z.number().min(0),
@@ -423,6 +423,7 @@ export const ListFeedsModalContent = ({ id }: { id: string }) => {
suggestions={autocompleteSuggestions}
/>
<Button
className="whitespace-nowrap"
onClick={() => {
if (isBizId(feedSearchFor)) {
addMutation.mutate(feedSearchFor)
@@ -6,7 +6,6 @@ import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar"
import { MotionButtonBase } from "~/components/ui/button"
import { RelativeTime } from "~/components/ui/datetime"
import { LoadingCircle } from "~/components/ui/loading"
import { ScrollArea } from "~/components/ui/scroll-area"
import {
Table,
TableBody,
@@ -16,6 +15,7 @@ import {
TableRow,
} from "~/components/ui/table"
import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "~/components/ui/tooltip"
import { EllipsisHorizontalTextWithTooltip } from "~/components/ui/typography"
import { cn } from "~/lib/utils"
import { usePresentUserProfileModal } from "~/modules/profile/hooks"
import { SettingSectionTitle } from "~/modules/settings/section"
@@ -41,14 +41,14 @@ export const TransactionsSection = () => {
}
return (
<div className="grow">
<div className="relative flex min-w-0 grow flex-col">
<SettingSectionTitle title={t("wallet.transactions.title")} />
<ScrollArea.ScrollArea viewportClassName="grow">
<Table>
<div className="w-fit min-w-0 grow overflow-x-auto">
<Table className="w-full table-fixed">
<TableHeader>
<TableRow className="[&_*]:!font-semibold">
<TableHead className="min-w-16 whitespace-nowrap text-center" size="sm">
<TableHead className="whitespace-nowrap text-center" size="sm">
{t("wallet.transactions.type")}
</TableHead>
<TableHead className="whitespace-nowrap text-center" size="sm">
@@ -63,7 +63,7 @@ export const TransactionsSection = () => {
<TableHead className="whitespace-nowrap pl-6" size="sm">
{t("wallet.transactions.date")}
</TableHead>
<TableHead className="whitespace-nowrap pl-6" size="sm">
<TableHead className="whitespace-nowrap pl-6 text-center" size="sm">
{t("wallet.transactions.tx")}
</TableHead>
</TableRow>
@@ -83,12 +83,14 @@ export const TransactionsSection = () => {
<TableCell align="left" className="px-3" size="sm">
<UserRenderer user={row.fromUser} />
</TableCell>
<TableCell align="left" className="px-3" size="sm">
<TableCell align="left" className="truncate px-3" size="sm">
<UserRenderer user={row.toUser} />
</TableCell>
<TableCell align="left" size="sm" className="pl-6">
<RelativeTime date={row.createdAt} dateFormatTemplate="l" />
<TableCell align="left" size="sm" className="whitespace-nowrap pl-6">
<EllipsisHorizontalTextWithTooltip>
<RelativeTime date={row.createdAt} dateFormatTemplate="l" />
</EllipsisHorizontalTextWithTooltip>
</TableCell>
<TableCell align="left" size="sm" className="pl-6">
<Tooltip>
@@ -106,12 +108,12 @@ export const TransactionsSection = () => {
))}
</TableBody>
</Table>
{!transactions.data?.length && (
<div className="my-2 w-full text-center text-sm text-zinc-400">
{t("wallet.transactions.noTransactions")}
</div>
)}
</ScrollArea.ScrollArea>
</div>
{!transactions.data?.length && (
<div className="my-2 w-full text-center text-sm text-zinc-400">
{t("wallet.transactions.noTransactions")}
</div>
)}
</div>
)
}
@@ -174,7 +176,7 @@ const UserRenderer = ({
onClick={() => {
if (user?.id) presentUserModal(user.id)
}}
className="flex cursor-button items-center"
className="flex w-full min-w-0 cursor-button items-center"
>
{name === APP_NAME ? (
<Logo className="aspect-square size-4" />
@@ -185,8 +187,14 @@ const UserRenderer = ({
</Avatar>
)}
<div className="ml-1">
{isMe ? <span className="font-bold">{t("wallet.transactions.you")}</span> : name}
<div className="ml-1 w-0 grow truncate">
<EllipsisHorizontalTextWithTooltip className="text-left">
{isMe ? (
<span className="font-bold">{t("wallet.transactions.you")}</span>
) : (
<span>{name}</span>
)}
</EllipsisHorizontalTextWithTooltip>
</div>
</MotionButtonBase>
)
@@ -4,6 +4,7 @@ import { useParams, useSearchParams } from "react-router-dom"
import { toast } from "sonner"
import { PoweredByFooter } from "~/components/common/PoweredByFooter"
import { FeedCertification } from "~/components/feed-certification"
import { FeedIcon } from "~/components/feed-icon"
import { FollowIcon } from "~/components/icons/follow"
import { Button } from "~/components/ui/button"
@@ -33,6 +34,7 @@ export function Component() {
id,
})
const feedData = feed.data?.feed as FeedModel
const isSubscribed = !!feed.data?.subscription
const entries = useEntriesPreview({
id,
})
@@ -82,6 +84,7 @@ export function Component() {
<div className="flex flex-col items-center">
<div className="mb-2 mt-4 flex items-center text-2xl font-bold">
<h1>{feed.data.feed.title}</h1>
<FeedCertification feed={feed.data.feed} />
</div>
<div className="mb-8 text-sm text-zinc-500">{feed.data.feed.description}</div>
</div>
@@ -116,17 +119,20 @@ export function Component() {
</Button>
)}
<Button
variant={isSubscribed ? "outline" : undefined}
onClick={() => {
presentFeedFormModal(id!)
presentFeedFormModal({
feedId: id!,
})
}}
>
<FollowIcon className="mr-1 size-3" />
{APP_NAME}
{isSubscribed ? "Followed" : <>{APP_NAME}</>}
</Button>
</span>
<div
className={cn(
"w-full pb-12",
"w-full pb-12 pt-8",
views[view].gridMode
? "grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4"
: "flex max-w-3xl flex-col gap-6",
@@ -1,7 +1,9 @@
import { useTranslation } from "react-i18next"
import { useParams } from "react-router-dom"
import { toast } from "sonner"
import { PoweredByFooter } from "~/components/common/PoweredByFooter"
import { FeedCertification } from "~/components/feed-certification"
import { FeedIcon } from "~/components/feed-icon"
import { FollowIcon } from "~/components/icons/follow"
import { Button } from "~/components/ui/button"
@@ -19,17 +21,18 @@ export function Component() {
isList: true,
})
const listData = feed.data?.feed as ListModel
const isSubscribed = !!feed.data?.subscription
const { t } = useTranslation("external")
useTitle(feed.data?.feed.title)
const presentFeedFormModal = usePresentFeedFormModal()
return (
<div className="center h-screen">
<>
{feed.isLoading ? (
<LoadingCircle size="large" className="center fixed inset-0" />
) : (
feed.data?.feed && (
<div className="mx-auto flex max-w-5xl flex-col items-center justify-center p-4 lg:p-0">
<div className="mx-auto mt-12 flex max-w-5xl flex-col items-center justify-center p-4 lg:p-0">
<FeedIcon
fallback
feed={feed.data.feed}
@@ -39,6 +42,7 @@ export function Component() {
<div className="flex flex-col items-center">
<div className="mb-2 mt-4 flex items-center text-2xl font-bold">
<h1>{feed.data.feed.title}</h1>
<FeedCertification feed={feed.data.feed} />
</div>
<div className="mb-8 text-sm text-zinc-500">{feed.data.feed.description}</div>
</div>
@@ -46,25 +50,70 @@ export function Component() {
{t("feed.followsAndFeeds", {
subscriptionCount: feed.data.subscriptionCount,
subscriptionNoun: t("feed.follower", { count: feed.data.subscriptionCount }),
feedsCount: listData?.feeds?.length,
feedsCount: "feedCount" in feed.data ? feed.data.feedCount : 0,
feedsNoun: t("feed.feeds", { count: listData?.feeds?.length }),
appName: APP_NAME,
})}
</div>
<span className="center mb-8 flex gap-4">
<Button
variant={"outline"}
onClick={() => {
presentFeedFormModal(id!)
toast.success(t("copied_link"))
navigator.clipboard.writeText(id!)
}}
>
<FollowIcon className="mr-1 size-3" />
{APP_NAME}
Copy List ID
</Button>
<Button
variant={isSubscribed ? "outline" : undefined}
onClick={() => {
presentFeedFormModal({
listId: id!,
})
}}
>
<FollowIcon className="mr-2 size-3" />
{isSubscribed ? "Followed" : <>{APP_NAME}</>}
</Button>
</span>
<div className="flex w-full max-w-3xl flex-col gap-4 pb-12 pt-8">
{listData.feeds?.slice(0, 5).map((feed) => (
<a
className="relative flex cursor-pointer items-center text-base"
href={`/feed/${feed.id}`}
target="_blank"
key={feed.id}
>
<FeedIcon
fallback
feed={feed}
className="mask-squircle mask mr-2 shrink-0"
size={20}
/>
{feed.title}
<FeedCertification feed={feed} />
</a>
))}
{"feedCount" in feed.data && (
<div
onClick={() => {
presentFeedFormModal({
listId: id!,
})
}}
className="text-sm text-zinc-500"
>
{t("feed.follow_to_view_all", {
count: feed.data.feedCount,
})}
</div>
)}
</div>
<PoweredByFooter className="mt-20 pb-12" />
</div>
)
)}
</div>
</>
)
}
@@ -12,19 +12,19 @@ import { usePresentFeedFormModal } from "~/hooks/biz/useFeedFormModal"
import { useAuthQuery, useI18n, useTitle } from "~/hooks/common"
import { apiClient } from "~/lib/api-fetch"
import { defineQuery } from "~/lib/defineQuery"
import { cn } from "~/lib/utils"
import { cn, isBizId } from "~/lib/utils"
import { useUserSubscriptionsQuery } from "~/modules/profile/hooks"
export function Component() {
const t = useI18n()
const { id } = useParams()
const isHandle = id?.startsWith("@")
const isHandle = id ? id.startsWith("@") || !isBizId(id) : false
const user = useAuthQuery(
defineQuery(["profiles", id], async () => {
const res = await apiClient.profiles.$get({
query: {
handle: isHandle ? id?.slice(1) : undefined,
handle: isHandle ? (id?.startsWith("@") ? id.slice(1) : id) : undefined,
id: isHandle ? undefined : id,
},
})
@@ -106,7 +106,9 @@ export function Component() {
onClick={(e) => {
e.stopPropagation()
presentFeedFormModal(subscription.feedId)
presentFeedFormModal({
feedId: subscription.feedId,
})
}}
>
{isMe ? (
+19
View File
@@ -9,6 +9,7 @@ import { useResizable } from "react-resizable-layout"
import { Outlet } from "react-router-dom"
import { setMainContainerElement } from "~/atoms/dom"
import { useViewport } from "~/atoms/hooks/viewport"
import { getUISettings, setUISetting } from "~/atoms/settings/ui"
import { setFeedColumnShow, useFeedColumnShow } from "~/atoms/sidebar"
import { useLoginModalShow, useWhoami } from "~/atoms/user"
@@ -79,6 +80,24 @@ export function Component() {
useDailyTask()
const isNotSupportWidth = useViewport((v) => v.w < 1024 && v.w !== 0)
if (isNotSupportWidth) {
return (
<div className="center fixed inset-0 flex-col">
<i className="i-mingcute-device-line mb-2 size-16 text-muted-foreground" />
<div>Please using desktop app to using {APP_NAME}</div>
<div>
Download:{" "}
<a className="follow-link--underline" href={repository.url}>
{repository.url}
</a>
</div>
</div>
)
}
return (
<div
className="flex h-screen overflow-hidden"
@@ -10,6 +10,7 @@ import { Toaster } from "~/components/ui/sonner"
import { HotKeyScopeMap } from "~/constants"
import { jotaiStore } from "~/lib/jotai"
import { persistConfig, queryClient } from "~/lib/query-client"
import { FeatureFlagDebugger } from "~/modules/ab/providers"
import { ContextMenuProvider } from "./context-menu-provider"
import { EventProvider } from "./event-provider"
@@ -39,6 +40,7 @@ export const RootProviders: FC<PropsWithChildren> = ({ children }) => (
<ModalStackProvider />
<ContextMenuProvider />
<StableRouterProvider />
<FeatureFlagDebugger />
{import.meta.env.DEV && <Devtools />}
{children}
</I18nProvider>
+6 -1
View File
@@ -114,15 +114,20 @@ export const useEntries = ({
view,
read,
isArchived,
isList,
}: {
id?: number | string
view?: number
read?: boolean
isArchived?: boolean
isList?: boolean
}) =>
useAuthInfiniteQuery(entries.entries({ id, view, read, isArchived }), {
enabled: id !== undefined,
getNextPageParam: (lastPage) => lastPage.data?.at(-1)?.entries.publishedAt,
getNextPageParam: (lastPage) =>
isList
? lastPage.data?.at(-1)?.entries.insertedAt
: lastPage.data?.at(-1)?.entries.publishedAt,
initialPageParam: undefined,
refetchOnWindowFocus: false,
refetchOnReconnect: false,
@@ -354,3 +354,10 @@ export const getSubscriptionByFeedId = (feedId: FeedId) => {
const state = get()
return state.data[feedId]
}
export const isListSubscription = (feedId?: FeedId) => {
if (!feedId) return false
const subscription = getSubscriptionByFeedId(feedId)
if (!subscription) return false
return "listId" in subscription && !!subscription.listId
}
+2 -1
View File
@@ -14,7 +14,8 @@
"paths": {
"~/*": ["src/*"],
"@pkg": ["../../package.json"],
"@locales/*": ["../../locales/*"]
"@locales/*": ["../../locales/*"],
"@constants/*": ["../../constants/*"]
}
}
}
+1
View File
@@ -99,6 +99,7 @@ export const viteRenderBaseConfig = {
"@pkg": resolve("package.json"),
"@locales": resolve("locales"),
"@follow/electron-main": resolve("apps/main/src"),
"@constants": resolve("constants"),
},
},
base: "/",
+3
View File
@@ -0,0 +1,3 @@
{
"Image_Proxy_V2": true
}
+6 -7
View File
@@ -1,6 +1,8 @@
// @ts-check
import { defineConfig } from "eslint-config-hyoban"
import recursiveSort from "./plugins/eslint-recursive-sort.js"
export default defineConfig(
{
formatting: false,
@@ -45,14 +47,11 @@ export default defineConfig(
},
{
files: ["locales/**/*.json"],
plugins: {
"recursive-sort": recursiveSort,
},
rules: {
"jsonc/sort-keys": [
"error",
{
pathPattern: ".*",
order: { type: "asc" },
},
],
"recursive-sort/recursive-sort": "error",
},
},
)
+11
View File
@@ -13,6 +13,12 @@
"discover.feed_description": "The description of this feed is as follows, and you can fill out the parameter form with the relevant information.",
"discover.feed_maintainers": "This feed is provided by RSSHub, with credit to <maintainers />",
"discover.import.click_to_upload": "Click to upload OPML file",
"discover.import.conflictItems": "Conflict Items",
"discover.import.noItems": "No items",
"discover.import.opml": "OPML file",
"discover.import.parsedErrorItems": "Parsed Error Items",
"discover.import.result": "<SuccessfulNum /> feeds were successfully imported, <ConflictNum /> were already subscribed to, and <ErrorNum /> failed to import.",
"discover.import.successfulItems": "Successful Items",
"discover.popular": "Popular",
"discover.preview": "Preview",
"discover.rss_hub_route": "RSSHub Route",
@@ -83,6 +89,7 @@
"feed_claim_modal.tab_content": "Content",
"feed_claim_modal.tab_description": "Description",
"feed_claim_modal.tab_rss": "RSS Tag",
"feed_claim_modal.title": "Feed Claim",
"feed_claim_modal.verify_ownership": "To claim this feed as your own, you need to verify ownership.",
"feed_form.add_follow": "Add follow",
"feed_form.category": "Category",
@@ -124,6 +131,7 @@
"mark_all_read_button.mark_all_as_read": "Mark all as read",
"mark_all_read_button.mark_as_read": "Mark {{which}} as read",
"mark_all_read_button.undo": "Undo",
"notify.unfollow_feed": "<FeedItem /> have been unfollowed.",
"player.back_10s": "Back 10s",
"player.close": "Close",
"player.download": "Download",
@@ -150,6 +158,7 @@
"search.result_count_local_mode": "(Local mode)",
"search.tooltip.local_search": "This search covers locally available data. Try a Refetch to include the latest data.",
"shortcuts.guide.title": "Shortcuts Guideline",
"sidebar.add_more_feeds": "Add more feeds",
"sidebar.category_remove_dialog.cancel": "Cancel",
"sidebar.category_remove_dialog.continue": "Continue",
"sidebar.category_remove_dialog.description": "This operation will delete your category, but the feeds it contains will be retained and grouped by website.",
@@ -162,6 +171,7 @@
"sidebar.feed_actions.copy_list_url": "Copy list URL",
"sidebar.feed_actions.edit": "Edit",
"sidebar.feed_actions.edit_feed": "Edit feed",
"sidebar.feed_actions.edit_list": "Edit list",
"sidebar.feed_actions.feed_owned_by_you": "This feed is owned by you",
"sidebar.feed_actions.list_owned_by_you": "This list is owned by you",
"sidebar.feed_actions.mark_all_as_read": "Mark all as read",
@@ -226,6 +236,7 @@
"words.rsshub": "RSSHub",
"words.search": "Search",
"words.starred": "Starred",
"words.undo": "Undo",
"words.unread": "Unread",
"words.user": "User",
"words.which.all": "all",
+243
View File
@@ -0,0 +1,243 @@
{
"achievement.all_done": "모두 완료되었습니다!",
"achievement.first_claim_feed": "피드 소유자",
"achievement.first_claim_feed_description": "Follow에서 귀하의 피드를 소유하고 있습니다",
"achievement.mint_more_power": "하드코어 플레이어가 되어 더 많은 <power />를 획득하세요",
"ai_daily.title": "최신 뉴스 - {{title}}",
"ai_daily.tooltip.content": "여기에는 귀하의 타임라인(<From /> - <To />)에서 AI가 선택한 중요한 뉴스가 포함되어 있을 수 있습니다.",
"ai_daily.tooltip.update_schedule": "매일 오전 8시 및 오후 8시에 업데이트됩니다.",
"app.copy_logo_svg": "로고 SVG 복사",
"app.toggle_sidebar": "사이드바 토글",
"discover.any_url_or_keyword": "임의의 URL 또는 키워드",
"discover.default_option": " (기본값)",
"discover.feed_description": "이 피드의 설명은 다음과 같으며, 관련 정보를 사용하여 매개변수 양식을 작성할 수 있습니다.",
"discover.feed_maintainers": "이 피드는 RSSHub에서 제공하며, <maintainers />에게 크레딧을 제공합니다.",
"discover.import.click_to_upload": "OPML 파일 업로드 클릭",
"discover.import.conflictItems": "충돌 항목",
"discover.import.noItems": "항목 없음",
"discover.import.opml": "OPML 파일",
"discover.import.parsedErrorItems": "구문 분석 오류 항목",
"discover.import.result": "<SuccessfulNum />개의 피드가 성공적으로 가져와졌으며, <ConflictNum />개는 이미 구독 중이며, <ErrorNum />개는 가져오기에 실패했습니다.",
"discover.import.successfulItems": "성공적인 항목",
"discover.popular": "인기",
"discover.preview": "미리보기",
"discover.rss_hub_route": "RSSHub 경로",
"discover.rss_url": "RSS URL",
"discover.select_placeholder": "선택",
"discover.target": "검색 대상",
"discover.target.feeds": "피드",
"discover.target.lists": "목록",
"early_access": "얼리 액세스",
"entry_actions.copy_link": "링크 복사",
"entry_actions.failed_to_save_to_eagle": "Eagle에 저장하지 못했습니다.",
"entry_actions.failed_to_save_to_instapaper": "Instapaper에 저장하지 못했습니다.",
"entry_actions.failed_to_save_to_readwise": "Readwise에 저장하지 못했습니다.",
"entry_actions.link_copied": "링크가 클립보드에 복사되었습니다.",
"entry_actions.mark_as_read": "읽음으로 표시",
"entry_actions.mark_as_unread": "읽지 않음으로 표시",
"entry_actions.open_in_browser": "브라우저에서 열기",
"entry_actions.save_media_to_eagle": "미디어를 Eagle에 저장",
"entry_actions.save_to_instapaper": "Instapaper에 저장",
"entry_actions.save_to_readwise": "Readwise에 저장",
"entry_actions.saved_to_eagle": "Eagle에 저장되었습니다.",
"entry_actions.saved_to_instapaper": "Instapaper에 저장되었습니다.",
"entry_actions.saved_to_readwise": "Readwise에 저장되었습니다.",
"entry_actions.share": "공유",
"entry_actions.star": "별표",
"entry_actions.starred": "별표가 추가되었습니다.",
"entry_actions.tip": "팁",
"entry_actions.unstar": "별표 제거",
"entry_actions.unstarred": "별표가 제거되었습니다.",
"entry_column.filtered_content_tip": "필터링된 콘텐츠가 숨겨져 있습니다.",
"entry_column.filtered_content_tip_2": "위에 표시된 항목 외에도 필터링된 콘텐츠가 있습니다.",
"entry_column.refreshing": "새로운 항목을 새로고침 중...",
"entry_content.ai_summary": "AI 요약",
"entry_content.fetching_content": "원본 콘텐츠를 가져오고 처리 중...",
"entry_content.header.play_tts": "TTS 재생",
"entry_content.header.readability": "가독성",
"entry_content.no_content": "사용 가능한 미디어가 없습니다",
"entry_content.readability_notice": "이 콘텐츠는 Readability에서 제공됩니다. 오타가 있는 경우 원본 콘텐츠를 보려면 소스 사이트로 이동하십시오.",
"entry_content.render_error": "렌더링 오류:",
"entry_content.report_issue": "문제 보고",
"entry_content.support_amount": "{{amount}}명이 이 피드의 제작자를 지원했습니다.",
"entry_content.support_creator": "제작자 지원",
"entry_content.web_app_notice": "웹 앱에서 이 콘텐츠 유형을 지원하지 않을 수 있습니다. 하지만 데스크톱 앱을 다운로드할 수 있습니다.",
"entry_list.zero_unread": "읽지 않은 항목 없음",
"entry_list_header.daily_report": "일일 보고서",
"entry_list_header.hide_no_image_items": "이미지가 없는 항목 숨기기.",
"entry_list_header.items": "항목",
"entry_list_header.new_entries_available": "새로운 항목 사용 가능",
"entry_list_header.refetch": "다시 가져오기",
"entry_list_header.refresh": "새로고침",
"entry_list_header.show_all": "모두 보기",
"entry_list_header.show_all_items": "모든 항목 보기",
"entry_list_header.show_unread_only": "읽지 않은 항목만 보기",
"entry_list_header.switch_to_grid": "그리드 보기로 전환",
"entry_list_header.switch_to_masonry": "메이슨리 보기로 전환",
"entry_list_header.unread": "읽지 않음",
"feed_claim_modal.choose_verification_method": "세 가지 방법 중 하나를 선택하여 인증할 수 있습니다.",
"feed_claim_modal.claim_button": "클레임",
"feed_claim_modal.content_instructions": "아래 내용을 복사하여 최신 RSS 피드에 게시하십시오.",
"feed_claim_modal.description_current": "현재 설명:",
"feed_claim_modal.description_instructions": "다음 내용을 복사하여 RSS 피드의 <code /> 필드에 붙여넣으십시오.",
"feed_claim_modal.failed_to_load": "클레임 메시지를 불러오지 못했습니다",
"feed_claim_modal.rss_format_choice": "RSS 생성기는 일반적으로 두 가지 형식을 선택할 수 있습니다. 필요에 따라 아래의 XML 및 JSON 형식을 복사하십시오.",
"feed_claim_modal.rss_instructions": "아래 코드를 복사하여 RSS 생성기에 붙여넣으십시오.",
"feed_claim_modal.rss_json_format": "JSON 형식",
"feed_claim_modal.rss_xml_format": "XML 형식",
"feed_claim_modal.rsshub_notice": "이 피드는 RSSHub에서 제공되며 캐시 시간이 1시간입니다. 콘텐츠를 게시한 후 변경 사항이 표시되려면 최대 1시간이 소요될 수 있습니다.",
"feed_claim_modal.tab_content": "콘텐츠",
"feed_claim_modal.tab_description": "설명",
"feed_claim_modal.tab_rss": "RSS 태그",
"feed_claim_modal.title": "피드 클레임",
"feed_claim_modal.verify_ownership": "이 피드를 귀하의 소유로 클레임하려면 소유권을 인증해야 합니다.",
"feed_form.add_follow": "팔로우 추가",
"feed_form.category": "카테고리",
"feed_form.category_description": "기본적으로 귀하의 팔로우는 웹사이트별로 그룹화됩니다.",
"feed_form.error_fetching_feed": "피드를 가져오는 중 오류가 발생했습니다.",
"feed_form.fee": "팔로우 비용",
"feed_form.fee_description": "이 목록을 팔로우하려면 목록 제작자에게 비용을 지불해야 합니다.",
"feed_form.feed_not_found": "피드를 찾을 수 없습니다.",
"feed_form.feedback": "피드백",
"feed_form.follow": "팔로우",
"feed_form.follow_with_fee": "{{fee}} 파워로 팔로우",
"feed_form.followed": "🎉 팔로우 되었습니다.",
"feed_form.private_follow": "비공개 팔로우",
"feed_form.private_follow_description": "이 팔로우가 프로필 페이지에 공개적으로 표시되는지 여부.",
"feed_form.retry": "재시도",
"feed_form.title": "제목",
"feed_form.title_description": "이 피드의 사용자 정의 제목. 기본값을 사용하려면 비워 두십시오.",
"feed_form.unfollow": "언팔로우",
"feed_form.update": "업데이트",
"feed_form.update_follow": "팔로우 업데이트",
"feed_form.updated": "🎉 업데이트되었습니다.",
"feed_form.view": "보기",
"feed_item.claimed_by_owner": "이 피드는",
"feed_item.claimed_by_unknown": "소유자가 주장했습니다.",
"feed_item.claimed_by_you": "귀하가 클레임한 피드",
"feed_item.claimed_feed": "클레임된 피드",
"feed_item.error_since": "오류 발생:",
"feed_item.not_publicly_visible": "프로필 페이지에 공개적으로 표시되지 않음",
"feed_view_type.articles": "기사",
"feed_view_type.audios": "오디오",
"feed_view_type.notifications": "알림",
"feed_view_type.pictures": "사진",
"feed_view_type.social_media": "소셜 미디어",
"feed_view_type.videos": "비디오",
"mark_all_read_button.auto_confirm_info": "3초 후 자동으로 확인됩니다.",
"mark_all_read_button.confirm": "확인",
"mark_all_read_button.confirm_mark_all": "{{which}}을(를) 모두 읽음으로 표시하시겠습니까?",
"mark_all_read_button.confirm_mark_all_info": "모두 읽음으로 표시하시겠습니까?",
"mark_all_read_button.mark_all_as_read": "모두 읽음으로 표시",
"mark_all_read_button.mark_as_read": "{{which}}을(를) 읽음으로 표시",
"mark_all_read_button.undo": "실행 취소",
"notify.unfollow_feed": "<FeedItem />이(가) 언팔로우 되었습니다.",
"player.back_10s": "10초 뒤로",
"player.close": "닫기",
"player.download": "다운로드",
"player.exit_full_screen": "전체 화면 종료",
"player.forward_10s": "10초 앞으로",
"player.full_screen": "전체 화면",
"player.mute": "음소거",
"player.open_entry": "항목 열기",
"player.pause": "일시 정지",
"player.play": "재생",
"player.playback_rate": "재생 속도",
"player.unmute": "음소거 해제",
"player.volume": "볼륨",
"resize.tooltip.double_click_to_collapse": "<b>더블 클릭</b>하여 축소",
"resize.tooltip.drag_to_resize": "<b>드래그</b>하여 크기 조절",
"search.empty.no_results": "결과를 찾을 수 없습니다.",
"search.group.entries": "항목",
"search.group.feeds": "피드",
"search.options.all": "전체",
"search.options.entries": "항목",
"search.options.feeds": "피드",
"search.options.search_type": "검색 유형",
"search.placeholder": "검색...",
"search.result_count_local_mode": "(로컬 모드)",
"search.tooltip.local_search": "이 검색은 로컬에 있는 데이터를 포함합니다. 최신 데이터를 포함하려면 다시 가져오기를 시도하십시오.",
"shortcuts.guide.title": "단축키 가이드라인",
"sidebar.add_more_feeds": "더 많은 피드 추가",
"sidebar.category_remove_dialog.cancel": "취소",
"sidebar.category_remove_dialog.continue": "계속",
"sidebar.category_remove_dialog.description": "이 작업은 귀하의 카테고리를 삭제하지만 포함된 피드는 유지되며 웹사이트별로 그룹화됩니다.",
"sidebar.category_remove_dialog.title": "카테고리 삭제",
"sidebar.feed_actions.claim": "클레임",
"sidebar.feed_actions.claim_feed": "피드 클레임",
"sidebar.feed_actions.copy_feed_id": "피드 ID 복사",
"sidebar.feed_actions.copy_feed_url": "피드 URL 복사",
"sidebar.feed_actions.copy_list_id": "목록 ID 복사",
"sidebar.feed_actions.copy_list_url": "목록 URL 복사",
"sidebar.feed_actions.edit": "편집",
"sidebar.feed_actions.edit_feed": "피드 편집",
"sidebar.feed_actions.feed_owned_by_you": "이 피드는 귀하가 소유하고 있습니다",
"sidebar.feed_actions.list_owned_by_you": "이 목록은 귀하가 소유하고 있습니다",
"sidebar.feed_actions.mark_all_as_read": "모두 읽음으로 표시",
"sidebar.feed_actions.navigate_to_feed": "피드로 이동",
"sidebar.feed_actions.navigate_to_list": "목록으로 이동",
"sidebar.feed_actions.open_feed_in_browser": "브라우저에서 피드 열기",
"sidebar.feed_actions.open_list_in_browser": "브라우저에서 목록 열기",
"sidebar.feed_actions.open_site_in_browser": "브라우저에서 사이트 열기",
"sidebar.feed_actions.unfollow": "언팔로우",
"sidebar.feed_actions.unfollow_feed": "피드 언팔로우",
"sidebar.feed_column.context_menu.change_to_other_view": "다른 보기로 변경",
"sidebar.feed_column.context_menu.delete_category": "카테고리 삭제",
"sidebar.feed_column.context_menu.delete_category_confirmation": "{{folderName}} 카테고리를 삭제하시겠습니까?",
"sidebar.feed_column.context_menu.mark_as_read": "읽음으로 표시",
"sidebar.feed_column.context_menu.rename_category": "카테고리 이름 변경",
"sidebar.select_sort_method": "정렬 방법 선택",
"signin.continue_with_github": "GitHub으로 계속",
"signin.continue_with_google": "Google로 계속",
"signin.sign_in_to": "로그인",
"sync_indicator.disabled": "보안상의 이유로 동기화가 비활성화되었습니다.",
"sync_indicator.offline": "오프라인",
"sync_indicator.synced": "서버와 동기화됨",
"tip_modal.amount": "금액",
"tip_modal.claim_feed": "이 피드 클레임",
"tip_modal.create_wallet": "무료로 생성",
"tip_modal.feed_owner": "피드 소유자",
"tip_modal.low_balance": "잔액이 부족하여 이 팁을 커버할 수 없습니다. 금액을 조정하십시오.",
"tip_modal.no_wallet": "아직 지갑이 없습니다. 팁을 보내려면 지갑을 생성하십시오.",
"tip_modal.tip_amount_sent": "이 금액이 저자에게 전송되었습니다.",
"tip_modal.tip_now": "지금 팁 보내기",
"tip_modal.tip_sent": "팁이 성공적으로 전송되었습니다! 지원해 주셔서 감사합니다.",
"tip_modal.tip_support": "⭐ 지원을 표시하기 위한 팁!",
"tip_modal.unclaimed_feed": "아직 아무도 이 피드를 클레임하지 않았습니다. 수신된 파워는 클레임될 때까지 안전하게 블록체인 계약에 보관됩니다.",
"user_button.account": "계정",
"user_button.achievement": "업적",
"user_button.download_desktop_app": "데스크톱 앱 다운로드",
"user_button.log_out": "로그아웃",
"user_button.power": "파워",
"user_button.preferences": "환경설정",
"user_button.profile": "프로필",
"user_profile.close": "닫기",
"user_profile.edit": "편집",
"user_profile.loading": "로딩 중",
"user_profile.share": "공유",
"user_profile.toggle_item_style": "항목 스타일 토글",
"words.achievement": "업적",
"words.add": "추가",
"words.confirm": "확인",
"words.discover": "찾아보기",
"words.email": "이메일",
"words.feeds": "피드",
"words.import": "가져오기",
"words.items": "항목",
"words.language": "언어",
"words.lists": "목록",
"words.load_archived_entries": "보관된 항목 불러오기",
"words.login": "로그인",
"words.mint": "민트",
"words.power": "파워",
"words.rss": "RSS",
"words.rss3": "RSS3",
"words.rsshub": "RSSHub",
"words.search": "검색",
"words.starred": "별표 표시됨",
"words.undo": "실행 취소",
"words.unread": "읽지 않음",
"words.user": "사용자",
"words.which.all": "모두",
"words.zero_items": "항목 없음"
}
+33
View File
@@ -1,4 +1,8 @@
{
"achievement.all_done": "大功告成!",
"achievement.first_claim_feed": "订阅源所有者",
"achievement.first_claim_feed_description": "在 Follow 上认证订阅源",
"achievement.mint_more_power": "成为核心玩家,赚取更多 <power />",
"ai_daily.title": "热点 - {{title}}",
"ai_daily.tooltip.content": "AI 根据时间线(<From /> - <To />)提取的重点信息",
"ai_daily.tooltip.update_schedule": "每天 8:00 和 20:00 定时更新",
@@ -9,11 +13,20 @@
"discover.feed_description": "根据描述完善目标订阅源的相关信息",
"discover.feed_maintainers": "由 RSSHub 提供,感谢贡献者 <maintainers />",
"discover.import.click_to_upload": "导入 OPML 文件",
"discover.import.conflictItems": "冲突项目",
"discover.import.noItems": "没有项目",
"discover.import.opml": "OPML 文件",
"discover.import.parsedErrorItems": "解析错误项目",
"discover.import.result": "成功导入了 <SuccessfulNum /> 个订阅源,<ConflictNum /> 个已订阅,<ErrorNum /> 个导入失败。",
"discover.import.successfulItems": "成功项目",
"discover.popular": "热门",
"discover.preview": "预览",
"discover.rss_hub_route": "RSSHub 路由",
"discover.rss_url": "RSS URL",
"discover.select_placeholder": "选择",
"discover.target": "搜索",
"discover.target.feeds": "订阅源",
"discover.target.lists": "列表",
"early_access": "预览版本",
"entry_actions.copy_link": "复制链接",
"entry_actions.failed_to_save_to_eagle": "保存到 Eagle 失败",
@@ -76,14 +89,18 @@
"feed_claim_modal.tab_content": "内容",
"feed_claim_modal.tab_description": "描述",
"feed_claim_modal.tab_rss": "RSS 标签",
"feed_claim_modal.title": "认证订阅源",
"feed_claim_modal.verify_ownership": "完成订阅源所有权验证,证明该源由你提供",
"feed_form.add_follow": "新增订阅",
"feed_form.category": "分类",
"feed_form.category_description": "默认按照网站分类",
"feed_form.error_fetching_feed": "获取订阅源出错",
"feed_form.fee": "订阅费",
"feed_form.fee_description": "若需订阅此列表,需支付订阅费用",
"feed_form.feed_not_found": "未找到订阅源",
"feed_form.feedback": "反馈",
"feed_form.follow": "订阅",
"feed_form.follow_with_fee": "使用 {{fee}} Power 订阅",
"feed_form.followed": "🎉 订阅成功",
"feed_form.private_follow": "私密订阅",
"feed_form.private_follow_description": "开启后,该订阅不再显示在个人主页",
@@ -114,6 +131,7 @@
"mark_all_read_button.mark_all_as_read": "全部标记为已读",
"mark_all_read_button.mark_as_read": "标记{{which}}为已读",
"mark_all_read_button.undo": "撤销",
"notify.unfollow_feed": "已取消订阅 <FeedItem />",
"player.back_10s": "后退 10s",
"player.close": "关闭",
"player.download": "下载",
@@ -127,6 +145,8 @@
"player.playback_rate": "播放速度",
"player.unmute": "取消静音",
"player.volume": "音量",
"resize.tooltip.double_click_to_collapse": "<b>双击</b>以折叠",
"resize.tooltip.drag_to_resize": "<b>拖动</b>以调整大小",
"search.empty.no_results": "搜索结果为空",
"search.group.entries": "条目",
"search.group.feeds": "订阅源",
@@ -138,6 +158,7 @@
"search.result_count_local_mode": "(本地模式)",
"search.tooltip.local_search": "当前搜索仅包含本地可用数据,尝试重新搜索得到更多结果",
"shortcuts.guide.title": "快捷键指南",
"sidebar.add_more_feeds": "添加订阅源",
"sidebar.category_remove_dialog.cancel": "取消",
"sidebar.category_remove_dialog.continue": "继续",
"sidebar.category_remove_dialog.description": "正在删除分类,操作后仍保留订阅源并按网站分组",
@@ -146,12 +167,17 @@
"sidebar.feed_actions.claim_feed": "认证订阅",
"sidebar.feed_actions.copy_feed_id": "复制 ID",
"sidebar.feed_actions.copy_feed_url": "复制链接",
"sidebar.feed_actions.copy_list_id": "复制列表 ID",
"sidebar.feed_actions.copy_list_url": "复制列表链接",
"sidebar.feed_actions.edit": "编辑",
"sidebar.feed_actions.edit_feed": "编辑订阅",
"sidebar.feed_actions.feed_owned_by_you": "该订阅源归你所有",
"sidebar.feed_actions.list_owned_by_you": "该列表归你所有",
"sidebar.feed_actions.mark_all_as_read": "全部标记为已读",
"sidebar.feed_actions.navigate_to_feed": "跳转至",
"sidebar.feed_actions.navigate_to_list": "跳转至列表",
"sidebar.feed_actions.open_feed_in_browser": "在浏览器打开订阅源",
"sidebar.feed_actions.open_list_in_browser": "在浏览器打开列表",
"sidebar.feed_actions.open_site_in_browser": "在浏览器打开网站",
"sidebar.feed_actions.unfollow": "取消订阅",
"sidebar.feed_actions.unfollow_feed": "取消订阅",
@@ -179,6 +205,7 @@
"tip_modal.tip_support": "⭐ 打赏表示支持!",
"tip_modal.unclaimed_feed": "这个订阅源还没有被认证,收到的 Power 将存放在区块链直到源所有者完成认证",
"user_button.account": "账号",
"user_button.achievement": "成就",
"user_button.download_desktop_app": "下载客户端",
"user_button.log_out": "登出",
"user_button.power": "Power",
@@ -189,20 +216,26 @@
"user_profile.loading": "加载中",
"user_profile.share": "分享",
"user_profile.toggle_item_style": "切换列表样式",
"words.achievement": "成就",
"words.add": "添加",
"words.confirm": "确认",
"words.discover": "发现",
"words.email": "邮箱",
"words.feeds": "订阅源",
"words.import": "导入",
"words.items": "内容",
"words.language": "语言",
"words.lists": "列表",
"words.load_archived_entries": "加载已归档条目",
"words.login": "登录",
"words.mint": "Mint",
"words.power": "Power",
"words.rss": "RSS",
"words.rss3": "RSS3",
"words.rsshub": "RSSHub",
"words.search": "搜索",
"words.starred": "收藏",
"words.undo": "撤销",
"words.unread": "未读",
"words.user": "用户",
"words.which.all": "全部",
+10
View File
@@ -9,6 +9,12 @@
"discover.feed_description": "此訂閱源的描述如下,你可以根據相關資訊填寫參數表格。",
"discover.feed_maintainers": "此訂閱源由 RSSHub 提供,感謝 <maintainers />",
"discover.import.click_to_upload": "上傳 OPML 文件",
"discover.import.conflictItems": "衝突項目",
"discover.import.noItems": "沒有項目",
"discover.import.opml": "OPML 文件",
"discover.import.parsedErrorItems": "解析錯誤項目",
"discover.import.result": "<SuccessfulNum /> 個訂閱源已成功導入,<ConflictNum /> 個已訂閱,<ErrorNum /> 個導入失敗。",
"discover.import.successfulItems": "成功項目",
"discover.popular": "熱門",
"discover.preview": "預覽",
"discover.rss_hub_route": "RSSHub 路由",
@@ -76,6 +82,7 @@
"feed_claim_modal.tab_content": "內容",
"feed_claim_modal.tab_description": "描述",
"feed_claim_modal.tab_rss": "RSS 標籤",
"feed_claim_modal.title": "認領訂閱源",
"feed_claim_modal.verify_ownership": "要認領這個訂閱源,你需要驗證所有權。",
"feed_form.add_follow": "新增關注",
"feed_form.category": "分類",
@@ -114,6 +121,7 @@
"mark_all_read_button.mark_all_as_read": "全部標記為已讀",
"mark_all_read_button.mark_as_read": "標記 {{which}} 為已讀",
"mark_all_read_button.undo": "撤銷",
"notify.unfollow_feed": "已取消關注 <FeedItem />。",
"player.back_10s": "倒退 10 秒",
"player.close": "關閉",
"player.download": "下載",
@@ -138,6 +146,7 @@
"search.result_count_local_mode": "(本地模式)",
"search.tooltip.local_search": "此搜尋涵蓋本地可用的數據。嘗試重新獲取以包括最新數據。",
"shortcuts.guide.title": "快捷鍵指南",
"sidebar.add_more_feeds": "添加訂閱源",
"sidebar.category_remove_dialog.cancel": "取消",
"sidebar.category_remove_dialog.continue": "繼續",
"sidebar.category_remove_dialog.description": "此操作將刪除你的分類,但其中的訂閱源將保留並按網站分組。",
@@ -203,6 +212,7 @@
"words.rsshub": "RSSHub",
"words.search": "搜尋",
"words.starred": "收藏",
"words.undo": "撤銷",
"words.unread": "未讀",
"words.user": "用戶",
"words.which.all": "所有",
+32 -1
View File
@@ -1,4 +1,8 @@
{
"achievement.all_done": "大功告成!",
"achievement.first_claim_feed": "訂閱源所有者",
"achievement.first_claim_feed_description": "在 Follow 上認證訂閱源",
"achievement.mint_more_power": "成為核心玩家,賺取更多 <power />",
"ai_daily.title": "頭條新聞 - {{title}}",
"ai_daily.tooltip.content": "以下是 AI 從您的時間軸中選擇的新聞(<From /> - <To />),可能對您很重要。",
"ai_daily.tooltip.update_schedule": "每天早上 8 點和晚上 8 點更新。",
@@ -9,11 +13,20 @@
"discover.feed_description": "該 feed 的描述如下,您可以使用相關資訊填寫參數表單。",
"discover.feed_maintainers": "此 feed 由 RSSHub 提供,感謝 <maintainers /> 的支持",
"discover.import.click_to_upload": "點擊上傳 OPML 文件",
"discover.import.conflictItems": "衝突項目",
"discover.import.noItems": "沒有項目",
"discover.import.opml": "OPML 檔案",
"discover.import.parsedErrorItems": "解析錯誤項目",
"discover.import.result": "成功匯入了 <SuccessfulNum /> 個訂閱源,<ConflictNum /> 個已經訂閱,<ErrorNum /> 個匯入失敗。",
"discover.import.successfulItems": "成功項目",
"discover.popular": "熱門",
"discover.preview": "預覽",
"discover.rss_hub_route": "RSSHub 路由",
"discover.rss_url": "RSS URL",
"discover.select_placeholder": "選擇",
"discover.target": "搜尋",
"discover.target.feeds": "訂閱源",
"discover.target.lists": "列表",
"early_access": "搶先體驗",
"entry_actions.copy_link": "複製連結",
"entry_actions.failed_to_save_to_eagle": "無法儲存到 Eagle。",
@@ -76,14 +89,18 @@
"feed_claim_modal.tab_content": "內容",
"feed_claim_modal.tab_description": "描述",
"feed_claim_modal.tab_rss": "RSS 標籤",
"feed_claim_modal.title": "認領摘要",
"feed_claim_modal.verify_ownership": "要認領此摘要為您的內容,您需要驗證所有權。",
"feed_form.add_follow": "關注",
"feed_form.category": "類別",
"feed_form.category_description": "預設情況下,您的關注將按網站分組。",
"feed_form.error_fetching_feed": "獲取摘要時出錯。",
"feed_form.fee": "訂閱費",
"feed_form.fee_description": "若需訂閱此列表,需支付訂閱費用",
"feed_form.feed_not_found": "未找到摘要。",
"feed_form.feedback": "回饋",
"feed_form.follow": "關注",
"feed_form.follow_with_fee": "使用 {{fee}} Power 訂閱",
"feed_form.followed": "🎉 已關注。",
"feed_form.private_follow": "私人關注",
"feed_form.private_follow_description": "此關注是否在您的個人資料頁面上公開顯示。",
@@ -114,6 +131,7 @@
"mark_all_read_button.mark_all_as_read": "全部標記為已讀",
"mark_all_read_button.mark_as_read": "將 {{which}} 標記為已讀",
"mark_all_read_button.undo": "復原",
"notify.unfollow_feed": "已取消關注 <FeedItem />",
"player.back_10s": "後退 10 秒",
"player.close": "關閉",
"player.download": "下載",
@@ -127,8 +145,10 @@
"player.playback_rate": "播放速率",
"player.unmute": "取消靜音",
"player.volume": "音量",
"resize.tooltip.double_click_to_collapse": "<b>雙擊</b>以摺疊",
"resize.tooltip.drag_to_resize": "<b>拖動</b>以調整大小",
"search.empty.no_results": "未找到結果。",
"search.group.entries": "條目",
"search.group.entries": "項目",
"search.group.feeds": "摘要",
"search.options.all": "全部",
"search.options.entries": "項目",
@@ -138,6 +158,7 @@
"search.result_count_local_mode": "(本地模式)",
"search.tooltip.local_search": "此搜尋涵蓋本地可用資料。嘗試重新獲取以包含最新資料。",
"shortcuts.guide.title": "快捷鍵指南",
"sidebar.add_more_feeds": "添加摘要",
"sidebar.category_remove_dialog.cancel": "取消",
"sidebar.category_remove_dialog.continue": "繼續",
"sidebar.category_remove_dialog.description": "此操作將刪除您的類別,但它包含的摘要將被保留並按網站分組。",
@@ -146,12 +167,16 @@
"sidebar.feed_actions.claim_feed": "認領摘要",
"sidebar.feed_actions.copy_feed_id": "複製摘要 ID",
"sidebar.feed_actions.copy_feed_url": "複製摘要 URL",
"sidebar.feed_actions.copy_list_id": "複製列表 ID",
"sidebar.feed_actions.copy_list_url": "複製列表連結",
"sidebar.feed_actions.edit": "編輯",
"sidebar.feed_actions.edit_feed": "編輯摘要",
"sidebar.feed_actions.feed_owned_by_you": "此摘要由你所擁有",
"sidebar.feed_actions.list_owned_by_you": "該列表歸你所有",
"sidebar.feed_actions.mark_all_as_read": "全部標記為已讀",
"sidebar.feed_actions.navigate_to_feed": "導航到摘要",
"sidebar.feed_actions.open_feed_in_browser": "使用瀏覽器打開這個摘要",
"sidebar.feed_actions.open_list_in_browser": "在瀏覽器開啟列表",
"sidebar.feed_actions.open_site_in_browser": "使用瀏覽器打開這個網站",
"sidebar.feed_actions.unfollow": "取消關注",
"sidebar.feed_actions.unfollow_feed": "取消關注摘要",
@@ -179,6 +204,7 @@
"tip_modal.tip_support": "⭐ 贊助以表示你的支持!",
"tip_modal.unclaimed_feed": "目前尚無人認領此摘要。收到的 Power 將安全地保存在區塊鏈合約中,直到被認領為止。",
"user_button.account": "帳戶",
"user_button.achievement": "成就",
"user_button.download_desktop_app": "下載桌面應用程式",
"user_button.log_out": "登出",
"user_button.power": "Power",
@@ -189,20 +215,25 @@
"user_profile.loading": "載入中",
"user_profile.share": "分享",
"user_profile.toggle_item_style": "切換項目樣式",
"words.achievement": "成就",
"words.add": "新增",
"words.confirm": "確認",
"words.discover": "發現",
"words.email": "Email",
"words.feeds": "摘要",
"words.import": "匯入",
"words.items": "內容",
"words.language": "語言",
"words.lists": "列表",
"words.load_archived_entries": "載入已封存項目",
"words.login": "登入",
"words.power": "Power",
"words.rss": "RSS",
"words.rss3": "RSS3",
"words.rsshub": "RSSHub",
"words.search": "搜尋",
"words.starred": "收藏",
"words.undo": "撤銷",
"words.unread": "未讀",
"words.user": "使用者",
"words.which.all": "全部",
+34
View File
@@ -0,0 +1,34 @@
{
"app.copied_to_clipboard": "클립보드에 복사됨",
"cancel": "취소",
"close": "닫기",
"confirm": "확인",
"ok": "확인",
"quantifier.piece": "",
"time.last_night": "어젯밤",
"time.the_night_before_last": "그저께 밤",
"time.today": "오늘",
"time.yesterday": "어제",
"tips.load-lng-error": "언어 팩을 불러오지 못했습니다",
"words.actions": "액션",
"words.back": "뒤로",
"words.copy": "복사",
"words.create": "생성",
"words.edit": "편집",
"words.entry": "항목",
"words.id": "ID",
"words.items_one": "항목",
"words.items_other": "항목들",
"words.local": "로컬",
"words.manage": "관리",
"words.record": "기록",
"words.record_one": "기록",
"words.record_other": "기록들",
"words.result": "결과",
"words.result_one": "결과",
"words.result_other": "결과들",
"words.space": " ",
"words.submit": "제출",
"words.update": "업데이트",
"words.which.all": "모두"
}
+4
View File
@@ -10,6 +10,7 @@
"time.today": "今天",
"time.yesterday": "昨天",
"tips.load-lng-error": "加载语言包失败",
"words.actions": "自动化",
"words.back": "返回",
"words.copy": "复制",
"words.edit": "编辑",
@@ -19,6 +20,7 @@
"words.items_one": "内容",
"words.items_other": "内容",
"words.local": "本地",
"words.manage": "管理",
"words.record": "记录",
"words.record_one": "记录",
"words.record_other": "记录",
@@ -26,5 +28,7 @@
"words.result_one": "结果",
"words.result_other": "结果",
"words.space": "",
"words.submit": "提交",
"words.update": "更新",
"words.which.all": "全部"
}
+29
View File
@@ -0,0 +1,29 @@
{
"1000": "권한 없음",
"1001": "세션 생성 실패",
"1002": "잘못된 매개변수",
"1003": "잘못된 초대",
"2000": "관리자만 피드를 새로 고칠 수 있습니다",
"2001": "피드를 찾을 수 없습니다",
"2002": "feedId 또는 url이 필요합니다",
"2003": "피드 가져오기 오류",
"2004": "피드 구문 분석 실패",
"2010": "소유권 도전 실패",
"2011": "구독 한도 초과",
"3000": "항목을 찾을 수 없습니다",
"3001": "항목이 사용자에게 속하지 않습니다",
"4000": "이미 클레임됨",
"4001": "사용자 지갑 오류",
"4002": "잔액 부족",
"4003": "피드 인출 가능 잔액 부족",
"4004": "대상 사용자 지갑 오류",
"5000": "초대 한도 초과. 며칠 후에 다시 시도하십시오.",
"5001": "초대가 이미 존재합니다.",
"5002": "초대 코드가 이미 사용되었습니다.",
"5003": "초대 코드가 존재하지 않습니다.",
"6000": "사용자를 찾을 수 없습니다",
"7000": "설정을 찾을 수 없습니다",
"7001": "잘못된 설정 탭",
"7002": "잘못된 설정 페이로드",
"7003": "설정 페이로드가 너무 큽니다"
}
+2 -1
View File
@@ -2,9 +2,10 @@
"copied_link": "Copied link to clipboard",
"feed.feeds_one": "feed",
"feed.feeds_other": "feeds",
"feed.follow_to_view_all": "Follow to view all {{count}} feeds...",
"feed.follower_one": "follower",
"feed.follower_other": "followers",
"feed.followsAndFeeds": "{{subscriptionCount}} {{subscriptionNoun}} with {{feedsCount}} {{feedsNoun}} on {{appName}}",
"feed.followsAndFeeds": "{{subscriptionCount}} {{subscriptionNoun}} and {{feedsCount}} {{feedsNoun}} on {{appName}}",
"feed.followsAndReads": "{{subscriptionCount}} {{subscriptionNoun}} with {{readCount}} {{readNoun}} on {{appName}}",
"feed.read_one": "read",
"feed.read_other": "reads",
+35
View File
@@ -0,0 +1,35 @@
{
"copied_link": "링크가 클립보드에 복사되었습니다",
"feed.feeds_one": "피드",
"feed.feeds_other": "피드들",
"feed.follower_one": "팔로워",
"feed.follower_other": "팔로워들",
"feed.followsAndFeeds": "{{subscriptionCount}} {{subscriptionNoun}}와(과) 함께 {{feedsCount}} {{feedsNoun}}가 {{appName}}에 있습니다",
"feed.followsAndReads": "{{subscriptionCount}} {{subscriptionNoun}}와(과) 함께 {{readCount}} {{readNoun}}가 {{appName}}에 있습니다",
"feed.read_one": "읽음",
"feed.read_other": "읽음들",
"header.app": "앱",
"header.download": "다운로드",
"invitation.activate": "활성화",
"invitation.codeOptions.1": "초대할 알파 테스트 사용자를 찾고 있습니다.",
"invitation.codeOptions.2": "가끔 경품을 제공하는 Discord 서버에 가입하세요.",
"invitation.codeOptions.3": "가끔 경품을 제공하는 X 계정을 팔로우하세요.",
"invitation.earlyAccess": "현재 Follow는 얼리 액세스 중이며 사용하려면 초대 코드가 필요합니다.",
"invitation.earlyAccessMessage": "😰 죄송합니다. 현재 Follow는 얼리 액세스 중이며 사용하려면 초대 코드가 필요합니다.",
"invitation.generateButton": "새 코드 생성",
"invitation.generateCost": "친구에게 초대 코드를 생성하려면 {{INVITATION_PRICE}} 파워를 사용할 수 있습니다.",
"invitation.getCodeMessage": "다음 방법을 통해 초대 코드를 얻을 수 있습니다:",
"invitation.title": "초대 코드",
"login.backToWebApp": "웹 앱으로 돌아가기",
"login.continueWithGitHub": "GitHub으로 계속",
"login.continueWithGoogle": "Google로 계속",
"login.logInTo": "로그인",
"login.openApp": "앱 열기",
"login.redirecting": "리디렉션 중",
"login.signOut": "로그아웃",
"login.welcomeTo": "환영합니다",
"redirect.continueInBrowser": "브라우저에서 계속",
"redirect.instruction": "{{APP_NAME}}을(를) 열고 이 페이지를 안전하게 닫을 시간입니다.",
"redirect.openApp": "{{APP_NAME}} 열기",
"redirect.successMessage": "{{APP_NAME}} 계정에 성공적으로 연결되었습니다."
}
+4 -2
View File
@@ -1,4 +1,5 @@
{
"copied_link": "链接已复制到剪贴板",
"feed": {
"follower_one": "关注者",
"follower_other": "关注者",
@@ -13,7 +14,7 @@
"invitation": {
"activate": "激活",
"codeOptions": {
"1": "寻找任何内测用户帮你生成邀请码",
"1": "寻找内测用户帮你生成邀请码",
"2": "加入官方 Discord 频道,不定期发放邀请码",
"3": "关注官方 X 账号动态,不定期发放邀请码"
},
@@ -30,7 +31,8 @@
"continueWithGoogle": "使用 Google 继续",
"logInTo": "登录到 ",
"openApp": "打开应用",
"redirecting": "重定向中",
"redirecting": "正在重定向",
"signOut": "登出",
"welcomeTo": "欢迎来到 "
},
"redirect": {
+12 -11
View File
@@ -5,16 +5,17 @@
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.en": "الإنجليزية",
"langs.es": "الإسبانية",
"langs.fi": "الفنلندية",
"langs.fr": "الفرنسية",
"langs.it": "الإيطالية",
"langs.ja": "اليابانية",
"langs.ko": "الكورية",
"langs.pt": "البرتغالية",
"langs.ru": "الروسية",
"langs.zh-CN": "الصينية المبسطة",
"langs.zh-HK": "الصينية التقليدية (هونغ كونغ)",
"langs.zh-TW": "الصينية التقليدية (تايوان)",
"name": "العربية (الجزائر)"
}
+12 -11
View File
@@ -5,16 +5,17 @@
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.en": "الإنجليزية",
"langs.es": "الإسبانية",
"langs.fi": "الفنلندية",
"langs.fr": "الفرنسية",
"langs.it": "الإيطالية",
"langs.ja": "اليابانية",
"langs.ko": "الكورية",
"langs.pt": "البرتغالية",
"langs.ru": "الروسية",
"langs.zh-CN": "الصينية المبسطة",
"langs.zh-HK": "الصينية التقليدية (هونغ كونغ)",
"langs.zh-TW": "الصينية التقليدية (تايوان)",
"name": "العربية (العراق)"
}
+12 -11
View File
@@ -5,16 +5,17 @@
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.en": "الإنجليزية",
"langs.es": "الإسبانية",
"langs.fi": "الفنلندية",
"langs.fr": "الفرنسية",
"langs.it": "الإيطالية",
"langs.ja": "اليابانية",
"langs.ko": "الكورية",
"langs.pt": "البرتغالية",
"langs.ru": "الروسية",
"langs.zh-CN": "الصينية المبسطة",
"langs.zh-HK": "الصينية التقليدية (هونغ كونغ)",
"langs.zh-TW": "الصينية التقليدية (تايوان)",
"name": "العربية (الكويت)"
}
+12 -11
View File
@@ -5,16 +5,17 @@
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.en": "الإنجليزية",
"langs.es": "الإسبانية",
"langs.fi": "الفنلندية",
"langs.fr": "الفرنسية",
"langs.it": "الإيطالية",
"langs.ja": "اليابانية",
"langs.ko": "الكورية",
"langs.pt": "البرتغالية",
"langs.ru": "الروسية",
"langs.zh-CN": "الصينية المبسطة",
"langs.zh-HK": "الصينية التقليدية (هونغ كونغ)",
"langs.zh-TW": "الصينية التقليدية (تايوان)",
"name": "العربية (المغرب)"
}
+12 -11
View File
@@ -5,16 +5,17 @@
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.en": "الإنجليزية",
"langs.es": "الإسبانية",
"langs.fi": "الفنلندية",
"langs.fr": "الفرنسية",
"langs.it": "الإيطالية",
"langs.ja": "اليابانية",
"langs.ko": "الكورية",
"langs.pt": "البرتغالية",
"langs.ru": "الروسية",
"langs.zh-CN": "الصينية المبسطة",
"langs.zh-HK": "الصينية التقليدية (هونغ كونغ)",
"langs.zh-TW": "الصينية التقليدية (تايوان)",
"name": "العربية (السعودية)"
}
+12 -11
View File
@@ -5,16 +5,17 @@
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.en": "الإنجليزية",
"langs.es": "الإسبانية",
"langs.fi": "الفنلندية",
"langs.fr": "الفرنسية",
"langs.it": "الإيطالية",
"langs.ja": "اليابانية",
"langs.ko": "الكورية",
"langs.pt": "البرتغالية",
"langs.ru": "الروسية",
"langs.zh-CN": "الصينية المبسطة",
"langs.zh-HK": "الصينية التقليدية (هونغ كونغ)",
"langs.zh-TW": "الصينية التقليدية (تايوان)",
"name": "العربية (تونس)"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.ar-DZ": "Arabic (Algeria)",
"langs.ar-IQ": "Arabic (Iraq)",
"langs.ar-KW": "Arabic (Kuwait)",
"langs.ar-MA": "Arabic (Morocco)",
"langs.ar-SA": "Arabic (Saudi Arabia)",
"langs.ar-TN": "Arabic (Tunisia)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.es": "Spanish",
"langs.fi": "Finnish",
"langs.fr": "French",
"langs.it": "Italian",
"langs.ja": "Japanese",
"langs.ko": "Korean",
"langs.pt": "Portuguese",
"langs.ru": "Russian",
"langs.zh-CN": "Simplified Chinese",
"langs.zh-HK": "Traditional Chinese (Hong Kong)",
"langs.zh-TW": "Traditional Chinese (Taiwan)",
"name": "English"
}
+16 -15
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.ar-DZ": "Árabe (Argelia)",
"langs.ar-IQ": "Árabe (Irak)",
"langs.ar-KW": "Árabe (Kuwait)",
"langs.ar-MA": "Árabe (Marruecos)",
"langs.ar-SA": "Árabe (Arabia Saudita)",
"langs.ar-TN": "Árabe (Túnez)",
"langs.en": "Inglés",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.fi": "Finlandés",
"langs.fr": "Francés",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.ja": "Japonés",
"langs.ko": "Coreano",
"langs.pt": "Portugués",
"langs.ru": "Ruso",
"langs.zh-CN": "Chino simplificado",
"langs.zh-HK": "Chino tradicional (Hong Kong)",
"langs.zh-TW": "Chino tradicional (Taiwán)",
"name": "Español"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.ar-DZ": "Arabia (Algeria)",
"langs.ar-IQ": "Arabia (Irak)",
"langs.ar-KW": "Arabia (Kuwait)",
"langs.ar-MA": "Arabia (Marokko)",
"langs.ar-SA": "Arabia (Saudi-Arabia)",
"langs.ar-TN": "Arabia (Tunisia)",
"langs.en": "Englanti",
"langs.es": "Espanja",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.fr": "Ranska",
"langs.it": "Italia",
"langs.ja": "Japani",
"langs.ko": "Kore",
"langs.pt": "Portugali",
"langs.ru": "Venäjä",
"langs.zh-CN": "Yksinkertaistettu kiina",
"langs.zh-HK": "Perinteinen kiina (Hongkong)",
"langs.zh-TW": "Perinteinen kiina (Taiwan)",
"name": "Suomi"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.ar-DZ": "Arabe (Algérie)",
"langs.ar-IQ": "Arabe (Irak)",
"langs.ar-KW": "Arabe (Koweït)",
"langs.ar-MA": "Arabe (Maroc)",
"langs.ar-SA": "Arabe (Arabie Saoudite)",
"langs.ar-TN": "Arabe (Tunisie)",
"langs.en": "Anglais",
"langs.es": "Espagnol",
"langs.fi": "Finnois",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.it": "Italien",
"langs.ja": "Japonais",
"langs.ko": "Coréen",
"langs.pt": "Portugais",
"langs.ru": "Russe",
"langs.zh-CN": "Chinois simplifié",
"langs.zh-HK": "Chinois traditionnel (Hong Kong)",
"langs.zh-TW": "Chinois traditionnel (Taïwan)",
"name": "Français"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.ar-DZ": "Arabo (Algeria)",
"langs.ar-IQ": "Arabo (Iraq)",
"langs.ar-KW": "Arabo (Kuwait)",
"langs.ar-MA": "Arabo (Marocco)",
"langs.ar-SA": "Arabo (Arabia Saudita)",
"langs.ar-TN": "Arabo (Tunisia)",
"langs.en": "Inglese",
"langs.es": "Spagnolo",
"langs.fi": "Finlandese",
"langs.fr": "Francese",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.ja": "Giapponese",
"langs.ko": "Coreano",
"langs.pt": "Portoghese",
"langs.ru": "Russo",
"langs.zh-CN": "Cinese semplificato",
"langs.zh-HK": "Cinese tradizionale (Hong Kong)",
"langs.zh-TW": "Cinese tradizionale (Taiwan)",
"name": "Italiano"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ar-DZ": "アラビア語(アルジェリア)",
"langs.ar-IQ": "アラビア語(イラク)",
"langs.ar-KW": "アラビア語(クウェート)",
"langs.ar-MA": "アラビア語(モロッコ)",
"langs.ar-SA": "アラビア語(サウジアラビア)",
"langs.ar-TN": "アラビア語(チュニジア)",
"langs.en": "英語",
"langs.es": "スペイン語",
"langs.fi": "フィンランド語",
"langs.fr": "フランス語",
"langs.it": "イタリア語",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.ko": "韓国語",
"langs.pt": "ポルトガル語",
"langs.ru": "ロシア語",
"langs.zh-CN": "簡体字中国語",
"langs.zh-HK": "繁体字中国語(香港)",
"langs.zh-TW": "繁体字中国語(台湾)",
"name": "日本語"
}
+21
View File
@@ -0,0 +1,21 @@
{
"langs.ar-DZ": "العربية (알제리)",
"langs.ar-IQ": "العربية (이라크)",
"langs.ar-KW": "العربية (쿠웨이트)",
"langs.ar-MA": "العربية (모로코)",
"langs.ar-SA": "العربية (사우디아라비아)",
"langs.ar-TN": "العربية (튀니지)",
"langs.en": "영어",
"langs.es": "스페인어",
"langs.fi": "핀란드어",
"langs.fr": "프랑스어",
"langs.it": "이탈리아어",
"langs.ja": "일본어",
"langs.ko": "한국어",
"langs.pt": "포르투갈어",
"langs.ru": "러시아어",
"langs.zh-CN": "간체 중국어",
"langs.zh-HK": "번체 중국어 (홍콩)",
"langs.zh-TW": "번체 중국어 (대만)",
"name": "영어"
}
+16 -15
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.ar-DZ": "Árabe (Argélia)",
"langs.ar-IQ": "Árabe (Iraque)",
"langs.ar-KW": "Árabe (Kuwait)",
"langs.ar-MA": "Árabe (Marrocos)",
"langs.ar-SA": "Árabe (Arábia Saudita)",
"langs.ar-TN": "Árabe (Tunísia)",
"langs.en": "Inglês",
"langs.es": "Espanhol",
"langs.fi": "Finlandês",
"langs.fr": "Francês",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.ja": "Japonês",
"langs.ko": "Coreano",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.ru": "Russo",
"langs.zh-CN": "Chinês simplificado",
"langs.zh-HK": "Chinês tradicional (Hong Kong)",
"langs.zh-TW": "Chinês tradicional (Taiwan)",
"name": "Português"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ar-DZ": "Арабский (Алжир)",
"langs.ar-IQ": "Арабский (Ирак)",
"langs.ar-KW": "Арабский (Кувейт)",
"langs.ar-MA": "Арабский (Марокко)",
"langs.ar-SA": "Арабский (Саудовская Аравия)",
"langs.ar-TN": "Арабский (Тунис)",
"langs.en": "Английский",
"langs.es": "Испанский",
"langs.fi": "Финский",
"langs.fr": "Французский",
"langs.it": "Итальянский",
"langs.ja": "Японский",
"langs.ko": "Корейский",
"langs.pt": "Португальский",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.zh-CN": "Упрощенный китайский",
"langs.zh-HK": "Традиционный китайский (Гонконг)",
"langs.zh-TW": "Традиционный китайский (Тайвань)",
"name": "Русский"
}
+17 -16
View File
@@ -1,20 +1,21 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.ar-DZ": "阿拉伯语(阿尔及利亚)",
"langs.ar-IQ": "阿拉伯语(伊拉克)",
"langs.ar-KW": "阿拉伯语(科威特)",
"langs.ar-MA": "阿拉伯语(摩洛哥)",
"langs.ar-SA": "阿拉伯语(沙特阿拉伯)",
"langs.ar-TN": "阿拉伯语(突尼斯)",
"langs.en": "英语",
"langs.es": "西班牙语",
"langs.fi": "芬兰语",
"langs.fr": "法语",
"langs.it": "意大利语",
"langs.ja": "日语",
"langs.ko": "韩语",
"langs.pt": "葡萄牙语",
"langs.ru": "俄语",
"langs.zh-CN": "简体中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"langs.zh-HK": "繁体中文(香港)",
"langs.zh-TW": "繁体中文(台湾)",
"name": "简体中文"
}
+16 -15
View File
@@ -1,19 +1,20 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.ar-DZ": "阿拉伯語(阿爾及利亞)",
"langs.ar-IQ": "阿拉伯語(伊拉克)",
"langs.ar-KW": "阿拉伯語(科威特)",
"langs.ar-MA": "阿拉伯語(摩洛哥)",
"langs.ar-SA": "阿拉伯語(沙特阿拉伯)",
"langs.ar-TN": "阿拉伯語(突尼斯)",
"langs.en": "英語",
"langs.es": "西班牙語",
"langs.fi": "芬蘭語",
"langs.fr": "法語",
"langs.it": "意大利語",
"langs.ja": "日語",
"langs.ko": "韓語",
"langs.pt": "葡萄牙語",
"langs.ru": "俄語",
"langs.zh-CN": "簡體中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"name": "繁體中文(香港)"
+16 -15
View File
@@ -1,19 +1,20 @@
{
"langs.ar-DZ": "العربية (الجزائر)",
"langs.ar-IQ": "العربية (العراق)",
"langs.ar-KW": "العربية (الكويت)",
"langs.ar-MA": "العربية (المغرب)",
"langs.ar-SA": "العربية (السعودية)",
"langs.ar-TN": "العربية (تونس)",
"langs.en": "English",
"langs.es": "Español",
"langs.fi": "Suomi",
"langs.fr": "Français",
"langs.it": "Italiano",
"langs.ja": "日本語",
"langs.pt": "Português",
"langs.ru": "Русский",
"langs.zh-CN": "简体中文",
"langs.ar-DZ": "阿拉伯語(阿爾及利亞)",
"langs.ar-IQ": "阿拉伯語(伊拉克)",
"langs.ar-KW": "阿拉伯語(科威特)",
"langs.ar-MA": "阿拉伯語(摩洛哥)",
"langs.ar-SA": "阿拉伯語(沙特阿拉伯)",
"langs.ar-TN": "阿拉伯語(突尼斯)",
"langs.en": "英語",
"langs.es": "西班牙語",
"langs.fi": "芬蘭語",
"langs.fr": "法語",
"langs.it": "意大利語",
"langs.ja": "日語",
"langs.ko": "韓語",
"langs.pt": "葡萄牙語",
"langs.ru": "俄語",
"langs.zh-CN": "簡體中文",
"langs.zh-HK": "繁體中文(香港)",
"langs.zh-TW": "繁體中文(台灣)",
"name": "繁體中文(台灣)"
+68
View File
@@ -0,0 +1,68 @@
{
"contextMenu.copy": "복사",
"contextMenu.copyImage": "이미지 복사",
"contextMenu.copyImageAddress": "이미지 주소 복사",
"contextMenu.copyLink": "링크 복사",
"contextMenu.copyVideoAddress": "비디오 주소 복사",
"contextMenu.cut": "잘라내기",
"contextMenu.inspect": "요소 검사",
"contextMenu.learnSpelling": "철자 배우기",
"contextMenu.lookUpSelection": "선택 항목 검색",
"contextMenu.openImageInBrowser": "브라우저에서 이미지 열기",
"contextMenu.openLinkInBrowser": "브라우저에서 링크 열기",
"contextMenu.paste": "붙여넣기",
"contextMenu.saveImage": "이미지 저장",
"contextMenu.saveImageAs": "다른 이름으로 이미지 저장...",
"contextMenu.saveLinkAs": "다른 이름으로 링크 저장...",
"contextMenu.saveVideo": "비디오 저장",
"contextMenu.saveVideoAs": "다른 이름으로 비디오 저장...",
"contextMenu.searchWithGoogle": "Google로 검색",
"contextMenu.selectAll": "모두 선택",
"contextMenu.services": "서비스",
"dialog.clearAllData": "모든 데이터를 삭제하시겠습니까?",
"dialog.no": "아니요",
"dialog.yes": "예",
"menu.about": "{{name}} 정보",
"menu.actualSize": "실제 크기",
"menu.bringAllToFront": "모두 앞으로 가져오기",
"menu.checkForUpdates": "업데이트 확인",
"menu.clearAllData": "모든 데이터 삭제",
"menu.close": "닫기",
"menu.copy": "복사",
"menu.cut": "잘라내기",
"menu.debug": "디버그",
"menu.delete": "삭제",
"menu.discover": "찾아보기",
"menu.edit": "편집",
"menu.file": "파일",
"menu.followReleases": "릴리스 팔로우",
"menu.forceReload": "강제 새로고침",
"menu.front": "앞으로 가져오기",
"menu.help": "도움말",
"menu.hide": "{{name}} 숨기기",
"menu.hideOthers": "다른 항목 숨기기",
"menu.minimize": "최소화",
"menu.openLogFile": "로그 파일 열기",
"menu.paste": "붙여넣기",
"menu.pasteAndMatchStyle": "붙여넣기 및 스타일 일치",
"menu.quickAdd": "빠른 추가",
"menu.quit": "{{name}} 종료",
"menu.quitAndInstallUpdate": "디버그: 종료 및 업데이트 설치",
"menu.redo": "다시 실행",
"menu.reload": "새로고침",
"menu.search": "검색",
"menu.selectAll": "모두 선택",
"menu.services": "서비스",
"menu.settings": "설정...",
"menu.speech": "음성",
"menu.startSpeaking": "말하기 시작",
"menu.stopSpeaking": "말하기 중지",
"menu.toggleDevTools": "개발자 도구 토글",
"menu.toggleFullScreen": "전체 화면 토글",
"menu.undo": "실행 취소",
"menu.view": "보기",
"menu.window": "창",
"menu.zoom": "확대/축소",
"menu.zoomIn": "확대",
"menu.zoomOut": "축소"
}
+5 -1
View File
@@ -11,7 +11,6 @@
"contextMenu.openImageInBrowser": "在浏览器中打开图片",
"contextMenu.openLinkInBrowser": "在浏览器中打开链接",
"contextMenu.paste": "粘贴",
"contextMenu.pasteAndMatchStyle": "粘贴并匹配样式",
"contextMenu.saveImage": "保存图片",
"contextMenu.saveImageAs": "图片另存为...",
"contextMenu.saveLinkAs": "链接另存为...",
@@ -20,10 +19,14 @@
"contextMenu.searchWithGoogle": "在谷歌中搜索",
"contextMenu.selectAll": "全选",
"contextMenu.services": "服务",
"dialog.clearAllData": "你确定要清除所有数据吗?",
"dialog.no": "不是",
"dialog.yes": "是的",
"menu.about": "关于 {{name}}",
"menu.actualSize": "实际大小",
"menu.bringAllToFront": "全部置于顶层",
"menu.checkForUpdates": "检查更新",
"menu.clearAllData": "清除所有数据",
"menu.close": "关闭",
"menu.copy": "复制",
"menu.cut": "剪切",
@@ -34,6 +37,7 @@
"menu.file": "文件",
"menu.followReleases": "关注发布",
"menu.forceReload": "强制重新加载",
"menu.front": "置于顶层",
"menu.help": "帮助",
"menu.hide": "隐藏 {{name}}",
"menu.hideOthers": "隐藏其他",
+237
View File
@@ -0,0 +1,237 @@
{
"about.changelog": "변경 내역",
"about.feedbackInfo": "{{appName}} ({{commitSha}})는 개발 초기 단계에 있습니다. 피드백이나 제안이 있으시면 GitHub에서 <OpenIssueLink>이슈를 열어주세요</OpenIssueLink> <ExternalLinkIcon />.",
"about.iconLibrary": "사용된 아이콘 라이브러리는 <IconLibraryLink /> <ExternalLinkIcon />의 저작권으로 보호되며 재배포할 수 없습니다.",
"about.licenseInfo": "{{appName}}는 항상 무료 오픈 소스 프로젝트입니다. {{license}} 하에 라이선스가 부여됩니다.",
"about.sidebar_title": "정보",
"about.socialMedia": "소셜 미디어",
"actions.actionName": "액션 {{number}}",
"actions.action_card.add": "추가",
"actions.action_card.all": "전체",
"actions.action_card.block_rules": "차단 규칙",
"actions.action_card.custom_filters": "사용자 정의 필터",
"actions.action_card.enable_readability": "가독성 활성화",
"actions.action_card.entry_options.all": "전체",
"actions.action_card.entry_options.author": "작성자",
"actions.action_card.entry_options.content": "내용",
"actions.action_card.entry_options.order": "순서",
"actions.action_card.entry_options.title": "제목",
"actions.action_card.entry_options.url": "URL",
"actions.action_card.feed_options.category": "카테고리",
"actions.action_card.feed_options.feed_url": "피드 URL",
"actions.action_card.feed_options.site_url": "사이트 URL",
"actions.action_card.feed_options.title": "제목",
"actions.action_card.feed_options.view": "보기",
"actions.action_card.field": "필드",
"actions.action_card.from": "부터",
"actions.action_card.generate_summary": "AI를 사용하여 요약 생성",
"actions.action_card.name": "이름",
"actions.action_card.operation_options.contains": "포함",
"actions.action_card.operation_options.does_not_contain": "포함하지 않음",
"actions.action_card.operation_options.is_equal_to": "같음",
"actions.action_card.operation_options.is_greater_than": "보다 큼",
"actions.action_card.operation_options.is_less_than": "보다 작음",
"actions.action_card.operation_options.is_not_equal_to": "같지 않음",
"actions.action_card.operation_options.matches_regex": "정규식과 일치",
"actions.action_card.operator": "연산자",
"actions.action_card.rewrite_rules": "재작성 규칙",
"actions.action_card.then_do": "그런 다음...",
"actions.action_card.to": "대상",
"actions.action_card.translate_into": "번역 대상",
"actions.action_card.value": "값",
"actions.action_card.when_feeds_match": "피드가 일치할 때...",
"actions.newRule": "새 규칙",
"actions.save": "저장",
"actions.saveSuccess": "🎉 액션이 저장되었습니다.",
"actions.sidebar_title": "액션",
"actions.title": "액션",
"appearance.code_highlight_theme": "코드 하이라이트 테마",
"appearance.content": "콘텐츠",
"appearance.content_font": "콘텐츠 글꼴",
"appearance.custom_font": "사용자 정의 글꼴",
"appearance.fonts": "글꼴",
"appearance.general": "일반",
"appearance.guess_code_language.description": "레이블이 없는 코드 블록을 추론하기 위해 모델을 사용하는 주요 프로그래밍 언어",
"appearance.guess_code_language.label": "코드 언어 추측",
"appearance.misc": "기타",
"appearance.modal_overlay.description": "모달 오버레이 표시",
"appearance.modal_overlay.label": "모달 오버레이 표시",
"appearance.opaque_sidebars.label": "불투명 사이드바",
"appearance.reader_render_inline_style.description": "원본 HTML의 인라인 스타일 렌더링 허용.",
"appearance.reader_render_inline_style.label": "인라인 스타일 렌더링",
"appearance.reduce_motion.description": "요소의 움직임을 줄여 성능을 개선하고 에너지 소비를 줄입니다",
"appearance.reduce_motion.label": "움직임 줄이기",
"appearance.save": "저장",
"appearance.show_dock_badge.label": "Dock 배지로 표시",
"appearance.sidebar_show_unread_count.label": "사이드바에 표시",
"appearance.sidebar_title": "외관",
"appearance.text_size": "텍스트 크기",
"appearance.theme.dark": "다크",
"appearance.theme.label": "테마",
"appearance.theme.light": "라이트",
"appearance.theme.system": "시스템",
"appearance.title": "외관",
"appearance.ui_font": "UI 글꼴",
"appearance.unread_count": "읽지 않은 수",
"appearance.use_pointer_cursor.description": "모든 상호작용 요소 위에 마우스를 올릴 때 커서를 포인터로 변경합니다.",
"appearance.use_pointer_cursor.label": "포인터 커서 사용",
"common.give_star": "<HeartIcon />우리 제품을 사랑하시나요? <Link>GitHub에서 별을 주세요!</Link>",
"feeds.claimTips": "피드를 클레임하고 팁을 받으려면, 구독 목록에서 피드를 마우스 오른쪽 버튼으로 클릭하고 클레임을 선택하세요.",
"feeds.noFeeds": "클레임된 피드 없음",
"feeds.tableHeaders.entryCount": "항목 수",
"feeds.tableHeaders.name": "이름",
"feeds.tableHeaders.subscriptionCount": "구독 수",
"feeds.tableHeaders.tipAmount": "받은 팁",
"general.app": "앱",
"general.data_persist.description": "오프라인 접근 및 로컬 검색을 가능하게 하기 위해 데이터를 로컬에 저장합니다.",
"general.data_persist.label": "오프라인 사용을 위해 데이터 유지",
"general.group_by_date.description": "항목을 날짜별로 그룹화합니다.",
"general.group_by_date.label": "날짜별 그룹화",
"general.language": "언어",
"general.launch_at_login": "로그인 시 실행",
"general.mark_as_read.hover.description": "호버할 때 자동으로 항목을 읽음으로 표시합니다.",
"general.mark_as_read.hover.label": "호버 시 읽음으로 표시",
"general.mark_as_read.render.description": "보기 내에 들어올 때 단일 수준 항목(예: 소셜 미디어 게시물, 사진, 비디오 보기)을 자동으로 읽음으로 표시합니다.",
"general.mark_as_read.render.label": "보기 시 읽음으로 표시",
"general.mark_as_read.scroll.description": "스크롤하여 보기에서 벗어날 때 자동으로 항목을 읽음으로 표시합니다.",
"general.mark_as_read.scroll.label": "스크롤 시 읽음으로 표시",
"general.network": "네트워크",
"general.privacy_data": "개인정보 및 데이터",
"general.proxy": "프록시",
"general.proxy.description": "네트워크 트래픽 라우팅을 위한 프록시 설정, 예: socks://proxy.example.com:1080",
"general.rebuild_database.button": "재구축",
"general.rebuild_database.description": "렌더링 문제가 발생하는 경우 데이터베이스를 재구축하면 해결될 수 있습니다.",
"general.rebuild_database.label": "데이터베이스 재구축",
"general.rebuild_database.title": "데이터베이스 재구축",
"general.rebuild_database.warning.line1": "데이터베이스를 재구축하면 모든 로컬 데이터가 삭제됩니다.",
"general.rebuild_database.warning.line2": "계속하시겠습니까?",
"general.send_anonymous_data.description": "익명화된 텔레메트리 데이터를 전송하는 것을 선택하면 Follow의 전반적인 사용자 경험을 향상시키는 데 기여하게 됩니다.",
"general.send_anonymous_data.label": "익명 데이터 전송",
"general.show_unread_on_launch.description": "시작 시 읽지 않은 콘텐츠 표시",
"general.show_unread_on_launch.label": "시작 시 읽지 않은 콘텐츠 표시",
"general.sidebar_title": "일반",
"general.timeline": "타임라인",
"general.unread": "읽지 않음",
"general.voices": "음성",
"integration.eagle.enable.description": "가능할 때 '미디어를 Eagle에 저장' 버튼 표시.",
"integration.eagle.enable.label": "활성화",
"integration.eagle.title": "Eagle",
"integration.instapaper.enable.description": "가능할 때 'Instapaper에 저장' 버튼 표시.",
"integration.instapaper.enable.label": "활성화",
"integration.instapaper.password.label": "Instapaper 비밀번호",
"integration.instapaper.title": "Instapaper",
"integration.instapaper.username.label": "Instapaper 사용자 이름",
"integration.readwise.enable.description": "가능할 때 'Readwise에 저장' 버튼 표시.",
"integration.readwise.enable.label": "활성화",
"integration.readwise.title": "Readwise",
"integration.readwise.token.description": "여기에서 받을 수 있습니다: readwise.io/access_token.",
"integration.readwise.token.label": "Readwise 액세스 토큰",
"integration.sidebar_title": "통합",
"integration.tip": "팁: 귀하의 민감한 데이터는 로컬에 저장되며 서버로 업로드되지 않습니다.",
"integration.title": "통합",
"invitation.activate": "활성화",
"invitation.codeOptions.betaUser": "1. 귀하를 초대할 베타 사용자를 찾으세요.",
"invitation.codeOptions.discord": "2. Discord 서버에 가입하여 가끔 선물을 받으세요.",
"invitation.codeOptions.xAccount": "3. 우리의 X 계정을 팔로우하고 가끔 선물을 받으세요.",
"invitation.confirmModal.cancel": "취소",
"invitation.confirmModal.confirm": "계속하시겠습니까?",
"invitation.confirmModal.continue": "계속",
"invitation.confirmModal.message": "초대 코드를 생성하려면 {{INVITATION_PRICE}} <PowerIcon /> 파워가 소모됩니다.",
"invitation.confirmModal.title": "확인",
"invitation.earlyAccess": "현재 Follow는 <strong>얼리 액세스</strong> 중이며 사용하려면 초대 코드가 필요합니다.",
"invitation.earlyAccessMessage": "😰 죄송합니다. 현재 Follow는 얼리 액세스 중이며 사용하려면 초대 코드가 필요합니다.",
"invitation.generateButton": "새 코드 생성",
"invitation.generateCost": "친구에게 초대 코드를 생성하려면 {{INVITATION_PRICE}} <PowerIcon /> 파워를 사용할 수 있습니다.",
"invitation.getCodeMessage": "다음 방법을 통해 초대 코드를 얻을 수 있습니다:",
"invitation.limitationMessage": "사용 시간에 따라 최대 {{limitation}}개의 초대 코드를 생성할 수 있습니다.",
"invitation.newInvitationSuccess": "🎉 새 초대 코드가 생성되었으며, 초대 코드가 복사되었습니다.",
"invitation.noInvitations": "초대 없음",
"invitation.notUsed": "사용되지 않음",
"invitation.sidebar_title": "초대",
"invitation.tableHeaders.code": "코드",
"invitation.tableHeaders.creationTime": "생성 시간",
"invitation.tableHeaders.usedBy": "사용자",
"invitation.title": "초대 코드",
"lists.create": "새 목록 생성",
"lists.created.error": "목록 생성에 실패했습니다.",
"lists.created.success": "목록이 성공적으로 생성되었습니다!",
"lists.description": "설명",
"lists.edit": "편집",
"lists.edit.error": "목록 편집에 실패했습니다.",
"lists.edit.success": "목록이 성공적으로 편집되었습니다!",
"lists.fee": "수수료",
"lists.fee.description": "다른 사용자가 이 목록을 구독하려면 지불해야 하는 비용입니다.",
"lists.feeds": "피드",
"lists.feeds.actions": "액션",
"lists.feeds.add": "추가",
"lists.feeds.add.error": "목록에 피드를 추가하지 못했습니다.",
"lists.feeds.add.success": "피드가 목록에 추가되었습니다.",
"lists.feeds.delete.error": "목록에서 피드를 제거하지 못했습니다.",
"lists.feeds.delete.success": "목록에서 피드가 제거되었습니다.",
"lists.feeds.id": "피드 ID",
"lists.feeds.manage": "피드 관리",
"lists.feeds.owner": "소유자",
"lists.feeds.search": "피드 검색",
"lists.feeds.title": "제목",
"lists.image": "이미지",
"lists.info": "목록은 다른 사용자가 구독할 수 있도록 공유하거나 판매할 수 있는 피드 모음입니다. 구독자는 목록의 모든 피드를 동기화하고 액세스할 수 있습니다.",
"lists.noLists": "목록 없음",
"lists.submit": "제출",
"lists.title": "제목",
"lists.view": "보기",
"profile.avatar.label": "아바타",
"profile.handle.description": "고유 식별자.",
"profile.handle.label": "핸들",
"profile.name.description": "공개 표시 이름.",
"profile.name.label": "표시 이름",
"profile.sidebar_title": "프로필",
"profile.submit": "제출",
"profile.title": "프로필 설정",
"profile.updateSuccess": "프로필이 업데이트되었습니다.",
"titles.about": "정보",
"titles.actions": "액션",
"titles.appearance": "외관",
"titles.feeds": "피드",
"titles.general": "일반",
"titles.integration": "통합",
"titles.invitations": "초대",
"titles.lists": "목록",
"titles.power": "파워",
"titles.profile": "프로필",
"titles.shortcuts": "단축키",
"wallet.address.title": "귀하의 주소",
"wallet.balance.title": "귀하의 잔액",
"wallet.balance.withdrawable": "인출 가능",
"wallet.balance.withdrawableTooltip": "인출 가능 파워에는 받은 팁과 충전한 파워가 모두 포함됩니다.",
"wallet.claim.button.claim": "일일 파워 클레임",
"wallet.claim.button.claimed": "오늘 클레임 완료",
"wallet.claim.tooltip.alreadyClaimed": "이미 오늘 클레임했습니다.",
"wallet.claim.tooltip.canClaim": "지금 {{amount}} 일일 파워를 클레임하세요!",
"wallet.create.button": "지갑 생성",
"wallet.create.description": "<PowerIcon /> <strong>파워</strong>를 받기 위해 무료 지갑을 생성하세요. 이는 제작자를 보상하는 데 사용할 수 있으며, 콘텐츠 기여에 대해 보상을 받을 수도 있습니다.",
"wallet.power.dailyClaim": "매일 {{amount}} 무료 파워를 클레임할 수 있으며, 이는 Follow에서 RSS 항목에 팁을 보내는 데 사용할 수 있습니다.",
"wallet.power.description": "파워는 {{blockchainName}} 블록체인의 <Link>ERC-20 토큰</Link>입니다.",
"wallet.sidebar_title": "파워",
"wallet.transactions.amount": "금액",
"wallet.transactions.date": "날짜",
"wallet.transactions.from": "보낸 사람",
"wallet.transactions.noTransactions": "거래 없음",
"wallet.transactions.title": "거래 내역",
"wallet.transactions.to": "받는 사람",
"wallet.transactions.tx": "Tx",
"wallet.transactions.type": "유형",
"wallet.transactions.types.burn": "소각",
"wallet.transactions.types.mint": "민트",
"wallet.transactions.types.purchase": "구매",
"wallet.transactions.types.tip": "팁",
"wallet.transactions.types.withdraw": "인출",
"wallet.transactions.you": "당신",
"wallet.withdraw.addressLabel": "귀하의 이더리움 주소",
"wallet.withdraw.amountLabel": "금액",
"wallet.withdraw.availableBalance": "귀하의 지갑에는 <Balance></Balance> 인출 가능 파워가 있습니다.",
"wallet.withdraw.button": "인출",
"wallet.withdraw.error": "인출 실패: {{error}}",
"wallet.withdraw.modalTitle": "파워 인출",
"wallet.withdraw.submitButton": "제출",
"wallet.withdraw.success": "인출이 성공적으로 완료되었습니다!"
}
+28
View File
@@ -152,6 +152,33 @@
"invitation.tableHeaders.creationTime": "创建时间",
"invitation.tableHeaders.usedBy": "使用者",
"invitation.title": "邀请码",
"lists.create": "创建新列表",
"lists.created.error": "创建列表失败",
"lists.created.success": "创建列表成功",
"lists.description": "描述",
"lists.edit": "编辑",
"lists.edit.error": "编辑列表失败",
"lists.edit.success": "编辑列表成功",
"lists.fee": "费用",
"lists.fee.description": "其他人订阅这个列表时要支付的费用",
"lists.feeds": "订阅源",
"lists.feeds.actions": "自动化",
"lists.feeds.add": "添加",
"lists.feeds.add.error": "添加订阅源到列表时失败",
"lists.feeds.add.success": "订阅源已添加到列表",
"lists.feeds.delete.error": "添加订阅源到列表时失败",
"lists.feeds.delete.success": "订阅源已从列表删除",
"lists.feeds.id": "订阅源 ID",
"lists.feeds.manage": "管理订阅源",
"lists.feeds.owner": "所有者",
"lists.feeds.search": "搜索订阅源",
"lists.feeds.title": "标题",
"lists.image": "图片",
"lists.info": "列表是一类可以分享或出售给他人订阅的订阅集合。订阅者将会同步和访问该列表中的所有订阅源。",
"lists.noLists": "没有列表",
"lists.submit": "提交",
"lists.title": "标题",
"lists.view": "视图",
"profile.avatar.label": "头像",
"profile.handle.description": "唯一标识",
"profile.handle.label": "唯一标识",
@@ -168,6 +195,7 @@
"titles.general": "通用",
"titles.integration": "集成",
"titles.invitations": "邀请",
"titles.lists": "列表",
"titles.power": "Power",
"titles.profile": "个人资料",
"titles.shortcuts": "快捷键",
+24
View File
@@ -0,0 +1,24 @@
{
"keys.audio.playPause": "재생/일시 정지 (오디오 플레이어가 열려 있을 때)",
"keys.entries.markAllAsRead": "모두 읽음으로 표시",
"keys.entries.next": "다음 항목",
"keys.entries.previous": "이전 항목",
"keys.entries.refetch": "다시 가져오기",
"keys.entries.toggleUnreadOnly": "읽지 않은 항목만 토글",
"keys.entry.copyLink": "링크 복사",
"keys.entry.openInBrowser": "브라우저에서 열기",
"keys.entry.openInNewTab": "새 탭에서 열기",
"keys.entry.scrollDown": "아래로 스크롤",
"keys.entry.scrollUp": "위로 스크롤",
"keys.entry.share": "공유",
"keys.entry.tip": "파워 팁",
"keys.entry.toggleRead": "읽음 토글",
"keys.entry.toggleStarred": "별표 토글",
"keys.entry.tts": "TTS 재생",
"keys.feeds.add": "구독 추가",
"keys.feeds.switchBetweenViews": "보기 간 전환",
"keys.feeds.switchToView": "보기로 전환",
"keys.layout.showShortcuts": "단축키 표시/숨기기",
"keys.layout.toggleSidebar": "피드 사이드바 표시/숨기기",
"sidebar_title": "단축키"
}
+2 -1
View File
@@ -1,7 +1,7 @@
{
"name": "Follow",
"type": "module",
"version": "0.0.1-alpha.16",
"version": "0.0.1-alpha.17",
"private": true,
"packageManager": "pnpm@9.11.0",
"description": "Next generation information browser",
@@ -31,6 +31,7 @@
"prepare": "pnpm exec simple-git-hooks && shx test -f .env || shx cp .env.example .env",
"publish": "electron-vite build && electron-forge publish",
"start": "electron-vite preview",
"sync:ab": "tsx scripts/pull-ab-flags.ts",
"test": "pnpm -F web run test",
"typecheck": "npm run typecheck:node && npm run typecheck:web",
"typecheck:node": "pnpm -F electron-main run typecheck",
+101 -2
View File
@@ -644,6 +644,7 @@ type MediaModel = {
preview_image_url?: string;
width?: number;
height?: number;
blurhash?: string;
};
type AttachmentsModel = {
url: string;
@@ -652,6 +653,13 @@ type AttachmentsModel = {
size_in_bytes?: number;
title?: string;
};
type ExtraModel = {
links?: {
url: string;
type: string;
content_html?: string;
}[];
};
declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{
name: "entries";
schema: undefined;
@@ -911,6 +919,22 @@ declare const entries: drizzle_orm_pg_core.PgTableWithColumns<{
baseColumn: never;
generated: undefined;
}, {}, {}>;
extra: drizzle_orm_pg_core.PgColumn<{
name: "extra";
tableName: "entries";
dataType: "json";
columnType: "PgJsonb";
data: ExtraModel;
driverParam: unknown;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
generated: undefined;
}, {}, {}>;
};
dialect: "pg";
}>;
@@ -938,7 +962,12 @@ declare const entriesOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, z.ZodTypeDef, string | number | boolean | {
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
}, "media" | "attachments">, {
extra: z.ZodNullable<z.ZodType<string | number | boolean | {
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, z.ZodTypeDef, string | number | boolean | {
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
}, "media" | "attachments" | "extra">, {
attachments: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
url: z.ZodString;
duration_in_seconds: z.ZodOptional<z.ZodNumber>;
@@ -977,6 +1006,33 @@ declare const entriesOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
height?: number | undefined;
preview_image_url?: string | undefined;
}>, "many">>>;
extra: z.ZodNullable<z.ZodOptional<z.ZodObject<{
links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
url: z.ZodString;
type: z.ZodString;
content_html: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: string;
url: string;
content_html?: string | undefined;
}, {
type: string;
url: string;
content_html?: string | undefined;
}>, "many">>>;
}, "strip", z.ZodTypeAny, {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
}, {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
}>>>;
}>, "strip", z.ZodTypeAny, {
description: string | null;
title: string | null;
@@ -1005,6 +1061,13 @@ declare const entriesOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
}[] | null | undefined;
extra?: {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
} | null | undefined;
}, {
description: string | null;
title: string | null;
@@ -1033,6 +1096,13 @@ declare const entriesOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
}[] | null | undefined;
extra?: {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
} | null | undefined;
}>;
declare const entriesRelations: drizzle_orm.Relations<"entries", {
feeds: drizzle_orm.One<"feeds", true>;
@@ -3196,6 +3266,7 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
};
subscriptionCount: number;
readCount: number;
feedCount: number;
subscription?: {
title: string | null;
userId: string;
@@ -4252,6 +4323,13 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
}[] | null | undefined;
extra?: {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
} | null | undefined;
};
feeds: {
type: "feed";
@@ -4336,6 +4414,13 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
}[] | null | undefined;
extra?: {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
} | null | undefined;
};
feeds: {
type: "feed";
@@ -4408,6 +4493,13 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
}[] | null | undefined;
extra?: {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
} | null | undefined;
}[];
};
outputFormat: "json" | "text";
@@ -4453,6 +4545,13 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
mime_type?: string | undefined;
size_in_bytes?: number | undefined;
}[] | null | undefined;
extra?: {
links?: {
type: string;
url: string;
content_html?: string | undefined;
}[] | null | undefined;
} | null | undefined;
}[] | undefined;
feed?: {
type: "feed";
@@ -4858,4 +4957,4 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
}, "/">;
type AppType = typeof _routes;
export { type ActionsModel, type AppType, type AttachmentsModel, type EntriesModel, type EntryReadHistoriesModel, type FeedModel, type MediaModel, type SettingsModel, accounts, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, collections, collectionsOpenAPISchema, collectionsRelations, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations };
export { type ActionsModel, type AppType, type AttachmentsModel, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type SettingsModel, accounts, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, collections, collectionsOpenAPISchema, collectionsRelations, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations };
+60
View File
@@ -0,0 +1,60 @@
const sortObjectKeys = (obj) => {
if (typeof obj !== "object" || obj === null) {
return obj
}
if (Array.isArray(obj)) {
return obj.map((element) => sortObjectKeys(element))
}
return Object.keys(obj)
.sort()
.reduce((acc, key) => {
acc[key] = sortObjectKeys(obj[key])
return acc
}, {})
}
/**
* @type {import("eslint").ESLint.Plugin}
*/
export default {
rules: {
"recursive-sort": {
meta: {
type: "layout",
fixable: "code",
},
create(context) {
return {
Program(node) {
if (context.getFilename().endsWith(".json")) {
const sourceCode = context.getSourceCode()
const text = sourceCode.getText()
try {
const json = JSON.parse(text)
const sortedJson = sortObjectKeys(json)
const sortedText = JSON.stringify(sortedJson, null, 2)
if (text.trim() !== sortedText.trim()) {
context.report({
node,
message: "JSON keys are not sorted recursively",
fix(fixer) {
return fixer.replaceText(node, sortedText)
},
})
}
} catch (error) {
context.report({
node,
message: `Invalid JSON: ${error.message}`,
})
}
}
},
}
},
},
},
}
+125 -52
View File
@@ -318,9 +318,6 @@ importers:
apps/renderer:
dependencies:
'@egjs/react-infinitegrid':
specifier: 4.12.0
version: 4.12.0
'@egoist/tipc':
specifier: 0.3.2
version: 0.3.2(electron@32.1.2)(react@18.3.1)
@@ -507,6 +504,9 @@ importers:
lodash-es:
specifier: 4.17.21
version: 4.17.21
masonic:
specifier: 4.0.1
version: 4.0.1(react@18.3.1)
nanoid:
specifier: 5.0.7
version: 5.0.7
@@ -1310,12 +1310,6 @@ packages:
resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==}
engines: {node: '>=6.9.0'}
'@cfcs/core@0.0.24':
resolution: {integrity: sha512-feB38qu+eDk0Pggh/yR7gjaNmvUYA2uCxHP3Pz2MLE4LZ/9jPdtu8bzCSI47yTEhWyZCF5Pk698hdz8IN2mTjA==}
'@cfcs/core@0.0.5':
resolution: {integrity: sha512-TZ/RXKV7MUrqFpiX+16uaaptv5jgChWNsuE6w8Rn3eJbO1PFd4Wpn25zeJbii7ch46ck8/ZIIYCcW3pHiYtm4Q==}
'@cfcs/core@0.0.6':
resolution: {integrity: sha512-FxfJMwoLB8MEMConeXUCqtMGqxdtePQxRBOiGip9ULcYYam3WfCgoY6xdnMaSkYvRvmosp5iuG+TiPofm65+Pw==}
@@ -1352,21 +1346,9 @@ packages:
'@egjs/component@3.0.5':
resolution: {integrity: sha512-cLcGizTrrUNA2EYE3MBmEDt2tQv1joVP1Q3oDisZ5nw0MZDx2kcgEXM+/kZpfa/PAkFvYVhRUZwytIQWoN3V/w==}
'@egjs/grid@1.16.0':
resolution: {integrity: sha512-w344hL2HNwmOHu379EG9I8ULkWF4A0cVf1XDn5nGlLXc+8c/rMvQadMBkGPOcdWMEKvFZpEiOPI7tWlXLOCloQ==}
'@egjs/imready@1.4.1':
resolution: {integrity: sha512-JIOBs4lB7FYdsKi5uvz2j3SObX8eShtZjtqlOH41tm185aJOQZwiKBK8+V4MxzG4X6DqVhpdN8UcuVwBbElfsg==}
'@egjs/infinitegrid@4.12.0':
resolution: {integrity: sha512-zoDz+mag7DAropcgmxW0Bx3JQ5ID19lk+AUN9rf9U7diwmO8IBfddX44jOVc9+ya5yZ+Goj95Fkm5S3GqCOrZQ==}
'@egjs/list-differ@1.0.1':
resolution: {integrity: sha512-OTFTDQcWS+1ZREOdCWuk5hCBgYO4OsD30lXcOCyVOAjXMhgL5rBRDnt/otb6Nz8CzU0L/igdcaQBDLWc4t9gvg==}
'@egjs/react-infinitegrid@4.12.0':
resolution: {integrity: sha512-V661KH1nka13wgy73N0IGBazZGe7LiECml1JDqB5DP6axTERUVCs8KRHadHu6oQihDeXwJIHe1YRhhMN9eAnUw==}
'@egoist/tailwindcss-icons@1.8.1':
resolution: {integrity: sha512-hqZeASrhT6BOeaBHYDPB0yBH/zgMKqmm7y2Rsq0c4iRnNVv1RWEiXMBMJB38JsDMTHME450FKa/wvdaIhED+Iw==}
peerDependencies:
@@ -1912,6 +1894,18 @@ packages:
resolution: {integrity: sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@essentials/memoize-one@1.1.0':
resolution: {integrity: sha512-HMkuIkKNe0EWSUpZhlaq9+5Yp47YhrMhxLMnXTRnEyE5N4xKLspAvMGjUFdi794VnEF1EcOZFS8rdROeujrgag==}
'@essentials/one-key-map@1.2.0':
resolution: {integrity: sha512-C2H7zHVcsoipDv4VKY5uUcv5ilsK+uEgEj+WeOdN5oz/Qj1/OZIzCdle90gDzj0xnGQrmZ9qDujwD7AkBb5k9A==}
'@essentials/raf@1.2.0':
resolution: {integrity: sha512-AWJvpprE2o7ATMb7HBYMVUVmPJBCt2wZp2rY7d+rAcNSMvzLbDepy9KFeqqrPZh+s9aIpbw1LgmuAW7kuRFgrQ==}
'@essentials/request-timeout@1.3.0':
resolution: {integrity: sha512-lKZPhKScNFnR1MBnk4+sxshk46fpvdN+Uh1LlKWFO5g1ocuz4EcknNIL7tm/rsCAs/+xMWiBTwbDUvm+pDNlXw==}
'@floating-ui/core@0.6.2':
resolution: {integrity: sha512-jktYRmZwmau63adUG3GKOAVCofBXkk55S/zQ94XOorAHhwqFIOFAy1rSp2N0Wp6/tGbe9V3u/ExlGZypyY17rg==}
@@ -3065,6 +3059,41 @@ packages:
peerDependencies:
react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0
'@react-hook/debounce@3.0.0':
resolution: {integrity: sha512-ir/kPrSfAzY12Gre0sOHkZ2rkEmM4fS5M5zFxCi4BnCeXh2nvx9Ujd+U4IGpKCuPA+EQD0pg1eK2NGLvfWejag==}
peerDependencies:
react: '>=16.8'
'@react-hook/event@1.2.6':
resolution: {integrity: sha512-JUL5IluaOdn5w5Afpe/puPa1rj8X6udMlQ9dt4hvMuKmTrBS1Ya6sb4sVgvfe2eU4yDuOfAhik8xhbcCekbg9Q==}
peerDependencies:
react: '>=16.8'
'@react-hook/latest@1.0.3':
resolution: {integrity: sha512-dy6duzl+JnAZcDbNTfmaP3xHiKtbXYOaz3G51MGVljh548Y8MWzTr+PHLOfvpypEVW9zwvl+VyKjbWKEVbV1Rg==}
peerDependencies:
react: '>=16.8'
'@react-hook/passive-layout-effect@1.2.1':
resolution: {integrity: sha512-IwEphTD75liO8g+6taS+4oqz+nnroocNfWVHWz7j+N+ZO2vYrc6PV1q7GQhuahL0IOR7JccFTsFKQ/mb6iZWAg==}
peerDependencies:
react: '>=16.8'
'@react-hook/throttle@2.2.0':
resolution: {integrity: sha512-LJ5eg+yMV8lXtqK3lR+OtOZ2WH/EfWvuiEEu0M3bhR7dZRfTyEJKxH1oK9uyBxiXPtWXiQggWbZirMCXam51tg==}
peerDependencies:
react: '>=16.8'
'@react-hook/window-scroll@1.3.0':
resolution: {integrity: sha512-LdYnCL22pFI+LTs85Fi2OQHSKWkzIuHFgv8lA+wwuaPxLOEhWR5bzJ21iygUH9X4meeLVRZKEbfpYi3OWWD4GQ==}
peerDependencies:
react: '>=16.8'
'@react-hook/window-size@3.1.1':
resolution: {integrity: sha512-yWnVS5LKnOUIrEsI44oz3bIIUYqflamPL27n+k/PC//PsX/YeWBky09oPeAoc9As6jSH16Wgo8plI+ECZaHk3g==}
peerDependencies:
react: '>=16.8'
'@react-stately/utils@3.10.3':
resolution: {integrity: sha512-moClv7MlVSHpbYtQIkm0Cx+on8Pgt1XqtPx6fy9rQFb2DNc9u1G3AUVnqA17buOkH1vLxAtX4MedlxMWyRCYYA==}
peerDependencies:
@@ -6236,6 +6265,11 @@ packages:
markdown-table@3.0.3:
resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}
masonic@4.0.1:
resolution: {integrity: sha512-gOj1B61NtrELoGigCy+E9SZpWSRGmAONMXrzYboBNbI0uvy7otinzGVGKDXLIZBYdNdcFySyON8qtu6IsFp6Sw==}
peerDependencies:
react: '>=16.8'
matcher@3.0.0:
resolution: {integrity: sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==}
engines: {node: '>=10'}
@@ -7315,6 +7349,9 @@ packages:
resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}
engines: {node: '>=10'}
raf-schd@4.0.3:
resolution: {integrity: sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==}
random-path@0.1.2:
resolution: {integrity: sha512-4jY0yoEaQ5v9StCl5kZbNIQlg1QheIDBrdkDn53EynpPb9FgO6//p3X/tgMnrC45XN6QZCzU1Xz/+pSSsJBpRw==}
@@ -8163,6 +8200,9 @@ packages:
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
hasBin: true
trie-memoize@1.2.0:
resolution: {integrity: sha512-hEDLVEP1FCgaRtt0oZDJdz2lK9uK7WlB7ASswt9U9cqruSNueVigtRGxI97hevKlViqhAcRgNgzuY/m8FCCMcg==}
trigram-utils@2.0.1:
resolution: {integrity: sha512-nfWIXHEaB+HdyslAfMxSqWKDdmqY9I32jS7GnqpdWQnLH89r6A5sdk3fDVYqGAZ0CrT8ovAFSAo6HRiWcWNIGQ==}
@@ -9517,14 +9557,6 @@ snapshots:
'@babel/helper-validator-identifier': 7.24.7
to-fast-properties: 2.0.0
'@cfcs/core@0.0.24':
dependencies:
'@egjs/component': 3.0.5
'@cfcs/core@0.0.5':
dependencies:
'@egjs/component': 3.0.5
'@cfcs/core@0.0.6':
dependencies:
'@egjs/component': 3.0.5
@@ -9561,31 +9593,8 @@ snapshots:
'@egjs/component@3.0.5': {}
'@egjs/grid@1.16.0':
dependencies:
'@egjs/children-differ': 1.0.1
'@egjs/component': 3.0.5
'@egjs/imready': 1.4.1
'@egjs/imready@1.4.1':
dependencies:
'@cfcs/core': 0.0.24
'@egjs/component': 3.0.5
'@egjs/infinitegrid@4.12.0':
dependencies:
'@cfcs/core': 0.0.5
'@egjs/children-differ': 1.0.1
'@egjs/component': 3.0.5
'@egjs/grid': 1.16.0
'@egjs/list-differ': 1.0.1
'@egjs/list-differ@1.0.1': {}
'@egjs/react-infinitegrid@4.12.0':
dependencies:
'@egjs/infinitegrid': 4.12.0
'@egoist/tailwindcss-icons@1.8.1(tailwindcss@3.4.12)':
dependencies:
'@iconify/utils': 2.1.32
@@ -10353,6 +10362,16 @@ snapshots:
dependencies:
levn: 0.4.1
'@essentials/memoize-one@1.1.0': {}
'@essentials/one-key-map@1.2.0': {}
'@essentials/raf@1.2.0': {}
'@essentials/request-timeout@1.3.0':
dependencies:
'@essentials/raf': 1.2.0
'@floating-ui/core@0.6.2': {}
'@floating-ui/core@1.6.7':
@@ -11687,6 +11706,41 @@ snapshots:
clsx: 2.1.1
react: 18.3.1
'@react-hook/debounce@3.0.0(react@18.3.1)':
dependencies:
'@react-hook/latest': 1.0.3(react@18.3.1)
react: 18.3.1
'@react-hook/event@1.2.6(react@18.3.1)':
dependencies:
react: 18.3.1
'@react-hook/latest@1.0.3(react@18.3.1)':
dependencies:
react: 18.3.1
'@react-hook/passive-layout-effect@1.2.1(react@18.3.1)':
dependencies:
react: 18.3.1
'@react-hook/throttle@2.2.0(react@18.3.1)':
dependencies:
'@react-hook/latest': 1.0.3(react@18.3.1)
react: 18.3.1
'@react-hook/window-scroll@1.3.0(react@18.3.1)':
dependencies:
'@react-hook/event': 1.2.6(react@18.3.1)
'@react-hook/throttle': 2.2.0(react@18.3.1)
react: 18.3.1
'@react-hook/window-size@3.1.1(react@18.3.1)':
dependencies:
'@react-hook/debounce': 3.0.0(react@18.3.1)
'@react-hook/event': 1.2.6(react@18.3.1)
'@react-hook/throttle': 2.2.0(react@18.3.1)
react: 18.3.1
'@react-stately/utils@3.10.3(react@18.3.1)':
dependencies:
'@swc/helpers': 0.5.13
@@ -15612,6 +15666,21 @@ snapshots:
markdown-table@3.0.3: {}
masonic@4.0.1(react@18.3.1):
dependencies:
'@essentials/memoize-one': 1.1.0
'@essentials/one-key-map': 1.2.0
'@essentials/request-timeout': 1.3.0
'@react-hook/event': 1.2.6(react@18.3.1)
'@react-hook/latest': 1.0.3(react@18.3.1)
'@react-hook/passive-layout-effect': 1.2.1(react@18.3.1)
'@react-hook/throttle': 2.2.0(react@18.3.1)
'@react-hook/window-scroll': 1.3.0(react@18.3.1)
'@react-hook/window-size': 3.1.1(react@18.3.1)
raf-schd: 4.0.3
react: 18.3.1
trie-memoize: 1.2.0
matcher@3.0.0:
dependencies:
escape-string-regexp: 4.0.0
@@ -16875,6 +16944,8 @@ snapshots:
quick-lru@5.1.1: {}
raf-schd@4.0.3: {}
random-path@0.1.2:
dependencies:
base32-encode: 1.2.0
@@ -17836,6 +17907,8 @@ snapshots:
tree-kill@1.2.2: {}
trie-memoize@1.2.0: {}
trigram-utils@2.0.1:
dependencies:
collapse-white-space: 2.1.0
+107
View File
@@ -0,0 +1,107 @@
import "dotenv/config"
import { readFileSync, writeFileSync } from "node:fs"
import path, { dirname, resolve } from "node:path"
import { fileURLToPath } from "node:url"
import { inspect } from "node:util"
import { ofetch } from "ofetch"
const { POSTHOG_TOKEN } = process.env
if (!POSTHOG_TOKEN) {
throw new Error("POSTHOG_TOKEN is not set")
}
// https://posthog.com/docs/api/feature-flags#post-api-organizations-parent_lookup_organization_id-feature_flags-copy_flags
const listRes: ListRes = await ofetch(
`https://app.posthog.com/api/projects/${process.env.POSTHOG_PROJECT_ID}/feature_flags/?limit=9999`,
{
method: "GET",
headers: {
Authorization: `Bearer ${POSTHOG_TOKEN}`,
},
},
)
interface ListRes {
count: number
next: null
previous: null
results: ResultsItem[]
}
interface ResultsItem {
id: number
name: string
key: string
filters: any[]
deleted: boolean
active: boolean
created_by: any[]
created_at: string
is_simple_flag: boolean
rollout_percentage: number
ensure_experience_continuity: boolean
experiment_set: any[]
surveys: any[]
features: any[]
rollback_conditions: any[]
performed_rollback: boolean
can_edit: boolean
usage_dashboard: number
analytics_dashboards: any[]
has_enriched_analytics: boolean
tags: any[]
}
const existFlags = {} as Record<string, boolean>
listRes.results.forEach((flag) => (existFlags[flag.key] = true))
const __dirname = resolve(dirname(fileURLToPath(import.meta.url)))
const localFlagsString = readFileSync(path.join(__dirname, "../constants/flags.json"), "utf8")
const localFlags = JSON.parse(localFlagsString as string) as Record<string, boolean>
const updateToRmoteFlags = {} as Record<string, boolean>
// If remote key has but local not has, add to Local
for (const key in existFlags) {
if (!(key in localFlags)) {
localFlags[key] = existFlags[key]
}
}
// Write to local flags
writeFileSync(path.join(__dirname, "../constants/flags.json"), JSON.stringify(localFlags, null, 2))
console.info("update local flags", inspect(localFlags))
// Local first
for (const key in localFlags) {
// existFlags[key] = localFlags[key]
if (existFlags[key] !== localFlags[key]) {
updateToRmoteFlags[key] = localFlags[key]
}
}
if (Object.keys(updateToRmoteFlags).length > 0) {
await Promise.allSettled(
Object.entries(updateToRmoteFlags).map(([key, flag]) => {
return fetch(
`https://app.posthog.com/api/projects/${process.env.POSTHOG_PROJECT_ID}/feature_flags/`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.POSTHOG_PRIVATE_KEY}`,
},
body: JSON.stringify({
key,
active: flag,
}),
},
)
}),
)
console.info("update flags", inspect(updateToRmoteFlags))
}