Commit Graph

87 Commits

Author SHA1 Message Date
shockrah
ca68c61f3a Framework/Modal for settings coming together
 Changing inline script to now run in an async block
 No more callback hell, literally anything can be written with async/await or callbacks when appropos
2021-03-07 23:49:49 -08:00
shockrah
fd1bf41fec Message constructor now takes in username as a parameter and binds it to uname
 Removed some fluff
 New get_member endpoint handler for later
2021-03-07 13:50:48 -08:00
shockrah
784043fc89 Cleaned up channels list header/description
 Better scrollarea definition for messages area
 Logging http errors in catch statement on auth init
2021-03-07 13:47:41 -08:00
shockrah
8e6c90b3c4 Removing superflous css in some jquery
 Messages now has its own properly named type exposed for other modules to use if it's required
 New jquery calls in messages to actually populate the message box with the last 48 hours worth of messages
2021-03-05 17:48:59 -08:00
shockrah
231141221b Adding hooks to reqest channel messages
 DOM manipulation for channel buttons moved to new module
 Message hooks themselves still require actual implementation but
all the required fallbacks are there
2021-03-03 21:49:40 -08:00
shockrah
9bf4048313 Removing a bunch of bs that is no longer used 2021-03-03 16:31:01 -08:00
shockrah
080b2cc538 * update_channels_list now literally updates the channel list with the correct hooks
! Callback hooks are not featured yet but they are registered in the DOM
2021-03-03 16:29:59 -08:00
shockrah
25876f90e4 * Adapting auth module to new config structure
+ Explicit login route handler now in takes care of logging in to 1 specific domain on request

+ auth.init which just hits /login for all available servers it can find
2021-03-03 16:28:55 -08:00
shockrah
12c3d300ba * Updated html to receive /channel/list data
- Removing fluff from join modal
+ Setting up initial buttons in DOM for listing channels and pulling up menus and such
2021-03-03 16:27:06 -08:00
shockrah
143e6a1a77 Removing NODE_TLS_REJECT 2021-03-03 16:25:13 -08:00
shockrah
e4630199a6 Only using http in dev environments 2021-02-12 19:07:14 -08:00
shockrah
41bfd1cd89 Only building html with 200's in channel_list 2021-02-12 19:07:03 -08:00
shockrah
24a49663d2 dev_env environment var check 2021-02-12 18:13:24 -08:00
shockrah
d42c39d117 Hiding menu but not removing it anymore 2021-02-12 18:12:33 -08:00
shockrah
8fb0fdbeed Basic channel button css 2021-02-12 18:11:20 -08:00
shockrah
6904e8eb26 using env vars for some comfy defaults for development 2021-02-12 15:50:05 -08:00
shockrah
ec6701418c update-config ipc calls now using new cfg.update_config as backend 2021-02-11 22:27:15 -08:00
shockrah
316b5ad1fd get_channels now has nearly no logic in it
Doing this because there are other mechanisms in place to protect against bs JWT's which really just adds a ton of complexity to every function
2021-02-11 22:26:42 -08:00
shockrah
efb8aa94de creating a new jwt when open the app for earch server
May as well do this to keep jwt's fresh
2021-02-11 22:25:27 -08:00
shockrah
d7e57c0751 new func for requesting jwt tokens from a server 2021-02-11 22:18:54 -08:00
shockrah
687b514d0d Adding listener for update-config requests from the render proc 2021-02-11 22:18:22 -08:00
shockrah
51fa07158f Mutable config now 2021-02-11 16:20:05 -08:00
shockrah
94c36a7ce9 adding npm test command 2021-02-11 16:19:18 -08:00
shockrah
0c4c8e9b75 simple onClick listener for server buttons 2021-02-11 16:18:58 -08:00
shockrah
22998a8119 * Got no longer throws errors like mad, this leaves only our own errors to get thrown
* url parameter in Request is replace with domain, port & path
* params handled by gotjs
* body defaults to null and is only added with truth like values with allowGetBody protection
2021-02-11 16:18:36 -08:00
shockrah
23c732390d Starting a mega simple testing suite 2021-02-11 16:16:50 -08:00
shockrah
90563b3214 Updating packages to newest version and opting to use gotjs for requests 2021-02-11 15:08:06 -08:00
shockrah
1e6a9ac844 +Setting proper callbacks on
* Prefering server domains for get's in build_server_list

* Fixing jsdoc for new_node to not be garbage
2021-01-28 18:01:38 -08:00
shockrah
ac9668557b Testing out a new module for channels api hits 2021-01-28 17:56:40 -08:00
shockrah
91a4e06cb7 moving jwt and login related things to new auth module 2021-01-28 17:55:26 -08:00
shockrah
1b7092fd34 Simple request/response api to wrap 'got' calls away 2021-01-28 17:54:49 -08:00
shockrah
e2360834f1 jsonwebtoken library added 2021-01-28 16:20:08 -08:00
shockrah
051e5e73e3 Modularized modal styling's
* Also fixed white on white text that I missed in join-form's text field
2021-01-28 12:40:31 -08:00
shockrah
f548449f8c dev things 2021-01-27 19:20:53 -08:00
shockrah
1292e5ab3f Moving some initialization logic to its own module 2021-01-25 18:21:35 -08:00
shockrah
95414e21a3 Better scrollbar style that doesn't look like garbage 2021-01-18 17:43:26 -08:00
shockrah
e57fd498ae Working collapsing navbar 2021-01-18 16:35:01 -08:00
shockrah
8a4cac65ff removing unused build file 2021-01-18 15:20:11 -08:00
shockrah
60aee1dc07 Loading configs asynchronously now as well as with better error logging for the user 2021-01-06 15:22:27 -08:00
shockrah
4dd168303b Sidebar now has scaffolding so we can begin hooking it to things 2021-01-02 00:30:56 -08:00
shockrah
47098dc2fc Join form ready for js hooks 2021-01-01 22:02:17 -08:00
shockrah
97ac76e4a1 ignoring libs like before 2021-01-01 20:05:17 -08:00
shockrah
e37d51f549 Making the navbar more responsive to screen changes
! Bootstrap doesn't behave so dropdowns are borked but they'r theoretically there

LMAO at this example config update btw its gonna keep changing so I'm not updating its patch notes from here out until its a proper looking example
2021-01-01 20:04:11 -08:00
shockrah
6e0919e32c Adding event handler for config request that only happens once on load 2021-01-01 20:01:37 -08:00
shockrah
fa70f9efdd Fixed typo 2021-01-01 20:01:05 -08:00
shockrah
1010f0f2e8 changed path for main source code backend 2021-01-01 19:06:51 -08:00
shockrah
12e9c07d60 New launch scripts, basically at this point package.json it just for building but not for running anything 2021-01-01 17:14:36 -08:00
shockrah
430e10e6b6 Moved config loading to its own proper module 2021-01-01 17:14:00 -08:00
shockrah
4e657e2710 skeleton code for loading configs into the client at init time 2020-12-12 13:26:02 -08:00
shockrah
26bd2a3af9 better css for the navbar
and addinga a better navbar
2020-12-07 22:18:05 -08:00