CondorHero
CondorHero
标题错了一个单词 Cheatsheet😂
@NLRX-WJC 用 Hook 重构的话,顺便把 TypeScript 也加上,就更完美了👍
@nikomal antd 结合 react-dnd 实现的表格行拖拽,shineout 怎么用?
EventSource does not support custom headers. event-source-polyfill is implemented with fetch/XMR. It can support custom headers, but the browser tab cannot be displayed correctly. At present, we can only accept...
I want to say that `@lillallol/outline-pdf` is not perfect. The outline generated by `@lillallol/outline-pdf` can only jump to the corresponding page, but in the pdf editor, a good outline can...
 我在实现 [vite-plugin-fake-server](https://github.com/condorheroblog/vite-plugin-fake-server) 的时候也遇到了这个问题,大家检查下 `tsconfig.json` 文件的 moduleResolution 属性值是不是 `node10` 或者 `node`,如果是改成其他值就行了,比如: ``` "moduleResolution": "bundler", ``` 详细原因见:https://github.com/condorheroblog/vite-plugin-fake-server/issues/1
统一设置 timeout 和 response headers 确实是一个非常常见和实用的功能,我在 [vite-plugin-fake-server](https://github.com/condorheroblog/vite-plugin-fake-server) 中添加了这个功能,如下配置即可启用: ```ts import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; import { vitePluginFakeServer } from "vite-plugin-fake-server"; // https://vitejs.dev/config/ export default defineConfig({...
说实话这个库应该默认支持 XHR 和 fetch,fetch 的 API 更加现代化,所以我基本不用 XHR,除非涉及到上传下载进度的场景。因此我参考了 mock,自己实现了:[vite-plugin-fake-server](https://github.com/condorheroblog/vite-plugin-fake-server),默认可以拦截两种请求。 除此之外还支持以下特性: 1. 支持 TypeScript 2. API 的格式兼容 [vite-plugin-mock](https://github.com/vbenjs/vite-plugin-mock) 3. 一键配置,生产环境直接打开 [enableProd](https://github.com/condorheroblog/vite-plugin-fake-server#enableprod) 就生效了 4. 全局设置 headers 5. 全局设置 timeout 6. 等等
@webzihe @charlie447 @oyboyb @lidongcheng88 打扰大家了,我也遇到开发环境没问题,但一上生产环境就不行了,折腾了半天,索性重新实现了,目前已经发布了:[vite-plugin-fake-server](https://github.com/condorheroblog/vite-plugin-fake-server) 1. 支持 TypeScript 2. API 的格式兼容 [vite-plugin-mock](https://github.com/vbenjs/vite-plugin-mock) 3. 一键配置,生产环境直接打开 [enableProd](https://github.com/condorheroblog/vite-plugin-fake-server#enableprod) 就生效了 4. 等等
Hello folks, Sorry to bother you guys, I strongly agree to add promise to the return value of getImageBuffer, because requesting images through fetch API is a good practice whether...