Giter Site home page Giter Site logo

innei / shiro Goto Github PK

View Code? Open in Web Editor NEW
2.8K 10.0 563.0 11.33 MB

📜 A minimalist personal website embodying the purity of paper and freshness of snow.

Home Page: https://innei.in

License: Other

TypeScript 95.94% CSS 2.89% JavaScript 0.75% HTML 0.02% Shell 0.29% Dockerfile 0.11%

shiro's Introduction

Shiro

一个极简主义的个人网站,纸的纯净和雪的清新。

Mix Space 服务的个人站点前端。

以下是一些使用 Shiro 的示例站点:

欢迎你来体验 Shiro 的魅力!

✨ 特征

  1. 🚀 SEO 100%,性能优秀:在 LightHouse 中表现优秀,Performance > 90%,Best practice > 90%。
  2. 🎨 UI 现代化,简洁不简单:用户界面设计现代化,简洁而不简单,让你的体验更加流畅。
  3. 💎 注重细节,UX 极致:注重每一个细节,所有的动画都使用符合物理的 Spring 弹性动画,每一帧都是大自然的感觉。
  4. 🔔 接入 WebSocket,实时获取最新的文章通知:通过 WebSocket,访客能够实时获取最新的文章通知。
  5. 💻 实时活动状态展示:配合 ProcessReporter,可以在主页上显示实时活动状态。
  6. 📝 Markdown 的扩展语法:支持更多的 Markdown 扩展语法,等待你的发掘和使用。
  7. 轻量级管理面板:可以在管理面板中管理文章、评论等。

🔧 技术栈

  • NextJS (App Router)
  • Jotai
  • Framer motion
  • Radix UI
  • Socket.IO
  • TailwindCSS

📄 使用文档

前往:https://mx-space.js.org/themes/shiro

感谢 @wibus-wee 和 @wuhang2003 等其他社区贡献者编写。

📷 截图

Live Demo

轻管理面板:

点击查看部分完整页面截图

页面截图 1 页面截图 2

⚡ 性能

在 M2 Macbook Air 环境中对逻辑最重的页面进行了测试。

🚀 部署

看这里.

🐳 运行

🔨 通过预构建运行

首先在 https://github.com/Innei/Shiro/releases 中下载预构建好的 release.zip。然后解压它。

cd standalone
vim .env # 修改你的 ENV 变量
export PORT=2323
node server.js

📚 推荐使用 Docker Compose

mkdir shiro
cd shiro
wget https://raw.githubusercontent.com/Innei/Shiro/main/docker-compose.yml
wget https://raw.githubusercontent.com/Innei/Shiro/main/.env.template .env

vim .env # 修改你的 ENV 变量
docker compose up -d

docker compose pull # 后续更新镜像

Markdown 扩展语法

请阅读 https://shiro.innei.in/#/markdown

❤️ 鸣谢 & 许可

2024 © Innei,本软件遵循 AGPLv3 许可证,附加特定的商业使用条件。此外,使用本项目还需要遵循附加条款和条件

部分代码参考自 GPT-4 和 cali.so

感谢 Mix Space Team 和广大社区朋友们的贡献。

赞助版白い

个人网站 · GitHub @Innei

shiro's People

Contributors

blxcwg666 avatar chingcdesu avatar cielneko avatar cullyfung avatar dreamer-paul avatar eltociear avatar fisheryv avatar hqwuzhaoyi avatar innei avatar lmmmmmm-bb avatar nanzhi63 avatar pcccccc avatar pengchzn avatar poboll avatar rdp-studio avatar renovate[bot] avatar sliverkeigo avatar soya-xy avatar ssttar avatar suemor233 avatar tinsfox avatar tnxg avatar xiaohanwu520 avatar zhangmo8 avatar zhuozhiyongde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shiro's Issues

[Feature Request] 评论交互逻辑优化

Clear and concise description of the problem

希望能够支持如下有关评论的交互逻辑改进:

  • 每次换行默认换两行(同 Typora),现有的换 1 行会导致渲染多行文字在同一段内(换行被忽视),这可能不是大多数情况下的期望行为
  • 支持评论编辑功能,包括博主编辑与用户编辑(然而这似乎涉及 Core 那边数据库的一些东西?)

以上,感谢大佬!

Suggested solution

如题。

Alternative

No response

Additional context

No response

Validations

[Bug] Markdown 解析错误

Describe the bug

如题。

使用如下内容加以渲染:

2. 在每个 phase 里检验是否输入了正确的密码,如果输入错误则调用 `explode_bomb` 函数,打印 `BOOM!!!`,并在其中调用 `send_msg` 函数,向服务器发送通知

    ```asm

    ```

    我们的代码,通过在 `call   1fb1 <send_msg>` 这一句处设置断点,然后直接跳到 `call   1390 <exit@plt>` 这一句处,完整的跳过了 `send_msg` 函数的执行,从而使得服务器无从知道我们的炸弹爆炸了。

    这对应我们的 `.gdbinit` 文件中的如下代码:

    ```bash
    # 为 explode_bomb 中触发 send_msg 函数的地方设置断点
    b *(explode_bomb + 0x44)
    # 为此断点编程
    command
    # 直接跳到 exit 退出函数处,跳过发送信息流程
    j *(explode_bomb + 0x81)
    end
    ```

得到:

Cleanshot-2024-01-13-at-01 54 32@2x

错误地触发了引言块的语法。

预期:

Cleanshot-2024-01-13-at-01 55 55@2x

Reproduction

见说明

System Info

no need.

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

获取不到访客评论的网址

mix-space版本:
面板版本: 3.30.10
系统版本:4.2.12
页面来源:server
398 commits的版本
linux版本:Ubuntu 20.04

详细信息:

https://img.yuano.cc/upload/xiaoyuanyuan1111.png
访客评论,填写自己的网站地址,提交评论后无法获取到网址。后台有留言显示,按照以前版本,点击名称即可跳转到访客的网站。

https://img.yuano.cc/upload/test2.png
现在无法跳转。但是以前kami的留言,还是可以跳转的。

我尝试了一下,部署两个站点,使用同一个后台。

kami评论的留言,后台可以获取到评论网址,切到shiro也可以点击访问。
shiro评论的留言,后台无法正常获取到网址,在kami也无法打开。

今天更新了一下 Mix Space 发现了一个关于‘手记’页面的BUG

Describe the bug

升级空间之后 点击撰写手记
image

这里没办法制定ID

image

这意味着之前版本创建的文章不能删除,只要删除在主页点击书记就会找不到这篇文章,然后就会始终是错误页面,当然这个只限于像我这样刚部署的人

image

Reproduction

