feat: 重建仓库
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
"chrome": "58",
|
||||||
|
"ie": "11"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
npm
|
||||||
|
cnchar.min.js
|
||||||
|
src_import_version
|
||||||
|
!.vuepress
|
||||||
|
assets/v2/**
|
|
@ -0,0 +1,79 @@
|
||||||
|
module.exports = {
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"es6": true,
|
||||||
|
"node": true,
|
||||||
|
"commonjs": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
// "standard",
|
||||||
|
"plugin:vue/essential"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "babel-eslint",
|
||||||
|
"ecmaVersion": 2018,
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"arrowFunctions": true,
|
||||||
|
"classes": true,
|
||||||
|
"modules": true,
|
||||||
|
"defaultParams": true,
|
||||||
|
"experimentalObjectRestSpread": true
|
||||||
|
},
|
||||||
|
"sourceType": "module",
|
||||||
|
"parserOptions": {
|
||||||
|
"allowImportExportEverywhere": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"window": true,
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"no-extend-native": 0,
|
||||||
|
"no-new": 0,
|
||||||
|
"no-useless-escape": 0,
|
||||||
|
"no-useless-constructor": 0,
|
||||||
|
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
|
||||||
|
"indent": ["error", 4, {
|
||||||
|
"SwitchCase": 1
|
||||||
|
}],
|
||||||
|
"vue/script-indent": ["warn", 4, {
|
||||||
|
"baseIndent": 1,
|
||||||
|
"switchCase": 1
|
||||||
|
}],
|
||||||
|
"space-infix-ops": ["error", {"int32Hint": false}],
|
||||||
|
"space-before-function-paren": ["error", {
|
||||||
|
"anonymous": "always",
|
||||||
|
"named": "always",
|
||||||
|
"asyncArrow": "always"
|
||||||
|
}],
|
||||||
|
"semi": ["error", "always"],
|
||||||
|
"comma-dangle": 0,
|
||||||
|
"no-console": 0,
|
||||||
|
"no-debugger": 0,
|
||||||
|
"id-length": 0,
|
||||||
|
"eol-last": 0,
|
||||||
|
"object-curly-spacing": ["error", "never"],
|
||||||
|
"arrow-spacing": "error",
|
||||||
|
"no-multiple-empty-lines": "error",
|
||||||
|
"no-unused-vars": "error",
|
||||||
|
"spaced-comment": "error",
|
||||||
|
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
|
||||||
|
"no-unreachable": "error",
|
||||||
|
"keyword-spacing": "error",
|
||||||
|
"space-before-blocks": "error",
|
||||||
|
"semi-spacing": "error",
|
||||||
|
"comma-spacing": "error",
|
||||||
|
"key-spacing": "error",
|
||||||
|
"no-undef": "error",
|
||||||
|
"vue/html-indent": ["error", 4],
|
||||||
|
"vue/html-quotes": ["error", "single", { "avoidEscape": true }],
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.vue"],
|
||||||
|
"rules": {
|
||||||
|
"indent": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
*.js linguist-language=JavaScript
|
||||||
|
# *.css linguist-language=JavaScript
|
||||||
|
*.html linguist-language=JavaScript
|
|
@ -0,0 +1,6 @@
|
||||||
|
node_modules
|
||||||
|
.vscode
|
||||||
|
nodejs
|
||||||
|
src_import_version
|
||||||
|
package-lock.json
|
||||||
|
docs/.vuepress/secret.js
|
|
@ -0,0 +1,23 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2017 - present theajack <contact@theajack.com>
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,736 @@
|
||||||
|
# [cnchar](https://github.com/theajack/cnchar) <a href="https://www.github.com/theajack/cnchar"><img src="https://img.shields.io/github/stars/theajack/cnchar.svg?style=social" alt="star"></a> <a href="https://theajack.gitee.io"><img src="https://img.shields.io/badge/author-theajack-blue.svg?style=social" alt="Author"></a>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="https://www.npmjs.com/package/cnchar"><img src="https://img.shields.io/npm/v/cnchar.svg" alt="Version"></a>
|
||||||
|
<a href="https://npmcharts.com/compare/cnchar?minimal=true"><img src="https://img.shields.io/npm/dm/cnchar.svg" alt="Downloads"></a>
|
||||||
|
<a href="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"><img src="https://img.shields.io/bundlephobia/minzip/cnchar.svg" alt="Size"></a>
|
||||||
|
<a href="https://github.com/theajack/cnchar/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/cnchar.svg" alt="License"></a>
|
||||||
|
<a href="https://github.com/theajack/cnchar/search?l=javascript"><img src="https://img.shields.io/github/languages/top/theajack/cnchar.svg" alt="TopLang"></a>
|
||||||
|
<a href="https://github.com/theajack/cnchar/issues"><img src="https://img.shields.io/github/issues-closed/theajack/cnchar.svg" alt="issue"></a>
|
||||||
|
<!-- <a href="https://www.github.com/theajack/cnchar"><img src="https://img.shields.io/librariesio/dependent-repos/npm/cnchar.svg" alt="Dependent"></a> -->
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### 🚀 好用小巧、功能全面的汉字拼音笔画 js 库
|
||||||
|
|
||||||
|
**<a href="#64-使用实例大全">快速上手</a> | [在线试用](https://theajack.gitee.io/cnchar) | [更新日志](https://github.com/theajack/cnchar/blob/master/helper/version.md) | [应用:打字游戏](https://theajack.gitee.io/type/) | [反馈错误/缺漏](https://github.com/theajack/cnchar/issues/new)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
[TOC]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 前言
|
||||||
|
|
||||||
|
感谢同学们对于 cnchar 的支持,由于 cnchar 词库来源于网络,虽然经过了本人的修改和扩充,但是还是难免有错误与缺漏之处,希望大家可以将使用中发现的错误与缺漏之处 [反馈](https://github.com/theajack/cnchar/issues/new) 给我(或自行修改提交,经过审查无误过后会合到 cnchar 中)
|
||||||
|
|
||||||
|
[我要反馈错误或缺漏](https://github.com/theajack/cnchar/issues/new)
|
||||||
|
|
||||||
|
### 0.快速使用
|
||||||
|
|
||||||
|
使用 npm 安装:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i cnchar
|
||||||
|
```
|
||||||
|
|
||||||
|
```js
|
||||||
|
import cnchar from 'cnchar';
|
||||||
|
'汉字'.spell();
|
||||||
|
'汉字'.stroke();
|
||||||
|
```
|
||||||
|
|
||||||
|
使用 script 标签使用:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"></script>
|
||||||
|
<!--
|
||||||
|
或通过版本号引用
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.{version}.min.js"></script>
|
||||||
|
-->
|
||||||
|
<script>
|
||||||
|
'汉字'.spell();
|
||||||
|
'汉字'.stroke();
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
<a href="#64-使用实例大全">更多详细使用示例</a> | <a href="#6-spell-stroke-参数">参数详细介绍</a>
|
||||||
|
|
||||||
|
### 1.功能
|
||||||
|
|
||||||
|
1. 获取 **汉字拼音** ,支持首字母、大小写、数组分割、备选 **多音字** 等功能
|
||||||
|
2. 支持 **多音词**
|
||||||
|
3. 支持 **拼音音调**
|
||||||
|
4. 获取汉字 **笔画数** 、支持数组分割
|
||||||
|
5. 获取汉字 **笔画顺序** 、笔画详细名称
|
||||||
|
6. 支持 **简体字** 、 **繁体字** 、 **火星文** 互转
|
||||||
|
7. 支持 **查找** 某拼音的所有 **汉字** ,繁体字,多音字
|
||||||
|
8. 支持 **查找** 指定笔画数的所有 **汉字** ,繁体字
|
||||||
|
9. 支持 **根据笔画顺序查询** 汉字
|
||||||
|
10. 支持 **查询拼音的信息**,包含声母、韵母、音调、音调位置的等
|
||||||
|
11. 支持 **繁体字** 拼音、笔画数及以上所有功能,实现和简体字一样的功能
|
||||||
|
12. **体积小**,min 版本仅 46 kb,zip 版本 34 kb (含有大量汉字拼音字典)
|
||||||
|
13. **多端可用**,可用于 **浏览器、nodejs、小程序/小游戏、ReactNative/Weex/Uniapp/Electron、webpack**...,支持所有 js 能运行的环境
|
||||||
|
14. **typescript支持**,支持在typescript中调用
|
||||||
|
15. 丰富的配置,按需取用
|
||||||
|
|
||||||
|
### 2.概览
|
||||||
|
|
||||||
|
考虑到不同的需求,cnchar 的功能被拆分到以下四个库中:
|
||||||
|
|
||||||
|
| 名称 | 描述 | 功能 |
|
||||||
|
| :----------: | :------------------------------: | :--------------------: |
|
||||||
|
| cnchar | 主 js 库,其他三个库依赖于这个库 | 含有简体字拼音、多音字、音调、笔画数等功能 |
|
||||||
|
| cnchar-poly | 多音词库 | 含有识别多音词功能 |
|
||||||
|
| cnchar-order | 笔画顺序库 | 含有识别笔画顺序、笔画名称、笔画形状等功能 |
|
||||||
|
| cnchar-trad | 繁体字库 | 支持繁体、火星、简体互转,支持繁体拼音笔画多音字全功能 |
|
||||||
|
|
||||||
|
### 3 安装
|
||||||
|
|
||||||
|
#### 3.1 使用 npm 安装
|
||||||
|
|
||||||
|
安装基础库:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i cnchar
|
||||||
|
```
|
||||||
|
|
||||||
|
安装附加功能库:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i cnchar-poly cnchar-order cnchar-trad
|
||||||
|
```
|
||||||
|
|
||||||
|
当然您也可以按需安装其中的几个,但是 `cnchar` 这个基础库是必须安装的
|
||||||
|
|
||||||
|
或者您可以通过安装`cnchar-all`来使用完整功能,这个库引用了上面的四个库
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i cnchar-all
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 3.2 使用 script 引入
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.poly.latest.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.order.latest.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.trad.latest.min.js"></script>
|
||||||
|
<!-- 或使用版本号引用 -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.{version}.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.poly.{version}.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.order.{version}.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.trad.{version}.min.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4 使用
|
||||||
|
|
||||||
|
#### 4.1 webpack浏览器环境(有window对象)
|
||||||
|
|
||||||
|
npm 安装好几个库之后:
|
||||||
|
|
||||||
|
```js
|
||||||
|
// 请保证最先引入 cnchar 基础库,其他几个库顺序无所谓
|
||||||
|
import cnchar from 'cnchar';
|
||||||
|
import 'cnchar-poly';
|
||||||
|
import 'cnchar-order';
|
||||||
|
import 'cnchar-trad';
|
||||||
|
|
||||||
|
console.log('汉字'.spell()); // prototype 方式调用
|
||||||
|
console.log(cnchar.spell('汉字')); // cnchar api 调用
|
||||||
|
```
|
||||||
|
|
||||||
|
浏览器环境下会在 `window` 对象上定义 `cnchar` 对象
|
||||||
|
|
||||||
|
#### 4.2 nodejs 等非浏览器环境
|
||||||
|
|
||||||
|
非浏览器环境下需要使用 `cnchar.use()` 方法加载功能库:
|
||||||
|
|
||||||
|
```js
|
||||||
|
// 请保证最先引入 cnchar 基础库,其他几个库顺序无所谓
|
||||||
|
var cnchar = require('cnchar');
|
||||||
|
var poly = require('cnchar-poly');
|
||||||
|
var order = require('cnchar-order');
|
||||||
|
var trad = require('cnchar-trad');
|
||||||
|
cnchar.use(poly, order, trad);
|
||||||
|
|
||||||
|
console.log('汉字'.spell()); // prototype 方式调用
|
||||||
|
console.log(cnchar.spell('汉字')); // cnchar api 调用
|
||||||
|
```
|
||||||
|
|
||||||
|
其他使用方式与浏览器环境一致
|
||||||
|
|
||||||
|
#### 4.3 原生浏览器环境
|
||||||
|
|
||||||
|
原生浏览器环境就需要使用 script 标签引入 js 文件:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.poly.latest.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.order.latest.min.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.trad.latest.min.js"></script>
|
||||||
|
<script>
|
||||||
|
console.log('汉字'.spell()); // prototype 方式调用
|
||||||
|
console.log(cnchar.spell('汉字')); // cnchar api 调用
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5 API
|
||||||
|
|
||||||
|
#### 5.1 拼音笔画基础 API: spell & stroke
|
||||||
|
|
||||||
|
为了尽可能使 api 使用简单,该库设计了两个主要的非常简洁的 api,并保证调用方式一致:
|
||||||
|
|
||||||
|
```js
|
||||||
|
// 获取汉字的拼音、多音词、音调等都集成在以下方法上
|
||||||
|
cnchar.spell(string[,...args]);
|
||||||
|
// 或
|
||||||
|
string.spell([...args])
|
||||||
|
|
||||||
|
// 获取汉字的笔画、笔画顺序等都集成在以下方法上
|
||||||
|
cnchar.stroke(string[,...args]);
|
||||||
|
// 或
|
||||||
|
string.stroke([...args])
|
||||||
|
```
|
||||||
|
|
||||||
|
该 api 设计一致,`string` 表示要处理的汉字字符串
|
||||||
|
|
||||||
|
关键在于可选参数的配置,参数配置将在<a href="#user-content-6-spell-stroke-参数">第六章</a>单独介绍
|
||||||
|
|
||||||
|
#### 5.2 繁体、简体、火星文互转: convert
|
||||||
|
|
||||||
|
当引入 `cnchar-trad` 之后,cnchar 就具备了繁体、简体、火星文互转功能,使用 `cnchar.convert` 对象上的方法,你就可以使用这个功能
|
||||||
|
|
||||||
|
自从 v2.0.4 以后,cnchar 保留以下方法可供使用:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.convert.simpleToTrad(string); // 简体 => 繁体
|
||||||
|
cnchar.convert.simpleToSpark(string); // 简体 => 火星文
|
||||||
|
cnchar.convert.tradToSimple(string); // 繁体 => 简体
|
||||||
|
cnchar.convert.tradToSpark(string); // 繁体 => 火星文
|
||||||
|
cnchar.convert.sparkToSimple(string); // 火星文 => 简体
|
||||||
|
cnchar.convert.sparkToTrad(string); // 火星文 => 繁体
|
||||||
|
|
||||||
|
string.convertSimpleToTrad();
|
||||||
|
string.convertSimpleToSpark();
|
||||||
|
string.convertTradToSimple();
|
||||||
|
string.convertTradToSpark();
|
||||||
|
string.convertSparkToSimple();
|
||||||
|
string.convertSparkToTrad();
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 5.3 笔画序列推出原汉字: orderToWord
|
||||||
|
|
||||||
|
当引入 `cnchar-order` 功能库(版本 2.0.2 及以上)之后,cnchar 就支持了根据笔画名称序列推出原汉字的功能,使用方式如下:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.orderToWord(orderNames[,...args]);
|
||||||
|
```
|
||||||
|
|
||||||
|
`orderNames` 是笔画名称序列
|
||||||
|
|
||||||
|
`args` 是参数列表,可选值有 `['match','matchorder','contain','start','array','simple']`, 使用 `cnchar.type.orderToWord` 可以查看可选值。 参数详细使用方法请参见<a href="#63-ordertoword-参数">第六章 orderToWord 参数</a>
|
||||||
|
|
||||||
|
`orderNames` 可以是空格分隔的笔画名称字符串或笔画名称数组,可用的笔画名称可以通过以下 api 查看
|
||||||
|
|
||||||
|
```js
|
||||||
|
var dict = cnchar.orderToWord.orders; // dict 是一个包含所有笔画数的详细信息的json数据
|
||||||
|
```
|
||||||
|
|
||||||
|
笔画详细信息的如下,orderNames 只需要传入笔画名称即可,也就是下面 json 数据的 key 值
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
卧钩: {shape: "㇃", letter: "y", sameLetterTo: "斜钩"}
|
||||||
|
弯钩: {shape: "㇁", letter: "t"}
|
||||||
|
捺: {shape: "㇏", letter: "l"}
|
||||||
|
提: {shape: "㇀", letter: "i"}
|
||||||
|
撇: {shape: "㇓", letter: "s"}
|
||||||
|
撇折: {shape: "㇜", letter: "n"}
|
||||||
|
撇点: {shape: "㇛", letter: "m"}
|
||||||
|
斜钩: {shape: "㇂", letter: "y", sameLetterTo: "卧钩"}
|
||||||
|
横: {shape: "㇐", letter: "j"}
|
||||||
|
横折: {shape: "㇕", letter: "c"}
|
||||||
|
横折弯: {shape: "㇍", letter: "v", sameLetterTo: "横折折"}
|
||||||
|
横折折: {shape: "㇅", letter: "v", sameLetterTo: "横折弯"}
|
||||||
|
横折折折: {shape: "㇎", letter: "q"}
|
||||||
|
横折折折钩: {shape: "㇡", letter: "w", sameLetterTo: "横撇弯钩"}
|
||||||
|
横折折撇: {shape: "㇋", letter: "a"}
|
||||||
|
横折提: {shape: "㇊", letter: "p"}
|
||||||
|
横折钩: {shape: "㇆", letter: "r"}
|
||||||
|
横撇: {shape: "㇇", letter: "e", sameLetterTo: "横钩"}
|
||||||
|
横撇弯钩: {shape: "㇌", letter: "w", sameLetterTo: "横折折折钩"}
|
||||||
|
横斜钩: {shape: "⺄", letter: "o"}
|
||||||
|
横钩: {shape: "㇖", letter: "e", sameLetterTo: "横撇"}
|
||||||
|
点: {shape: "㇔", letter: "k"}
|
||||||
|
竖: {shape: "㇑", letter: "f"}
|
||||||
|
竖弯: {shape: "㇄", letter: "b"}
|
||||||
|
竖弯钩: {shape: "㇟", letter: "u"}
|
||||||
|
竖折折: {shape: "㇞", letter: "x", sameLetterTo: "竖折撇"}
|
||||||
|
竖折折钩: {shape: "㇉", letter: "z"}
|
||||||
|
竖折撇: {shape: "ㄣ", letter: "x", sameLetterTo: "竖折折"}
|
||||||
|
竖提: {shape: "㇙", letter: "h"}
|
||||||
|
竖钩: {shape: "㇚", letter: "g"}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
注:其中以下五对笔画没有进行区分,使用的是同样的字母表示:
|
||||||
|
**卧钩 = 斜钩**、**横折弯 = 横折折**、**横折折折钩 = 横撇弯钩**、**横撇 = 横钩**、**竖折折 = 竖折撇**
|
||||||
|
|
||||||
|
以下是一个例子:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺']);
|
||||||
|
// 等价于
|
||||||
|
cnchar.orderToWord('横 撇 捺');
|
||||||
|
// 返回 "丈大"
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'array');
|
||||||
|
// 返回 ["丈","大"]
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'start');
|
||||||
|
// 返回 "丈大太犬夯夸夺夼奁奄奈奋奔态奎耷套奢瓠鹩奪奮遼"
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'start', 'simple');
|
||||||
|
// 返回 "丈大太犬夯夸夺夼奁奄奈奋奔态奎耷套奢瓠鹩"
|
||||||
|
```
|
||||||
|
|
||||||
|
如果输入的笔画不在 `cnchar.orderToWord.orders` 内,则该方法会打印一个错误提示哪些笔画有误,并返回一个空数组。
|
||||||
|
|
||||||
|
#### 5.4 通过拼音查询原汉字: spellToWord
|
||||||
|
|
||||||
|
`spellToWord` 方法用于根据拼音查询符合要求的汉字,用法如下:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spellToWord(spell[,...args]);
|
||||||
|
```
|
||||||
|
|
||||||
|
例子:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spellToWord('shàng'); // 返回 '上尚绱鞝'
|
||||||
|
cnchar.spellToWord('shàng', 'alltone'); // 返回 '上伤汤尚垧殇晌商绱觞赏墒熵裳傷湯殤鞝觴賞'
|
||||||
|
cnchar.spellToWord('shang4', 'alltone', 'trad'); // 返回 '傷湯殤鞝觴賞'
|
||||||
|
cnchar.spellToWord('lv2', 'simple'); // 返回 '驴闾榈'
|
||||||
|
```
|
||||||
|
|
||||||
|
注:
|
||||||
|
|
||||||
|
spell 表示拼音,可以使用音调字母或音调数标方式:
|
||||||
|
例:`shàng 等价于 shang4`
|
||||||
|
|
||||||
|
ü 可以使用 v 表示,例:`lü 等价于 lv`
|
||||||
|
|
||||||
|
#### 5.5 通过笔画数查询原汉字: strokeToWord
|
||||||
|
|
||||||
|
`strokeToWord` 方法用于根据笔画数查询符合要求的汉字,用法如下:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.strokeToWord(strokeCount[,...args]);
|
||||||
|
```
|
||||||
|
|
||||||
|
例子:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.strokeToWord(25); // 返回 '鬣馕囔戆攮纛饞躥顱籮蠻廳灣鑲鑰'
|
||||||
|
cnchar.strokeToWord(25, 'simple'); // 返回 '鬣馕囔戆攮纛'
|
||||||
|
cnchar.strokeToWord(1, 'array'); // 返回 ['一', '乙']
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 5.6 查询拼音详细信息: spellInfo
|
||||||
|
|
||||||
|
`spellInfo` 方法用于查询拼音的详细信息,用法如下:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spellInfo(spell);
|
||||||
|
```
|
||||||
|
|
||||||
|
例子:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spellInfo('Shàng');
|
||||||
|
/*
|
||||||
|
// 返回值与含义如下
|
||||||
|
{
|
||||||
|
spell: 'shang', // 无音调拼音
|
||||||
|
initial: 'sh', // 声母
|
||||||
|
final: 'ang', // 韵母
|
||||||
|
tone: 4, // 音调
|
||||||
|
index: 3 // 音调位置
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|
除此之外,`spellInfo` 上含有 `initials` 和 `tones` 两个属性,分别表示,所有可用的声母和音调:
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spellInfo.initials;
|
||||||
|
// ['b', 'p', 'm', 'f', 'd', 't', 'n', 'l', 'g', 'k', 'h', 'j', 'q', 'x', 'zh', 'ch', 'sh', 'r', 'z', 'c', 's', 'y', 'w']
|
||||||
|
cnchar.spellInfo.tones;
|
||||||
|
// ['ā', 'á', 'ǎ', 'à', 'ō', 'ó', 'ǒ', 'ò', 'ē', 'é', 'ě', 'è', 'ī', 'í', 'ǐ', 'ì', 'ū', 'ú', 'ǔ', 'ù', 'ǖ', 'ǘ', 'ǚ', 'ǜ', '*', 'ń', 'ň', 'ǹ']
|
||||||
|
// n 的一声使用 * 代替
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 5.7 其他 api
|
||||||
|
|
||||||
|
##### 5.7.1 .use()
|
||||||
|
|
||||||
|
这个 api 的功能是显式启用 `poly`、`order`、`trad` 三个功能库
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.use(...libs);
|
||||||
|
```
|
||||||
|
|
||||||
|
这个启用在非浏览器环境(比如 nodejs 等)中是必须的,使用如下:
|
||||||
|
|
||||||
|
```js
|
||||||
|
// 请保证最先引入 cnchar 基础库,其他几个库顺序无所谓
|
||||||
|
var cnchar = require('cnchar');
|
||||||
|
var poly = require('cnchar-poly');
|
||||||
|
var order = require('cnchar-order');
|
||||||
|
var trad = require('cnchar-trad');
|
||||||
|
cnchar.use(poly, order, trad); // 参数顺序无关,三个参数可以任意选择
|
||||||
|
```
|
||||||
|
|
||||||
|
在浏览器环境中则无需调用:
|
||||||
|
|
||||||
|
```js
|
||||||
|
// 请保证最先引入 cnchar 基础库,其他几个库顺序无所谓
|
||||||
|
import cnchar from 'cnchar';
|
||||||
|
import 'cnchar-poly';
|
||||||
|
import 'cnchar-order';
|
||||||
|
import 'cnchar-trad';
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 5.7.2 .type
|
||||||
|
|
||||||
|
type 对象用户获取当前可用的 `spell` 、 `stroke` 、 `orderToWord` 、`spellToWord`、`strokeToWord` 参数类型:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var spellArg = cnchar.type.spell;
|
||||||
|
var strokeArg = cnchar.type.stroke;
|
||||||
|
var orderToWordArg = cnchar.type.orderToWord;
|
||||||
|
var spellToWordArg = cnchar.type.spellToWord;
|
||||||
|
var strokeToWordArg = cnchar.type.strokeToWord;
|
||||||
|
```
|
||||||
|
|
||||||
|
spellArg 最多可用值: `['array', 'low', 'up', 'first', 'poly', 'tone', 'simple']`
|
||||||
|
|
||||||
|
strokeArg 最多可用值:`['letter', 'shape', 'count', 'name', 'detail', 'array', 'order', 'simple']`
|
||||||
|
|
||||||
|
orderToWordArg 最多可用值: `['match','matchorder','contain','start','array','simple']`
|
||||||
|
|
||||||
|
spellToWordArg 最多可用值: `['simple','trad','poly','alltone','array']`
|
||||||
|
|
||||||
|
strokeToWordArg 最多可用值: `['simple','trad','array']`
|
||||||
|
|
||||||
|
具体用法<a href="#user-content-6-spell-stroke-参数">第六章</a>讲到
|
||||||
|
|
||||||
|
##### 5.7.3 .check
|
||||||
|
|
||||||
|
该值是一个 布尔类型,用于控制是否开启参数校验,默认值为 true
|
||||||
|
|
||||||
|
参数校验能够对 `spell` 和 `stroke` 传入的参数进行检查,在控制台显示 `无效·`,`忽略`和`冗余`的参数
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.check = false; // 关闭参数校验
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 5.7.4 .version
|
||||||
|
|
||||||
|
获取当前版本:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var version = cnchar.version; // string 类型
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 5.7.5 .plugins
|
||||||
|
|
||||||
|
当前使用的功能库列表,最多的情况为 `["order", "trad", "poly"]`
|
||||||
|
|
||||||
|
```js
|
||||||
|
var plugins = cnchar.plugins; // array 类型
|
||||||
|
```
|
||||||
|
|
||||||
|
### 6 spell stroke 参数
|
||||||
|
|
||||||
|
#### 6.1 spell 参数
|
||||||
|
|
||||||
|
参数调用如下,所有 arg 参数都是可选的
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spell(string,arg1,arg2,...);
|
||||||
|
string.spell(arg1,arg2,...)
|
||||||
|
```
|
||||||
|
|
||||||
|
arg 参数信息如下:
|
||||||
|
|
||||||
|
| 参数 | 作用 | 是否默认 | 依赖库 | 备注 |
|
||||||
|
| :----: | :----------------------: | :------: | :---------: | :-------: |
|
||||||
|
| array | 返回数组 | 否 | -- | -- |
|
||||||
|
| first | 返回拼音首字母 | 否 | -- | -- |
|
||||||
|
| up | 将结果全部大写 | 否 | -- | -- |
|
||||||
|
| low | 将结果全部小写 | 否 | -- | 会被 up 参数覆盖 |
|
||||||
|
| poly | 使用候选多音字 | 否 | -- | -- |
|
||||||
|
| tone | 启用音调 | 否 | -- | -- |
|
||||||
|
| simple | 是否禁用繁体字的拼音功能 | 否 | cnchar-trad | 使用 cnchar-trad 之后,默认对繁体字拼音进行转换,该参数用于禁用繁体字拼音 |
|
||||||
|
|
||||||
|
#### 6.2 stroke 参数
|
||||||
|
|
||||||
|
参数调用如下,所有 arg 参数都是可选的
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.stroke(string,arg1,arg2,...);
|
||||||
|
string.stroke(arg1,arg2,...);
|
||||||
|
```
|
||||||
|
|
||||||
|
arg 参数信息如下:
|
||||||
|
|
||||||
|
| 参数 | 作用 | 是否默认 | 依赖库 | 备注 |
|
||||||
|
| :----: | :---------------: | :------: | :----------: | :-----------: |
|
||||||
|
| array | 返回数组 | 否 | -- | 使用 cnchar-order 且启用 order 参数后该参数被忽略 |
|
||||||
|
| order | 启用笔画顺序 | 否 | cnchar-order | -- |
|
||||||
|
| letter | 使用笔画顺序字母序列 | 是 | cnchar-order | 当启用 order 后,该值是默认值 |
|
||||||
|
| detail | 使用笔画顺序详情作为返回值,每个汉字对应一个 json | 否 | cnchar-order | 优先级小于 letter |
|
||||||
|
| shape | 使用笔画形状作为返回值 | 否 | cnchar-order | 优先级小于 detail |
|
||||||
|
| name | 使用笔画名称作为返回值 | 否 | cnchar-order | 优先级小于 shape |
|
||||||
|
| count | 使用笔画数作为返回值 | 否 | cnchar-poly | 优先级小于 name |
|
||||||
|
| simple | 是否禁用繁体字的笔画功能 | 否 | cnchar-trad | 使用 cnchar-trad 之后,默认对繁体字启用笔画功能,该参数用于禁用繁体字笔画功能 |
|
||||||
|
|
||||||
|
#### 6.3 orderToWord 参数
|
||||||
|
|
||||||
|
参数调用如下,所有 arg 参数都是可选的
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.orderToWord(orders,arg1,arg2,...);
|
||||||
|
```
|
||||||
|
|
||||||
|
arg 参数信息如下:
|
||||||
|
|
||||||
|
| 参数 | 作用 | 是否默认 | 依赖库 | 备注 |
|
||||||
|
| :---------: | :--------: | :------: | :---------: | :---: |
|
||||||
|
| match | 匹配含有笔序中所有笔画的汉字 | 否 | -- | -- |
|
||||||
|
| match-order | 匹配含有笔序中所有笔画的汉字前先后顺序一致 | 否 | -- | -- |
|
||||||
|
| contain | 匹配含有该笔序的汉字 | 否 | -- | -- |
|
||||||
|
| start | 匹配所有以该笔序开头的汉字 | 否 | -- | -- |
|
||||||
|
| array | 返回符合条件的数组,默认返回的是字符串 | 否 | -- | -- |
|
||||||
|
| simple | 禁用繁体字 | 否 | cnchar-trad | 该参数仅在引入了 `cnchar-trad` 后有效 |
|
||||||
|
|
||||||
|
关于匹配参数,优先级为 **match > match-order > contain > start > 默认**
|
||||||
|
|
||||||
|
不含有匹配参数时表示使用全匹配,即汉字笔画数与传入的 orders 完全一致
|
||||||
|
|
||||||
|
#### 6.4 spellToWord 参数
|
||||||
|
|
||||||
|
参数调用如下,所有 arg 参数都是可选的
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.spellToWord(spell,arg1,arg2,...);
|
||||||
|
```
|
||||||
|
|
||||||
|
spell 表示拼音,可以使用音调字母或音调数标方式:
|
||||||
|
例:`shàng 等价于 shang4`
|
||||||
|
|
||||||
|
ü 可以使用 v 表示,例:`lü 等价于 lv`
|
||||||
|
|
||||||
|
arg 参数信息如下:
|
||||||
|
|
||||||
|
| 参数 | 作用 | 是否默认 | 依赖库 | 备注 |
|
||||||
|
| :-----: | :----: | :------: | :---: | :---: |
|
||||||
|
| simple | 仅匹配简体字 | 否 | -- | -- |
|
||||||
|
| trad | 仅匹配繁体字 | 否 | cnchar-trad | 该参数仅在引入了 `cnchar-trad` 后有效 |
|
||||||
|
| poly | 仅匹配多音字 | 否 | -- | -- |
|
||||||
|
| alltone | 匹配该拼音所有音调的汉字 | 否 | -- | 没有音调的拼音表示轻声 |
|
||||||
|
| array | 返回符合条件的数组,默认返回的是字符串 | 否 | -- | -- |
|
||||||
|
|
||||||
|
注:`simple`与`trad`参数若是都不存在,则当引入`cnchar-trad`时会同时匹配繁简体,没有引入`cnchar-trad`时则只匹配简体
|
||||||
|
|
||||||
|
|
||||||
|
#### 6.5 strokeToWord 参数
|
||||||
|
|
||||||
|
参数调用如下,所有 arg 参数都是可选的
|
||||||
|
|
||||||
|
```js
|
||||||
|
cnchar.strokeToWord(spell,arg1,arg2,...);
|
||||||
|
```
|
||||||
|
|
||||||
|
| 参数 | 作用 | 是否默认 | 依赖库 | 备注 |
|
||||||
|
| :-----: | :----: | :------: | :---: | :---: |
|
||||||
|
| simple | 仅匹配简体字 | 否 | -- | -- |
|
||||||
|
| trad | 仅匹配繁体字 | 否 | cnchar-trad | 该参数仅在引入了 `cnchar-trad` 后有效 |
|
||||||
|
| array | 返回符合条件的数组,默认返回的是字符串 | 否 | -- | -- |
|
||||||
|
|
||||||
|
注:`simple`与`trad`参数若是都不存在,则当引入`cnchar-trad`时会同时匹配繁简体,没有引入`cnchar-trad`时则只匹配简体
|
||||||
|
|
||||||
|
#### 6.6 使用实例大全:
|
||||||
|
|
||||||
|
##### 6.6.0 安装使用
|
||||||
|
|
||||||
|
npm 方式
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i cnchar
|
||||||
|
```
|
||||||
|
|
||||||
|
```js
|
||||||
|
import cnchar from 'cnchar';
|
||||||
|
// do something
|
||||||
|
```
|
||||||
|
|
||||||
|
script 标签引用 方式
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"></script>
|
||||||
|
<script>
|
||||||
|
// do something
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 6.6.1 cnchar 基础库功能
|
||||||
|
|
||||||
|
```js
|
||||||
|
//spell 功能
|
||||||
|
'测试'.spell(); // 返回 'CeShi'
|
||||||
|
'测试'.spell('up'); // 返回 'CESHI'
|
||||||
|
'测试'.spell('low'); // 返回 'ceshi'
|
||||||
|
'测试'.spell('first'); // 返回 'CS'
|
||||||
|
'测试'.spell('first', 'low'); // 返回 'cs'
|
||||||
|
'测试'.spell('array'); // 返回 ['Ce','Shi']
|
||||||
|
'测试'.spell('array', 'first', 'low'); // 返回 ['c','s']
|
||||||
|
'测试'.spell('tone'); // 返回 'CèShì'
|
||||||
|
'长大了'.spell('poly'); // 返回 '(Zhang|Chang)(Da|Dai)(Le|Liao)'
|
||||||
|
|
||||||
|
//stroke 功能
|
||||||
|
'测'.stroke(); // 返回 9
|
||||||
|
'测试'.stroke(); // 返回 17
|
||||||
|
'测试'.stroke('array'); // 返回 [9,8]
|
||||||
|
|
||||||
|
//spellToWord 功能
|
||||||
|
cnchar.spellToWord('shàng'); // 返回 "上尚绱"
|
||||||
|
cnchar.spellToWord('lv2'); // 返回 "驴闾榈"
|
||||||
|
|
||||||
|
//strokeToWord 功能
|
||||||
|
cnchar.strokeToWord(2); // 返回 "丁七乃乜九了二人亻儿入八冂几凵刀刁力勹
|
||||||
|
|
||||||
|
//spellInfo 功能
|
||||||
|
cnchar.spellInfo('shàng');
|
||||||
|
// 返回 {spell: "shang", tone: 4, index: 3, initial: "sh", final: "ang"}
|
||||||
|
```
|
||||||
|
|
||||||
|
备注:
|
||||||
|
|
||||||
|
1. string.spell(...arg)方法等价于 `cnchar.spell(string,...args)`
|
||||||
|
2. string.stroke(...arg)方法等价于 `cnchar.stroke(string,...args)`
|
||||||
|
3. spell 方法 非中文字符会返回原字符
|
||||||
|
4. stroke 方法 非中文字符会笔画数会计为 0
|
||||||
|
5. stroke 方法 order 模式 非中文字符会返回 undefined
|
||||||
|
|
||||||
|
##### 6.6.2 cnchar-poly 库功能
|
||||||
|
|
||||||
|
该库用于准确识别多音词,同样支持 6.3.1 中的其他参数功能
|
||||||
|
|
||||||
|
```js
|
||||||
|
'长大了'.spell(); // 返回 'ZhangDaLe'
|
||||||
|
'长大了'.spell('array'); // 返回 ["Zhang", "Da", "Le"]
|
||||||
|
'长大了'.spell('poly'); // 返回 '(Zhang|Chang)(Da|Dai)(Le|Liao)'
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 6.6.3 cnchar-order 库功能
|
||||||
|
|
||||||
|
该库用于查询汉字笔画顺序、笔画名称等,返回值为 数组
|
||||||
|
|
||||||
|
```js
|
||||||
|
'一个'.stroke('order'); // 返回 ["j","slf"] 需要显式使用 order 参数 默认返回笔画数字母序列
|
||||||
|
'一个'.stroke('order', 'detail'); //
|
||||||
|
/* 返回详细笔画信息:
|
||||||
|
[
|
||||||
|
[{
|
||||||
|
"shape": "㇐",
|
||||||
|
"type": "平笔",
|
||||||
|
"foldCount": "0",
|
||||||
|
"name": "横"
|
||||||
|
}],[{
|
||||||
|
"shape": "㇓",
|
||||||
|
"type": "平笔",
|
||||||
|
"foldCount": "0",
|
||||||
|
"name": "撇"
|
||||||
|
},{
|
||||||
|
"shape": "㇏",
|
||||||
|
"type": "平笔",
|
||||||
|
"foldCount": "0",
|
||||||
|
"name": "捺"
|
||||||
|
},{
|
||||||
|
"shape": "㇑",
|
||||||
|
"type": "平笔",
|
||||||
|
"foldCount": "0",
|
||||||
|
"name": "竖"
|
||||||
|
}]
|
||||||
|
]*/
|
||||||
|
'一个'.stroke('order', 'shape'); // 返回 [["㇐"],["㇓","㇏","㇑"]]
|
||||||
|
'一个'.stroke('order', 'name'); // 返回 [["横"],["撇", "捺", "竖"]]
|
||||||
|
'一个'.stroke('order', 'count'); // 返回 [1, 3]
|
||||||
|
```
|
||||||
|
|
||||||
|
根据笔画名称序列推出原汉字
|
||||||
|
|
||||||
|
```js
|
||||||
|
var orders = cnchar.orderToWord.orders; //查看支持的笔画名称
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺']);
|
||||||
|
// 返回 "丈大"
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'array');
|
||||||
|
// 返回 ["丈","大"]
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'start');
|
||||||
|
// 返回 "丈大太犬夯夸夺夼奁奄奈奋奔态奎耷套奢瓠鹩奪奮遼"
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'start', 'simple');
|
||||||
|
// 返回 "丈大太犬夯夸夺夼奁奄奈奋奔态奎耷套奢瓠鹩"
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'match');
|
||||||
|
// 返回 "丈大仄兮友天太夫夭尺攵文木犬长丛仗仝叭..." // 省略后面的
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'matchorder');
|
||||||
|
// 返回 "丈大仄友天太夫夭尺攵文木犬仗叭史央夯失..." // 省略后面的
|
||||||
|
cnchar.orderToWord(['横', '撇', '捺'], 'contain');
|
||||||
|
// 返回 "丈大天太夫夭尺攵文犬仗叭史央夯失疋矢乔..." // 省略后面的
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 6.6.4 cnchar-trad 库功能
|
||||||
|
|
||||||
|
该库用于支持繁体字火星文转换及为拼音笔画数等基本功能提供繁体字支持
|
||||||
|
|
||||||
|
###### 6.6.4.1 convert 字体转换
|
||||||
|
|
||||||
|
```js
|
||||||
|
'一个人'.convertSimpleToTrad(); // 返回 "壹個人" 等价于 cnchar.convert.simpleToTrad
|
||||||
|
cnchar.convert.simpleToTrad('一个人');
|
||||||
|
|
||||||
|
'一个人'.convertSimpleToSpark(); // 返回 "①个亾" 等价于 cnchar.convert.simpleToSpark
|
||||||
|
cnchar.convert.simpleToSpark('一个人');
|
||||||
|
|
||||||
|
'壹個人'.convertTradToSimple(); // 返回 "一个人" 等价于 cnchar.convert.tradToSimple
|
||||||
|
cnchar.convert.tradToSimple('壹個人');
|
||||||
|
|
||||||
|
'壹個人'.convertTradToSpark(); // 返回 "①个亾" 等价于 cnchar.convert.tradToSpark
|
||||||
|
cnchar.convert.tradToSpark('壹個人');
|
||||||
|
|
||||||
|
'①个亾'.convertSparkToSimple(); // 返回 "一个人" 等价于 cnchar.convert.sparkToSimple
|
||||||
|
cnchar.convert.sparkToSimple('①个亾');
|
||||||
|
|
||||||
|
'①个亾'.convertSparkToTrad(); // 返回 "壹個人" 等价于 cnchar.convert.sparkToTrad
|
||||||
|
cnchar.convert.sparkToTrad('①个亾');
|
||||||
|
```
|
||||||
|
|
||||||
|
###### 6.6.4.2 spell 和 stroke 方法
|
||||||
|
|
||||||
|
该库增加了对于繁体字的拼音笔画功能扩展,其他基础用法与 基础库一致:
|
||||||
|
|
||||||
|
```js
|
||||||
|
//spell 功能
|
||||||
|
'長大'.spell(); // 返回 'ZhangDa'
|
||||||
|
'長大'.spell('simple'); // 返回 '長Da' // 禁用繁体字拼音功能
|
||||||
|
|
||||||
|
//stroke 功能
|
||||||
|
'長大'.stroke('array'); // 返回 [8, 3]
|
||||||
|
'長大'.stroke('array', 'simple'); // 返回 [0, 3] // 禁用繁体字笔画功能
|
||||||
|
'長大'.stroke('order', 'shape'); // 返回 [["㇐","㇑","㇐","㇐","㇐","㇙","㇓","㇏"],["㇐","㇓","㇏"]]
|
||||||
|
'長大'.stroke('order', 'shape', 'simple'); // 返回 [undefined, ["㇐","㇓","㇏"]]
|
||||||
|
```
|
||||||
|
|
||||||
|
### 7 应用例子
|
||||||
|
|
||||||
|
[汉字打字游戏](https://www.theajack.com/type/)
|
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Document</title>
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/vssue/dist/vssue.min.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id='vssue'></div>
|
||||||
|
<script src="https://unpkg.com/vue/dist/vue.runtime.min.js"></script>
|
||||||
|
<script src="https://unpkg.com/vssue/dist/vssue.gitee.min.js"></script>
|
||||||
|
<script>
|
||||||
|
var vue = new Vue({
|
||||||
|
el: '#vssue',
|
||||||
|
render: function(h){
|
||||||
|
h('Vssue',{
|
||||||
|
props: {
|
||||||
|
title: 'Vssue Demo',
|
||||||
|
options:{
|
||||||
|
owner: 'theajack',
|
||||||
|
repo: 'cnchar',
|
||||||
|
clientId: '821ec73b080bf789253229157fa3aa64b442cb85ce7d9d2ae09bade44cfc3a9b',
|
||||||
|
clientSecret: '5fdbff0298ddd0839c806f58b68974ab2c2bc1a3ab045d849790f18b6ee327f0',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,47 @@
|
||||||
|
.part {
|
||||||
|
padding: 50px 14%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-gray2 {
|
||||||
|
background-color: #eee!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#usePart {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#runAPI {
|
||||||
|
position: fixed;
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
top: 10%;
|
||||||
|
left: 10%;
|
||||||
|
box-shadow: 0px 0px 20px 2px #eee;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: rgba(255, 255, 255, .95);
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.api-use-item {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: #444;
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
transform: translateY(0px);
|
||||||
|
box-shadow: none;
|
||||||
|
transition: all .3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.api-use-item:hover {
|
||||||
|
transform: translateY(-6px);
|
||||||
|
box-shadow: 0px 5px 10px 3px #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
.api-use-item .glyphicon {
|
||||||
|
color: #aaa;
|
||||||
|
top: 2px;
|
||||||
|
margin: 0 4px;
|
||||||
|
}
|
|
@ -0,0 +1,229 @@
|
||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata></metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
|
||||||
|
<font-face units-per-em="1200" ascent="960" descent="-240" />
|
||||||
|
<missing-glyph horiz-adv-x="500" />
|
||||||
|
<glyph />
|
||||||
|
<glyph />
|
||||||
|
<glyph unicode="
" />
|
||||||
|
<glyph unicode=" " />
|
||||||
|
<glyph unicode="*" d="M100 500v200h259l-183 183l141 141l183 -183v259h200v-259l183 183l141 -141l-183 -183h259v-200h-259l183 -183l-141 -141l-183 183v-259h-200v259l-183 -183l-141 141l183 183h-259z" />
|
||||||
|
<glyph unicode="+" d="M0 400v300h400v400h300v-400h400v-300h-400v-400h-300v400h-400z" />
|
||||||
|
<glyph unicode=" " />
|
||||||
|
<glyph unicode=" " horiz-adv-x="652" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1304" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="652" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1304" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="434" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="326" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="217" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="217" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="163" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="260" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="72" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="260" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="326" />
|
||||||
|
<glyph unicode="€" d="M100 500l100 100h113q0 47 5 100h-218l100 100h135q37 167 112 257q117 141 297 141q242 0 354 -189q60 -103 66 -209h-181q0 55 -25.5 99t-63.5 68t-75 36.5t-67 12.5q-24 0 -52.5 -10t-62.5 -32t-65.5 -67t-50.5 -107h379l-100 -100h-300q-6 -46 -6 -100h406l-100 -100 h-300q9 -74 33 -132t52.5 -91t62 -54.5t59 -29t46.5 -7.5q29 0 66 13t75 37t63.5 67.5t25.5 96.5h174q-31 -172 -128 -278q-107 -117 -274 -117q-205 0 -324 158q-36 46 -69 131.5t-45 205.5h-217z" />
|
||||||
|
<glyph unicode="−" d="M200 400h900v300h-900v-300z" />
|
||||||
|
<glyph unicode="◼" horiz-adv-x="500" d="M0 0z" />
|
||||||
|
<glyph unicode="☁" d="M-14 494q0 -80 56.5 -137t135.5 -57h750q120 0 205 86.5t85 207.5t-85 207t-205 86q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5z" />
|
||||||
|
<glyph unicode="✉" d="M0 100l400 400l200 -200l200 200l400 -400h-1200zM0 300v600l300 -300zM0 1100l600 -603l600 603h-1200zM900 600l300 300v-600z" />
|
||||||
|
<glyph unicode="✏" d="M-13 -13l333 112l-223 223zM187 403l214 -214l614 614l-214 214zM887 1103l214 -214l99 92q13 13 13 32.5t-13 33.5l-153 153q-15 13 -33 13t-33 -13z" />
|
||||||
|
<glyph unicode="" d="M0 1200h1200l-500 -550v-550h300v-100h-800v100h300v550z" />
|
||||||
|
<glyph unicode="" d="M14 84q18 -55 86 -75.5t147 5.5q65 21 109 69t44 90v606l600 155v-521q-64 16 -138 -7q-79 -26 -122.5 -83t-25.5 -111q18 -55 86 -75.5t147 4.5q70 23 111.5 63.5t41.5 95.5v881q0 10 -7 15.5t-17 2.5l-752 -193q-10 -3 -17 -12.5t-7 -19.5v-689q-64 17 -138 -7 q-79 -25 -122.5 -82t-25.5 -112z" />
|
||||||
|
<glyph unicode="" d="M23 693q0 200 142 342t342 142t342 -142t142 -342q0 -142 -78 -261l300 -300q7 -8 7 -18t-7 -18l-109 -109q-8 -7 -18 -7t-18 7l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342zM176 693q0 -136 97 -233t234 -97t233.5 96.5t96.5 233.5t-96.5 233.5t-233.5 96.5 t-234 -97t-97 -233z" />
|
||||||
|
<glyph unicode="" d="M100 784q0 64 28 123t73 100.5t104.5 64t119 20.5t120 -38.5t104.5 -104.5q48 69 109.5 105t121.5 38t118.5 -20.5t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-149.5 152.5t-126.5 127.5 t-94 124.5t-33.5 117.5z" />
|
||||||
|
<glyph unicode="" d="M-72 800h479l146 400h2l146 -400h472l-382 -278l145 -449l-384 275l-382 -275l146 447zM168 71l2 1z" />
|
||||||
|
<glyph unicode="" d="M-72 800h479l146 400h2l146 -400h472l-382 -278l145 -449l-384 275l-382 -275l146 447zM168 71l2 1zM237 700l196 -142l-73 -226l192 140l195 -141l-74 229l193 140h-235l-77 211l-78 -211h-239z" />
|
||||||
|
<glyph unicode="" d="M0 0v143l400 257v100q-37 0 -68.5 74.5t-31.5 125.5v200q0 124 88 212t212 88t212 -88t88 -212v-200q0 -51 -31.5 -125.5t-68.5 -74.5v-100l400 -257v-143h-1200z" />
|
||||||
|
<glyph unicode="" d="M0 0v1100h1200v-1100h-1200zM100 100h100v100h-100v-100zM100 300h100v100h-100v-100zM100 500h100v100h-100v-100zM100 700h100v100h-100v-100zM100 900h100v100h-100v-100zM300 100h600v400h-600v-400zM300 600h600v400h-600v-400zM1000 100h100v100h-100v-100z M1000 300h100v100h-100v-100zM1000 500h100v100h-100v-100zM1000 700h100v100h-100v-100zM1000 900h100v100h-100v-100z" />
|
||||||
|
<glyph unicode="" d="M0 50v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5zM0 650v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5zM600 50v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5zM600 650v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||||
|
<glyph unicode="" d="M0 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM0 450v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5zM0 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5 t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 450v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5 v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM800 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM800 450v200q0 21 14.5 35.5t35.5 14.5h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM800 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||||
|
<glyph unicode="" d="M0 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM0 450q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v200q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5 t-14.5 -35.5v-200zM0 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 50v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5 t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5zM400 450v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5zM400 850v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5 v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||||
|
<glyph unicode="" d="M29 454l419 -420l818 820l-212 212l-607 -607l-206 207z" />
|
||||||
|
<glyph unicode="" d="M106 318l282 282l-282 282l212 212l282 -282l282 282l212 -212l-282 -282l282 -282l-212 -212l-282 282l-282 -282z" />
|
||||||
|
<glyph unicode="" d="M23 693q0 200 142 342t342 142t342 -142t142 -342q0 -142 -78 -261l300 -300q7 -8 7 -18t-7 -18l-109 -109q-8 -7 -18 -7t-18 7l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342zM176 693q0 -136 97 -233t234 -97t233.5 96.5t96.5 233.5t-96.5 233.5t-233.5 96.5 t-234 -97t-97 -233zM300 600v200h100v100h200v-100h100v-200h-100v-100h-200v100h-100z" />
|
||||||
|
<glyph unicode="" d="M23 694q0 200 142 342t342 142t342 -142t142 -342q0 -141 -78 -262l300 -299q7 -7 7 -18t-7 -18l-109 -109q-8 -8 -18 -8t-18 8l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342zM176 694q0 -136 97 -233t234 -97t233.5 97t96.5 233t-96.5 233t-233.5 97t-234 -97 t-97 -233zM300 601h400v200h-400v-200z" />
|
||||||
|
<glyph unicode="" d="M23 600q0 183 105 331t272 210v-166q-103 -55 -165 -155t-62 -220q0 -177 125 -302t302 -125t302 125t125 302q0 120 -62 220t-165 155v166q167 -62 272 -210t105 -331q0 -118 -45.5 -224.5t-123 -184t-184 -123t-224.5 -45.5t-224.5 45.5t-184 123t-123 184t-45.5 224.5 zM500 750q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v400q0 21 -14.5 35.5t-35.5 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-400z" />
|
||||||
|
<glyph unicode="" d="M100 1h200v300h-200v-300zM400 1v500h200v-500h-200zM700 1v800h200v-800h-200zM1000 1v1200h200v-1200h-200z" />
|
||||||
|
<glyph unicode="" d="M26 601q0 -33 6 -74l151 -38l2 -6q14 -49 38 -93l3 -5l-80 -134q45 -59 105 -105l133 81l5 -3q45 -26 94 -39l5 -2l38 -151q40 -5 74 -5q27 0 74 5l38 151l6 2q46 13 93 39l5 3l134 -81q56 44 104 105l-80 134l3 5q24 44 39 93l1 6l152 38q5 40 5 74q0 28 -5 73l-152 38 l-1 6q-16 51 -39 93l-3 5l80 134q-44 58 -104 105l-134 -81l-5 3q-45 25 -93 39l-6 1l-38 152q-40 5 -74 5q-27 0 -74 -5l-38 -152l-5 -1q-50 -14 -94 -39l-5 -3l-133 81q-59 -47 -105 -105l80 -134l-3 -5q-25 -47 -38 -93l-2 -6l-151 -38q-6 -48 -6 -73zM385 601 q0 88 63 151t152 63t152 -63t63 -151q0 -89 -63 -152t-152 -63t-152 63t-63 152z" />
|
||||||
|
<glyph unicode="" d="M100 1025v50q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-50q0 -11 -7 -18t-18 -7h-1050q-11 0 -18 7t-7 18zM200 100v800h900v-800q0 -41 -29.5 -71t-70.5 -30h-700q-41 0 -70.5 30 t-29.5 71zM300 100h100v700h-100v-700zM500 100h100v700h-100v-700zM500 1100h300v100h-300v-100zM700 100h100v700h-100v-700zM900 100h100v700h-100v-700z" />
|
||||||
|
<glyph unicode="" d="M1 601l656 644l644 -644h-200v-600h-300v400h-300v-400h-300v600h-200z" />
|
||||||
|
<glyph unicode="" d="M100 25v1150q0 11 7 18t18 7h475v-500h400v-675q0 -11 -7 -18t-18 -7h-850q-11 0 -18 7t-7 18zM700 800v300l300 -300h-300z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM500 500v400h100 v-300h200v-100h-300z" />
|
||||||
|
<glyph unicode="" d="M-100 0l431 1200h209l-21 -300h162l-20 300h208l431 -1200h-538l-41 400h-242l-40 -400h-539zM488 500h224l-27 300h-170z" />
|
||||||
|
<glyph unicode="" d="M0 0v400h490l-290 300h200v500h300v-500h200l-290 -300h490v-400h-1100zM813 200h175v100h-175v-100z" />
|
||||||
|
<glyph unicode="" d="M1 600q0 122 47.5 233t127.5 191t191 127.5t233 47.5t233 -47.5t191 -127.5t127.5 -191t47.5 -233t-47.5 -233t-127.5 -191t-191 -127.5t-233 -47.5t-233 47.5t-191 127.5t-127.5 191t-47.5 233zM188 600q0 -170 121 -291t291 -121t291 121t121 291t-121 291t-291 121 t-291 -121t-121 -291zM350 600h150v300h200v-300h150l-250 -300z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM350 600l250 300 l250 -300h-150v-300h-200v300h-150z" />
|
||||||
|
<glyph unicode="" d="M0 25v475l200 700h800l199 -700l1 -475q0 -11 -7 -18t-18 -7h-1150q-11 0 -18 7t-7 18zM200 500h200l50 -200h300l50 200h200l-97 500h-606z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -172 121.5 -293t292.5 -121t292.5 121t121.5 293q0 171 -121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM500 397v401 l297 -200z" />
|
||||||
|
<glyph unicode="" d="M23 600q0 -118 45.5 -224.5t123 -184t184 -123t224.5 -45.5t224.5 45.5t184 123t123 184t45.5 224.5h-150q0 -177 -125 -302t-302 -125t-302 125t-125 302t125 302t302 125q136 0 246 -81l-146 -146h400v400l-145 -145q-157 122 -355 122q-118 0 -224.5 -45.5t-184 -123 t-123 -184t-45.5 -224.5z" />
|
||||||
|
<glyph unicode="" d="M23 600q0 118 45.5 224.5t123 184t184 123t224.5 45.5q198 0 355 -122l145 145v-400h-400l147 147q-112 80 -247 80q-177 0 -302 -125t-125 -302h-150zM100 0v400h400l-147 -147q112 -80 247 -80q177 0 302 125t125 302h150q0 -118 -45.5 -224.5t-123 -184t-184 -123 t-224.5 -45.5q-198 0 -355 122z" />
|
||||||
|
<glyph unicode="" d="M100 0h1100v1200h-1100v-1200zM200 100v900h900v-900h-900zM300 200v100h100v-100h-100zM300 400v100h100v-100h-100zM300 600v100h100v-100h-100zM300 800v100h100v-100h-100zM500 200h500v100h-500v-100zM500 400v100h500v-100h-500zM500 600v100h500v-100h-500z M500 800v100h500v-100h-500z" />
|
||||||
|
<glyph unicode="" d="M0 100v600q0 41 29.5 70.5t70.5 29.5h100v200q0 82 59 141t141 59h300q82 0 141 -59t59 -141v-200h100q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-900q-41 0 -70.5 29.5t-29.5 70.5zM400 800h300v150q0 21 -14.5 35.5t-35.5 14.5h-200 q-21 0 -35.5 -14.5t-14.5 -35.5v-150z" />
|
||||||
|
<glyph unicode="" d="M100 0v1100h100v-1100h-100zM300 400q60 60 127.5 84t127.5 17.5t122 -23t119 -30t110 -11t103 42t91 120.5v500q-40 -81 -101.5 -115.5t-127.5 -29.5t-138 25t-139.5 40t-125.5 25t-103 -29.5t-65 -115.5v-500z" />
|
||||||
|
<glyph unicode="" d="M0 275q0 -11 7 -18t18 -7h50q11 0 18 7t7 18v300q0 127 70.5 231.5t184.5 161.5t245 57t245 -57t184.5 -161.5t70.5 -231.5v-300q0 -11 7 -18t18 -7h50q11 0 18 7t7 18v300q0 116 -49.5 227t-131 192.5t-192.5 131t-227 49.5t-227 -49.5t-192.5 -131t-131 -192.5 t-49.5 -227v-300zM200 20v460q0 8 6 14t14 6h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14zM800 20v460q0 8 6 14t14 6h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14z" />
|
||||||
|
<glyph unicode="" d="M0 400h300l300 -200v800l-300 -200h-300v-400zM688 459l141 141l-141 141l71 71l141 -141l141 141l71 -71l-141 -141l141 -141l-71 -71l-141 141l-141 -141z" />
|
||||||
|
<glyph unicode="" d="M0 400h300l300 -200v800l-300 -200h-300v-400zM700 857l69 53q111 -135 111 -310q0 -169 -106 -302l-67 54q86 110 86 248q0 146 -93 257z" />
|
||||||
|
<glyph unicode="" d="M0 401v400h300l300 200v-800l-300 200h-300zM702 858l69 53q111 -135 111 -310q0 -170 -106 -303l-67 55q86 110 86 248q0 145 -93 257zM889 951l7 -8q123 -151 123 -344q0 -189 -119 -339l-7 -8l81 -66l6 8q142 178 142 405q0 230 -144 408l-6 8z" />
|
||||||
|
<glyph unicode="" d="M0 0h500v500h-200v100h-100v-100h-200v-500zM0 600h100v100h400v100h100v100h-100v300h-500v-600zM100 100v300h300v-300h-300zM100 800v300h300v-300h-300zM200 200v100h100v-100h-100zM200 900h100v100h-100v-100zM500 500v100h300v-300h200v-100h-100v-100h-200v100 h-100v100h100v200h-200zM600 0v100h100v-100h-100zM600 1000h100v-300h200v-300h300v200h-200v100h200v500h-600v-200zM800 800v300h300v-300h-300zM900 0v100h300v-100h-300zM900 900v100h100v-100h-100zM1100 200v100h100v-100h-100z" />
|
||||||
|
<glyph unicode="" d="M0 200h100v1000h-100v-1000zM100 0v100h300v-100h-300zM200 200v1000h100v-1000h-100zM500 0v91h100v-91h-100zM500 200v1000h200v-1000h-200zM700 0v91h100v-91h-100zM800 200v1000h100v-1000h-100zM900 0v91h200v-91h-200zM1000 200v1000h200v-1000h-200z" />
|
||||||
|
<glyph unicode="" d="M0 700l1 475q0 10 7.5 17.5t17.5 7.5h474l700 -700l-500 -500zM148 953q0 -42 29 -71q30 -30 71.5 -30t71.5 30q29 29 29 71t-29 71q-30 30 -71.5 30t-71.5 -30q-29 -29 -29 -71z" />
|
||||||
|
<glyph unicode="" d="M1 700l1 475q0 11 7 18t18 7h474l700 -700l-500 -500zM148 953q0 -42 30 -71q29 -30 71 -30t71 30q30 29 30 71t-30 71q-29 30 -71 30t-71 -30q-30 -29 -30 -71zM701 1200h100l700 -700l-500 -500l-50 50l450 450z" />
|
||||||
|
<glyph unicode="" d="M100 0v1025l175 175h925v-1000l-100 -100v1000h-750l-100 -100h750v-1000h-900z" />
|
||||||
|
<glyph unicode="" d="M200 0l450 444l450 -443v1150q0 20 -14.5 35t-35.5 15h-800q-21 0 -35.5 -15t-14.5 -35v-1151z" />
|
||||||
|
<glyph unicode="" d="M0 100v700h200l100 -200h600l100 200h200v-700h-200v200h-800v-200h-200zM253 829l40 -124h592l62 124l-94 346q-2 11 -10 18t-18 7h-450q-10 0 -18 -7t-10 -18zM281 24l38 152q2 10 11.5 17t19.5 7h500q10 0 19.5 -7t11.5 -17l38 -152q2 -10 -3.5 -17t-15.5 -7h-600 q-10 0 -15.5 7t-3.5 17z" />
|
||||||
|
<glyph unicode="" d="M0 200q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-150q-4 8 -11.5 21.5t-33 48t-53 61t-69 48t-83.5 21.5h-200q-41 0 -82 -20.5t-70 -50t-52 -59t-34 -50.5l-12 -20h-150q-41 0 -70.5 -29.5t-29.5 -70.5v-600z M356 500q0 100 72 172t172 72t172 -72t72 -172t-72 -172t-172 -72t-172 72t-72 172zM494 500q0 -44 31 -75t75 -31t75 31t31 75t-31 75t-75 31t-75 -31t-31 -75zM900 700v100h100v-100h-100z" />
|
||||||
|
<glyph unicode="" d="M53 0h365v66q-41 0 -72 11t-49 38t1 71l92 234h391l82 -222q16 -45 -5.5 -88.5t-74.5 -43.5v-66h417v66q-34 1 -74 43q-18 19 -33 42t-21 37l-6 13l-385 998h-93l-399 -1006q-24 -48 -52 -75q-12 -12 -33 -25t-36 -20l-15 -7v-66zM416 521l178 457l46 -140l116 -317h-340 z" />
|
||||||
|
<glyph unicode="" d="M100 0v89q41 7 70.5 32.5t29.5 65.5v827q0 28 -1 39.5t-5.5 26t-15.5 21t-29 14t-49 14.5v71l471 -1q120 0 213 -88t93 -228q0 -55 -11.5 -101.5t-28 -74t-33.5 -47.5t-28 -28l-12 -7q8 -3 21.5 -9t48 -31.5t60.5 -58t47.5 -91.5t21.5 -129q0 -84 -59 -156.5t-142 -111 t-162 -38.5h-500zM400 200h161q89 0 153 48.5t64 132.5q0 90 -62.5 154.5t-156.5 64.5h-159v-400zM400 700h139q76 0 130 61.5t54 138.5q0 82 -84 130.5t-239 48.5v-379z" />
|
||||||
|
<glyph unicode="" d="M200 0v57q77 7 134.5 40.5t65.5 80.5l173 849q10 56 -10 74t-91 37q-6 1 -10.5 2.5t-9.5 2.5v57h425l2 -57q-33 -8 -62 -25.5t-46 -37t-29.5 -38t-17.5 -30.5l-5 -12l-128 -825q-10 -52 14 -82t95 -36v-57h-500z" />
|
||||||
|
<glyph unicode="" d="M-75 200h75v800h-75l125 167l125 -167h-75v-800h75l-125 -167zM300 900v300h150h700h150v-300h-50q0 29 -8 48.5t-18.5 30t-33.5 15t-39.5 5.5t-50.5 1h-200v-850l100 -50v-100h-400v100l100 50v850h-200q-34 0 -50.5 -1t-40 -5.5t-33.5 -15t-18.5 -30t-8.5 -48.5h-49z " />
|
||||||
|
<glyph unicode="" d="M33 51l167 125v-75h800v75l167 -125l-167 -125v75h-800v-75zM100 901v300h150h700h150v-300h-50q0 29 -8 48.5t-18 30t-33.5 15t-40 5.5t-50.5 1h-200v-650l100 -50v-100h-400v100l100 50v650h-200q-34 0 -50.5 -1t-39.5 -5.5t-33.5 -15t-18.5 -30t-8 -48.5h-50z" />
|
||||||
|
<glyph unicode="" d="M0 50q0 -20 14.5 -35t35.5 -15h1100q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM0 350q0 -20 14.5 -35t35.5 -15h800q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-800q-21 0 -35.5 -14.5t-14.5 -35.5 v-100zM0 650q0 -20 14.5 -35t35.5 -15h1000q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1000q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM0 950q0 -20 14.5 -35t35.5 -15h600q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-600q-21 0 -35.5 -14.5 t-14.5 -35.5v-100z" />
|
||||||
|
<glyph unicode="" d="M0 50q0 -20 14.5 -35t35.5 -15h1100q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM0 650q0 -20 14.5 -35t35.5 -15h1100q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5 v-100zM200 350q0 -20 14.5 -35t35.5 -15h700q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-700q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM200 950q0 -20 14.5 -35t35.5 -15h700q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-700q-21 0 -35.5 -14.5 t-14.5 -35.5v-100z" />
|
||||||
|
<glyph unicode="" d="M0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1000q-21 0 -35.5 15 t-14.5 35zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-600 q-21 0 -35.5 15t-14.5 35z" />
|
||||||
|
<glyph unicode="" d="M0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM0 350v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15 t-14.5 35zM0 650v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM0 950v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100 q-21 0 -35.5 15t-14.5 35z" />
|
||||||
|
<glyph unicode="" d="M0 50v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM0 350v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15 t-14.5 35zM0 650v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM0 950v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15 t-14.5 35zM300 50v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800 q-21 0 -35.5 15t-14.5 35zM300 650v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM300 950v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15 h-800q-21 0 -35.5 15t-14.5 35z" />
|
||||||
|
<glyph unicode="" d="M-101 500v100h201v75l166 -125l-166 -125v75h-201zM300 0h100v1100h-100v-1100zM500 50q0 -20 14.5 -35t35.5 -15h600q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM500 350q0 -20 14.5 -35t35.5 -15h300q20 0 35 15t15 35 v100q0 21 -15 35.5t-35 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM500 650q0 -20 14.5 -35t35.5 -15h500q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM500 950q0 -20 14.5 -35t35.5 -15h100q20 0 35 15t15 35v100 q0 21 -15 35.5t-35 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-100z" />
|
||||||
|
<glyph unicode="" d="M1 50q0 -20 14.5 -35t35.5 -15h600q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM1 350q0 -20 14.5 -35t35.5 -15h300q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM1 650 q0 -20 14.5 -35t35.5 -15h500q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM1 950q0 -20 14.5 -35t35.5 -15h100q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM801 0v1100h100v-1100 h-100zM934 550l167 -125v75h200v100h-200v75z" />
|
||||||
|
<glyph unicode="" d="M0 275v650q0 31 22 53t53 22h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53zM900 600l300 300v-600z" />
|
||||||
|
<glyph unicode="" d="M0 44v1012q0 18 13 31t31 13h1112q19 0 31.5 -13t12.5 -31v-1012q0 -18 -12.5 -31t-31.5 -13h-1112q-18 0 -31 13t-13 31zM100 263l247 182l298 -131l-74 156l293 318l236 -288v500h-1000v-737zM208 750q0 56 39 95t95 39t95 -39t39 -95t-39 -95t-95 -39t-95 39t-39 95z " />
|
||||||
|
<glyph unicode="" d="M148 745q0 124 60.5 231.5t165 172t226.5 64.5q123 0 227 -63t164.5 -169.5t60.5 -229.5t-73 -272q-73 -114 -166.5 -237t-150.5 -189l-57 -66q-10 9 -27 26t-66.5 70.5t-96 109t-104 135.5t-100.5 155q-63 139 -63 262zM342 772q0 -107 75.5 -182.5t181.5 -75.5 q107 0 182.5 75.5t75.5 182.5t-75.5 182t-182.5 75t-182 -75.5t-75 -181.5z" />
|
||||||
|
<glyph unicode="" d="M1 600q0 122 47.5 233t127.5 191t191 127.5t233 47.5t233 -47.5t191 -127.5t127.5 -191t47.5 -233t-47.5 -233t-127.5 -191t-191 -127.5t-233 -47.5t-233 47.5t-191 127.5t-127.5 191t-47.5 233zM173 600q0 -177 125.5 -302t301.5 -125v854q-176 0 -301.5 -125 t-125.5 -302z" />
|
||||||
|
<glyph unicode="" d="M117 406q0 94 34 186t88.5 172.5t112 159t115 177t87.5 194.5q21 -71 57.5 -142.5t76 -130.5t83 -118.5t82 -117t70 -116t50 -125.5t18.5 -136q0 -89 -39 -165.5t-102 -126.5t-140 -79.5t-156 -33.5q-114 6 -211.5 53t-161.5 139t-64 210zM243 414q14 -82 59.5 -136 t136.5 -80l16 98q-7 6 -18 17t-34 48t-33 77q-15 73 -14 143.5t10 122.5l9 51q-92 -110 -119.5 -185t-12.5 -156z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5q366 -6 397 -14l-186 -186h-311q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v125l200 200v-225q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5 t-117.5 282.5zM436 341l161 50l412 412l-114 113l-405 -405zM995 1015l113 -113l113 113l-21 85l-92 28z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h261l2 -80q-133 -32 -218 -120h-145q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-53q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5 zM423 524q30 38 81.5 64t103 35.5t99 14t77.5 3.5l29 -1v-209l360 324l-359 318v-216q-7 0 -19 -1t-48 -8t-69.5 -18.5t-76.5 -37t-76.5 -59t-62 -88t-39.5 -121.5z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h300q61 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-169q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5 t-117.5 282.5zM342 632l283 -284l567 567l-137 137l-430 -431l-146 147z" />
|
||||||
|
<glyph unicode="" d="M0 603l300 296v-198h200v200h-200l300 300l295 -300h-195v-200h200v198l300 -296l-300 -300v198h-200v-200h195l-295 -300l-300 300h200v200h-200v-198z" />
|
||||||
|
<glyph unicode="" d="M200 50v1000q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-437l500 487v-1100l-500 488v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||||
|
<glyph unicode="" d="M0 50v1000q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-437l500 487v-487l500 487v-1100l-500 488v-488l-500 488v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||||
|
<glyph unicode="" d="M136 550l564 550v-487l500 487v-1100l-500 488v-488z" />
|
||||||
|
<glyph unicode="" d="M200 0l900 550l-900 550v-1100z" />
|
||||||
|
<glyph unicode="" d="M200 150q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v800q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5t-14.5 -35.5v-800zM600 150q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v800q0 21 -14.5 35.5t-35.5 14.5h-200 q-21 0 -35.5 -14.5t-14.5 -35.5v-800z" />
|
||||||
|
<glyph unicode="" d="M200 150q0 -20 14.5 -35t35.5 -15h800q21 0 35.5 15t14.5 35v800q0 21 -14.5 35.5t-35.5 14.5h-800q-21 0 -35.5 -14.5t-14.5 -35.5v-800z" />
|
||||||
|
<glyph unicode="" d="M0 0v1100l500 -487v487l564 -550l-564 -550v488z" />
|
||||||
|
<glyph unicode="" d="M0 0v1100l500 -487v487l500 -487v437q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-500 -488v488z" />
|
||||||
|
<glyph unicode="" d="M300 0v1100l500 -487v437q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438z" />
|
||||||
|
<glyph unicode="" d="M100 250v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5zM100 500h1100l-550 564z" />
|
||||||
|
<glyph unicode="" d="M185 599l592 -592l240 240l-353 353l353 353l-240 240z" />
|
||||||
|
<glyph unicode="" d="M272 194l353 353l-353 353l241 240l572 -571l21 -22l-1 -1v-1l-592 -591z" />
|
||||||
|
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM300 500h200v-200h200v200h200v200h-200v200h-200v-200h-200v-200z" />
|
||||||
|
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM300 500h600v200h-600v-200z" />
|
||||||
|
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM246 459l213 -213l141 142l141 -142l213 213l-142 141l142 141l-213 212l-141 -141l-141 142l-212 -213l141 -141 z" />
|
||||||
|
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM270 551l276 -277l411 411l-175 174l-236 -236l-102 102z" />
|
||||||
|
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM364 700h143q4 0 11.5 -1t11 -1t6.5 3t3 9t1 11t3.5 8.5t3.5 6t5.5 4t6.5 2.5t9 1.5t9 0.5h11.5h12.5 q19 0 30 -10t11 -26q0 -22 -4 -28t-27 -22q-5 -1 -12.5 -3t-27 -13.5t-34 -27t-26.5 -46t-11 -68.5h200q5 3 14 8t31.5 25.5t39.5 45.5t31 69t14 94q0 51 -17.5 89t-42 58t-58.5 32t-58.5 15t-51.5 3q-50 0 -90.5 -12t-75 -38.5t-53.5 -74.5t-19 -114zM500 300h200v100h-200 v-100z" />
|
||||||
|
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM400 300h400v100h-100v300h-300v-100h100v-200h-100v-100zM500 800h200v100h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M0 500v200h195q31 125 98.5 199.5t206.5 100.5v200h200v-200q54 -20 113 -60t112.5 -105.5t71.5 -134.5h203v-200h-203q-25 -102 -116.5 -186t-180.5 -117v-197h-200v197q-140 27 -208 102.5t-98 200.5h-194zM290 500q24 -73 79.5 -127.5t130.5 -78.5v206h200v-206 q149 48 201 206h-201v200h200q-25 74 -75.5 127t-124.5 77v-204h-200v203q-75 -23 -130 -77t-79 -126h209v-200h-210z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM356 465l135 135 l-135 135l109 109l135 -135l135 135l109 -109l-135 -135l135 -135l-109 -109l-135 135l-135 -135z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM322 537l141 141 l87 -87l204 205l142 -142l-346 -345z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -115 62 -215l568 567q-100 62 -216 62q-171 0 -292.5 -121.5t-121.5 -292.5zM391 245q97 -59 209 -59q171 0 292.5 121.5t121.5 292.5 q0 112 -59 209z" />
|
||||||
|
<glyph unicode="" d="M0 547l600 453v-300h600v-300h-600v-301z" />
|
||||||
|
<glyph unicode="" d="M0 400v300h600v300l600 -453l-600 -448v301h-600z" />
|
||||||
|
<glyph unicode="" d="M204 600l450 600l444 -600h-298v-600h-300v600h-296z" />
|
||||||
|
<glyph unicode="" d="M104 600h296v600h300v-600h298l-449 -600z" />
|
||||||
|
<glyph unicode="" d="M0 200q6 132 41 238.5t103.5 193t184 138t271.5 59.5v271l600 -453l-600 -448v301q-95 -2 -183 -20t-170 -52t-147 -92.5t-100 -135.5z" />
|
||||||
|
<glyph unicode="" d="M0 0v400l129 -129l294 294l142 -142l-294 -294l129 -129h-400zM635 777l142 -142l294 294l129 -129v400h-400l129 -129z" />
|
||||||
|
<glyph unicode="" d="M34 176l295 295l-129 129h400v-400l-129 130l-295 -295zM600 600v400l129 -129l295 295l142 -141l-295 -295l129 -130h-400z" />
|
||||||
|
<glyph unicode="" d="M23 600q0 118 45.5 224.5t123 184t184 123t224.5 45.5t224.5 -45.5t184 -123t123 -184t45.5 -224.5t-45.5 -224.5t-123 -184t-184 -123t-224.5 -45.5t-224.5 45.5t-184 123t-123 184t-45.5 224.5zM456 851l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5 t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5h-207q-21 0 -33 -14.5t-8 -34.5zM500 300h200v100h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M0 800h100v-200h400v300h200v-300h400v200h100v100h-111q1 1 1 6.5t-1.5 15t-3.5 17.5l-34 172q-11 39 -41.5 63t-69.5 24q-32 0 -61 -17l-239 -144q-22 -13 -40 -35q-19 24 -40 36l-238 144q-33 18 -62 18q-39 0 -69.5 -23t-40.5 -61l-35 -177q-2 -8 -3 -18t-1 -15v-6 h-111v-100zM100 0h400v400h-400v-400zM200 900q-3 0 14 48t36 96l18 47l213 -191h-281zM700 0v400h400v-400h-400zM731 900l202 197q5 -12 12 -32.5t23 -64t25 -72t7 -28.5h-269z" />
|
||||||
|
<glyph unicode="" d="M0 -22v143l216 193q-9 53 -13 83t-5.5 94t9 113t38.5 114t74 124q47 60 99.5 102.5t103 68t127.5 48t145.5 37.5t184.5 43.5t220 58.5q0 -189 -22 -343t-59 -258t-89 -181.5t-108.5 -120t-122 -68t-125.5 -30t-121.5 -1.5t-107.5 12.5t-87.5 17t-56.5 7.5l-99 -55z M238.5 300.5q19.5 -6.5 86.5 76.5q55 66 367 234q70 38 118.5 69.5t102 79t99 111.5t86.5 148q22 50 24 60t-6 19q-7 5 -17 5t-26.5 -14.5t-33.5 -39.5q-35 -51 -113.5 -108.5t-139.5 -89.5l-61 -32q-369 -197 -458 -401q-48 -111 -28.5 -117.5z" />
|
||||||
|
<glyph unicode="" d="M111 408q0 -33 5 -63q9 -56 44 -119.5t105 -108.5q31 -21 64 -16t62 23.5t57 49.5t48 61.5t35 60.5q32 66 39 184.5t-13 157.5q79 -80 122 -164t26 -184q-5 -33 -20.5 -69.5t-37.5 -80.5q-10 -19 -14.5 -29t-12 -26t-9 -23.5t-3 -19t2.5 -15.5t11 -9.5t19.5 -5t30.5 2.5 t42 8q57 20 91 34t87.5 44.5t87 64t65.5 88.5t47 122q38 172 -44.5 341.5t-246.5 278.5q22 -44 43 -129q39 -159 -32 -154q-15 2 -33 9q-79 33 -120.5 100t-44 175.5t48.5 257.5q-13 -8 -34 -23.5t-72.5 -66.5t-88.5 -105.5t-60 -138t-8 -166.5q2 -12 8 -41.5t8 -43t6 -39.5 t3.5 -39.5t-1 -33.5t-6 -31.5t-13.5 -24t-21 -20.5t-31 -12q-38 -10 -67 13t-40.5 61.5t-15 81.5t10.5 75q-52 -46 -83.5 -101t-39 -107t-7.5 -85z" />
|
||||||
|
<glyph unicode="" d="M-61 600l26 40q6 10 20 30t49 63.5t74.5 85.5t97 90t116.5 83.5t132.5 59t145.5 23.5t145.5 -23.5t132.5 -59t116.5 -83.5t97 -90t74.5 -85.5t49 -63.5t20 -30l26 -40l-26 -40q-6 -10 -20 -30t-49 -63.5t-74.5 -85.5t-97 -90t-116.5 -83.5t-132.5 -59t-145.5 -23.5 t-145.5 23.5t-132.5 59t-116.5 83.5t-97 90t-74.5 85.5t-49 63.5t-20 30zM120 600q7 -10 40.5 -58t56 -78.5t68 -77.5t87.5 -75t103 -49.5t125 -21.5t123.5 20t100.5 45.5t85.5 71.5t66.5 75.5t58 81.5t47 66q-1 1 -28.5 37.5t-42 55t-43.5 53t-57.5 63.5t-58.5 54 q49 -74 49 -163q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 85 46 158q-102 -87 -226 -258zM377 656q49 -124 154 -191l105 105q-37 24 -75 72t-57 84l-20 36z" />
|
||||||
|
<glyph unicode="" d="M-61 600l26 40q6 10 20 30t49 63.5t74.5 85.5t97 90t116.5 83.5t132.5 59t145.5 23.5q61 0 121 -17l37 142h148l-314 -1200h-148l37 143q-82 21 -165 71.5t-140 102t-109.5 112t-72 88.5t-29.5 43zM120 600q210 -282 393 -336l37 141q-107 18 -178.5 101.5t-71.5 193.5 q0 85 46 158q-102 -87 -226 -258zM377 656q49 -124 154 -191l47 47l23 87q-30 28 -59 69t-44 68l-14 26zM780 161l38 145q22 15 44.5 34t46 44t40.5 44t41 50.5t33.5 43.5t33 44t24.5 34q-97 127 -140 175l39 146q67 -54 131.5 -125.5t87.5 -103.5t36 -52l26 -40l-26 -40 q-7 -12 -25.5 -38t-63.5 -79.5t-95.5 -102.5t-124 -100t-146.5 -79z" />
|
||||||
|
<glyph unicode="" d="M-97.5 34q13.5 -34 50.5 -34h1294q37 0 50.5 35.5t-7.5 67.5l-642 1056q-20 34 -48 36.5t-48 -29.5l-642 -1066q-21 -32 -7.5 -66zM155 200l445 723l445 -723h-345v100h-200v-100h-345zM500 600l100 -300l100 300v100h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M100 262v41q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44t106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -91 100 -113v-64q0 -20 -13 -28.5t-32 0.5l-94 78h-222l-94 -78q-19 -9 -32 -0.5t-13 28.5 v64q0 22 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5z" />
|
||||||
|
<glyph unicode="" d="M0 50q0 -20 14.5 -35t35.5 -15h1000q21 0 35.5 15t14.5 35v750h-1100v-750zM0 900h1100v150q0 21 -14.5 35.5t-35.5 14.5h-150v100h-100v-100h-500v100h-100v-100h-150q-21 0 -35.5 -14.5t-14.5 -35.5v-150zM100 100v100h100v-100h-100zM100 300v100h100v-100h-100z M100 500v100h100v-100h-100zM300 100v100h100v-100h-100zM300 300v100h100v-100h-100zM300 500v100h100v-100h-100zM500 100v100h100v-100h-100zM500 300v100h100v-100h-100zM500 500v100h100v-100h-100zM700 100v100h100v-100h-100zM700 300v100h100v-100h-100zM700 500 v100h100v-100h-100zM900 100v100h100v-100h-100zM900 300v100h100v-100h-100zM900 500v100h100v-100h-100z" />
|
||||||
|
<glyph unicode="" d="M0 200v200h259l600 600h241v198l300 -295l-300 -300v197h-159l-600 -600h-341zM0 800h259l122 -122l141 142l-181 180h-341v-200zM678 381l141 142l122 -123h159v198l300 -295l-300 -300v197h-241z" />
|
||||||
|
<glyph unicode="" d="M0 400v600q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5z" />
|
||||||
|
<glyph unicode="" d="M100 600v200h300v-250q0 -113 6 -145q17 -92 102 -117q39 -11 92 -11q37 0 66.5 5.5t50 15.5t36 24t24 31.5t14 37.5t7 42t2.5 45t0 47v25v250h300v-200q0 -42 -3 -83t-15 -104t-31.5 -116t-58 -109.5t-89 -96.5t-129 -65.5t-174.5 -25.5t-174.5 25.5t-129 65.5t-89 96.5 t-58 109.5t-31.5 116t-15 104t-3 83zM100 900v300h300v-300h-300zM800 900v300h300v-300h-300z" />
|
||||||
|
<glyph unicode="" d="M-30 411l227 -227l352 353l353 -353l226 227l-578 579z" />
|
||||||
|
<glyph unicode="" d="M70 797l580 -579l578 579l-226 227l-353 -353l-352 353z" />
|
||||||
|
<glyph unicode="" d="M-198 700l299 283l300 -283h-203v-400h385l215 -200h-800v600h-196zM402 1000l215 -200h381v-400h-198l299 -283l299 283h-200v600h-796z" />
|
||||||
|
<glyph unicode="" d="M18 939q-5 24 10 42q14 19 39 19h896l38 162q5 17 18.5 27.5t30.5 10.5h94q20 0 35 -14.5t15 -35.5t-15 -35.5t-35 -14.5h-54l-201 -961q-2 -4 -6 -10.5t-19 -17.5t-33 -11h-31v-50q0 -20 -14.5 -35t-35.5 -15t-35.5 15t-14.5 35v50h-300v-50q0 -20 -14.5 -35t-35.5 -15 t-35.5 15t-14.5 35v50h-50q-21 0 -35.5 15t-14.5 35q0 21 14.5 35.5t35.5 14.5h535l48 200h-633q-32 0 -54.5 21t-27.5 43z" />
|
||||||
|
<glyph unicode="" d="M0 0v800h1200v-800h-1200zM0 900v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500v-100h-1200z" />
|
||||||
|
<glyph unicode="" d="M1 0l300 700h1200l-300 -700h-1200zM1 400v600h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500v-200h-1000z" />
|
||||||
|
<glyph unicode="" d="M302 300h198v600h-198l298 300l298 -300h-198v-600h198l-298 -300z" />
|
||||||
|
<glyph unicode="" d="M0 600l300 298v-198h600v198l300 -298l-300 -297v197h-600v-197z" />
|
||||||
|
<glyph unicode="" d="M0 100v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM31 400l172 739q5 22 23 41.5t38 19.5h672q19 0 37.5 -22.5t23.5 -45.5l172 -732h-1138zM800 100h100v100h-100v-100z M1000 100h100v100h-100v-100z" />
|
||||||
|
<glyph unicode="" d="M-101 600v50q0 24 25 49t50 38l25 13v-250l-11 5.5t-24 14t-30 21.5t-24 27.5t-11 31.5zM100 500v250v8v8v7t0.5 7t1.5 5.5t2 5t3 4t4.5 3.5t6 1.5t7.5 0.5h200l675 250v-850l-675 200h-38l47 -276q2 -12 -3 -17.5t-11 -6t-21 -0.5h-8h-83q-20 0 -34.5 14t-18.5 35 q-55 337 -55 351zM1100 200v850q0 21 14.5 35.5t35.5 14.5q20 0 35 -14.5t15 -35.5v-850q0 -20 -15 -35t-35 -15q-21 0 -35.5 15t-14.5 35z" />
|
||||||
|
<glyph unicode="" d="M74 350q0 21 13.5 35.5t33.5 14.5h18l117 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3 32t29 13h94q20 0 29 -10.5t3 -29.5q-18 -36 -18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q20 0 33.5 -14.5t13.5 -35.5q0 -20 -13 -40t-31 -27q-8 -3 -23 -8.5 t-65 -20t-103 -25t-132.5 -19.5t-158.5 -9q-125 0 -245.5 20.5t-178.5 40.5l-58 20q-18 7 -31 27.5t-13 40.5zM497 110q12 -49 40 -79.5t63 -30.5t63 30.5t39 79.5q-48 -6 -102 -6t-103 6z" />
|
||||||
|
<glyph unicode="" d="M21 445l233 -45l-78 -224l224 78l45 -233l155 179l155 -179l45 233l224 -78l-78 224l234 45l-180 155l180 156l-234 44l78 225l-224 -78l-45 233l-155 -180l-155 180l-45 -233l-224 78l78 -225l-233 -44l179 -156z" />
|
||||||
|
<glyph unicode="" d="M0 200h200v600h-200v-600zM300 275q0 -75 100 -75h61q124 -100 139 -100h250q46 0 83 57l238 344q29 31 29 74v100q0 44 -30.5 84.5t-69.5 40.5h-328q28 118 28 125v150q0 44 -30.5 84.5t-69.5 40.5h-50q-27 0 -51 -20t-38 -48l-96 -198l-145 -196q-20 -26 -20 -63v-400z M400 300v375l150 213l100 212h50v-175l-50 -225h450v-125l-250 -375h-214l-136 100h-100z" />
|
||||||
|
<glyph unicode="" d="M0 400v600h200v-600h-200zM300 525v400q0 75 100 75h61q124 100 139 100h250q46 0 83 -57l238 -344q29 -31 29 -74v-100q0 -44 -30.5 -84.5t-69.5 -40.5h-328q28 -118 28 -125v-150q0 -44 -30.5 -84.5t-69.5 -40.5h-50q-27 0 -51 20t-38 48l-96 198l-145 196 q-20 26 -20 63zM400 525l150 -212l100 -213h50v175l-50 225h450v125l-250 375h-214l-136 -100h-100v-375z" />
|
||||||
|
<glyph unicode="" d="M8 200v600h200v-600h-200zM308 275v525q0 17 14 35.5t28 28.5l14 9l362 230q14 6 25 6q17 0 29 -12l109 -112q14 -14 14 -34q0 -18 -11 -32l-85 -121h302q85 0 138.5 -38t53.5 -110t-54.5 -111t-138.5 -39h-107l-130 -339q-7 -22 -20.5 -41.5t-28.5 -19.5h-341 q-7 0 -90 81t-83 94zM408 289l100 -89h293l131 339q6 21 19.5 41t28.5 20h203q16 0 25 15t9 36q0 20 -9 34.5t-25 14.5h-457h-6.5h-7.5t-6.5 0.5t-6 1t-5 1.5t-5.5 2.5t-4 4t-4 5.5q-5 12 -5 20q0 14 10 27l147 183l-86 83l-339 -236v-503z" />
|
||||||
|
<glyph unicode="" d="M-101 651q0 72 54 110t139 38l302 -1l-85 121q-11 16 -11 32q0 21 14 34l109 113q13 12 29 12q11 0 25 -6l365 -230q7 -4 17 -10.5t26.5 -26t16.5 -36.5v-526q0 -13 -86 -93.5t-94 -80.5h-341q-16 0 -29.5 20t-19.5 41l-130 339h-107q-84 0 -139 39t-55 111zM-1 601h222 q15 0 28.5 -20.5t19.5 -40.5l131 -339h293l107 89v502l-343 237l-87 -83l145 -184q10 -11 10 -26q0 -11 -5 -20q-1 -3 -3.5 -5.5l-4 -4t-5 -2.5t-5.5 -1.5t-6.5 -1t-6.5 -0.5h-7.5h-6.5h-476v-100zM1000 201v600h200v-600h-200z" />
|
||||||
|
<glyph unicode="" d="M97 719l230 -363q4 -6 10.5 -15.5t26 -25t36.5 -15.5h525q13 0 94 83t81 90v342q0 15 -20 28.5t-41 19.5l-339 131v106q0 84 -39 139t-111 55t-110 -53.5t-38 -138.5v-302l-121 84q-15 12 -33.5 11.5t-32.5 -13.5l-112 -110q-22 -22 -6 -53zM172 739l83 86l183 -146 q22 -18 47 -5q3 1 5.5 3.5l4 4t2.5 5t1.5 5.5t1 6.5t0.5 6.5v7.5v6.5v456q0 22 25 31t50 -0.5t25 -30.5v-202q0 -16 20 -29.5t41 -19.5l339 -130v-294l-89 -100h-503zM400 0v200h600v-200h-600z" />
|
||||||
|
<glyph unicode="" d="M2 585q-16 -31 6 -53l112 -110q13 -13 32 -13.5t34 10.5l121 85q0 -51 -0.5 -153.5t-0.5 -148.5q0 -84 38.5 -138t110.5 -54t111 55t39 139v106l339 131q20 6 40.5 19.5t20.5 28.5v342q0 7 -81 90t-94 83h-525q-17 0 -35.5 -14t-28.5 -28l-10 -15zM77 565l236 339h503 l89 -100v-294l-340 -130q-20 -6 -40 -20t-20 -29v-202q0 -22 -25 -31t-50 0t-25 31v456v14.5t-1.5 11.5t-5 12t-9.5 7q-24 13 -46 -5l-184 -146zM305 1104v200h600v-200h-600z" />
|
||||||
|
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM298 701l2 -201h300l-2 -194l402 294l-402 298v-197h-300z" />
|
||||||
|
<glyph unicode="" d="M0 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t231.5 47.5q122 0 232.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-218 -217.5t-300 -80t-299.5 80t-217.5 217.5t-80 299.5zM200 600l402 -294l-2 194h300l2 201h-300v197z" />
|
||||||
|
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM300 600h200v-300h200v300h200l-300 400z" />
|
||||||
|
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM300 600l300 -400l300 400h-200v300h-200v-300h-200z" />
|
||||||
|
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q121 0 231.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM254 780q-8 -33 5.5 -92.5t7.5 -87.5q0 -9 17 -44t16 -60 q12 0 23 -5.5t23 -15t20 -13.5q24 -12 108 -42q22 -8 53 -31.5t59.5 -38.5t57.5 -11q8 -18 -15 -55t-20 -57q42 -71 87 -80q0 -6 -3 -15.5t-3.5 -14.5t4.5 -17q104 -3 221 112q30 29 47 47t34.5 49t20.5 62q-14 9 -37 9.5t-36 7.5q-14 7 -49 15t-52 19q-9 0 -39.5 -0.5 t-46.5 -1.5t-39 -6.5t-39 -16.5q-50 -35 -66 -12q-4 2 -3.5 25.5t0.5 25.5q-6 13 -26.5 17t-24.5 7q2 22 -2 41t-16.5 28t-38.5 -20q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q12 -19 32 -37.5t34 -27.5l14 -8q0 3 9.5 39.5t5.5 57.5 q-4 23 14.5 44.5t22.5 31.5q5 14 10 35t8.5 31t15.5 22.5t34 21.5q-6 18 10 37q8 0 23.5 -1.5t24.5 -1.5t20.5 4.5t20.5 15.5q-10 23 -30.5 42.5t-38 30t-49 26.5t-43.5 23q11 39 2 44q31 -13 58 -14.5t39 3.5l11 4q7 36 -16.5 53.5t-64.5 28.5t-56 23q-19 -3 -37 0 q-15 -12 -36.5 -21t-34.5 -12t-44 -8t-39 -6q-15 -3 -45.5 0.5t-45.5 -2.5q-21 -7 -52 -26.5t-34 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -90.5t-29.5 -79.5zM518 916q3 12 16 30t16 25q10 -10 18.5 -10t14 6t14.5 14.5t16 12.5q0 -24 17 -66.5t17 -43.5 q-9 2 -31 5t-36 5t-32 8t-30 14zM692 1003h1h-1z" />
|
||||||
|
<glyph unicode="" d="M0 164.5q0 21.5 15 37.5l600 599q-33 101 6 201.5t135 154.5q164 92 306 -9l-259 -138l145 -232l251 126q13 -175 -151 -267q-123 -70 -253 -23l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5z" />
|
||||||
|
<glyph unicode="" horiz-adv-x="1220" d="M0 196v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM0 596v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5zM0 996v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM600 596h500v100h-500v-100zM800 196h300v100h-300v-100zM900 996h200v100h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M100 1100v100h1000v-100h-1000zM150 1000h900l-350 -500v-300l-200 -200v500z" />
|
||||||
|
<glyph unicode="" d="M0 200v200h1200v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM0 500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500z M500 1000h200v100h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M0 0v400l129 -129l200 200l142 -142l-200 -200l129 -129h-400zM0 800l129 129l200 -200l142 142l-200 200l129 129h-400v-400zM729 329l142 142l200 -200l129 129v-400h-400l129 129zM729 871l200 200l-129 129h400v-400l-129 129l-200 -200z" />
|
||||||
|
<glyph unicode="" d="M0 596q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM182 596q0 -172 121.5 -293t292.5 -121t292.5 121t121.5 293q0 171 -121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM291 655 q0 23 15.5 38.5t38.5 15.5t39 -16t16 -38q0 -23 -16 -39t-39 -16q-22 0 -38 16t-16 39zM400 850q0 22 16 38.5t39 16.5q22 0 38 -16t16 -39t-16 -39t-38 -16q-23 0 -39 16.5t-16 38.5zM514 609q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 22 16 38.5t39 16.5 q22 0 38 -16t16 -39t-16 -39t-38 -16q-14 0 -29 10l-55 -145q17 -22 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5zM800 655q0 22 16 38t39 16t38.5 -15.5t15.5 -38.5t-16 -39t-38 -16q-23 0 -39 16t-16 39z" />
|
||||||
|
<glyph unicode="" d="M-40 375q-13 -95 35 -173q35 -57 94 -89t129 -32q63 0 119 28q33 16 65 40.5t52.5 45.5t59.5 64q40 44 57 61l394 394q35 35 47 84t-3 96q-27 87 -117 104q-20 2 -29 2q-46 0 -78.5 -16.5t-67.5 -51.5l-389 -396l-7 -7l69 -67l377 373q20 22 39 38q23 23 50 23 q38 0 53 -36q16 -39 -20 -75l-547 -547q-52 -52 -125 -52q-55 0 -100 33t-54 96q-5 35 2.5 66t31.5 63t42 50t56 54q24 21 44 41l348 348q52 52 82.5 79.5t84 54t107.5 26.5q25 0 48 -4q95 -17 154 -94.5t51 -175.5q-7 -101 -98 -192l-252 -249l-253 -256l7 -7l69 -60 l517 511q67 67 95 157t11 183q-16 87 -67 154t-130 103q-69 33 -152 33q-107 0 -197 -55q-40 -24 -111 -95l-512 -512q-68 -68 -81 -163z" />
|
||||||
|
<glyph unicode="" d="M80 784q0 131 98.5 229.5t230.5 98.5q143 0 241 -129q103 129 246 129q129 0 226 -98.5t97 -229.5q0 -46 -17.5 -91t-61 -99t-77 -89.5t-104.5 -105.5q-197 -191 -293 -322l-17 -23l-16 23q-43 58 -100 122.5t-92 99.5t-101 100q-71 70 -104.5 105.5t-77 89.5t-61 99 t-17.5 91zM250 784q0 -27 30.5 -70t61.5 -75.5t95 -94.5l22 -22q93 -90 190 -201q82 92 195 203l12 12q64 62 97.5 97t64.5 79t31 72q0 71 -48 119.5t-105 48.5q-74 0 -132 -83l-118 -171l-114 174q-51 80 -123 80q-60 0 -109.5 -49.5t-49.5 -118.5z" />
|
||||||
|
<glyph unicode="" d="M57 353q0 -95 66 -159l141 -142q68 -66 159 -66q93 0 159 66l283 283q66 66 66 159t-66 159l-141 141q-8 9 -19 17l-105 -105l212 -212l-389 -389l-247 248l95 95l-18 18q-46 45 -75 101l-55 -55q-66 -66 -66 -159zM269 706q0 -93 66 -159l141 -141q7 -7 19 -17l105 105 l-212 212l389 389l247 -247l-95 -96l18 -17q47 -49 77 -100l29 29q35 35 62.5 88t27.5 96q0 93 -66 159l-141 141q-66 66 -159 66q-95 0 -159 -66l-283 -283q-66 -64 -66 -159z" />
|
||||||
|
<glyph unicode="" d="M200 100v953q0 21 30 46t81 48t129 38t163 15t162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5zM300 300h600v700h-600v-700zM496 150q0 -43 30.5 -73.5t73.5 -30.5t73.5 30.5t30.5 73.5t-30.5 73.5t-73.5 30.5 t-73.5 -30.5t-30.5 -73.5z" />
|
||||||
|
<glyph unicode="" d="M0 0l303 380l207 208l-210 212h300l267 279l-35 36q-15 14 -15 35t15 35q14 15 35 15t35 -15l283 -282q15 -15 15 -36t-15 -35q-14 -15 -35 -15t-35 15l-36 35l-279 -267v-300l-212 210l-208 -207z" />
|
||||||
|
<glyph unicode="" d="M295 433h139q5 -77 48.5 -126.5t117.5 -64.5v335q-6 1 -15.5 4t-11.5 3q-46 14 -79 26.5t-72 36t-62.5 52t-40 72.5t-16.5 99q0 92 44 159.5t109 101t144 40.5v78h100v-79q38 -4 72.5 -13.5t75.5 -31.5t71 -53.5t51.5 -84t24.5 -118.5h-159q-8 72 -35 109.5t-101 50.5 v-307l64 -14q34 -7 64 -16.5t70 -31.5t67.5 -52t47.5 -80.5t20 -112.5q0 -139 -89 -224t-244 -96v-77h-100v78q-152 17 -237 104q-40 40 -52.5 93.5t-15.5 139.5zM466 889q0 -29 8 -51t16.5 -34t29.5 -22.5t31 -13.5t38 -10q7 -2 11 -3v274q-61 -8 -97.5 -37.5t-36.5 -102.5 zM700 237q170 18 170 151q0 64 -44 99.5t-126 60.5v-311z" />
|
||||||
|
<glyph unicode="" d="M100 600v100h166q-24 49 -44 104q-10 26 -14.5 55.5t-3 72.5t25 90t68.5 87q97 88 263 88q129 0 230 -89t101 -208h-153q0 52 -34 89.5t-74 51.5t-76 14q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -28 16.5 -69.5t28 -62.5t41.5 -72h241v-100h-197q8 -50 -2.5 -115 t-31.5 -94q-41 -59 -99 -113q35 11 84 18t70 7q33 1 103 -16t103 -17q76 0 136 30l50 -147q-41 -25 -80.5 -36.5t-59 -13t-61.5 -1.5q-23 0 -128 33t-155 29q-39 -4 -82 -17t-66 -25l-24 -11l-55 145l16.5 11t15.5 10t13.5 9.5t14.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221z" />
|
||||||
|
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM602 900l298 300l298 -300h-198v-900h-200v900h-198z" />
|
||||||
|
<glyph unicode="" d="M2 300h198v900h200v-900h198l-298 -300zM700 0v200h100v-100h200v-100h-300zM700 400v100h300v-200h-99v-100h-100v100h99v100h-200zM700 700v500h300v-500h-100v100h-100v-100h-100zM801 900h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M2 300h198v900h200v-900h198l-298 -300zM700 0v500h300v-500h-100v100h-100v-100h-100zM700 700v200h100v-100h200v-100h-300zM700 1100v100h300v-200h-99v-100h-100v100h99v100h-200zM801 200h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM800 100v400h300v-500h-100v100h-200zM800 1100v100h200v-500h-100v400h-100zM901 200h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM800 400v100h200v-500h-100v400h-100zM800 800v400h300v-500h-100v100h-200zM901 900h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM700 100v200h500v-200h-500zM700 400v200h400v-200h-400zM700 700v200h300v-200h-300zM700 1000v200h200v-200h-200z" />
|
||||||
|
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM700 100v200h200v-200h-200zM700 400v200h300v-200h-300zM700 700v200h400v-200h-400zM700 1000v200h500v-200h-500z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h300q162 0 281 -118.5t119 -281.5v-300q0 -165 -118.5 -282.5t-281.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 163 119 281.5t281 118.5h300q165 0 282.5 -117.5t117.5 -282.5v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-163 0 -281.5 117.5t-118.5 282.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM400 300l333 250l-333 250v-500z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 163 117.5 281.5t282.5 118.5h300q163 0 281.5 -119t118.5 -281v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM300 700l250 -333l250 333h-500z" />
|
||||||
|
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h300q165 0 282.5 -117.5t117.5 -282.5v-300q0 -162 -118.5 -281t-281.5 -119h-300q-165 0 -282.5 118.5t-117.5 281.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM300 400h500l-250 333z" />
|
||||||
|
<glyph unicode="" d="M0 400v300h300v200l400 -350l-400 -350v200h-300zM500 0v200h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-500v200h400q165 0 282.5 -117.5t117.5 -282.5v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-400z" />
|
||||||
|
<glyph unicode="" d="M217 519q8 -19 31 -19h302q-155 -438 -160 -458q-5 -21 4 -32l9 -8h9q14 0 26 15q11 13 274.5 321.5t264.5 308.5q14 19 5 36q-8 17 -31 17l-301 -1q1 4 78 219.5t79 227.5q2 15 -5 27l-9 9h-9q-15 0 -25 -16q-4 -6 -98 -111.5t-228.5 -257t-209.5 -237.5q-16 -19 -6 -41 z" />
|
||||||
|
<glyph unicode="" d="M0 400q0 -165 117.5 -282.5t282.5 -117.5h300q47 0 100 15v185h-500q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5h500v185q-14 4 -114 7.5t-193 5.5l-93 2q-165 0 -282.5 -117.5t-117.5 -282.5v-300zM600 400v300h300v200l400 -350l-400 -350v200h-300z " />
|
||||||
|
<glyph unicode="" d="M0 400q0 -165 117.5 -282.5t282.5 -117.5h300q163 0 281.5 117.5t118.5 282.5v98l-78 73l-122 -123v-148q0 -41 -29.5 -70.5t-70.5 -29.5h-500q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5h156l118 122l-74 78h-100q-165 0 -282.5 -117.5t-117.5 -282.5 v-300zM496 709l353 342l-149 149h500v-500l-149 149l-342 -353z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM406 600 q0 80 57 137t137 57t137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137z" />
|
||||||
|
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 800l445 -500l450 500h-295v400h-300v-400h-300zM900 150h100v50h-100v-50z" />
|
||||||
|
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 700h300v-300h300v300h295l-445 500zM900 150h100v50h-100v-50z" />
|
||||||
|
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 705l305 -305l596 596l-154 155l-442 -442l-150 151zM900 150h100v50h-100v-50z" />
|
||||||
|
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 988l97 -98l212 213l-97 97zM200 400l697 1l3 699l-250 -239l-149 149l-212 -212l149 -149zM900 150h100v50h-100v-50z" />
|
||||||
|
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM200 612l212 -212l98 97l-213 212zM300 1200l239 -250l-149 -149l212 -212l149 148l249 -237l-1 697zM900 150h100v50h-100v-50z" />
|
||||||
|
<glyph unicode="" d="M23 415l1177 784v-1079l-475 272l-310 -393v416h-392zM494 210l672 938l-672 -712v-226z" />
|
||||||
|
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-850q0 -21 -15 -35.5t-35 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 1000h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-218l-276 -275l-120 120l-126 -127h-378v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM581 306l123 123l120 -120l353 352l123 -123l-475 -476zM600 1000h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-269l-103 -103l-170 170l-298 -298h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 1000h100v200h-100v-200zM700 133l170 170l-170 170l127 127l170 -170l170 170l127 -128l-170 -169l170 -170 l-127 -127l-170 170l-170 -170z" />
|
||||||
|
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-300h-400v-200h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 300l300 -300l300 300h-200v300h-200v-300h-200zM600 1000v200h100v-200h-100z" />
|
||||||
|
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-402l-200 200l-298 -298h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 300h200v-300h200v300h200l-300 300zM600 1000v200h100v-200h-100z" />
|
||||||
|
<glyph unicode="" d="M0 250q0 -21 14.5 -35.5t35.5 -14.5h1100q21 0 35.5 14.5t14.5 35.5v550h-1200v-550zM0 900h1200v150q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-150zM100 300v200h400v-200h-400z" />
|
||||||
|
<glyph unicode="" d="M0 400l300 298v-198h400v-200h-400v-198zM100 800v200h100v-200h-100zM300 800v200h100v-200h-100zM500 800v200h400v198l300 -298l-300 -298v198h-400zM800 300v200h100v-200h-100zM1000 300h100v200h-100v-200z" />
|
||||||
|
<glyph unicode="" d="M100 700v400l50 100l50 -100v-300h100v300l50 100l50 -100v-300h100v300l50 100l50 -100v-400l-100 -203v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447zM800 597q0 -29 10.5 -55.5t25 -43t29 -28.5t25.5 -18l10 -5v-397q0 -21 14.5 -35.5 t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v1106q0 31 -18 40.5t-44 -7.5l-276 -116q-25 -17 -43.5 -51.5t-18.5 -65.5v-359z" />
|
||||||
|
<glyph unicode="" d="M100 0h400v56q-75 0 -87.5 6t-12.5 44v394h500v-394q0 -38 -12.5 -44t-87.5 -6v-56h400v56q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v888q0 22 25 34.5t50 13.5l25 2v56h-400v-56q75 0 87.5 -6t12.5 -44v-394h-500v394q0 38 12.5 44t87.5 6v56h-400v-56q4 0 11 -0.5 t24 -3t30 -7t24 -15t11 -24.5v-888q0 -22 -25 -34.5t-50 -13.5l-25 -2v-56z" />
|
||||||
|
<glyph unicode="" d="M0 300q0 -41 29.5 -70.5t70.5 -29.5h300q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-300q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM100 100h400l200 200h105l295 98v-298h-425l-100 -100h-375zM100 300v200h300v-200h-300zM100 600v200h300v-200h-300z M100 1000h400l200 -200v-98l295 98h105v200h-425l-100 100h-375zM700 402v163l400 133v-163z" />
|
||||||
|
<glyph unicode="" d="M16.5 974.5q0.5 -21.5 16 -90t46.5 -140t104 -177.5t175 -208q103 -103 207.5 -176t180 -103.5t137 -47t92.5 -16.5l31 1l163 162q17 18 13.5 41t-22.5 37l-192 136q-19 14 -45 12t-42 -19l-118 -118q-142 101 -268 227t-227 268l118 118q17 17 20 41.5t-11 44.5 l-139 194q-14 19 -36.5 22t-40.5 -14l-162 -162q-1 -11 -0.5 -32.5z" />
|
||||||
|
<glyph unicode="" d="M0 50v212q0 20 10.5 45.5t24.5 39.5l365 303v50q0 4 1 10.5t12 22.5t30 28.5t60 23t97 10.5t97 -10t60 -23.5t30 -27.5t12 -24l1 -10v-50l365 -303q14 -14 24.5 -39.5t10.5 -45.5v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-20 0 -35 14.5t-15 35.5zM0 712 q0 -21 14.5 -33.5t34.5 -8.5l202 33q20 4 34.5 21t14.5 38v146q141 24 300 24t300 -24v-146q0 -21 14.5 -38t34.5 -21l202 -33q20 -4 34.5 8.5t14.5 33.5v200q-6 8 -19 20.5t-63 45t-112 57t-171 45t-235 20.5q-92 0 -175 -10.5t-141.5 -27t-108.5 -36.5t-81.5 -40 t-53.5 -36.5t-31 -27.5l-9 -10v-200z" />
|
||||||
|
<glyph unicode="" d="M100 0v100h1100v-100h-1100zM175 200h950l-125 150v250l100 100v400h-100v-200h-100v200h-200v-200h-100v200h-200v-200h-100v200h-100v-400l100 -100v-250z" />
|
||||||
|
<glyph unicode="" d="M100 0h300v400q0 41 -29.5 70.5t-70.5 29.5h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-400zM500 0v1000q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-1000h-300zM900 0v700q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-700h-300z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v300h-200v100h200v100h-300v-300h200v-100h-200v-100zM600 300h200v100h100v300h-100v100h-200v-500 zM700 400v300h100v-300h-100z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h100v200h100v-200h100v500h-100v-200h-100v200h-100v-500zM600 300h200v100h100v300h-100v100h-200v-500 zM700 400v300h100v-300h-100z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v100h-200v300h200v100h-300v-500zM600 300h300v100h-200v300h200v100h-300v-500z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 550l300 -150v300zM600 400l300 150l-300 150v-300z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300v500h700v-500h-700zM300 400h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130v-300zM575 549 q0 -65 27 -107t68 -42h130v300h-130q-38 0 -66.5 -43t-28.5 -108z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v300h-200v100h200v100h-300v-300h200v-100h-200v-100zM601 300h100v100h-100v-100zM700 700h100 v-400h100v500h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v400h-200v100h-100v-500zM301 400v200h100v-200h-100zM601 300h100v100h-100v-100zM700 700h100 v-400h100v500h-200v-100z" />
|
||||||
|
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 700v100h300v-300h-99v-100h-100v100h99v200h-200zM201 300v100h100v-100h-100zM601 300v100h100v-100h-100z M700 700v100h200v-500h-100v400h-100z" />
|
||||||
|
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM400 500v200 l100 100h300v-100h-300v-200h300v-100h-300z" />
|
||||||
|
<glyph unicode="" d="M0 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM182 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM400 400v400h300 l100 -100v-100h-100v100h-200v-100h200v-100h-200v-100h-100zM700 400v100h100v-100h-100z" />
|
||||||
|
<glyph unicode="" d="M-14 494q0 -80 56.5 -137t135.5 -57h222v300h400v-300h128q120 0 205 86.5t85 207.5t-85 207t-205 86q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5zM300 200h200v300h200v-300h200 l-300 -300z" />
|
||||||
|
<glyph unicode="" d="M-14 494q0 -80 56.5 -137t135.5 -57h8l414 414l403 -403q94 26 154.5 104.5t60.5 178.5q0 120 -85 206.5t-205 86.5q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5zM300 200l300 300 l300 -300h-200v-300h-200v300h-200z" />
|
||||||
|
<glyph unicode="" d="M100 200h400v-155l-75 -45h350l-75 45v155h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170z" />
|
||||||
|
<glyph unicode="" d="M121 700q0 -53 28.5 -97t75.5 -65q-4 -16 -4 -38q0 -74 52.5 -126.5t126.5 -52.5q56 0 100 30v-306l-75 -45h350l-75 45v306q46 -30 100 -30q74 0 126.5 52.5t52.5 126.5q0 24 -9 55q50 32 79.5 83t29.5 112q0 90 -61.5 155.5t-150.5 71.5q-26 89 -99.5 145.5 t-167.5 56.5q-116 0 -197.5 -81.5t-81.5 -197.5q0 -4 1 -11.5t1 -11.5q-14 2 -23 2q-74 0 -126.5 -52.5t-52.5 -126.5z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 38 KiB |
|
@ -0,0 +1,48 @@
|
||||||
|
(function (J) {
|
||||||
|
J.ready(function () {
|
||||||
|
checkParam();
|
||||||
|
J.class('func-img').tip([
|
||||||
|
'获取汉字的拼音|音调',
|
||||||
|
'支持多音字词',
|
||||||
|
'获取汉字的笔画数|笔画顺序',
|
||||||
|
'支持繁简体转换|繁体拼音笔画'
|
||||||
|
]);
|
||||||
|
J.id('_year').txt((new Date()).getFullYear());
|
||||||
|
J.id('tryInput').on('input', function () {
|
||||||
|
trans(this.val());
|
||||||
|
});
|
||||||
|
window.initRunJS(J);
|
||||||
|
});
|
||||||
|
function checkParam () {
|
||||||
|
var p = J.urlParam();
|
||||||
|
var str = '';
|
||||||
|
if (typeof p === 'string') {
|
||||||
|
str = p;
|
||||||
|
} else if (typeof p === 'object') {
|
||||||
|
str = p.s;
|
||||||
|
}
|
||||||
|
J.id('tryInput').val(str);
|
||||||
|
trans(str);
|
||||||
|
}
|
||||||
|
function trans (str) {
|
||||||
|
if (str == '') {
|
||||||
|
J.id('spell').txt('');
|
||||||
|
J.id('stroke').txt('');
|
||||||
|
J.id('strokeOrder').txt('');
|
||||||
|
J.id('trad').txt('');
|
||||||
|
J.id('spark').txt('');
|
||||||
|
} else {
|
||||||
|
J.id('spell').txt(str.spell('array', 'tone').join(' '));
|
||||||
|
J.id('stroke').txt('共 ' + str.stroke() + ' 笔');
|
||||||
|
J.id('strokeOrder').txt('笔画顺序:' + JSON.stringify(str.stroke('order', 'shape')).replace(/"/g, '').replace(/null/g, '无'));
|
||||||
|
J.id('trad').txt('繁体字:' + str.convertSimpleToTrad('trad'));
|
||||||
|
J.id('spark').txt('火星文:' + str.convertSimpleToSpark('spark'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window.loaded = function () {
|
||||||
|
var input = document.getElementById('tryInput');
|
||||||
|
input.removeAttribute('readonly');
|
||||||
|
input.removeAttribute('class');
|
||||||
|
input.value = '';
|
||||||
|
};
|
||||||
|
})(window.J);
|
|
@ -0,0 +1,11 @@
|
||||||
|
window.initRunJS = function (J) {
|
||||||
|
J.id('');
|
||||||
|
var input = document.getElementById('tryInput');
|
||||||
|
input.removeAttribute('readonly');
|
||||||
|
input.removeAttribute('class');
|
||||||
|
input.value = '';
|
||||||
|
|
||||||
|
window.runJS = function () {
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1,10 @@
|
||||||
|
module.exports = {
|
||||||
|
extends: ['@commitlint/config-conventional'],
|
||||||
|
rules: {
|
||||||
|
'type-enum': [2, 'always', [
|
||||||
|
'feat', 'fix', 'config', 'docs', 'style', 'refactor', 'test', 'build', 'ci', 'chore', 'revert', 'del'
|
||||||
|
]],
|
||||||
|
'subject-full-stop': [0, 'never'],
|
||||||
|
'subject-case': [0, 'never']
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Document</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script src="./cnchar.2.0.4.min.js"></script>
|
||||||
|
<script src="./cnchar.trad.2.0.4.min.js"></script>
|
||||||
|
<script src="./cnchar.poly.2.0.4.min.js"></script>
|
||||||
|
<script src="./cnchar.order.2.0.4.min.js"></script>
|
||||||
|
<script>
|
||||||
|
console.log(CnChar.stroke('長城','count','order','name'))
|
||||||
|
console.log(CnChar.spell('長城'))
|
||||||
|
console.log(CnChar.spell('长大了'))
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,75 @@
|
||||||
|
<template>
|
||||||
|
<Vssue
|
||||||
|
:issue-id='issueId'
|
||||||
|
:options='options'
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import BitbucketV2 from '@vssue/api-bitbucket-v2';
|
||||||
|
import GiteeV5 from '@vssue/api-gitee-v5';
|
||||||
|
import GithubV3 from '@vssue/api-github-v3';
|
||||||
|
import GitlabV4 from '@vssue/api-gitlab-v4';
|
||||||
|
|
||||||
|
const platforms = {
|
||||||
|
'bitbucket': {
|
||||||
|
options: {
|
||||||
|
api: BitbucketV2,
|
||||||
|
owner: 'meteorlxy',
|
||||||
|
repo: 'vssue',
|
||||||
|
clientId: '6tKVqDXYzuvmzCnbGw',
|
||||||
|
},
|
||||||
|
issueId: 1,
|
||||||
|
},
|
||||||
|
'gitee': {
|
||||||
|
options: {
|
||||||
|
api: GiteeV5,
|
||||||
|
owner: 'meteor_lxy',
|
||||||
|
repo: 'vssue',
|
||||||
|
clientId: '30c40c01df93c7ff2b043f389dfc404e8fe5cc3740211ac51a444a9512ea7a93',
|
||||||
|
clientSecret: '9e4f336c3d532eeae7d1e84d81199c95c8da110da24bdd3a2da5ea6e4257d5dd',
|
||||||
|
},
|
||||||
|
issueId: 'IWWRQ',
|
||||||
|
},
|
||||||
|
'github': {
|
||||||
|
options: {
|
||||||
|
api: GithubV3,
|
||||||
|
owner: 'meteorlxy',
|
||||||
|
repo: 'vssue',
|
||||||
|
clientId: 'a1097b7751127c6d1194',
|
||||||
|
clientSecret: '5c95e2f890b6a2b80dbda17656e9b1db9e87a07b',
|
||||||
|
},
|
||||||
|
issueId: 1,
|
||||||
|
},
|
||||||
|
'gitlab': {
|
||||||
|
options: {
|
||||||
|
api: GitlabV4,
|
||||||
|
owner: 'meteorlxy',
|
||||||
|
repo: 'vssue',
|
||||||
|
clientId: '5a80ead2a62ec3fd3a31a78b2bf0e5602bacd0513ab3b772e580b05e15d0d2cb',
|
||||||
|
},
|
||||||
|
issueId: 1,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'VssueDemo',
|
||||||
|
|
||||||
|
props: {
|
||||||
|
platform: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
options () {
|
||||||
|
return platforms[this.platform].options;
|
||||||
|
},
|
||||||
|
|
||||||
|
issueId () {
|
||||||
|
return platforms[this.platform].issueId;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -0,0 +1,79 @@
|
||||||
|
// 组件api说明 表格
|
||||||
|
<template>
|
||||||
|
<div class="api-wrap">
|
||||||
|
<h3>{{title}}</h3>
|
||||||
|
<el-table :data="tableData"
|
||||||
|
v-bind="$attrs"
|
||||||
|
v-on="$listeners"
|
||||||
|
style="width: 100%">
|
||||||
|
<template v-for="(item, index) in tableHeader">
|
||||||
|
<el-table-column :prop="index+''"
|
||||||
|
:label="item">
|
||||||
|
</el-table-column>
|
||||||
|
</template>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "DemoApi",
|
||||||
|
props: {
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
default: 'attr'
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: '属性'
|
||||||
|
},
|
||||||
|
tableBody: Array,
|
||||||
|
tableHead: String
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
tableHeader () {
|
||||||
|
return this.tableHead.split("|").map(s => s.replace(/^\s*|\s*$/g, ""))
|
||||||
|
},
|
||||||
|
tableData () {
|
||||||
|
return this.tableBody.map(str => {
|
||||||
|
let data = {}
|
||||||
|
str.split("|").map((s, i) => data[i] = s.replace(/^\s*|\s*$/g, ""))
|
||||||
|
return data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
.api-wrap {
|
||||||
|
padding: 40px 0;
|
||||||
|
+ .api-wrap {
|
||||||
|
margin: 40px 0;
|
||||||
|
}
|
||||||
|
&:first-child {
|
||||||
|
margin-top: 80px;
|
||||||
|
}
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 80px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.el-table {
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
th,
|
||||||
|
td,
|
||||||
|
th.is-leaf {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-table__body,
|
||||||
|
.el-table__footer,
|
||||||
|
.el-table__header {
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,134 @@
|
||||||
|
// 包裹示例组件
|
||||||
|
<template>
|
||||||
|
<div class="code">
|
||||||
|
<div class="code--title">
|
||||||
|
<h2>{{title}}</h2>
|
||||||
|
<small>{{description}}</small>
|
||||||
|
</div>
|
||||||
|
<div class="code--demo">
|
||||||
|
<div class="code-content">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="isShow"
|
||||||
|
class="code--segment">
|
||||||
|
<slot name="codeText"></slot>
|
||||||
|
</div>
|
||||||
|
<div v-if="$slots.codeText"
|
||||||
|
class="code--button">
|
||||||
|
<div @click="handleToggleShow"
|
||||||
|
class="code--show">
|
||||||
|
{{codeTextBtn}}
|
||||||
|
</div>
|
||||||
|
<div v-if="onlineLink"
|
||||||
|
class="code--online"
|
||||||
|
@click="handleOnline">
|
||||||
|
{{codeTextBtnOnline}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
title: String,
|
||||||
|
description: String,
|
||||||
|
onlineLink: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
isShow: false,
|
||||||
|
codeTextBtn: '显示代码',
|
||||||
|
codeTextBtnOnline: '在线运行'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleToggleShow () {
|
||||||
|
this.isShow = !this.isShow
|
||||||
|
this.codeTextBtn = this.isShow ? '隐藏代码' : '显示代码'
|
||||||
|
},
|
||||||
|
handleOnline () {
|
||||||
|
window.open(this.onlineLink)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.code {
|
||||||
|
padding: 40px 0;
|
||||||
|
.code--title {
|
||||||
|
h2 {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border-bottom: none;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 14px;
|
||||||
|
display: inline-block;
|
||||||
|
margin: 10px 0;
|
||||||
|
color: #5e6d82;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.code--demo {
|
||||||
|
border: 1px solid #ebebeb;
|
||||||
|
border-bottom: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
box-shadow: 0 0 2px 0 rgba(232, 237, 250, 0.6),
|
||||||
|
0 1px 2px 0 rgba(232, 237, 250, 0.5);
|
||||||
|
.code-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 4%;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.code--button {
|
||||||
|
// display: flex;
|
||||||
|
position: relative;
|
||||||
|
background: #fafbfc;
|
||||||
|
color: #409eff;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 40px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6),
|
||||||
|
0 2px 4px 0 rgba(232, 237, 250, 0.5);
|
||||||
|
|
||||||
|
.code--show {
|
||||||
|
// flex: 3;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.code--show:hover {
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
.code--online {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 25px;
|
||||||
|
}
|
||||||
|
.code--online:hover {
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& + .code {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:first-child) {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,536 @@
|
||||||
|
// 底部 给个star 组件 由https://codepen.io/sanzang/pen/LKvNPd 代码修改而来
|
||||||
|
<template>
|
||||||
|
<div class='bg'
|
||||||
|
@click='starGithub'>
|
||||||
|
<div class='word glitch'>
|
||||||
|
<div class='flash is-off'>
|
||||||
|
<span class='text'>给个star!</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
methods: {
|
||||||
|
starGithub () {
|
||||||
|
window.open('https://github.com/1011cat/shotCat_doc');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.bg {
|
||||||
|
background: #050710;
|
||||||
|
position: relative;
|
||||||
|
margin: 40px 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 60px;
|
||||||
|
cursor: pointer;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.word {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 60px;
|
||||||
|
/* left:10%;
|
||||||
|
margin-left:-100px; */
|
||||||
|
top: 50%;
|
||||||
|
margin-top: -30px;
|
||||||
|
transition: 0.4s ease;
|
||||||
|
animation: scalesmall 0.3s 1s ease-out both;
|
||||||
|
}
|
||||||
|
.glitch:before {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 999999;
|
||||||
|
content: '';
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
-webkit-animation: bg-move 2s linear infinite;
|
||||||
|
animation: bg-move 2s linear infinite;
|
||||||
|
}
|
||||||
|
.flash {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 9;
|
||||||
|
width: 100%;
|
||||||
|
height: 60px;
|
||||||
|
text-align: center;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
margin: auto;
|
||||||
|
cursor: default;
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
.flash span {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
font-size: 60px;
|
||||||
|
line-height: 1;
|
||||||
|
color: #fefeff;
|
||||||
|
text-shadow: -5px 2px 6px #2451fa;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.flash.is-off {
|
||||||
|
-webkit-animation: is-off 2s linear infinite !important;
|
||||||
|
animation: is-off 2s linear infinite !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.glitch .flash {
|
||||||
|
-webkit-transform: skewX(0deg) scaleY(1);
|
||||||
|
transform: skewX(0deg) scaleY(1);
|
||||||
|
}
|
||||||
|
.glitch .flash span:before,
|
||||||
|
.glitch .flash span:after {
|
||||||
|
display: block;
|
||||||
|
content: '给个star!';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
color: #fff;
|
||||||
|
background: #050710;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
height: 60px;
|
||||||
|
clip: rect(0, 300px, 0, 0);
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
.glitch .flash span:before {
|
||||||
|
left: -2px;
|
||||||
|
text-shadow: 2px 0 #00f;
|
||||||
|
animation: c2 1s infinite linear alternate-reverse;
|
||||||
|
}
|
||||||
|
.glitch .flash span:after {
|
||||||
|
left: 3px;
|
||||||
|
text-shadow: -2px 0 #f00;
|
||||||
|
animation: c1 2s infinite linear alternate-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes is-off {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
56% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
57% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
58% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
71% {
|
||||||
|
-webkit-transform: scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleY(1) skewX(0deg);
|
||||||
|
}
|
||||||
|
72% {
|
||||||
|
-webkit-transform: scaleY(3) skewX(-60deg);
|
||||||
|
transform: scaleY(3) skewX(-60deg);
|
||||||
|
}
|
||||||
|
73% {
|
||||||
|
-webkit-transform: scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleY(1) skewX(0deg);
|
||||||
|
}
|
||||||
|
80% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
81% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
84% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
85% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
91% {
|
||||||
|
-webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
92% {
|
||||||
|
-webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
|
||||||
|
transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
|
||||||
|
color: #008000;
|
||||||
|
}
|
||||||
|
93% {
|
||||||
|
-webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes c1 {
|
||||||
|
0% {
|
||||||
|
clip: rect(95px, 8888px, 66px, 0);
|
||||||
|
}
|
||||||
|
5% {
|
||||||
|
clip: rect(86px, 8888px, 18px, 0);
|
||||||
|
}
|
||||||
|
10% {
|
||||||
|
clip: rect(78px, 8888px, 89px, 0);
|
||||||
|
}
|
||||||
|
15% {
|
||||||
|
clip: rect(90px, 8888px, 70px, 0);
|
||||||
|
}
|
||||||
|
20% {
|
||||||
|
clip: rect(6px, 8888px, 65px, 0);
|
||||||
|
}
|
||||||
|
25% {
|
||||||
|
clip: rect(57px, 8888px, 30px, 0);
|
||||||
|
}
|
||||||
|
30% {
|
||||||
|
clip: rect(93px, 8888px, 56px, 0);
|
||||||
|
}
|
||||||
|
35% {
|
||||||
|
clip: rect(38px, 8888px, 18px, 0);
|
||||||
|
}
|
||||||
|
40% {
|
||||||
|
clip: rect(84px, 8888px, 69px, 0);
|
||||||
|
}
|
||||||
|
45% {
|
||||||
|
clip: rect(35px, 8888px, 30px, 0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
clip: rect(17px, 8888px, 34px, 0);
|
||||||
|
}
|
||||||
|
55% {
|
||||||
|
clip: rect(51px, 8888px, 90px, 0);
|
||||||
|
}
|
||||||
|
60% {
|
||||||
|
clip: rect(98px, 8888px, 47px, 0);
|
||||||
|
}
|
||||||
|
65% {
|
||||||
|
clip: rect(66px, 8888px, 65px, 0);
|
||||||
|
}
|
||||||
|
70% {
|
||||||
|
clip: rect(67px, 8888px, 54px, 0);
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
clip: rect(35px, 8888px, 64px, 0);
|
||||||
|
}
|
||||||
|
80% {
|
||||||
|
clip: rect(100px, 8888px, 32px, 0);
|
||||||
|
}
|
||||||
|
85% {
|
||||||
|
clip: rect(96px, 8888px, 86px, 0);
|
||||||
|
}
|
||||||
|
90% {
|
||||||
|
clip: rect(73px, 8888px, 12px, 0);
|
||||||
|
}
|
||||||
|
95% {
|
||||||
|
clip: rect(42px, 8888px, 29px, 0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
clip: rect(80px, 8888px, 27px, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes c2 {
|
||||||
|
0% {
|
||||||
|
clip: rect(96px, 8888px, 36px, 0);
|
||||||
|
}
|
||||||
|
5% {
|
||||||
|
clip: rect(77px, 8888px, 6px, 0);
|
||||||
|
}
|
||||||
|
10% {
|
||||||
|
clip: rect(9px, 8888px, 35px, 0);
|
||||||
|
}
|
||||||
|
15% {
|
||||||
|
clip: rect(47px, 8888px, 64px, 0);
|
||||||
|
}
|
||||||
|
20% {
|
||||||
|
clip: rect(86px, 8888px, 78px, 0);
|
||||||
|
}
|
||||||
|
25% {
|
||||||
|
clip: rect(96px, 8888px, 50px, 0);
|
||||||
|
}
|
||||||
|
30% {
|
||||||
|
clip: rect(42px, 8888px, 43px, 0);
|
||||||
|
}
|
||||||
|
35% {
|
||||||
|
clip: rect(27px, 8888px, 59px, 0);
|
||||||
|
}
|
||||||
|
40% {
|
||||||
|
clip: rect(65px, 8888px, 84px, 0);
|
||||||
|
}
|
||||||
|
45% {
|
||||||
|
clip: rect(92px, 8888px, 6px, 0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
clip: rect(70px, 8888px, 82px, 0);
|
||||||
|
}
|
||||||
|
55% {
|
||||||
|
clip: rect(90px, 8888px, 86px, 0);
|
||||||
|
}
|
||||||
|
60% {
|
||||||
|
clip: rect(41px, 8888px, 66px, 0);
|
||||||
|
}
|
||||||
|
65% {
|
||||||
|
clip: rect(61px, 8888px, 77px, 0);
|
||||||
|
}
|
||||||
|
70% {
|
||||||
|
clip: rect(77px, 8888px, 98px, 0);
|
||||||
|
}
|
||||||
|
75% {
|
||||||
|
clip: rect(92px, 8888px, 30px, 0);
|
||||||
|
}
|
||||||
|
80% {
|
||||||
|
clip: rect(80px, 8888px, 20px, 0);
|
||||||
|
}
|
||||||
|
85% {
|
||||||
|
clip: rect(2px, 8888px, 15px, 0);
|
||||||
|
}
|
||||||
|
90% {
|
||||||
|
clip: rect(76px, 8888px, 65px, 0);
|
||||||
|
}
|
||||||
|
95% {
|
||||||
|
clip: rect(25px, 8888px, 61px, 0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
clip: rect(28px, 8888px, 78px, 0);
|
||||||
|
}
|
||||||
|
23% {
|
||||||
|
-webkit-transform: scaleX(0.8);
|
||||||
|
transform: scaleX(0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes clock-bag {
|
||||||
|
0% {
|
||||||
|
-webkit-transform: translate(3px, 2px);
|
||||||
|
transform: translate(3px, 2px);
|
||||||
|
}
|
||||||
|
2% {
|
||||||
|
-webkit-transform: translate(1px, 2px);
|
||||||
|
transform: translate(1px, 2px);
|
||||||
|
}
|
||||||
|
4% {
|
||||||
|
-webkit-transform: translate(1px, 5px);
|
||||||
|
transform: translate(1px, 5px);
|
||||||
|
}
|
||||||
|
6% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
8% {
|
||||||
|
-webkit-transform: translate(1px, 1px);
|
||||||
|
transform: translate(1px, 1px);
|
||||||
|
}
|
||||||
|
10% {
|
||||||
|
-webkit-transform: translate(3px, 4px);
|
||||||
|
transform: translate(3px, 4px);
|
||||||
|
}
|
||||||
|
12% {
|
||||||
|
-webkit-transform: translate(3px, 5px);
|
||||||
|
transform: translate(3px, 5px);
|
||||||
|
}
|
||||||
|
14.000000000000002% {
|
||||||
|
-webkit-transform: translate(4px, 4px);
|
||||||
|
transform: translate(4px, 4px);
|
||||||
|
}
|
||||||
|
16% {
|
||||||
|
-webkit-transform: translate(1px, 2px);
|
||||||
|
transform: translate(1px, 2px);
|
||||||
|
}
|
||||||
|
18% {
|
||||||
|
-webkit-transform: translate(5px, 2px);
|
||||||
|
transform: translate(5px, 2px);
|
||||||
|
}
|
||||||
|
20% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
22% {
|
||||||
|
-webkit-transform: translate(3px, 2px);
|
||||||
|
transform: translate(3px, 2px);
|
||||||
|
}
|
||||||
|
24% {
|
||||||
|
-webkit-transform: translate(4px, 2px);
|
||||||
|
transform: translate(4px, 2px);
|
||||||
|
}
|
||||||
|
26% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
28% {
|
||||||
|
-webkit-transform: translate(4px, 5px);
|
||||||
|
transform: translate(4px, 5px);
|
||||||
|
}
|
||||||
|
30% {
|
||||||
|
-webkit-transform: translate(2px, 3px);
|
||||||
|
transform: translate(2px, 3px);
|
||||||
|
}
|
||||||
|
32% {
|
||||||
|
-webkit-transform: translate(3px, 3px);
|
||||||
|
transform: translate(3px, 3px);
|
||||||
|
}
|
||||||
|
34% {
|
||||||
|
-webkit-transform: translate(2px, 5px);
|
||||||
|
transform: translate(2px, 5px);
|
||||||
|
}
|
||||||
|
36% {
|
||||||
|
-webkit-transform: translate(1px, 1px);
|
||||||
|
transform: translate(1px, 1px);
|
||||||
|
}
|
||||||
|
38% {
|
||||||
|
-webkit-transform: translate(5px, 3px);
|
||||||
|
transform: translate(5px, 3px);
|
||||||
|
}
|
||||||
|
40% {
|
||||||
|
-webkit-transform: translate(4px, 5px);
|
||||||
|
transform: translate(4px, 5px);
|
||||||
|
}
|
||||||
|
42% {
|
||||||
|
-webkit-transform: translate(4px, 1px);
|
||||||
|
transform: translate(4px, 1px);
|
||||||
|
}
|
||||||
|
44% {
|
||||||
|
-webkit-transform: translate(1px, 5px);
|
||||||
|
transform: translate(1px, 5px);
|
||||||
|
}
|
||||||
|
46% {
|
||||||
|
-webkit-transform: translate(4px, 2px);
|
||||||
|
transform: translate(4px, 2px);
|
||||||
|
}
|
||||||
|
48% {
|
||||||
|
-webkit-transform: translate(3px, 5px);
|
||||||
|
transform: translate(3px, 5px);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
-webkit-transform: translate(3px, 3px);
|
||||||
|
transform: translate(3px, 3px);
|
||||||
|
}
|
||||||
|
52% {
|
||||||
|
-webkit-transform: translate(1px, 3px);
|
||||||
|
transform: translate(1px, 3px);
|
||||||
|
}
|
||||||
|
54% {
|
||||||
|
-webkit-transform: translate(5px, 1px);
|
||||||
|
transform: translate(5px, 1px);
|
||||||
|
}
|
||||||
|
56% {
|
||||||
|
-webkit-transform: translate(2px, 1px);
|
||||||
|
transform: translate(2px, 1px);
|
||||||
|
}
|
||||||
|
58% {
|
||||||
|
-webkit-transform: translate(4px, 2px);
|
||||||
|
transform: translate(4px, 2px);
|
||||||
|
}
|
||||||
|
60% {
|
||||||
|
-webkit-transform: translate(4px, 5px);
|
||||||
|
transform: translate(4px, 5px);
|
||||||
|
}
|
||||||
|
62% {
|
||||||
|
-webkit-transform: translate(5px, 3px);
|
||||||
|
transform: translate(5px, 3px);
|
||||||
|
}
|
||||||
|
64% {
|
||||||
|
-webkit-transform: translate(4px, 4px);
|
||||||
|
transform: translate(4px, 4px);
|
||||||
|
}
|
||||||
|
66% {
|
||||||
|
-webkit-transform: translate(2px, 1px);
|
||||||
|
transform: translate(2px, 1px);
|
||||||
|
}
|
||||||
|
68% {
|
||||||
|
-webkit-transform: translate(1px, 4px);
|
||||||
|
transform: translate(1px, 4px);
|
||||||
|
}
|
||||||
|
70% {
|
||||||
|
-webkit-transform: translate(1px, 3px);
|
||||||
|
transform: translate(1px, 3px);
|
||||||
|
}
|
||||||
|
72% {
|
||||||
|
-webkit-transform: translate(1px, 4px);
|
||||||
|
transform: translate(1px, 4px);
|
||||||
|
}
|
||||||
|
74% {
|
||||||
|
-webkit-transform: translate(1px, 5px);
|
||||||
|
transform: translate(1px, 5px);
|
||||||
|
}
|
||||||
|
76% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
78% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
80% {
|
||||||
|
-webkit-transform: translate(2px, 1px);
|
||||||
|
transform: translate(2px, 1px);
|
||||||
|
}
|
||||||
|
82% {
|
||||||
|
-webkit-transform: translate(1px, 3px);
|
||||||
|
transform: translate(1px, 3px);
|
||||||
|
}
|
||||||
|
84% {
|
||||||
|
-webkit-transform: translate(1px, 4px);
|
||||||
|
transform: translate(1px, 4px);
|
||||||
|
}
|
||||||
|
86% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
88% {
|
||||||
|
-webkit-transform: translate(3px, 1px);
|
||||||
|
transform: translate(3px, 1px);
|
||||||
|
}
|
||||||
|
90% {
|
||||||
|
-webkit-transform: translate(5px, 5px);
|
||||||
|
transform: translate(5px, 5px);
|
||||||
|
}
|
||||||
|
92% {
|
||||||
|
-webkit-transform: translate(4px, 5px);
|
||||||
|
transform: translate(4px, 5px);
|
||||||
|
}
|
||||||
|
94% {
|
||||||
|
-webkit-transform: translate(2px, 2px);
|
||||||
|
transform: translate(2px, 2px);
|
||||||
|
}
|
||||||
|
96% {
|
||||||
|
-webkit-transform: translate(1px, 2px);
|
||||||
|
transform: translate(1px, 2px);
|
||||||
|
}
|
||||||
|
98% {
|
||||||
|
-webkit-transform: translate(2px, 1px);
|
||||||
|
transform: translate(2px, 1px);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
-webkit-transform: translate(2px, 1px);
|
||||||
|
transform: translate(2px, 1px);
|
||||||
|
}
|
||||||
|
1% {
|
||||||
|
-webkit-transform: scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleY(1) skewX(0deg);
|
||||||
|
}
|
||||||
|
1.5% {
|
||||||
|
-webkit-transform: scaleY(3) skewX(-60deg);
|
||||||
|
transform: scaleY(3) skewX(-60deg);
|
||||||
|
}
|
||||||
|
2% {
|
||||||
|
-webkit-transform: scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleY(1) skewX(0deg);
|
||||||
|
}
|
||||||
|
51% {
|
||||||
|
-webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
}
|
||||||
|
52% {
|
||||||
|
-webkit-transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
|
||||||
|
transform: scaleX(1.5) scaleY(0.2) skewX(80deg);
|
||||||
|
}
|
||||||
|
53% {
|
||||||
|
-webkit-transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
transform: scaleX(1) scaleY(1) skewX(0deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,26 @@
|
||||||
|
// catButton 的type属性 示例
|
||||||
|
<template>
|
||||||
|
<!-- 注意这里代码必须再包裹一层div,否则会解析报错 -->
|
||||||
|
<div>
|
||||||
|
<cat-button text="default"></cat-button>
|
||||||
|
<cat-button text="primary"
|
||||||
|
type="primary"></cat-button>
|
||||||
|
<cat-button text="success"
|
||||||
|
type="success"></cat-button>
|
||||||
|
<cat-button text="info"
|
||||||
|
type="info"></cat-button>
|
||||||
|
<cat-button text="warning"
|
||||||
|
type="warning"></cat-button>
|
||||||
|
<cat-button text="danger"
|
||||||
|
type="danger"></cat-button>
|
||||||
|
<cat-button text="text"
|
||||||
|
type="text"></cat-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,132 @@
|
||||||
|
// 很多时候,我们引入自己的组件库,路径是不对的,
|
||||||
|
// 这时就需要引入path,并在后面的chainWebpack进行配置
|
||||||
|
// const path = require('path')
|
||||||
|
// function resolve (dir) {
|
||||||
|
// return path.join(__dirname, '../../', dir)
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
// -------------------!!!重要!!!!-----------------
|
||||||
|
// 为了更好的理解,以下所有配置,注释,须配合查看页面实际效果!
|
||||||
|
let secret = require('./secret');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
title: 'cnchar', // 标题
|
||||||
|
description: '好用小巧、功能全面的汉字拼音笔画js库', // 描述
|
||||||
|
dest: './assets/v2', // 基本url
|
||||||
|
base: '/cnchar/assets/v2/', // 基本url
|
||||||
|
// 注入到当前页面的 HTML <head> 中的标签
|
||||||
|
head: [
|
||||||
|
['link', {rel: 'icon', href: '/favicon.png'}], // 增加一个自定义的 favicon
|
||||||
|
],
|
||||||
|
// dest: './dist', //打包位置
|
||||||
|
port: 6868, // 端口号 谐音流弊流弊
|
||||||
|
|
||||||
|
// 主题配置
|
||||||
|
themeConfig: {
|
||||||
|
// 顶部导航栏配置
|
||||||
|
nav: [
|
||||||
|
{text: '主页', link: '/'}, // 内部链接 以docs为根目录
|
||||||
|
{text: '使用说明', link: '/guide/introduction'},
|
||||||
|
{
|
||||||
|
text: '文档',
|
||||||
|
// 这里是下拉列表展现形式。
|
||||||
|
items: [
|
||||||
|
{text: '2.0.0', link: '/components/2.0/catButton'},
|
||||||
|
{text: '1.0.0', link: '/components/1.0/'},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: '关于作者',
|
||||||
|
items: [
|
||||||
|
{text: 'GitHub地址', link: 'https://github.com/1011cat'}, // 外部链接
|
||||||
|
{text: '个人博客', link: 'http://shotcat.com'},
|
||||||
|
{text: '掘金账号', link: 'https://juejin.im/user/59b7940d5188257e82675bc0'}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
// 这里使用的是多个侧边栏设置
|
||||||
|
sidebar: {
|
||||||
|
// 如果你不需要文档版本功能,只需去掉2.0,1.0文件夹,将md文件直接放在components文件夹下
|
||||||
|
'/components/2.0/': [
|
||||||
|
{
|
||||||
|
title: '基础组件', // 必要的
|
||||||
|
path: '', // 如果你不想'基础组件'可点击并有对应说明,就直接设为空,或者不写,并且nav的link也不要指向 '/components/2.0/'而是'/components/2.0/catButton'
|
||||||
|
collapsable: false, // 可选的, 右侧侧边栏是否展开,默认值是 true
|
||||||
|
// 如果组件很多时,建议将children配置单独放到一个js文件中,然后进行引入
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title: 'Button 按钮',
|
||||||
|
path: 'catButton',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '基础组件1',
|
||||||
|
path: './' // 和上面的基础组件对应,这里基础组件1则可以点击,展示对应的介绍和说明,则此处设置为'./',它会默认解析当前文件夹下的README.md。具体效果请查看页面进行对比
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'/components/1.0/': [
|
||||||
|
{
|
||||||
|
title: '基础组件',
|
||||||
|
path: '',
|
||||||
|
collapsable: false,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title: 'Button 按钮',
|
||||||
|
path: 'catButton'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'/guide/': [
|
||||||
|
{
|
||||||
|
title: '使用说明',
|
||||||
|
collapsable: false,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title: '简介',
|
||||||
|
path: 'introduction',
|
||||||
|
collapsable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '快速上手',
|
||||||
|
path: 'quickStart',
|
||||||
|
collapsable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '几点说明',
|
||||||
|
path: 'tips',
|
||||||
|
collapsable: false,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
sidebarDepth: 1, // 将同时提取markdown中h2,显示在侧边栏上
|
||||||
|
lastUpdated: '最后更新于' // 文档更新时间:每个文件git最后提交的时间
|
||||||
|
},
|
||||||
|
|
||||||
|
markdown: {
|
||||||
|
// lineNumbers: true // 代码块显示行号
|
||||||
|
},
|
||||||
|
|
||||||
|
plugins: [
|
||||||
|
// 官方回到顶部插件
|
||||||
|
'@vuepress/back-to-top',
|
||||||
|
|
||||||
|
// 官方图片放大组件 目前是所有img都可以点击放大。具体配置见https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-medium-zoom.html
|
||||||
|
['@vuepress/medium-zoom', {selector: 'img'}],
|
||||||
|
|
||||||
|
// vssue 一个借助issue的评论插件 具体配置见https://vssue.js.org/zh/
|
||||||
|
['@vssue/vuepress-plugin-vssue', secret('gitee')] // 平台的 base URL
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
// vuepress里修改webpack配置,使用的是chainWebpack进行链式调用
|
||||||
|
// 具体使用可以参考我这个例子和 https://github.com/neutrinojs/webpack-chain/tree/v5
|
||||||
|
// chainWebpack: (config, isServer) => {
|
||||||
|
// config.resolve.alias
|
||||||
|
// .set('@',resolve('src'))
|
||||||
|
// }
|
||||||
|
};
|
|
@ -0,0 +1,28 @@
|
||||||
|
// 扩展 VuePress 应用 第三方应用级别配置
|
||||||
|
|
||||||
|
// vue代码高亮显示库 VueHighlightJS
|
||||||
|
import VueHighlightJS from 'vue-highlight.js';
|
||||||
|
|
||||||
|
// 这里样式我选择的是atom-one-light;样式更多选择可以参见 https://highlightjs.org/static/demo/ 里的styles
|
||||||
|
// 注意: 代码块的背景色 还是由官方设置的 $codeBgColor 决定的
|
||||||
|
import 'highlight.js/styles/vs2015.css';
|
||||||
|
|
||||||
|
// 引入自己的组件库
|
||||||
|
import Cat from '../src/index';
|
||||||
|
|
||||||
|
// 你可以在这里引入自己定义的css样式,进行修改
|
||||||
|
// import '../.vuepress/public/css/index.css'
|
||||||
|
|
||||||
|
// 注意: 由于未知原因,如果引入的是iview不能放在下面export default里use,会失效,得单独放在外面
|
||||||
|
// Vue.use(iview)
|
||||||
|
|
||||||
|
export default ({
|
||||||
|
Vue, // VuePress 正在使用的 Vue 构造函数
|
||||||
|
// options, // 附加到根实例的一些选项
|
||||||
|
// router, // 当前应用的路由实例
|
||||||
|
// siteData // 站点元数据
|
||||||
|
}) => {
|
||||||
|
// ...做一些其他的应用级别的优化
|
||||||
|
Vue.use(VueHighlightJS);
|
||||||
|
Vue.use(Cat);
|
||||||
|
};
|
|
@ -0,0 +1,8 @@
|
||||||
|
//将会被自动应用的全局样式文件,会生成在最终的 CSS 文件结尾,具有比默认样式更高的优先级
|
||||||
|
.page .theme-default-content:not(.custom) {
|
||||||
|
max-width: 78%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-edit, .page-nav {
|
||||||
|
max-width: none !important;
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
// 用于重写默认颜色常量,或者设置新的 stylus 颜色常量
|
||||||
|
|
||||||
|
$accentColor = #00A0E6 // 主题色
|
||||||
|
$textColor = #2c3e50 // 文字颜色
|
||||||
|
|
||||||
|
|
||||||
|
// 官方默认配色
|
||||||
|
// $accentColor = #3eaf7c //主题色
|
||||||
|
// $textColor = #2c3e50 //文字颜色
|
||||||
|
$borderColor = #eaecef //边框颜色
|
||||||
|
$codeBgColor = #282c34 //代码背景色
|
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
home: true
|
||||||
|
heroImage: /favicon.png
|
||||||
|
actionText: 快速上手 →
|
||||||
|
actionLink: /guide/introduction
|
||||||
|
features:
|
||||||
|
- title: 开箱即用
|
||||||
|
details: 无需繁杂的配置,即可进行文档编写。
|
||||||
|
- title: 功能完善
|
||||||
|
details: 仿照element-ui文档,满足个人及企业对组件库文档的需求。
|
||||||
|
- title: 轻松上手
|
||||||
|
details: 你甚至都不需要阅读vuepress文档即可快速上手,每个文件,每行代码都有详细的注释说明。
|
||||||
|
footer: MIT Licensed | Copyright © 2018 present shotCat
|
||||||
|
---
|
|
@ -0,0 +1 @@
|
||||||
|
# 1.0 组件说明
|
|
@ -0,0 +1,66 @@
|
||||||
|
---
|
||||||
|
title: 1.0 Button 按钮
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- 说明: -->
|
||||||
|
<!-- baseComponent-codeBox 组件即为.vuepress/components/baseComponent/codeBox文件,vuepress会默认把它解析为`baseComponent-codeBox`组件; title为代码示例标题;description为代码示例说明;onlineLink为在线运行配置的网址 -->
|
||||||
|
|
||||||
|
<!-- 同理demo-catButton-type_catButton即为编写的代码示例组件 -->
|
||||||
|
|
||||||
|
<!-- highlight-code为引入的第三方代码高亮组件,里面包裹的就是上面示例组件的代码 -->
|
||||||
|
|
||||||
|
<baseComponent-codeBox title="按钮类型" description="按钮类型通过设置type为primary、success、info、warning、danger、text创建不同样式的按钮,不设置为默认样式。" onlineLink="https://codepen.io/1011cat/pen/KjEOWO">
|
||||||
|
<demo-catButton-type_catButton></demo-catButton-type_catButton>
|
||||||
|
<highlight-code slot="codeText" lang="vue">
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<cat-button text="default"></cat-button>
|
||||||
|
<cat-button text="primary" type="primary"></cat-button>
|
||||||
|
<cat-button text="success" type="success"></cat-button>
|
||||||
|
<cat-button text="info" type="info"></cat-button>
|
||||||
|
<cat-button text="warning" type="warning"></cat-button>
|
||||||
|
<cat-button text="danger" type="danger"></cat-button>
|
||||||
|
<cat-button text="text" type="text"></cat-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</highlight-code>
|
||||||
|
</baseComponent-codeBox>
|
||||||
|
|
||||||
|
<!-- 组件的参数表格,这里我没有使用自带的markdown表格,因为太丑,样式不好修改,有时参数描述较少时,不能自动撑满一行,所以自己写了一个组件;titile为表格标题,tableHead为表头,tableBody为具体参数设置,并且支持el-table的table参数 -->
|
||||||
|
<baseComponent-apiTable
|
||||||
|
title="Attributes"
|
||||||
|
:tableBody = "tableBody"
|
||||||
|
:tableHead = "tableHead">
|
||||||
|
</baseComponent-apiTable>
|
||||||
|
|
||||||
|
<!-- 给个star 彩蛋组件 -->
|
||||||
|
<baseComponent-star></baseComponent-star>
|
||||||
|
|
||||||
|
<!-- 第三方评论插件 -->
|
||||||
|
<Vssue title="" />
|
||||||
|
|
||||||
|
<!-- 其实在vuepress里的每个.md其实和.vue很像的,你基本可以按照vue组件模式来写 -->
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//表头为字符串,写法和md一样,中间以`|`间隔就行
|
||||||
|
tableHead:`参数 | 说明 | 类型 | 可选值 | 默认值`,
|
||||||
|
//表头为数组,其中每一项为字符串,代表每一行要展示的数据,写法也和md一样,中间以`|`间隔就行
|
||||||
|
tableBody: [
|
||||||
|
`size | 尺寸 | String | medium / small / mini | —`,
|
||||||
|
`type | 类型 | string | primary / success / warning / danger / info / text | —`
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- 和vue一样,也可以设置样式,并且这里style样式只对当前md有效,不需要加上scoped -->
|
||||||
|
<style>
|
||||||
|
</style>
|
|
@ -0,0 +1 @@
|
||||||
|
# 2.0 组件说明
|
|
@ -0,0 +1,51 @@
|
||||||
|
---
|
||||||
|
title: 2.0 Button 按钮
|
||||||
|
---
|
||||||
|
<!-- 说明: -->
|
||||||
|
<!-- baseComponent-codeBox 组件即为.vuepress/components/baseComponent/codeBox文件,vuepress会默认把它解析为`baseComponent-codeBox`组件; title为代码示例标题;description为代码示例说明;onlineLink为在线运行配置的网址 -->
|
||||||
|
|
||||||
|
<!-- 同理demo-catButton-type_catButton即为编写的代码示例组件 -->
|
||||||
|
|
||||||
|
<!-- highlight-code为引入的第三方代码高亮组件,里面包裹的就是上面示例组件的代码 -->
|
||||||
|
|
||||||
|
<baseComponent-codeBox title="按钮类型"
|
||||||
|
description="按钮类型通过设置type为primary、success、info、warning、danger、text创建不同样式的按钮,不设置为默认样式。"
|
||||||
|
onlineLink="https://codepen.io/1011cat/pen/KjEOWO">
|
||||||
|
<demo-catButton-type_catButton></demo-catButton-type_catButton>
|
||||||
|
<!-- 这里直接设置 引入的展示代码 ;注意引入代码一定不能缩进!!!否则不能生效!-->
|
||||||
|
<highlight-code slot="codeText" lang="vue">
|
||||||
|
<<< @/docs/.vuepress/components/demo/catButton/type_catButton.vue
|
||||||
|
</highlight-code>
|
||||||
|
</baseComponent-codeBox>
|
||||||
|
|
||||||
|
<!-- 组件的参数表格,这里我没有使用自带的markdown表格,因为太丑,样式不好修改,有时参数描述较少时,不能自动撑满一行,所以自己写了一个组件;titile为表格标题,tableHead为表头,tableBody为具体参数设置,并且支持el-table的table参数 -->
|
||||||
|
<baseComponent-apiTable title="Attributes" :tableBody="tableBody" :tableHead="tableHead">
|
||||||
|
</baseComponent-apiTable>
|
||||||
|
|
||||||
|
<!-- 给个star 彩蛋组件 -->
|
||||||
|
<baseComponent-star></baseComponent-star>
|
||||||
|
|
||||||
|
<!-- 第三方评论插件 -->
|
||||||
|
<Vssue title="" />
|
||||||
|
|
||||||
|
<!-- 其实在vuepress里的每个.md其实和.vue很像的,你基本可以按照vue组件模式来写 -->
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//表头为字符串,写法和md一样,中间以`|`间隔就行
|
||||||
|
tableHead: `参数 | 说明 | 类型 | 可选值 | 默认值`,
|
||||||
|
//表格数据为数组,其中每一项为字符串,代表每一行要展示的数据,写法也和md一样,中间以`|`间隔就行
|
||||||
|
tableBody: [
|
||||||
|
`size | 尺寸 | String | medium / small / mini | —`,
|
||||||
|
`type | 类型 | string | primary / success / warning / danger / info / text | —`
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- 和vue一样,也可以设置样式,并且这里style样式只对当前md有效,不需要加上scoped -->
|
||||||
|
<style>
|
||||||
|
</style>
|
|
@ -0,0 +1 @@
|
||||||
|
# 组件说明
|
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
sidebarDepth: 0 //吐槽:这里设置0无效!只能设置1或2!
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
![](../.vuepress/public/name.png)
|
||||||
|
|
||||||
|
# 简介
|
||||||
|
--------------------
|
||||||
|
[![vuepress](https://img.shields.io/badge/vuepress-1.0.2-brightgreen.svg) ](https://github.com/vuejs/vuepress)[![element-ui](https://camo.githubusercontent.com/be59cf65edb533614bdaee07bc8edae883a70978/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656c656d656e742d2d75692d322e372e302d627269676874677265656e2e737667) ](https://github.com/ElemeFE/element)
|
||||||
|
[![vssue](https://img.shields.io/badge/vssue-1.0.2-brightgreen.svg) ](https://github.com/meteorlxy/vssue)[![vue--highlight](https://img.shields.io/badge/vue--highlight-2.2.0-brightgreen.svg) ](https://github.com/metachris/vue-highlightjs)
|
||||||
|
|
||||||
|
shotCat_doc能帮你快速构建属于自己的组件库文档,它基于vuepress实现。它仿照了element-ui文档,实现了组件展示,代码显示,在线运行,api表格展示,文档版本切换,支持评论等。它可以帮助你从0快速搭建组件文档原型,它已经默认帮你做好所有你需要的配置工作,做到真正的开箱即用。
|
||||||
|
|
||||||
|
![](../.vuepress/public/doc.gif)
|
||||||
|
|
||||||
|
**如果你喜欢这个项目欢迎[star!](https://github.com/1011cat/shotCat_doc)或者有任何使用问题和bug,欢迎提出[issue和pr](https://github.com/1011cat/shotCat_doc/issues)**
|
||||||
|
|
||||||
|
- [Github地址](https://github.com/1011cat/shotCat_doc)
|
||||||
|
- [演示地址](https://1011cat.github.io)
|
||||||
|
- [我的个人博客地址:shotcat.com](http://www.shotcat.com)
|
||||||
|
- [我的掘金账户](https://juejin.im/user/59b7940d5188257e82675bc0)
|
||||||
|
|
||||||
|
<baseComponent-star></baseComponent-star>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,212 @@
|
||||||
|
## 安装
|
||||||
|
::: tip
|
||||||
|
**克隆项目**
|
||||||
|
git clone https://github.com/1011cat/shotCat_doc.git
|
||||||
|
|
||||||
|
**进入项目目录**
|
||||||
|
cd shotCat_doc
|
||||||
|
|
||||||
|
**安装依赖**
|
||||||
|
npm install
|
||||||
|
|
||||||
|
**建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题**
|
||||||
|
npm install --registry=https://registry.npm.taobao.org
|
||||||
|
|
||||||
|
**启动服务**
|
||||||
|
npm run dev
|
||||||
|
|
||||||
|
浏览器访问 http://localhost:6868
|
||||||
|
:::
|
||||||
|
|
||||||
|
## 项目结构目录说明
|
||||||
|
|
||||||
|
```
|
||||||
|
|-- shotCat_doc
|
||||||
|
|-- LICENSE
|
||||||
|
|-- deploy.sh //用于自动部署
|
||||||
|
|-- package-lock.json
|
||||||
|
|-- package.json
|
||||||
|
|-- docs
|
||||||
|
| |-- README.md //文档首页配置
|
||||||
|
| |-- .vuepress //用于存放全局的配置、组件、静态资源等。
|
||||||
|
| | |-- config.js //文档配置文件
|
||||||
|
| | |-- enhanceApp.js //应用级别的配置 其实就是引入文档需要用到的第三方插件
|
||||||
|
| | |-- components //该目录中的 Vue 组件将会被自动注册为全局组件
|
||||||
|
| | | |-- baseComponent //文档会用到的全局公共组件
|
||||||
|
| | | | |-- apiTable.vue //组件的参数表格
|
||||||
|
| | | | |-- codeBox.vue //包裹示例的组件
|
||||||
|
| | | | |-- star.vue //底部彩蛋组件
|
||||||
|
| | | |-- demo //组件示例
|
||||||
|
| | | |-- catButton //存放button组件相关示例
|
||||||
|
| | | |-- type_catButton.vue
|
||||||
|
| | |-- dist //存放打包后的文件
|
||||||
|
| | |
|
||||||
|
| | |-- public //静态资源目录
|
||||||
|
| | | |-- favicon.jpeg
|
||||||
|
| | | |-- name.png
|
||||||
|
| | |-- styles //用于存放样式相关的文件
|
||||||
|
| | |-- index.styl //将会被自动应用的全局样式文件,会生成在最终的 CSS 文件结尾,具有比默认样式更高的优先级
|
||||||
|
| | |-- palette.styl //用于重写默认颜色常量,或者设置新的 stylus 颜色常量
|
||||||
|
| |-- components //存放组件文档要用到的markdown
|
||||||
|
| | |-- README.md
|
||||||
|
| | |-- 1.0 //1.0 版本的文档 如果不需要版本管理,直接删除1.0这层文件夹即可
|
||||||
|
| | | |-- README.md
|
||||||
|
| | | |-- catButton.md
|
||||||
|
| | |-- 2.0 //2.0 版本的文档
|
||||||
|
| | |-- README.md
|
||||||
|
| | |-- catButton.md
|
||||||
|
| |-- guide //使用说明的文件夹
|
||||||
|
| |-- introduction.md
|
||||||
|
| |-- quickStart.md
|
||||||
|
|-- src //存放你自己的ui组件库
|
||||||
|
|-- index.js
|
||||||
|
|-- components
|
||||||
|
|-- catButton
|
||||||
|
|-- catButton.vue
|
||||||
|
```
|
||||||
|
|
||||||
|
## 快速开始
|
||||||
|
### step1
|
||||||
|
将自己的组件库放到根目录上,然后在docs/.vuepress/enhanceApp.js进行配置
|
||||||
|
|
||||||
|
::: tip
|
||||||
|
```js
|
||||||
|
//docs/.vuepress/enhanceApp.js
|
||||||
|
|
||||||
|
//引入你的组件库 确保你的组件库index文件有install方法
|
||||||
|
//如果不会,没关系,src目录里自带一个简单组件库示例,可供参考
|
||||||
|
import Cat from '../../src/index'
|
||||||
|
|
||||||
|
export default ({
|
||||||
|
Vue, // VuePress 正在使用的 Vue 构造函数
|
||||||
|
options, // 附加到根实例的一些选项
|
||||||
|
router, // 当前应用的路由实例
|
||||||
|
siteData // 站点元数据
|
||||||
|
}) => {
|
||||||
|
Vue.use(Cat)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
|
然后配置你的侧边栏路径,详细配置可以直接查看docs/.vuepress/components/config.js 内的注释。
|
||||||
|
::: tip
|
||||||
|
```js
|
||||||
|
// docs/.vuepress/components/config.js
|
||||||
|
|
||||||
|
//这里配置的是button组件页面的路径
|
||||||
|
sidebar:{
|
||||||
|
'/components/2.0/':[
|
||||||
|
{
|
||||||
|
title: '基础组件', // 必要的 配置侧边栏名称
|
||||||
|
path: '',
|
||||||
|
collapsable: false, // 可选的, 右侧侧边栏是否展开,默认值是 true
|
||||||
|
// 如果组件很多时,建议将children配置单独放到一个js文件中,然后进行引入
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title:'Button 按钮',
|
||||||
|
path: 'catButton', //在项目中对应的路径是 docs/components/2.0/catButton.md
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
|
### step2
|
||||||
|
现在你已经可以开始编写自己的组件文档了,这里先编写一个组件展示示例:以我的cat-button为例
|
||||||
|
|
||||||
|
::: tip
|
||||||
|
```html
|
||||||
|
// docs/.vuepress/components/demo/catButton/type_catButton.vue
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<!-- 注意这段代码会放入slot里,所以必须再包裹一层div,否则会解析报错 -->
|
||||||
|
<div>
|
||||||
|
<cat-button text="default"></cat-button>
|
||||||
|
<cat-button text="primary" type="primary"></cat-button>
|
||||||
|
<cat-button text="success" type="success"></cat-button>
|
||||||
|
<cat-button text="info" type="info"></cat-button>
|
||||||
|
<cat-button text="warning" type="warning"></cat-button>
|
||||||
|
<cat-button text="danger" type="danger"></cat-button>
|
||||||
|
<cat-button text="text" type="text"></cat-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
### step3
|
||||||
|
在上面配置好的路径里docs/components/2.0/catButton.md,创建markdown文件。接着就可以愉快地编写button组件页面!
|
||||||
|
::: tip
|
||||||
|
```html
|
||||||
|
// docs/components/2.0/catButton.md
|
||||||
|
|
||||||
|
---
|
||||||
|
title: 2.0 Button 按钮
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- baseComponent-codeBox 组件即为.vuepress/components/baseComponent/codeBox文件,vuepress会默认把它解析为`baseComponent-codeBox`组件,这里我们如下对代码进行包裹,具体功能可以查看codeBox注释和页面效果 -->
|
||||||
|
<baseComponent-codeBox title="按钮类型" description="按钮类型通过设置type为primary、success、info、warning、danger、text创建不同样式的按钮,不设置为默认样式。" onlineLink="https://codepen.io/1011cat/pen/KjEOWO">
|
||||||
|
|
||||||
|
<!-- 同理demo-catButton-type_catButton即为我们step2编写的示例组件 -->
|
||||||
|
<demo-catButton-type_catButton></demo-catButton-type_catButton>
|
||||||
|
|
||||||
|
<!-- 这里highlight-code为引入的第三方代码高亮组件,里面包裹的就是上面示例组件的代码 -->
|
||||||
|
<!-- 注意引入代码一定不能缩进!!!否则不能生效!-->
|
||||||
|
<highlight-code slot="codeText" lang="vue">
|
||||||
|
<<< @/docs/.vuepress/components/demo/catButton/type_catButton.vue
|
||||||
|
</highlight-code>
|
||||||
|
</baseComponent-codeBox>
|
||||||
|
|
||||||
|
<!-- 组件的参数表格,这里我没有使用自带的markdown表格,因为太丑,样式不好修改,有时参数描述较少时,不能自动撑满一行,所以自己写了一个组件;titile为表格标题,tableHead为表头,tableBody为具体参数设置,并且支持el-table的table参数 -->
|
||||||
|
<baseComponent-apiTable
|
||||||
|
title="Table Attributes"
|
||||||
|
:tableHead = "tableHead"
|
||||||
|
:tableBody = "tableBody">
|
||||||
|
</baseComponent-apiTable>
|
||||||
|
|
||||||
|
<!-- Vssue为引入的评论插件 -->
|
||||||
|
<Vssue title="Vssue Demo" />
|
||||||
|
|
||||||
|
<!-- 其实在vuepress里的每个.md其实和.vue很像的,你基本可以按照vue组件模式来写 -->
|
||||||
|
<script>
|
||||||
|
// 基本上和写vue一样
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//表头为字符串,写法和md一样,中间以`|`间隔就行
|
||||||
|
tableHead:`参数 | 说明 | 类型 | 可选值 | 默认值`,
|
||||||
|
//表格为数组,其中每一项为字符串,代表每一行要展示的数据,写法也和md一样,中间以`|`间隔就行
|
||||||
|
tableBody: [
|
||||||
|
`size | 尺寸 | String | medium / small / mini | —`,
|
||||||
|
`type | 类型 | string | primary / success / warning / danger / info / text | —`
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- 和vue一样,也可以设置样式,并且这里style样式只对当前md有效,不需要加上scoped -->
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
|
至此,你已经完成了一个简单的button组件展示,概括来说就是:
|
||||||
|
1. 配置侧边栏导航
|
||||||
|
2. 写示例代码
|
||||||
|
3. 对应的页面md
|
||||||
|
|
||||||
|
更详细的配置和说明都在对应代码里。每个代码文件里,都有逐行的注释及防坑说明。
|
||||||
|
|
||||||
|
<baseComponent-star></baseComponent-star>
|
|
@ -0,0 +1,43 @@
|
||||||
|
其实这些说明,我在代码注释里都有详细说明,但还是想单独提出来啰嗦下~
|
||||||
|
## 组件库引入的路径问题
|
||||||
|
在编写组件库时,我们一般都会默认配置一些路径alias。但是打包后就会出现找不到对应文件的错误。这个时候就需要在`docs/.vuepress/components/config.js`里进行修改。
|
||||||
|
::: tip
|
||||||
|
```js
|
||||||
|
// 很多时候,我们引入自己的组件库,路径是不对的,
|
||||||
|
//这时就需要引入path,并在后面的chainWebpack进行配置
|
||||||
|
const path = require('path')
|
||||||
|
function resolve (dir) {
|
||||||
|
return path.join(__dirname, '../../', dir)
|
||||||
|
}
|
||||||
|
|
||||||
|
// vuepress里修改webpack配置,使用的是chainWebpack进行链式调用
|
||||||
|
// 具体使用可以参考我这个例子和 https://github.com/neutrinojs/webpack-chain/tree/v5
|
||||||
|
chainWebpack: (config, isServer) => {
|
||||||
|
config.resolve.alias
|
||||||
|
.set('@',resolve('src'))
|
||||||
|
}
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
|
## 关于侧边栏的说明
|
||||||
|
由于为了演示,这里就加上了版本1.0和2.0。如果不需要,可以删掉这两个文件夹,将里面的文件放在外面。依然是在`docs/.vuepress/components/config.js`里进行修改即可。
|
||||||
|
|
||||||
|
## vssue配置
|
||||||
|
vssue这个是一个利用github issue的评论插件 具体配置见https://vssue.js.org/zh/ 所以是需要你自己进行`docs/.vuepress/components/config.js`配置。这里演示页面的评论是会加到我自己的项目issue里。
|
||||||
|
|
||||||
|
## 参数api 表格
|
||||||
|
因为自带的markdown表格,样式比较单调,主要是不能自适应,调整表格宽度,当说明较少时,表格是撑不满一整行的。所以就用el-table改进了下。当然为了保证书写的简便性,写法也是基本和markdown的写法一样。
|
||||||
|
::: tip
|
||||||
|
```js
|
||||||
|
//表头为字符串,写法和md一样,中间以`|`间隔就行
|
||||||
|
tableHead:`参数 | 说明 | 类型 | 可选值 | 默认值`,
|
||||||
|
//表格数据为数组,其中每一项为字符串,代表每一行要展示的数据,写法也和md一样,中间以`|`间隔就行
|
||||||
|
tableBody: [
|
||||||
|
`size | 尺寸 | String | medium / small / mini | —`,
|
||||||
|
`type | 类型 | string | primary / success / warning / danger / info / text | —`
|
||||||
|
],
|
||||||
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
|
## star组件说明
|
||||||
|
那个看起来很炫的star组件,是由`https://codepen.io/sanzang/pen/LKvNPd` 代码修改而来。这里表示感谢!~
|
|
@ -0,0 +1,26 @@
|
||||||
|
<template>
|
||||||
|
<el-button :text='text'
|
||||||
|
v-bind='$attrs'
|
||||||
|
v-on='$listeners'>{{text}}</el-button>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'cat-button',
|
||||||
|
|
||||||
|
props: {
|
||||||
|
text: {
|
||||||
|
type: String
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -0,0 +1,27 @@
|
||||||
|
import Vue from 'vue';
|
||||||
|
import ElementUI from 'element-ui';
|
||||||
|
import 'element-ui/lib/theme-chalk/index.css';
|
||||||
|
|
||||||
|
import catButton from './components/catButton/catButton';
|
||||||
|
|
||||||
|
const components = [
|
||||||
|
catButton
|
||||||
|
];
|
||||||
|
|
||||||
|
Vue.use(ElementUI);
|
||||||
|
|
||||||
|
const shotCat = {
|
||||||
|
// 必须得有install方法
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
install (Vue, options) {
|
||||||
|
Object.values(components).forEach((component) => {
|
||||||
|
Vue.component(component.name, component);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined' && window.Vue) {
|
||||||
|
window.Vue.use(shotCat);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default shotCat;
|
|
@ -0,0 +1,98 @@
|
||||||
|
const gulp = require('gulp');
|
||||||
|
const rename = require('gulp-rename');
|
||||||
|
const fs = require('fs');
|
||||||
|
const babel = require('gulp-babel');
|
||||||
|
let version = require('../package.json').version;
|
||||||
|
let files = [
|
||||||
|
'../npm/order/package.json',
|
||||||
|
'../npm/poly/package.json',
|
||||||
|
'../npm/trad/package.json',
|
||||||
|
'../npm/cnchar/package.json',
|
||||||
|
'../npm/cnchar-all/package.json',
|
||||||
|
'../npm/hanzi-util/package.json',
|
||||||
|
'../npm/hanzi-util-base/package.json',
|
||||||
|
];
|
||||||
|
|
||||||
|
function modVersion () {
|
||||||
|
files.forEach(file => {
|
||||||
|
let pkg = require(file);
|
||||||
|
pkg.version = version;
|
||||||
|
fs.writeFile(file.substr(1), JSON.stringify(pkg, null, 4), 'utf8', (err) => {
|
||||||
|
if (err) throw err;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
let depFiles = [
|
||||||
|
'../npm/cnchar-all/package.json',
|
||||||
|
'../npm/hanzi-util/package.json',
|
||||||
|
'../npm/hanzi-util-base/package.json'
|
||||||
|
];
|
||||||
|
|
||||||
|
function modDep () {
|
||||||
|
depFiles.forEach(file => {
|
||||||
|
let pkg = require(file);
|
||||||
|
let dep = pkg.dependencies;
|
||||||
|
for (let key in dep) {
|
||||||
|
if (key.substr(0, 6) === 'cnchar') {
|
||||||
|
dep[key] = '^' + version;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fs.writeFile(file.substr(1), JSON.stringify(pkg, null, 4), 'utf8', (err) => {
|
||||||
|
if (err) throw err;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function task () {
|
||||||
|
modVersion();
|
||||||
|
modDep();
|
||||||
|
copyToNPM();
|
||||||
|
copyLatest();
|
||||||
|
transEs6ByBabel();
|
||||||
|
}
|
||||||
|
|
||||||
|
function copyToNPM () {
|
||||||
|
gulp.src(['src/main/*.json', 'src/main/index.d.ts', 'README.md', 'LICENSE'])
|
||||||
|
.pipe(gulp.dest('npm/cnchar'));
|
||||||
|
|
||||||
|
gulp.src(['src/plugin/order/*.json', 'README.md', 'LICENSE'])
|
||||||
|
.pipe(gulp.dest('npm/order'));
|
||||||
|
|
||||||
|
gulp.src(['src/plugin/poly/*.json', 'README.md', 'LICENSE'])
|
||||||
|
.pipe(gulp.dest('npm/poly'));
|
||||||
|
|
||||||
|
gulp.src(['src/plugin/trad/*.json', 'README.md', 'LICENSE'])
|
||||||
|
.pipe(gulp.dest('npm/trad'));
|
||||||
|
|
||||||
|
gulp.src(['src/main/index.d.ts', 'LICENSE'])
|
||||||
|
.pipe(gulp.dest('npm/cnchar-all'))
|
||||||
|
.pipe(gulp.dest('npm/hanzi-util'))
|
||||||
|
.pipe(gulp.dest('npm/hanzi-util-base'));
|
||||||
|
}
|
||||||
|
function copyLatest () {
|
||||||
|
gulp.src(`dist/*.${version}.min.js`)
|
||||||
|
.pipe(rename(function (path) {
|
||||||
|
path.basename = path.basename.replace(version, 'latest');
|
||||||
|
return path;
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('dist'));
|
||||||
|
}
|
||||||
|
function transEs6ByBabel () {
|
||||||
|
gulp.src('src/main/*.js')
|
||||||
|
.pipe(babel({presets: ['@babel/env']}))
|
||||||
|
.pipe(gulp.dest('npm/cnchar'));
|
||||||
|
|
||||||
|
gulp.src('src/plugin/order/*.js')
|
||||||
|
.pipe(babel({presets: ['@babel/env']}))
|
||||||
|
.pipe(gulp.dest('npm/order'));
|
||||||
|
|
||||||
|
gulp.src('src/plugin/poly/*.js')
|
||||||
|
.pipe(babel({presets: ['@babel/env']}))
|
||||||
|
.pipe(gulp.dest('npm/poly'));
|
||||||
|
|
||||||
|
gulp.src('src/plugin/trad/*.js')
|
||||||
|
.pipe(babel({presets: ['@babel/env']}))
|
||||||
|
.pipe(gulp.dest('npm/trad'));
|
||||||
|
}
|
||||||
|
|
||||||
|
task();
|