Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions README.ja-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"newsnow-mcp-server"
],
"env": {
"BASE_URL": "https://newsnow.busiyi.world"
"BASE_URL": "https://news.94likeu.cn"
}
}
}
Expand Down Expand Up @@ -106,10 +106,4 @@ pnpm dev
新バージョンは近日公開予定のため、現在のバージョンではコントリビューションの受付を終了します。

## ライセンス
[MIT](./LICENSE) © ourongxing

## スポンサー

このサービスをご利用いただいている場合、長期的な運営を支援するスポンサーを歓迎します。カスタマイズやその他のサポートが必要な場合も、以下の連絡方法から備考を添えてお問い合わせください。

![](./screenshots/reward.gif)
[MIT](./LICENSE) © 2024 ourongxing, modified by GavinGu0
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ English | [简体中文](README.zh-CN.md) | [日本語](README.ja-JP.md)
"newsnow-mcp-server"
],
"env": {
"BASE_URL": "https://newsnow.busiyi.world"
"BASE_URL": "https://news.94likeu.cn"
}
}
}
Expand Down Expand Up @@ -116,7 +116,6 @@ For detailed instructions on how to add new sources, see [CONTRIBUTING.md](CONTR
- Expand **data sources** to cover global news in multiple languages.

**_release when ready_**
![](https://testmnbbs.oss-cn-zhangjiakou.aliyuncs.com/pic/20250328172146_rec_.gif?x-oss-process=base_webp)

## Contributing

Expand All @@ -128,10 +127,6 @@ The new version is coming soon and we will no longer accept contributions

## License

[MIT](./LICENSE) © ourongxing
[MIT](./LICENSE) © 2024 ourongxing, modified by GavinGu0

## 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)
11 changes: 2 additions & 9 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"newsnow-mcp-server"
],
"env": {
"BASE_URL": "https://newsnow.busiyi.world"
"BASE_URL": "https://news.94likeu.cn"
}
}
}
Expand Down Expand Up @@ -106,11 +106,4 @@ pnpm dev

## License

[MIT](./LICENSE) © ourongxing

## 赞赏
如果你依赖本服务,欢迎赞助以帮助它长期运行。如果需要定制或者其他帮助,也可以下列方式联系备注。

![](./screenshots/reward.gif)

<a href="https://hellogithub.com/repository/c2978695e74a423189e9ca2543ab3b36" target="_blank"><img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=c2978695e74a423189e9ca2543ab3b36&claim_uid=SMJiFwlsKCkWf89&theme=small" alt="Featured|HelloGitHub" /></a>
[MIT](./LICENSE) © 2024 ourongxing,基于 newsnow 修改 by GavinGu0
6 changes: 5 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ export default ourongxing({
ignores: ["src/routeTree.gen.ts", "imports.app.d.ts", "public/", ".vscode", "**/*.json"],
}).append(react({
files: ["src/**"],
}))
})).append({
rules: {
"react-dom/no-children-in-void-dom-elements": "off",
},
})
17 changes: 4 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<meta property="og:title" content="NewsNow - 优雅的新闻聚合阅读器" />
<meta property="og:description" content="实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://newsnow.busiyi.world" />
<meta property="og:image" content="https://newsnow.busiyi.world/og-image.png" />
<meta property="og:url" content="https://news.94likeu.cn" />
<meta property="og:image" content="https://news.94likeu.cn/og-image.png" />

<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="NewsNow - 优雅的新闻聚合阅读器" />
<meta name="twitter:description" content="实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验" />
<meta name="twitter:image" content="https://newsnow.busiyi.world/og-image.svg" />
<meta name="twitter:image" content="https://news.94likeu.cn/og-image.png" />

<meta name="theme-color" content="#F14D42" />
<link rel="preload" href="/Baloo2-Bold.subset.ttf" as="font" type="font/ttf" crossorigin>
Expand All @@ -34,20 +34,11 @@
"@context": "https://schema.org",
"@type": "WebSite",
"name": "NewsNow",
"url": "https://newsnow.busiyi.world",
"url": "https://news.94likeu.cn",
"description": "实时新闻聚合阅读器,汇集全球热点新闻,提供优雅的阅读体验",
}
</script>

<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EL9HHYE5LC"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-EL9HHYE5LC');
</script>

