Commit Graph

37 Commits

Author SHA1 Message Date
Aurora Lahtela
88b4191f6b
Implement http caching (#2840)
* Implement first response parts of http caching
* Implement cached response for static resources
* Implement HTTP caching for json responses
* Fix last seen value for online players
* Implement http caching for pages (.html)
* Use placeholder cache even with async requests.

Affects issues:
- Close #2813
2023-01-22 10:18:14 +02:00
Aurora Lahtela
5082f80030 Implemented support for subdirectory addresses
Export of React version of frontend now supports exporting to a subdirectory
So now you can access exported site at /plan/... if it is hosted there.

This might impact reverse proxy setups positively, but that has not yet been tested.
The hypothetical positive impact is the inclusion of subdirectory in the React-router
configuration, since now it can handle the reverse-proxy subdirectory in URL.
2023-01-06 12:12:45 +02:00
Aurora Lahtela
155910554f Fixed exported page constantly updating data in the background 2022-12-11 21:35:31 +02:00
Aurora Lahtela
ad6abacf7f Fix issues of the exported pages
- Fixed / opening "Redirecting.." view due to wrong whoAmI replacement
- Fixed page not opening because sidebar contained undefined items (static site can't have everything)
- Fixed some sidebar links being anchors instead of react-router links
- Fixed network page not opening due to missing extensionData json
- Fixed server page not opening due to missing extensionData and serverIdentifier json
- Added visual icon to the page when it is exported rather than dynamic for my own sanity
- Removed query page links from exported pages
2022-12-04 11:06:05 +02:00
Aurora Lahtela
5524a64747 Implement react side of player page export 2022-12-02 19:49:54 +02:00
Aurora Lahtela
059d4553aa Implemented react side of export for frontend BETA 2022-11-27 09:48:55 +02:00
Aurora Lahtela
3e0ad424b8 Disable no-useless-concat eslint rule for backendConfiguration.js 2022-11-26 10:23:24 +02:00
Aurora Lahtela
362105cf98 Wrote an Exporter to export react bundle files 2022-11-26 09:01:41 +02:00
Aurora Lahtela
f36ed678a3 Implemented register page in react 2022-11-25 16:49:06 +02:00
Aurora Lahtela
38774867f7 Made query page display some results
Fixed Activity group filter
2022-11-12 10:39:20 +02:00
Aurora Lahtela
428a0c5fde Began work on Query page
- Implemented the view time range selector input fields
- Fixed geolocation filter query returning more options than supposed to
2022-10-15 15:41:57 +03:00
Aurora Lahtela
8cdbebf191 Implemented Network performance tab in React
Affects issues:
- Implemented #2469
2022-09-11 19:30:57 +03:00
Aurora Lahtela
3d64e36159 Implemented Network PlayerBase overview in React 2022-09-11 09:42:03 +03:00
Aurora Lahtela
cb7749d778 Implemented network geolocations tab in React
- Add Projection selector to geolocations visualization
2022-09-11 09:30:33 +03:00
Aurora Lahtela
7a51633690 Implemented network page join address tab
- Made it possible to toggle stack/side-by-side join addresses
2022-09-10 10:45:03 +03:00
Aurora Lahtela
adc4162217 Network sessions tab implemented in React 2022-09-10 09:38:25 +03:00
Aurora Lahtela
f4aaa72f4c Implemented network servers overview in React
- Changed the layout to use a table instead of custom elements for more efficient look.
- Added sorting options to the new table
- Added a total calculator at the table footer

Affects issues:
- Close #1205
2022-09-09 19:10:06 +03:00
Aurora Lahtela
cb21c45ea9 Visualize join address / day in React server page
Join addresses were missing

- Implemented new group visualizer that allows viewing group data as column/bar/pie/table
- Implemented latest join address pie on server page (was missing)
- Implemented join addresses per day graph on new Join addresses tab
- Made playerbase overview use the group visualizer

Affects issues:
- Close #2362
2022-09-05 16:56:59 +03:00
Aurora Lahtela
6d9fcab656 Implement Network overview tab in React 2022-09-04 09:40:17 +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
c607ef2869 Rewrite /errors page with React 2022-09-01 18:59:59 +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
b5005afbc5 Implement Login page using react 2022-08-18 18:53:35 +03:00
Aurora Lahtela
c7a7b60d91 Geolocations to React server page 2022-06-08 18:24:38 +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
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
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
030dff7e0a Fallback to relative address if Alternative_IP is misconfigured.
Affects issues:
- #2260
2022-05-21 09:47:10 +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