Skip to content

Commit bd412ab

Browse files
committedJul 18, 2020
Update project; add english version
1 parent b51ebbd commit bd412ab

38 files changed

+5321
-1158
lines changed
 

Diff for: ‎.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

Diff for: ‎.eslintrc.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true
6+
},
7+
extends: [`standard`],
8+
globals: {
9+
Atomics: `readonly`,
10+
SharedArrayBuffer: `readonly`
11+
},
12+
parser: `babel-eslint`,
13+
parserOptions: {
14+
ecmaVersion: 2018,
15+
sourceType: `module`
16+
},
17+
rules: {
18+
semi: [`error`, `always`],
19+
// fix: Cannot read property `range` of null
20+
//https://github.com/babel/babel-eslint/issues/681#issuecomment-420663038
21+
'template-curly-spacing' : `off`,
22+
indent: `off`,
23+
quotes: [2, `backtick`]
24+
}
25+
}

Diff for: ‎.stylelintrc

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"at-rule-no-unknown": [
5+
true,
6+
ignoreAtRules: [
7+
"mixin", "include"
8+
]
9+
],
10+
"indentation": 2,
11+
"string-quotes": "double",
12+
"no-duplicate-selectors": true,
13+
"color-hex-case": "upper",
14+
"color-hex-length": "short",
15+
"selector-max-id": 0,
16+
"selector-combinator-space-after": "always",
17+
"selector-attribute-quotes": "always",
18+
"selector-type-case": "upper",
19+
"declaration-block-trailing-semicolon": "always",
20+
"declaration-no-important": true,
21+
"declaration-colon-space-before": "never",
22+
"declaration-colon-space-after": "always-single-line",
23+
"declaration-colon-newline-after": null,
24+
"property-no-vendor-prefix": true,
25+
"value-no-vendor-prefix": true,
26+
"number-leading-zero": "never",
27+
"function-url-quotes": "always",
28+
"font-family-name-quotes": "always-where-required",
29+
"comment-whitespace-inside": "always",
30+
"comment-empty-line-before": null,
31+
"custom-property-empty-line-before": null,
32+
"at-rule-no-vendor-prefix": true,
33+
"selector-pseudo-element-colon-notation": "double",
34+
"selector-pseudo-class-parentheses-space-inside": "never",
35+
"selector-no-vendor-prefix": true,
36+
"media-feature-range-operator-space-before": "always",
37+
"media-feature-range-operator-space-after": "always",
38+
"media-feature-parentheses-space-inside": "always",
39+
"media-feature-colon-space-before": "never",
40+
"media-feature-colon-space-after": "always"
41+
}
42+
}

Diff for: ‎README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
11
# html-tree
22

3-
Генератор дерева на основе HTML-разметки.
4-
53
http://yoksel.github.io/html-tree/
64

5+
<a id="ru">**RU**</a> | [EN &darr;](#en)
6+
7+
## Генератор дерева на основе HTML-разметки.
8+
79
Вставьте в левое поле HTML-код, и справа появится дерево документа в виде вложенных списков:
810

9-
![Генератор дерева на основе HTML-разметки](/assets/img/screen.png)
11+
![Генератор дерева на основе HTML-разметки](/img/default-ru.png)
1012

1113
Бонусом делается простая проверка БЭМ-нотации и иерархии заголовков:
1214

13-
![Подсветка БЭМ-ошибок](/assets/img/bem-error-highlight.png)
15+
![Подсветка БЭМ-ошибок](/img/errors-ru.png)
1416

1517
Кликните по классу, чтобы подсветить его:
1618

17-
![Выборочная подсветка кода](/assets/img/user-highlight.png)
19+
![Выборочная подсветка кода](/img/highlight-ru.png)
20+
21+
[RU &uarr;](#ru) | <a id="en">**EN**</a>
22+
23+
## HTML Tree Generator
24+
25+
Insert the HTML code to the left textarea, and the document tree will appear on the right as nested lists:
26+
27+
![HTML Tree Generator](/img/default-en.png)
28+
29+
As a bonus there is a simple check of BEM notation and header hierarchy:
30+
31+
![Highlighting errors](/img/errors-en.png)
1832

33+
Click on class to highlight it:
1934

35+
![Highlighting classes](/img/highlight-en.png)

0 commit comments

Comments
 (0)