renamed list.json files to _list.json so they appear at the top

This commit is contained in:
Miodec 2021-01-13 03:32:38 +00:00
parent 8fcf467f7b
commit 4645def6e3
7 changed files with 6 additions and 6 deletions

View file

@ -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.

View file

@ -7,4 +7,4 @@ node_modules
css/balloon.css
css/fa.css
css/style.min.css
list.json
_list.json

View file

@ -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;
});