2020-02-07 10:07:09 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Player Analytics (Plan).
|
|
|
|
*
|
|
|
|
* Plan is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License v3 as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Plan is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
package com.djrapitops.plan.delivery.rendering.html;
|
|
|
|
|
2020-11-05 22:16:01 +01:00
|
|
|
import java.util.Arrays;
|
2022-04-06 16:37:23 +02:00
|
|
|
import java.util.List;
|
2020-11-05 22:16:01 +01:00
|
|
|
import java.util.Objects;
|
2022-04-06 16:37:23 +02:00
|
|
|
import java.util.stream.Collectors;
|
2020-11-05 22:16:01 +01:00
|
|
|
|
2020-02-07 10:07:09 +01:00
|
|
|
import static com.djrapitops.plan.delivery.rendering.html.Contributors.For.CODE;
|
|
|
|
import static com.djrapitops.plan.delivery.rendering.html.Contributors.For.LANG;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Contains list of contributors to add to the about modal.
|
|
|
|
*
|
2021-02-13 14:16:03 +01:00
|
|
|
* @author AuroraLS3
|
2020-02-07 10:07:09 +01:00
|
|
|
*/
|
|
|
|
public class Contributors {
|
|
|
|
|
2022-04-06 16:37:23 +02:00
|
|
|
private static final Contributor[] CONTRIBUTOR_ARRAY = new Contributor[]{
|
2021-01-29 08:50:07 +01:00
|
|
|
new Contributor("aidn5", CODE),
|
|
|
|
new Contributor("Antonok", CODE),
|
|
|
|
new Contributor("Argetan", CODE),
|
|
|
|
new Contributor("Aurelien", CODE, LANG),
|
2024-01-07 10:39:06 +01:00
|
|
|
new Contributor("Binero", CODE),
|
2021-01-29 08:50:07 +01:00
|
|
|
new Contributor("BrainStone", CODE),
|
|
|
|
new Contributor("Catalina", LANG),
|
|
|
|
new Contributor("Elguerrero", LANG),
|
|
|
|
new Contributor("Combustible", CODE),
|
|
|
|
new Contributor("Creeperface01", CODE),
|
|
|
|
new Contributor("CyanTech", LANG),
|
|
|
|
new Contributor("DarkPyves", CODE),
|
|
|
|
new Contributor("DaveDevil", LANG),
|
|
|
|
new Contributor("developStorm", CODE),
|
|
|
|
new Contributor("enterih", LANG),
|
|
|
|
new Contributor("Eyremba", LANG),
|
|
|
|
new Contributor("f0rb1d (\u4f5b\u58c1\u706f)", LANG),
|
|
|
|
new Contributor("Fur_xia", LANG),
|
|
|
|
new Contributor("fuzzlemann", CODE, LANG),
|
|
|
|
new Contributor("Guinness_Akihiko", LANG),
|
|
|
|
new Contributor("hallo1142", LANG),
|
|
|
|
new Contributor("itaquito", LANG),
|
|
|
|
new Contributor("jyhsu2000", CODE),
|
|
|
|
new Contributor("jvmuller", LANG),
|
|
|
|
new Contributor("Malachiel", LANG),
|
|
|
|
new Contributor("Miclebrick", CODE),
|
|
|
|
new Contributor("Morsmorse", LANG),
|
2021-07-31 18:40:05 +02:00
|
|
|
new Contributor("MAXOUXAX", CODE),
|
2021-01-29 08:50:07 +01:00
|
|
|
new Contributor("Nogapra", LANG),
|
2021-06-13 08:01:44 +02:00
|
|
|
new Contributor("Sander0542", LANG),
|
2021-01-29 08:50:07 +01:00
|
|
|
new Contributor("Saph1s", LANG),
|
|
|
|
new Contributor("Shadowhackercz", LANG),
|
|
|
|
new Contributor("shaokeyibb", LANG),
|
|
|
|
new Contributor("skmedix", CODE),
|
|
|
|
new Contributor("TDJisvan", LANG),
|
|
|
|
new Contributor("Vankka", CODE),
|
|
|
|
new Contributor("yukieji", LANG),
|
|
|
|
new Contributor("qsefthuopq", LANG),
|
|
|
|
new Contributor("Karlatemp", CODE, LANG),
|
2022-04-11 19:06:09 +02:00
|
|
|
new Contributor("KasperiP", LANG),
|
2021-01-29 08:50:07 +01:00
|
|
|
new Contributor("Mastory_Md5", LANG),
|
|
|
|
new Contributor("FluxCapacitor2", CODE),
|
|
|
|
new Contributor("galexrt", LANG),
|
2021-02-02 21:11:49 +01:00
|
|
|
new Contributor("QuakyCZ", LANG),
|
|
|
|
new Contributor("MrFriggo", LANG),
|
2021-03-09 09:01:09 +01:00
|
|
|
new Contributor("vacoup", CODE),
|
2021-03-18 08:25:50 +01:00
|
|
|
new Contributor("Kopo942", CODE),
|
2021-03-26 07:53:46 +01:00
|
|
|
new Contributor("WolverStones", LANG),
|
2021-03-28 22:48:52 +02:00
|
|
|
new Contributor("BruilsiozPro", LANG),
|
2021-04-25 17:45:34 +02:00
|
|
|
new Contributor("AppleMacOS", CODE),
|
2021-05-13 17:49:51 +02:00
|
|
|
new Contributor("10935336", LANG),
|
2021-05-16 20:46:39 +02:00
|
|
|
new Contributor("EyuphanMandiraci", LANG),
|
2021-05-21 06:57:32 +02:00
|
|
|
new Contributor("4drian3d", LANG),
|
2021-06-14 07:42:10 +02:00
|
|
|
new Contributor("\u6d1b\u4f0a", LANG),
|
2021-07-03 21:47:30 +02:00
|
|
|
new Contributor("portlek", CODE),
|
2021-07-06 19:08:21 +02:00
|
|
|
new Contributor("mbax", CODE),
|
2021-11-10 19:57:33 +01:00
|
|
|
new Contributor("KairuByte", CODE),
|
2021-07-15 14:19:07 +02:00
|
|
|
new Contributor("rymiel", CODE),
|
2021-07-17 21:06:38 +02:00
|
|
|
new Contributor("Perchun_Pak", LANG),
|
2021-07-24 13:10:48 +02:00
|
|
|
new Contributor("HexedHero", CODE),
|
2021-07-29 17:01:11 +02:00
|
|
|
new Contributor("DrexHD", CODE),
|
2021-07-30 14:18:52 +02:00
|
|
|
new Contributor("zisunny104", LANG),
|
2021-09-10 17:18:35 +02:00
|
|
|
new Contributor("SkipM4", LANG),
|
2021-10-09 16:15:47 +02:00
|
|
|
new Contributor("ahdg6", CODE),
|
2022-04-10 07:44:09 +02:00
|
|
|
new Contributor("BratishkaErik", LANG),
|
2022-09-04 10:23:05 +02:00
|
|
|
new Contributor("Pingger", CODE),
|
|
|
|
new Contributor("stashenko", LANG),
|
2022-09-15 16:37:44 +02:00
|
|
|
new Contributor("PikaMug", CODE),
|
2022-09-30 16:27:41 +02:00
|
|
|
new Contributor("DubHacker", LANG),
|
2023-03-09 15:56:43 +01:00
|
|
|
new Contributor("TheLittle_Yang", LANG),
|
2023-05-13 13:08:32 +02:00
|
|
|
new Contributor("inductor", LANG),
|
2023-07-01 16:29:12 +02:00
|
|
|
new Contributor("ringoXD", LANG),
|
2023-07-24 18:42:43 +02:00
|
|
|
new Contributor("yu_solt", LANG),
|
2023-07-30 08:28:46 +02:00
|
|
|
new Contributor("lis2a", LANG),
|
2023-09-10 08:11:05 +02:00
|
|
|
new Contributor("ToxiWoxi", CODE),
|
2023-09-27 13:14:21 +02:00
|
|
|
new Contributor("xlanyleeet", LANG),
|
2023-10-03 20:02:30 +02:00
|
|
|
new Contributor("Jumala9163", LANG),
|
2023-10-06 13:28:25 +02:00
|
|
|
new Contributor("Dreeam-qwq", CODE),
|
2024-01-28 08:05:07 +01:00
|
|
|
new Contributor("jhqwqmc", LANG),
|
2024-03-14 19:44:50 +01:00
|
|
|
new Contributor("liuzhen932", LANG),
|
|
|
|
new Contributor("Sniper_TVmc", LANG),
|
2021-01-29 08:50:07 +01:00
|
|
|
};
|
|
|
|
|
2020-02-07 10:07:09 +01:00
|
|
|
private Contributors() {
|
|
|
|
// Static method class
|
|
|
|
}
|
|
|
|
|
2022-04-06 16:37:23 +02:00
|
|
|
public static List<Contributor> getContributors() {
|
|
|
|
return Arrays.stream(CONTRIBUTOR_ARRAY).sorted().collect(Collectors.toList());
|
|
|
|
}
|
|
|
|
|
2020-02-07 10:07:09 +01:00
|
|
|
enum For {
|
2023-09-23 21:24:34 +02:00
|
|
|
CODE, LANG
|
2020-02-07 10:07:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
private static class Contributor implements Comparable<Contributor> {
|
2021-03-21 07:26:25 +01:00
|
|
|
final String name;
|
|
|
|
final For[] contributed;
|
2020-02-07 10:07:09 +01:00
|
|
|
|
|
|
|
Contributor(String name, For... contributed) {
|
|
|
|
this.name = name;
|
|
|
|
this.contributed = contributed;
|
|
|
|
}
|
|
|
|
|
2020-11-05 22:16:01 +01:00
|
|
|
@Override
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
if (this == o) return true;
|
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
Contributor that = (Contributor) o;
|
|
|
|
return name.equals(that.name) &&
|
|
|
|
Arrays.equals(contributed, that.contributed);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int hashCode() {
|
|
|
|
int result = Objects.hash(name);
|
|
|
|
result = 31 * result + Arrays.hashCode(contributed);
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2020-02-07 10:07:09 +01:00
|
|
|
@Override
|
|
|
|
public int compareTo(Contributor o) {
|
|
|
|
return String.CASE_INSENSITIVE_ORDER.compare(this.name, o.name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-23 15:40:28 +02:00
|
|
|
}
|