chore: format script code. 4132a13a96

This commit is contained in:
jaywcjlove
2022-10-28 16:26:25 +00:00
parent d659018cb1
commit af8ff61c0b
13 changed files with 267 additions and 122 deletions

View File

@ -38,7 +38,7 @@
<p>这份快速参考备忘单提供了文件权限的简要概述,以及 chmod 命令的操作</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#语法">语法</a><a aria-hidden="true" class="leve4 tocs-link" href="#示例">示例</a><a aria-hidden="true" class="leve4 tocs-link" href="#递归更改文件和目录">递归更改文件和目录</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-生成器">Chmod 生成器</a><a aria-hidden="true" class="leve3 tocs-link" href="#通用权限">通用权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#解释">解释</a><a aria-hidden="true" class="leve4 tocs-link" href="#dir-的权限分析"> 的权限分析</a><a aria-hidden="true" class="leve3 tocs-link" href="#权限模式">权限模式</a><a aria-hidden="true" class="leve3 tocs-link" href="#objects">Objects</a><a aria-hidden="true" class="leve3 tocs-link" href="#权限">权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#文件类型">文件类型</a><a aria-hidden="true" class="leve2 tocs-link" href="#chmod-示例">Chmod 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#操作符">操作符</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-600">chmod 600</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-664">chmod 664</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-777">chmod 777</a><a aria-hidden="true" class="leve3 tocs-link" href="#符号模式">符号模式</a><a aria-hidden="true" class="leve3 tocs-link" href="#删除权限">删除权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#可执行文件">可执行文件</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-754">chmod 754</a><a aria-hidden="true" class="leve2 tocs-link" href="#chmod-实践">Chmod 实践</a><a aria-hidden="true" class="leve3 tocs-link" href="#ssh-权限">SSH 权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#网络权限">网络权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#批量更改">批量更改</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#语法">语法</a><a aria-hidden="true" class="leve4 tocs-link" href="#示例">示例</a><a aria-hidden="true" class="leve4 tocs-link" href="#递归更改文件和目录">递归更改文件和目录</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-生成器">Chmod 生成器</a><a aria-hidden="true" class="leve3 tocs-link" href="#通用权限">通用权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#解释">解释</a><a aria-hidden="true" class="leve4 tocs-link" href="#dir-的权限分析">dir 的权限分析</a><a aria-hidden="true" class="leve3 tocs-link" href="#权限模式">权限模式</a><a aria-hidden="true" class="leve3 tocs-link" href="#objects">Objects</a><a aria-hidden="true" class="leve3 tocs-link" href="#权限">权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#文件类型">文件类型</a><a aria-hidden="true" class="leve2 tocs-link" href="#chmod-示例">Chmod 示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#操作符">操作符</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-600">chmod 600</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-664">chmod 664</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-777">chmod 777</a><a aria-hidden="true" class="leve3 tocs-link" href="#符号模式">符号模式</a><a aria-hidden="true" class="leve3 tocs-link" href="#删除权限">删除权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#可执行文件">可执行文件</a><a aria-hidden="true" class="leve3 tocs-link" href="#chmod-754">chmod 754</a><a aria-hidden="true" class="leve2 tocs-link" href="#chmod-实践">Chmod 实践</a><a aria-hidden="true" class="leve3 tocs-link" href="#ssh-权限">SSH 权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#网络权限">网络权限</a><a aria-hidden="true" class="leve3 tocs-link" href="#批量更改">批量更改</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap"><div class="wrap-header h3wrap"><h3 id="语法"><a aria-hidden="true" tabindex="-1" href="#语法"><span class="icon icon-link"></span></a>语法</h3><div class="wrap-body">
<pre class="language-shell"><code class="language-shell code-highlight"><span class="code-line">$ <span class="token function">chmod</span> <span class="token punctuation">[</span>options<span class="token punctuation">]</span> <span class="token operator">&#x3C;</span>permissions<span class="token operator">></span> <span class="token operator">&#x3C;</span>file<span class="token operator">></span>
</span></code></pre>

View File

