Commit Graph

95 Commits

Author SHA1 Message Date
shockrah
7fede3b4e1 New css making channel buttons not ugly as hell
 Moving channels.list behind async call
 Moved server-name to top of dom to reduce clutter(i think)
2021-03-09 00:07:41 -08:00
shockrah
d8244388c2 Removing myself from callback hell slowly but surely
 Removing ipc calls reducing chance to shrek the drive
2021-03-08 19:53:14 -08:00
shockrah
ef0bc70f90 Complexity in auth.login by basically cutting it in half and throwing the bad half out
 auth.init is now the more complex site since it literally has 1 chance to fire
2021-03-08 19:51:57 -08:00
shockrah
c4e3fa72ce More comprehensive example user config
 Moving main.js to use more async code and make things a bit more homogeneous
2021-03-08 19:50:01 -08:00
shockrah
f14390f4bb Callback settings.add_server_to_config now in effect for people that don't want to fuck with config files 2021-03-07 23:54:57 -08:00
shockrah
0d888a4c63 More unused code that pull credentials out of an object
Like why was this here, it's literally just object[key_name]
2021-03-07 23:54:17 -08:00
shockrah
6cfb7e7e4d No more callback trickery with auth.init
 Even more fluff removed
 From this point forward the codebase is mature enough for slimming down fearlessly
2021-03-07 23:53:09 -08:00
shockrah
7d3325fdc6 ipcMain now uses handle instead of .on for
 config-request probably doesn't need to be async like at all
2021-03-07 23:51:51 -08:00
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