Skip to content

Commit 37e1336

Browse files
author
Alexander Rogalskiy
committed
Updates on files
1 parent 0b7ddb1 commit 37e1336

34 files changed

+2406
-944
lines changed

.upptimerc.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Change these first
2+
owner: AlexRogalskiy # Your GitHub organization or username, where this repository lives
3+
repo: java-patterns # The name of this repository
4+
5+
sites:
6+
- name: Google
7+
url: https://www.google.com
8+
- name: Wikipedia
9+
url: https://en.wikipedia.org
10+
- name: Hacker News
11+
url: https://news.ycombinator.com
12+
- name: Test Broken Site
13+
url: https://thissitedoesnotexist.koj.co
14+
15+
assignees: # Users to assign downtime issues (optional)
16+
- AlexRogalskiy
17+
18+
status-website:
19+
# Add your custom domain name, or remove the `cname` line if you don't have a domain
20+
# Uncomment the `baseUrl` line if you don't have a custom domain and add your repo name there
21+
# cname: demo.upptime.js.org
22+
baseUrl: /java-patterns
23+
logoUrl: https://raw.githubusercontent.com/upptime/upptime.js.org/master/static/img/icon.svg
24+
name: Upptime
25+
introTitle: "**Upptime** is the open-source uptime monitor and status page, powered entirely by GitHub."
26+
introMessage: This is a sample status page which uses **real-time** data from our [GitHub repository](https://github.com/upptime/upptime). No server required — just GitHub Actions, Issues, and Pages. [**Get your own for free**](https://github.com/upptime/upptime)
27+
navbar:
28+
- title: Status
29+
href: /
30+
- title: GitHub
31+
href: https://github.com/$OWNER/$REPO
32+
33+
# Upptime also supports notifications, assigning issues, and more
34+
# See https://upptime.js.org/docs/configuration

datas.csv

+671-125
Large diffs are not rendered by default.

datas.html

+1,087-541
Large diffs are not rendered by default.

docs/assets/images/logos/logo.svg

+1-1
Loading
File renamed without changes.

docs/overrides/header.html

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{#-
2+
This file was automatically generated - do not edit
3+
-#}
4+
{% set class = "md-header" %}
5+
{% if "navigation.tabs.sticky" in features %}
6+
{% set class = class ~ " md-header--lifted" %}
7+
{% endif %}
8+
<header class="{{ class }}" data-md-component="header">
9+
<nav aria-label="{{ lang.t('header.title') }}" class="md-header__inner md-grid">
10+
<a aria-label="{{ config.site_name }}" class="md-header__button md-logo"
11+
data-md-component="logo" href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}">
12+
{% include "partials/logo.html" %}
13+
</a>
14+
<label class="md-header__button md-icon" for="__drawer">
15+
{% include ".icons/material/menu" ~ ".svg" %}
16+
</label>
17+
<div class="md-header__title" data-md-component="header-title">
18+
<div class="md-header__ellipsis">
19+
<div class="md-header__topic">
20+
<span class="md-ellipsis">
21+
{{ config.site_name }}
22+
</span>
23+
</div>
24+
</div>
25+
</div>
26+
{% if not config.theme.palette is mapping %}
27+
<form class="md-header__option" data-md-component="palette">
28+
{% for option in config.theme.palette %}
29+
{% set primary = option.primary | replace(" ", "-") | lower %}
30+
{% set accent = option.accent | replace(" ", "-") | lower %}
31+
<input %} %} %}
32+
aria-hidden="true" aria-label="{{ option.toggle.name }}" class="md-option" data-md-color-accent="{{ accent }}" data-md-color-media="{{ option.media }}" data-md-color-primary="{{ primary }}"
33+
data-md-color-scheme="{{ option.scheme }}" else endif id="__palette_{{ loop.index }}" if name="__palette" option.toggle type="radio" {%
34+
{% {%>
35+
{% if option.toggle %}
36+
<label class="md-header__button md-icon" for="__palette_{{ loop.index0 or loop.length }}"
37+
hidden title="{{ option.toggle.name }}">
38+
{% include ".icons/" ~ option.toggle.icon ~ ".svg" %}
39+
</label>
40+
{% endif %}
41+
{% endfor %}
42+
</form>
43+
{% endif %}
44+
{% if config.extra.alternate %}
45+
<div class="md-header__option">
46+
<div class="md-select">
47+
{% set icon = config.theme.icon.alternate or "material/translate" %}
48+
<button aria-label="{{ lang.t('select.language.title') }}" class="md-header__button md-icon">
49+
{% include ".icons/" ~ icon ~ ".svg" %}
50+
</button>
51+
<div class="md-select__inner">
52+
<ul class="md-select__list">
53+
{% for alt in config.extra.alternate %}
54+
<li class="md-select__item">
55+
<a class="md-select__link" href="{{ alt.link | url }}" hreflang="{{ alt.lang }}">
56+
{{ alt.name }}
57+
</a>
58+
</li>
59+
{% endfor %}
60+
</ul>
61+
</div>
62+
</div>
63+
</div>
64+
{% endif %}
65+
{% if "search" in config["plugins"] %}
66+
<label class="md-header__button md-icon" for="__search">
67+
{% include ".icons/material/magnify.svg" %}
68+
</label>
69+
{% include "partials/search.html" %}
70+
{% endif %}
71+
{% if config.repo_url %}
72+
<div class="md-header__source">
73+
{% include "partials/source.html" %}
74+
</div>
75+
{% endif %}
76+
</nav>
77+
{% if "navigation.tabs.sticky" in features %}
78+
{% if "navigation.tabs" in features %}
79+
{% include "partials/tabs.html" %}
80+
{% endif %}
81+
{% endif %}
82+
</header>

docs/overrides/partials/empty.txt

Whitespace-only changes.

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ fontawesome-markdown>=0.2.6
99
markdown-include>=0.6.0
1010
pymdown-extensions>=8.2
1111
python-markdown-math>=0.6
12+
mkdocs-literate-nav>=0.4.1
1213
mkdocs-material-extensions>=1.0
1314
mkdocs-git-revision-date-localized-plugin>=0.9.2
1415
mkdocs-awesome-pages-plugin>=2.5.0

mkdocs.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ theme:
5757
- announce.dismiss
5858
- tabs
5959
- navigation.top
60+
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/?h=navigation+tabs#navigation-tabs
6061
- navigation.tabs.sticky
62+
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/?h=navigation+tabs#anchor-tracking
6163
- navigation.tracking
6264
- navigation.sections
6365
- navigation.expand
@@ -126,6 +128,7 @@ plugins:
126128
enabled: !ENV [ENABLE_MKDOCS_SIMPLE_HOOKS, True]
127129
hooks:
128130
on_pre_build: "docs.hooks:copy_generated_files"
131+
- literate-nav
129132

130133
# Extra settings
131134
extra:
@@ -149,12 +152,14 @@ extra:
149152
default: latest
150153

151154
# Extra css settings
155+
# https://squidfunk.github.io/mkdocs-material/customization/?h=#additional-css
152156
extra_css:
153157
- assets/css/customizations.css
154158
- assets/css/asciinema-player.css
155159
- assets/css/extra.css
156160

157161
# Extra javascript settings
162+
# https://squidfunk.github.io/mkdocs-material/customization/?h=#additional-javascript
158163
extra_javascript:
159164
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
160165
- https://unpkg.com/[email protected]/dist/mermaid.min.js
@@ -164,24 +169,29 @@ extra_javascript:
164169

165170
# Extensions settings
166171
markdown_extensions:
172+
# https://www.mkdocs.org/user-guide/writing-your-docs/#linking-to-pages
167173
- toc:
168174
anchorlink: true
169175
permalink: true
170176
toc_depth: 3
171177
slugify: !!python/name:pymdownx.slugs.uslugify
172178
- abbr: {}
179+
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/?h=attr#attribute-lists attr_list is required for several other features. Always enable.
173180
- attr_list: {}
174181
- def_list: {}
175-
- admonition: {} # https://squidfunk.github.io/mkdocs-material/extensions/admonition/
182+
# https://squidfunk.github.io/mkdocs-material/reference/admonitions/?h=admoni
183+
- admonition: {}
176184
- footnotes: {}
177185
- tables: {}
186+
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences Used for tags, setting unique templates for certain pages, and other custom frontmatter.
178187
- meta: {}
179188
- md_in_html: {}
180189
- mkautodoc: {}
181190
- codehilite: # https://squidfunk.github.io/mkdocs-material/extensions/codehilite/
182191
linenums: true
183192
use_pygments: false
184193
guess_lang: false
194+
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight
185195
- pymdownx.highlight:
186196
linenums: true
187197
extend_pygments_lang:
@@ -206,6 +216,7 @@ markdown_extensions:
206216
custom_checkbox: true
207217
clickable_checkbox: true
208218
- pymdownx.extra: {}
219+
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#snippets
209220
- pymdownx.snippets:
210221
base_path: docs/snippets
211222
check_paths: true
@@ -225,14 +236,18 @@ markdown_extensions:
225236
smart_enable: all
226237
- pymdownx.mark: {}
227238
- pymdownx.critic: {}
228-
- pymdownx.inlinehilite: {} # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#inlinehilite
229-
- pymdownx.superfences: # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#superfences
239+
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#inlinehilite
240+
- pymdownx.inlinehilite: {}
241+
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences Superfences is required for several other features. Always enable.
242+
- pymdownx.superfences:
230243
preserve_tabs: true
231244
custom_fences:
232245
- name: mermaid
233246
class: mermaid
234247
format: !!python/name:pymdownx.superfences.fence_div_format
235-
- pymdownx.tabbed: {} # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#tabbed
248+
# https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#tabbed
249+
- pymdownx.tabbed:
250+
alternate_style: true
236251
- pymdownx.details: {} # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#details
237252
- pymdownx.emoji: # https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#configuration
238253
emoji_index: !!python/name:materialx.emoji.twemoji

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"check-for-leaks": "^1.2.1",
3535
"colors": "^1.4.0",
3636
"conventional-changelog-cli": "^2.1.1",
37+
"csvnorm": "^1.1.0",
3738
"danger-plugin-spellcheck": "^2.1.0",
3839
"deploy-to-gh-pages": "^1.3.7",
3940
"dockerfile_lint": "^0.3.4",
@@ -225,6 +226,7 @@
225226
"markdown": "markdown-link-check ./README.md ./SECURITY.md",
226227
"nodemon": "nodemon",
227228
"opencollective:install": "opencollective-postinstall || true",
229+
"optimize:svgo": "find ./docs -name '*.svg' -print0 | xargs -0 -P16 -L20 npx svgo",
228230
"package:changelog": "npm run dev --base_dir=../../ --workspace=packages/changelog --if-present",
229231
"package:contributors": "npm run dev --image_dir=../../images --workspace=packages/contributors --if-present",
230232
"package:schema": "npm run dev --source_dir1=../../docs --source_dir2=../../docs --workspace=packages/schema --if-present",
@@ -246,7 +248,7 @@
246248
"script:changelog:simple": "test -f ./scripts/git_changelog.sh && . ./scripts/git_changelog.sh || echo '✔ Git changelog script is missing'",
247249
"script:check:branch": "test -f ./scripts/git_check_branch.sh && . ./scripts/git_check_branch.sh || echo '✔ Git check branch script is missing'",
248250
"script:heap": "node -e 'console.log(`node heap limit = ${require(\"v8\").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'",
249-
"script:history": "test -f ./scripts/git_history.sh && . ./scripts/git_history.sh && cat datas.csv | chart-csv > datas.html || echo 'Git history script is missing'",
251+
"script:history": "test -f ./scripts/git_history.sh && . ./scripts/git_history.sh && csvnorm datas.csv | chart-csv > datas.html || echo 'Git history script is missing'",
250252
"script:name": "test -f ./scripts/package_app_name.js && node --experimental-modules --no-warnings --no-deprecation ./scripts/package_app_name.js || echo '✔ Node package name script is missing'",
251253
"script:notes": "test -f ./scripts/git_release_notes.sh && . ./scripts/git_release_notes.sh > NOTES.md || echo '✔ Git release notes script is missing'",
252254
"script:size": "test -f ./scripts/git_size.sh && . ./scripts/git_size.sh || echo '✔ Git size script is missing'",
@@ -264,6 +266,7 @@
264266
"test:all": "npm run test:license",
265267
"test:license": "license-checker --production --summary --unknown --onlyAllow=\"Apache-2.0;BSD;ISC;MIT;GPL-3.0;CC-BY-3.0;CC0-1.0;\"",
266268
"toc": "roadmarks",
269+
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags",
267270
"treemap": "treemap du node_modules",
268271
"unlink-local": "yalc remove --all",
269272
"update": "lernaupdate",
@@ -287,4 +290,4 @@
287290
"packages/*"
288291
]
289292
}
290-
}
293+
}

