-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed Plugin.Use_Legacy_Frontend feature flag * Remove version modal html generation in Java * Remove contributor list html generation in Java * Remove more html generation in Java * Delete old web file bundle * Removed locale html/js translation from backend * Move Html#swapColorsToSpan to the React side * Reimplement datatables and backend for preferences * Load preferences from backend * Usability fixes to the players table * Delete WebAssetVersionCheckTask * Add new locale to locale files * Export defaultPreferences as json on react export Affects issues: - Close #2905
- Loading branch information
Showing
188 changed files
with
6,297 additions
and
33,842 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
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
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
51 changes: 51 additions & 0 deletions
51
.../common/src/main/java/com/djrapitops/plan/delivery/domain/datatransfer/PlayerListDto.java
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,51 @@ | ||
/* | ||
* 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.domain.datatransfer; | ||
|
||
import com.djrapitops.plan.delivery.domain.datatransfer.extension.ExtensionDescriptionDto; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author AuroraLS3 | ||
*/ | ||
public class PlayerListDto { | ||
|
||
private final List<TablePlayerDto> players; | ||
private final List<ExtensionDescriptionDto> extensionDescriptors; | ||
|
||
public PlayerListDto(List<TablePlayerDto> players, List<ExtensionDescriptionDto> extensionDescriptors) { | ||
this.players = players; | ||
this.extensionDescriptors = extensionDescriptors; | ||
} | ||
|
||
public List<TablePlayerDto> getPlayers() { | ||
return players; | ||
} | ||
|
||
public List<ExtensionDescriptionDto> getExtensionDescriptors() { | ||
return extensionDescriptors; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "PlayerListDto{" + | ||
"players=" + players + | ||
", extensionDescriptors=" + extensionDescriptors + | ||
'}'; | ||
} | ||
} |
174 changes: 174 additions & 0 deletions
174
...common/src/main/java/com/djrapitops/plan/delivery/domain/datatransfer/TablePlayerDto.java
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,174 @@ | ||
/* | ||
* 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.domain.datatransfer; | ||
|
||
import com.djrapitops.plan.delivery.domain.datatransfer.extension.ExtensionValueDataDto; | ||
|
||
import java.util.Map; | ||
import java.util.UUID; | ||
|
||
/** | ||
* Represents a row for players table. | ||
* | ||
* @author AuroraLS3 | ||
*/ | ||
public class TablePlayerDto { | ||
|
||
private UUID playerUUID; | ||
private String playerName; | ||
private double activityIndex; | ||
private Long playtimeActive; | ||
private Long sessionCount; | ||
private Long lastSeen; | ||
private Long registered; | ||
private String country; | ||
|
||
private Map<String, ExtensionValueDataDto> extensionValues; | ||
|
||
private TablePlayerDto() { | ||
// Builder constructor | ||
} | ||
|
||
public static TablePlayerDtoBuilder builder() { | ||
return new TablePlayerDtoBuilder(); | ||
} | ||
|
||
public String getPlayerName() { | ||
return playerName; | ||
} | ||
|
||
private void setPlayerName(String playerName) { | ||
this.playerName = playerName; | ||
} | ||
|
||
public double getActivityIndex() { | ||
return activityIndex; | ||
} | ||
|
||
private void setActivityIndex(double activityIndex) { | ||
this.activityIndex = activityIndex; | ||
} | ||
|
||
public Long getPlaytimeActive() { | ||
return playtimeActive; | ||
} | ||
|
||
private void setPlaytimeActive(Long playtimeActive) { | ||
this.playtimeActive = playtimeActive; | ||
} | ||
|
||
public Long getSessionCount() { | ||
return sessionCount; | ||
} | ||
|
||
private void setSessionCount(Long sessionCount) { | ||
this.sessionCount = sessionCount; | ||
} | ||
|
||
public Long getLastSeen() { | ||
return lastSeen; | ||
} | ||
|
||
private void setLastSeen(Long lastSeen) { | ||
this.lastSeen = lastSeen; | ||
} | ||
|
||
public Long getRegistered() { | ||
return registered; | ||
} | ||
|
||
private void setRegistered(Long registered) { | ||
this.registered = registered; | ||
} | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
private void setCountry(String country) { | ||
this.country = country; | ||
} | ||
|
||
public Map<String, ExtensionValueDataDto> getExtensionValues() { | ||
return extensionValues; | ||
} | ||
|
||
private void setExtensionValues(Map<String, ExtensionValueDataDto> extensionValues) { | ||
this.extensionValues = extensionValues; | ||
} | ||
|
||
public UUID getPlayerUUID() { | ||
return playerUUID; | ||
} | ||
|
||
public void setPlayerUUID(UUID playerUUID) { | ||
this.playerUUID = playerUUID; | ||
} | ||
|
||
public static final class TablePlayerDtoBuilder { | ||
private final TablePlayerDto tablePlayerDto; | ||
|
||
private TablePlayerDtoBuilder() {tablePlayerDto = new TablePlayerDto();} | ||
|
||
public TablePlayerDtoBuilder withUuid(UUID playerUUID) { | ||
tablePlayerDto.setPlayerUUID(playerUUID); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withName(String name) { | ||
tablePlayerDto.setPlayerName(name); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withActivityIndex(double activityIndex) { | ||
tablePlayerDto.setActivityIndex(activityIndex); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withPlaytimeActive(Long playtimeActive) { | ||
tablePlayerDto.setPlaytimeActive(playtimeActive); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withSessionCount(Long sessionCount) { | ||
tablePlayerDto.setSessionCount(sessionCount); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withLastSeen(Long lastSeen) { | ||
tablePlayerDto.setLastSeen(lastSeen); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withRegistered(Long registered) { | ||
tablePlayerDto.setRegistered(registered); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withCountry(String country) { | ||
tablePlayerDto.setCountry(country); | ||
return this; | ||
} | ||
|
||
public TablePlayerDtoBuilder withExtensionValues(Map<String, ExtensionValueDataDto> extensionValues) { | ||
tablePlayerDto.setExtensionValues(extensionValues); | ||
return this; | ||
} | ||
|
||
public TablePlayerDto build() {return tablePlayerDto;} | ||
} | ||
} |
Oops, something went wrong.