[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { digest: '3257579095' }

System Info

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

后端评论系统"已读"功能报错

Describe the bug

如题,在使用评论系统的时候,会进行报错“Schema hasn't been registered for model "Note". Use mongoose.model(name, schema)”

但是其他两项使用正常,单纯已读无法加载,自己给自己评论,回复功能都是没问题的,邮件提醒也正常有。

使用的是docker后端+vercel前端+反代1panel,但我用宝塔面板使用的时候,好像也会出现这个问题。

yidu
weidu
laji

Reproduction

面板版本: 3.36.2 系统版本:4.10.3 页面来源:server 前端使用最新fock的

System Info

System:
    OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
    Memory: 144.98 MB / 1.94 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
Binaries:
    Node: 10.19.0 - /usr/bin/node
    npm: 6.14.4 - /usr/bin/npm

root@iZbp1cvenyy3xlq1lcegykZ:~#

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Add custom ip headers

Clear and concise description of the problem

当前版本的 Shiro 在后端使用 cf 的情况下会使后端获取到 shiro 所在服务器/边缘节点IP

Suggested solution

增加一个 x-shiro-visitor-ip header 以便使用 cf cdn 的后端通过修改反代配置获取访客真实 ip

Alternative

None

Additional context

No response

Validations

请求实现一些功能

Clear and concise description of the problem

能否实现以下功能:

个人认为应该优先实现的:

  • 自定义 nav 菜单(Not planned)

  • 更多预设或自定义社交图标的显示(如电子邮件,Telegram 等)(PR Welcome)

    • 个人认为有两种配置方式
      • 配置保存在后端,显示的社交图标通过请求后端 API 获取(但是目前似乎是在构建时获取)
      • 文档中给的后端的“云函数”的配置文件(Not realistic)
  • #66

  • 自定义版权协议(Not planned)

个人认为可以在任何时候实现的

  • 站点公告
  • 文章过期提醒(比如:本文最后更新于 {days} 天前,其中的相关信息可能已经有所发展或是发生改变,请注意甄别。(Already impled)
  • 文章右侧 TOC 滚动跟随页面进度(Need help)
    • 个人认为,页面进度百分比应是固定的,而不是在 TOC 中可滚动
      image

个人认为可选实现的

  • 自定义 footer/header(插入 HTML,CSS,JS)(Not planned)

Suggested solution

我只是一个写后端的,前端的东西一概不知(除了懂一点 HTML 和 JS)。

Alternative

No response

Additional context

No response

Validations

Algolia搜索集成不生效?

参考官方教程配置的algolia搜索功能,但是ctrl k会focus浏览器的聚焦地址栏,并没有其他的特别的地方?

浏览器:Firefox,chromium也试过不可以。

Shiro版本:与 innei/shiro 同步
core版本:v4.10.8

请求支持 LaTeX

如题,现在渲染博客内容并不支持 LaTeX,而这对于理工科学生是很重要的功能

multilanguage support

Describe the bug

site is unable to render when using the default Chrome browser translate tool

Reproduction

site will give error on loading native english users

System Info

idk

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

最新版部署到 vercel 报错

Vercel build 输出结果:

[23:45:17.544] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[23:45:19.788] Cloning github.com/ceneax/Shiro (Branch: main, Commit: d2b15a7)
[23:45:20.119] Previous build cache not available
[23:45:20.236] Cloning completed: 447.534ms
[23:45:20.568] Running "vercel build"
[23:45:21.029] Vercel CLI 32.4.1
[23:45:21.455] Warning: Detected "engines": { "node": ">=18" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[23:45:21.480] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8
[23:45:21.501] Installing dependencies...
[23:45:22.154] Lockfile is up to date, resolution step is skipped
[23:45:22.224] Progress: resolved 1, reused 0, downloaded 0, added 0
[23:45:22.444] Packages: +830
[23:45:22.446] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[23:45:23.230] Progress: resolved 830, reused 0, downloaded 60, added 49
[23:45:24.230] Progress: resolved 830, reused 0, downloaded 136, added 125
[23:45:25.234] Progress: resolved 830, reused 0, downloaded 171, added 157
[23:45:26.235] Progress: resolved 830, reused 0, downloaded 203, added 187
[23:45:27.234] Progress: resolved 830, reused 0, downloaded 284, added 278
[23:45:28.235] Progress: resolved 830, reused 0, downloaded 407, added 394
[23:45:29.238] Progress: resolved 830, reused 0, downloaded 524, added 519
[23:45:30.243] Progress: resolved 830, reused 0, downloaded 726, added 723
[23:45:30.894] Progress: resolved 830, reused 0, downloaded 830, added 830, done
[23:45:31.416] .../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
[23:45:31.442] .../node_modules/bufferutil install$ node-gyp-build
[23:45:31.442] .../node_modules/utf-8-validate install$ node-gyp-build
[23:45:31.512] .../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[23:45:31.519] .../node_modules/simple-git-hooks postinstall: Done
[23:45:31.607] .../node_modules/bufferutil install: Done
[23:45:31.621] .../node_modules/utf-8-validate install: Done
[23:45:31.634] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[23:45:31.723] .../[email protected]/node_modules/esbuild postinstall: Done
[23:45:31.951] 
[23:45:31.951] dependencies:
[23:45:31.951] + @clerk/nextjs 4.25.3
[23:45:31.951] + @floating-ui/react-dom 2.0.2
[23:45:31.951] + @mx-space/api-client 1.5.1
[23:45:31.951] + @radix-ui/react-dialog 1.0.5
[23:45:31.951] + @radix-ui/react-select 2.0.0
[23:45:31.951] + @tanstack/react-query 4.35.7
[23:45:31.951] + @tanstack/react-query-devtools 4.35.7
[23:45:31.952] + @tanstack/react-query-persist-client 4.35.7
[23:45:31.952] + @upstash/redis 1.22.1
[23:45:31.952] + @vercel/analytics 1.1.0
[23:45:31.952] + @vercel/postgres 0.5.0
[23:45:31.952] + axios 1.5.1
[23:45:31.952] + clsx 2.0.0
[23:45:31.952] + daisyui 3.9.2
[23:45:31.952] + dayjs 1.11.10
[23:45:31.955] + emoji-mart 5.5.2
[23:45:31.955] + emoji-picker-react 4.5.2
[23:45:31.955] + foxact 0.2.20
[23:45:31.955] + framer-motion 10.16.4
[23:45:31.955] + idb-keyval 6.2.1
[23:45:31.955] + immer 10.0.3
[23:45:31.956] + jojoo 0.0.8
[23:45:31.956] + jotai 2.4.3
[23:45:31.956] + js-cookie 3.0.5
[23:45:31.956] + markdown-to-jsx <- @innei/markdown-to-jsx 7.2.1-beta.0
[23:45:31.956] + medium-zoom 1.0.8
[23:45:31.956] + mermaid 10.5.0
[23:45:31.956] + next 13.5.2
[23:45:31.956] + next-themes 0.2.1
[23:45:31.956] + openai 4.11.1
[23:45:31.956] + qrcode.react 3.1.0
[23:45:31.956] + react 18.2.0
[23:45:31.956] + react-dom 18.2.0
[23:45:31.956] + react-error-boundary 4.0.11
[23:45:31.956] + react-intersection-observer 9.5.2
[23:45:31.956] + react-toastify 9.1.3
[23:45:31.956] + react-tweet 3.1.1
[23:45:31.956] + react-wrap-balancer 1.1.0
[23:45:31.956] + remove-markdown 0.5.0
[23:45:31.956] + socket.io-client 4.7.2
[23:45:31.956] + tailwind-merge 1.14.0
[23:45:31.956] + uniqolor 1.1.0
[23:45:31.956] + xss 1.0.14
[23:45:31.957] 
[23:45:31.957] devDependencies:
[23:45:31.957] + @iconify-json/material-symbols 1.1.59
[23:45:31.957] + @iconify-json/mingcute 1.1.10
[23:45:31.957] + @iconify/tailwind 0.1.3
[23:45:31.957] + @innei/eslint-config-react-ts 0.11.1
[23:45:31.957] + @innei/prettier 0.11.1
[23:45:31.957] + @next/bundle-analyzer 13.5.2
[23:45:31.957] + @tailwindcss/typography 0.5.10
[23:45:31.957] + @types/js-cookie 3.0.4
[23:45:31.957] + @types/markdown-escape 1.1.1
[23:45:31.957] + @types/node 20.8.3
[23:45:31.957] + @types/react 18.2.25
[23:45:31.957] + @types/react-dom 18.2.11
[23:45:31.957] + @types/remove-markdown 0.3.2
[23:45:31.957] + autoprefixer 10.4.16
[23:45:31.957] + cross-env 7.0.3
[23:45:31.957] + dotenv 16.3.1
[23:45:31.957] + eslint 8.51.0
[23:45:31.957] + husky 8.0.3
[23:45:31.957] + lint-staged 14.0.1
[23:45:31.957] + postcss 8.4.31
[23:45:31.957] + postcss-import 15.1.0
[23:45:31.958] + postcss-nested 6.0.1
[23:45:31.958] + postcss-preset-env 9.1.4
[23:45:31.958] + postcss-prune-var 1.1.1
[23:45:31.958] + prettier 3.0.3
[23:45:31.958] + rimraf 5.0.5
[23:45:31.958] + simple-git-hooks 2.9.0
[23:45:31.958] + tailwind-scrollbar 3.0.5
[23:45:31.958] + tailwind-variants 0.1.14
[23:45:31.958] + tailwindcss 3.3.3
[23:45:31.958] + typescript 5.2.2
[23:45:31.964] + typewind 0.1.4
[23:45:31.964] + zx 7.2.3
[23:45:31.965] 
[23:45:32.010] 
[23:45:32.010] > [email protected] prepare /vercel/path0
[23:45:32.010] > pnpm exec simple-git-hooks && test -f .env || cp .env.template .env
[23:45:32.010] 
[23:45:32.616] [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[23:45:32.618] [INFO] Successfully set all git hooks
[23:45:33.613] Done in 12s
[23:45:33.662] Detected Next.js version: 13.5.2
[23:45:33.676] Running "pnpm run build"
[23:45:34.180] 
[23:45:34.180] > [email protected] build /vercel/path0
[23:45:34.180] > cross-env NODE_ENV=production next build
[23:45:34.180] 
[23:45:34.811] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[23:45:34.811] This information is used to shape Next.js' roadmap and prioritize features.
[23:45:34.812] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[23:45:34.812] https://nextjs.org/telemetry
[23:45:34.812] 
[23:45:34.902]    Creating an optimized production build...
[23:45:39.388] 
[23:45:39.388] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`.
[23:45:39.388] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[23:45:39.388] 
[23:45:39.388] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `warmGray` has been renamed to `stone`.
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[23:45:39.389] 
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `trueGray` has been renamed to `neutral`.
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[23:45:39.389] 
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `coolGray` has been renamed to `gray`.
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[23:45:39.389] 
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `blueGray` has been renamed to `slate`.
[23:45:39.389] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[23:45:39.833] 
[23:45:39.834] ╭── 🌼�[35m daisyUI 3.9.2 �[0mhttps://daisyui.com
[23:45:40.014] │
[23:45:40.014] ├── �[2m2�[0m themes are enabled. How to add more themes:
[23:45:40.014] │   https://daisyui.com/docs/themes
[23:45:40.014] │
[23:45:40.014] ╰── �[32m⭐️ Star daisyUI project on GitHub�[0m: https://github.com/saadeghi/daisyui
[23:45:40.014] 
[23:46:30.069] 
[23:46:30.070] ╭── 🌼�[35m daisyUI 3.9.2 �[0mhttps://daisyui.com
[23:46:30.234] │
[23:46:30.234] ├── �[2m2�[0m themes are enabled. How to add more themes:
[23:46:30.234] │   https://daisyui.com/docs/themes
[23:46:30.234] │
[23:46:30.234] ╰── �[32m⭐️ Star daisyUI project on GitHub�[0m: https://github.com/saadeghi/daisyui
[23:46:30.234] 
[23:46:54.456]  ⚠ Compiled with warnings
[23:46:54.456] 
[23:46:54.457] ./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
[23:46:54.457] Module not found: Can't resolve 'encoding' in '/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
[23:46:54.457] 
[23:46:54.457] Import trace for requested module:
[23:46:54.457] ./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
[23:46:54.457] ./node_modules/.pnpm/[email protected]/node_modules/openai/_shims/node-runtime.mjs
[23:46:54.457] ./node_modules/.pnpm/[email protected]/node_modules/openai/_shims/auto/runtime-node.mjs
[23:46:54.457] ./node_modules/.pnpm/[email protected]/node_modules/openai/_shims/index.mjs
[23:46:54.457] ./node_modules/.pnpm/[email protected]/node_modules/openai/uploads.mjs
[23:46:54.458] ./node_modules/.pnpm/[email protected]/node_modules/openai/index.mjs
[23:46:54.458] ./src/app/api/ai/summary/route.ts
[23:46:54.458] 
[23:46:54.458]    Linting and checking validity of types...
[23:46:56.744] 
[23:46:56.745]  ⚠ The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
[23:46:56.790] Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration .
[23:47:06.520] 
[23:47:06.521] ./src/app/(page-detail)/[slug]/pageExtra.tsx
[23:47:06.521] 94:6  Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.521] 
[23:47:06.521] ./src/app/404.tsx
[23:47:06.521] 3:16  Warning: Component definition is missing display name  react/display-name
[23:47:06.521] 
[23:47:06.521] ./src/app/friends/page.tsx
[23:47:06.521] 384:6  Warning: React Hook useCallback has a missing dependency: 'setValue'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.521] 395:5  Warning: React Hook useCallback has a missing dependency: 'dismissTop'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.521] 
[23:47:06.522] ./src/app/notes/[id]/pageExtra.tsx
[23:47:06.522] 126:6  Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.522] 
[23:47:06.522] ./src/app/notes/redirect.tsx
[23:47:06.522] 18:6  Warning: React Hook useLayoutEffect has a missing dependency: 'router'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.522] 
[23:47:06.522] ./src/app/posts/(post-detail)/[category]/[slug]/pageExtra.tsx
[23:47:06.522] 73:6  Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.522] 
[23:47:06.522] ./src/app/projects/[id]/page.tsx
[23:47:06.523] 27:6  Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.523] 
[23:47:06.523] ./src/app/thinking/page.tsx
[23:47:06.523] 184:6  Warning: React Hook useEffect has missing dependencies: 'animate' and 'getPrevData'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.523] 
[23:47:06.523] ./src/app/timeline/page.tsx
[23:47:06.523] 105:6  Warning: React Hook useEffect has a missing dependency: 'refetch'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.523] 
[23:47:06.523] ./src/atoms/viewport.ts
[23:47:06.523] 43:55  Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[23:47:06.524] 
[23:47:06.524] ./src/components/layout/header/hooks.ts
[23:47:06.524] 17:6  Warning: React Hook useEffect has a missing dependency: 'setter'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.524] 
[23:47:06.524] ./src/components/ui/float-popover/FloatPopover.tsx
[23:47:06.524] 56:5  Warning: 'animate' is assigned a value but never used. Allowed unused vars must match /^_/u.  unused-imports/no-unused-vars
[23:47:06.524] 144:6  Warning: React Hook useEffect has missing dependencies: 'refs.floating' and 'type'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.524] 
[23:47:06.524] ./src/components/ui/form/Form.tsx
[23:47:06.524] 107:5  Warning: React Hook useCallback has a missing dependency: 'fieldsAtom'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.525] 
[23:47:06.525] ./src/components/ui/form/FormInput.tsx
[23:47:06.525] 52:6  Warning: React Hook useEffect has missing dependencies: 'addField' and 'removeField'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.525] 
[23:47:06.525] ./src/components/ui/gallery/Gallery.tsx
[23:47:06.525] 188:6  Warning: Component definition is missing display name  react/display-name
[23:47:06.525] 
[23:47:06.525] ./src/components/ui/image/ZoomedImage.tsx
[23:47:06.525] 256:7  Warning: 'placeholder' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[23:47:06.525] 
[23:47:06.525] ./src/components/ui/link-card/LinkCard.tsx
[23:47:06.526] 59:5  Warning: React Hook useCallback has a missing dependency: 'peek'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.526] 
[23:47:06.526] ./src/components/ui/markdown/index.demo.tsx
[23:47:06.526] 19:29  Warning: 'output' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[23:47:06.526] 19:37  Warning: 'state' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[23:47:06.526] 
[23:47:06.526] ./src/components/ui/masonry/Masonry.tsx
[23:47:06.530] 43:6  Warning: React Hook useEffect has a missing dependency: 'Component'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.531] 
[23:47:06.531] ./src/components/ui/number-transition/CountUp.tsx
[23:47:06.531] 22:6  Warning: React Hook useEffect has a missing dependency: 'initialNumberRef'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.531] 
[23:47:06.531] ./src/components/ui/text/FlexText.tsx
[23:47:06.532] 31:6  Warning: React Hook useEffect has a missing dependency: 'props.text.length'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.532] 
[23:47:06.532] ./src/components/ui/transition/IconTransiton.tsx
[23:47:06.532] 31:6  Warning: React Hook useEffect has missing dependencies: 'controls' and 'map'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.532] 
[23:47:06.533] ./src/components/ui/transition/factor.tsx
[23:47:06.533] 54:11  Warning: React Hook useMemo has a missing dependency: 'lcpOptimization'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.533] 
[23:47:06.533] ./src/components/widgets/comment/CommentBox/AuthedInput.tsx
[23:47:06.533] 26:6  Warning: React Hook useEffect has a missing dependency: 'setter'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.534] 
[23:47:06.534] ./src/components/widgets/comment/CommentBox/UniversalTextArea.tsx
[23:47:06.534] 46:6  Warning: React Hook useCallback has a missing dependency: 'setter'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.534] 
[23:47:06.534] ./src/components/widgets/note/NoteMainContainer.tsx
[23:47:06.535] 28:6  Warning: React Hook useEffect has a missing dependency: 'setHeight'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.535] 
[23:47:06.535] ./src/components/widgets/post/PostPinIcon.tsx
[23:47:06.535] 9:28  Warning: Component definition is missing display name  react/display-name
[23:47:06.535] 
[23:47:06.536] ./src/components/widgets/post/fab/PostTagsFAB.tsx
[23:47:06.536] 47:6  Warning: React Hook useCallback has a missing dependency: 'present'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.536] 
[23:47:06.536] ./src/components/widgets/post/fab/PostsSortingFab.tsx
[23:47:06.537] 107:16  Warning: React Hook useCallback has missing dependencies: 'handleChange' and 'setSortBy'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.537] 125:16  Warning: React Hook useCallback has missing dependencies: 'handleChange' and 'setOrderBy'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.537] 
[23:47:06.537] ./src/components/widgets/shared/SearchFAB.tsx
[23:47:06.537] 170:10  Warning: React Hook useCallback has a missing dependency: 'setCurrentSelect'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.538] 214:5  Warning: React Hook useCallback has a missing dependency: 'setCurrentSelect'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.538] 
[23:47:06.538] ./src/components/widgets/subscribe/SubscribeModal.tsx
[23:47:06.538] 84:6  Warning: React Hook useEffect has missing dependencies: 'defaultTypes', 'dispatch', and 'stateRef'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.538] 
[23:47:06.538] ./src/components/widgets/timeline/TimelineProgress.tsx
[23:47:06.538] 45:6  Warning: React Hook useEffect has a missing dependency: 'updatePercent'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.538] 
[23:47:06.539] ./src/components/widgets/toc/TocAside.tsx
[23:47:06.539] 55:8  Warning: React Hook useEffect has a missing dependency: 'forceUpdate'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.539] 71:8  Warning: React Hook useMemo has an unnecessary dependency: 'updated'. Either exclude it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.539] 
[23:47:06.539] ./src/components/widgets/toc/TocFAB.tsx
[23:47:06.539] 42:6  Warning: React Hook useCallback has a missing dependency: 'present'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.539] 
[23:47:06.539] ./src/components/widgets/toc/TocItem.tsx
[23:47:06.539] 45:6  Warning: React Hook useEffect has a missing dependency: 'active'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.539] 
[23:47:06.540] ./src/components/widgets/toc/TocTree.tsx
[23:47:06.540] 50:6  Warning: React Hook useEffect has a missing dependency: 'setActiveId'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.540] 122:5  Warning: React Hook useCallback has missing dependencies: 'onItemClick', 'scrollInNextTick', 'setActiveId', and 'tocRef'. Either include them or remove the dependency array. If 'onItemClick' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[23:47:06.540] 
[23:47:06.540] ./src/hooks/common/use-single-double-click.ts
[23:47:06.540] 22:6  Warning: React Hook useEffect has a missing dependency: 'delay'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.540] 
[23:47:06.540] ./src/lib/define-metadata.ts
[23:47:06.540] 25:53  Warning: 'err' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[23:47:06.540] 
[23:47:06.541] ./src/providers/article/MarkdownImageRecordProvider.tsx
[23:47:06.541] 18:6  Warning: React Hook useEffect has a missing dependency: 'atomRef'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.541] 
[23:47:06.541] ./src/providers/note/CurrentNoteIdProvider.tsx
[23:47:06.541] 24:6  Warning: React Hook useEffect has a missing dependency: 'setNoteId'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.541] 
[23:47:06.541] ./src/providers/root/aggregation-data-provider.tsx
[23:47:06.541] 72:9  Warning: React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies.  react-hooks/exhaustive-deps
[23:47:06.542] 72:9  Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[23:47:06.542] 87:9  Warning: React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies.  react-hooks/exhaustive-deps
[23:47:06.542] 87:9  Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[23:47:06.542] 
[23:47:06.542] ./src/providers/root/modal-stack-provider.tsx
[23:47:06.542] 156:6  Warning: React Hook useEffect has a missing dependency: 'animateController'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.542] 
[23:47:06.542] ./src/providers/root/socket-provider.tsx
[23:47:06.542] 17:6  Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.543] 
[23:47:06.543] ./src/providers/shared/LayoutRightSideProvider.tsx
[23:47:06.543] 19:6  Warning: React Hook useLayoutEffect has a missing dependency: 'setElement'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.543] 
[23:47:06.543] ./src/providers/shared/WrappedElementProvider.tsx
[23:47:06.543] 126:6  Warning: React Hook useEffect has missing dependencies: 'getDir' and 'setter'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[23:47:06.543] 
[23:47:06.543] info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[23:47:12.173]    Collecting page data...
[23:47:13.329]  ⚠ Using edge runtime on a page currently disables static generation for that page
[23:47:34.255]    Generating static pages (0/20)...
[23:47:34.602] 
   Generating static pages (5/20)
[23:47:34.602] 
[23:47:34.955] 
   Generating static pages (10/20)
[23:47:34.955] 
[23:47:35.052] 
   Generating static pages (15/20)
[23:47:35.052] 
[23:47:35.364] 
[23:47:35.365] Error occurred prerendering page "/feed". Read more: https://nextjs.org/docs/messages/prerender-error
[23:47:35.365] TypeError: Cannot destructure property 'avatar' of 'l.user' as it is null.
[23:47:35.365]     at M (/vercel/path0/.next/server/app/feed/route.js:1:8959)
[23:47:35.365]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[23:47:35.366]     at async /vercel/path0/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:1:45643
[23:47:35.366] 
 ✓ Generating static pages (20/20)
[23:47:35.367] 
[23:47:35.368] > Export encountered errors on following paths:
[23:47:35.368] 	/feed/route: /feed
[23:47:35.443]  ELIFECYCLE  Command failed with exit code 1.
[23:47:35.461] Error: Command "pnpm run build" exited with 1

后端使用的 docker 部署
访问 NEXT_PUBLIC_API_URL `后返回的结果是:

{
    "name": "@mx-space/core",
    "author": "Innei <https://innei.ren>",
    "version": "4.3.11",
    "homepage": "https://github.com/mx-space/core#readme",
    "issues": "https://github.com/mx-space/core/issues"
}

访问 NEXT_PUBLIC_GATEWAY_URL `后返回的结果是:

{
    "ok": 0,
    "message": "Cannot GET /"
}

Reproduction

使用最新版的 shiro,并 fork 到自己的 GitHub,然后用 vercel 直接部署

System Info

vercel

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Login modal display Error

Describe the bug

When selecting Sign Up, the avatar obscures the title

image

Reproduction

none

System Info

System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M1
    Memory: 42.86 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/Library/Caches/fnm_multishells/70129_1695284582845/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.6.7 - ~/Library/Caches/fnm_multishells/70129_1695284582845/bin/npm
    pnpm: 8.6.6 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 17.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

明亮模式下,表格中的文字颜色有问题

Describe the bug

问题如题(暗黑模式正常),症状如图:
image

暗黑模式下:
image

该段 Markdown:

| 表达内容 | 示例 |
| - | - |
| 表示文件 | `options.txt` |
| 表示变量 | <版本名> |
| 在文件或文件夹末尾加上 `!` 表示 Minecraft 本体,分发这些文件违反了 [Minecraft Eula](https://account.mojang.com/documents/minecraft_eula) | libraries ! |
| 在文件或文件夹末尾加上 `*` 表示可删除,`**` 表示建议删除,`***` 表示必须删除 | libraries * |

Reproduction

在文章中插入表格

System Info

后端(注:非 Docker 环境,我的后端按照文档使用 Docker 部署):

  System:
    OS: Linux 5.4 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
    Memory: 4.92 GB / 15.62 GB
    Container: Yes
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
    pnpm: 8.6.11 - ~/.nvm/versions/node/v16.15.1/bin/pnpm

前端使用 Vercel(Node.js:18.x)。

访问时的浏览器所处环境:

  System:
    OS: Windows 10 10.0.22621
    CPU: (4) x64 Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
    Memory: 2.95 GB / 7.89 GB
  Binaries:
    Node: 18.17.0 - F:\Develop\Nodejs\node.EXE
    Yarn: 1.22.19 - F:\Develop\Nodejs\yarn.CMD
    npm: 9.8.1 - F:\Develop\Nodejs\npm.CMD
    pnpm: 8.6.11 - F:\Develop\Nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.22621.2070.0), Chromium (115.0.1901.183)

用手机浏览器试了下,症状一样
手机浏览器:Kiwi Browser 116.0.5845.52

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

标题栏站点、WebSocket图标无法正常显示

Describe the bug

复现方式:
最新的版本下,移除.next/文件夹,.node_modules/文件夹,使用pnpm ipnpm build重新构建,以无痕模式打开网页地址,即可复现
Cleanshot-2023-10-08-at-23 49 06
控制台报错:
Failed to load resource: the server responded with a status of 500 ()
upstream image response failed for /apps/code.png TypeError: fetch failed(这个是周四的时候报的)

通过移除pnpm-lock.yaml,在package.json中设定next、@next/bundle-analyzer版本为13.5.2(最新为13.5.4)可解决此问题,然而,原本位于应用左侧的站点图标依旧不可用:
Cleanshot-2023-10-08-at-23 31 03
直接访问站点图标路径,报错Internal Server Error
该站点图标路径是托管在路过图床的:http://localhost:2323/_next/image?url=https%3A%2F%2Fs1.ax1x.com%2F2023%2F09%2F02%2FpPBhT0O.png&w=96&q=75
使用端口直接访问前端地址(不走反向代理)无法解决新出现的这个问题。

彻底的解决方案:
回退到b4966e3版本,以上所有问题均得到解决。

附:经测试,似乎站点图像不显示的原因很玄学,如果真的移除.next/文件夹后git reset然后重装,虽然应用图标好了但是站点图标还是会寄,但我参考了之前的思路,获取了一份本地的.next/cache/images/文件夹下对应的图标文件并移动至了服务器,于是问题解决了...(wait what?

Reproduction

参见问题描述

System Info

Mac:
  System:
    OS: macOS 13.2
    CPU: (8) arm64 Apple M1 Pro
    Memory: 106.53 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node
    Yarn: 1.22.15 - /usr/local/bin/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm
    pnpm: 8.8.0 - ~/.nvm/versions/node/v18.17.1/bin/pnpm
  Browsers:
    Chrome: 116.0.5845.96
    Chrome Canary: 118.0.5990.0
    Safari: 16.3

ubuntu22.04:
  System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 (Jammy Jellyfish)
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
    Memory: 5.04 GB / 7.25 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    npm: 10.1.0 - ~/.nvm/versions/node/v18.18.0/bin/npm
    pnpm: 8.8.0 - ~/.nvm/versions/node/v18.18.0/bin/pnpm

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

点击导航栏进入折腾页面,跳转至 error page

Describe the bug

当我第一次进入网站,然后点击导航栏,进入折腾页面,就出现了这个,并且当我点击 try again 依然无效,
并且在我之前使用 next.js 13 开发个人网站也有这种情况,本地不会出现,部署到线上就会出现,
辛苦 inner 大佬看下,感谢🙏

image

Reproduction

在线网站链接:https://innei.in/categories/Z-Turn

System Info

本人电脑 M2 max,chrome 游览器

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

关于脚注(footnotes)的id出现问题的那回事

Describe the bug

脚注形成的[^1],其id是fnref:1,尾部footnotes返回正文所用的id是footnote-ref-1导致定位出错(

Reproduction

None

System Info

Problems with pages rendering

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Cloudflare pages 兼容性请求

Clear and concise description of the problem

我尝试在 Cloudflare Pages 上构建 Shiro。但失败了

<html>
<body>
<!--StartFragment-->
19:08:02.785 | ⚡️ Completed `npx vercel build`.
-- | --
19:08:07.028 |  
19:08:07.028 | ⚡️ ERROR: Failed to produce a Cloudflare Pages build from the project.
19:08:07.028 | ⚡️
19:08:07.028 | ⚡️ 	The following routes were not configured to run with the Edge Runtime:
19:08:07.028 | ⚡️ 	  - /[slug]
19:08:07.029 | ⚡️ 	  - /api/ai/summary
19:08:07.029 | ⚡️ 	  - /api/crossbell/[...all]
19:08:07.029 | ⚡️ 	  - /api/webhook
19:08:07.029 | ⚡️ 	  - /categories/[slug]
19:08:07.029 | ⚡️ 	  - /common/deleted
19:08:07.029 | ⚡️ 	  - /feed
19:08:07.029 | ⚡️ 	  - /friends
19:08:07.029 | ⚡️ 	  - /index
19:08:07.030 | ⚡️ 	  - /login
19:08:07.030 | ⚡️ 	  - /notes/[id]
19:08:07.030 | ⚡️ 	  - /notes/topics/[slug]
19:08:07.030 | ⚡️ 	  - /notes/topics
19:08:07.030 | ⚡️ 	  - /notes
19:08:07.030 | ⚡️ 	  - /posts/[category]/[slug]
19:08:07.031 | ⚡️ 	  - /posts
19:08:07.031 | ⚡️ 	  - /preview
19:08:07.031 | ⚡️ 	  - /projects/[id]
19:08:07.031 | ⚡️ 	  - /projects
19:08:07.031 | ⚡️ 	  - /says
19:08:07.031 | ⚡️ 	  - /sign-in/[[...sign-in]]
19:08:07.031 | ⚡️ 	  - /sign-up/[[...sign-up]]
19:08:07.032 | ⚡️ 	  - /sitemap
19:08:07.032 | ⚡️ 	  - /thinking
19:08:07.032 | ⚡️ 	  - /timeline
19:08:07.032 | ⚡️
19:08:07.032 | ⚡️ 	Please make sure that all your non-static routes export the following edge runtime route segment config:
19:08:07.032 | ⚡️ 	  export const runtime = 'edge';
19:08:07.032 | ⚡️
19:08:07.032 | ⚡️ 	You can read more about the Edge Runtime on the Next.js documentation:
19:08:07.033 | ⚡️ 	  https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes

我尝试修改了对应的route.ts[x]文件和page.tsx文件后,构建页面报错。

Failed: build exceeded memory limit and was terminated

我不是前端程序员,也不是NodeJS技术栈的开发者,所以开启Issue请求帮助。

Suggested solution

I dont have any idea...

Alternative

No response

Additional context

No response

Validations

文章内单独链接无法显示

cor使用docker部署,最新版本
前端主题是shiro,,最新版本,使用的vercel部署

问题:

markdown文章中的单独参考链接,预览的时候正常,但是发布后部分不显示,我测试的2个链接只显示GitHub网站的链接。


复现:

测试内容
image

预览界面
image

网站界面只显示GitHub的链接
image

最新版部署到vercel报错

Describe the bug

好像是tailwindcss的问题
[16:22:33.968] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[16:22:34.123] Cloning github.com/coderz-w/Shiro (Branch: main, Commit: 2763bc6)
[16:22:34.604] Previous build cache not available
[16:22:34.629] Cloning completed: 505.588ms
[16:22:35.139] Running "vercel build"
[16:22:36.035] Vercel CLI 32.5.4
[16:22:37.033] Warning: Detected "engines": { "node": ">=18" } in your package.json that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[16:22:37.066] Detected pnpm-lock.yaml version 6 generated by pnpm 8
[16:22:37.089] Installing dependencies...
[16:22:37.855] Lockfile is up to date, resolution step is skipped
[16:22:38.001] Progress: resolved 1, reused 0, downloaded 0, added 0
[16:22:38.235] Packages: +895
[16:22:38.236] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[16:22:39.003] Progress: resolved 895, reused 0, downloaded 29, added 13
[16:22:40.004] Progress: resolved 895, reused 0, downloaded 87, added 73
[16:22:41.005] Progress: resolved 895, reused 0, downloaded 135, added 124
[16:22:42.006] Progress: resolved 895, reused 0, downloaded 136, added 125
[16:22:43.007] Progress: resolved 895, reused 0, downloaded 155, added 139
[16:22:44.007] Progress: resolved 895, reused 0, downloaded 206, added 192
[16:22:45.007] Progress: resolved 895, reused 0, downloaded 239, added 223
[16:22:46.009] Progress: resolved 895, reused 0, downloaded 333, added 320
[16:22:47.011] Progress: resolved 895, reused 0, downloaded 359, added 343
[16:22:48.013] Progress: resolved 895, reused 0, downloaded 400, added 385
[16:22:49.013] Progress: resolved 895, reused 0, downloaded 500, added 489
[16:22:50.015] Progress: resolved 895, reused 0, downloaded 620, added 609
[16:22:51.015] Progress: resolved 895, reused 0, downloaded 777, added 768
[16:22:52.016] Progress: resolved 895, reused 0, downloaded 850, added 838
[16:22:53.016] Progress: resolved 895, reused 0, downloaded 857, added 850
[16:22:54.022] Progress: resolved 895, reused 0, downloaded 872, added 856
[16:22:54.217] Progress: resolved 895, reused 0, downloaded 895, added 895, done
[16:22:54.596] .../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
[16:22:54.623] .../node_modules/bufferutil install$ node-gyp-build
[16:22:54.624] .../node_modules/utf-8-validate install$ node-gyp-build
[16:22:54.678] .../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[16:22:54.695] .../node_modules/simple-git-hooks postinstall: Done
[16:22:54.825] .../node_modules/bufferutil install: Done
[16:22:54.844] .../node_modules/utf-8-validate install: Done
[16:22:54.853] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[16:22:54.931] .../[email protected]/node_modules/esbuild postinstall: Done
[16:22:55.435]
[16:22:55.435] dependencies:
[16:22:55.435] + @clerk/nextjs 4.27.1
[16:22:55.436] + @floating-ui/react-dom 2.0.4
[16:22:55.436] + @mx-space/api-client 1.6.2
[16:22:55.436] + @radix-ui/react-dialog 1.0.5
[16:22:55.436] + @radix-ui/react-select 2.0.0
[16:22:55.436] + @tanstack/query-async-storage-persister 5.8.3
[16:22:55.436] + @tanstack/react-query 5.8.3
[16:22:55.436] + @tanstack/react-query-devtools 5.8.3
[16:22:55.436] + @tanstack/react-query-persist-client 5.8.3
[16:22:55.436] + @vercel/analytics 1.1.1
[16:22:55.436] + @vercel/postgres 0.5.1
[16:22:55.436] + axios 1.6.1
[16:22:55.436] + bypass-vue-devtools 0.0.6
[16:22:55.436] + clsx 2.0.0
[16:22:55.437] + daisyui 4.0.4
[16:22:55.437] + dayjs 1.11.10
[16:22:55.437] + emoji-mart 5.5.2
[16:22:55.437] + emoji-picker-react 4.5.15
[16:22:55.437] + foxact 0.2.26
[16:22:55.437] + framer-motion 10.16.4
[16:22:55.437] + idb-keyval 6.2.1
[16:22:55.437] + immer 10.0.3
[16:22:55.437] + jojoo 0.1.1
[16:22:55.437] + jotai 2.5.1
[16:22:55.437] + js-cookie 3.0.5
[16:22:55.437] + markdown-to-jsx <- @innei/markdown-to-jsx 7.2.1-beta.0
[16:22:55.437] + medium-zoom 1.0.8
[16:22:55.437] + mermaid 10.6.1
[16:22:55.437] + next 14.0.2
[16:22:55.438] + next-themes 0.2.1
[16:22:55.441] + openai 4.17.5
[16:22:55.441] + qrcode.react 3.1.0
[16:22:55.441] + react 18.2.0
[16:22:55.441] + react-dom 18.2.0
[16:22:55.441] + react-error-boundary 4.0.11
[16:22:55.441] + react-intersection-observer 9.5.3
[16:22:55.441] + react-toastify 9.1.3
[16:22:55.441] + react-tweet 3.1.1
[16:22:55.441] + react-wrap-balancer 1.1.0
[16:22:55.442] + remove-markdown 0.5.0
[16:22:55.442] + socket.io-client 4.7.2
[16:22:55.442] + tailwind-merge 2.0.0
[16:22:55.442] + uniqolor 1.1.0
[16:22:55.442] + vaul 0.7.9
[16:22:55.442] + xss 1.0.14
[16:22:55.442]
[16:22:55.443] devDependencies:
[16:22:55.443] + @iconify-json/material-symbols 1.1.62
[16:22:55.444] + @iconify-json/mingcute 1.1.11
[16:22:55.444] + @iconify/tailwind 0.1.3
[16:22:55.444] + @innei/eslint-config-react-ts 0.11.1
[16:22:55.444] + @innei/prettier 0.11.1
[16:22:55.444] + @next/bundle-analyzer 14.0.2
[16:22:55.444] + @tailwindcss/typography 0.5.10
[16:22:55.444] + @types/js-cookie 3.0.6
[16:22:55.444] + @types/markdown-escape 1.1.3
[16:22:55.445] + @types/node 20.9.0
[16:22:55.445] + @types/react 18.2.37
[16:22:55.445] + @types/react-dom 18.2.15
[16:22:55.445] + @types/remove-markdown 0.3.4
[16:22:55.445] + autoprefixer 10.4.16
[16:22:55.445] + cross-env 7.0.3
[16:22:55.445] + dotenv 16.3.1
[16:22:55.445] + eslint 8.53.0
[16:22:55.445] + husky 8.0.3
[16:22:55.445] + lint-staged 15.1.0
[16:22:55.445] + postcss 8.4.31
[16:22:55.445] + postcss-import 15.1.0
[16:22:55.445] + postcss-nested 6.0.1
[16:22:55.445] + postcss-preset-env 9.3.0
[16:22:55.445] + postcss-prune-var 1.1.1
[16:22:55.446] + prettier 3.1.0
[16:22:55.446] + rimraf 5.0.5
[16:22:55.446] + simple-git-hooks 2.9.0
[16:22:55.446] + tailwind-scrollbar 3.0.5
[16:22:55.446] + tailwind-variants 0.1.18
[16:22:55.446] + tailwindcss 3.3.5
[16:22:55.446] + typescript 5.2.2
[16:22:55.446] + typewind 0.1.4
[16:22:55.446] + zx 7.2.3
[16:22:55.446]
[16:22:55.473]
[16:22:55.474] > [email protected] prepare /vercel/path0
[16:22:55.474] > pnpm exec simple-git-hooks && test -f .env || cp .env.template .env
[16:22:55.474]
[16:22:56.168] [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[16:22:56.169] [INFO] Successfully set all git hooks
[16:22:56.187] Done in 19s
[16:22:56.226] Detected Next.js version: 14.0.2
[16:22:56.321] Running "pnpm run build"
[16:22:56.912]
[16:22:56.912] > [email protected] build /vercel/path0
[16:22:56.912] > cross-env NODE_ENV=production next build
[16:22:56.912]
[16:22:57.848] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[16:22:57.849] This information is used to shape Next.js' roadmap and prioritize features.
[16:22:57.849] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[16:22:57.849] https://nextjs.org/telemetry
[16:22:57.850]
[16:22:57.957] ▲ Next.js 14.0.2
[16:22:57.957] - Environments: .env
[16:22:57.957] - Experiments (use at your own risk):
[16:22:57.957] · useDeploymentId
[16:22:57.957] · useDeploymentIdServerActions
[16:22:57.957]
[16:22:57.958] Creating an optimized production build ...
[16:23:04.682]
[16:23:04.683] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v2.2, lightBlue has been renamed to sky.
[16:23:04.683] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:04.684]
[16:23:04.684] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, warmGray has been renamed to stone.
[16:23:04.684] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:04.684]
[16:23:04.685] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, trueGray has been renamed to neutral.
[16:23:04.685] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:04.685]
[16:23:04.685] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, coolGray has been renamed to gray.
[16:23:04.685] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:04.685]
[16:23:04.686] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, blueGray has been renamed to slate.
[16:23:04.686] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:50.787]
[16:23:50.787] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v2.2, lightBlue has been renamed to sky.
[16:23:50.788] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:50.788]
[16:23:50.788] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, warmGray has been renamed to stone.
[16:23:50.788] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:50.788]
[16:23:50.788] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, trueGray has been renamed to neutral.
[16:23:50.789] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:50.789]
[16:23:50.789] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, coolGray has been renamed to gray.
[16:23:50.789] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:23:50.789]
[16:23:50.790] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, blueGray has been renamed to slate.
[16:23:50.790] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[16:24:21.207] [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!/vercel/path0/src/styles/index.css': No serializer registered for PostCSSSyntaxError
[16:24:21.209] while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> webpack/lib/ModuleBuildError -> PostCSSSyntaxError
[16:24:24.573] Failed to compile.
[16:24:24.573]
[16:24:24.573] ./src/styles/index.css:51:5
[16:24:24.573] Syntax error: /vercel/path0/src/styles/clerk.css The bg-accent-focus class does not exist. If bg-accent-focus is a custom class, make sure it is defined within a @layer directive.
[16:24:24.573]
[16:24:24.573] �[90m 49 | �[39m
[16:24:24.573] �[90m 50 | �[39m &�[33m:�[39mhover �[33m{�[39m
[16:24:24.574] �[1m�[31m>�[39m�[22m�[90m 51 | �[39m �[36m@apply�[39m bg-accent-focus�[33m;�[39m
[16:24:24.574] �[90m | �[39m �[1m�[31m^�[39m�[22m
[16:24:24.574] �[90m 52 | �[39m �[33m}�[39m
[16:24:24.574] �[90m 53 | �[39m�[33m}�[39m
[16:24:24.574]
[16:24:24.574] ./src/styles/index.css
[16:24:24.574] Syntax error: /vercel/path0/src/styles/clerk.css The bg-accent-focus class does not exist. If bg-accent-focus is a custom class, make sure it is defined within a @layer directive. (51:5)
[16:24:24.574]
[16:24:24.574] �[90m 49 | �[39m
[16:24:24.574] �[90m 50 | �[39m &�[33m:�[39mhover �[33m{�[39m
[16:24:24.574] �[1m�[31m>�[39m�[22m�[90m 51 | �[39m �[36m@apply�[39m bg-accent-focus�[33m;�[39m
[16:24:24.575] �[90m | �[39m �[1m�[31m^�[39m�[22m
[16:24:24.575] �[90m 52 | �[39m �[33m}�[39m
[16:24:24.575] �[90m 53 | �[39m�[33m}�[39m
[16:24:24.575]
[16:24:24.575] at tryRunOrWebpackError (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:311563)
[16:24:24.575] at webpack_require_module (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:131195)
[16:24:24.575] at nested_webpack_require_153754 (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:130634)
[16:24:24.575] at /vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:131487
[16:24:24.575] at symbolIterator (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/neo-async/async.js:1:14444)
[16:24:24.575] at done (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/neo-async/async.js:1:14824)
[16:24:24.576] at Hook.eval [as callAsync] (eval at create (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:13:28867), :15:1)
[16:24:24.576] at Hook.CALL_ASYNC_DELEGATE [as callAsync] (/vercel/path0/node_modules/.pnpm/[email protected]@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:13:26021)
[16:24:24.576] at /vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:130354
[16:24:24.576] at symbolIterator (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/neo-async/async.js:1:14402)
[16:24:24.576] -- inner error --
[16:24:24.576] Syntax error: /vercel/path0/src/styles/clerk.css The bg-accent-focus class does not exist. If bg-accent-focus is a custom class, make sure it is defined within a @layer directive. (51:5)
[16:24:24.576]
[16:24:24.576] �[90m 49 | �[39m
[16:24:24.576] �[90m 50 | �[39m &�[33m:�[39mhover �[33m{�[39m
[16:24:24.576] �[1m�[31m>�[39m�[22m�[90m 51 | �[39m �[36m@apply�[39m bg-accent-focus�[33m;�[39m
[16:24:24.576] �[90m | �[39m �[1m�[31m^�[39m�[22m
[16:24:24.576] �[90m 52 | �[39m �[33m}�[39m
[16:24:24.577] �[90m 53 | �[39m�[33m}�[39m
[16:24:24.577]
[16:24:24.577] at Object. (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!/vercel/path0/src/styles/index.css:1:7)
[16:24:24.577] at /vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:915116
[16:24:24.577] at Hook.eval [as call] (eval at create (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:13:28645), :7:1)
[16:24:24.577] at Hook.CALL_DELEGATE [as call] (/vercel/path0/node_modules/.pnpm/[email protected]@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:13:25915)
[16:24:24.577] at /vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:131228
[16:24:24.577] at tryRunOrWebpackError (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:311517)
[16:24:24.577] at webpack_require_module (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:131195)
[16:24:24.577] at nested_webpack_require_153754 (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:130634)
[16:24:24.577] at /vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/webpack/bundle5.js:28:131487
[16:24:24.577] at symbolIterator (/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/compiled/neo-async/async.js:1:14444)
[16:24:24.578]
[16:24:24.578] Generated code for /vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!/vercel/path0/node_modules/.pnpm/next@14.0.2_@babel[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!/vercel/path0/src/styles/index.css
[16:24:24.578]
[16:24:24.578] Import trace for requested module:
[16:24:24.578] ./src/styles/index.css
[16:24:24.578]
[16:24:24.588]
[16:24:24.588] > Build failed because of webpack errors
[16:24:24.607]  ELIFECYCLE  Command failed with exit code 1.
[16:24:24.631] Error: Command "pnpm run build" exited with 1
[16:24:25.856]

Reproduction

使用最新版的 shiro,并 fork 到自己的 GitHub,然后用 vercel 直接部署

System Info

vercel

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

请问如何把这个部署到 cloudflare pages 或者 azure 静态 web 托管?

Describe the bug

文档里我看到只有部署到 vercel 的教程,我试了下部署到 cloudflare pages 和 Azure 都报错。

Azure 使用的是 GitHub actions 去构建和部署的,actions 报的错是:

Using edge runtime on a page currently disables static generation for that page
DOMException [InvalidCharacterError]: Invalid character
at new DOMException (node:internal/per_context/domexception:53:5)
at _node_internal (node:internal/util:520:10)
at atob (node:buffer:1343:13)
at isomorphicAtob (/github/workspace/.next/server/chunks/9834.js:91:3138)
at isPublishableKey (/github/workspace/.next/server/chunks/9834.js:91:4437)
at Object.parsePublishableKey (/github/workspace/.next/server/chunks/9834.js:91:4138)
at redirect (/github/workspace/.next/server/chunks/9834.js:79:22709)
at 38798 (/github/workspace/.next/server/chunks/9834.js:84:311)
at webpack_require (/github/workspace/.next/server/webpack-runtime.js:1:146)
at 60475 (/github/workspace/.next/server/chunks/1447.js:17:8018)
Build error occurred
Error: Failed to collect page data for /_not-found
at /github/workspace/node_modules/next/dist/build/utils.js:1178:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
}

由于我对 next.js和前端不太了解,所以想请问下作者,这个要如何部署呢?

Reproduction

如上

System Info

azure static web page

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

OpenAI API Proxy Support / Copy link not work / Inline LaTeX need space

Clear and concise description of the problem

如题,现有的 AI 总结似乎并不支持配置代理。这在国内环境显然是不能使用的。

另外,Copyright 组件中的复制失效了:

Cleanshot-2023-11-13-at-11 24 55@2x

(在 innei.in 下同样不可用)

最后是,现有的 Inline LaTeX 要求在美元符号和内容之间有个空格,但这会导致同样的 markdown 在 Github 上无法解析,所以希望大佬能够修一下这个特性。

如下:

$ abc $

Suggested solution

增添 Proxy 配置。

Alternative

No response

Additional context

No response

Validations

TypeError: Cannot read properties of null (reading 'config')

Describe the bug

When I built the project with pnpm i, pnpm build, I got errors below:

TypeError: Cannot read properties of null (reading 'config')
    at Module.tN (/home/ubuntu/Shiro/.next/server/chunks/5542.js:9:20886)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Reproduction

  1. clone code; 2. modify .env.template; 3. pnpm i; 4. pnpm build

System Info

System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
    Memory: 2.25 GB / 7.76 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.5 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 8.12.1 - ~/.nvm/versions/node/v20.10.0/bin/pnpm

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

miss gap between SVG and text when screen size is less than 768

Describe the bug

miss gap between SVG and text when screen size is less than 768

image

Reproduction

https://innei.in/posts/programming/nestjs-with-trpc-and-dependency-injection

System Info

System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 9.55 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.5.1 - ~/Library/Caches/fnm_multishells/1544_1695454330094/bin/node
    Yarn: 1.22.19 - ~/Library/pnpm/yarn
    npm: 9.8.0 - ~/Library/Caches/fnm_multishells/1544_1695454330094/bin/npm
    pnpm: 8.7.6 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 17.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

LaTeX 公式块无法渲染

Describe the bug

如题,形如

$$

P\left(U,T\right)=100\left.\left(0.6\min\left(1,\frac{U-0.70}{0.90-0.70}\right)+0.4\min\left(1,\frac{T-4000}{14000-4000}\right)\right)\right.

$$

这种 LaTeX 语法块无法正常渲染

Reproduction

见描述

System Info

No need.

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Sign in Dialog 无法交互

Describe the bug

页面弹出 dialog 时,body 样式会加上 pointer-events: none;,此时其他 dialog 继承这属性导致无法进行交互。
如下图所示,点击 引用评论 后再点击 登陆后才可留言 ,此时登录弹窗无法交互。
image

Reproduction

  1. 选中文字 2.点击引用评论 3. 点击登陆后才可留言

System Info

Chrome: 120.0.6099.129

Used Package Manager

n/a

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

使用vercel搭建时出现报错

Describe the bug

使用vercel按照教程正常部署时出错 显示
Build Failed
Command "pnpm run build" exited with 1
以下是日志

[18:34:50] Running build in Washington, D.C., USA (East) – iad1 (Hive)
[18:34:50] Cloning github.com/beiyaohhhc/Shiro (Branch: main, Commit: 0ef398f)
[18:34:50] Skipping build cache, deployment was triggered without cache.
[18:34:51] Cloning completed: 613.707ms
[18:34:51] Running "vercel build"
[18:34:51] Vercel CLI 32.3.1
[18:34:52] Warning: Detected "engines": { "node": ">=18" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[18:34:52] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8
[18:34:52] Installing dependencies...
[18:34:53] Lockfile is up to date, resolution step is skipped
[18:34:53] Progress: resolved 1, reused 0, downloaded 0, added 0
[18:34:53] Packages: +852
[18:34:53] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[18:34:54] Progress: resolved 852, reused 0, downloaded 45, added 33
[18:34:55] Progress: resolved 852, reused 0, downloaded 133, added 123
[18:34:56] Progress: resolved 852, reused 0, downloaded 164, added 150
[18:34:57] Progress: resolved 852, reused 0, downloaded 190, added 176
[18:34:58] Progress: resolved 852, reused 0, downloaded 283, added 274
[18:34:59] Progress: resolved 852, reused 0, downloaded 401, added 395
[18:35:00] Progress: resolved 852, reused 0, downloaded 496, added 482
[18:35:01] Progress: resolved 852, reused 0, downloaded 678, added 677
[18:35:02] Progress: resolved 852, reused 0, downloaded 852, added 852, done
[18:35:03] .../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
[18:35:03] .../node_modules/bufferutil install$ node-gyp-build
[18:35:03] .../node_modules/utf-8-validate install$ node-gyp-build
[18:35:03] .../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[18:35:03] .../node_modules/simple-git-hooks postinstall: Done
[18:35:03] .../node_modules/utf-8-validate install: Done
[18:35:03] .../node_modules/bufferutil install: Done
[18:35:03] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[18:35:03] .../[email protected]/node_modules/esbuild postinstall: Done
[18:35:03] 
[18:35:03] dependencies:
[18:35:03] + @clerk/nextjs 4.24.1
[18:35:03] + @floating-ui/react-dom 2.0.2
[18:35:03] + @mx-space/api-client 1.5.1
[18:35:03] + @radix-ui/react-dialog 1.0.4
[18:35:03] + @radix-ui/react-select 1.2.2
[18:35:03] + @tanstack/react-query 4.35.3
[18:35:03] + @tanstack/react-query-devtools 4.35.3
[18:35:03] + @tanstack/react-query-persist-client 4.35.5
[18:35:03] + @upstash/redis 1.22.0
[18:35:03] + @vercel/analytics 1.0.2
[18:35:03] + @vercel/postgres 0.5.0
[18:35:03] + axios 1.5.0
[18:35:03] + clsx 2.0.0
[18:35:03] + daisyui 3.7.7
[18:35:03] + dayjs 1.11.10
[18:35:03] + emoji-mart 5.5.2
[18:35:03] + emoji-picker-react 4.5.2
[18:35:03] + foxact 0.2.20
[18:35:03] + framer-motion 10.16.4
[18:35:03] + idb-keyval 6.2.1
[18:35:03] + immer 10.0.2
[18:35:03] + jojoo 0.0.8
[18:35:03] + jotai 2.4.2
[18:35:03] + js-cookie 3.0.5
[18:35:03] + markdown-to-jsx <- @innei/markdown-to-jsx 7.2.1-beta.0
[18:35:03] + medium-zoom 1.0.8
[18:35:03] + mermaid 10.4.0
[18:35:03] + next 13.5.2
[18:35:03] + next-themes 0.2.1
[18:35:03] + openai 4.10.0
[18:35:03] + qrcode.react 3.1.0
[18:35:03] + react 18.2.0
[18:35:03] + react-dom 18.2.0
[18:35:03] + react-error-boundary 4.0.11
[18:35:03] + react-intersection-observer 9.5.2
[18:35:03] + react-toastify 9.1.3
[18:35:03] + react-tweet 3.1.1
[18:35:03] + react-wrap-balancer 1.1.0
[18:35:03] + remove-markdown 0.5.0
[18:35:03] + socket.io-client 4.7.2
[18:35:03] + tailwind-merge 1.14.0
[18:35:03] + uniqolor 1.1.0
[18:35:03] + xss 1.0.14
[18:35:03] 
[18:35:03] devDependencies:
[18:35:03] + @iconify-json/material-symbols 1.1.59
[18:35:03] + @iconify-json/mingcute 1.1.10
[18:35:03] + @iconify/tailwind 0.1.3
[18:35:03] + @innei/eslint-config-react-ts 0.11.1
[18:35:03] + @innei/prettier 0.11.1
[18:35:03] + @next/bundle-analyzer 13.5.2
[18:35:03] + @tailwindcss/typography 0.5.10
[18:35:03] + @types/js-cookie 3.0.4
[18:35:03] + @types/markdown-escape 1.1.0
[18:35:03] + @types/node 20.6.3
[18:35:03] + @types/react 18.2.22
[18:35:03] + @types/react-dom 18.2.7
[18:35:03] + @types/remove-markdown 0.3.1
[18:35:03] + autoprefixer 10.4.16
[18:35:03] + cross-env 7.0.3
[18:35:03] + dotenv 16.3.1
[18:35:03] + eslint 8.50.0
[18:35:03] + husky 8.0.3
[18:35:03] + lint-staged 14.0.1
[18:35:03] + postcss 8.4.30
[18:35:03] + postcss-import 15.1.0
[18:35:03] + postcss-nested 6.0.1
[18:35:03] + postcss-preset-env 9.1.4
[18:35:03] + postcss-prune-var 1.1.1
[18:35:03] + prettier 3.0.3
[18:35:03] + rimraf 5.0.1
[18:35:03] + simple-git-hooks 2.9.0
[18:35:03] + tailwind-scrollbar 3.0.5
[18:35:03] + tailwind-variants 0.1.14
[18:35:03] + tailwindcss 3.3.3
[18:35:03] + typescript 5.2.2
[18:35:03] + typewind 0.1.3
[18:35:03] + zx 7.2.3
[18:35:03] 
[18:35:03] 
[18:35:03] > [email protected] prepare /vercel/path0
[18:35:03] > pnpm exec simple-git-hooks && test -f .env || cp .env.template .env
[18:35:03] 
[18:35:04] [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[18:35:04] [INFO] Successfully set all git hooks
[18:35:04] Done in 11.3s
[18:35:04] Running "pnpm run build"
[18:35:04] 
[18:35:04] > [email protected] build /vercel/path0
[18:35:04] > cross-env NODE_ENV=production next build
[18:35:04] 
[18:35:05] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[18:35:05] This information is used to shape Next.js' roadmap and prioritize features.
[18:35:05] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[18:35:05] https://nextjs.org/telemetry
[18:35:05] 
[18:35:05]    Creating an optimized production build...
[18:35:10] 
[18:35:10] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`.
[18:35:10] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[18:35:10] 
[18:35:10] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `warmGray` has been renamed to `stone`.
[18:35:10] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[18:35:10] 
[18:35:10] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `trueGray` has been renamed to `neutral`.
[18:35:10] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[18:35:10] 
[18:35:10] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `coolGray` has been renamed to `gray`.
[18:35:10] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[18:35:10] 
[18:35:10] �[1m�[33mwarn�[39m�[22m - As of Tailwind CSS v3.0, `blueGray` has been renamed to `slate`.
[18:35:10] �[1m�[33mwarn�[39m�[22m - Update your configuration file to silence this warning.
[18:35:10] 
[18:35:10] �[35m🌼 daisyUI 3.7.7�[0m �[0mhttps://daisyui.com
[18:35:10] ╰╮
[18:35:10]  ╰─ �[32m✔︎�[0m �[2m[ �[0m2�[2m ]�[0m themes are enabled. You can add more themes or make your own theme:
[18:35:10]       https://daisyui.com/docs/themes
[18:35:10] 
[18:35:10] �[32m    ❤︎ Support daisyUI�[0m: https://opencollective.com/daisyui�[0m
[18:35:10] 
[18:35:59] 
[18:35:59] �[35m🌼 daisyUI 3.7.7�[0m �[0mhttps://daisyui.com
[18:36:00] ╰╮
[18:36:00]  ╰─ �[32m✔︎�[0m �[2m[ �[0m2�[2m ]�[0m themes are enabled. You can add more themes or make your own theme:
[18:36:00]       https://daisyui.com/docs/themes
[18:36:00] 
[18:36:00] �[32m    ❤︎ Support daisyUI�[0m: https://opencollective.com/daisyui�[0m
[18:36:00] 
[18:36:24]  ⚠ Compiled with warnings
[18:36:24] 
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
[18:36:24] Module not found: Can't resolve 'encoding' in '/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib'
[18:36:24] 
[18:36:24] Import trace for requested module:
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/openai/_shims/node-runtime.mjs
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/openai/_shims/auto/runtime-node.mjs
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/openai/_shims/index.mjs
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/openai/uploads.mjs
[18:36:24] ./node_modules/.pnpm/[email protected]/node_modules/openai/index.mjs
[18:36:24] ./src/app/api/ai/summary/route.ts
[18:36:24] 
[18:36:24]    Linting and checking validity of types...
[18:36:26] 
[18:36:26]  ⚠ The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
[18:36:26] Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration .
[18:36:36] 
[18:36:36] ./src/app/(page-detail)/[slug]/pageExtra.tsx
[18:36:36] 94:6  Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/404.tsx
[18:36:36] 3:16  Warning: Component definition is missing display name  react/display-name
[18:36:36] 
[18:36:36] ./src/app/friends/page.tsx
[18:36:36] 382:6  Warning: React Hook useCallback has a missing dependency: 'setValue'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 393:5  Warning: React Hook useCallback has a missing dependency: 'dismissTop'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/notes/[id]/pageExtra.tsx
[18:36:36] 126:6  Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/notes/redirect.tsx
[18:36:36] 18:6  Warning: React Hook useLayoutEffect has a missing dependency: 'router'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/posts/(post-detail)/[category]/[slug]/pageExtra.tsx
[18:36:36] 73:6  Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/projects/[id]/page.tsx
[18:36:36] 27:6  Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/thinking/page.tsx
[18:36:36] 184:6  Warning: React Hook useEffect has missing dependencies: 'animate' and 'getPrevData'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/app/timeline/page.tsx
[18:36:36] 105:6  Warning: React Hook useEffect has a missing dependency: 'refetch'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/atoms/viewport.ts
[18:36:36] 43:55  Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/layout/header/hooks.ts
[18:36:36] 17:6  Warning: React Hook useEffect has a missing dependency: 'setter'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/float-popover/FloatPopover.tsx
[18:36:36] 56:5  Warning: 'animate' is assigned a value but never used. Allowed unused vars must match /^_/u.  unused-imports/no-unused-vars
[18:36:36] 144:6  Warning: React Hook useEffect has missing dependencies: 'refs.floating' and 'type'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/form/Form.tsx
[18:36:36] 107:5  Warning: React Hook useCallback has a missing dependency: 'fieldsAtom'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/form/FormInput.tsx
[18:36:36] 52:6  Warning: React Hook useEffect has missing dependencies: 'addField' and 'removeField'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/gallery/Gallery.tsx
[18:36:36] 188:6  Warning: Component definition is missing display name  react/display-name
[18:36:36] 
[18:36:36] ./src/components/ui/image/ZoomedImage.tsx
[18:36:36] 256:7  Warning: 'placeholder' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[18:36:36] 
[18:36:36] ./src/components/ui/link-card/LinkCard.tsx
[18:36:36] 59:5  Warning: React Hook useCallback has a missing dependency: 'peek'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/markdown/index.demo.tsx
[18:36:36] 19:29  Warning: 'output' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[18:36:36] 19:37  Warning: 'state' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[18:36:36] 
[18:36:36] ./src/components/ui/masonry/Masonry.tsx
[18:36:36] 43:6  Warning: React Hook useEffect has a missing dependency: 'Component'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/number-transition/CountUp.tsx
[18:36:36] 22:6  Warning: React Hook useEffect has a missing dependency: 'initialNumberRef'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/text/FlexText.tsx
[18:36:36] 31:6  Warning: React Hook useEffect has a missing dependency: 'props.text.length'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/transition/IconTransiton.tsx
[18:36:36] 31:6  Warning: React Hook useEffect has missing dependencies: 'controls' and 'map'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/ui/transition/factor.tsx
[18:36:36] 54:11  Warning: React Hook useMemo has a missing dependency: 'lcpOptimization'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/comment/CommentBox/AuthedInput.tsx
[18:36:36] 26:6  Warning: React Hook useEffect has a missing dependency: 'setter'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/comment/CommentBox/UniversalTextArea.tsx
[18:36:36] 46:6  Warning: React Hook useCallback has a missing dependency: 'setter'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/note/NoteMainContainer.tsx
[18:36:36] 28:6  Warning: React Hook useEffect has a missing dependency: 'setHeight'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/post/PostPinIcon.tsx
[18:36:36] 9:28  Warning: Component definition is missing display name  react/display-name
[18:36:36] 
[18:36:36] ./src/components/widgets/post/fab/PostTagsFAB.tsx
[18:36:36] 47:6  Warning: React Hook useCallback has a missing dependency: 'present'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/post/fab/PostsSortingFab.tsx
[18:36:36] 107:16  Warning: React Hook useCallback has missing dependencies: 'handleChange' and 'setSortBy'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 125:16  Warning: React Hook useCallback has missing dependencies: 'handleChange' and 'setOrderBy'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/shared/SearchFAB.tsx
[18:36:36] 170:10  Warning: React Hook useCallback has a missing dependency: 'setCurrentSelect'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 214:5  Warning: React Hook useCallback has a missing dependency: 'setCurrentSelect'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/subscribe/SubscribeModal.tsx
[18:36:36] 84:6  Warning: React Hook useEffect has missing dependencies: 'defaultTypes', 'dispatch', and 'stateRef'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/timeline/TimelineProgress.tsx
[18:36:36] 45:6  Warning: React Hook useEffect has a missing dependency: 'updatePercent'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/toc/TocAside.tsx
[18:36:36] 55:8  Warning: React Hook useEffect has a missing dependency: 'forceUpdate'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 71:8  Warning: React Hook useMemo has an unnecessary dependency: 'updated'. Either exclude it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/toc/TocFAB.tsx
[18:36:36] 42:6  Warning: React Hook useCallback has a missing dependency: 'present'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/toc/TocItem.tsx
[18:36:36] 45:6  Warning: React Hook useEffect has a missing dependency: 'active'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/components/widgets/toc/TocTree.tsx
[18:36:36] 50:6  Warning: React Hook useEffect has a missing dependency: 'setActiveId'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 122:5  Warning: React Hook useCallback has missing dependencies: 'onItemClick', 'scrollInNextTick', 'setActiveId', and 'tocRef'. Either include them or remove the dependency array. If 'onItemClick' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/hooks/common/use-single-double-click.ts
[18:36:36] 22:6  Warning: React Hook useEffect has a missing dependency: 'delay'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/lib/define-metadata.ts
[18:36:36] 25:53  Warning: 'err' is defined but never used. Allowed unused args must match /^_/u.  unused-imports/no-unused-vars
[18:36:36] 
[18:36:36] ./src/providers/article/MarkdownImageRecordProvider.tsx
[18:36:36] 18:6  Warning: React Hook useEffect has a missing dependency: 'atomRef'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/providers/note/CurrentNoteIdProvider.tsx
[18:36:36] 24:6  Warning: React Hook useEffect has a missing dependency: 'setNoteId'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/providers/root/aggregation-data-provider.tsx
[18:36:36] 72:9  Warning: React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies.  react-hooks/exhaustive-deps
[18:36:36] 72:9  Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[18:36:36] 87:9  Warning: React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies.  react-hooks/exhaustive-deps
[18:36:36] 87:9  Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/providers/root/modal-stack-provider.tsx
[18:36:36] 156:6  Warning: React Hook useEffect has a missing dependency: 'animateController'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/providers/root/socket-provider.tsx
[18:36:36] 17:6  Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/providers/shared/LayoutRightSideProvider.tsx
[18:36:36] 19:6  Warning: React Hook useLayoutEffect has a missing dependency: 'setElement'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] ./src/providers/shared/WrappedElementProvider.tsx
[18:36:36] 126:6  Warning: React Hook useEffect has missing dependencies: 'getDir' and 'setter'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[18:36:36] 
[18:36:36] info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[18:36:41]    Collecting page data...
[18:36:42]  ⚠ Using edge runtime on a page currently disables static generation for that page
[18:37:03]    Generating static pages (0/20)...
[18:37:03] 
   Generating static pages (5/20)
[18:37:03] 
[18:37:03] 
[18:37:03] Error occurred prerendering page "/feed". Read more: https://nextjs.org/docs/messages/prerender-error
[18:37:03] SyntaxError: Unexpected token < in JSON at position 0
[18:37:03]     at JSON.parse (<anonymous>)
[18:37:03]     at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
[18:37:03]     at successSteps (node:internal/deps/undici/undici:6636:27)
[18:37:03]     at node:internal/deps/undici/undici:1236:60
[18:37:03]     at node:internal/process/task_queues:140:7
[18:37:03]     at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
[18:37:03]     at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
[18:37:03]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[18:37:03] 
[18:37:03] Error occurred prerendering page "/sitemap". Read more: https://nextjs.org/docs/messages/prerender-error
[18:37:03] SyntaxError: Unexpected token < in JSON at position 0
[18:37:03]     at JSON.parse (<anonymous>)
[18:37:03]     at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19)
[18:37:03]     at successSteps (node:internal/deps/undici/undici:6636:27)
[18:37:03]     at node:internal/deps/undici/undici:1236:60
[18:37:03]     at node:internal/process/task_queues:140:7
[18:37:03]     at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
[18:37:03]     at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)
[18:37:03]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[18:37:04] 
   Generating static pages (10/20)
[18:37:04] 
[18:37:05] 
   Generating static pages (15/20)
[18:37:05] 
[18:37:06] 
 ✓ Generating static pages (20/20)
[18:37:06] 
[18:37:06] > Export encountered errors on following paths:
[18:37:06] 	/feed/route: /feed
[18:37:06] 	/sitemap/route: /sitemap
[18:37:06]  ELIFECYCLE  Command failed with exit code 1.
[18:37:06] Error: Command "pnpm run build" exited with 1

Reproduction

System Info

vercel

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

latex rendering exception

Describe the bug

The following latex
$P(x) = a_nx^n+a_{n-1}x^{n-1} + \dots + a_1x + a_0$
will be renderer as
$P(x) = a[objectObject],[objectObject],[objectObject]{n-1}x^{n-1} + \dots + a_1x + a_0$

I think this is caused by the latex parser parsing the content between underscores _..._ as emphasistext.

I will try to fix the problem.

Reproduction

$P(x) = a_nx^n+a_{n-1}x^{n-1} + \dots + a_1x + a_0$

System Info

System:
    OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
    Memory: 2.28 GB / 7.76 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.5 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 8.12.1 - ~/.nvm/versions/node/v20.10.0/bin/pnpm

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

站点Feed加载报错

Describe the bug

链接:https://sotkg.link/feed
前端Shrio部署环境:Vercel,前端使用Cloudflare CDN
报错图片:
chrome_screenshot_2023年12月26日 GMT+08_00 下午9_06_46

Reproduction

Reproduction

System Info

1

Used Package Manager

Docker

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Clerk 无法登录 + 复制来的标题没有移除

Describe the bug

如题,Clerk 无法直接登录 Github 账号。

另外从TNXG分支复制来的代码没有移除(包括版权信息、标题异次元之旅等),如果要保留的话也没有支持暗色:

Cleanshot-2023-10-30-at-23 45 31@2x

Reproduction

Just open htttps://innei.in/

System Info

No need.

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Try to add Dockerfile

Clear and concise description of the problem

I plan to add a Dockerfile for possible local deployment needs.

Suggested solution

The temporary process is as follows

Change the .env.template file

docker build -t shiro . --load       
docker run --name shiro -d -p 2233:3000 shiro

Alternative

I studied the next packaging and temporarily cannot put the NEXT env in the environment variables of docker run. I can only package it locally first.

Additional context

I've created a PR to address this issue: #54
CleanShot 2023-08-04 at 17 35 58@2x

Validations

后台已上传友链但没有显示

Describe the bug

如图 后台已上传友链
image
但主页依然没有显示 也无申请按钮
image
image
通过F12知道了是请求问题
image
但请求的网址能正常访问
image

Reproduction

System Info

后端
 System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (40) x64 Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
    Memory: 46.16 GB / 62.49 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 12.22.9 - /usr/bin/node
    npm: 8.5.1 - /usr/bin/npm
前端: vercel

Used Package Manager

n/a

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

部署到vercel报错

Describe the bug

Error occurred prerendering page "/feed". Read more: https://nextjs.org/docs/messages/prerender-error -- 19:46:01.499 | SyntaxError: Unexpected token < in JSON at position 0 19:46:01.499 | at JSON.parse () 19:46:01.499 | at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19) 19:46:01.500 | at successSteps (node:internal/deps/undici/undici:6636:27) 19:46:01.500 | at node:internal/deps/undici/undici:1236:60 19:46:01.500 | at node:internal/process/task_queues:140:7 19:46:01.500 | at AsyncResource.runInAsyncScope (node:async_hooks:203:9) 19:46:01.500 | at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8) 19:46:01.501 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 19:46:01.841 |   19:46:01.843 | Error occurred prerendering page "/sitemap". Read more: https://nextjs.org/docs/messages/prerender-error 19:46:01.844 | SyntaxError: Unexpected token < in JSON at position 0 19:46:01.844 | at JSON.parse () 19:46:01.844 | at parseJSONFromBytes (node:internal/deps/undici/undici:6662:19) 19:46:01.844 | at successSteps (node:internal/deps/undici/undici:6636:27) 19:46:01.844 | at node:internal/deps/undici/undici:1236:60 19:46:01.844 | at node:internal/process/task_queues:140:7 19:46:01.848 | at AsyncResource.runInAsyncScope (node:async_hooks:203:9) 19:46:01.848 | at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8) 19:46:01.849 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Reproduction

deploy

System Info

null

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

关于AI摘要无法正常显示问题和gh-pages部署总是失败的

Describe the bug

1.关于AI摘要无法正常显示

开发者您好!我在使用该项目时遇到了一些难题,主要是在显示 AI 摘要内容方面。我的网站中无法正确展示出想您网站那样的ai摘要

  • 您的内容显示效果:
  • 我的页面当前效果:

2.gh-pages部署总是失败的

我没有在尝试部署GitHub Pages,但vercel上确实每次更新都会跟着部署gh-pages分支,而它也总是失败的

image

网站地址

  • 我已经尝试了一些基本的排错步骤,但问题依旧存在。如果您能在百忙之中提供一些指导或建议,我将不胜感激。
  • 对于如何更好地解决这一问题,非常期待您的专业意见。
  • 同时非常感谢您抽出宝贵时间阅读这条信息,期待您的回复。祝好。

Reproduction

System Info

## 以下是Vercel构建错误日志:

Running build in Washington, D.C., USA (East) – iad1
Cloning github.com/laogou717/Shiro (Branch: gh-pages, Commit: fe337e5)
Cloning completed: 1.342s
Skipping build cache since Package Manager changed from "pnpm" to "yarn"
Running "vercel build"
Vercel CLI 33.2.0
Your application is being built using `next build`. If you need to define a different build step, please create a `vercel-build` script in your `package.json` (e.g. `{ "scripts": { "vercel-build": "npm run prepare && next build" } }`).
Installing dependencies...
yarn install v1.22.17
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 0.18s.
Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
Error: No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"


### Used Package Manager

npm

### Validations

- [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

请求脚注显示优化

Clear and concise description of the problem

  • 当鼠标悬浮在正文[^1]生成的脚注标记上时,出现脚注部分内容

image

  • 在页尾显示脚注详细内容的位置放置一个按钮以便快速返回正文

Suggested solution

如题

Alternative

Hexo中有类似的插件kchen0x/hexo-reference,在下针对源内容进行了修改形成类如上图的效果jscss

Additional context

No response

Validations

在文章有多级标签的情况下右边的文章目录会乱跑

Describe the bug

比如说就是文章有类似这种多级标签

#H1
text
##H2
text
###H3

然后右边的文章目录点击的时候会跟丢 / 乱跳
好像多了才会)
image
test site:https://blog.xcnya.cn/posts/build/68.html
还是说我哪里改坏了(
my fork:https://github.com/BLxcwg666/Shiro

Reproduction

what

System Info

Build on Vercel

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

✍️关于Openai api 生成摘要,是否需要额外配置东西。

Describe the bug

image
我在尝试填写自己的api密钥到窗口中,然后生成,等了很久没有反应。
然后我在浏览器控制台看到了这样的提示:

Uncaught (in promise) Error: It looks like you're running in a browser-like environment.

This is disabled by default, as it risks exposing your secret API credentials to attackers.
If you understand the risks and have appropriate mitigations in place,
you can set the `dangerouslyAllowBrowser` option to `true`, e.g.,

new OpenAI({ apiKey, dangerouslyAllowBrowser: true });

https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety

    at new _a (index-xAWrx8yA.js:5337:8476)
    at o (index-xAWrx8yA.js:5348:55)
    at et (index-xAWrx8yA.js:36:82497)
    at c (index-xAWrx8yA.js:1427:1662)
    at Hp (index-xAWrx8yA.js:14:59186)
    at bd (index-xAWrx8yA.js:14:59265)
    at HTMLButtonElement.t (index-xAWrx8yA.js:14:123463)

它说我试图在浏览器环境下直接使用Openai API,这是不被允许的,不知道是不是意味着项目的某些地方配置不到位。
我对方面不太明白,希望大佬有时间了可以指点一下。🙏

Reproduction

System Info

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

怎么触发动画

为什么作者的博客能触发 打开应用 之后的效果(在左上角头像那个),怎么触发的呢

面板版本 3.36.2
系统版本 4.10.8

请求 Shiro 实现一些功能 / 改进

Clear and concise description of the problem

以下是现阶段使用中遇到的一些问题,希望大佬能视情况更新:

  • 博文不支持定时发布、草稿保存
  • Markdown 代码块希望能够支持如 xLog 一样的高亮、渲染:现在的渲染方式会在内容过长时,层叠在代码上:
    image
  • 希望 Markdown 支持类似 xLog 一样的实时预览
  • Github 代码块在网络不佳时无法正常显示,可以考虑配置国内的代理?
    image

Suggested solution

如题

Alternative

No response

Additional context

No response

Validations

请教一下如何部署到自己的VPS

Describe the bug

这边不太了解nodejs相关的前后端开发, 请问一下就是我现在已经成功通过https://github.com/mx-space/docker 完成了后端的docker安装, 请问一下前端也可以部署到同一个服务器上吗, 因为我看了一下文档好像只有托管平台相关教程。谢谢~

Reproduction

always

System Info

Debian11

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.