主要公开日志

来自康健生活

所有康健生活公开日志的联合展示。您可以通过选择日志类型、输入用户名(区分大小写)或相关页面(区分大小写)筛选日志条目。

日志
(最新 | 最旧) 查看( | )(20 | 50 | 100 | 250 | 500)
  • 2025年7月19日 (六) 04:21 Kangkk 留言 贡献创建了页面Node.js/npm/package.json (创建页面,内容为“== 标题文本 == === 标题文本 === ==== postinstall ====”)
  • 2025年7月19日 (六) 04:19 Kangkk 留言 贡献删除页面Node.js/npm/unsafe-perm (被清空前的内容为:“== 引言 == 官方文档:https://docs.npmjs.com/misc/config#unsafe-perm”)
  • 2025年7月19日 (六) 04:18 Kangkk 留言 贡献创建了页面Node.js/npm/工具 (创建页面,内容为“== 分析工具 == # [https://github.com/privatenumber/pkg-size.dev pkg-size.dev] # [https://github.com/pastelsky/bundlephobia bundlephobia.com]”)
  • 2025年7月19日 (六) 04:15 Kangkk 留言 贡献创建了页面Node.js/npm/error (创建页面,内容为“=== 权限 === 如果直接全局安装会报错。 {{shc_out|<syntaxhighlight lang="bash"> npm install webpack-cli -g </syntaxhighlight>|<syntaxhighlight lang="text"> npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm WARN webpack-cli@3.3.12 requires a peer of webpack@4.x.x but none is installed. You must install peer dependencies yourself. npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules np…”)
  • 2025年7月19日 (六) 04:13 Kangkk 留言 贡献创建了页面Node.js/npm/权限 (创建页面,内容为“== 管理员 == 授权用户 {{shc|<syntaxhighlight lang="bash"> npm owner add<user>[<@scope>/]<pkg> npm owner rm<user>[<@scope>/]<pkg> npm owner ls [<@scope>/]<pkg></syntaxhighlight>|$|/home/kangkk}}”)
  • 2025年7月19日 (六) 04:11 Kangkk 留言 贡献创建了页面Node.js/npm/指令 (创建页面,内容为“== 安装路径 == === 路径 === {{shc_out|<syntaxhighlight lang="bash"> npm root -g</syntaxhighlight>|<syntaxhighlight lang="text"> /usr/local/lib/node_modules</syntaxhighlight>|$}} === 环境 === {{shc_out|<syntaxhighlight lang="bash"> npm config ls</syntaxhighlight>|<syntaxhighlight lang="text"> ; cli configs metrics-registry = "https://registry.npm.taobao.org/" scope = "" user-agent = "npm/6.14.5 node/v12.18.1 linux x64" ; userconfig /home/kangjian/.npmrc…”)
  • 2025年7月18日 (五) 20:03 Kangkk 留言 贡献创建了页面Node.js/npm/环境变量 (创建页面,内容为“== 环境变量 == npm 在 PowerShell 中不起作用。 {{Shc_out|<syntaxhighlight lang="bash">Get-Command npm</syntaxhighlight>|<syntaxhighlight lang="bash"> CommandType Name Version Source ----------- ---- ------- ------ ExternalScript npm.ps1 C:\Program Files\nodejs\npm.ps1 </syntaxhighlight>|>|PS…”)
  • 2025年7月18日 (五) 20:02 Kangkk 留言 贡献创建了页面Node.js/npm/域 (创建页面,内容为“== scope == 发布 scope 组件之前需要初始化项目。 {{shc|<syntaxhighlight lang="bash"> npm init --scope=kangjian.xyz</syntaxhighlight>|$|/home/kangkk}} 推送组件。 {{shc|<syntaxhighlight lang="bash"> npm publish --access public</syntaxhighlight>|$|/home/kangkk}}”)
  • 2025年7月18日 (五) 20:01 Kangkk 留言 贡献创建了页面Node.js/npm/代理 (创建页面,内容为“== proxy == 查看代理 {{Shc_out|<syntaxhighlight lang="bash"> npm config get proxy</syntaxhighlight>|<syntaxhighlight lang="bash">null </syntaxhighlight>|$|/home/kangkk}} {{shc|<syntaxhighlight lang="bash"> npm config set proxy http://127.0.0.1:1080 npm i node-sass # 下载完成后删除 http 代理 npm config delete proxy</syntaxhighlight>|$}}”)
  • 2025年7月18日 (五) 20:00 Kangkk 留言 贡献创建了页面Node.js/npm/缓存 (创建页面,内容为“== 缓存 == 获取缓存位置 {{Shc_out|<syntaxhighlight lang="bash">npm config get cache </syntaxhighlight>|<syntaxhighlight lang="bash">C:\Users\康健\AppData\Local\npm-cache </syntaxhighlight>|$|/home/kangkk}} 清除缓存 {{shc|<syntaxhighlight lang="bash"> npm cache clean -f</syntaxhighlight>|$|/home/kangkk}} 清理垃圾数据 {{shc|<syntaxhighlight lang="bash"> npm cache verify</syntaxhighlight>|$|/home/kangkk}}”)
  • 2025年7月18日 (五) 19:38 Kangkk 留言 贡献创建了页面Node.js/npm/配置文件 (创建空白页面)
  • 2025年7月18日 (五) 19:35 Kangkk 留言 贡献创建了页面Node.js/npm/源 (创建页面,内容为“== 标题文本 == == 源地址 == {| class="wikitable" |- | 官方 || https://registry.npmjs.org/ |- | 淘宝 || https://registry.npm.taobao.org |- | 阿里云 || https://npm.aliyun.com/ |- | 腾讯云 || https://mirrors.cloud.tencent.com/npm/ |- | 华为云 || https://mirrors.huaweicloud.com/repository/npm/ |- | 网易 || https://mirrors.163.com/npm/ |- | 中国科学技术大学 || http://mirrors.ustc.edu.cn/ |- | 清华大学 || https://mirrors.tuna.tsinghu…”)
  • 2025年7月18日 (五) 08:49 Kangkk 留言 贡献创建了页面模板:Linenum/doc (创建页面,内容为“== Usage == * <nowiki>{{linenum|1.}}</nowiki> 参数: * 1: 输入行号 == Examples == 示例 {{linenum|1.}}测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本 <!-- 本行下加入模板(Documentation)的分类 --> <includeonly>Category:工具模板</includeonly> <!-- 本行下加入模板的子页面(Documentation/doc)分类 --> <noinclude>Category:模板说明文件</no…”)
  • 2025年7月18日 (五) 08:48 Kangkk 留言 贡献创建了页面模板:Linenum/style.css (创建页面,内容为“.kwy_templ_linenum_wrap { position: absolute; left: -20px; font-weight: bold; color: red; text-decoration: overline; }”)
  • 2025年7月18日 (五) 08:47 Kangkk 留言 贡献创建了页面模板:Linenum (创建页面,内容为“<templatestyles src="Linenum/style.css" /><noinclude>{{Documentation}}</noinclude><includeonly><span class="templ--version__box"><em class="templ--version__box-title">version:</em><em class="templ--version__box-text">{{{1|默认版本}}}</em><em class="templ--version__box-title">date:</em><em class="templ--version__box-date">{{{2|默认时间}}}</em></span></includeonly>”)
  • 2025年7月18日 (五) 08:25 Kangkk 留言 贡献创建了页面模板:Version date/doc (创建页面,内容为“== Usage == * <nowiki>{{version|1|2}}</nowiki> 参数: * 1: 输入版本号码 * 1: 输入版本时间 用于标记当前版本。 == Examples == 示例 测试文本测试文本测试文本测试文本测试文本{{version|2|2025-6-9}}测试文本测试文本测试文本测试文本测试文本 <!-- 本行下加入模板(Documentation)的分类 --> <includeonly>Category:工具模板</includeonly> <!-- 本行下加入模板的子页面(Documenta…”)
  • 2025年7月18日 (五) 08:24 Kangkk 留言 贡献创建了页面模板:Version date/style.css (创建页面,内容为“.templ--version__box { font-size: calc(1em * 0.875); line-height: 1; direction: ltr; background: blue; border-radius: 2px; font-family: sans-serif; margin: 0 5px 0 1px; } .templ--version__box-title { background-color: red; color: white; padding: 0 5px 0 5px; } .templ--version__box-text { background-color: blue; color: white; padding: 0 5px 0 5px; }”)
  • 2025年7月18日 (五) 08:23 Kangkk 留言 贡献创建了页面模板:Version date (创建页面,内容为“<templatestyles src="Version_date/style.css" /><noinclude>{{Documentation}}</noinclude><includeonly><span class="templ--version__box"><em class="templ--version__box-title">version:</em><em class="templ--version__box-text">{{{1|默认版本}}}</em></span></includeonly>”)
  • 2025年7月18日 (五) 07:53 Kangkk 留言 贡献创建了页面Node.js/npm/规范 (创建页面,内容为“== semver-range version ==”)
  • 2025年7月18日 (五) 07:52 Kangkk 留言 贡献创建了页面Node.js/npm/依赖检查 (创建空白页面)
  • 2025年6月28日 (六) 15:17 Kangkk 留言 贡献创建了页面编程语言/Rust/Error (创建页面,内容为“== openssl == window 系统下安装 openssl 异常”)
  • 2025年6月28日 (六) 15:17 Kangkk 留言 贡献创建了页面编程语言/Rust (创建页面,内容为“== error == error”)
  • 2025年6月27日 (五) 08:48 Kangkk 留言 贡献删除页面编程语言/NPM (内容为:“== 源 == === 源管理工具 === ==== nrm ==== == 缓存 == 清理缓存 {{shc|<syntaxhighlight lang="bash"> npm cache clean --force</syntaxhighlight>|$|/home/kangkk}}”,唯一贡献者是“Kangkk”(讨论))
  • 2025年6月12日 (四) 12:15 Kangkk 留言 贡献创建了页面JavaScript/vue.js/渲染 (创建页面,内容为“== 渲染组件 == <syntaxhighlight lang="javascript"> import { render, h } from 'vue' const vnode = h('div') render(vnode, container)</syntaxhighlight>”)
  • 2025年5月16日 (五) 18:51 Kangkk 留言 贡献创建了页面Git/强制覆盖 (创建页面,内容为“== 原因由来 == 强制覆盖之所以单独开一篇,是因为这个操作的代价过于巨大。 在昨天(2025.05.16)因为某些原因我执行了 <syntaxhighlight lang="bash" inline> git push origin master:master -f </syntaxhighlight> 强制覆盖远程分支,但是忽略了其中一个子目录也是一个 git 项目目录,导致这个目录没有上传上去。偏又我有一种强迫症,喜欢经常性的删除项目重新 clone。所以…”)
  • 2025年4月30日 (三) 12:05 Kangkk 留言 贡献创建了页面CSS/点和网格 (创建页面,内容为“== 网格 == {{codepen |id=gird-dots-576576 |height=300 |style=body { --dot-bg: black; --dot-color: white; --dot-size: 1px; --dot-space: 22px; background: linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space), linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space), var(--dot-color); } }}”)
  • 2025年4月30日 (三) 11:56 Kangkk 留言 贡献删除页面模板:Hcdiff/styles.css (内容为:“.templ--hcdiff__box-content .mw-highlight { margin: 0; }”,唯一贡献者是“Kangkk”(讨论))
  • 2025年4月30日 (三) 11:55 Kangkk 留言 贡献创建了页面模板:Hcdiff/styles.css (创建页面,内容为“.templ--hcdiff__box-content .mw-highlight { margin: 0; }”)
  • 2025年4月30日 (三) 11:10 Kangkk 留言 贡献创建了页面模板:Codepen/styles.css (创建页面,内容为“.wiki-codepen-iframe { width: 100%; border: none; overflow: auto; } .wiki-codepen { max-height: 500px; min-height: 100px; overflow: hidden; margin: 10px 0; } .wiki-codepen .tabs-tabbox { margin: 0; } .wiki-codepen .tabs-content { overflow:auto; } .wiki-codepen .tabs-tabbox > .tabs-label { border-radius: 1px 1px 0 0; } .wiki-codepen .tabs-tabbox > .tabs-container { border-top: 1px solid #AAA; overflow: hidden; height: calc(100% - 30px…”)
  • 2025年4月27日 (日) 09:18 Kangkk 留言 贡献创建了页面Mysql/GROUP CONCAT (创建页面,内容为“== 引言 == 有一个需求是查找所有的表和字段结构 找到一个不能完成的示例,但有一定的参考价值,在语句执行过程中单表可以完成,但是多表抛出错误 <syntaxhighlight lang="mysql"> DELIMITER $$ CREATE PROCEDURE myprocedure13() BEGIN SET SESSION group_concat_max_len = 1000000; ## 输出 eq: SHOW CREATE TABLE user; SHOW CREATE TABLE version; SELECT GROUP_CONCAT( CONCAT('SHOW CREATE TABLE ', TABLE_NAME,…”)
  • 2025年4月21日 (一) 08:21 Kangkk 留言 贡献移动页面Git/定时拉取代码至Git/定时,不留重定向
  • 2025年4月20日 (日) 12:13 Kangkk 留言 贡献创建了页面Git/清理 (创建页面,内容为“== 标题文本 == == 清理优化本地版本 == {{shc|<syntaxhighlight lang="bash"> git gc --prune=now</syntaxhighlight>|$|/home/kangkk}}”)
  • 2025年4月20日 (日) 11:57 Kangkk 留言 贡献创建了页面Git/源 (创建页面,内容为“== 标题文本 == == 设置多源 ==”)
  • 2025年4月19日 (六) 16:18 Kangkk 留言 贡献创建了页面JavaScript/css (创建页面,内容为“<syntaxhighlight lang="javascript"> window.getComputedStyle(telaRef.value!).getPropertyValue('transform')</syntaxhighlight>”)
  • 2025年4月16日 (三) 15:43 Kangkk 留言 贡献创建了页面JavaScript/vue.js/getCurrentInstance (创建页面,内容为“== 标题文本 == == 获取全局注册组件 == <syntaxhighlight lang="jsx"> <template> <EchartsLinePanel v-if="options" :layerOptions="options" @update:layerOptions="handleUpdateOptions" /> </template> <script lang="ts" setup> import { defineAsyncComponent, getCurrentInstance, type ComponentInternalInstance } from 'vue' const { appContext } = <ComponentInternalInstance>getCurrentInstance() const EchartsLinePanel = defineAsyncComponent({…”)
  • 2025年4月14日 (一) 08:36 Kangkk 留言 贡献创建了页面JavaScript/vue.js/defineAsyncComponent (创建页面,内容为“== 标题文本 == == useage == === 定义异步组件 === <syntaxhighlight lang="javascript"> const AsyncComp = defineAsyncComponent(() => { // 加载函数返回Promise return new Promise((resolve, reject) => { // ...可以从服务器加载组件 resolve(loaded component:​) }) })</syntaxhighlight> === ES 模块动态导入 === <syntaxhighlight lang="javascript"> const AsyncComp = defineAsyncComponent(() => import('./components/MyComponen…”)
  • 2025年4月14日 (一) 07:45 Kangkk 留言 贡献创建了页面Nginx/同源策略 (创建页面,内容为“== 标题文本 == == Access-Control-Allow-Origin == <pre> server { listen 80; server_name example.com; location / { # 允许所有域名跨域 add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response. add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx…”)
  • 2025年4月11日 (五) 08:15 Kangkk 留言 贡献创建了页面JavaScript/vue.js/defineProps (创建页面,内容为“== 默认值 == vue 3.5.0+ 响应式 Props 解构 <syntaxhighlight lang="typescript"> const { type = 'number', useColor = false, usePrefix = false, value, title = '', color = '#ffffffff', } = defineProps({ type: String as PropType<'number' | 'string'>, useColor: Boolean, usePrefix: Boolean, value: [Number, String] as PropType<number | string>, title: String, color: [String, undefined] as PropType<ColorInputWithoutInstance>, }) </syntaxh…”)
  • 2025年4月8日 (二) 18:25 Kangkk 留言 贡献创建了页面JavaScript/vue.js/v-model (创建页面,内容为“== 标题文本 == <syntaxhighlight lang="html5"> // in parent.vue <C :a="a" @onA="handleA" /> // in child.vue // 引用 a, 更新值 emit('handleA') // in parent.vue // 调用 handleA 更新 a </syntaxhighlight> v-model 合并减少代码量 <syntaxhighlight lang="html5"> // in parent.vue <C v-model:a="a" /> // in child.vue // 引用 a, 更新值 emit('update:handleA') </syntaxhighlight>”)
  • 2025年4月5日 (六) 09:08 Kangkk 留言 贡献创建了页面JavaScript/Svelte.js (创建页面,内容为“== 组件 == === 动态组件 === <syntaxhighlight lang="html5"> <svelte:component this={comp} /></syntaxhighlight> == html == === 字符串 === <syntaxhighlight lang="javascript"> {@html html_str}</syntaxhighlight>”)
  • 2025年4月3日 (四) 06:58 Kangkk 留言 贡献创建了页面JavaScript/vue.js/computed (创建页面,内容为“== 标题文本 ==”)
  • 2025年4月2日 (三) 09:28 Kangkk 留言 贡献创建了页面JavaScript/vue.js/Provide Inject (创建页面,内容为“== 标题文本 == == ref == 配置文件 {{hc|head=conf.ts|output=<syntaxhighlight lang="javascript"> import { type InjectionKey, type Ref } from 'vue' export const DEFAULT_PARAMS = 1 export const valueKey = Symbol('value_symbol_string') as InjectionKey<Ref<number>> </syntaxhighlight>}} 父组件,上级组件 <syntaxhighlight lang="html5"> <script lang="ts" setup> import { provide, ref } from 'vue' import { DEFAULT_PARAMS, valueKey } from './config' ... co…”)
  • 2025年3月27日 (四) 08:47 Kangkk 留言 贡献创建了页面康健生活/养猫 (创建页面,内容为“== 养病 == {| class="wikitable" |- | 益泌乐 || 示例 || 示例 |- | 示例 || 示例 || 示例 |- | 示例 || 示例 || 示例 |}”)
  • 2025年3月22日 (六) 06:29 Kangkk 留言 贡献创建了页面运维时间/GithubAction (创建页面,内容为“== 标题文本 == == actionlint == 检查 yml 文件语法 {{shc|<syntaxhighlight lang="bash"> go install github.com/rhysd/actionlint/cmd/actionlint@latest</syntaxhighlight>|$|/home/kangkk}}”)
  • 2025年3月21日 (五) 13:37 Kangkk 留言 贡献创建了页面JavaScript/Surge (创建页面,内容为“== 标题文本 == {{shc|<syntaxhighlight lang="bash"> npm install --global surge</syntaxhighlight>|$|/home/kangkk}}”)
  • 2025年3月18日 (二) 13:42 Kangkk 留言 贡献创建了页面JavaScript/vue.js/watch (创建页面,内容为“== VUE 3 ==”)
  • 2025年3月11日 (二) 13:58 Kangkk 留言 贡献删除页面文件:Liruichu.jpg (内容为:“liruichu”,唯一贡献者是“Kangkk”(讨论))
  • 2025年3月11日 (二) 13:49 Kangkk 留言 贡献创建了页面文件:Liruichu.jpg
  • 2025年3月11日 (二) 13:49 Kangkk 留言 贡献上传文件:Liruichu.jpg
  • 2025年3月11日 (二) 06:52 Kangkk 留言 贡献创建了页面Docker/yapi (创建页面,内容为“== 标题文本 == 下载 OS {{shc|<syntaxhighlight lang="bash"> sudo docker pull archlinux</syntaxhighlight>|$|/home/kangkk}}”)
(最新 | 最旧) 查看( | )(20 | 50 | 100 | 250 | 500)