-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
51 changed files
with
8,387 additions
and
3,343 deletions.
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
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
.idea | ||
test | ||
config.yml | ||
node_modules | ||
npm-debug.log | ||
data | ||
.DS_Store | ||
node_modules | ||
dist | ||
test | ||
/config.yml | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
__mock__ | ||
__*__ |
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 @@ | ||
module.exports = { | ||
presets: [ | ||
['@babel/preset-env', {targets: {node: 'current'}}], | ||
'@babel/preset-typescript', | ||
], | ||
} |
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 |
---|---|---|
@@ -1,41 +1,56 @@ | ||
# NyaaStats configuration | ||
web: | ||
title: Nyaa Stats # website title | ||
servername: Minecraft Server # Server Name | ||
homepage: https://minecraft.example.com # Your homepage | ||
# NYAA-STATS CONFIGURATION FILE | ||
|
||
# Grabber (main program) configuration | ||
render: | ||
crafatar: https://crafatar.com # crafatar service host, required | ||
level: data/level.dat # file path here, required | ||
playerdata: data/playerdata # directory path here, required | ||
stats: data/stats # directory path here, required | ||
advancements: data/advancements # advancements path here, required | ||
whitelist: whitelist.json # file path here, leave blank to disable | ||
banned-players: banned-players.json # file path here, leave blank to disable | ||
render-banned: false # do not render banned players | ||
output: web/public/data # directory path here, required | ||
# Data sources | ||
|
||
# [Required] `level.dat` file path. Example: "/opt/minecraft/world/level.dat" | ||
level: data/level.dat | ||
# [Required] `playerdata` directory path. Example: "/opt/minecraft/world/playerdata" | ||
playerdata: data/playerdata | ||
# [Required] `stats` directory path. Example: "/opt/minecraft/world/stats" | ||
stats: data/stats | ||
# [Required] `advancements` directory path. Example: "/opt/minecraft/world/advancements" | ||
advancements: data/advancements | ||
# Whether to only process whitelisted players. Possible values: | ||
# {string} - `whitelist.json` file path. Example: "/opt/minecraft/whitelist.json" | ||
# (unset) - Disable this feature (to process all reachable players) | ||
whitelist: whitelist.json | ||
# Banned UUID list. Possible values: | ||
# {string} - `banned-players.json` file path. Example: "/opt/minecraft/banned-players.json" | ||
# (unset) - Disable this feature (to assume no bans) | ||
banned-players: banned-players.json | ||
# Whether to render banned players. Default value: `false` | ||
render-banned: false | ||
# [Required] Crafatar service URL, used for player avatar/skin model generating | ||
crafatar: https://crafatar.com | ||
|
||
# Output | ||
|
||
# [Required] Output data directory path (absolute or relative to runtime `config.yml`) | ||
# Example: "webroot/data" | ||
output: web/public/data | ||
# Whether to prompt confirmation to clear output directory. You may want to set `false` if you're | ||
# using cronjob. Possible values: | ||
# `true` | (unset) - Prompt confirmation. You can choose yes or no to output directory clearing | ||
# `false` - Disable this feature (will not clear output directory) | ||
confirm-clear-data: true | ||
# [Deprecated] | ||
time-format: # time format on display, details http://momentjs.com/docs/#/displaying/format/ | ||
full: dddd, MMMM Do, YYYY HH:mm:ss ZZ | ||
short: MMMM Do, YYYY | ||
compact: YYYY-M-D HH:mm:ss | ||
# prompt confirmation to remove old data. | ||
# Set to false if you are using cronjob, | ||
# true when you run it manually. | ||
# data directory will be cleared when manipulating new data. | ||
confirm-clear-data: true | ||
|
||
# API usage configuration | ||
api: | ||
ratelimit: 2 # set to 1 request per sec as per mojang api rate limit | ||
# [Required] Mojang API request rate limit (N req per second) | ||
ratelimit: 2 | ||
|
||
# Set advancements progresses | ||
# Details: http://minecraft.gamepedia.com/Advancements | ||
advancements-progress: | ||
nether: | ||
all_potions: 11 | ||
all_effects: 20 | ||
adventure: | ||
kill_all_mobs: 22 | ||
adventuring_time: 36 | ||
husbandry: | ||
bred_all_animals: 10 | ||
balanced_diet: 35 | ||
# Web app configuration | ||
web: | ||
# [Required] Web app title, will be displayed at page header and as window title | ||
title: Nyaa Stats | ||
# [Required] Server name, will be displayed at welcome section and page footer | ||
servername: Minecraft Server | ||
# [Required] Server homepage URL, will be displayed at welcome section | ||
homepage: https://minecraft.example.com |
Oops, something went wrong.