325 Commits

Author SHA1 Message Date
Thegan Govender
ff4bbe58cf Delete backup_2023-04-24 07-10-02.json 2023-04-24 18:47:44 +02:00
Thegan Govender
0b5b4b6e19 completed basic backup and restore
Basic backup and restore, will need to to do extensive testing but it should work

Reworked websocket class to allow for updating rows of data instead of sending a new row for an updated state

Cleaned up more stats that used jf_all_user_activity
2023-04-24 18:44:44 +02:00
Thegan Govender
03ab7fc2ff Create backup function
Create backup feature to store data as a json file

Modified Terminal to be more dynamic in the backend to be used by multiple modules, messages are now stored and send from server side instead of in the session.

Added username to last watched items in library activity

fixed navbar home url

Reverted stats to ut nor rely on jf_all_playback_activity as it has not been implemented yet
2023-04-23 22:20:14 +02:00
Thegan Govender
43044979b5 Update ActivityMonitor.js
Removed some logging calls i was using to fix the watchdog function when i broke it
2023-04-20 21:47:38 +02:00
Thegan Govender
5d529aab30 begin implementation of plugin data
Started on the process of importing plugin data from JF Reporting Plugin
Data is stored in a separate table and will be used in a new view to allow for this data to work in conjunction with the data captured by JFStat. These new views will be finalized and released in the next push.

Reworked watchdog function to use a unique uuid instead of the session id as it is not unique and seems to be causing issues regardless of no pk constraints
Also decided to use moments to get accurate timezone data

Changed item info to sync only items without item info. This is temporary to reduce the load of subsequent syncs until we can optimize this function

Minor changes to front end ui linkages and added open on jellyfin link on item details page
2023-04-20 21:46:05 +02:00
Thegan Govender
a87dd2c0d5 fixed migration sequence
Had duplicate migration sequences

Minor css changes and link rewrites to take you the specific item in the library overview for last watched items
2023-04-16 20:55:05 +02:00
Thegan Govender
5da90ba410 episode sync fix
Fix an issue introduced when optimizing sync process that resulted in episodes being removed and then reinserted on every alternate sync respectively
2023-04-15 23:42:57 +02:00
Thegan Govender
692d0c8ec0 Item Cards and stats
Added drill down views for individual items

Created view to see basic metadata for libraries

Created Table to store item metadata such as file size and codec support

Scrape and display File and library sizes

Removed a redundant view(TBH there's still alot left)

Amended some UI elements

Started work on backup code WIP (Does not work)

Changed out Nivo to recharts for stat graphs to remove <0 behaviour of charts
2023-04-15 23:04:25 +02:00
Thegan Govender
0a948f8eda Recharts Implementation
Removed nvio and added recharts to fix graph falling below 0

Other Fixes
2023-04-14 13:37:08 +02:00
Thegan Govender
c2c426e03e Sync Terminal WS Fix
Potential fix to Terminal Websocket not connecting and displaying messages from server
2023-04-10 16:50:00 +02:00
Thegan Govender
590ae82f85 DB Migrations
Implemented better Database initializations and migrations.

No longer dependent on default postgres user and set owner to POSTGRES_USER
2023-04-08 13:07:23 +02:00
Thegan Govender
b313e6e22d stat fixes+dynamic user content
Fixed more sql quereis

Noticed hardcoded userid value for last-played/recently played stats, changed to dynamic admin userid due to full permission access of libraries
2023-04-05 23:16:48 +02:00
Thegan Govender
95085b4c7d stats fix
fixed query functions for the reports on the statistics page
2023-04-04 14:50:49 +02:00
Thegan Govender
3a85fcdea3 Stats Changes
Added more stuff to statistics page

Playback per hour page has a bug
2023-04-02 22:15:28 +02:00
Thegan Govender
74faa14940 Secured API
Secured API endpoints with JWT

Added Login ,Signup and Configuration Pages
2023-04-02 19:06:06 +02:00
Thegan Govender
0b0e08b295 Stats Page
Added stats page, fixed auto init
2023-04-01 12:36:28 +02:00
Thegan Govender
04e990f522 Libraries Page
Basic Libraries and Libraries Info page completed

Auto init still broken

Need to remove redundant components
2023-03-26 16:36:52 +02:00
Thegan Govender
697f721fd6 Userpage+ UI Changes
Basic user page completed

UI color scheme and css changes

Now stores and uses blurred image hashes for loading item images

Broke auto init DB somewhere along the lines
2023-03-25 23:27:58 +02:00
Thegan Govender
dc3f900c5a users page + db auto create(WIP)
Created users info page when viewing user data on user tab

Added DB Procs to retrieve data for those components

Added db auto initialize to the backend in preparation for docker images, this needs work as it still crashes if it cant connect to the db
2023-03-23 22:37:04 +02:00
Thegan Govender
4c4fcd04d5 UI Changes, stat fixes
Changed around nav bar
Added users stats view
renamed views for better understanding(still more to do).
CREATED SCRIPT TO SPINUP POSTGRESS DB WITH TABLES AND FUNCTIONS
2023-03-21 21:52:41 +02:00
Thegan Govender
582a39918e full change to statistics
1) Created components for statistic reporting.
2) Database changes and PROC/Function creations. Still need to make MOST VIEWED LIBRARIES/CLIENTS/ MOST ACTIVE USERS dynamically load with date range (Function Creation on DB side)
2023-03-19 22:01:40 +02:00
Thegan Govender
28ed76d6c4 bck/frnt end changes to accomade sync and stats 2023-03-12 20:48:34 +02:00
Thegan Govender
6dd98cb07a Back-end cng to get and store data + stats api 2023-03-11 11:41:46 +02:00
Thegan Govender
dbe75bd82e Add recently played(WIP). centralized API function 2023-03-09 20:47:52 +02:00
Thegan Govender
504aaee682 initial commit 2023-03-08 06:59:56 +02:00