@ -38,7 +38,7 @@
<p>这是用于 Node.js 的快速、不拘一格、极简主义的 Web 框架,包含 <a href="http://expressjs.com/">Express.js</a> 的 API 参考列表和一些示例。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#hello-world">Hello World</a><a aria-hidden="true" class="leve3 tocs-link" href="#express--h">express -h</a><a aria-hidden="true" class="leve3 tocs-link" href="#express">express()</a><a aria-hidden="true" class="leve3 tocs-link" href="#router">Router</a><a aria-hidden="true" class="leve3 tocs-link" href="#application">Application</a><a aria-hidden="true" class="leve4 tocs-link" href="#属性"></a><a aria-hidden="true" class="leve4 tocs-link" href="#events"></a><a aria-hidden="true" class="leve4 tocs-link" href="#方法"></a><a aria-hidden="true" class="leve3 tocs-link" href="#request">Request</a><a aria-hidden="true" class="leve4 tocs-link" href="#属性-1">属性</a><a aria-hidden="true" class="leve4 tocs-link" href="#方法-1">方法</a><a aria-hidden="true" class="leve3 tocs-link" href="#response">Response</a><a aria-hidden="true" class="leve4 tocs-link" href="#属性-2">属性</a><a aria-hidden="true" class="leve4 tocs-link" href="#方法-2">方法</a><a aria-hidden="true" class="leve2 tocs-link" href="#示例">示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#router-1">Router</a><a aria-hidden="true" class="leve3 tocs-link" href="#response-1">Response</a><a aria-hidden="true" class="leve3 tocs-link" href="#request-1">Request</a><a aria-hidden="true" class="leve3 tocs-link" href="#resend">res.end()</a><a aria-hidden="true" class="leve3 tocs-link" href="#resjsonbody">res.json([body])</a><a aria-hidden="true" class="leve3 tocs-link" href="#appall">app.all</a><a aria-hidden="true" class="leve3 tocs-link" href="#appdelete">app.delete</a><a aria-hidden="true" class="leve3 tocs-link" href="#appdisablename">app.disable(name)</a><a aria-hidden="true" class="leve3 tocs-link" href="#appdisabledname">app.disabled(name)</a><a aria-hidden="true" class="leve3 tocs-link" href="#appengineext-callback">app.engine(ext, callback)</a><a aria-hidden="true" class="leve3 tocs-link" href="#applistenport-host-backlog-callback">app.listen([port[, host[, backlog]]][, callback])</a><a aria-hidden="true" class="leve3 tocs-link" href="#路由">路由</a><a aria-hidden="true" class="leve3 tocs-link" href="#中间件">中间件</a><a aria-hidden="true" class="leve3 tocs-link" href="#使用模版">使用模版</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#hello-world">Hello World</a><a aria-hidden="true" class="leve3 tocs-link" href="#express--h">express -h</a><a aria-hidden="true" class="leve3 tocs-link" href="#express">express()</a><a aria-hidden="true" class="leve3 tocs-link" href="#router">Router</a><a aria-hidden="true" class="leve3 tocs-link" href="#application">Application</a><a aria-hidden="true" class="leve4 tocs-link" href="#属性">属性</a><a aria-hidden="true" class="leve4 tocs-link" href="#events">Events</a><a aria-hidden="true" class="leve4 tocs-link" href="#方法">方法</a><a aria-hidden="true" class="leve3 tocs-link" href="#request">Request</a><a aria-hidden="true" class="leve4 tocs-link" href="#属性-1">属性</a><a aria-hidden="true" class="leve4 tocs-link" href="#方法-1">方法</a><a aria-hidden="true" class="leve3 tocs-link" href="#response">Response</a><a aria-hidden="true" class="leve4 tocs-link" href="#属性-2">属性</a><a aria-hidden="true" class="leve4 tocs-link" href="#方法-2">方法</a><a aria-hidden="true" class="leve2 tocs-link" href="#示例">示例</a><a aria-hidden="true" class="leve3 tocs-link" href="#router-1">Router</a><a aria-hidden="true" class="leve3 tocs-link" href="#response-1">Response</a><a aria-hidden="true" class="leve3 tocs-link" href="#request-1">Request</a><a aria-hidden="true" class="leve3 tocs-link" href="#resend">res.end()</a><a aria-hidden="true" class="leve3 tocs-link" href="#resjsonbody">res.json([body])</a><a aria-hidden="true" class="leve3 tocs-link" href="#appall">app.all</a><a aria-hidden="true" class="leve3 tocs-link" href="#appdelete">app.delete</a><a aria-hidden="true" class="leve3 tocs-link" href="#appdisablename">app.disable(name)</a><a aria-hidden="true" class="leve3 tocs-link" href="#appdisabledname">app.disabled(name)</a><a aria-hidden="true" class="leve3 tocs-link" href="#appengineext-callback">app.engine(ext, callback)</a><a aria-hidden="true" class="leve3 tocs-link" href="#applistenport-host-backlog-callback">app.listen([port[, host[, backlog]]][, callback])</a><a aria-hidden="true" class="leve3 tocs-link" href="#路由">路由</a><a aria-hidden="true" class="leve3 tocs-link" href="#中间件">中间件</a><a aria-hidden="true" class="leve3 tocs-link" href="#使用模版">使用模版</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap row-span-2"><div class="wrap-header h3wrap"><h3 id="hello-world"><a aria-hidden="true" tabindex="-1" href="#hello-world"><span class="icon icon-link"></span></a>Hello World</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<ul class="style-timeline">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@
<p>本备忘单旨在快速理解 <a href="https://github.com/less/less.js">Less</a> 所涉及的主要概念,显示了它的常用方法使用清单。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" href="#变量variables">变量(Variables)</a><a aria-hidden="true" class="leve3 tocs-link" href="#混合mixins">混合(Mixins)</a><a aria-hidden="true" class="leve3 tocs-link" href="#嵌套nesting">嵌套(Nesting)</a><a aria-hidden="true" class="leve3 tocs-link" href="#父选择器-">父选择器 &#x26;</a><a aria-hidden="true" class="leve3 tocs-link" href="#规则嵌套和冒泡">@规则嵌套和冒泡</a><a aria-hidden="true" class="leve3 tocs-link" href="#运算operations">运算(Operations)</a><a aria-hidden="true" class="leve4 tocs-link" href="#calc-特例">calc() 特例</a><a aria-hidden="true" class="leve3 tocs-link" href="#转义escaping">转义(Escaping)</a><a aria-hidden="true" class="leve3 tocs-link" href="#函数functions">函数(Functions)</a><a aria-hidden="true" class="leve3 tocs-link" href="#命名空间和访问符">命名空间和访问符</a><a aria-hidden="true" class="leve3 tocs-link" href="#映射maps">映射(Maps)</a><a aria-hidden="true" class="leve3 tocs-link" href="#作用域scope">作用域Scope</a><a aria-hidden="true" class="leve3 tocs-link" href="#注释comments">注释Comments</a><a aria-hidden="true" class="leve3 tocs-link" href="#导入importing">导入Importing</a><a aria-hidden="true" class="leve3 tocs-link" href="#extend">Extend</a><a aria-hidden="true" class="leve2 tocs-link" href="#函数">函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#逻辑函数-if--boolean">逻辑函数 if &#x26; boolean</a><a aria-hidden="true" class="leve3 tocs-link" href="#字符串函数">字符串函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#替换字符串-replace">替换字符串 replace</a><a aria-hidden="true" class="leve3 tocs-link" href="#length">length</a><a aria-hidden="true" class="leve3 tocs-link" href="#extract">extract</a><a aria-hidden="true" class="leve3 tocs-link" href="#range">range</a><a aria-hidden="true" class="leve3 tocs-link" href="#each">each</a><a aria-hidden="true" class="leve3 tocs-link" href="#each-1">each()</a><a aria-hidden="true" class="leve3 tocs-link" href="#使用-range-和-each-创建一个-for-循环">使用 创建一个 循环</a><a aria-hidden="true" class="leve3 tocs-link" href="#数学函数">数学函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#颜色定义函数">颜色定义函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#类型函数">类型函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#杂项函数">杂项函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#颜色通道函数">颜色通道函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#色彩运算函数">色彩运算函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#颜色混合功能">颜色混合功能</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" href="#变量variables">变量(Variables)</a><a aria-hidden="true" class="leve3 tocs-link" href="#混合mixins">混合(Mixins)</a><a aria-hidden="true" class="leve3 tocs-link" href="#嵌套nesting">嵌套(Nesting)</a><a aria-hidden="true" class="leve3 tocs-link" href="#父选择器-">父选择器 &#x26;</a><a aria-hidden="true" class="leve3 tocs-link" href="#规则嵌套和冒泡">@规则嵌套和冒泡</a><a aria-hidden="true" class="leve3 tocs-link" href="#运算operations">运算(Operations)</a><a aria-hidden="true" class="leve4 tocs-link" href="#calc-特例">calc() 特例</a><a aria-hidden="true" class="leve3 tocs-link" href="#转义escaping">转义(Escaping)</a><a aria-hidden="true" class="leve3 tocs-link" href="#函数functions">函数(Functions)</a><a aria-hidden="true" class="leve3 tocs-link" href="#命名空间和访问符">命名空间和访问符</a><a aria-hidden="true" class="leve3 tocs-link" href="#映射maps">映射(Maps)</a><a aria-hidden="true" class="leve3 tocs-link" href="#作用域scope">作用域Scope</a><a aria-hidden="true" class="leve3 tocs-link" href="#注释comments">注释Comments</a><a aria-hidden="true" class="leve3 tocs-link" href="#导入importing">导入Importing</a><a aria-hidden="true" class="leve3 tocs-link" href="#extend">Extend</a><a aria-hidden="true" class="leve2 tocs-link" href="#函数">函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#逻辑函数-if--boolean">逻辑函数 if &#x26; boolean</a><a aria-hidden="true" class="leve3 tocs-link" href="#字符串函数">字符串函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#替换字符串-replace">替换字符串 replace</a><a aria-hidden="true" class="leve3 tocs-link" href="#length">length</a><a aria-hidden="true" class="leve3 tocs-link" href="#extract">extract</a><a aria-hidden="true" class="leve3 tocs-link" href="#range">range</a><a aria-hidden="true" class="leve3 tocs-link" href="#each">each</a><a aria-hidden="true" class="leve3 tocs-link" href="#each-1">each()</a><a aria-hidden="true" class="leve3 tocs-link" href="#使用-range-和-each-创建一个-for-循环">使用 range 和 each 创建一个 for 循环</a><a aria-hidden="true" class="leve3 tocs-link" href="#数学函数">数学函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#颜色定义函数">颜色定义函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#类型函数">类型函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#杂项函数">杂项函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#颜色通道函数">颜色通道函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#色彩运算函数">色彩运算函数</a><a aria-hidden="true" class="leve3 tocs-link" href="#颜色混合功能">颜色混合功能</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap"><div class="wrap-header h3wrap"><h3 id="介绍"><a aria-hidden="true" tabindex="-1" href="#介绍"><span class="icon icon-link"></span></a>介绍</h3><div class="wrap-body">
<p>Less(Leaner Style Sheets 的缩写)是一门向后兼容的 <a href="./css.html"><code>CSS</code></a> 扩展语言</p>
<ul>

