# Obsidian + Notion + Wiki pointers <=> LLM
## hybrid > key search: ``` Ctrl + F ``` => target pointer
- [CSS/box/index.html](https://github.com/ceilf6/Wiki/blob/main/CSS/box/index.html)
- macOS强制显示滚动条 [#2](https://github.com/ceilf6/Wiki/issues/2)
- 单行文本的省略空白处理 [#3](https://github.com/ceilf6/Wiki/issues/3)
- [CSS/视觉格式化模型/常规文档流/外边距折叠.html](https://github.com/ceilf6/Wiki/blob/main/CSS/视觉格式化模型/常规文档流/外边距折叠.html)
- 外边距折叠 [#4](https://github.com/ceilf6/Wiki/issues/4)
- [CSS/视觉格式化模型/浮动/ex/css/common.css](https://github.com/ceilf6/Wiki/blob/main/CSS/视觉格式化模型/浮动/ex/css/common.css)
- 分页器
- [CSS/视觉格式化模型/定位/二级菜单/css/2th.css](https://github.com/ceilf6/Wiki/blob/main/CSS/视觉格式化模型/定位/二级菜单/css/2th.css)
- 32~ 元素的隐藏与显示,将 :hover 挂载到共同的父元素上
- 79~ 二级菜单和上层之间衔接的 border 处理:伪元素遮挡
- [CSS/视觉格式化模型/定位/弹出层/css/popup.css](https://github.com/ceilf6/Wiki/blob/main/CSS/视觉格式化模型/定位/弹出层/css/popup.css)
- 居中
- [HTML/表单元素/CSS美化/myRadio.css](https://github.com/ceilf6/Wiki/blob/main/HTML/表单元素/CSS美化/myRadio.css)
- 自实现选择框
- [CSS/布局/后台页面布局.html](https://github.com/ceilf6/Wiki/blob/main/CSS/布局/后台页面布局.html)
- 后台页面布局
- [NodeJS/CMJ](https://github.com/ceilf6/Wiki/blob/main/NodeJS/CMJ)
- .cjs 后缀会永远用 CJS
- 会覆盖 package.json 中的 type: "module"
- .mjs → 永远是 ES Module
- [Vue2/sandboxs](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs)
- demo created from Vue/CLI
- [Vue2/sandboxs/src/utils/getComponentRootDom.js](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/src/utils/getComponentRootDom.js)
- 通过 render 以及 $el 获取某个组件渲染的Dom根元素
- [Vue2/sandboxs/src/utils/toast.js](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/src/utils/toast.js)
- 实现 toast 提示函数,通过 JS 创建提示框
- [Vue2/sandboxs/vue.config.js](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/vue.config.js)
- 通过开发服务器代理处理开发环境中的、浏览器同源策略导致的跨域问题
- [Vue2/sandboxs/src/mock/index.js](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/src/mock/index.js)
- 拦截 AJAX ,重新赋值 XHR 。 Apifox 和 Postman 也支持 mock 环境
- [Vue2/sandboxs/test/Lifecycle/timerDestroyed.vue](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/test/Lifecycle/timerDestroyed.vue)
- 类似于[组合关系](https://github.com/ceilf6/CPlusPlus/blob/main/docs/relationship_demo.cpp#L120)的析构函数,凡是在 mounted / created 中引入的“组件外部副作用”,都应该在 beforeDestroy 中对称清理
- vue2沙盒开发的一系列成果测试脚本 [link](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/package.json#L9)
- [Vue2/sandboxs/src/directives/loading/index.js](https://github.com/ceilf6/Wiki/blob/main/Vue2/sandboxs/src/directives/loading/index.js)
- v-loading 自定义指令实现 Loading 态呈现
- auto update Action for README [link](https://github.com/ceilf6/Wiki/commit/e8a2c1df8e6f2bca5610dbd4a8dbbc40f8a8d268)
- mixins 混入实现配置代码复用 [link](https://github.com/ceilf6/Wiki/commit/a2423747951f26fca4f3949f09b48b93cbc7b458)
- 组件递归 实现 层级列表组件 TreeListMenu [link](https://github.com/ceilf6/Wiki/commit/64afdb48013cd41985b79fd8fa12c4d4ae249b81)
- vue-router 动态路由匹配 通过 vue-router 注入的原型对象 $route 提供的路由信息 [link](https://github.com/ceilf6/Wiki/commit/833dd96a83e4f8a40d467202550db889c737236f)
- React 自定义组件想要触发DOM事件,得传递到能响应的元素上 同时注意如果没有特殊处理,在事件处理函数中,this指向undefined 1. bind 2. () => [link](https://github.com/ceilf6/Wiki/commit/929c449923abc5d1e658b62b07571fa4e44ae267)
- JS执行 - call stack 执行上下文中的 this 和 变量对象VO 虽然 ES6 后 const 和 let 不会污染对象,但是之前代码都用的 var 还是得了解 [link](https://github.com/ceilf6/Wiki/commit/7509501150c9e476648fb3f61d77ff26cb6a6799)
- 当找不到某个属性时,执行上下文通过函数对象的隐藏属性 \[\[Environment\]\] (之前叫 \[\[scope\]\] )指针连接外层词法环境形成作用域链,然后往上寻找 => 即使 outer 执行完了,inner 仍然保留对 outer 变量的引用、导致GC失败 => 闭包 \[ => 内存泄漏风险 \] [link](https://github.com/ceilf6/Wiki/commit/1dae95e5ea6a478353708e30340e91fac2b7e13a)
- CSRF danger example and 5 ways to solve [link](https://github.com/ceilf6/Wiki/commit/3d687dd1827e287694ecd0bb5efbeef6265f0ef4)
- 如果setState改变状态的代码处于某个HTML元素的事件中,则其是异步的,否则是同步 如果要使用改变之后的状态,需要使用回调函数 如果新的状态要根据之前的状态链式作用,需要使用函数的方式改变状态 同时React会对异步的setState进行优化,将多次setState进行合并 [link](https://github.com/ceilf6/Wiki/commit/d04fd3df98317da48d47380ab49ae44c4e042669)
- React 通过 props.children 实现 Vue 插槽功能 具名插槽区分 1. 直接传对象 2. 函数对象属性 3. 直接传递一个 render 函数 => ( JSX ) [link](https://github.com/ceilf6/Wiki/commit/d719805fda688bb389a31ff3db44e65f7ab81fb3)
- 默认情况下,Form 对在里面的所有的 Input 都传递了 handleChange, 当其中一个变化时,直接修改了 Form 的 state, 那么整个 Form 、 Form 中所有的 Input 都会 re-rende 通过 useForm 内部管理的 _formValues 实现字段级别订阅更新、 _formState 表单整体状态的观察者模式 [link](https://github.com/ceilf6/Wiki/commit/c856c39f9cbacee376616c6774c8e7fd567ba8f9)
- 以数组作为下标的影响: 数组变化后,相同位置的元素 key 相同,Vue 会认为是同一个元素,直接复用 DOM 但实际上数据已经变了,导致 DOM 和数据错位 特别是表单元素(input、select、textarea),它们的值存储在 DOM 节点上,不是响应式的,复用 DOM 后值就乱了,导致每次删除的都只可能是最后一个 [link](https://github.com/ceilf6/Wiki/commit/a566dac46f44788660fcb7c369be272d59b10401)
- a 被 B 引用了,形成了闭包,B函数携带了 a 创建时的词法环境,所以其存储于堆内存中、不被回收(如果在栈内存上会导致需要引用的时候已经出栈了);b 没有被引用,只会在 A 的执行上下文中、短暂的存在栈内存中,在 A 执行结束后变得不可达 [link](https://github.com/ceilf6/Wiki/commit/55cf74ffe5e2468376021b0b6efddcc878ec721e)
- 父组件异步处理后返回子组件 1. emit 中回调函数,类似于 React 中父组件传递给子组件处理函数、提供权力子组件影响父组件的数据 2. 父组件返回Promise,子组件通过 .$listeners 拿到父组件的 handle 函数引用(但是 listener 是直接调用的函数,没有触发事件的上报) 3. 父组件直接 props 传下去处理函数,处理函数和 2 一样都是返回的 Promise [link](https://github.com/ceilf6/Wiki/commit/cc063d8d86a63c6b6397662e2c9bff8ff68c770b)
- v-model + event-modifiers v-model 默认是 input 事件,在事件修饰符之后 v-model.lazy 是change 事件 开启 .number 修饰自动将事件value转为数字 [link](https://github.com/ceilf6/Wiki/commit/761e9c704e8650a982d33e17bab0fbaf6fe02fb6)
- 手动实现观察者模式 => 事件总线 方便组件之间通信、组件和普通模块通信、事件处理 ( Vue 自带 $emit, $on, $off 实例成员,直接导出一个 Vue 实例都可以 ) [link](https://github.com/ceilf6/Wiki/commit/965fd30b27e265aa759d8ba2e9794c18114213c9)
- 利用浏览器资源缓存,实现 v-lazy 自定义懒加载图片指令 其中滚轮视图事件通过事件总线管理,抽离出mixin统一上抛事件 [link](https://github.com/ceilf6/Wiki/commit/2e70841c9483f1119901e7f9fd9a8093b7517310)
- [通过 vuex 进行共享数据管理 mutations 方法中不允许副作用操作 通过在 actions 中 dispatch 实现副作用操作](https://github.com/ceilf6/Wiki/commit/bcadabcdf485eff395a109c814578c9aed4c0ed1)
- [通过 vuex 和 router 管理 登陆、注销 vuex. module 实现模块化 开启命名空间防止命名冲突 开启严格模式后,只允许通过 mutations 改变状态 getters 计算属性 mapState 简化命名空间相关代码 通过 template 逻辑容器处理同级元素](https://github.com/ceilf6/Wiki/commit/5c77685db2f57937d161d20ac8152c08558d82a9)
- [使用 route 对 vuex 的登陆态进行路由守卫、鉴权拦截 在路由对象中带上目标页信息,方便在登录之后重定向、鉴权 添加 exact-path 防止路由中 hash 和 query 对样式匹配的影响](https://github.com/ceilf6/Wiki/commit/290f01b2b9d7a15321b3823007e559d90d8babfc)
- [公共库体积优化 利用 tree-shaking 优化 Vuex 利用 CDN: 对 webpack 声明不要对公共库进行打包(私有的要收费) 通过模版代码在index中进行分流,否则开发环境也用CDN资源就无法使用Vue-dev 生产环境传统CDN导入会自动"污染"全局 --modern 开启现代模式打包](https://github.com/ceilf6/Wiki/commit/475030a855b06fd49e0bb7943a4ec25a38c2d1a3)
- [项目包体积优化 利用webpack对动态import的支持实现页面分包](https://github.com/ceilf6/Wiki/commit/a9ad2ba0c1c58f6e711b671919dd5ac814f5ef54)
- [通过 defaultImg 粗略优化首屏体验](https://github.com/ceilf6/Wiki/commit/49857fe2ab326d9c7157f49ffe02776a4ea19441)
- [异步组件 + 进度条](https://github.com/ceilf6/Wiki/commit/623b5b9a6d17c4e413af8fd240ac1e55ed64db61)
- [通过通配符 * 匹配 404 页面](https://github.com/ceilf6/Wiki/commit/e60c6d9e1f16434cee4b9273c8b770601c97ebf4)
- [Vue3 较 2 的 diff 构造函数 this指向 组合内聚](https://github.com/ceilf6/Wiki/commit/83edd69a89a8cff811c8a1c6986525f650280d15)
- [虽然 Vue2-mixins 能实现内聚,但是存在混合之间层次扁平化、执行顺序等问题 而 Vue3 composition 可以直接进行 函数级别的交互](https://github.com/ceilf6/Wiki/commit/e8d98d705ca017baa9b5a4fd2f9621f1f363002c)
- [Vue3 将 LifeCycle Function 都抽离成普通函数了,不需要再限定在配置中](https://github.com/ceilf6/Wiki/commit/2c36fc2ac27de4d135984f1b0572e9db3d41fa1b)
- [like LifeCycle, Vue3 has computed() func](https://github.com/ceilf6/Wiki/commit/850b9924b43558f09cbe9736562b52293524ada6)
- [Vue2 中计算属性可以通过 set 影响原始数据 Vue3 的 computed 最佳设计只设置 get 视为是只读的快照](https://github.com/ceilf6/Wiki/commit/421e1ac98192549ffcb2a017f1310f907209c39f)
- [template 预编译 => render() Vite 本地开发时直接请求、快于 webpack css => str vue => js](https://github.com/ceilf6/Wiki/commit/51c2bd081b77f5da04db72f2c55f4eeaa2761d8f)
- [因为 Vite 利用的是“现代浏览器支持ESM”这一特性,在开发时将模块文件直接传输给浏览器,不需要打包,是实时编译 所以 CMJ 是不支持的](https://github.com/ceilf6/Wiki/commit/cb2fdc3c61d2a04a1274a48d0e26a436b30aab30)
- [vue3 运行时缓存机制 vnode 存储到 _cache 中进行复用](https://github.com/ceilf6/Wiki/commit/c94020e4e64cc67d33e5a87daf9266dda3536412)
- [Vue3 不会对静态节点反复创建渲染函数,而是上提、然后在render中重复使用](https://github.com/ceilf6/Wiki/commit/4739a9fe8e1604dd5900b018e5ee20b2976bc821)
- [Vue3 预字符串化](https://github.com/ceilf6/Wiki/commit/824ff9a8c1a4abf9790fcc743df5597616f15415)
- [Vue3 打标是动态节点还是静态节点 如图是动态](https://github.com/ceilf6/Wiki/commit/21ad93653369b624afb3145b8033429902331b01)
- [Vue3 中属性的静动态打标区分](https://github.com/ceilf6/Wiki/commit/d641f1daee8ef981c8e4d069c111b0c79416d7ea)
- [Vue3 双向绑定 v-model :modelValue , @update:modelValue v-model修饰符](https://github.com/ceilf6/Wiki/commit/766830c8aa1a052e97ad2b6956f4188caf95f0ce)
- [虽然 Vue2 v-for > v-if ,但是每次变更后都需要重新循环判断 Vue3直接交换了优先级、报错[vue/no-use-v-if-with-v-for] 正确应该通过计算属性进行判断 当使用<template>进行v-for循环时,需要把key值放到<template>中,而不是它的子元素中](https://github.com/ceilf6/Wiki/commit/0fd235a7780f81c54d9ef82eb31fa329ac114c02)
- [当使用`v-if v-else-if v-else`分支的时候,不再需要像Vue2一样指定`key`值(否则可能数据没清空) vue3会自动给予每个分支一个唯一的key 即便要手工给予key值,也必须给予每个分支唯一的key,不能因为要重用分支而给予相同的key,否则就无法切换了(Block了、编译成静态节点了)](https://github.com/ceilf6/Wiki/commit/f61c7eb9f6087d7de40360596ee860757a433b79)
- [Vue3 的 router](https://github.com/ceilf6/Wiki/commit/913c49bc82d57738a51182aca6e61136fedcac66)
- [Vue3 异步加载组件](https://github.com/ceilf6/Wiki/commit/26d8f16016337bb123efb9c240652efad093c913)
- [通过配置 defineAsyncComponent 对象设置 loading 和 error, Vue3 的 util syncGetComp 比 Vue2的 多等待和错误状态 Vue3 h函数具名了,方便随时创建虚拟节点](https://github.com/ceilf6/Wiki/commit/dc5f60bd3314dbeda794008915c6928807f1eafb)
- [异步加载页面(本质就是异步加载组件)](https://github.com/ceilf6/Wiki/commit/af1bc8ac862a196a3be1a9f4eba292de4d8e1407)
- [朦层 通过 Teleport 修改在真实DOM中的位置](https://github.com/ceilf6/Wiki/commit/24c3744fa6b8b997c80c9d9f527349242ca34a77)
- [property-descriptor 属性描述符对象 设置 set/get => 存取器属性“Invoke property getter”: 不再是在内存中管理 obj.a ,而是类似于 直接运行get()和set(val) 预检 通过innerText => UI和数据双向绑定](https://github.com/ceilf6/Wiki/commit/4bbf99a0344b1c1bdbe93e597895211b0d719cc7)
- [ES6 => Reflect => 函数式编程、JS底层能力API](https://github.com/ceilf6/Wiki/commit/19d0ecd467ecac47565c7aa47c0990b6cab7a9d7)
- [可以通过 proxy 在 Reflect 的底层实现基础上做想做的](https://github.com/ceilf6/Wiki/commit/030ed37fc99142ab4e611f3ad3523df2daa3514a)
- [通过 Object.defineProperty 实现浅层观察者模式 设置了两个对象,无法时时刻刻保证两个对象一致性(所以 vue2 有 $set 和 $delete 用于在 mounted 之后的属性更改)](https://github.com/ceilf6/Wiki/commit/588438566d7879136ed778924e109578576da21f)
- [递归实现深层观察者模式](https://github.com/ceilf6/Wiki/commit/5ee0c12a0109eb9b2a6e0c764225a539d0dc2c38)
- [虽然 defineProperty 可以直接通过覆盖 target 来避免 ob 的创建,但是会导致污染原先对象 最佳实践还是 Proxy](https://github.com/ceilf6/Wiki/commit/89778f849e4ef2d1ddeba52822634cb8b3fd72d2)
- [类代理,自动进行任何构造函数属性赋值](https://github.com/ceilf6/Wiki/commit/22108b52f6a73efab0d37f9af977134c23a9fd2a)
- [通过代理校验实现类似TS的JS](https://github.com/ceilf6/Wiki/commit/891e300778eecdbd87b4b8661e80e8f4837f3834)
- [#7](https://github.com/ceilf6/Wiki/discussions/7)
- reactive ⇒ proxy实例
- readonly ⇒ 返回了新的 proxy 实例,set 和 deleteProperty 做了特殊处理
- ref 可以代理任何数据类型,封装到一个对象 value 属性上
1. 原始数据类型 ⇒ ES6的 get value() 和 set value() 本质就是 Object.defineProperty 存取器属性
对象用 Proxy 是为了动态的无感监听,但是原始数据类型直接用一个 对象 包裹后只需要管理一个属性 value 即可,不需要动态代理所有属性
2. 对象 ⇒ 使用 reactive
3. proxy实例 ⇒ 直接用该代理
- computed 在监听对象改变后第一次会触发计算函数,后面都是用的缓存
[link](https://github.com/ceilf6/Wiki/commit/1c6f732a7cb6face6f9ba700979f17bc68bf5188)
- [readonly - 类似于 vuex 不允许外部直接更改数据,得调用暴露的API上报](https://github.com/ceilf6/Wiki/commit/80296e75fe24adec324225579cce27d1ec00dc30)
- [防抖更改响应数据](https://github.com/ceilf6/Wiki/commit/d67e7b90e14703b6725a84b6074d225bf47e7de9)
- [watchEffect 的执行是在微任务中回调,配合 stop 的三种情景的对比(有、没有、在宏任务中)](https://github.com/ceilf6/Wiki/commit/c55d816eb1120926a632acc29c8ff49b1fa6922d)
- [watch使用场景 - **不希望回调函数一开始就执行** - 数据改变时,需要**参考旧值** - 需要**监控一些回调函数中不会用到的数据** 其余感觉用 watchEffect 更好](https://github.com/ceilf6/Wiki/commit/b3e1286b3e9ff16b428efb93f7521c578860c0fd)
- [开发纪律规范 => 减少负担 - 最好所有 composition func 都返回的是 ref Obj unref === isRef(val) ? val.value : val](https://github.com/ceilf6/Wiki/commit/a8584495812c10d38806ca4d0dc60ffb2ea18046)
- [Vue3生命周期 在 template ⇒ render 中渲染虚拟节点的时候会对响应式数据收集依赖 renderTracked 在收集到一个依赖就会触发一次](https://github.com/ceilf6/Wiki/commit/f9f2bc522c475a5dde838ff16767561c49e917fb)
- [renderTriggered 在响应数据每变化一次就会触发一次 这两个生命周期钩子一般用于开发排查](https://github.com/ceilf6/Wiki/commit/38c942363d279014cf0c55e545fdd8ec6bdb8c2d)
- [利用 live-server 启动的服务器 + 文件路径 => 访问本地资源模拟API请求](https://github.com/ceilf6/Wiki/commit/20915a8d46f9374977affe5e4db02e774875f6f6)
- [利用 Vue3 的 reactive API 模拟 vuex 全局的响应式数据、对外暴露的是只读的以及API接口 接口兜底 闭包隐藏 userState](https://github.com/ceilf6/Wiki/commit/09a4447ddbb3299d562eb3a531d1bcc86f0b3590)
- [React 旧版生命周期(仅类组件有)](https://github.com/ceilf6/Wiki/commit/24c7bca885d22fa00b1574e40127489045518593)
- [React 新版生命周期(同理仅类组件用)](https://github.com/ceilf6/Wiki/commit/44f9cb2b6c20b495f61594208b7558a6e0d10a57)
- [反模式 - 使用姿势不当 - componentWillReceiveProps 导致的数据来源不单一](https://github.com/ceilf6/Wiki/commit/ca8871928f27cab436ea20a5111d284d3191eed3)
- [尝试使用新版 GDSFP 模拟上条反模式,会发现子组件自身属性完全变成了父组件状态的映像,因为每次更新组件都会调用 GDSFP 这个生命周期钩子、变成父组件状态 故而限制了数据来源单一](https://github.com/ceilf6/Wiki/commit/e75777e61821a9088d72024b56e00efe7834bde2)
- [通过 name 属性区分实现单一 handleChange 管理整个表单 别忘记计算属性名](https://github.com/ceilf6/Wiki/commit/b0bef7e92b3d2bf0ae982af3b3cbc42aa5f870b0)
- [React - defaultProps 混合assign](https://github.com/ceilf6/Wiki/commit/18e8530f3cddf091e09d3260888d8cf0b4b46745)
- [TS 直接用 interface 编译期强制规定即可 老项目 JS 的话得用 prop-type 库 ,那么只能在运行时报错 链式调用添加一个 isRequired 函数进行检查](https://github.com/ceilf6/Wiki/commit/5a09de9646cb077fa49b82b7ee0d83a28bbfcae4)
- [通过HOC高阶组件关注横切关注点实现日志记录、登录 别忘记下放props 还能在中间额外修饰等等、玩法很多](https://github.com/ceilf6/Wiki/commit/efb94f04876edd8ce0f0781b9852a151bd292a74)
- [装饰器模式重构 - 抽象横向关注点、抽离重复渲染事情给 HOC,不用重复书写渲染](https://github.com/ceilf6/Wiki/commit/56569ad627e3d34650861e3a5b63d56a0336bf4f)
- [通过 React.createRef() 创建 ref对象 通过 .current 拿到目标](https://github.com/ceilf6/Wiki/commit/68ececb7f9d90eb84c92c3bde1c5fcad282c115e)
- [通过 ref 得到 (类似Vue) React HTML Element 真实 DOM 对象 类组件实例 调用方法](https://github.com/ceilf6/Wiki/commit/0f28d78db750cfe4812f1524a7e94d70376be306)
- [通过 函数ref={el => this.txt = el;} 创建 ref 不再需要 .current 如果不是通过 外部的getRef 那么每次 render 都会重新创建一个新函数,函数会调用两次、旧的函数返回null 现代函数组件推荐使用 useRef() ref 这种直接操作的思想其实是和 React 背道相驰的](https://github.com/ceilf6/Wiki/commit/039c17430c5409f185ab6bf49ee8469925144838)
- [forwardRef => 从函数组件中拿到目标的 ref 是高阶组件,拿到新组件后,在使用时声明了 ref ,那么就会作为第二个参数传入到forwardRef的入参函数组件A中](https://github.com/ceilf6/Wiki/commit/7f9cd2d5e1b1ed187617cec8d5f9c92d8a0a6983)
- [forwardRef 不能直接用于类组件,直接用函数包装一下,然后通过属性接续传递](https://github.com/ceilf6/Wiki/commit/fd0f993a4b22253adc54ee10754085b90f59a0af)
- [通过 ref 转发解决 HOC 导致的 ref 错误 如果不加处理,外层 ref 会在 HOC 的包装层上,如果想用最内层的方法需要在 HOC 中间层转发](https://github.com/ceilf6/Wiki/commit/fd93e66e2e5da7b5a776d388d78326a81d473ad1)
- [上下文旧版API childContextTypes, getChildContext 创建上下文 contextTypes 获取上下文](https://github.com/ceilf6/Wiki/commit/ef0729e6273c145bc97274df641a477404f95531)
- [Context 数据变化时,所有消费者强制更新直接不运行 shouldComponentUpdate setState 被调用时,创建的是一个新对象(即使什么都没有变),那么上下文在比较时(通过Object.is比较引用内存地址)会判断二者不一致、 解决方案:包一层 ctx 后,后面更新 setState({}) => 只影响了 state 但是内部的 ctx 的地址没有变化](https://github.com/ceilf6/Wiki/commit/22ff1e07f6ba64fbccc8489418dc2eae83bd2367)
- [旧版效率问题严重,新版上下文API Provider, Consumer/useContext 生产者消费者模式](https://github.com/ceilf6/Wiki/commit/350f5333144244f0f57539847bf2950c27ad263e)
- [通过上下文实现组件之间的联动 - 基础功能的表单组件Form Form.Input Form.Button](https://github.com/ceilf6/Wiki/commit/b35672fc29d1b873bb9f0172a13452b3bb29ad88)
- [componentDidMount => 执行队列](https://github.com/ceilf6/Wiki/commit/380b19a7d008f3f090e8f05b25f4302de8635fd6)
- [react渲染 - React元素 在 执行React Component 后得到 虚拟DOM树 React Element => 执行React Component => Reconciler diff(Fiber) => Commit => Real DOM 手动模拟实现递归渲染](https://github.com/ceilf6/Wiki/commit/ea7fde3bebc4b946ad4d50ff72118fde2fb4ecfb)
- [虚拟DOM编程思想 => 框架在内存中实现为JS对象, 如React17之前的createElement和17之后的jsx-runtime方法返回的对象](https://github.com/ceilf6/Wiki/commit/fb2fd3b0287f22fff529e270c5dbf8f783e44098)
- [Fiber, Reconciler from stack => **time slice** ; Scheduler => tasks priority](https://github.com/ceilf6/Wiki/commit/24078192d3000258c69178f6af0a0aa7f0815f97)
- [模拟 React ARCH Scheduler => priority ; requestIdleCallback 这个 API 有兼容性问题](https://github.com/ceilf6/Wiki/commit/f060289c20bf74a4bf4dc36a3b5e94e54a997ca0) [scheduler源码](https://github.com/facebook/react/tree/main/packages/scheduler) - ```npm install scheduler```
- [React ARCH 模拟 performUnitOfWork 创建下一个 FiberNode 对象,并且进行链表连接](https://github.com/ceilf6/Wiki/commit/7f17db7c40a4b5f4eeb87ababdc95d70424b146c)
- [MessageChannnel API => macrotask => Scheduler 目标是利用事件循环机制,将上一次被渲染打断的JS任务继续执行 - setTimeout 嵌套层次多后有 4ms clamping - requestAnimationFrame 只能在渲染前执行,rAF 必须等到下一帧 - microtask 通过 Promise 包装成一个微任务,但是微任务队列需要清空后才能渲染,浏览器渲染等不了那么久](https://github.com/ceilf6/Wiki/commit/33451f8e00083cb9f6606d484669431c6b1aa668)
- [Scheduler 源码指针](https://github.com/ceilf6/Wiki/commit/3ea90c87be8994a9564655d8ba7af649d2e826de)
- [Scheduler 源码分析: 调度任务 unstable_scheduleCallback taskQueue普通任务, timerQueue延时任务](https://github.com/ceilf6/Wiki/commit/4ca4d64af37ef08b51965a90f4461163fe575b6a)
- [通过 githook 钩子配置实现自动跟随子模块提交](https://github.com/ceilf6/Wiki/commit/52144dd5121dee78cc9b61e83b67582378b0d8d0)
- [Scheduler 源码分析: requestHostCallback => schedulePerformWorkUntilDeadline 根据不同的环境选择不同的生成宏任务的方式,大多数是实例化 MessageChannel 进行后续调度](https://github.com/ceilf6/Wiki/commit/d21e3399fae5f68cf84fe7a62b80654f3e5a9e3b)
- [Scheduler 源码分析: performWorkUntilDeadline 浏览器宏任务里的调度入口](https://github.com/ceilf6/Wiki/commit/cc5ac2d3dba251c086116fe79e4c0a96a23d66b7)
- [Scheduler 源码分析: flushWork => workLoop workLoop 首先有一个 while 循环,该 while 循环保证了能够从任务队列中不停的取任务出来 任务还没有过期 && 任务暂停、归还主线程渲染时break 根据 taskQueue => timerQueue 返回布尔值给 hasMoreWork](https://github.com/ceilf6/Wiki/commit/c18040520485cf1ad72c01811fd1cdcd90f53d36)
- [Scheduler 源码分析: shouldYieldToHost 判断任务执行阻塞时间是否会导致丢帧、需要归还主线程](https://github.com/ceilf6/Wiki/commit/e44e012f2f6a97a4f152a6282318213fe58a8d71)
- [Scheduler 源码分析: advanceTimers 遍历 timerQueue 判断是否有已经到期的任务,如果有、将这个任务放入到 taskQueue](https://github.com/ceilf6/Wiki/commit/9d197a8e06513b4ad56e59411629a293f0622008)
- [Scheduler 源码分析: 延时任务调度 unstable_scheduleCallback => requestHostTimeout](https://github.com/ceilf6/Wiki/commit/28e81a470f6807c26d9730495ef7b1b7b313fc03)
- [Scheduler 源码分析: => handleTimeout](https://github.com/ceilf6/Wiki/commit/496b0ee7b847175381a79872cb9ee7945d0c2512)
- [Scheduler 流程图](https://github.com/ceilf6/Wiki/commit/88cd2f08de48e7911df3c66f59a20ea9cb3715c5)
- [Scheduler 源码分析: MinHeap](https://github.com/ceilf6/Wiki/commit/c8fb951917f65f9f01839478e3068102563ae036)
- [React位运算源码分析: - FiberNode flags 合并变更状态、判断 - lanes & -lanes 取最高优先级 - Context 上下文判断等等](https://github.com/ceilf6/Wiki/commit/562de5acf6345f9edc32f264d37b0d2ff49e07bf)
- [Reconciler 源码分析: beginWork](https://github.com/ceilf6/Wiki/commit/b7c6f102b00a4769d289fce48d1abb3d35fdeda4)
- [Reconciler 源码分析: completeWork - mount阶段三步 ReactFiberConfig => HostConfig](https://github.com/ceilf6/Wiki/commit/f5d99560957ce17e113b982c5b097ae876ade500)
- [Reconciler 源码分析: completeWork - update阶段 diffProperties](https://github.com/ceilf6/Wiki/commit/79543b7d2d40ddae8e180a24fe5ee1af67f6ff35)
- [Reconciler 源码分析: completeWork - flags冒泡 => 快速确定 FiberNode 以及子树是否存在副作用 => 判断是否需要执行和副作用相关的操作](https://github.com/ceilf6/Wiki/commit/e902c27d22128fea941542669ee834863eb0b17f)
- [Reconciler 源码分析: 单节点diff, 多节点diff](https://github.com/ceilf6/Wiki/commit/ff41670c611bbe0ad7d07440032a2a76abdfb99d)
- [commit 源码分析: - commitXXXEffects - commitXXXEffects_begin - commitXXXEffects_complete 删除逻辑链条迁移 commitMutationEffectsOnFiber ⇒ recursivelyTraverseMutationEffects ⇒ commitDeletionEffects ⇒ commitDeletionEffectsOnFiber](https://github.com/ceilf6/Wiki/commit/2928da321e47aaffa128916b82ac5d8942e79c64)
- [commit 源码分析: Mutation - 2. 插入、移动Placement flag - 3. 更新属性 Layout - 负责执行类组件生命周期钩子函数、useLayoutEffect...](https://github.com/ceilf6/Wiki/commit/4270ec540780ead06e14760760fdf8e1d37f9e61)
- [lane 源码分析: 优先级调度](https://github.com/ceilf6/Wiki/commit/440723296c96c86a36bcac073f6358b31c27da89)
- [实现 合成事件对象 & 事件传播机制 模拟 ReactDOM 中的事件系统](https://github.com/ceilf6/Wiki/commit/305ece15fe5f19a2e38cfc24e3e568918ef0b20f)
- [Hooks 源码分析: hook对象 => 链表 执行流程](https://github.com/ceilf6/Wiki/commit/fcaa3aad117f02515b4fab201b2a5166d1918818)
- [useReducer - 同 Redux 都是可预测状态容器](https://github.com/ceilf6/Wiki/commit/f2e797d2183d3de16f88fee411f0a6934e51b392)
- [GSAP ScrollTrigger 的 scrub 实现滚动条映射到动画进度 用户滚动 → ScrollTrigger 计算 [0, 1] 进度 → 驱动 GSAP Tween 更新 o.value (0 → 120) → onUpdate 回调调用 canvas.upData(frameIndex) → Canvas drawImage() 绘制对应帧 → 视觉上形成"滚动控制动画"](https://github.com/ceilf6/Wiki/commit/150e17629469e088cb3a0959a12cedb53f47351c)
- [useState, useReducer 源码分析: useState 的本质就是 useReducer 的一个简化版 - 其 reducer 是内置的基础版而不是用户传入的](https://github.com/ceilf6/Wiki/commit/5cab75de958338108935cd8e0f066e3c361ff2e0)
- [Effect相关钩子 源码分析](https://github.com/ceilf6/Wiki/commit/9804504cf993254fc5a5cf1116e16f421909fabb)
- [useCallback 源码分析](https://github.com/ceilf6/Wiki/commit/c3fe8dd723e67f29b88e143a6034dd01e9782f3f)
- [useMemo 源码分析](https://github.com/ceilf6/Wiki/commit/46d1513d93c1198255891a15f3fa13ae19576501)
- [useRef 源码分析](https://github.com/ceilf6/Wiki/commit/e88418fc2036b2587122ded9fa255726416c8fd5)
- [update, UpdateQueue 源码分析](https://github.com/ceilf6/Wiki/commit/4e701d52bbf27ca3b15996ad6f0d6d596b7a04c2)
- [eagerState策略 源码分析](https://github.com/ceilf6/Wiki/commit/359eec8d4d5251fd94d0c4984c76527c006e5de3)
- [bailout策略 源码分析: update阶段后立马进行一次判断](https://github.com/ceilf6/Wiki/commit/24e74ea1035f7586faa88b86b6fa53d2ab315218)
- [bailout策略 源码分析: 第二次命中机会 开发者使用性能优化API实质就是放宽bailou策略的命中条件 - React.memo - PureComponent - markWorkInProgressReceivedUpdate()](https://github.com/ceilf6/Wiki/commit/f16dfea507988b85de21c0b1b5f38a8d887363dc)
- 源码阅读技巧 [#8](https://github.com/ceilf6/Wiki/discussions/8)
- [V8 源码分析 执行上下文Context - VariableEnvironment var穿透块](https://github.com/ceilf6/Wiki/commit/2943b794cd2a1f467f1b5619f84e09882438b79b)
- [V8 源码分析 变量提升 "变量提升"在 V8 里根本没有一个叫 Hoist 的运行时操作——它是编译期 DeclareVariable 时选择作用域的静态决策,配合 InitializationFlag 控制运行时是否允许访问](https://github.com/ceilf6/Wiki/commit/5830d47512ddd9eb56eb66195a17f558dfb4b579)
- [V8 源码分析 词法环境 1. 编译期 — 决定哪些变量需要进 Context](https://github.com/ceilf6/Wiki/commit/ad920ab4546cfb5db033f237063ebab663cbccf4)
- [V8 源码分析 词法环境 2. 字节码生成期 — 何时创 新Context](https://github.com/ceilf6/Wiki/commit/ad920ab4546cfb5db033f237063ebab663cbccf4)
- [V8 源码分析 词法环境 3. 运行时 Context 链 — ContextScope 管理 outer 引用](https://github.com/ceilf6/Wiki/commit/2d4ff28dc5a100d1c7d8cf8f0e49f97306c326d0)
- [V8 源码分析 词法环境 4. 变量读取 — 沿 Context 链查找](https://github.com/ceilf6/Wiki/commit/25641cb0784053ea41c369730715e1a4dac53804)
- [V8 源码分析 词法环境 作用域链 静态编译期 & 动态运行时](https://github.com/ceilf6/Wiki/commit/1e124d00cd8ce9000a306c8445fb8384da763bde)
- [V8 源码分析 ThisBinding this全局数据流向 四条绑定规则的底层字节码](https://github.com/ceilf6/Wiki/commit/633867a28243d7f6dd8912d7c7f283d73c634eee)
- [V8 源码分析 闭包 - 让变量的生命周期独立于调用栈 的底层实现细节](https://github.com/ceilf6/Wiki/commit/145239aa9571618ec46f8693e486615aa61b73ee)
- [V8 源码分析 垃圾回收GC 新老生代的分代处理( 内存页标志位 ),大多数对象出生在新生代 Minor GC,在存活超过一轮之后晋升为老生代 Major GC](https://github.com/ceilf6/Wiki/commit/f587d8310896b380f6a5d1810087345dc14b7b71)
- [em 在是 font-size 相对父元素字体大小,非font-size 属性相对当前自身元素字体大小](https://github.com/ceilf6/Wiki/commit/0d76ef2f8d3a3728d637ffe93512967933ca2553)
- [现代 CSS3 flex / grid 快速实现布局](https://github.com/ceilf6/Wiki/commit/29c88b7bdc586a188cbd2b1a32e504ed76a10d9f)
- [transition / animation 配合 transform 实现翻转效果动画](https://github.com/ceilf6/Wiki/commit/f509b08017963200729ecf6967116cf36236df3d)
- [箭头函数特性](https://github.com/ceilf6/Wiki/commit/da09debd21b20ddea999a9cc374db8b0a126264f)
- [V8 源码分析 启动注册内置全局对象Function Function 的 constructor, prototype ...](https://github.com/ceilf6/Wiki/commit/4d158024688aaf793b98ae4136445d96623bcb71)
- [V8 源码分析 老生代Major GC-三色标记](https://github.com/ceilf6/Wiki/commit/705449071d4b33f52d7f82c57cf90016fb1c5b5e)
- [ESM 会在静态编译阶段就分析依赖,不要在条件循环代码块中进行导入导出](https://github.com/ceilf6/Wiki/commit/9f9832160164d299e88deb43168a1303177f8ebd)
- [V8 源码分析 V8引擎只负责了微任务的调度,宏任务相关是纯虚函数让宿主环境覆盖](https://github.com/ceilf6/Wiki/commit/5987ee361893be3a42db7652a4fd25a9fe1d143c)
- [Chromium 源码分析 事件循环 for( ; ; ) 并不会空转,而是根据是否有延时任务有两种休眠和唤醒方式](https://github.com/ceilf6/Wiki/commit/d39823089b24a4cf3ee937672b25f508b7ff3104)
- [Chromium 源码分析 浏览器决定携带cookie](https://github.com/ceilf6/Wiki/commit/943abcd1735e16850054276d2f1ead0509cf19d5)
- [V8 源码分析 新生代 Minor GC 的处理细节 新生代的复制 GC 是以空间换时间,且时间代价与存活量成正比。老生代存活量大、体积大,两个维度都不划算](https://github.com/ceilf6/Wiki/commit/1b07f1c0e29ce967585c35ddfa143fcc55efd9a3)
- [useFetch useRef 创建在渲染期间持久存在、修改不触发重渲染的容器 AbortController 浏览器原生API用于取消异步操作 useEffect副作用清理函数会 在组件卸载时 以及 依赖项更新副作用下次执行之前 两种情况执行,常用于 AJAX请求、定时器、事件监听、WebSocket 的清理 不用 useCallback 的话,reFetch 每次渲染都会创建一个新的函数引用](https://github.com/ceilf6/Wiki/commit/6d3dbcefa6db709010caa1fd82e0174877725111)
- [Ahooks 源码分析 useRequest 通过 计数器取消异步,没有用 AbortController ,因为 service 可以是任意的异步函数](https://github.com/ceilf6/hooks/commit/dc7ade661005f2a7353f21e72a79f095774206f1)
- [Ahooks 源码分析 useMemoizedFn: useCallback 依赖变化时引用会变,使用时需要注意依赖; 而 useMemoizedFn 引用永远稳定、无需设置依赖,且始终调用最新函数](https://github.com/ceilf6/hooks/commit/f077ec8b9ff57cf0e5466875536116c4d75d747a)
- [用记忆化解决循环引用问题:如果某个对象已经拷贝过了,就直接返回之前的拷贝](https://github.com/ceilf6/Wiki/commit/e58609ba381913dee323fed2a41d073a1566cdba)
- [pinia 的两种风格设置仓库](https://github.com/ceilf6/Wiki/commit/0313340a0b4eacb18af99617c5d50f5c896a8e27)
- [pinia🍍 源码分析 defineStore, storeToRefs setup风格效率更高](https://github.com/ceilf6/Wiki/commit/b441616c31502eaf93decc066081024598dc542d)
- [子模块管理 在源码分析达成当前阶段好奇后,可以先通过 git.ignoredRepositories 暂时收起,以免太多仓库展开导致的混乱](https://github.com/ceilf6/Wiki/commit/a7d3918d451beb34345e423cfbafa5e76b4ab053)
- [React 源码思想实现 createFiber 创造 vnode 的运行时实例对象 FiberNode](https://github.com/ceilf6/mini-react/commit/a48006861d688f1775ce55fd9ce0274794eb6464)
- [React 源码思想实现 WorkLoop 深度优先](https://github.com/ceilf6/Wiki/commit/be90f09f5f67da2d9e225e0374033ca1b1679b0e)
- [React 源码思想实现 遍历更新 DOM 节点上的属性](https://github.com/ceilf6/Wiki/commit/8ec0954f1b83a20a1483b601ce365da3afdd5694)
- [React 源码思想实现 beginWork 中,根据 FiberNode 对象的 tag 值,调用不同的方法进行处理](https://github.com/ceilf6/Wiki/commit/67f35407e64f4aa9ca1b638e03ebc21ff51daf8e)
- [React 源码思想实现 首次渲染子节点处理-diff、Fiber链表串联](https://github.com/ceilf6/Wiki/commit/8f39b488e2a4e8aff997d39b9c393c4c442bc1b2)
- [封装私有属性的三种实现方式 通过函数+闭包模拟实现](https://github.com/ceilf6/Wiki/commit/c8db932f09dcf4d4691848f0d60792f0d01f3f4f)
- [单调栈记录引用实现 tab parser: md; Python AST; yaml; CLI tree](https://github.com/ceilf6/Wiki/commit/99c78093416570a4184ecc3b2799164a28ffbb28)
- [TS常用类型](https://github.com/ceilf6/Wiki/commit/190331a647bc789421769234df99e88aeee27ca1)
- [TS常用类型](https://github.com/ceilf6/Wiki/commit/9edb26be4f29a4858a27f76a97e874b0ce0d60f7)
- [没有类型声明文件的第三方库解决方案](https://github.com/ceilf6/Wiki/commit/014f918445ad9d2319b629f02990d5d7440220d1)
- [TS 配合 React + vite 开发](https://github.com/ceilf6/Wiki/commit/709e2c55454dd36eb2e120518c19de0dd9e193ea)
- [发布订阅模式](https://github.com/ceilf6/Wiki/commit/1eb71d86d18389766f0760675c5b2e96ce9fd5cb)
- [通过 NodeJS 进程隔离 配合a2a协议 实现SubAgent分割上下文](https://github.com/ceilf6/FrontAgent/tree/develop/packages/core/src/sub-agents)
- [观察者模式-TS](https://github.com/ceilf6/Wiki/commit/83718f7de6197d0663ec7a19892ad9165081893a)
- [文档开发 skil : 提供模版、脚本支持](https://github.com/ceilf6/Wiki/commit/aa312dbfdf97735385cbda7eda84985e1562cd7f)
- [Transformer 论文 注意力机制](https://arxiv.org/html/1706.03762)
- [阶段7 git, gh 仓库管理 ( resolve #3 )](https://github.com/ceilf6/Wiki/commit/12b685dbd459ecee221cd3c7f74a34a4596f818d)
- [质量检测子Agent](https://github.com/ceilf6/Wiki/commit/db503c89b733f1dcd684736c31998b38f0ea1e22)
- [a2a schema](https://github.com/ceilf6/Wiki/commit/b95c100f538d43b4761bb6dbb3a26ba22be6ae1d)
- [多智能体共享事实 - 类似于React状态上移,主Agent持有事实来源,在调用SubAgent的时候下发事实快照,子代理在a2a返回响应时返回更新包,主Agent进行合并](https://github.com/ceilf6/Wiki/commit/5ccfb7468949e43a4b0567c73744019e974240c2)
- [顺序架构 - 手写 DAG 实现调度](https://github.com/ceilf6/Wiki/commit/ca3239a4c5ef199e26589ccba26f1cbeaa615b82)
- [风险隔离+平滑迁移 添加LangGraph架构 控制顺序](https://github.com/ceilf6/Wiki/commit/fd3f5dc25dd71ea3246bd66d8502cea954f87fe2)
- [事件总线实现上的一些细节问题](https://github.com/ceilf6/Wiki/commit/105dffe3a786bd849465e91c583261844f95f17e)
- [设计问题 数组一般维护都是同一类型数据,标志位最好专门开个对象属性存储](https://github.com/ceilf6/Wiki/commit/5ed0dc62144906b66e5d426a9e05c38b072468c9)
- [新旧数组对比diff算法实现上的一些细节问题](https://github.com/ceilf6/Wiki/commit/6f55cf34468eea0bd475bd9739ce4f1212aa10c0)
- [缓存、超时...的请求包装函数中的一些细节问题](https://github.com/ceilf6/Wiki/commit/accde32068d0aa8c35a80a6d8d167c11060ad7a9)
- [请求包装函数 - 大道至简](https://github.com/ceilf6/Wiki/commit/aea79958974385e1a4738868781b09bbb8e0581b)
- [将规划者的可复用能力全部技能化,planner 通过技能注册表选择执行skill,不再直接硬编码 ( resolve #2 )](https://github.com/ceilf6/Wiki/commit/16b11dae9d6dfd84fda53dbd2d688d49fd859d3d)
- [openclaw 网关-统一鉴权 应用层协议 http 和 WebSocket 都只是薄封装,具体区别只是提取凭证方式不同](https://github.com/ceilf6/Wiki/commit/6e10c4117404517427efc95d953d5d489e26e9ec)
- [将执行者executor可复用能力技能化](https://github.com/ceilf6/Wiki/commit/4705f912c9f8a877d94abd327e8a1e37e9b92135)
- [RAG - 以 Wiki 的 README 作为根节点,展开知识图谱,README中每个链接都是一条边,用于获取目标知识](https://github.com/ceilf6/Wiki/commit/bc89bc8310db5c586f8558bcd2437ecd809eeeb5)
- [如果 README-only 可能会过滤有用知识,升级为基于整个 Wiki(除子模块外)的 hybrid search](https://github.com/ceilf6/Wiki/commit/71d93c628089cd33e5b0f6b65a3ed2f871f21bb2)
- [嵌入模型服务来源默认走LLM的配置](https://github.com/ceilf6/Wiki/commit/99390c8ff23c4932dc2516ab8d6631695b6c45d5)
- [嵌入模型端口需要在大模型的"v1"后加上"/embeddings"](https://github.com/ceilf6/Wiki/commit/cabfeea691baee2616c017296a3b63b4da90a4c9)
- [两次BFS/DFS求树的直径](https://github.com/ceilf6/Wiki/commit/cea2c619aafcea474046df5e3c735ab9d85c70a5)
- [JS手写 堆](https://github.com/ceilf6/Wiki/blob/main/JS/algorithm/手写堆.js)
- [简单工厂模式统一产品的创建接口](https://github.com/ceilf6/Wiki/commit/a3f11ba9357aefdfe8fdfa75ce1c5f732d56ceec)
- [简单工厂不符合开闭原则,通过工厂方法实现产品和工厂一一对应进行解决 简单工厂类职责过重,每次新增产品都需要更新工厂类,那么需要在工厂再抽象一层 IFactories](https://github.com/ceilf6/Wiki/commit/ca385f4989bab8799b98761055fccbdd960f9f76)
- [抽象工厂统一一系列产品的工厂](https://github.com/ceilf6/Wiki/commit/9476739f3576a1608ee9486968cff97dea8c2d5c)
- [装饰器模式实现链式拓展功能,本质就是**组合**](https://github.com/ceilf6/Wiki/commit/161591ec90232a4c0a1fd18b1d6aef9cc5e65694)
- [装饰器模式TS写法](https://github.com/ceilf6/Wiki/commit/adfcca92a1176e5f71205a321af861bba603ca94)
- [适配器模式胶水层实现接口转换](https://github.com/ceilf6/Wiki/commit/6d911bad537fef5e0dfba6328f4e6f4440e08ca2)
- [通过代理模式实现中间层过滤等操作](https://github.com/ceilf6/Wiki/commit/03e47cd56b172bcc4eb0d2b1619e258f5a11125f)
- [模版模式抽象基类规定框架后子类特异化步骤](https://github.com/ceilf6/Wiki/commit/61e72525b420ba782a1ba1869b6b4aa4de1f1502)
- [通过策略模式实现表单字段校验算法的实现与使用的解耦](https://github.com/ceilf6/Wiki/commit/f481eae7733b681b3335f8ea12785492303e601e)
- [通过策略模式实现国际化支持](https://github.com/ceilf6/Wiki/commit/b29db9d3d168eefd4eea0dee2fe168045159e0f7)
- [通过 ES6 Proxy API 实现代理模式,减少一层代理类](https://github.com/ceilf6/Wiki/commit/aac333150a0d3b9e7d989df19cd086e8093455f9)
- [通过 generator API 实现迭代器模式](https://github.com/ceilf6/Wiki/commit/4474fedcbad86227a6997763274c568d354fe5c0)
- [飞书开发者平台配置机器人后对接龙虾跑通示例](https://github.com/ceilf6/Wiki/commit/1f4e69ede0b8bd82dde7e1789231954b165819a6)
- [将嵌入模型输出的知识向量导入 weaviate向量数据库 实现知识库的增量更新、提高生成、检索效率](https://github.com/ceilf6/Wiki/commit/b4c2fc1d1117ebd58a02627b7b2e1eddb3ed8cff)
- [召回失败解决 - 规划器把知识库结果误当成了当前工作区里的本地文件,所以生成了“读取知识库文件”的步骤 - 提示词逻辑修补](https://github.com/ceilf6/Wiki/commit/a0a6bc29afcd47805e684d5f01f5310ff55560db)
- [向量数据库优化 - 通过大模型以前端领域专业翻译用户需求,以更好进行向量检索](https://github.com/ceilf6/Wiki/commit/e1fae5de2ffd11c8d6c402d13e1d47635cff5315)
- [向量数据库优化 - 优化分块器进行特殊字符分块(未来token便宜之后可以直接让LLM分块) 由于知识库内容过多,语义分块相似度计算代价过高](https://github.com/ceilf6/Wiki/commit/7f1eb04cbb8a8bb215b547afb4885ab276d67d6a)
- [向量数据库优化 - 通过重排序器中对双向编码器得到的初步结果进行交叉编码,得到更高精准度的目标文档](https://github.com/ceilf6/Wiki/commit/c906e694b5d60125ea8961ca93bca898a20a2628)
- [基于 ai-sdk 打通 FrontAgent CLI 暴露支持 LLM 随机生成相关 API 方便使用者进行采样策略控制](https://github.com/ceilf6/Wiki/commit/92d1fcdc953dbfcf1c343175fbe306317395661f)
- [Clean Architecture 示范 - 让内层的业务逻辑独立于外层框架和基础设施存在 1. 核心业务规则 2. 业务逻辑 3. 接口适配层 4. 实现细节](https://github.com/ceilf6/Wiki/commit/8b0e6a73df51f4a05de163aa5b826c97eb1f28a2)
- [Agent Skill 模式 实现可分发、可复用、面向具体库的 skill 包装层](https://github.com/ceilf6/Wiki/commit/cffde000e7dc4edb37b49bb1ea479f6b485af732)
- [Promise.all 注意串行阻塞问题](https://github.com/ceilf6/Wiki/commit/df97f51a3b9aaeed4d08aeb1c42e71f29a505e6a)
- [收集参数 递归过程中直接将参数传递,在外面维护会导致参数丢失](https://github.com/ceilf6/Wiki/commit/7b70c5604dcba063d73602733775ce5e36230fa4)
- [NodeJS源码学习子模块 排除了deps/目录防止臃肿 后续学习具体拉下例如Libuv-source](https://github.com/ceilf6/Wiki/commit/ff32ca3996732bcdc9784dd6193660a8fa914138)
- [CMJ require 源码学习: 1. 先缓存、后执行 => 处理循环依赖 2. 路径解析、查找文件 3. 加载文件 4. 函数包裹 5. modules对象](https://github.com/ceilf6/Wiki/commit/f3b40da86b79f7bbe3b554b6bd2e0294f0ba67af)
- [NodeJS API 操作系统OS相关](https://github.com/ceilf6/Wiki/commit/db30d97cb4fdfd78362c7b9bafab84bf899fa143)
- [NodeJS API 文件路径path相关](https://github.com/ceilf6/Wiki/commit/b7e8f514a36f0f4be2c30044ed5bfc402eafcd05)
- [NodeJS API 统一资源定位符URL相关](https://github.com/ceilf6/Wiki/commit/3dd9fb70e6bc380c5152eacb53fc7346f64fb56b)
- [NodeJS API 工具util相关](https://github.com/ceilf6/Wiki/commit/dc4191b3c4d17ba28faa683700139505308d101e)
- [NodeJS API 文件系统fs相关 readFile读取文件](https://github.com/ceilf6/Wiki/commit/51835b4f7045a0811b1983be6f8cfe04bf341acd)
- [NodeJS API writeFile写入文件](https://github.com/ceilf6/Wiki/commit/6fe5c8adbb68ea1326cae0c4eea96b51587fba2b)
- [NodeJS API stat读物文件状态信息 isDirectory/mode判断是普通文件还是目录文件](https://github.com/ceilf6/Wiki/commit/cdb3a21a87f914e8d64d1e14b0e11449058d8aed)
- [NodeJS API readdir读取目录状态 mkdir创建目录](https://github.com/ceilf6/Wiki/commit/f61720e1169b6fd5bbdb530d841fbab88f6fb008)
- [NodeJS API 文件不存在相关处理 不推荐原先的exists API先判断再处理,而是推荐用 stat 等API先操作再检查抓取错误](https://github.com/ceilf6/Wiki/commit/288efc632736137910fbb38f33c3c8bd23e399da)
- [NodeJS 递归读取文件信息 静态工厂处理构造函数无法异步问题 用静态 Map 做全局缓存 通过缓存Promises防止缓存击穿/重复缓存](https://github.com/ceilf6/Wiki/commit/2a2570c9d392e552bd480e5d989b9c4d324b9cb3)
- [注意和关键词区分 - MyFile](https://github.com/ceilf6/Wiki/commit/2e31e9c13c8e999270a71a2dd09162df2180b28e)
- [NodeJS 可读文件流](https://github.com/ceilf6/Wiki/commit/d15d3f5e6c245e7f946e28c7374d138dde773ce6)
- [NodeJS 可写文件流 背压问题](https://github.com/ceilf6/Wiki/commit/2b16adc651371e52f36fc4baf86b75f9d107ba14)
- [实现文件复制 read write < copyFile < stream pipe < stream drain-resume](https://github.com/ceilf6/Wiki/commit/e456acc8f23ab07fec0f89631c8b993eaf281a7c)
- [NodeJS net模块 通过模拟解析响应配合Content-Length判断通信是否结束](https://github.com/ceilf6/Wiki/commit/1ffeba2bc1b14c6b81a127c11ff8fd4659a27754)
- [NodeJS net模块 创建服务器监听并响应](https://github.com/ceilf6/Wiki/commit/0282185b3a1d1923365daa6bb3f6147440c35f51)
- [NodeJS http模块 发送请求](https://github.com/ceilf6/Wiki/commit/131235ef510e1e4880659dfb6c2216dc59c4ca48)
- [请求、响应 \r\n 格式](https://github.com/ceilf6/Wiki/commit/92d0e58f1d3dafa53a18a1e96b6955183de1cbc7)
- [通过 startsWith 校验防止../目录穿透 & 优化错误流收纳处理](https://github.com/ceilf6/Wiki/commit/d6424b18778ac5c5b79384ed7a6d838a5697c1cc)
- [服务补上 MIME 类型支持 添加Content-Type响应头](https://github.com/ceilf6/Wiki/commit/49d99a0a77523be63c8378869decfdae5f7a52b0)
- [NodeJS http模块 服务编写 静态资源服务器实践例子](https://github.com/ceilf6/Wiki/commit/68a52f9bd89c7121fd7ebc9f7b66ac8c1a9ea272)
- [<link> 标签要加 rel="stylesheet",浏览器才会把它当成 CSS 文件加载](https://github.com/ceilf6/Wiki/commit/bbea7301edb3ba6ffbf2020c100d4756954114d2)
- [NodeJS https模块配置](https://github.com/ceilf6/Wiki/commit/350151d9c2578adcd89740e794221159dba5be86)
- [openssl 1024 参数会被 https 报错"key too small" 至少需要 2048 参数](https://github.com/ceilf6/Wiki/commit/c1ab26cd7557709020c66f9f612a01cbc8353362)
- [模拟 CA 机构进行钥匙生成](https://github.com/ceilf6/Wiki/commit/26c43f7fe505251d48fed5c6f8cfb1c6c8d73b00)
- [NodeJS事件循环 poll阶段执行其他回调函数阻塞计时器回调的执行](https://github.com/ceilf6/Wiki/commit/250942bcadd5d955af5961619f329abfc122f7c4)
- [setImmediate 比 setTimeout 性能高 因为后者会在timer阶段事件队列(排序过的)中一个个计时器取出来看 但是前者是check阶段的、立即执行](https://github.com/ceilf6/Wiki/commit/3a5beda41ae7051bc3565a5b8f5810117c3256a2)
- [优化文件分块 字符数直接作为token会大3-4倍,对应增加了API调用次数,直接对token/3 子词切分增强搜索 增加了支持的文件语言 处理md列表过度分块 过滤无用的压缩文件](https://github.com/ceilf6/Wiki/commit/02a3b949a83c766bb1a9d17d29b505df715d0784)
- [setTimeout & setImmediate order 注意 setTimeout 最小也是 1 所以二者的顺序是不一定的 假如到 timers 时大于1了那么就先执行 setTimeout 否则 check 时执行 setImmediate 等到第二圈的时候再执行 timeout](https://github.com/ceilf6/Wiki/commit/c4dfbd1be9568653f42b8ffd12bc50aff991bd9d)
- [claude code源码指针 - 封装大模型的智能体分层体系](https://github.com/ceilf6/cc-source/commit/ac812e268f5051a5d9b64c3379b04ffafec67361)
- [agent-memory-optimizer 一个用于优化智能体记忆能力的skill](https://github.com/ceilf6/Wiki/commit/0d08c9a3870104d34f76d3ceab4b185e8da91163)
- 抽离自 [FrontAgent](https://github.com/ceilf6/FrontAgent) 的[可复用skills skill-lifecycle 一个通过二元分析在全生命周期优化、迭代skill的skill frontend-design 用于提高智能体审美的skill requirement-interviewer 用于将用户的输入转为大模型更能理解的需求,从而提高大模型的输出质量 frontend-reviewer 前端侧的代码和UI审计skill](https://github.com/ceilf6/Wiki/commit/b4273b4a240d044a200f8aeedb470f50addd377a)
- 使用 [agent-memory-optimizer](https://github.com/ceilf6/skills/tree/main/agent-memory-optimizer) skill [实现了跨会话记忆体系](https://github.com/ceilf6/Wiki/commit/9db44c2e6810daf5fb30df81f33a90d402c0adb4)
- [agent-cli-architect 审计和设计 AI Agent CLI 的多模式入口架构:快路径检测、生命周期钩子、入口收敛复用、可扩展命令注册表](https://github.com/ceilf6/ceilf6-skills/tree/main/agent-cli-architect)
- [tui-render-optimizer 审计和优化 React-based 终端 UI 渲染管线:HostConfig 适配器、脏标记+块拷贝增量渲染、终端 I/O 原子性防闪烁](https://github.com/ceilf6/ceilf6-skills/tree/main/tui-render-optimizer)
- [agent-state-architect 设计流式 AI Agent 界面的分层状态架构:三级状态分层(全局/本地/外部)、集中式副作用处理器、跨 React/非React 边界状态桥接](https://github.com/ceilf6/ceilf6-skills/tree/main/agent-state-architect)
- [使用 agent-cli-architect, tui-render-optimizer, agent-state-architect 技能包完成 CLI 主入口重构、核心事件系统增强以及 Ink TUI 的整体接入:](https://github.com/ceilf6/Wiki/commit/263e2d12b9b5b5b2871a32f56a9a9199b2fc79b9)
- [通过位运算(八进制)管理权限](https://github.com/ceilf6/Wiki/commit/258cba2a8a663461c5f94014e41dd09291139d70)
- [Shell 脚本 目录文件摘要函数 日志错误统计 重要目录磁盘使用情况](https://github.com/ceilf6/Wiki/commit/110ad351aa68f809cdc0dbc19f4cc16ead5a9cef)
- [Shell 添加最后修改时间到文件开头 通过系统目录树中 /tmp 存储临时文件实现添加开头 通过 ls -l 拿到最后修改时间](https://github.com/ceilf6/Wiki/commit/88e2b975b61159d51b7b3ea1c66c3c968aa6be57)
- [Shell 通过 while do done 逐行读取文件; IFS划分 - 通过 set 分割一个个参数然后用 # 获取参数个数 或 read存储到数组中用 #arr[@]](https://github.com/ceilf6/Wiki/commit/7e5b6c9f7fb119ac03943832a57c87500125697c)
- [通过递归实现 Shell tree 命令 - local 存储传下的缩进数等、防止污染; basename 拿到文件名; ""防止空白折叠](https://github.com/ceilf6/Wiki/commit/31e33f331961345ca1f075dfedd0916954578be8)
- [awk 中不能用回溯引用 \1,那么就只能先判断格式再 单独判断回溯](https://github.com/ceilf6/Wiki/commit/c6d7461c29d9697f8a1d604e36b08be1aaa058f3)
- [bit最小单位 Byte基本存储单位 Word处理单位](https://github.com/ceilf6/Wiki/commit/58586ac4d4d0d4af7ae80a976ba4bb847e56678f)
- [实现监听热更新](https://github.com/ceilf6/Wiki/commit/a7c87aecd75a599b7b227617c9682fca46c16ffe)
- [md文件转网站页面的热更新开发模版框架 ./operating-system-app](https://github.com/ceilf6/operating-system)
- [添加埋点进行流量分析 Cloudflare web-analytics](https://github.com/ceilf6/Wiki/commit/4c14a15cbd221f06c90aae66df3ffdff53eb10c8)
- [根据 proxyman 抓包分析 claude code 后的结论,引入 “先观察,再操作” 以及 “渐进式探索的思想:面对不确定的文件系统状态,像二分一样逐步缩小范围,先 Glob 全局搜索,再 Bash 精确确认,最终才执行写入操作“](https://github.com/ceilf6/Wiki/commit/f87072fba2174e30fa461f643632c71db7e74ae0)
- [通过 proxy-server 分析 skill 在初始化时 cc 告诉 模型 如何使用技能 用户输入后会拼接系统提示词告诉 模型 如何使用技能以及何时使用 大模型后续会按照要求的 json 格式调用和 cc 进行交互](https://github.com/ceilf6/Wiki/commit/1edf5b6c0df6f32d6a7a276bab86c78ea0b76292)
- [gitnexus 在 CLAUDE.md 入口中告诉了大模型如何操作使用 .claude/skills/gitnexus](https://github.com/ceilf6/Wiki/commit/327249bb42a2213b44a0081120aa102f9ef986ad)
- [.gitnexus 存放了 analyze 后的数据库文件 IBUG 以及 wiki 后的文档](.gitnexus)
- [系统提示词](AI/learn-2&3/GLOBAL-AGENTS.md) [工程提示词](AI/learn-2&3/REP-AGENTS.md)
- [mcp-server 获取定制化工具能力 @mcp 搜索 vscode mcp 市场](https://github.com/ceilf6/Wiki/commit/c355225ed004a0768311ce042925f780ec3a9279)
- [从 FrontAgent 提取提示词和 Schema,编写数据生成脚本](https://github.com/ceilf6/Wiki/commit/5c1c50ccd380fc6fc538120a054a9ba222f73e4b)
- [Unsloth SFT 微调训练脚本](https://github.com/ceilf6/Wiki/commit/52d9fbd055a613cbe4a0c66478327d0bfd5a1c42)
- [推理评估脚本](https://github.com/ceilf6/Wiki/commit/b56b63b1808b0e19fe98ca8785a04c12b0d38c44)
- [HuggingFace 发布脚本](https://github.com/ceilf6/Wiki/commit/d7f86fc941a52db7b8624e283315dbe23647db5e)
- [工程提示词标明文件路径](https://github.com/ceilf6/Wiki/commit/2abd946a07b55e5a989d376fb38d5640c1050f86)
- [直接加载 LoRA adapter,但 adapter 不是完整模型,需要先加载基座模型再套 adapter](https://github.com/ceilf6/Wiki/commit/ece28b9b678fb4b5d629903d08fba38dda09e72e)
- [Claude 蒸馏了 Qwen 进行 SFT 的 LoRA 模型](https://huggingface.co/ceilf6/frontagent-planner-7B-lora)
- [session 带上了 context 上下文 - “记忆”](https://github.com/ceilf6/Wiki/commit/978900319d0a2dabf83a93d099a7fe71183b6f16)
- [蒸馏 MCP 服务支持,方便外部大模型调用功能](https://github.com/ceilf6/Wiki/commit/f6d5c50219516ca78dab1ee63a328bc9d1be5d44)
- [将 OpenViking 引入 Wiki ,方便 LLM 进行渐进式探索](https://github.com/ceilf6/Wiki/commit/5865f83e3f9c51fce4dd1821e76ca41d4505251b)
- [通过冷、暖启动减少知识库导致的耗时](https://github.com/ceilf6/Wiki/commit/73f3fede3b307da2156d9fb6e589141e11934f58)