]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/log
Valerie Pond [Mon, 17 Apr 2023 17:10:16 +0000 (18:10 +0100)]
Make the overview a little tidier as discussed on IRC
this pulls the cards over to the left which I feel looks neater aligned with the sidebar.
also made the cards on each row match the max size to look more aligned
Bram Matthys [Mon, 17 Apr 2023 16:05:03 +0000 (18:05 +0200)]
Rename "Panel Access" menu item to "Accounts"
Bram Matthys [Mon, 17 Apr 2023 15:39:32 +0000 (17:39 +0200)]
Only show leftnav "footer" if we actually have leftnav, and hide on
screen width as well (bit of a duplicate check, but whatever).
Bram Matthys [Mon, 17 Apr 2023 15:29:21 +0000 (17:29 +0200)]
Move footer to leftnav. Only show if screen height >650px.
Suggested by Madriix in https://github.com/unrealircd/unrealircd-webpanel/pull/25
(but done a bit differently by me)
Ideally this 650px would not be hardcoded and it would detect if
the menu would overflow into the "footer", eg if you have X plugins
loaded. But for now this is fine and allows about 3 items more
so we're OK.. for now.
Bram Matthys [Mon, 17 Apr 2023 07:12:10 +0000 (09:12 +0200)]
Bump inactivity timeout from 15min to 60min. Will be customizable later...
Bram Matthys [Mon, 17 Apr 2023 06:49:47 +0000 (08:49 +0200)]
Fix wrong BASE_URL in settings
Bram Matthys [Mon, 17 Apr 2023 06:40:51 +0000 (08:40 +0200)]
Users: Host/IP column: get rid of "(the same)" stuff, I think users understand ;)
And the same for when services users don't have an IP, just only show the host.
Valerie Pond [Mon, 17 Apr 2023 05:59:33 +0000 (06:59 +0100)]
Add some form validation for user account
Also moved api/test_connection to api/installation
Bram Matthys [Sun, 16 Apr 2023 17:22:44 +0000 (19:22 +0200)]
Fix for last change (on resize @ channels overview).. .modes vs .modescol
Bram Matthys [Sun, 16 Apr 2023 16:48:31 +0000 (18:48 +0200)]
Channel list: show the modes but not the parameters. Like /LIST basically.
(You still see the parameters on hover, though)
Bram Matthys [Sun, 16 Apr 2023 16:36:03 +0000 (18:36 +0200)]
Don't wrap "Created"
Note to self: why am i using style here instead of proper CSS in the .css?
Bram Matthys [Sun, 16 Apr 2023 16:28:14 +0000 (18:28 +0200)]
Channel table: creation time is date now & hide columns on lower resolutions.
(The full date/time is still shown on hover, but i think most
people wouuld click on the channel for more info anyway)
Bram Matthys [Sun, 16 Apr 2023 16:07:11 +0000 (18:07 +0200)]
Probably good idea not to hammer older UnrealIRCd's (adds a usleep..)
Bram Matthys [Sun, 16 Apr 2023 16:05:36 +0000 (18:05 +0200)]
common_api: output at least something every timeout (10) seconds,
otherwise PHP may not notice when the webclient is gone.
Then the process could exist 'forever' and hang Apache after it
has gone through all it threads/processes.
Bram Matthys [Sun, 16 Apr 2023 15:36:09 +0000 (17:36 +0200)]
Hide footer on mobile
Bram Matthys [Sun, 16 Apr 2023 15:33:08 +0000 (17:33 +0200)]
Mobile: put nav dropdown on the left
Bram Matthys [Sun, 16 Apr 2023 15:25:43 +0000 (17:25 +0200)]
Some more transition levels / hiding columns @ Users table now the
leftnav pops up at 768 instead of 576.
Bram Matthys [Sun, 16 Apr 2023 15:08:32 +0000 (17:08 +0200)]
Hide leftnav on screens 576..767 too (eg: mobile landscape mode)
Bram Matthys [Sun, 16 Apr 2023 14:51:42 +0000 (16:51 +0200)]
Users table: more gradual column selection based on resolutions
Bram Matthys [Sun, 16 Apr 2023 13:39:50 +0000 (15:39 +0200)]
Notifications: only for 'error', 'warn' and 'link'. Later you can customize
what notifications you will want exactly, but pending that.. limit it to that.
Bram Matthys [Sun, 16 Apr 2023 13:35:00 +0000 (15:35 +0200)]
Whoops.. login page was redirecting to the login page... after login...
Bram Matthys [Sun, 16 Apr 2023 13:23:19 +0000 (15:23 +0200)]
Get rid of setup.php, being integrated in new all-in-one install page.
Bram Matthys [Sun, 16 Apr 2023 13:13:14 +0000 (15:13 +0200)]
We don't have a setup in file_auth, so scratch this.
Bram Matthys [Sun, 16 Apr 2023 12:51:20 +0000 (14:51 +0200)]
Exempt test_connection.php from requiring config as well - this adds page_requires_no_config()
Bram Matthys [Sun, 16 Apr 2023 12:44:51 +0000 (14:44 +0200)]
Don't require config.php when using install.php
Valerie Pond [Sun, 16 Apr 2023 02:47:05 +0000 (03:47 +0100)]
settings/install.php: make a big start to the installation page
Bram Matthys [Sat, 15 Apr 2023 18:32:43 +0000 (20:32 +0200)]
Tell users to keep their hands off config.defaults.php
Valerie Pond [Sat, 15 Apr 2023 17:35:46 +0000 (18:35 +0100)]
Fix table existence check
Valerie Pond [Sat, 15 Apr 2023 14:34:32 +0000 (15:34 +0100)]
Create the default user after the tables have been created :>
Valerie Pond [Sat, 15 Apr 2023 11:38:01 +0000 (12:38 +0100)]
Fix padding on previous commit
Valerie Pond [Sat, 15 Apr 2023 11:34:23 +0000 (12:34 +0100)]
Make the left-nav invisible and move to collapsible topbar for mobile users
Valerie Pond [Thu, 13 Apr 2023 22:47:20 +0000 (23:47 +0100)]
Add a bug report button to the footer
Valerie Pond [Thu, 13 Apr 2023 22:46:47 +0000 (23:46 +0100)]
Make the "Just Now" button a badge
Valerie Pond [Thu, 13 Apr 2023 21:11:57 +0000 (22:11 +0100)]
make toast notifications last 10 seconds instead of 5
Valerie Pond [Thu, 13 Apr 2023 20:31:54 +0000 (21:31 +0100)]
Make toast notifications stack
Bram Matthys [Thu, 13 Apr 2023 15:54:34 +0000 (17:54 +0200)]
Don't start session if we already have one. Actually, do we need this at all?
Ok maybe for non-auth but that one bails out immediately as well :D
Valerie Pond [Thu, 13 Apr 2023 14:58:11 +0000 (15:58 +0100)]
More on toast notifications
Valerie Pond [Thu, 13 Apr 2023 14:06:16 +0000 (15:06 +0100)]
Try getting bootstrap toasts working
Bram Matthys [Wed, 12 Apr 2023 14:26:01 +0000 (16:26 +0200)]
SQL_DEFAULT_USER => DEFAULT_USER, so we both use the same in sql_auth and file_auth
Bram Matthys [Wed, 12 Apr 2023 14:23:15 +0000 (16:23 +0200)]
Add file_auth plugin, which offers similar functionality to sql_auth
but then with files. Note that the webserver needs to be able to
write to the data/ directory. See config/config.php.sample
The sql auth plugin is better, but this way users have no excuse
not to use any authentication, basically ;D
Bram Matthys [Wed, 12 Apr 2023 12:22:59 +0000 (14:22 +0200)]
Add data/ directory that will be used later
Bram Matthys [Wed, 12 Apr 2023 12:01:26 +0000 (14:01 +0200)]
Overview: update every second: fallback to old-style on older UnrealIRCds
Valerie Pond [Wed, 12 Apr 2023 11:54:30 +0000 (12:54 +0100)]
Hide the right-click menu from the users page
Bram Matthys [Wed, 12 Apr 2023 11:45:35 +0000 (13:45 +0200)]
Don't call api/timeout.php on non-sql installs
Valerie Pond [Wed, 12 Apr 2023 11:39:36 +0000 (12:39 +0100)]
Merge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel
Valerie Pond [Wed, 12 Apr 2023 11:37:58 +0000 (12:37 +0100)]
users/index.php: add start of experimental right-click menu on
Bram Matthys [Wed, 12 Apr 2023 11:34:38 +0000 (13:34 +0200)]
Fix parse errors in config/config.php.sample
Reported by Lord255
Valerie Pond [Wed, 12 Apr 2023 11:29:03 +0000 (12:29 +0100)]
Delete Stats.php
Valerie Pond [Wed, 12 Apr 2023 10:42:05 +0000 (11:42 +0100)]
properly fix broken js, move after doctype
Bram Matthys [Wed, 12 Apr 2023 10:02:09 +0000 (12:02 +0200)]
Add api/common_api.php and use Server-Sent Events, streaming JSON
data on like the overview page to update the User/Channel/.. counts
instead of doing a HTTP request every second like we had before.
The use of api/common_api.php from api/ is quite easy:
require_once('common_api.php');
which takes care of validating the session, closing the session,
disabling output buffering, etc.
And then you use either:
* api_log_loop($sources)
like: api_log_loop(["connect"]);
Or:
* api_timer_loop((int $every_msec, string $method, array|null $params = null)
like: api_timer_loop(1000, "stats.get");
And then all the (streaming) JSON-RPC response data from the server is
streamed back to the client via SSE.
Bram Matthys [Wed, 12 Apr 2023 09:41:23 +0000 (11:41 +0200)]
Update to latest unrealircd-rpc-php again...
Bram Matthys [Wed, 12 Apr 2023 09:15:05 +0000 (11:15 +0200)]
Fixes for BASE_URL massreplace, accidentally changes JS code too.
Bram Matthys [Wed, 12 Apr 2023 06:38:01 +0000 (08:38 +0200)]
Convert the stats calls from raw to $rpc->stats()->get();
-$stats = $rpc->query("stats.get", []);
+$stats = $rpc->stats()->get();
That function was added a few minutes ago in unrealircd-rpc-php,
apparently it was missing :D
Bram Matthys [Wed, 12 Apr 2023 06:37:47 +0000 (08:37 +0200)]
Update to latest unrealircd-rpc-php. End-users have to run 'composer install'
Bram Matthys [Wed, 12 Apr 2023 06:17:22 +0000 (08:17 +0200)]
Close session early in the api/overview.php so it doesn't block other pages.
This closes the session before connecting to the server and doing the stats
call, which may take a few hundred milliseconds on long distance servers.
Also writes a JSON header so i can see the result easily in my browser ;D
Bram Matthys [Tue, 11 Apr 2023 18:57:37 +0000 (20:57 +0200)]
Whoops ) too much :D
Bram Matthys [Tue, 11 Apr 2023 18:54:26 +0000 (20:54 +0200)]
Fix some bad mass replaces
Valerie Pond [Tue, 11 Apr 2023 18:34:45 +0000 (19:34 +0100)]
Merge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel
Valerie Pond [Tue, 11 Apr 2023 18:34:08 +0000 (19:34 +0100)]
"fix" the users page
Bram Matthys [Tue, 11 Apr 2023 18:05:46 +0000 (20:05 +0200)]
Fixfixfix
Bram Matthys [Tue, 11 Apr 2023 18:01:33 +0000 (20:01 +0200)]
And add security check back...
Bram Matthys [Tue, 11 Apr 2023 18:00:25 +0000 (20:00 +0200)]
config_get() -> get_config() :D
Valerie Pond [Tue, 11 Apr 2023 17:57:09 +0000 (18:57 +0100)]
lose the security check as it seems to not work yet
Bram Matthys [Tue, 11 Apr 2023 17:46:29 +0000 (19:46 +0200)]
Newconf: smtp / mailer
Bram Matthys [Tue, 11 Apr 2023 17:41:07 +0000 (19:41 +0200)]
Newconf for DNSBL
Bram Matthys [Tue, 11 Apr 2023 17:30:56 +0000 (19:30 +0200)]
Move to new style config, with config in config/ directory.
There is currently a compatibility layer so existing installs
don't have to update their config.php per se... although that
won't be around forever ;)
Valerie Pond [Tue, 11 Apr 2023 17:14:05 +0000 (18:14 +0100)]
javascript function to generate a new toast notification
Valerie Pond [Tue, 11 Apr 2023 17:13:29 +0000 (18:13 +0100)]
channel/details Add a note in for blank Ban Type
Valerie Pond [Tue, 11 Apr 2023 17:12:40 +0000 (18:12 +0100)]
Upgrade bootstrap and fix an $active_page err
Valerie Pond [Tue, 11 Apr 2023 17:11:58 +0000 (18:11 +0100)]
try to make the users table look better on mobile devices
not really working well at the moment, but I'm on it
Valerie Pond [Tue, 11 Apr 2023 00:12:40 +0000 (01:12 +0100)]
beginnings of api/notification
Valerie Pond [Tue, 11 Apr 2023 00:10:52 +0000 (01:10 +0100)]
Login: add basic front-end validation
Bram Matthys [Mon, 10 Apr 2023 17:32:00 +0000 (19:32 +0200)]
Update to latest unrealircd-rpc-php. End users: 'composer install'
Bram Matthys [Sun, 9 Apr 2023 17:21:57 +0000 (19:21 +0200)]
Remove "Top countries" for now, maybe add it somewhere else later though.
Valerie Pond [Sun, 9 Apr 2023 17:16:26 +0000 (18:16 +0100)]
Merge pull request #20 from Madriix/main
Update index.php
Madriix [Sun, 9 Apr 2023 17:08:53 +0000 (19:08 +0200)]
added top country
Bram Matthys [Sun, 9 Apr 2023 16:58:16 +0000 (18:58 +0200)]
Edit channel settings grouping. Eg: Join restrictions, Message restrictions, ..
Bram Matthys [Sun, 9 Apr 2023 16:54:28 +0000 (18:54 +0200)]
Left-nav: adjust vertical space, use Bold for main items, make it less white.
Bram Matthys [Sun, 9 Apr 2023 16:19:23 +0000 (18:19 +0200)]
Attempt 2.. or am i making it worse? :D
Bram Matthys [Sun, 9 Apr 2023 16:16:27 +0000 (18:16 +0200)]
Leftnav: let's try this...
Bram Matthys [Sun, 9 Apr 2023 15:36:10 +0000 (17:36 +0200)]
Leftnav subitems fun
Valerie Pond [Sun, 9 Apr 2023 14:17:14 +0000 (15:17 +0100)]
Add the sidenav and move menu to it
Valerie Pond [Sun, 9 Apr 2023 14:16:19 +0000 (15:16 +0100)]
fix the icon in footer not showing
Madriix [Sun, 9 Apr 2023 06:53:13 +0000 (08:53 +0200)]
Update index.php
Bram Matthys [Fri, 7 Apr 2023 08:05:05 +0000 (10:05 +0200)]
Change default rpc-user name, now matches the new wiki instructions
Bram Matthys [Fri, 7 Apr 2023 07:27:32 +0000 (09:27 +0200)]
Move documentation to wiki
Valerie Pond [Fri, 7 Apr 2023 05:25:31 +0000 (06:25 +0100)]
Lose the header in setup.php
Bram Matthys [Fri, 7 Apr 2023 05:22:44 +0000 (07:22 +0200)]
Quick workaround for SQL Setup page not working
Valerie Pond [Fri, 7 Apr 2023 05:08:36 +0000 (06:08 +0100)]
Fix number of tables check
Valerie Pond [Fri, 7 Apr 2023 03:45:46 +0000 (04:45 +0100)]
automatically go to login page on session timeout
Valerie Pond [Fri, 7 Apr 2023 01:20:07 +0000 (02:20 +0100)]
maybe a bigger interval on the cpu check =]
Valerie Pond [Fri, 7 Apr 2023 01:18:05 +0000 (02:18 +0100)]
Make a cool chart for CPU usage and show live CPU&memory usage
Valerie Pond [Fri, 7 Apr 2023 00:57:26 +0000 (01:57 +0100)]
Make the Services overview card live too
Valerie Pond [Thu, 6 Apr 2023 23:50:38 +0000 (00:50 +0100)]
Overview now displays live stats
The overview will now display live stats updated every second, so you can be sure the numbers you're looking at are current without having to refresh the page.
This goes for everything except the Services and Panel Access cards, though I will make these live in the near future.
Valerie Pond [Thu, 6 Apr 2023 03:19:28 +0000 (04:19 +0100)]
Fix redirect loop
Reported by @syzop
Valerie Pond [Wed, 5 Apr 2023 04:23:11 +0000 (05:23 +0100)]
some minor cosmetic changes
Valerie Pond [Wed, 5 Apr 2023 04:22:31 +0000 (05:22 +0100)]
Add the start of "Network Health" tool
This tab will let you see if there are any mode mismatches or module version mismatches, and any other stuff we can think might be useful to add in.
Since we already have a hardcoded End Of Life, it sounds reasonable to add UnrealIRCd5 being EOL as a "problem" listed on this page after July, for example.
Valerie Pond [Wed, 5 Apr 2023 00:28:14 +0000 (01:28 +0100)]
Couple of small fixes reported by @Lord255
Valerie Pond [Wed, 5 Apr 2023 00:25:03 +0000 (01:25 +0100)]
Finish server details page
Valerie Pond [Tue, 4 Apr 2023 20:45:52 +0000 (21:45 +0100)]
Move SQL setup to its own page