chore: update sponsorship info. If you rely on this service, sponsorship is welcome to help it run for the long term.

This commit is contained in:
ourongxing
2026-06-30 03:43:54 +00:00
parent ef95eb4d84
commit 2173126f80
5 changed files with 35 additions and 6 deletions
+10 -2
View File
@@ -101,7 +101,15 @@ pnpm dev
- **データソース**の拡充による多言語対応のグローバルニュースカバレッジ
## コントリビューション
コントリビューションを歓迎します!機能リクエストやバグレポートのために、プルリクエストやイシューの作成をお気軽にどうぞ。
~~コントリビューションを歓迎します!機能リクエストやバグレポートのために、プルリクエストやイシューの作成をお気軽にどうぞ。~~
新バージョンは近日公開予定のため、現在のバージョンではコントリビューションの受付を終了します。
## ライセンス
MIT © ourongxing
[MIT](./LICENSE) © ourongxing
## スポンサー
このサービスをご利用いただいている場合、長期的な運営を支援するスポンサーを歓迎します。カスタマイズやその他のサポートが必要な場合も、以下の連絡方法から備考を添えてお問い合わせください。
![](./screenshots/reward.gif)
+10 -2
View File
@@ -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)
+4 -2
View File
@@ -100,14 +100,16 @@ pnpm dev
- 扩展 **数据源** 以涵盖多种语言的全球新闻
## 贡献指南
欢迎贡献代码!您可以提交 pull request 或创建 issue 来提出功能请求和报告 bug
~~欢迎贡献代码!您可以提交 pull request 或创建 issue 来提出功能请求和报告 bug~~
新版即将到来,当前版本将不再接受贡献。
## License
[MIT](./LICENSE) © ourongxing
## 赞赏
如果本项目对你有所帮助,可以给小猫买点零食。如果需要定制或者其他帮助,请通过下列方式联系备注。
如果你依赖本服务,欢迎赞助以帮助它长期运行。如果需要定制或者其他帮助,也可以下列方式联系备注。
![](./screenshots/reward.gif)
+10
View File
@@ -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<SourceResponse> => {
try {
const query = getQuery(event)
@@ -32,6 +38,7 @@ export default defineEventHandler(async (event): Promise<SourceResponse> => {
id,
updatedTime: now,
items: cache.items,
info,
}
}
@@ -49,6 +56,7 @@ export default defineEventHandler(async (event): Promise<SourceResponse> => {
id,
updatedTime: cache.updated,
items: cache.items,
info,
}
}
}
@@ -67,6 +75,7 @@ export default defineEventHandler(async (event): Promise<SourceResponse> => {
id,
updatedTime: now,
items: newData,
info,
}
} catch (e) {
if (cache!) {
@@ -75,6 +84,7 @@ export default defineEventHandler(async (event): Promise<SourceResponse> => {
id,
updatedTime: cache.updated,
items: cache.items,
info,
}
} else {
throw e
+1
View File
@@ -107,4 +107,5 @@ export interface SourceResponse {
id: SourceID
updatedTime: number | string
items: NewsItem[]
info?: any
}