赞助名单:
timi ¥10阅读全文>>
安装workbox-webpack-plugin插件
.umirc.ts 增加
import { generalWorkBoxConfig, swScript } from './config/config';
chainWebpack: (config) => {
if (process.env.NODE_ENV === 'production') {
generalWorkBoxConfig(config);
}
},
headScripts: process.env.NODE_ENV === 'production' ? [...阅读全文>>
prettier-plugin-organize-imports
prettier-plugin-packagejson阅读全文>>
您好,您可以使用log4js模块来记录日志。首先,您需要安装log4js模块。您可以使用以下命令安装它:
npm install log4js
然后,您需要在代码中引入log4js模块并配置它。以下是一个示例配置文件:
{
"appenders": {
"file": {
"type": "file",
"filename": "logs/access.log",
"maxLogSize": 10485760,
"backups": 3,
"compress": true
},
"console": {
"type": "conso...阅读全文>>
Vue 可以使用 React 组件,但是需要使用一个叫做 `vue-reactive-renderer` 的库来实现。
下面是基本的步骤:
1. 安装 `vue-reactive-renderer`:
```bash
npm install vue-reactive-renderer
```
2. 导入 `VueReactiveRenderer`:
```javascript
import VueReactiveRenderer from 'vue-reactive-renderer';
```
3. 创建一个 React 组件:
```jav...阅读全文>>
https://monica.im/?c=TLUAZF34 注册就可以免费使用chatgpt4了阅读全文>>
https://zhuanlan.zhihu.com/p/139318295
https://github.com/awmleer/staged-components
也可用
useSWR
import { useState } from "react";
import useSWR from "swr";
import "./App.css";
const fetcher = (url) => fetch(url).then((res) => res.json());
function App() {
const [count, setCount] ...阅读全文>>
用于 Web 的免费 AI Copilot。在任何网站上使用 ChatGPT(插件和 GPT-4)、Bard、Bing 和 Claude,无需复制粘贴。一键编写、重写、总结、翻译、解释或回复任何文本。它还提供了访问 ChatGPT、Bard、Bing 和 Claude 的最快方式,只需按 Cmd/Alt + J。不需要 ChatGPT (OpenAI) 帐户。我们提供免费 AI 来为扩展提供支持,速度与 ChatGPT Plus 一样快,但完全免费!UseChatGPT.AI 是一款免费的 Chrome 扩展程序,它通过增强 ChatGPT(插件和 GPT-4)、Bard、Bing Chat ...阅读全文>>
autocannon 中文译为 自动炮, 是一款基于nodejs的压力测试工具,支持命令行和写代码来进行测试
npm 地址 www.npmjs.com/package/aut…
因为我是前端所有选择了这个。 其他诸如 ab、webbench均可。
全局安装autocannon
npm i autocannon -g
命令行使用
执行
autocannon -c 100 -d 5 -p 1 https://appvxnsma4r5053.pc.xiaoe-tech.com/
命令解释
上述命令解释: 用100个连接、持续...阅读全文>>
报错:
warning: /var/cache/yum/x86_64/7/influxdata/packages/telegraf-1.26.3-1.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 7df8b07e: NOKEY
解决方案:
https://www.influxdata.com/blog/linux-package-signing-key-rotation/
配置 Linux 主机以使用新的签名密钥
新密钥的指纹是9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8...阅读全文>>