Commit Graph

87 Commits

Author SHA1 Message Date
Aurora Lahtela
c24c1e0dbe Add server list to network page navigation 2022-09-03 19:39:56 +03:00
Aurora Lahtela
f3e4fa4e21 Add missing loaders to the server page 2022-09-03 19:39:39 +03:00
Aurora Lahtela
38ee84af67 Fixed some issues with DataTables and unmounting extensions
When using ServerWidePluginData component for two different plugins that had a DataTablesTable
React reused the component, which lead to issues of DataTables trying to remount on the same
component with a different ID, with both jQuery and React trying to remove elements from DOM.

- Added div around table in DataTablesTable to allow React properly unmount the element after
  jQuery already removed the table element
- Added extra layer in ServerWidePluginData that re-renders the tab when plugin changes
- Sorted extensions in the endpoints
- Added /v1/networkMetadata endpoint for implementing server list navigation later
- Added network page to App.js with plugins and players tabs already implemented
2022-09-03 14:01:15 +03:00
Aurora Lahtela
19df503888 Fix issue with sidebar closing right away on first click
Sidebar items not being rendered caused the currentTab to be undefined,
until the sidebar is opened, and then currentTab is set - which then
caused a useEffect that closes sidebar to fire.
This lead to the sidebar closing right away on the first click.

To fix this the sidebar item state was moved to navigationHook,
and changing the list of items on a sidebar updates currentTab
at the same time to prevent sidebar rendering setting it again.
2022-09-01 20:27:41 +03:00
Aurora Lahtela
1a8b7af2af Implement Lazy loading 2022-09-01 19:50:16 +03:00
Aurora Lahtela
c607ef2869 Rewrite /errors page with React 2022-09-01 18:59:59 +03:00
Aurora Lahtela
019a3353ca Load server extension data in separate context to speed up loading time 2022-08-31 18:06:08 +03:00
Aurora Lahtela
cc326ddb84 Fix login redirect on from parameter on React login page 2022-08-28 18:17:25 +03:00
Aurora Lahtela
300c114f3e Fix use menu logout button 2022-08-28 09:23:32 +03:00
Aurora Lahtela
bfe59008d0 Fix incorrectly set useEffect dependency in two files 2022-08-28 08:21:57 +03:00
Aurora Lahtela
4c53a9a406 Enabled React server page in Frontend BETA
Various fixes to React frontend