packages/changelog/jest.config.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = {
2828
testRunner: "jest-circus/runner",
2929
testPathIgnorePatterns: [
3030
"<rootDir>/src.*",
31+
"<rootDir>/dist/",
3132
"<rootDir>/node_modules.*",
3233
"<rootDir>/__fixtures__.*",
3334
"<rootDir>/spec.*",
@@ -49,7 +50,8 @@ module.exports = {
4950
{
5051
displayName: "unit",
5152
testMatch: [
52-
"**/tests/unit/**/*.[jt]s"
53+
"**/tests/unit/**/__tests__/**/*.[jt]s",
54+
"**/tests/unit/**/*.{spec,test}.[jt]s"
5355
],
5456
testPathIgnorePatterns: [
5557
"<rootDir>/tests/unit/mock*"
@@ -96,7 +98,8 @@ module.exports = {
9698
{
9799
displayName: "e2e",
98100
testMatch: [
99-
"**/tests/e2e/**/*.[jt]s"
101+
"**/tests/e2e/**/__tests__/**/*.[jt]s",
102+
"**/tests/e2e/**/*.{spec,test}.[jt]s"
100103
],
101104
testPathIgnorePatterns: [
102105
"<rootDir>/tests/e2e/mock*"

packages/changelog/lintOutput.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
{
3+
"message": "`Error` instead of `NodeApiError` or `NodeOperationError`",
4+
"lintAreas": [
5+
"miscellaneous"
6+
],
7+
"lintIssue": "wrong",
8+
"line": 100,
9+
"excerpt": "new Error('Unable to find last GitHub Release tag.')",
10+
"sourceFilePath": "src/index.ts",
11+
"logLevel": "warning",
12+
"details": "Use `NodeApiError` for unsuccessful API calls and `NodeOperationError` for functionality errors. Reference: n8n/packages/workflow/src/NodeErrors.ts"
13+
},
14+
{
15+
"message": "@ts-ignore comment detected",
16+
"lintAreas": [
17+
"miscellaneous"
18+
],
19+
"lintIssue": "wrong",
20+
"line": 38,
21+
"excerpt": "// @ts-ignore",
22+
"sourceFilePath": "src/index.ts",
23+
"logLevel": "warning",
24+
"details": "@ts-ignore comments suppress compilation errors."
25+
}
26+
]
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"target": "src/",
3+
"patterns": [
4+
".ts"
5+
],
6+
"sortMethod": "lineNumber",
7+
"lintings": {
8+
"PARAM_DESCRIPTION_MISSING_WHERE_OPTIONAL": {
9+
"enabled": false
10+
},
11+
"NAME_WITH_NO_CAMELCASE": {
12+
"enabled": false
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)