View File

@ -41,7 +41,7 @@
<p>这个 npm 快速参考备忘单显示了它的常用命令使用清单。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#常用命令">常用命令</a><a aria-hidden="true" class="leve3 tocs-link" href="#包管理">包管理</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装名称">安装名称</a><a aria-hidden="true" class="leve3 tocs-link" href="#清单">清单</a><a aria-hidden="true" class="leve3 tocs-link" href="#更新">更新</a><a aria-hidden="true" class="leve3 tocs-link" href="#杂项功能">杂项功能</a><a aria-hidden="true" class="leve3 tocs-link" href="#更改包裹可见性">更改包裹可见性</a><a aria-hidden="true" class="leve3 tocs-link" href="#要将包转移到-npm-用户帐户">要将包转移到 npm 用户帐户</a><a aria-hidden="true" class="leve3 tocs-link" href="#取消发布包">取消发布包</a><a aria-hidden="true" class="leve3 tocs-link" href="#发布包-npmjsorg">发布包 npmjs.org</a><a aria-hidden="true" class="leve2 tocs-link" href="#配置">配置</a><a aria-hidden="true" class="leve3 tocs-link" href="#npmrc">.npmrc</a><a aria-hidden="true" class="leve3 tocs-link" href="#配置内容">配置内容</a><a aria-hidden="true" class="leve3 tocs-link" href="#npmignore"></a><a aria-hidden="true" class="leve3 tocs-link" href="#中国镜像站安装">中国镜像站安装</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="常用命令"><a aria-hidden="true" tabindex="-1" href="#常用命令"><span class="icon icon-link"></span></a>常用命令</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#常用命令">常用命令</a><a aria-hidden="true" class="leve3 tocs-link" href="#包管理">包管理</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装名称">安装名称</a><a aria-hidden="true" class="leve3 tocs-link" href="#清单">清单</a><a aria-hidden="true" class="leve3 tocs-link" href="#更新">更新</a><a aria-hidden="true" class="leve3 tocs-link" href="#杂项功能">杂项功能</a><a aria-hidden="true" class="leve3 tocs-link" href="#更改包裹可见性">更改包裹可见性</a><a aria-hidden="true" class="leve3 tocs-link" href="#要将包转移到-npm-用户帐户">要将包转移到 npm 用户帐户</a><a aria-hidden="true" class="leve3 tocs-link" href="#取消发布包">取消发布包</a><a aria-hidden="true" class="leve3 tocs-link" href="#发布包-npmjsorg">发布包 npmjs.org</a><a aria-hidden="true" class="leve2 tocs-link" href="#配置">配置</a><a aria-hidden="true" class="leve3 tocs-link" href="#npmrc">.npmrc</a><a aria-hidden="true" class="leve3 tocs-link" href="#配置内容">配置内容</a><a aria-hidden="true" class="leve3 tocs-link" href="#npmignore">.npmignore</a><a aria-hidden="true" class="leve3 tocs-link" href="#中国镜像站安装">中国镜像站安装</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="常用命令"><a aria-hidden="true" tabindex="-1" href="#常用命令"><span class="icon icon-link"></span></a>常用命令</h2><div class="wrap-body">
<!--rehype:body-class=cols-2-->
</div></div><div class="h2wrap-body cols-2"><div class="wrap"><div class="wrap-header h3wrap"><h3 id="包管理"><a aria-hidden="true" tabindex="-1" href="#包管理"><span class="icon icon-link"></span></a>包管理</h3><div class="wrap-body">

View File

