Update
This commit is contained in:
parent
819c6c80bb
commit
8d3797c150
|
@ -0,0 +1,9 @@
|
||||||
|
*out
|
||||||
|
*logs
|
||||||
|
*actions
|
||||||
|
*notifications
|
||||||
|
*tools
|
||||||
|
plugins
|
||||||
|
user_trunk.yaml
|
||||||
|
user.yaml
|
||||||
|
tmp
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Prettier friendly markdownlint config (all formatting rules disabled)
|
||||||
|
extends: markdownlint/style/prettier
|
|
@ -0,0 +1,7 @@
|
||||||
|
enable=all
|
||||||
|
source-path=SCRIPTDIR
|
||||||
|
disable=SC2154
|
||||||
|
|
||||||
|
# If you're having issues with shellcheck following source, disable the errors via:
|
||||||
|
# disable=SC1090
|
||||||
|
# disable=SC1091
|
|
@ -0,0 +1,7 @@
|
||||||
|
rules:
|
||||||
|
quoted-strings:
|
||||||
|
required: only-when-needed
|
||||||
|
extra-allowed: ["{|}"]
|
||||||
|
key-duplicates: {}
|
||||||
|
octal-values:
|
||||||
|
forbid-implicit-octal: true
|
|
@ -0,0 +1,14 @@
|
||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
{
|
||||||
|
name: "preset-default",
|
||||||
|
params: {
|
||||||
|
overrides: {
|
||||||
|
removeViewBox: false, // https://github.com/svg/svgo/issues/1128
|
||||||
|
sortAttrs: true,
|
||||||
|
removeOffCanvasPaths: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
|
@ -0,0 +1,38 @@
|
||||||
|
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
|
||||||
|
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
|
||||||
|
version: 0.1
|
||||||
|
cli:
|
||||||
|
version: 1.22.6
|
||||||
|
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
|
||||||
|
plugins:
|
||||||
|
sources:
|
||||||
|
- id: trunk
|
||||||
|
ref: v1.6.4
|
||||||
|
uri: https://github.com/trunk-io/plugins
|
||||||
|
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
|
||||||
|
runtimes:
|
||||||
|
enabled:
|
||||||
|
- go@1.21.0
|
||||||
|
- node@18.12.1
|
||||||
|
- python@3.10.8
|
||||||
|
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
|
||||||
|
lint:
|
||||||
|
enabled:
|
||||||
|
- checkov@3.2.269
|
||||||
|
- git-diff-check
|
||||||
|
- markdownlint@0.42.0
|
||||||
|
- osv-scanner@1.9.0
|
||||||
|
- oxipng@9.1.2
|
||||||
|
- prettier@3.3.3
|
||||||
|
- shellcheck@0.10.0
|
||||||
|
- shfmt@3.6.0
|
||||||
|
- svgo@3.3.2
|
||||||
|
- trufflehog@3.82.12
|
||||||
|
- yamllint@1.35.1
|
||||||
|
actions:
|
||||||
|
disabled:
|
||||||
|
- trunk-announce
|
||||||
|
- trunk-check-pre-push
|
||||||
|
- trunk-fmt-pre-commit
|
||||||
|
enabled:
|
||||||
|
- trunk-upgrade-available
|
|
@ -71,6 +71,15 @@ async function fetchData(log, tpl) {
|
||||||
post_tpl = post_tpl.replace(/{created_at}/g, `${value}`);
|
post_tpl = post_tpl.replace(/{created_at}/g, `${value}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(key == "created_at") {
|
||||||
|
var isoDate = `${value}`;
|
||||||
|
var d = new Date(isoDate);
|
||||||
|
var datetime_ = d.toLocaleString('en-GB', { hour12: false, timeZone: "Asia/Yekaterinburg" });
|
||||||
|
//var datetime_ = d.toLocaleString('ru-RU', { hour12: false, timeZone: "Asia/Yekaterinburg" });
|
||||||
|
|
||||||
|
post_tpl = post_tpl.replace(/{created_at_show}/g, `${datetime_}`);
|
||||||
|
}
|
||||||
|
|
||||||
if(key == "edited_at") {
|
if(key == "edited_at") {
|
||||||
post_tpl = post_tpl.replace(/{edited_at}/g, `${value}`);
|
post_tpl = post_tpl.replace(/{edited_at}/g, `${value}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue