From 4645def6e329b807b66d68df9f626c21b923d8e3 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 13 Jan 2021 03:32:38 +0000 Subject: [PATCH] renamed list.json files to _list.json so they appear at the top --- .github/pull_request_template.md | 2 +- .prettierignore | 2 +- src/js/misc.js | 8 ++++---- static/challenges/{list.json => _list.json} | 0 static/funbox/{list.json => _list.json} | 0 static/languages/{list.json => _list.json} | 0 static/themes/{list.json => _list.json} | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename static/challenges/{list.json => _list.json} (100%) rename static/funbox/{list.json => _list.json} (100%) rename static/languages/{list.json => _list.json} (100%) rename static/themes/{list.json => _list.json} (100%) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 94a467522..1fe9cd7b1 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,4 @@ -Adding a language or a theme? Make sure to edit the `list.json` file as well, otherwise, it will not work! +Adding a language or a theme? Make sure to edit the `_list.json` file as well, otherwise, it will not work! Please reference any issues related to your pull request. diff --git a/.prettierignore b/.prettierignore index f568baa07..ff265a8f5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -7,4 +7,4 @@ node_modules css/balloon.css css/fa.css css/style.min.css -list.json \ No newline at end of file +_list.json \ No newline at end of file diff --git a/src/js/misc.js b/src/js/misc.js index 2e8d4c240..b3ab54527 100644 --- a/src/js/misc.js +++ b/src/js/misc.js @@ -50,7 +50,7 @@ function hexToHSL(H) { let themesList = null; export async function getThemesList() { if (themesList == null) { - return $.getJSON("themes/list.json", function (data) { + return $.getJSON("themes/_list.json", function (data) { const list = data.sort(function (a, b) { const nameA = a.name.toLowerCase(); const nameB = b.name.toLowerCase(); @@ -87,7 +87,7 @@ export async function getSortedThemesList() { let funboxList = null; export async function getFunboxList() { if (funboxList == null) { - return $.getJSON("funbox/list.json", function (data) { + return $.getJSON("funbox/_list.json", function (data) { funboxList = data.sort(function (a, b) { const nameA = a.name.toLowerCase(); const nameB = b.name.toLowerCase(); @@ -123,7 +123,7 @@ export async function getFontsList() { let languageList = null; export async function getLanguageList() { if (languageList == null) { - return $.getJSON("languages/list.json", function (data) { + return $.getJSON("languages/_list.json", function (data) { languageList = data; return languageList; }); @@ -135,7 +135,7 @@ export async function getLanguageList() { let challengeList = null; export async function getChallengeList() { if (challengeList == null) { - return $.getJSON("challenges/list.json", function (data) { + return $.getJSON("challenges/_list.json", function (data) { challengeList = data; return challengeList; }); diff --git a/static/challenges/list.json b/static/challenges/_list.json similarity index 100% rename from static/challenges/list.json rename to static/challenges/_list.json diff --git a/static/funbox/list.json b/static/funbox/_list.json similarity index 100% rename from static/funbox/list.json rename to static/funbox/_list.json diff --git a/static/languages/list.json b/static/languages/_list.json similarity index 100% rename from static/languages/list.json rename to static/languages/_list.json diff --git a/static/themes/list.json b/static/themes/_list.json similarity index 100% rename from static/themes/list.json rename to static/themes/_list.json