mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
style: eslint fix docs/
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ for file in $(find docs/source/api -name "*.md"); do
|
||||
-e '1 s/</\</g' \
|
||||
-e '1 s/>/\>/g' \
|
||||
-e '1 s/\*//g' \
|
||||
-e '1 s/^# \(.*\)/---\ntitle: "\1"\n---/' \
|
||||
-e '1 s/^# \(.*\)/---\ntitle: "\1"\nauto: true\n---/' \
|
||||
$file
|
||||
target=${file/\/_/\/}
|
||||
if [ "$file" != "$target" ]; then
|
||||
|
||||
+2
-2
@@ -9,9 +9,9 @@ npm run build
|
||||
cp CNAME public/
|
||||
|
||||
cp ../CHANGELOG.md source/tutorials/changelog.md
|
||||
sed -i '1i ---\ntitle: Changelog\n---\n' source/tutorials/changelog.md
|
||||
sed -i '1i ---\ntitle: Changelog\nauto: true\n---\n' source/tutorials/changelog.md
|
||||
cp ../CHANGELOG.md source/zh-cn/tutorials/changelog.md
|
||||
sed -i '1i ---\ntitle: 更新日志\n---\n' source/zh-cn/tutorials/changelog.md
|
||||
sed -i '1i ---\ntitle: 更新日志\nauto: true\n---\n' source/zh-cn/tutorials/changelog.md
|
||||
|
||||
if [ "$HEXO_ALGOLIA_INDEXING_KEY" != "" ]; then
|
||||
npm run index
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ author: Harttle
|
||||
language: en
|
||||
timezone: UTC
|
||||
|
||||
url: https://harttle.land/liquidjs
|
||||
url: https://liquidjs.com
|
||||
root: /
|
||||
permalink: news/:year/:month/:day/:title/
|
||||
archive_dir: news
|
||||
|
||||
Generated
+6
-4
@@ -1612,8 +1612,9 @@
|
||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
|
||||
},
|
||||
"hexo": {
|
||||
"version": "github:hexojs/hexo#6437ff51869faf1add5cbb1f5411586b61a93fbf",
|
||||
"from": "github:hexojs/hexo",
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/hexo/-/hexo-4.2.0.tgz",
|
||||
"integrity": "sha512-j2Kzgx/eWF0IgSfUEsAAhr0mDaaqR3E1MTus0/Vrs+JpQdMiSlqSbudPf2S9O4FHi5CAzDCuzToGlg2kgoQxcA==",
|
||||
"requires": {
|
||||
"abbrev": "^1.1.1",
|
||||
"archy": "^1.0.0",
|
||||
@@ -1624,7 +1625,7 @@
|
||||
"hexo-fs": "^2.0.0",
|
||||
"hexo-i18n": "^1.0.0",
|
||||
"hexo-log": "^1.0.0",
|
||||
"hexo-util": "^1.9.0",
|
||||
"hexo-util": "^1.8.0",
|
||||
"js-yaml": "^3.12.0",
|
||||
"lodash": "^4.17.11",
|
||||
"micromatch": "^4.0.2",
|
||||
@@ -1634,12 +1635,13 @@
|
||||
"pretty-hrtime": "^1.0.3",
|
||||
"resolve": "^1.8.1",
|
||||
"strip-ansi": "^6.0.0",
|
||||
"strip-indent": "^3.0.0",
|
||||
"swig-extras": "0.0.1",
|
||||
"swig-templates": "^2.0.3",
|
||||
"text-table": "^0.2.0",
|
||||
"tildify": "^2.0.0",
|
||||
"titlecase": "^1.1.2",
|
||||
"warehouse": "^3.0.2"
|
||||
"warehouse": "^3.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"ansi-styles": {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"cheerio": "^0.22.0",
|
||||
"hexo": "hexojs/hexo",
|
||||
"hexo": "^4.2.0",
|
||||
"hexo-algolia": "^1.3.1",
|
||||
"hexo-clean-css": "^1.0.0",
|
||||
"hexo-filter-nofollow": "^2.0.2",
|
||||
|
||||
+91
-94
@@ -1,146 +1,143 @@
|
||||
/* global hexo */
|
||||
|
||||
'use strict';
|
||||
'use strict'
|
||||
|
||||
const { resolve, basename } = require('path');
|
||||
const { readFileSync } = require('fs');
|
||||
const cheerio = require('cheerio');
|
||||
const lunr = require('lunr');
|
||||
const full_url_for = hexo.extend.helper.get('full_url_for').bind(hexo);
|
||||
const { resolve, basename } = require('path')
|
||||
const { readFileSync } = require('fs')
|
||||
const cheerio = require('cheerio')
|
||||
const fullUrlFor = hexo.extend.helper.get('full_url_for').bind(hexo)
|
||||
|
||||
const localizedPath = ['tutorials', 'filters', 'tags', 'playground', 'api'];
|
||||
const localizedPath = ['tutorials', 'filters', 'tags', 'playground', 'api']
|
||||
|
||||
hexo.extend.helper.register('page_nav', function() {
|
||||
const type = this.page.canonical_path.split('/')[0];
|
||||
const sidebar = this.site.data.sidebar[type];
|
||||
const path = basename(this.path);
|
||||
const list = {};
|
||||
const prefix = 'sidebar.' + type + '.';
|
||||
hexo.extend.helper.register('page_nav', function () {
|
||||
const type = this.page.canonical_path.split('/')[0]
|
||||
const sidebar = this.site.data.sidebar[type]
|
||||
const path = basename(this.path)
|
||||
const list = {}
|
||||
const prefix = 'sidebar.' + type + '.'
|
||||
|
||||
for (const i in sidebar) {
|
||||
if (typeof sidebar[i] === 'string') list[sidebar[i]] = i;
|
||||
else for (const j in sidebar[i]) list[sidebar[i][j]] = j;
|
||||
if (typeof sidebar[i] === 'string') list[sidebar[i]] = i
|
||||
else for (const j in sidebar[i]) list[sidebar[i][j]] = j
|
||||
}
|
||||
|
||||
const keys = Object.keys(list);
|
||||
const index = keys.indexOf(path);
|
||||
let result = '';
|
||||
const keys = Object.keys(list)
|
||||
const index = keys.indexOf(path)
|
||||
let result = ''
|
||||
|
||||
if (index > 0) {
|
||||
result += `<a href="${keys[index - 1]}" class="article-footer-prev" title="${this.__(prefix + list[keys[index - 1]])}"><i class="icon-chevron-left"></i><span>${this.__('page.prev')}</span></a>`;
|
||||
result += `<a href="${keys[index - 1]}" class="article-footer-prev" title="${this.__(prefix + list[keys[index - 1]])}"><i class="icon-chevron-left"></i><span>${this.__('page.prev')}</span></a>`
|
||||
}
|
||||
|
||||
if (index < keys.length - 1) {
|
||||
result += `<a href="${keys[index + 1]}" class="article-footer-next" title="${this.__(prefix + list[keys[index + 1]])}"><span>${this.__('page.next')}</span><i class="icon-chevron-right"></i></a>`;
|
||||
result += `<a href="${keys[index + 1]}" class="article-footer-next" title="${this.__(prefix + list[keys[index + 1]])}"><span>${this.__('page.next')}</span><i class="icon-chevron-right"></i></a>`
|
||||
}
|
||||
|
||||
return result;
|
||||
});
|
||||
return result
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('raw', function(filepath) {
|
||||
const content = readFileSync(resolve(this.view_dir, filepath));
|
||||
return content;
|
||||
});
|
||||
hexo.extend.helper.register('raw', function (filepath) {
|
||||
const content = readFileSync(resolve(this.view_dir, filepath))
|
||||
return content
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('doc_sidebar', function(className) {
|
||||
const type = this.page.canonical_path.split('/')[0];
|
||||
const sidebar = this.site.data.sidebar[type];
|
||||
const path = basename(this.path);
|
||||
let result = '';
|
||||
const self = this;
|
||||
const prefix = 'sidebar.' + type + '.';
|
||||
hexo.extend.helper.register('doc_sidebar', function (className) {
|
||||
const type = this.page.canonical_path.split('/')[0]
|
||||
const sidebar = this.site.data.sidebar[type]
|
||||
const path = basename(this.path)
|
||||
let result = ''
|
||||
const { __ } = this
|
||||
const prefix = 'sidebar.' + type + '.'
|
||||
|
||||
if (typeof sidebar === 'undefined') {
|
||||
return '';
|
||||
return ''
|
||||
}
|
||||
|
||||
for (const [title, menu] of Object.entries(sidebar)) {
|
||||
if (typeof menu === 'string') renderLink(title, menu);
|
||||
else renderSection(title, menu);
|
||||
if (typeof menu === 'string') renderLink(title, menu)
|
||||
else renderSection(title, menu)
|
||||
}
|
||||
|
||||
return result;
|
||||
return result
|
||||
|
||||
function renderLink(text, link) {
|
||||
let itemClass = className + '-link';
|
||||
if (link === path) itemClass += ' current';
|
||||
function renderLink (text, link) {
|
||||
let itemClass = className + '-link'
|
||||
if (link === path) itemClass += ' current'
|
||||
|
||||
const localized = self.__(prefix + text) === prefix + text ? text : self.__(prefix + text);
|
||||
result += '<a href="' + link + '" class="' + itemClass + '">' + localized + '</a>';
|
||||
const localized = __(prefix + text) === prefix + text ? text : __(prefix + text)
|
||||
result += '<a href="' + link + '" class="' + itemClass + '">' + localized + '</a>'
|
||||
}
|
||||
|
||||
function renderSection(title, menu) {
|
||||
result += '<strong class="' + className + '-title">' + self.__(prefix + title) + '</strong>';
|
||||
for (const [text, link] of Object.entries(menu)) renderLink(text, link);
|
||||
function renderSection (title, menu) {
|
||||
result += '<strong class="' + className + '-title">' + __(prefix + title) + '</strong>'
|
||||
for (const [text, link] of Object.entries(menu)) renderLink(text, link)
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('header_menu', function(className) {
|
||||
const menu = this.site.data.menu;
|
||||
let result = '';
|
||||
const self = this;
|
||||
const lang = this.page.lang;
|
||||
const isEnglish = lang === 'en';
|
||||
hexo.extend.helper.register('header_menu', function (className) {
|
||||
const menu = this.site.data.menu
|
||||
let result = ''
|
||||
const lang = this.page.lang
|
||||
const isEnglish = lang === 'en'
|
||||
|
||||
for (const [title, path] of Object.entries(menu)) {
|
||||
let langPath = path;
|
||||
if (!isEnglish && ~localizedPath.indexOf(title)) langPath = lang + path;
|
||||
const url = self.url_for(langPath);
|
||||
const active = ('/' + this.page.canonical_path).slice(0, path.length) === path ? ' active' : '';
|
||||
result += `<a href="${url}" class="${className}-link${active}">${self.__('menu.' + title)}</a>`;
|
||||
let langPath = path
|
||||
if (!isEnglish && ~localizedPath.indexOf(title)) langPath = lang + path
|
||||
const url = this.url_for(langPath)
|
||||
const active = ('/' + this.page.canonical_path).slice(0, path.length) === path ? ' active' : ''
|
||||
result += `<a href="${url}" class="${className}-link${active}">${this.__('menu.' + title)}</a>`
|
||||
}
|
||||
|
||||
return result;
|
||||
});
|
||||
return result
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('canonical_url', function(lang) {
|
||||
let path = this.page.path;
|
||||
if (lang && lang !== 'en') path = lang + '/' + path;
|
||||
hexo.extend.helper.register('canonical_url', function (lang) {
|
||||
let path = this.page.path
|
||||
if (lang && lang !== 'en') path = lang + '/' + path
|
||||
|
||||
return full_url_for(path);
|
||||
});
|
||||
return fullUrlFor(path)
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('url_for_lang', function(path) {
|
||||
const lang = this.page.lang;
|
||||
let url = this.url_for(path);
|
||||
hexo.extend.helper.register('url_for_lang', function (path) {
|
||||
const lang = this.page.lang
|
||||
let url = this.url_for(path)
|
||||
|
||||
if (lang !== 'en' && path[0] === '/') url = '/' + lang + path;
|
||||
if (lang !== 'en' && path[0] === '/') url = '/' + lang + path
|
||||
|
||||
return url;
|
||||
});
|
||||
return url
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('raw_link', path => `https://github.com/hexojs/site/edit/master/source/${path}`);
|
||||
hexo.extend.helper.register('raw_link', path => `https://github.com/harttle/liquidjs/edit/master/docs/source/${path}`)
|
||||
|
||||
hexo.extend.helper.register('page_anchor', str => {
|
||||
const $ = cheerio.load(str, {decodeEntities: false});
|
||||
const headings = $('h1, h2, h3, h4, h5, h6');
|
||||
const $ = cheerio.load(str, { decodeEntities: false })
|
||||
const headings = $('h1, h2, h3, h4, h5, h6')
|
||||
|
||||
if (!headings.length) return str;
|
||||
if (!headings.length) return str
|
||||
|
||||
headings.each(function() {
|
||||
const id = $(this).attr('id');
|
||||
headings.each(function () {
|
||||
const id = $(this).attr('id')
|
||||
|
||||
$(this)
|
||||
.addClass('article-heading')
|
||||
.append(`<a class="article-anchor" href="#${id}" aria-hidden="true"></a>`);
|
||||
});
|
||||
.append(`<a class="article-anchor" href="#${id}" aria-hidden="true"></a>`)
|
||||
})
|
||||
|
||||
return $.html();
|
||||
});
|
||||
return $.html()
|
||||
})
|
||||
|
||||
// Will be replace with full_url_for after hexo v4 release
|
||||
hexo.extend.helper.register('canonical_path_for_nav', function() {
|
||||
const path = this.page.canonical_path;
|
||||
for (const slug of localizedPath) if (path.startsWith(slug)) return path;
|
||||
return '';
|
||||
});
|
||||
// Will be replace with fullUrlFor after hexo v4 release
|
||||
hexo.extend.helper.register('canonical_path_for_nav', function () {
|
||||
const path = this.page.canonical_path
|
||||
for (const slug of localizedPath) if (path.startsWith(slug)) return path
|
||||
return ''
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('lang_name', function(lang) {
|
||||
const data = this.site.data.languages[lang];
|
||||
return data.name || data;
|
||||
});
|
||||
|
||||
hexo.extend.helper.register('hexo_version', function() {
|
||||
return this.env.version;
|
||||
});
|
||||
hexo.extend.helper.register('lang_name', function (lang) {
|
||||
const data = this.site.data.languages[lang]
|
||||
return data.name || data
|
||||
})
|
||||
|
||||
hexo.extend.helper.register('hexo_version', function () {
|
||||
return this.env.version
|
||||
})
|
||||
|
||||
+10
-10
@@ -1,19 +1,19 @@
|
||||
/* global hexo */
|
||||
|
||||
'use strict';
|
||||
'use strict'
|
||||
|
||||
hexo.extend.tag.register('note', (args, content) => {
|
||||
const className = args.shift();
|
||||
let header = '';
|
||||
let result = '';
|
||||
const className = args.shift()
|
||||
let header = ''
|
||||
let result = ''
|
||||
|
||||
if (args.length) {
|
||||
header += `<strong class="note-title">${args.join(' ')}</strong>`;
|
||||
header += `<strong class="note-title">${args.join(' ')}</strong>`
|
||||
}
|
||||
|
||||
result += `<blockquote class="note ${className}">${header}`;
|
||||
result += hexo.render.renderSync({text: content, engine: 'markdown'});
|
||||
result += '</blockquote>';
|
||||
result += `<blockquote class="note ${className}">${header}`
|
||||
result += hexo.render.renderSync({ text: content, engine: 'markdown' })
|
||||
result += '</blockquote>'
|
||||
|
||||
return result;
|
||||
}, true);
|
||||
return result
|
||||
}, true)
|
||||
|
||||
+26
-27
@@ -1,59 +1,58 @@
|
||||
/* globals self, caches, fetch */
|
||||
'use strict';
|
||||
'use strict'
|
||||
|
||||
const CACHE_NAME = '{{site.time}}';
|
||||
const CACHE_NAME = '{{site.time}}'
|
||||
const urlsToCache = [
|
||||
'/',
|
||||
'/css/navy.css',
|
||||
'/js/main.js',
|
||||
'/icon/logo.png',
|
||||
'/fonts/icomoon.ttf?e8nnma'
|
||||
];
|
||||
]
|
||||
const blackList = [
|
||||
/google-analytics.com.*collect/
|
||||
];
|
||||
]
|
||||
|
||||
self.addEventListener('install', event => {
|
||||
event.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(urlsToCache)));
|
||||
});
|
||||
event.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(urlsToCache)))
|
||||
})
|
||||
|
||||
self.addEventListener('activate', event => {
|
||||
event.waitUntil(caches.keys().then(cacheNames => Promise.all(
|
||||
cacheNames.map(cacheName => cacheName !== CACHE_NAME && caches.delete(cacheName))
|
||||
)));
|
||||
});
|
||||
)))
|
||||
})
|
||||
|
||||
self.addEventListener('fetch', event => {
|
||||
if (
|
||||
event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin'
|
||||
) return cache(event.request);
|
||||
) return cache(event.request)
|
||||
if (
|
||||
event.request.method !== 'GET' || blackList.some(regex => regex.exec(event.request.url))
|
||||
) return network(event.request);
|
||||
const pn = networkAndSave(event.request);
|
||||
event.respondWith(cache(event.request).then(res => res || pn).catch(() => pn));
|
||||
});
|
||||
) return network(event.request)
|
||||
const pn = networkAndSave(event.request)
|
||||
event.respondWith(cache(event.request).then(res => res || pn).catch(() => pn))
|
||||
})
|
||||
|
||||
function cache(req) {
|
||||
return caches.open(CACHE_NAME).then(cache => cache.match(req.clone()));
|
||||
function cache (req) {
|
||||
return caches.open(CACHE_NAME).then(cache => cache.match(req.clone()))
|
||||
}
|
||||
|
||||
function networkAndSave(req) {
|
||||
function networkAndSave (req) {
|
||||
return network(req).then(res => {
|
||||
if (validate(res)) save(req.clone(), res.clone());
|
||||
return res;
|
||||
});
|
||||
if (validate(res)) save(req.clone(), res.clone())
|
||||
return res
|
||||
})
|
||||
}
|
||||
|
||||
function network(req) {
|
||||
return fetch(req.clone());
|
||||
function network (req) {
|
||||
return fetch(req.clone())
|
||||
}
|
||||
|
||||
function save(key, val) {
|
||||
return caches.open(CACHE_NAME).then(cache => cache.put(key, val));
|
||||
function save (key, val) {
|
||||
return caches.open(CACHE_NAME).then(cache => cache.put(key, val))
|
||||
}
|
||||
|
||||
function validate(res) {
|
||||
if (res && res.type === 'basic' && res.status !== 200) return false;
|
||||
return true;
|
||||
function validate (res) {
|
||||
if (res && res.type === 'basic' && res.status !== 200) return false
|
||||
return true
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -23,6 +23,7 @@ page:
|
||||
contents: Contents
|
||||
back_to_top: Back to Top
|
||||
improve: Improve this doc
|
||||
report: Report problems
|
||||
prev: Prev
|
||||
next: Next
|
||||
last_updated: "Last updated: %s"
|
||||
|
||||
Vendored
+2
-1
@@ -22,7 +22,8 @@ playground:
|
||||
page:
|
||||
contents: 目录
|
||||
back_to_top: 回到顶部
|
||||
improve: 改进本文
|
||||
improve: 改进这篇文档
|
||||
report: 报告问题
|
||||
prev: 上一页
|
||||
next: 下一页
|
||||
last_updated: 上次更新:%s
|
||||
|
||||
Vendored
+4
@@ -8,7 +8,11 @@
|
||||
<div class="inner">
|
||||
<header class="article-header">
|
||||
<h1 class="article-title" itemprop="name">{{ page.title }}</h1>
|
||||
{% if page.auto %}
|
||||
<a href="https://github.com/harttle/liquidjs/issues/new?title=docs:&body={{"URL: " + url | url_encode}}&labels=docs" class="article-edit-link" title="{{ __('page.report') }}"><i class="icon-chat-bubble-dots"></i></a>
|
||||
{% else %}
|
||||
<a href="{{ raw_link(page.source) }}" class="article-edit-link" title="{{ __('page.improve') }}"><i class="icon-pencil"></i></a>
|
||||
{% endif %}
|
||||
</header>
|
||||
<div class="article-content" itemprop="articleBody">
|
||||
{{ page_anchor(page.content) }}
|
||||
|
||||
@@ -70,3 +70,6 @@ i {
|
||||
.icon-typescript:before {
|
||||
content: "\e900";
|
||||
}
|
||||
.icon-chat-bubble-dots:before {
|
||||
content: "\e901";
|
||||
}
|
||||
|
||||
@@ -24,5 +24,3 @@
|
||||
|
||||
#editorEl, #previewEl
|
||||
font-size: 1em
|
||||
.ace_scroller, .ace_gutter
|
||||
padding: 15px 0px;
|
||||
|
||||
BIN
Binary file not shown.
+2
@@ -8,6 +8,7 @@
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||
<glyph unicode="" glyph-name="typescript" d="M0 438.857v-512h1024v1024h-1024zM825.216 479.646c26.027-6.485 45.824-18.048 64.043-36.907 9.429-10.069 23.424-28.416 24.533-32.853 0.341-1.28-44.203-31.147-71.168-47.915-0.981-0.64-4.907 3.584-9.259 10.069-13.227 19.2-27.008 27.477-48.128 28.928-31.061 2.133-51.029-14.123-50.859-41.259-0.021-0.475-0.034-1.031-0.034-1.59 0-6.444 1.624-12.51 4.484-17.809l-0.098 0.199c6.827-14.123 19.541-22.613 59.307-39.808 73.344-31.573 104.704-52.352 124.203-81.92 21.76-32.981 26.667-85.675 11.861-124.843-16.213-42.581-56.533-71.509-113.28-81.067-17.536-3.115-59.136-2.645-77.995 0.768-41.131 7.339-80.128 27.648-104.192 54.315-9.429 10.368-27.819 37.547-26.667 39.467 0.469 0.683 4.693 3.285 9.387 6.016 4.608 2.603 21.803 12.544 38.059 21.973l29.44 17.067 6.187-9.131c8.619-13.141 27.435-31.189 38.827-37.205 32.683-17.237 77.525-14.805 99.627 5.035 8.22 6.956 13.403 17.28 13.403 28.814 0 0.67-0.018 1.337-0.052 1.998l0.004-0.093c0 11.861-1.493 17.067-7.68 26.027-7.936 11.349-24.192 20.907-70.357 40.96-52.821 22.741-75.563 36.864-96.384 59.307-12.556 14.254-22.22 31.382-27.871 50.244l-0.246 0.956c-3.883 14.464-4.864 50.731-1.792 65.323 10.88 51.072 49.408 86.613 105.003 97.195 18.048 3.413 59.989 2.133 77.696-2.261zM584.832 436.894l0.341-41.941h-133.333v-378.709h-94.293v378.709h-133.205v41.131c0 22.784 0.469 41.813 1.109 42.24 0.512 0.683 81.621 1.024 179.925 0.853l178.987-0.512z" />
|
||||
<glyph unicode="" glyph-name="chat-bubble-dots" d="M512 182.857l-204.8-204.8v204.8h-204.8c-56.554 0-102.4 45.846-102.4 102.4v0 512c0 56.32 46.080 102.4 102.4 102.4h819.2c56.554 0 102.4-45.846 102.4-102.4v0-512c0-56.554-45.846-102.4-102.4-102.4v0h-409.6zM256 592.457v-102.4h102.4v102.4h-102.4zM460.8 592.457v-102.4h102.4v102.4h-102.4zM665.6 592.457v-102.4h102.4v102.4h-102.4z" />
|
||||
<glyph unicode="" glyph-name="network" d="M512-73.143c-282.77 0-512 229.23-512 512s229.23 512 512 512v0c282.77 0 512-229.23 512-512s-229.23-512-512-512v0zM908.8 336.457c8.251 30.73 12.99 66.012 12.99 102.4s-4.739 71.67-13.634 105.261l0.644-2.861h-195.584c2.267-30.637 3.559-66.368 3.559-102.4s-1.292-71.763-3.832-107.148l0.273 4.748h195.584zM866.816 234.057h-164.864c-9.503-67.086-26.518-127.646-50.456-184.579l1.816 4.867c91.262 34.305 165.167 97.283 212.455 177.781l1.049 1.931zM413.696 336.457h196.608c2.654 30.668 4.168 66.357 4.168 102.4s-1.513 71.734-4.48 107.010l0.312-4.61h-196.608c-2.654-30.668-4.168-66.357-4.168-102.4s1.513-71.734 4.48-107.010l-0.312 4.61zM426.496 234.057c20.992-122.88 57.856-204.8 85.504-204.8s64.512 81.92 85.504 204.8h-171.008zM115.2 336.457h195.584c-2.267 30.637-3.559 66.368-3.559 102.4s1.292 71.763 3.832 107.148l-0.273-4.748h-195.584c-8.251-30.73-12.99-66.012-12.99-102.4s4.739-71.67 13.634-105.261l-0.644 2.861zM157.184 234.057c48.337-82.429 122.242-145.407 210.673-178.775l2.831-0.937c-21.504 49.152-37.888 110.592-48.64 179.712h-164.864zM866.816 643.657c-48.337 82.429-122.242 145.407-210.673 178.775l-2.831 0.937c21.504-49.152 37.888-110.592 48.64-179.712h164.864zM426.496 643.657h171.008c-20.992 122.88-57.856 204.8-85.504 204.8s-64.512-81.92-85.504-204.8zM157.184 643.657h164.864c10.24 69.12 27.136 130.56 48.64 179.712-91.262-34.305-165.167-97.283-212.455-177.781l-1.049-1.931z" />
|
||||
<glyph unicode="" glyph-name="opencollective" d="M932.693 730.27c57.298-81.265 91.58-182.336 91.58-291.413s-34.281-210.149-92.657-293.026l1.077 1.613-132.267 132.267c25.95 45.863 41.242 100.719 41.242 159.147s-15.292 113.284-42.092 160.785l0.85-1.638zM803.413 859.55l-132.267-132.267c-45.751 25.644-100.402 40.747-158.58 40.747-181.68 0-328.96-147.28-328.96-328.96s147.28-328.96 328.96-328.96c58.179 0 112.83 15.103 160.247 41.602l-1.666-0.855 132.267-132.693c-81.392-57.006-182.473-91.093-291.516-91.093-282.77 0-512 229.23-512 512s229.23 512 512 512c109.043 0 210.124-34.088 293.168-92.188l-1.652 1.095zM932.693 730.27c57.298-81.265 91.58-182.336 91.58-291.413s-34.281-210.149-92.657-293.026l1.077 1.613-132.267 132.267c25.95 45.863 41.242 100.719 41.242 159.147s-15.292 113.284-42.092 160.785l0.85-1.638z" />
|
||||
<glyph unicode="" glyph-name="patreon" d="M656.469 928.5c-203.264 0-368.64-165.376-368.64-368.64 0-202.667 165.376-367.488 368.64-367.488 202.667 0 367.531 164.864 367.531 367.488 0 203.264-164.864 368.64-367.531 368.64zM0.128-53.388h180.053v981.888h-180.053z" />
|
||||
@@ -22,4 +23,5 @@
|
||||
<glyph unicode="" glyph-name="twitter" d="M1024 755.933c-28.588-41.583-64.324-78.619-105.258-108.508 0.649-9.096 0.649-18.193 0.649-27.289 0-277.442-211.166-597.116-597.116-597.116-118.903 0-229.359 34.438-322.275 94.214 16.894-1.948 33.137-2.6 50.68-2.6 98.113 0 188.425 33.137 260.548 89.665-92.264 1.948-169.583 62.376-196.223 145.543 12.996-1.948 25.99-3.249 39.635-3.249 18.842 0 37.685 2.6 55.228 7.148-96.162 19.492-168.284 103.96-168.284 205.969v2.6c27.938-15.593 60.426-25.341 94.864-26.64-56.527 37.685-93.565 102.009-93.565 174.781 0 38.986 10.396 74.72 28.588 105.908 103.31-127.35 258.6-210.517 432.73-219.614-3.249 15.593-5.197 31.838-5.197 48.082 0 115.654 93.565 209.867 209.867 209.867 60.426 0 115.005-25.341 153.34-66.275 47.43 9.096 92.913 26.64 133.198 50.68-15.593-48.731-48.731-89.665-92.264-115.654 42.233 4.548 83.167 16.245 120.854 32.487z" />
|
||||
<glyph unicode="" glyph-name="github" d="M512.001 940.068c283.684 0 513.843-230.159 513.843-513.843 0-226.814-147.194-419.506-351.26-487.749-26.094-4.684-35.46 11.374-35.46 24.755 0 16.728 0.669 72.258 0.669 141.173 0 48.173-16.058 78.951-34.792 95.007 114.41 12.713 234.841 56.202 234.841 253.575 0 56.202-20.073 101.699-52.857 137.828 5.353 13.381 22.749 65.568-5.353 136.489-42.819 13.381-141.173-52.857-141.173-52.857-40.813 11.374-84.971 17.395-128.46 17.395s-87.647-6.021-128.46-17.395c0 0-98.352 66.237-141.173 52.857-28.1-70.921-10.705-123.109-5.353-136.489-32.784-36.129-52.857-81.626-52.857-137.828 0-196.706 119.764-240.864 234.174-253.575-14.719-13.381-28.1-36.129-32.784-68.913-29.439-13.381-104.375-36.129-149.203 42.819-28.1 48.842-78.951 52.857-78.951 52.857-50.179 0.669-3.345-31.445-3.345-31.445 33.453-15.389 56.871-74.936 56.871-74.936 30.108-91.662 173.288-60.886 173.288-60.886 0-42.819 0.669-82.965 0.669-95.676 0-13.381-9.366-29.439-35.46-24.755-204.066 68.246-351.26 260.935-351.26 487.749 0 283.684 230.159 513.843 513.843 513.843zM192.856 202.088c1.339 2.676-0.669 6.021-4.684 8.029-4.015 1.339-7.36 0.669-8.699-1.339-1.339-2.676 0.669-6.021 4.684-8.029 3.345-2.006 7.36-1.339 8.699 1.339zM213.598 179.34c2.676 2.006 2.006 6.69-1.339 10.705-3.345 3.345-8.029 4.684-10.705 2.006-2.676-2.006-2.006-6.69 1.339-10.705 3.345-3.345 8.029-4.684 10.705-2.006zM233.669 149.232c3.345 2.676 3.345 8.029 0 12.713-2.676 4.684-8.029 6.69-11.374 4.015-3.345-2.006-3.345-7.36 0-12.044s8.699-6.69 11.374-4.684zM261.771 121.132c2.676 2.676 1.339 8.699-2.676 12.713-4.684 4.684-10.705 5.353-13.381 2.006-3.345-2.676-2.006-8.699 2.676-12.713 4.684-4.684 10.705-5.353 13.381-2.006zM299.906 104.404c1.339 4.015-2.676 8.699-8.699 10.705-5.353 1.339-11.374-0.669-12.713-4.684s2.676-8.699 8.699-10.035c5.353-2.006 11.374 0 12.713 4.015zM342.058 101.059c0 4.684-5.353 8.029-11.374 7.36-6.021 0-10.705-3.345-10.705-7.36 0-4.684 4.684-8.029 11.374-7.36 6.021 0 10.705 3.345 10.705 7.36zM380.865 107.749c-0.669 4.015-6.021 6.69-12.044 6.021-6.021-1.339-10.035-5.353-9.366-10.035 0.669-4.015 6.021-6.69 12.044-5.353s10.035 5.353 9.366 9.366z" />
|
||||
<glyph unicode="" glyph-name="shield" d="M810.665 396.19v426.666h-298.667v-758c34.001 18 88.667 49.334 142 91.334 71.333 56 156.667 143.333 156.667 240zM938.666 908.19v-511.999c0-280.666-392.666-457.999-409.333-465.333-5.333-2.667-11.334-4-17.333-4s-12 1.333-17.333 4c-16.668 7.334-409.333 184.667-409.333 465.333v511.999c0 23.334 19.333 42.667 42.667 42.667h767.999c23.334 0 42.667-19.333 42.667-42.667z" />
|
||||
<glyph unicode="" glyph-name="bug" horiz-adv-x="951" d="M932.571 402.286c0-20-16.571-36.571-36.571-36.571h-128c0-71.429-15.429-125.143-38.286-165.714l118.857-119.429c14.286-14.286 14.286-37.143 0-51.429-6.857-7.429-16.571-10.857-25.714-10.857s-18.857 3.429-25.714 10.857l-113.143 112.571s-74.857-68.571-172-68.571v512h-73.143v-512c-103.429 0-178.857 75.429-178.857 75.429l-104.571-118.286c-7.429-8-17.143-12-27.429-12-8.571 0-17.143 2.857-24.571 9.143-14.857 13.714-16 36.571-2.857 52l115.429 129.714c-20 39.429-33.143 90.286-33.143 156.571h-128c-20 0-36.571 16.571-36.571 36.571s16.571 36.571 36.571 36.571h128v168l-98.857 98.857c-14.286 14.286-14.286 37.143 0 51.429s37.143 14.286 51.429 0l98.857-98.857h482.286l98.857 98.857c14.286 14.286 37.143 14.286 51.429 0s14.286-37.143 0-51.429l-98.857-98.857v-168h128c20 0 36.571-16.571 36.571-36.571zM658.286 731.428h-365.714c0 101.143 81.714 182.857 182.857 182.857s182.857-81.714 182.857-182.857z" />
|
||||
</font></defs></svg>
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 14 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
+1
@@ -79,6 +79,7 @@
|
||||
tabSize: 2,
|
||||
useSoftTabs: true
|
||||
});
|
||||
editor.renderer.setScrollMargin(15);
|
||||
return editor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user