Skip to content

Commit ef90ed0

Browse files
authored
Merge v2.3.2 into master
2 parents 7d0a549 + b848784 commit ef90ed0

File tree

229 files changed

+2587
-3194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+2587
-3194
lines changed

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
RESTART_TOKEN=123456789 # A POST request to "[JokeAPI_URL]/restart" with this token as a "text/plain" payload will restart JokeAPI - alternatively, open the JavaScript console on the documentation page and enter "restart()"
22
DB_USERNAME=User123 # A user with access to the analytics database
33
DB_PASSWORD=password123 # The password of the above user
4+
NODE_ENV=stage # The deployment environment of JokeAPI (accepts "prod" / "production" or "stage" - case insensitive, defaults to "stage")

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"ecmaVersion": 2018
1515
},
1616
"rules": {
17-
"no-console": "off"
17+
"no-console": "off",
18+
"no-async-promise-executor": "off"
1819
}
1920
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ data/submissions/*/*.json
3030

3131
# Auth Tokens:
3232
data/tokens.json
33+
data/auth/tokens.json
3334

3435
# Other potentially sensitive information:
3536
data/lists/*.json

.vscode/launch.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "Debug JokeAPI",
10+
"name": "JokeAPI",
1111
"skipFiles": [
1212
"<node_internals>/**"
1313
],
@@ -30,7 +30,7 @@
3030
"console": "integratedTerminal"
3131
},
3232
{
33-
"program": "${workspaceFolder}/tools/submissions.js",
33+
"program": "${workspaceFolder}/tools/info.js",
3434
"name": "Tools/xy",
3535
"request": "launch",
3636
"type": "node",
@@ -40,7 +40,20 @@
4040
"args": [
4141
"--trace-deprecation"
4242
],
43-
"console": "externalTerminal"
43+
"console": "integratedTerminal"
44+
},
45+
{
46+
"program": "${workspaceFolder}/tools/cli.js",
47+
"name": "CLI",
48+
"request": "launch",
49+
"type": "node",
50+
"skipFiles": [
51+
"<node_internals>/**"
52+
],
53+
"args": [
54+
"--trace-deprecation"
55+
],
56+
"console": "integratedTerminal"
4457
}
4558
],
4659
"debug.javascript.usePreview": true

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@
5050
"files.exclude": { // hide files so they can't be opened in the IDE
5151
"docs/compiled": true, // to prevent accidentally changing the compiled documentation to only have it be overridden after the next compile
5252
"dev/madge": true, // the files don't need to be modified, they only serve as a distraction
53-
}
53+
},
54+
55+
"deno.enable": false
5456
}

changelog.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JokeAPI Changelog (Version 2.3.1)
1+
# JokeAPI Changelog (Version 2.3.2)
22

33
<br><br><br>
44

@@ -11,7 +11,18 @@
1111

1212
<br><br><br>
1313

14-
## [CURRENT: 2.3.1] - The Safe Mode Hotfix, because bugs exist for some reason ([pull request #214](https://github.com/Sv443/JokeAPI/pull/214))
14+
## [CURRENT: 2.3.2] - Joke update
15+
- Added new jokes
16+
- Rewrote the submission script to make it much more streamlined ([issue #340](https://github.com/Sv443/JokeAPI/issues/340))
17+
- Rewrote the add-joke script so it's easier for me to use
18+
- Added a new info script to make working with JokeAPI easier for me
19+
- Added a global CLI interface ([issue #344](https://github.com/Sv443/JokeAPI/issues/344))
20+
- API now adjusts environment-dependent settings automatically ([issue #343](https://github.com/Sv443/JokeAPI/issues/343))
21+
22+
23+
<br><br><br>
24+
25+
## [2.3.1] - The Safe Mode Hotfix, because bugs exist for some reason ([pull request #214](https://github.com/Sv443/JokeAPI/pull/214))
1526
- Fixed bug "API Error 500 - Cannot read property 'msBeforeNext' of null" ([issue #212](https://github.com/Sv443/JokeAPI/issues/212))
1627
- Fixed bug where API responded with Error 106 when using format=txt on endpoint /joke ([issue #218](https://github.com/Sv443/JokeAPI/issues/218))
1728
- Re-flagged joke 79 ([issue #220](https://github.com/Sv443/JokeAPI/issues/220))

changelog.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=====================
22
JokeAPI Changelog
3-
- Version 2.3.1 -
3+
- Version 2.3.2 -
44
=====================
55

66

@@ -11,7 +11,16 @@
1111
- Serve docs with nginx to speed up page load times (issue #118)
1212

1313

14-
[CURRENT: 2.3.1] - The Safe Mode Hotfix, because bugs exist for some reason (PR #214)
14+
[CURRENT: 2.3.2] - Joke update
15+
- Added new jokes
16+
- Rewrote the submission script to make it much more streamlined (issue #340)
17+
- Rewrote the add-joke script so it's easier for me to use
18+
- Added a new info script to make working with JokeAPI easier for me
19+
- Added a global CLI interface (issue #344)
20+
- API now adjusts environment-dependent settings automatically (issue #343)
21+
22+
23+
[2.3.1] - The Safe Mode Hotfix, because bugs exist for some reason (PR #214)
1524
- Fixed bug "API Error 500 - Cannot read property 'msBeforeNext' of null" (issue #212)
1625
- Fixed bug where API responded with Error 106 when using format=txt on endpoint /joke (issue #218)
1726
- Re-flagged joke 79 (issue #220)

data/jokes/jokes-cs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"info": {
3+
"disclaimer": "Mnohé z níže uvedených vtipů jsou rasistické, sexistické nebo jinak explicitní. Vstup na vlastní nebezpečí!",
34
"formatVersion": 3
45
},
56
"jokes": [

data/jokes/jokes-de.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"info": {
3+
"disclaimer": "Viele der folgenden Witze sind rassistisch, sexistisch oder in anderer Weise explizit. Betreten auf eigene Gefahr!",
34
"formatVersion": 3
45
},
56
"jokes": [
@@ -503,6 +504,69 @@
503504
},
504505
"id": 31,
505506
"safe": true
507+
},
508+
{
509+
"category": "Pun",
510+
"type": "twopart",
511+
"setup": "Mir ist heute Morgen ein Joghurtbecher aus der Hand gefallen.",
512+
"delivery": "Er war nicht mehr haltbar.",
513+
"flags": {
514+
"nsfw": false,
515+
"religious": false,
516+
"political": false,
517+
"racist": false,
518+
"sexist": false,
519+
"explicit": false
520+
},
521+
"id": 32,
522+
"safe": true
523+
},
524+
{
525+
"category": "Pun",
526+
"type": "twopart",
527+
"setup": "Im EDEKA ist gestern das Obstregal umgefallen.",
528+
"delivery": "Es entstand ein Schaden in Melonenhöhe.",
529+
"flags": {
530+
"nsfw": false,
531+
"religious": false,
532+
"political": false,
533+
"racist": false,
534+
"sexist": false,
535+
"explicit": false
536+
},
537+
"id": 33,
538+
"safe": true
539+
},
540+
{
541+
"category": "Pun",
542+
"type": "twopart",
543+
"setup": "Gab es in Ihrer Familie jemals Fälle von Inzest?",
544+
"delivery": "Mitnichten!",
545+
"flags": {
546+
"nsfw": true,
547+
"religious": false,
548+
"political": false,
549+
"racist": false,
550+
"sexist": false,
551+
"explicit": false
552+
},
553+
"id": 34,
554+
"safe": false
555+
},
556+
{
557+
"category": "Pun",
558+
"type": "single",
559+
"joke": "Stauseen sind auch nur verdammte Flüsse.",
560+
"flags": {
561+
"nsfw": false,
562+
"religious": false,
563+
"political": false,
564+
"racist": false,
565+
"sexist": false,
566+
"explicit": false
567+
},
568+
"id": 35,
569+
"safe": true
506570
}
507571
]
508572
}

0 commit comments

Comments
 (0)