This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3327690
commit 8117ebd
Showing
1,748 changed files
with
2,544,409 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
* | ||
|
||
!docker | ||
|
||
!manifest.webmanifest | ||
!sw.js | ||
!sw-injector.js | ||
|
||
!*.html | ||
!*.png | ||
!*.svg | ||
!*.xml | ||
|
||
!audio | ||
!css | ||
!data | ||
!fonts | ||
!homebrew | ||
!icon | ||
!image | ||
!img | ||
!js | ||
!lib | ||
!prerelease | ||
!search |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[*] | ||
charset=utf-8 | ||
end_of_line=lf | ||
trim_trailing_whitespace=true | ||
insert_final_newline=true | ||
indent_style=tab | ||
indent_size=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated | ||
sw.js | ||
sw-injector.js | ||
|
||
# Libraries | ||
lib | ||
node_modules | ||
|
||
# Scratches | ||
scratch | ||
trash | ||
trash_in | ||
|
||
# Homebrew/prerelease | ||
homebrew | ||
prerelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
module.exports = { | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jquery": true, | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
}, | ||
"rules": { | ||
"accessor-pairs": "off", | ||
"arrow-spacing": ["error", {"before": true, "after": true}], | ||
"block-spacing": ["error", "always"], | ||
"brace-style": ["error", "1tbs", {"allowSingleLine": true}], | ||
"comma-dangle": ["error", { | ||
"arrays": "always-multiline", | ||
"objects": "always-multiline", | ||
"imports": "always-multiline", | ||
"exports": "always-multiline", | ||
"functions": "always-multiline", | ||
}], | ||
"comma-spacing": ["error", {"before": false, "after": true}], | ||
"comma-style": ["error", "last"], | ||
"constructor-super": "error", | ||
"curly": ["error", "multi-line"], | ||
"dot-location": ["error", "property"], | ||
"eqeqeq": ["error", "always", {"null": "ignore"}], | ||
"func-call-spacing": ["error", "never"], | ||
"generator-star-spacing": ["error", {"before": false, "after": true}], | ||
"handle-callback-err": ["error", "^(err|error)$"], | ||
"indent": [ | ||
"error", | ||
"tab", | ||
{ | ||
"SwitchCase": 1, | ||
}, | ||
], | ||
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}], | ||
"keyword-spacing": ["error", {"before": true, "after": true}], | ||
"new-cap": ["error", {"newIsCap": true, "capIsNew": false}], | ||
"new-parens": "error", | ||
"no-array-constructor": "error", | ||
"no-caller": "error", | ||
"no-class-assign": "error", | ||
"no-compare-neg-zero": "error", | ||
"no-cond-assign": "error", | ||
"no-const-assign": "error", | ||
"no-constant-condition": ["error", {"checkLoops": false}], | ||
"no-control-regex": "error", | ||
"no-debugger": "error", | ||
"no-delete-var": "error", | ||
"no-dupe-args": "error", | ||
"no-dupe-class-members": "error", | ||
"no-dupe-keys": "error", | ||
"no-duplicate-case": "error", | ||
"no-empty-character-class": "error", | ||
"no-empty-pattern": "error", | ||
"no-eval": "error", | ||
"no-ex-assign": "error", | ||
"no-extra-bind": "error", | ||
"no-extra-boolean-cast": "error", | ||
"no-extra-parens": ["error", "functions"], | ||
"no-fallthrough": "error", | ||
"no-floating-decimal": "error", | ||
"no-func-assign": "error", | ||
"no-global-assign": "error", | ||
"no-implied-eval": "error", | ||
"no-inner-declarations": ["error", "functions"], | ||
"no-invalid-regexp": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-labels": ["error", {"allowLoop": true, "allowSwitch": false}], | ||
"no-lone-blocks": "error", | ||
"no-mixed-operators": ["error", { | ||
"groups": [ | ||
["==", "!=", "===", "!==", ">", ">=", "<", "<="], | ||
["&&", "||"], | ||
["in", "instanceof"], | ||
], | ||
"allowSamePrecedence": true, | ||
}], | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-spaces": "error", | ||
"no-multi-str": "error", | ||
"no-multiple-empty-lines": ["error", {"max": 1, "maxEOF": 0}], | ||
"no-negated-in-lhs": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-object": "error", | ||
"no-new-require": "error", | ||
"no-new-symbol": "error", | ||
"no-new-wrappers": "error", | ||
"no-obj-calls": "error", | ||
"no-octal": "error", | ||
"no-octal-escape": "error", | ||
"no-path-concat": "error", | ||
"no-proto": "error", | ||
"no-redeclare": "error", | ||
"no-regex-spaces": "error", | ||
"no-return-await": "error", | ||
"no-self-assign": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-shadow-restricted-names": "error", | ||
"no-sparse-arrays": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-this-before-super": "error", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef": "off", | ||
"no-undef-init": "error", | ||
"no-unexpected-multiline": "error", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unneeded-ternary": ["error", {"defaultAssignment": false}], | ||
"no-unreachable": "error", | ||
"no-unsafe-finally": "error", | ||
"no-unsafe-negation": "error", | ||
"no-unused-expressions": ["error", { | ||
"allowShortCircuit": true, | ||
"allowTernary": true, | ||
"allowTaggedTemplates": true, | ||
}], | ||
"no-unused-vars": "off", | ||
"no-use-before-define": ["error", {"functions": false, "classes": false, "variables": false}], | ||
"no-useless-call": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-constructor": "error", | ||
"no-useless-escape": "error", | ||
"no-useless-rename": "error", | ||
"no-useless-return": "error", | ||
"no-whitespace-before-property": "error", | ||
"no-with": "error", | ||
"object-property-newline": ["error", {"allowMultiplePropertiesPerLine": true}], | ||
"one-var": ["error", {"initialized": "never"}], | ||
"operator-linebreak": ["error", "after", { | ||
"overrides": { | ||
"?": "before", | ||
":": "before", | ||
"+": "before", | ||
"-": "before", | ||
"*": "before", | ||
"/": "before", | ||
"||": "before", | ||
"&&": "before", | ||
}, | ||
}], | ||
"padded-blocks": ["error", {"blocks": "never", "switches": "never", "classes": "never"}], | ||
"prefer-promise-reject-errors": "error", | ||
"rest-spread-spacing": ["error", "never"], | ||
"semi": ["warn", "always"], | ||
"semi-spacing": ["error", {"before": false, "after": true}], | ||
"space-before-blocks": ["error", "always"], | ||
"space-before-function-paren": ["error", "always"], | ||
"space-in-parens": ["error", "never"], | ||
"space-infix-ops": "error", | ||
"space-unary-ops": ["error", {"words": true, "nonwords": false}], | ||
"spaced-comment": ["error", "always", { | ||
"line": {"markers": ["*package", "!", "/", ",", "="]}, | ||
"block": { | ||
"balanced": true, | ||
"markers": ["*package", "!", ",", ":", "::", "flow-include"], | ||
"exceptions": ["*"], | ||
}, | ||
}], | ||
"symbol-description": "error", | ||
"template-curly-spacing": ["error", "never"], | ||
"template-tag-spacing": ["error", "never"], | ||
"unicode-bom": ["error", "never"], | ||
"use-isnan": "error", | ||
"valid-typeof": ["error", {"requireStringLiterals": true}], | ||
"wrap-iife": ["error", "any", {"functionPrototypeMethods": true}], | ||
"yield-star-spacing": ["error", "both"], | ||
"yoda": ["error", "never"], | ||
"no-prototype-builtins": "off", | ||
"require-atomic-updates": "off", | ||
"no-console": "error", | ||
"prefer-template": "error", | ||
"quotes": ["error", "double", {"allowTemplateLiterals": true}], | ||
"no-var": "error", | ||
"no-constant-binary-expression": "error", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
*.js text eol=lf | ||
*.cjs text eol=lf | ||
*.mjs text eol=lf | ||
*.json text eol=lf | ||
*.html text eol=lf | ||
*.scss text eol=lf | ||
*.md text eol=lf | ||
*.yml text eol=lf | ||
*.sh text eol=lf | ||
*.css text eol=lf | ||
*.xml text eol=lf | ||
*.svg text eol=lf | ||
*.hbs text eol=lf | ||
*.txt text eol=lf | ||
|
||
.dockerignore text eol=lf | ||
.editorconfig text eol=lf | ||
.gitattributes text eol=lf | ||
.gitignore text eol=lf | ||
.eslintignore text eol=lf | ||
.eslintrc.cjs text eol=lf | ||
.gitmodules text eol=lf | ||
.node-version text eol=lf | ||
manifest.webmanifest text eol=lf | ||
docker/*.conf text eol=lf | ||
Dockerfile text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
sed -e '/^\*/d' -e 's/^!/+ /' .dockerignore > .rsync-filter | ||
echo -e "\n- /*" >> .rsync-filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ $# -eq 0 ]]; then | ||
echo "No arguments provided. Usage: generate-release-notes.sh <version>" | ||
exit 1 | ||
fi | ||
|
||
version=$1 | ||
|
||
# Release version number without "v" prefix to match the format of changelog.json. | ||
version_number="${version#v}" | ||
|
||
# This parses the JSON blob for this specific version from changelog.json. | ||
changelog="$( | ||
jq --arg version "$version_number" --compact-output \ | ||
'.[] | select(.ver == $version)' \ | ||
data/changelog.json | ||
)" | ||
|
||
if [[ -z "$changelog" ]]; then | ||
echo "_No changelogs are available for $version._" | ||
exit 1 | ||
fi | ||
|
||
{ | ||
# The "gh" tool reads all text up to the first empty line as the release | ||
# title. | ||
# * For changelog entries with a title, this is formatted as | ||
# '<version>, "<title>" Edition' to match the format of the site's | ||
# changelog page. | ||
# | ||
# * For changelog entries without a title, this is formatted as simply | ||
# '<version>'. | ||
echo -n "$version" | ||
jq -r 'if has("title") then ", \(.title | tojson) Edition\n" else "\n" end' <<< "$changelog" | ||
|
||
# Some changelogs include an alternate title. This is included in the body | ||
# of the release notes and formatted as 'AKA "<altTitle>" Edition' to match | ||
# the site's changelog page. | ||
jq -j 'if has("titleAlt") then "AKA \(.titleAlt | tojson) Edition\n" else "" end' <<< "$changelog" | ||
|
||
# Changelog text is already markdown-formatted, so no additional formatting | ||
# needs to be done here. | ||
jq -r '.txt' <<< "$changelog" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ $# -eq 0 ]]; then | ||
echo "No arguments provided. Usage: set-deployed-flag.sh <version>" | ||
exit 1 | ||
fi | ||
|
||
version=$1 | ||
|
||
# Set the IS_DEPLOYED variable for production. | ||
sed -i 's/IS_DEPLOYED\s*=\s*undefined/IS_DEPLOYED='"\"${version}\""'/g' js/utils.js | ||
|
||
sed -i 's#DEPLOYED_IMG_ROOT\s*=\s*undefined#DEPLOYED_IMG_ROOT='"\"https://raw.githubusercontent.com/5etools-mirror-2/5etools-img/main/\""'#g' js/utils.js |
Oops, something went wrong.