@ -40,7 +40,7 @@
<p>这个快速参考备忘清单,显示了关于 package.json 文件中所需内容的全部内容。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#重要字段">重要字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" href="#name"></a><a aria-hidden="true" class="leve3 tocs-link" href="#version"></a><a aria-hidden="true" class="leve3 tocs-link" href="#tips">Tips</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装-name-包">安装 包</a><a aria-hidden="true" class="leve2 tocs-link" href="#信息类字段">信息类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#description"></a><a aria-hidden="true" class="leve3 tocs-link" href="#license"></a><a aria-hidden="true" class="leve4 tocs-link" href="#license字段必须是以下之一"></a><a aria-hidden="true" class="leve3 tocs-link" href="#keywords"></a><a aria-hidden="true" class="leve2 tocs-link" href="#链接类字段">链接类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#homepage"></a><a aria-hidden="true" class="leve3 tocs-link" href="#repository"></a><a aria-hidden="true" class="leve3 tocs-link" href="#bugs"></a><a aria-hidden="true" class="leve2 tocs-link" href="#项目维护类字段">项目维护类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#author"></a><a aria-hidden="true" class="leve3 tocs-link" href="#contributors"></a><a aria-hidden="true" class="leve2 tocs-link" href="#文件类信息">文件类信息</a><a aria-hidden="true" class="leve3 tocs-link" href="#files"></a><a aria-hidden="true" class="leve3 tocs-link" href="#main"></a><a aria-hidden="true" class="leve3 tocs-link" href="#man"></a><a aria-hidden="true" class="leve3 tocs-link" href="#directories"></a><a aria-hidden="true" class="leve3 tocs-link" href="#bin"></a><a aria-hidden="true" class="leve3 tocs-link" href="#types"></a><a aria-hidden="true" class="leve2 tocs-link" href="#打包包字段">打包包字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#esnext"></a><a aria-hidden="true" class="leve3 tocs-link" href="#module"></a><a aria-hidden="true" class="leve3 tocs-link" href="#browser"></a><a aria-hidden="true" class="leve2 tocs-link" href="#任务类字段">任务类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#scripts"></a><a aria-hidden="true" class="leve3 tocs-link" href="#特定的-scripts">特定的 </a><a aria-hidden="true" class="leve3 tocs-link" href="#config"></a><a aria-hidden="true" class="leve2 tocs-link" href="#依赖描述类字段">依赖描述类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#dependencies"></a><a aria-hidden="true" class="leve3 tocs-link" href="#workspaces">workspaces</a><a aria-hidden="true" class="leve3 tocs-link" href="#devdependencies"></a><a aria-hidden="true" class="leve3 tocs-link" href="#overrides"></a><a aria-hidden="true" class="leve3 tocs-link" href="#peerdependencies"></a><a aria-hidden="true" class="leve3 tocs-link" href="#optionaldependencies"></a><a aria-hidden="true" class="leve3 tocs-link" href="#bundleddependencies"></a><a aria-hidden="true" class="leve3 tocs-link" href="#peerdependenciesmeta"></a><a aria-hidden="true" class="leve2 tocs-link" href="#系统">系统</a><a aria-hidden="true" class="leve3 tocs-link" href="#engines"></a><a aria-hidden="true" class="leve3 tocs-link" href="#os"></a><a aria-hidden="true" class="leve3 tocs-link" href="#cpu"></a><a aria-hidden="true" class="leve2 tocs-link" href="#发布">发布</a><a aria-hidden="true" class="leve3 tocs-link" href="#private"></a><a aria-hidden="true" class="leve3 tocs-link" href="#publishconfig"></a><a aria-hidden="true" class="leve2 tocs-link" href="#yarn">Yarn</a><a aria-hidden="true" class="leve3 tocs-link" href="#flat"></a><a aria-hidden="true" class="leve3 tocs-link" href="#resolutions"></a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="重要字段"><a aria-hidden="true" tabindex="-1" href="#重要字段"><span class="icon icon-link"></span></a>重要字段</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#重要字段">重要字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#介绍">介绍</a><a aria-hidden="true" class="leve3 tocs-link" href="#name">name</a><a aria-hidden="true" class="leve3 tocs-link" href="#version">version</a><a aria-hidden="true" class="leve3 tocs-link" href="#tips">Tips</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装-name-包">安装 name</a><a aria-hidden="true" class="leve2 tocs-link" href="#信息类字段">信息类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#description">description</a><a aria-hidden="true" class="leve3 tocs-link" href="#license">license</a><a aria-hidden="true" class="leve4 tocs-link" href="#license字段必须是以下之一">license字段必须是以下之一</a><a aria-hidden="true" class="leve3 tocs-link" href="#keywords">keywords</a><a aria-hidden="true" class="leve2 tocs-link" href="#链接类字段">链接类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#homepage">homepage</a><a aria-hidden="true" class="leve3 tocs-link" href="#repository">repository</a><a aria-hidden="true" class="leve3 tocs-link" href="#bugs">bugs</a><a aria-hidden="true" class="leve2 tocs-link" href="#项目维护类字段">项目维护类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#author">author</a><a aria-hidden="true" class="leve3 tocs-link" href="#contributors">contributors</a><a aria-hidden="true" class="leve2 tocs-link" href="#文件类信息">文件类信息</a><a aria-hidden="true" class="leve3 tocs-link" href="#files">files</a><a aria-hidden="true" class="leve3 tocs-link" href="#main">main</a><a aria-hidden="true" class="leve3 tocs-link" href="#man">man</a><a aria-hidden="true" class="leve3 tocs-link" href="#directories">directories</a><a aria-hidden="true" class="leve3 tocs-link" href="#bin">bin</a><a aria-hidden="true" class="leve3 tocs-link" href="#types">types</a><a aria-hidden="true" class="leve2 tocs-link" href="#打包包字段">打包包字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#esnext">esnext</a><a aria-hidden="true" class="leve3 tocs-link" href="#module">module</a><a aria-hidden="true" class="leve3 tocs-link" href="#browser">browser</a><a aria-hidden="true" class="leve2 tocs-link" href="#任务类字段">任务类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#scripts">scripts</a><a aria-hidden="true" class="leve3 tocs-link" href="#特定的-scripts">特定的 scripts</a><a aria-hidden="true" class="leve3 tocs-link" href="#config">config</a><a aria-hidden="true" class="leve2 tocs-link" href="#依赖描述类字段">依赖描述类字段</a><a aria-hidden="true" class="leve3 tocs-link" href="#dependencies">dependencies</a><a aria-hidden="true" class="leve3 tocs-link" href="#workspaces">workspaces</a><a aria-hidden="true" class="leve3 tocs-link" href="#devdependencies">devDependencies</a><a aria-hidden="true" class="leve3 tocs-link" href="#overrides">overrides</a><a aria-hidden="true" class="leve3 tocs-link" href="#peerdependencies">peerDependencies</a><a aria-hidden="true" class="leve3 tocs-link" href="#optionaldependencies">optionalDependencies</a><a aria-hidden="true" class="leve3 tocs-link" href="#bundleddependencies">bundledDependencies</a><a aria-hidden="true" class="leve3 tocs-link" href="#peerdependenciesmeta">peerDependenciesMeta</a><a aria-hidden="true" class="leve2 tocs-link" href="#系统">系统</a><a aria-hidden="true" class="leve3 tocs-link" href="#engines">engines</a><a aria-hidden="true" class="leve3 tocs-link" href="#os">os</a><a aria-hidden="true" class="leve3 tocs-link" href="#cpu">cpu</a><a aria-hidden="true" class="leve2 tocs-link" href="#发布">发布</a><a aria-hidden="true" class="leve3 tocs-link" href="#private">private</a><a aria-hidden="true" class="leve3 tocs-link" href="#publishconfig">publishConfig</a><a aria-hidden="true" class="leve2 tocs-link" href="#yarn">Yarn</a><a aria-hidden="true" class="leve3 tocs-link" href="#flat">flat</a><a aria-hidden="true" class="leve3 tocs-link" href="#resolutions">resolutions</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="重要字段"><a aria-hidden="true" tabindex="-1" href="#重要字段"><span class="icon icon-link"></span></a>重要字段</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap"><div class="wrap-header h3wrap"><h3 id="介绍"><a aria-hidden="true" tabindex="-1" href="#介绍"><span class="icon icon-link"></span></a>介绍</h3><div class="wrap-body">
<p>本快速参考备忘清单是您需要了解的关于 package.json 文件中所需内容的全部内容。 它必须是实际的 JSON而不仅仅是 JavaScript 对象字面量。</p>
<ul>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@
<p>此快速参考备忘单提供了使用 CSS in JS 工具的各种方法。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装">安装</a><a aria-hidden="true" class="leve3 tocs-link" href="#快速开始">快速开始</a><a aria-hidden="true" class="leve3 tocs-link" href="#根据-props-适配">根据 Props 适配</a><a aria-hidden="true" class="leve3 tocs-link" href="#扩展样式">扩展样式</a><a aria-hidden="true" class="leve3 tocs-link" href="#扩展样式改变标签-as">扩展样式改变标签 (as)</a><a aria-hidden="true" class="leve3 tocs-link" href="#自定义组件as">自定义组件(as)</a><a aria-hidden="true" class="leve3 tocs-link" href="#样式化任何组件">样式化任何组件</a><a aria-hidden="true" class="leve3 tocs-link" href="#在-render-之外定义-styled-组件">在 render 之外定义 Styled 组件</a><a aria-hidden="true" class="leve3 tocs-link" href="#传入值">传入值</a><a aria-hidden="true" class="leve3 tocs-link" href="#样式对象">样式对象</a><a aria-hidden="true" class="leve3 tocs-link" href="#cssmodules--styled">CSSModules => styled</a><a aria-hidden="true" class="leve4 tocs-link" href="#-与下面-styled-写法等效-">👇👇 与下面 写法等效 👇👇</a><a aria-hidden="true" class="leve3 tocs-link" href="#伪元素伪选择器和嵌套">伪元素、伪选择器和嵌套</a><a aria-hidden="true" class="leve3 tocs-link" href="#改变-styled-组件样式">改变 styled 组件样式</a><a aria-hidden="true" class="leve3 tocs-link" href="#全局样式-createglobalstyle">全局样式 createGlobalStyle</a><a aria-hidden="true" class="leve3 tocs-link" href="#classname-使用">className 使用</a><a aria-hidden="true" class="leve3 tocs-link" href="#共享样式片段">共享样式片段</a><a aria-hidden="true" class="leve3 tocs-link" href="#class-组件样式定义">Class 组件样式定义</a><a aria-hidden="true" class="leve3 tocs-link" href="#附加额外的-props">附加额外的 Props</a><a aria-hidden="true" class="leve3 tocs-link" href="#覆盖-attrs">覆盖 .attrs</a><a aria-hidden="true" class="leve3 tocs-link" href="#动画">动画</a><a aria-hidden="true" class="leve3 tocs-link" href="#isstyledcomponent">isStyledComponent</a><a aria-hidden="true" class="leve3 tocs-link" href="#themeconsumer">ThemeConsumer</a><a aria-hidden="true" class="leve2 tocs-link" href="#typescript">TypeScript</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装-1">安装</a><a aria-hidden="true" class="leve3 tocs-link" href="#自定义-props">自定义 Props</a><a aria-hidden="true" class="leve3 tocs-link" href="#简单的-props-类型定义">简单的 Props 类型定义</a><a aria-hidden="true" class="leve3 tocs-link" href="#禁止转移到子组件">禁止转移到子组件($)</a><a aria-hidden="true" class="leve3 tocs-link" href="#函数组件类型继承">函数组件类型继承</a><a aria-hidden="true" class="leve2 tocs-link" href="#react-native">React Native</a><a aria-hidden="true" class="leve3 tocs-link" href="#基础实例">基础实例</a><a aria-hidden="true" class="leve3 tocs-link" href="#react-native-中写-css">React Native 中写 CSS</a><a aria-hidden="true" class="leve2 tocs-link" href="#高级用法">高级用法</a><a aria-hidden="true" class="leve3 tocs-link" href="#主题化">主题化</a><a aria-hidden="true" class="leve3 tocs-link" href="#功能主题">功能主题</a><a aria-hidden="true" class="leve3 tocs-link" href="#通过-withtheme-高阶组件">通过 withTheme 高阶组件</a><a aria-hidden="true" class="leve3 tocs-link" href="#usecontext-钩子">useContext 钩子</a><a aria-hidden="true" class="leve3 tocs-link" href="#usetheme-自定义钩子">useTheme 自定义钩子</a><a aria-hidden="true" class="leve3 tocs-link" href="#主题-props">主题 props</a><a aria-hidden="true" class="leve3 tocs-link" href="#refs">Refs</a><a aria-hidden="true" class="leve3 tocs-link" href="#特异性问题">特异性问题</a><a aria-hidden="true" class="leve4 tocs-link" href="#解决方案">解决方案</a><a aria-hidden="true" class="leve3 tocs-link" href="#themeprovider">ThemeProvider</a><a aria-hidden="true" class="leve3 tocs-link" href="#shouldforwardprop">shouldForwardProp</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装">安装</a><a aria-hidden="true" class="leve3 tocs-link" href="#快速开始">快速开始</a><a aria-hidden="true" class="leve3 tocs-link" href="#根据-props-适配">根据 Props 适配</a><a aria-hidden="true" class="leve3 tocs-link" href="#扩展样式">扩展样式</a><a aria-hidden="true" class="leve3 tocs-link" href="#扩展样式改变标签-as">扩展样式改变标签 (as)</a><a aria-hidden="true" class="leve3 tocs-link" href="#自定义组件as">自定义组件(as)</a><a aria-hidden="true" class="leve3 tocs-link" href="#样式化任何组件">样式化任何组件</a><a aria-hidden="true" class="leve3 tocs-link" href="#在-render-之外定义-styled-组件">在 render 之外定义 Styled 组件</a><a aria-hidden="true" class="leve3 tocs-link" href="#传入值">传入值</a><a aria-hidden="true" class="leve3 tocs-link" href="#样式对象">样式对象</a><a aria-hidden="true" class="leve3 tocs-link" href="#cssmodules--styled">CSSModules => styled</a><a aria-hidden="true" class="leve4 tocs-link" href="#-与下面-styled-写法等效-">👇👇 与下面 styled 写法等效 👇👇</a><a aria-hidden="true" class="leve3 tocs-link" href="#伪元素伪选择器和嵌套">伪元素、伪选择器和嵌套</a><a aria-hidden="true" class="leve3 tocs-link" href="#改变-styled-组件样式">改变 styled 组件样式</a><a aria-hidden="true" class="leve3 tocs-link" href="#全局样式-createglobalstyle">全局样式 createGlobalStyle</a><a aria-hidden="true" class="leve3 tocs-link" href="#classname-使用">className 使用</a><a aria-hidden="true" class="leve3 tocs-link" href="#共享样式片段">共享样式片段</a><a aria-hidden="true" class="leve3 tocs-link" href="#class-组件样式定义">Class 组件样式定义</a><a aria-hidden="true" class="leve3 tocs-link" href="#附加额外的-props">附加额外的 Props</a><a aria-hidden="true" class="leve3 tocs-link" href="#覆盖-attrs">覆盖 .attrs</a><a aria-hidden="true" class="leve3 tocs-link" href="#动画">动画</a><a aria-hidden="true" class="leve3 tocs-link" href="#isstyledcomponent">isStyledComponent</a><a aria-hidden="true" class="leve3 tocs-link" href="#themeconsumer">ThemeConsumer</a><a aria-hidden="true" class="leve2 tocs-link" href="#typescript">TypeScript</a><a aria-hidden="true" class="leve3 tocs-link" href="#安装-1">安装</a><a aria-hidden="true" class="leve3 tocs-link" href="#自定义-props">自定义 Props</a><a aria-hidden="true" class="leve3 tocs-link" href="#简单的-props-类型定义">简单的 Props 类型定义</a><a aria-hidden="true" class="leve3 tocs-link" href="#禁止转移到子组件">禁止转移到子组件($)</a><a aria-hidden="true" class="leve3 tocs-link" href="#函数组件类型继承">函数组件类型继承</a><a aria-hidden="true" class="leve2 tocs-link" href="#react-native">React Native</a><a aria-hidden="true" class="leve3 tocs-link" href="#基础实例">基础实例</a><a aria-hidden="true" class="leve3 tocs-link" href="#react-native-中写-css">React Native 中写 CSS</a><a aria-hidden="true" class="leve2 tocs-link" href="#高级用法">高级用法</a><a aria-hidden="true" class="leve3 tocs-link" href="#主题化">主题化</a><a aria-hidden="true" class="leve3 tocs-link" href="#功能主题">功能主题</a><a aria-hidden="true" class="leve3 tocs-link" href="#通过-withtheme-高阶组件">通过 withTheme 高阶组件</a><a aria-hidden="true" class="leve3 tocs-link" href="#usecontext-钩子">useContext 钩子</a><a aria-hidden="true" class="leve3 tocs-link" href="#usetheme-自定义钩子">useTheme 自定义钩子</a><a aria-hidden="true" class="leve3 tocs-link" href="#主题-props">主题 props</a><a aria-hidden="true" class="leve3 tocs-link" href="#refs">Refs</a><a aria-hidden="true" class="leve3 tocs-link" href="#特异性问题">特异性问题</a><a aria-hidden="true" class="leve4 tocs-link" href="#解决方案">解决方案</a><a aria-hidden="true" class="leve3 tocs-link" href="#themeprovider">ThemeProvider</a><a aria-hidden="true" class="leve3 tocs-link" href="#shouldforwardprop">shouldForwardProp</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap"><div class="wrap-header h3wrap"><h3 id="安装"><a aria-hidden="true" tabindex="-1" href="#安装"><span class="icon icon-link"></span></a>安装</h3><div class="wrap-body">
<p><a href="https://styled-components.com">Styled Components</a> 是增强 CSS 在 React 组件系统样式的 CSS in JS 的最佳实践。</p>
<ul>