<script>
const query = new URLSearchParams(window.location.search)
if (query.has("login") && query.has("user") && query.has("jwt")) {
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"private": true,
"packageManager": "pnpm@10.30.3",
"author": {
"url": "https://github.com/ourongxing/",
"email": "orongxing@gmail.com",
"name": "ourongxing"
"url": "https://github.com/GavinGu0",
"name": "GavinGu0"
},
"homepage": "https://github.com/ourongxing/newsnow",
"homepage": "https://github.com/GavinGu0/newsnow",
"scripts": {
"dev": "npm run presource && cross-env NODE_OPTIONS=--use-env-proxy vite dev",
"build": "npm run presource && vite build",
Expand Down
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://newsnow.busiyi.world/</loc>
<loc>https://news.94likeu.cn/</loc>
<lastmod>2025-01-18</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
Expand Down
Binary file added public/wechat-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/wechat-mp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions server/api/s/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ 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",
Github: "https://github.com/GavinGu0/newsnow",
}

export default defineEventHandler(async (event): Promise<SourceResponse> => {
Expand Down
8 changes: 4 additions & 4 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ export function Footer() {
<>
<a href={`${Homepage}/blob/main/LICENSE`} target="_blank">MIT LICENSE</a>
<span>
<span>NewsNow © 2024 By </span>
<a href={Author.url} target="_blank">
{Author.name}
</a>
<span>基于 </span>
<a href="https://github.com/ourongxing/newsnow" target="_blank" rel="noopener noreferrer">newsnow</a>
<span> 修改 by </span>
<a href="https://github.com/GavinGu0" target="_blank" rel="noopener noreferrer">GavinGu0</a>
</span>
</>
)
Expand Down
58 changes: 52 additions & 6 deletions src/components/header/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { motion } from "framer-motion"
import { AnimatePresence, motion } from "framer-motion"
import { createPortal } from "react-dom"

// function ThemeToggle() {
// const { isDark, toggleDark } = useDark()
// return (
// <li onClick={toggleDark} className="cursor-pointer [&_*]:cursor-pointer transition-all">
// <span className={$("inline-block", isDark ? "i-ph-moon-stars-duotone" : "i-ph-sun-dim-duotone")} />
// <span className={$("inline-block", isDark ? "i-ph-moon-stars-duotone" : "i-ph:sun-dim-duotone")} />
// <span>
// {isDark ? "浅色模式" : "深色模式"}
// </span>
Expand All @@ -15,6 +16,7 @@ import { motion } from "framer-motion"
export function Menu() {
const { loggedIn, login, logout, userInfo, enableLogin } = useLogin()
const [shown, show] = useState(false)
const [qrCode, setQrCode] = useState<"mp" | "mini" | null>(null)
return (
<span className="relative" onMouseEnter={() => show(true)} onMouseLeave={() => show(false)}>
<span className="flex items-center scale-90">
Expand Down Expand Up @@ -71,26 +73,70 @@ export function Menu() {
</li>
<li className="flex gap-2 items-center">
<a
href="https://github.com/ourongxing/newsnow"
href="https://github.com/GavinGu0/newsnow"
>
<img
alt="GitHub stars badge"
src="https://img.shields.io/github/stars/ourongxing/newsnow?logo=github&style=flat&labelColor=%235e3c40&color=%23614447"
src="https://img.shields.io/github/stars/GavinGu0/newsnow?logo=github&style=flat&labelColor=%235e3c40&color=%23614447"
/>
</a>
<a
href="https://github.com/ourongxing/newsnow/fork"
href="https://github.com/GavinGu0/newsnow/fork"
>
<img
alt="GitHub forks badge"
src="https://img.shields.io/github/forks/ourongxing/newsnow?logo=github&style=flat&labelColor=%235e3c40&color=%23614447"
src="https://img.shields.io/github/forks/GavinGu0/newsnow?logo=github&style=flat&labelColor=%235e3c40&color=%23614447"
/>
</a>
</li>
<li onClick={() => setQrCode("mp")} className="cursor-pointer [&_*]:cursor-pointer transition-all">
<span className="i-ph:wechat-logo-duotone inline-block" />
<span>关注公众号</span>
</li>
<li onClick={() => setQrCode("mini")} className="cursor-pointer [&_*]:cursor-pointer transition-all">
<span className="i-ph:qr-code-duotone inline-block" />
<span>使用小程序</span>
</li>
</ol>
</motion.div>
</div>
)}
{qrCode && createPortal(
<AnimatePresence>
<motion.div
key="qr-modal"
className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 backdrop-blur-sm p-4"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
onClick={() => setQrCode(null)}
>
<motion.div
className="relative bg-base rounded-xl p-4 sm:p-6 flex flex-col items-center gap-3 shadow-2xl max-w-[90vw] max-h-[90vh]"
initial={{ scale: 0.9 }}
animate={{ scale: 1 }}
exit={{ scale: 0.9 }}
onClick={e => e.stopPropagation()}
>
<button
type="button"
className="absolute -top-3 -right-3 h-8 w-8 flex items-center justify-center rounded-full bg-base shadow-md i-ph:x-circle-duotone text-xl op-70 hover:op-100"
onClick={() => setQrCode(null)}
aria-label="关闭"
/>
<img
src={qrCode === "mp" ? "/wechat-mp.jpg" : "/wechat-mini.png"}
alt={qrCode === "mp" ? "公众号二维码" : "小程序二维码"}
className="w-56 h-56 sm:w-60 sm:h-60 md:w-64 md:h-64 object-contain"
/>
<span className="text-sm sm:text-base font-bold text-center">
{qrCode === "mp" ? "营迹Camp,发现你身边的露营地" : "营迹Camps,发现你身边的露营地"}
</span>
</motion.div>
</motion.div>
</AnimatePresence>,
document.body,
)}
</span>
)
}