- Implemented Extension DataTables table support
- Fixed colors in night mode
- Fixed DataTables night mode
- Fixed chart opacity in night mode (HighCharts doesn't like hsl values)
- Fixed color selector buttons in night mode
- Translated Login button
- Added license to package.json
- Changed Extension endpoint table representation to objects to allow value formatting
2022-08-27 22:26:30 +03:00
dependabot[bot]
c824994cb9
Bump highcharts from 9.3.3 to 10.2.0 in /Plan/react/dashboard (#2463)
* Bump highcharts from 9.3.3 to 10.2.0 in /Plan/react/dashboard

Bumps [highcharts](https://github.com/highcharts/highcharts-dist) from 9.3.3 to 10.2.0.
- [Release notes](https://github.com/highcharts/highcharts-dist/releases)
- [Commits](https://github.com/highcharts/highcharts-dist/compare/v9.3.3...v10.2.0)

---
updated-dependencies:
- dependency-name: highcharts
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add highcharts accessibility module to all charts

* Add missing dependency to useCallback

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com>
2022-08-27 17:05:07 +03:00
Aurora Lahtela
ea16adb13d Initial version of server extension cards
TODO: Extension DataTables mapping
2022-08-23 22:01:34 +03:00
Aurora Lahtela
a43a2ae581 Implement rest of Performance tab (graphs) in React
Adds all graphs and their respective tabs.
Extra:
- Zero baselined charts where it made sense
- Increased performance graph card height to improve readability

Affects issues:
- Close #2270
2022-08-20 15:53:34 +03:00
Aurora Lahtela
5bd882036c Performance tab (no graphs yet) 2022-08-20 10:30:24 +03:00
Aurora Lahtela
d39c377756 Fix server page server name
Server name came from metadata endpoint, but it is incorrect if viewing a server page on a network

Added a new endpoint /v1/serverIdentity?server=... to get the identifiable name of the server.
2022-08-20 09:46:24 +03:00
Aurora Lahtela
aee3988f77 Ping table to geolocations page 2022-08-19 19:44:04 +03:00
Aurora Lahtela
f185870125 Added fadein animations to all existing views 2022-08-19 19:03:02 +03:00
Aurora Lahtela
b5005afbc5 Implement Login page using react 2022-08-18 18:53:35 +03:00
Aurora Lahtela
8f239b010c
Add Swagger & Swagger UI (#2470)
* Adds swagger dependencies and annotations for json endpoints for documentation
* Add swagger ui to react project
* Access control to swagger endpoints
* Include swagger.json in jars using custom configuration

Also:
* Reworked project shadow configurations to avoid shadowing shadow versions of modules

Why: Extra dependencies were being included when using shadow scope

What:
- modules no longer depend on shadow configurations,
  which speeds up IDEA indexing after build considerably
  (No need to index *-all.jars)
- 'shadow' scope is now used for artifacts that need to be included
- 'shadow' scope is also 'api' so that modules that depend on common
  can import the libraries. This may cause issues in projects
  depending on Plan so this may need to be reconsidered
- Relocations and exclusions were moved to plugin module
  org.slf4j is now included in 2 locations which may cause issues.
  Needs testing with servers
- Found out that all Extension dependencies include junit as compile
  scope which caused it to be included.

Affects issues:
- Close #1890
2022-07-13 21:21:20 +03:00
Aurora Lahtela
c7a7b60d91 Geolocations to React server page 2022-06-08 18:24:38 +03:00
Aurora Lahtela
576485d20c Fix players page title 2022-06-05 22:12:00 +03:00
Aurora Lahtela
56a3be1835 React players page and fix constant rerender 2022-06-05 22:09:46 +03:00
Aurora Lahtela
df0c0fa8a5 Implemented player list to server page
Holy moly was it a big fight to get DataTables to cooperate
2022-06-05 21:38:12 +03:00
Aurora Lahtela
1522a8731d Fixed linting issues 2022-06-04 09:11:38 +03:00
Aurora Lahtela
e3c1ca37eb Implement more of server page
- Insights that were unfinished
- Playerbase graphs
- Pvp & PvE tab
2022-06-02 16:43:32 +03:00
Aurora Lahtela
f6ece8333b Entered data for Online Activity Overview 2022-05-23 19:46:01 +03:00
Aurora Lahtela
7e1bd7f4a6 Playerbase overview page layout
- Moved some files
2022-05-23 18:58:06 +03:00
Aurora Lahtela
b942078485 Implemented more of the layout for server page
- Sessions accordion table headers
- PvP & Pve layout
- Playerbase graph layout
- Updated font awesome to 6.1.1
2022-05-22 10:57:06 +03:00
Aurora Lahtela
45baebfb01 Implemented some more structure for server page 2022-05-21 20:25:49 +03:00
Aurora Lahtela
e77a9ee8b5 Implemented rest of the graphs on Online Activity Overview 2022-05-21 13:43:49 +03:00
Aurora Lahtela
de276691a0 Fix wrong ping series translation labels 2022-05-21 09:50:57 +03:00
Aurora Lahtela
030dff7e0a Fallback to relative address if Alternative_IP is misconfigured.
Affects issues:
- #2260
2022-05-21 09:47:10 +03:00
Aurora Lahtela
6c5c9ce913 Fix terminal icon not loading for console registered users
Affects issues:
- #2260
2022-05-21 09:38:26 +03:00
Aurora Lahtela
b52f257f3c Insert html into nickname list on React version of player page
Affects issues:
- Fixed #2329
2022-05-21 09:33:03 +03:00
Aurora Lahtela
f36f1202fc Implemented player ping graph on Frontend BETA player page
Affects issues:
- Close #2258
2022-05-21 09:25:27 +03:00
Aurora Lahtela
3822155b40
Frontend BETA: Rewrite Player page with React (#2312)
* Add extension data to /v1/player endpoint
* Use node gradle plugin for building with yarn
* Add /v1/whoami endpoint
* Add back button to sidebar
* Selenium Tests for locale related js errors
* Convert locale system to use YAML-based storage
* Added a conversion process that runs on startup
* Replace cravatar.eu with crafatar.com for skins (more reliable)
* Add the Header made by Kopo to React

Co-authored-by: Antti Koponen <koponen942@outlook.com>

Affected issues:
- Resolve #1733
- Fixed #1092
- Resolve #1895
- Resolve #1965
- Partial #2260 
- Partial #2099
2022-04-06 17:37:23 +03:00