View File

@ -41,7 +41,7 @@
<p>这个 <a href="https://www.sublimetext.com/">Sublime Text</a> 快速参考备忘单显示了它的键盘快捷键和命令。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#快捷键">快捷键</a><a aria-hidden="true" class="leve3 tocs-link" href="#文本编辑初学者">文本编辑初学者</a><a aria-hidden="true" class="leve3 tocs-link" href="#代码折叠">代码折叠</a><a aria-hidden="true" class="leve3 tocs-link" href="#macos-键盘符号">macOS 键盘符号</a><a aria-hidden="true" class="leve3 tocs-link" href="#编辑">编辑</a><a aria-hidden="true" class="leve3 tocs-link" href="#转到">转到</a><a aria-hidden="true" class="leve3 tocs-link" href="#选择selecting">选择(Selecting)</a><a aria-hidden="true" class="leve3 tocs-link" href="#拆分窗口">拆分窗口</a><a aria-hidden="true" class="leve3 tocs-link" href="#文本操作">文本操作</a><a aria-hidden="true" class="leve3 tocs-link" href="#命令行中启动编辑器">命令行中启动编辑器</a><a aria-hidden="true" class="leve4 tocs-link" href="#在命令行中使用-subl-命令">在命令行中使用 命令</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="快捷键"><a aria-hidden="true" tabindex="-1" href="#快捷键"><span class="icon icon-link"></span></a>快捷键</h2><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" href="#快捷键">快捷键</a><a aria-hidden="true" class="leve3 tocs-link" href="#文本编辑初学者">文本编辑初学者</a><a aria-hidden="true" class="leve3 tocs-link" href="#代码折叠">代码折叠</a><a aria-hidden="true" class="leve3 tocs-link" href="#macos-键盘符号">macOS 键盘符号</a><a aria-hidden="true" class="leve3 tocs-link" href="#编辑">编辑</a><a aria-hidden="true" class="leve3 tocs-link" href="#转到">转到</a><a aria-hidden="true" class="leve3 tocs-link" href="#选择selecting">选择(Selecting)</a><a aria-hidden="true" class="leve3 tocs-link" href="#拆分窗口">拆分窗口</a><a aria-hidden="true" class="leve3 tocs-link" href="#文本操作">文本操作</a><a aria-hidden="true" class="leve3 tocs-link" href="#命令行中启动编辑器">命令行中启动编辑器</a><a aria-hidden="true" class="leve4 tocs-link" href="#在命令行中使用-subl-命令">在命令行中使用 subl 命令</a><a aria-hidden="true" class="leve2 tocs-link" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap"><div class="wrap-header h2wrap"><h2 id="快捷键"><a aria-hidden="true" tabindex="-1" href="#快捷键"><span class="icon icon-link"></span></a>快捷键</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap row-span-3"><div class="wrap-header h3wrap"><h3 id="文本编辑初学者"><a aria-hidden="true" tabindex="-1" href="#文本编辑初学者"><span class="icon icon-link"></span></a>文本编辑初学者</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->
<p><a href="https://www.sublimetext.com/">Sublime Text</a> 是一个用于代码、标记的复杂文本编辑器。</p>

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,8 @@ body {
tab-size: 4;
margin: 0;
line-height: inherit;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji';
}
[data-color-mode*='dark'] body .dark {
@ -22,7 +23,8 @@ body {
display: none;
}
[data-color-mode*='light'], [data-color-mode*='light'] body {
[data-color-mode*='light'],
[data-color-mode*='light'] body {
--color-prettylights-syntax-comment: #b1bac3;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-entity: #8250df;
@ -42,7 +44,7 @@ body {
--color-prettylights-syntax-markup-italic: #24292f;
--color-prettylights-syntax-markup-bold: #24292f;
--color-prettylights-syntax-markup-deleted-text: #82071e;
--color-prettylights-syntax-markup-deleted-bg: #FFEBE9;
--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
--color-prettylights-syntax-markup-inserted-text: #116329;
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
--color-prettylights-syntax-markup-changed-text: #953800;
@ -69,7 +71,8 @@ body {
--box-shadow: 109 109 109;
}
[data-color-mode*='dark'], [data-color-mode*='dark'] body {
[data-color-mode*='dark'],
[data-color-mode*='dark'] body {
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-entity: #d2a8ff;
@ -121,18 +124,39 @@ body {
background-color: var(--color-canvas-default);
}
*, ::before, ::after {
*,
::before,
::after {
box-sizing: border-box;
}
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
h1,h2,h3,h4,h5,h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit
font-weight: inherit;
}
ol, ul, menu {
ol,
ul,
menu {
list-style: none;
margin: 0;
padding: 0;
@ -145,12 +169,16 @@ pur {
color: var(--color-prettylights-syntax-entity);
}
.wrap-body > p > code, .wrap-body > ul li > code, .wrap-body tbody td code {
.wrap-body > p > code,
.wrap-body > ul li > code,
.wrap-body tbody td code {
--text-opacity: 1;
color: rgb(5 150 105 / var(--text-opacity));
}
.wrap-body em, .wrap-body sup, .wrap-body sub {
.wrap-body em,
.wrap-body sup,
.wrap-body sub {
color: var(--color-fg-subtle);
}
@ -158,13 +186,16 @@ table {
width: 100%;
text-indent: 0;
border-color: inherit;
border-collapse: collapse
border-collapse: collapse;
}
table td:first-child {
white-space: nowrap;
}
table.shortcuts td:not(:last-child)>code, table.shortcuts td:not(:last-child)>del>code, ul.shortcuts li > code, kbd {
table.shortcuts td:not(:last-child) > code,
table.shortcuts td:not(:last-child) > del > code,
ul.shortcuts li > code,
kbd {
background-color: var(--color-neutral-muted);
color: var(--color-fg-subtle);
box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000;
@ -183,11 +214,13 @@ table tr+tr {
border-top: solid 1px #ececec94;
border-color: var(--color-border-muted);
}
table td, table th {
table td,
table th {
padding: 9px 14px;
text-align: left;
}
table tr th:last-child, table tr td:last-child {
table tr th:last-child,
table tr td:last-child {
text-align: right;
}
@ -205,7 +238,9 @@ table td:first-child>code {
--text-opacity: 1;
color: rgb(5 150 105 / var(--text-opacity));
}
table td > del, table td:first-child > del > code, .wrap-body p > del > code {
table td > del,
table td:first-child > del > code,
.wrap-body p > del > code {
color: var(--color-danger-fg);
}
@ -213,16 +248,19 @@ table.show-header thead {
display: table-header-group;
}
table.style-list td + td, table.style-list-arrow td + td {
table.style-list td + td,
table.style-list-arrow td + td {
padding-top: 0 !important;
}
table.style-list td, table.style-list-arrow td {
table.style-list td,
table.style-list-arrow td {
display: block;
text-align: left !important;
}
table.style-list-arrow td:first-child::before, ul.style-arrow li:before {
table.style-list-arrow td:first-child::before,
ul.style-arrow li:before {
content: '';
display: inline-block;
width: 0px;
@ -233,7 +271,8 @@ table.style-list-arrow td:first-child::before, ul.style-arrow li:before {
border-bottom: 5px solid transparent;
}
tt, code {
tt,
code {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
font-size: 1em;
}
@ -254,7 +293,8 @@ pre {
.max-container a {
color: rgb(2 132 199/1);
}
.max-container a, .max-container a:visited {
.max-container a,
.max-container a:visited {
background-image: linear-gradient(transparent, transparent 6px, #34495e 6px, #34495e);
background-position: bottom;
background-size: 100% 6px;
@ -265,7 +305,8 @@ pre {
text-decoration-color: transparent;
}
.max-container a:hover, .max-container a:visited:hover{
.max-container a:hover,
.max-container a:visited:hover {
text-decoration-color: #10b981;
}
@ -276,7 +317,8 @@ pre {
padding: 0.75rem;
}
body.home .h1wrap-body, body.home .h1wrap .wrap-body {
body.home .h1wrap-body,
body.home .h1wrap .wrap-body {
max-width: 940px;
margin-left: auto;
margin-right: auto;
@ -311,8 +353,9 @@ body:not(.home) .h2wrap > .wrap-body > ul {
body.home .h1wrap p {
text-align: left;
}
body.home .max-container a.home-button:hover, body.home .max-container a.home-button:visited:hover {
transition: all .3s;
body.home .max-container a.home-button:hover,
body.home .max-container a.home-button:visited:hover {
transition: all 0.3s;
text-decoration-color: #fff;
color: #fff;
}
@ -345,7 +388,7 @@ body.home .max-container a.home-button:hover, body.home .max-container a.home-bu
color: rgb(241 245 249 / var(--text-opacity));
--bg-opacity: 0.5;
background-color: rgb(62 69 72 / var(--bg-opacity));
transition: all .3s;
transition: all 0.3s;
text-decoration: none;
}
.home-card a:hover {
@ -390,7 +433,10 @@ a.text-grey {
padding: 1.8rem 1.8rem 0;
}
.header-nav .max-container, .header-nav .logo, .header-nav .menu, .header-nav .menu a {
.header-nav .max-container,
.header-nav .logo,
.header-nav .menu,
.header-nav .menu a {
display: flex;
justify-content: space-between;
align-items: center;
@ -411,17 +457,19 @@ a.text-grey {
font-size: 40px;
}
.header-nav .menu a:hover, .header-nav .menu button:hover {
.header-nav .menu a:hover,
.header-nav .menu button:hover {
background-color: var(--color-neutral-muted);
}
.header-nav .menu a, .header-nav .menu button {
.header-nav .menu a,
.header-nav .menu button {
padding-left: 0.75rem;
padding-right: 0.75rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
border-radius: 9999px;
transition: all .3s;
transition: all 0.3s;
border: 0;
}
@ -443,7 +491,8 @@ a.text-grey {
font-size: 18px;
}
.header-nav a, .header-nav a:visited {
.header-nav a,
.header-nav a:visited {
color: var(--color-fg-default);
line-height: 1.2;
gap: 0.3rem;
@ -532,7 +581,9 @@ a.text-grey {
.menu-tocs > .menu-modal a.leve3 {
padding-left: 1.2rem;
}
.menu-tocs > .menu-modal a.leve4, .menu-tocs > .menu-modal a.leve5, .menu-tocs > .menu-modal a.leve6 {
.menu-tocs > .menu-modal a.leve4,
.menu-tocs > .menu-modal a.leve5,
.menu-tocs > .menu-modal a.leve6 {
padding-left: 2.1rem;
}
@ -544,7 +595,8 @@ a.text-grey {
font-size: 30px;
line-height: 1.2;
font-weight: 200;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
'Droid Sans', 'Helvetica Neue', sans-serif;
margin-top: 0;
}
@ -555,7 +607,8 @@ a.text-grey {
color: rgb(148 163 184/1);
}
body:not(.home) .h2wrap > h2 a::after, body:not(.home) .h3wrap > h3 a::after {
body:not(.home) .h2wrap > h2 a::after,
body:not(.home) .h3wrap > h3 a::after {
content: '#';
padding-right: 0.5rem;
color: rgb(16 185 129/1);
@ -595,7 +648,8 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
letter-spacing: 0.05em;
}
.wrap-header.h3wrap > .wrap-body p, .wrap-header.h4wrap > .wrap-body p {
.wrap-header.h3wrap > .wrap-body p,
.wrap-header.h4wrap > .wrap-body p {
margin: 0px;
width: 100%;
padding-left: 1rem;
@ -610,7 +664,7 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
background-color: var(--color-bg-subtle);
color: rgb(30 41 59/0);
content: '-';
line-height: 1.50rem;
line-height: 1.5rem;
top: 0;
position: absolute;
left: 0px;
@ -648,7 +702,6 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
.h4wrap > .wrap-body ul,
.h4wrap > .wrap-body ol,
.h4wrap > .wrap-body dl,
.h3wrap > .wrap-body ul,
.h3wrap > .wrap-body ol,
.h3wrap > .wrap-body dl {
@ -714,7 +767,7 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
width: 1.5rem;
text-align: center;
font-size: 0.875rem;
line-height: 1.30rem;
line-height: 1.3rem;
border: 2px solid #228e6c;
top: -1px;
left: -14px;
@ -763,7 +816,8 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
border-bottom: 0;
}
.h3wrap hr, .h3wrap-body hr {
.h3wrap hr,
.h3wrap-body hr {
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
@ -801,33 +855,87 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
overflow-x: auto;
}
.cols-1 { grid-template-columns: repeat(1,minmax(0,1fr)) !important; }
.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.cols-5 { grid-template-columns: repeat(5,minmax(0,1fr)) !important; }
.cols-6 { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
.cols-7 { grid-template-columns: repeat(7,minmax(0,1fr)) !important; }
.cols-8 { grid-template-columns: repeat(8,minmax(0,1fr)) !important; }
.cols-9 { grid-template-columns: repeat(9,minmax(0,1fr)) !important; }
.col-span-2 { grid-column: span 2/span 2; }
.col-span-3 { grid-column: span 3/span 3; }
.col-span-4 { grid-column: span 4/span 4; }
.col-span-5 { grid-column: span 5/span 5; }
.col-span-6 { grid-column: span 6/span 6; }
.col-span-7 { grid-column: span 7/span 7; }
.col-span-8 { grid-column: span 8/span 8; }
.col-span-9 { grid-column: span 9/span 9; }
.col-span-10 { grid-column: span 10/span 10; }
.row-span-2 { grid-row: span 2/span 2; }
.row-span-3 { grid-row: span 3/span 3; }
.row-span-4 { grid-row: span 4/span 4; }
.row-span-5 { grid-row: span 5/span 5; }
.row-span-6 { grid-row: span 6/span 6; }
.row-span-7 { grid-row: span 7/span 7; }
.row-span-8 { grid-row: span 8/span 8; }
.row-span-9 { grid-row: span 9/span 9; }
.row-span-10 { grid-row: span 10/span 10; }
.cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.cols-6 {
grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.cols-7 {
grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}
.cols-8 {
grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
}
.cols-9 {
grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
}
.col-span-2 {
grid-column: span 2 / span 2;
}
.col-span-3 {
grid-column: span 3 / span 3;
}
.col-span-4 {
grid-column: span 4 / span 4;
}
.col-span-5 {
grid-column: span 5 / span 5;
}
.col-span-6 {
grid-column: span 6 / span 6;
}
.col-span-7 {
grid-column: span 7 / span 7;
}
.col-span-8 {
grid-column: span 8 / span 8;
}
.col-span-9 {
grid-column: span 9 / span 9;
}
.col-span-10 {
grid-column: span 10 / span 10;
}
.row-span-2 {
grid-row: span 2 / span 2;
}
.row-span-3 {
grid-row: span 3 / span 3;
}
.row-span-4 {
grid-row: span 4 / span 4;
}
.row-span-5 {
grid-row: span 5 / span 5;
}
.row-span-6 {
grid-row: span 6 / span 6;
}
.row-span-7 {
grid-row: span 7 / span 7;
}
.row-span-8 {
grid-row: span 8 / span 8;
}
.row-span-9 {
grid-row: span 9 / span 9;
}
.row-span-10 {
grid-row: span 10 / span 10;
}
.wrap-text {
white-space: pre-wrap !important;
@ -850,7 +958,7 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
opacity: 0;
border-radius: 0.5rem;
z-index: 1;
transition: opacity .6s;
transition: opacity 0.6s;
line-height: 1.5;
width: 220px;
@ -859,7 +967,7 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
margin-left: -110px;
}
.tooltip .tooltiptext::after {
content: "";
content: '';
position: absolute;
top: 100%;
left: 50%;
@ -875,17 +983,34 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
}
/* 代码高亮 Start */
.token.comment, .token.prolog, .token.doctype, .token.cdata {
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: var(--color-prettylights-syntax-comment);
}
.token.namespace { opacity: 0.7; }
.token.tag, .token.selector, .token.constant, .token.symbol, .token.deleted {
.token.namespace {
opacity: 0.7;
}
.token.tag,
.token.selector,
.token.constant,
.token.symbol,
.token.deleted {
color: var(--color-prettylights-syntax-entity-tag);
}
.token.maybe-class-name {
color: var(--color-prettylights-syntax-entity);
}
.token.property-access, .token.operator, .token.boolean, .token.number, .token.selector .token.class, .token.attr-name, .token.string, .token.char, .token.builtin {
.token.property-access,
.token.operator,
.token.boolean,
.token.number,
.token.selector .token.class,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
color: var(--color-prettylights-syntax-constant);
}
.token.deleted {
@ -910,13 +1035,23 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
.token.variable {
color: var(--color-prettylights-syntax-constant);
}
.token.entity, .token.url, .language-css .token.string, .style .token.string {
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: var(--color-prettylights-syntax-string);
}
.token.color, .token.atrule, .token.attr-value, .token.function, .token.class-name {
.token.color,
.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
color: var(--color-prettylights-syntax-string);
}
.token.rule, .token.regex, .token.important, .token.keyword {
.token.rule,
.token.regex,
.token.important,
.token.keyword {
color: var(--color-prettylights-syntax-keyword);
}
.token.module {
@ -941,9 +1076,16 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
color: var(--color-prettylights-syntax-variable);
}
.token.important, .token.bold { font-weight: bold; }
.token.italic { font-style: italic; }
.token.entity { cursor: help; }
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.highlight-line {
background-color: var(--color-neutral-muted);
@ -983,7 +1125,8 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
.header-nav .max-container {
padding-top: 0.85rem;
}
.header-nav .menu a, .header-nav .menu button {
.header-nav .menu a,
.header-nav .menu button {
padding: 0.2rem 0.3rem;
}
.wrap-header.h1wrap > h1 {
@ -1026,11 +1169,13 @@ body:not(.home) .h2wrap-body > .wrap:hover .h3wrap > h3 a::after {
table.auto-wrap thead {
display: none;
}
table.auto-wrap td, table.auto-wrap th {
table.auto-wrap td,
table.auto-wrap th {
display: block;
text-align: left !important;
}
table td + td, table th + th {
table td + td,
table th + th {
padding-top: 0 !important;
}
table td:first-child {