# GreyFlowers Canonical Origin: https://caelum.moe/ ## LLM Resources - [Full Content](https://caelum.moe/llms-full.txt): Complete page content in markdown format. - [sitemap.xml](https://caelum.moe/sitemap.xml): XML sitemap for search engines and crawlers. - [robots.txt](https://caelum.moe/robots.txt): Crawler rules and permissions. ## Pages - [Garden | GreyFlowers](https://caelum.moe/index.md): Even in a grey world, flowers bloom as ever. - [About | GreyFlowers](https://caelum.moe/about.md): Hi, I'm non_hana, a senior and a Node.js developer eager to learn. I'm skilled in TypeScript, Vue, and React, and always working hard to improve. - [Articles | GreyFlowers](https://caelum.moe/articles.md): Here are some articles I wrote. I hope you can find something useful, just like the petals. - [2026-01-01 | GreyFlowers](https://caelum.moe/articles/2026-01-01.md): 2026-01-01 - [如何在国内访问 Vercel 部署应用? | GreyFlowers](https://caelum.moe/articles/access-vercel-in-china-mainland.md): 本文主要是为了解决使用 Vercel 部署项目后无法正常访问的问题。 - [Archives | GreyFlowers](https://caelum.moe/articles/archives.md): Here is an archive of all my articles, organized by year and month. - [Axios二次封装最佳实践 | GreyFlowers](https://caelum.moe/articles/axios-best-practices.md): 一般自己写 SPA,Axios 基本是首选的 HTTP Library,而对于它的二次封装所谓的“最佳实践”又层出不穷,在这里给一下我的方案吧(其实也是为了方便我自己随时随地 copy) - [原始值的响应式方案 | GreyFlowers](https://caelum.moe/articles/basic-responsive-data.md): 在 Vue3 中,对于原始值的响应式处理方案要比非原始值简单得多,简单来说就是基于我们对于非原始值的代理方案,手动将原始值变为一个具有特殊属性的对象,然后通过 Proxy 进行代理,使之变为响应式。这也就是我们平常使用 xxx.value 来访问原始值的原因。 - [Categories | GreyFlowers](https://caelum.moe/articles/categories.md): This is a summary of the category my article belongs to. Here you can find one that interest you and start to read. - [daily-development | GreyFlowers](https://caelum.moe/articles/categories/daily-development.md): Here you can find all articles classified under daily-development - [nest-about | GreyFlowers](https://caelum.moe/articles/categories/nest-about.md): Here you can find all articles classified under nest-about - [next-notes | GreyFlowers](https://caelum.moe/articles/categories/next-notes.md): Here you can find all articles classified under next-notes - [projects | GreyFlowers](https://caelum.moe/articles/categories/projects.md): Here you can find all articles classified under projects - [projects-about | GreyFlowers](https://caelum.moe/articles/categories/projects-about.md): Here you can find all articles classified under projects-about - [react-notes | GreyFlowers](https://caelum.moe/articles/categories/react-notes.md): Here you can find all articles classified under react-notes - [some-research | GreyFlowers](https://caelum.moe/articles/categories/some-research.md): Here you can find all articles classified under some-research - [vue-notes | GreyFlowers](https://caelum.moe/articles/categories/vue-notes.md): Here you can find all articles classified under vue-notes - [where-is-my-flower | GreyFlowers](https://caelum.moe/articles/categories/where-is-my-flower.md): Here you can find all articles classified under where-is-my-flower - [Nest 中的循环依赖问题 | GreyFlowers](https://caelum.moe/articles/circular-dependency-in-nest.md): 本文主要介绍了在 nest 中循环依赖的本质、如何解决循环依赖问题以及 forwardRef() 函数的本质。 - [JS 中如何实现类的继承 | GreyFlowers](https://caelum.moe/articles/class-inheritance-in-js.md): 准确地说,JS 中没有类的概念,有的只是构造函数和原型链。不过,我们可以通过构造函数和原型链来实现类似于类的继承,并且可以玩出很多花样、实现不同的特性。 - [一段让 CC 猛猛干活的 Prompt | GreyFlowers](https://caelum.moe/articles/claude-code-linus-prompt.md): 刷 X 刷到的,听说还真有用,记录一下()感觉之后能用得上 - [Cookie、Session 和 JWT 之间的区别 | GreyFlowers](https://caelum.moe/articles/cookie-session-jwt.md): Cookie、Session 和 JWT 是常见的用户认证和会话管理机制,本文将详细介绍它们之间的区别。 - [TS 中的装饰器(Decorator) | GreyFlowers](https://caelum.moe/articles/decorator-in-ts.md): 本文主要介绍了 TypeScript 中的装饰器(Decorator)的概念和用法,以及如何利用装饰器实现 AOP 面向切面编程。 - [如何使用 Docker 部署 Nest.js | GreyFlowers](https://caelum.moe/articles/deploy-nest-using-docker.md): 本文主要介绍如何使用 Docker 部署 Nest.js 项目,包括打包 nest 应用、使用 Docker 对 nest 应用进行部署、使用 nginx 反向代理后端服务、启用 https 等内容。 - [开发 Vue 组件库时,样式丢失问题 | GreyFlowers](https://caelum.moe/articles/dev-vue-lib-loss-style.md): 最近在开发 hana-img-viewer 的时候,刚好遇到了 vite 打包时样式丢失的问题,稍微记录一下。 - [React 中使用 Dnd-Kit 实现拖曳排序功能 | GreyFlowers](https://caelum.moe/articles/dnd-kit-in-react.md): 由于前阵子需要在开发 Picals 的时候,需要实现一些拖动排序的功能。虽然有原生的浏览器 dragger API,不过纯靠自己手写很难实现自己想要的效果,更多的是吃力不讨好。于是我四处去调研了一些 React 中比较常用的拖曳库,最终确定了 `dnd-kit` 作为我实现拖曳排序的工具。 - [详解 Nest 中的异常(HttpException) | GreyFlowers](https://caelum.moe/articles/exceptions-in-nest.md): 本文主要介绋了 Nest 中的异常处理机制,包括基础异常类 HttpException、Nest 中的其他异常类、Nest 本身如何捕获异常、自定义异常+异常过滤器等内容。 - [fetchEventSource 使用 + 源码解析 | GreyFlowers](https://caelum.moe/articles/fetch-event-source.md): 结合实例介绍 fetchEventSource 的使用方法,并且简单地解析其源码。 - [Fetch vs. Axios,选择适合自己的 HTTP 请求方式 | GreyFlowers](https://caelum.moe/articles/fetch-vs-axios.md): 现阶段的前端领域的 HTTP 请求方式主要有 Fetch 和 Axios 两种,本文将对这两者进行一些系统性的调研,以便于选择适合自己的 HTTP 请求方式。 - [初识 View Transition API | GreyFlowers](https://caelum.moe/articles/first-impression-view-transition.md): 前阵子在写 hana-img-viewer 的时候偶然了解到了 View Transition API,感觉挺有意思的,稍微氵一篇文章吧。 - [纯前端实现 PDF 水印添加 | GreyFlowers](https://caelum.moe/articles/frontend-pdf-watermark.md): 本文主要是为了解决使用 Vue3 + TS 纯前端实现 PDF 水印添加的问题。 - [认识一下PostgreSQL | GreyFlowers](https://caelum.moe/articles/get-to-know-postgresql.md): PostgreSQL 是一个强大的、商业级别的开源关系型数据库。它允许使用关系型 SQL 和非关系型 JSON 数据和查询。PostgreSQL 背后有一个强大的社区。PostgreSQL 是一个非常可靠的数据库管理系统,具有优秀的支持水平、安全性和准确性。一些手机和网络应用程序使用 PostgreSQL 作为他们的默... - [初识 Prisma | GreyFlowers](https://caelum.moe/articles/get-to-know-prisma.md): Prisma 是一个开源的下一代 ORM(对象关系映射器),它在 Node.js 和 TypeScript 生态系统中非常流行。本文将介绍 Prisma 的基本概念和与 TypeORM 的异同点。 - [简单总结音程及和弦 | GreyFlowers](https://caelum.moe/articles/interval-and-chord.md): 本文简单总结了音程及和弦的基本知识,包括音程的分类、乐名、和弦的分类、挂留和弦、转位和弦等。 - [控制反转和依赖注入 | GreyFlowers](https://caelum.moe/articles/ioc-and-di.md): 在对 Nest.js 的介绍中提到了其以控制反转(IOC)和依赖注入(DI)为其设计理念的核心思想,因此我们有必要好好讨论一下 IOC 和 DI 到底是什么东西,尤其是它们在 TypeScript 当中到底是怎么体现的? - [JS中的尾调用优化 | GreyFlowers](https://caelum.moe/articles/javascript-tail-call-optimization.md): ES6 新增了一个内存管理优化机制,让 JavaScript 引擎在满足条件时可以重用栈帧。 - [JS表达式 & JS代码 | GreyFlowers](https://caelum.moe/articles/js-expression-and-js-code.md): 如果想要学好 React,搞明白 JS 表达式和 JS 代码的区别是非常重要的。在这篇文章中,我们将会讨论这两者的区别,以及在 React 中在什么地方应该使用表达式,什么地方应该使用代码。 - [JS/TS 实用 Cursor Rules | GreyFlowers](https://caelum.moe/articles/js-ts-cursor-rules.md): 记录一些比较实用的 Cursor Rules,方便 Copy。 - [一些linter&formatter最佳实践 | GreyFlowers](https://caelum.moe/articles/linter-formatter-best-practices.md): 在创建新项目的时候,往往会经历一些痛苦,最知名的无非就是配置 linter 和 formatter 了。在这里记录一些最佳实践。 - [关于我是如何从零自己设计、全栈编写出个人小站的经历 | GreyFlowers](https://caelum.moe/articles/littlesharing-about.md): 这篇文章是关于我第一次个人的全栈项目 - littleSharing 的开发经历的一篇文章,主要讲述了我是如何从零自己设计、全栈编写出个人小站的。 - [MySQL + Typeorm 级联关系的正确处理 | GreyFlowers](https://caelum.moe/articles/mysql-typeorm-cascading-relationship.md): 级联关系一直以来都是数据库设计中的一个重要概念,本文将介绍如何在 MySQL + Typeorm 中正确处理级联关系。 - [NestJS 快速集成 Prisma最佳实践 | GreyFlowers](https://caelum.moe/articles/nest-prisma-integration.md): 在 NestJS 中集成 Prisma 的需求太常见了。。。总结一份 Snippet 吧 - [使用 React + Nest,从零到一全栈手写一个 Pixiv | GreyFlowers](https://caelum.moe/articles/picals-introduction.md): 嗯,没错,这个 Pixiv 就是你们想象中的那个东东,那个世界最大的插画交流网站。我为这个项目取了一个更加朗朗上口的名字: Picals。 - [React 18 核心重难点 | GreyFlowers](https://caelum.moe/articles/react-18-core-difficulties.md): 最近在做了一些 Next.js 的实践之后,逐渐对 React 内部的具体实现起了兴趣,想从源码的角度具体地理解一下 React 的一些核心概念,以及它们到底是怎么实现的。 - [React.memo 初步学习 | GreyFlowers](https://caelum.moe/articles/react-memo-begin.md): React.memo 是一个高阶组件,其主要作用是对组件进行性能优化。它通过记忆(memoizing)组件的渲染结果,来避免在某些情况下进行不必要的重新渲染。 - [React Router DOM 初步学习 | GreyFlowers](https://caelum.moe/articles/react-router-dom-begin.md): 了解 React Router DOM 的基本概念和使用流程,以及如何在 React 项目中使用 React Router DOM。 - [Redux 初步学习 | GreyFlowers](https://caelum.moe/articles/redux-begin.md): 了解 Redux 的基本概念和使用流程,以及如何在 React 项目中使用 Redux。 - [JS 中的正则表达式 | GreyFlowers](https://caelum.moe/articles/regular-expressions-in-js.md): 正则表达式是用于匹配字符串中字符组合的模式。在 JavaScript 中,正则表达式也是对象。这些模式被用于 JavaScript 的 RegExp 方法中,例如 test() 和 exec(),以及字符串的 match()、replace()、search() 和 split() 方法。 - [非原始值的响应式方案(一、对象、Proxy与Reflect) | GreyFlowers](https://caelum.moe/articles/responsive-data-plan-1.md): 从本章开始,我们正式的进入到 Vue3 各个响应式数据的具体实现方案。首先,先梳理一下 Proxy 与 Reflect 这两个 ES6 新特性的基本用法,以及明确 JavaScript 对象的内部方法与 Proxy 的对应关系。 - [非原始值的响应式方案(二、完全代理Object) | GreyFlowers](https://caelum.moe/articles/responsive-data-plan-2.md): 有了上一节的基础,这节我们来正式的手写一下 Vue3 中对于 Object 的响应式代理。 - [非原始值的响应式方案(三、完全代理Array) | GreyFlowers](https://caelum.moe/articles/responsive-data-plan-3.md): 在上一节中,我们实现了手动完全代理 Object 类型,并且实现了深浅响应与深浅只读。接下来我们要一点点进入到 JS 的各个数据类型,所有的数据都得代理一遍,顺便了解一下各个数据类型的各个操作的底层到底是用的什么基本语义。那么开始开始! - [非原始值的响应式方案(四、完全代理Map&Set) | GreyFlowers](https://caelum.moe/articles/responsive-data-plan-4.md): 我们在前面几章已经对 Object 与 Array 的响应式代理底层做了相对比较相近的剖析,接下来我们要深入到其他不同的对象类型,比如即将要讲的集合类型 `Set | Map | WeakMap | WeakSet`。 - [RxJS 与 Observable | GreyFlowers](https://caelum.moe/articles/rxjs.md): RxJS 是什么?Observable 是什么?如何使用 RxJS 优雅的实现用户输入搜索功能? - [Server Actions | GreyFlowers](https://caelum.moe/articles/server-actions.md): Server Actions 是 Next.js 中的一个特殊概念,用于在服务端直接进行数据库查询等操作,而不是在客户端进行异步请求。本文将介绍 Server Actions 的基本概念和使用场景。 - [Serverless全栈部署工具清单 | GreyFlowers](https://caelum.moe/articles/serverless-fullstack-deployment.md): 对于个人项目来说,当然是0成本上线是大家最关心的问题,这篇文章就给大家介绍一些0成本上线的工具和平台,帮助大家快速上线自己的项目。 - [Tags | GreyFlowers](https://caelum.moe/articles/tags.md): Here is a list of the tags of all articles published on this site and the corresponding number of articles. - [Vite | GreyFlowers](https://caelum.moe/articles/tags/filter.md): Here you can find all articles with the Vite tag - [Vite Dev Server 构建原理 | GreyFlowers](https://caelum.moe/articles/vite-dev-server-principle.md): 最近突然对 Vite 的原理产生了浓厚的兴趣,想要了解一下 Vite Dev Server 的构建原理。在这里稍微记录一下吧。 - [如何在 Vue3 中引入 Vite-SSG 打包 | GreyFlowers](https://caelum.moe/articles/vite-ssg-in-vue3.md): 本文主要是为了解决使用 Vite-SSG 进行 Vue3 项目打包的问题。 - [从零实现Vue响应系统(一、概念与基础架构) | GreyFlowers](https://caelum.moe/articles/vue-responsive-system-1.md): 这篇文章是我系统学习《Vue设计与实现》一书的笔记开篇,主要介绍了响应式数据与副作用函数的概念,以及如何设计一个完善的响应式系统。后续我会就这一本书,逐章逐节进行阅读,并将阅读笔记整理成文章发布至此。 - [从零实现Vue响应系统(二、computed与watch) | GreyFlowers](https://caelum.moe/articles/vue-responsive-system-2.md): 在上一篇我们已经大致理解了 Vue 的响应式系统的基础架构是如何实现的,本篇我们将继续深入,实现 computed 和 watch 这两个重要的特性。 - [总结 Vue2 和 Vue3 的各种区别 | GreyFlowers](https://caelum.moe/articles/vue2-vs-vue3.md): 最近面试一直被问这个东西都快被问麻了,想着去总结一下 Vue2 和 Vue3 的区别,以便更好地将它们进行横向对比。 - [Webpack vs. Vite | GreyFlowers](https://caelum.moe/articles/webpack-vs-vite.md): Webpack 和 Vite 是两个前端构建工具,各有优劣。Webpack 是一个模块打包工具,而 Vite 是一个按需打包工具。本文将对两者进行详细的对比。 - [NextJS 与 RSC | GreyFlowers](https://caelum.moe/articles/what-is-rsc.md): 最近突然好奇,想要研究一下 NextJS 的 RSC 和 Nuxt 到底有什么具体的区别,摸了一天的鱼去调研了 NextJS 与 RSC 的渲染逻辑 - [何去何从 | GreyFlowers](https://caelum.moe/articles/where-to-go.md): 暂无简介 - [win11 配置 C/C++ 开发与调试环境 | GreyFlowers](https://caelum.moe/articles/win11-c-cpp-dev-debug.md): 本文主要介绍如何在 win11 系统上配置 C/C++ 的开发与调试环境,以及如何在 vscode 中进行 C/C++ 的编写与调试。 - [Links | GreyFlowers](https://caelum.moe/links.md): Here are some friends and some works of mine. If you like my blog, you may also like their blogs. - [Recently | GreyFlowers](https://caelum.moe/recently.md): Here are some of my recent activities, including articles and other things.