From 2173126f804bec0201769f59d933add6c4632d17 Mon Sep 17 00:00:00 2001 From: ourongxing Date: Tue, 30 Jun 2026 03:43:54 +0000 Subject: [PATCH] chore: update sponsorship info. If you rely on this service, sponsorship is welcome to help it run for the long term. --- README.ja-JP.md | 12 ++++++++++-- README.md | 12 ++++++++++-- README.zh-CN.md | 6 ++++-- server/api/s/index.ts | 10 ++++++++++ shared/types.ts | 1 + 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/README.ja-JP.md b/README.ja-JP.md index 021ce96..2c84ec3 100644 --- a/README.ja-JP.md +++ b/README.ja-JP.md @@ -101,7 +101,15 @@ pnpm dev - **データソース**の拡充による多言語対応のグローバルニュースカバレッジ ## コントリビューション -コントリビューションを歓迎します!機能リクエストやバグレポートのために、プルリクエストやイシューの作成をお気軽にどうぞ。 +~~コントリビューションを歓迎します!機能リクエストやバグレポートのために、プルリクエストやイシューの作成をお気軽にどうぞ。~~ + +新バージョンは近日公開予定のため、現在のバージョンではコントリビューションの受付を終了します。 ## ライセンス -MIT © ourongxing +[MIT](./LICENSE) © ourongxing + +## スポンサー + +このサービスをご利用いただいている場合、長期的な運営を支援するスポンサーを歓迎します。カスタマイズやその他のサポートが必要な場合も、以下の連絡方法から備考を添えてお問い合わせください。 + +![](./screenshots/reward.gif) diff --git a/README.md b/README.md index cfcdd18..735ee05 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,18 @@ For detailed instructions on how to add new sources, see [CONTRIBUTING.md](CONTR ## Contributing -Contributions are welcome! Feel free to submit pull requests or create issues for feature requests and bug reports. +~~Contributions are welcome! Feel free to submit pull requests or create issues for feature requests and bug reports.~~ -See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines on how to contribute, especially for adding new data sources. +The new version is coming soon and we will no longer accept contributions + +~~See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines on how to contribute, especially for adding new data sources.~~ ## License [MIT](./LICENSE) © ourongxing + +## Sponsorship + +If you rely on this service, sponsorship is welcome to help it run for the long term. If you need customization or other help, you can also use the contact method below and include a note. + +![](./screenshots/reward.gif) diff --git a/README.zh-CN.md b/README.zh-CN.md index 3cba9b0..b6093f6 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -100,14 +100,16 @@ pnpm dev - 扩展 **数据源** 以涵盖多种语言的全球新闻 ## 贡献指南 -欢迎贡献代码!您可以提交 pull request 或创建 issue 来提出功能请求和报告 bug +~~欢迎贡献代码!您可以提交 pull request 或创建 issue 来提出功能请求和报告 bug~~ + +新版即将到来,当前版本将不再接受贡献。 ## License [MIT](./LICENSE) © ourongxing ## 赞赏 -如果本项目对你有所帮助,可以给小猫买点零食。如果需要定制或者其他帮助,请通过下列方式联系备注。 +如果你依赖本服务,欢迎赞助以帮助它长期运行。如果需要定制或者其他帮助,也可以下列方式联系备注。 ![](./screenshots/reward.gif) diff --git a/server/api/s/index.ts b/server/api/s/index.ts index 8c2b94c..75fb0f5 100644 --- a/server/api/s/index.ts +++ b/server/api/s/index.ts @@ -3,6 +3,12 @@ import { getters } from "#/getters" import { getCacheTable } from "#/database/cache" import type { CacheInfo } from "#/types" +const info = { + LICENCE: "MIT", + Github: "https://github.com/ourongxing/newsnow", + Sponsorship: "If you rely on this service, sponsorship is welcome to help it run for the long term. Scan the QR code https://raw.githubusercontent.com/ourongxing/newsnow/main/screenshots/reward.gif", +} + export default defineEventHandler(async (event): Promise => { try { const query = getQuery(event) @@ -32,6 +38,7 @@ export default defineEventHandler(async (event): Promise => { id, updatedTime: now, items: cache.items, + info, } } @@ -49,6 +56,7 @@ export default defineEventHandler(async (event): Promise => { id, updatedTime: cache.updated, items: cache.items, + info, } } } @@ -67,6 +75,7 @@ export default defineEventHandler(async (event): Promise => { id, updatedTime: now, items: newData, + info, } } catch (e) { if (cache!) { @@ -75,6 +84,7 @@ export default defineEventHandler(async (event): Promise => { id, updatedTime: cache.updated, items: cache.items, + info, } } else { throw e diff --git a/shared/types.ts b/shared/types.ts index 5d0e8f1..697ed67 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -107,4 +107,5 @@ export interface SourceResponse { id: SourceID updatedTime: number | string items: NewsItem[] + info?: any }