Commit Graph

328 Commits

Author SHA1 Message Date
Julian Lam
b6b94a56dc refactor: moved ip-blacklist and post-queue styles/tpls to themes
This is a breaking change!, re: #8580
2020-08-26 10:36:29 -04:00
Julian Lam
a716a5529c feat: more discrete commit-on-save instead of commit-on-change w/ confirm modals (#8541)
* feat: privileges save button, #8537, WIP

* fix: disable firefox autocomplete on privilege form fields

* feat: closes #8537 privilege changes commit on save

- new language strings for confirmation and success modals/toasts
- indeterminate privilege handling (/cc @psychobunny)
- added new discard button
- both discard and save buttons now have confirmation dialogs

* fix(tests): remove duplicate template helper test

* fix(tests): broken template helper test

* feat: confirm dialogs for all privilege copy actions

Also, ability to add user to a privilege table without needing
to refresh the privilege table.

* feat: group row addition w/o table refresh

breaking: helpers.getUserPrivileges and helpers.getGroupPrivileges
no longer make socket calls to the following hooks:

- filter:privileges.list, filter:privileges.admin.list,
  filter:privileges.global.list, filter:privileges.groups.list,
  filter:privileges.admin.groups.list,
  filter:privileges.gloval.groups.list

The filters are still called, but done before the helper method
is called, and the results are passed in instead. This change
should only affect you if you directly call the helper methods,
otherwise the change is transparent.

* fix: stale ajaxify data on privilege category switch

* fix: implicit privileges not showing for user privs

* fix: groups, not group, also fix tests

* fix(tests): again

* fix: wrong tpl rendered when adding group to global priv table
2020-08-03 20:42:45 -04:00
Barış Soner Uşaklı
560f3eb173 feat: css fixes 2020-07-30 12:39:10 -04:00
Barış Soner Uşaklı
91411cc47c feat: add privileges shortcut to groups list
fix issues with escape group names
2020-07-30 12:26:37 -04:00
Julian Lam
8473e165a6 fix: too small sortable handle for ACP>Manage>Categories
The handle was initially just the icon, but now it is the icon
and the category label itself.
2020-07-27 16:07:52 -04:00
Barış Soner Uşaklı
db07dd8565 fix: less fixes for category dropdown 2020-07-27 13:03:34 -04:00
Barış Soner Uşaklı
24535a62e7 feat: make category tools in acp a dropdown
add view category, view privileges into dropdown
2020-07-27 12:39:32 -04:00
psychobunny
4c90fac412 fix: cursor for category select 2020-07-24 01:30:16 -04:00
psychobunny
10e4ae629c feat: highlight privs row if group is added / navigating from group page 2020-07-23 18:34:07 -04:00
Peter Jaszkowiak
de7ec47f13 fix: #8352, remove webfonts (#8354) 2020-06-01 11:06:23 -04:00
Barış Soner Uşaklı
05c9fe2735 feat: #5272, allow changing user groups from manage users page 2019-12-04 11:14:01 -05:00
Barış Soner Uşaklı
1bda92e3fc fix: #8064, break-word on post-queue 2019-11-25 14:22:35 -05:00
Barış Soner Uşaklı
35a4ca2fe9 feat: add sm2x avatar class #7813 2019-09-17 15:12:37 -04:00
Julian Lam
a0c0ef1ba4 feat: ACP analytics API route (#7725)
* feat: added API route for retrieving analytics via REST API

* feat: sets is now optional, can pass in multiple sets

* fix: moved expand and added json button to panel header

* fix: matching api params to socket method

* fix: update json api button url on graph change

* fix: updated default counts based on passed in units
2019-06-28 14:59:55 -04:00
Baris Usakli
a5de54f877 fix: indents 2019-06-27 12:08:51 -04:00
Baris Usakli
ee4d78cae3 feat: closes #7718 2019-06-27 12:05:31 -04:00
Julian Lam
1894cd9b81 fix: middle vertical-align for .avatar elements 2019-06-13 10:07:52 -04:00
Julian Lam
2523889990 refactor: replace avatar conditional code with buildAvatar helper (#7681)
* feat: helper for building avatars

* feat: benchpress truefalse globals, componentPrefix in buildAvatar

* refactor: remove componentPrefix

* feat: changes to buildAvatar helper

- removed extra .avatar-xl class in generics.less
- added support for component override
- "size" can be a number now

* fix: prevent overflow of alt text in avatars

* fix: update doc on buildAvatar helper
2019-06-13 09:54:18 -04:00
Julian Lam
c7f95ccecc feat: design revamp of ACP events page (#7664)
* feat: design revamp of ACP events page

- minor UX changes
- new filter controls, filters moved to sidebar
- form usable without js
- start/end filters NOT programmed yet

* feat: events ACP limit by date and perPage

* feat: pre-fill applied filters on template render

* fix: missing translation for ACP events perPage filter

* fix: added some comments to explain setHours behaviour

* fix: stop - start + 1

* fix: socket tests

* fix: +inf, not just inf

* fix: tests, because I am an idiot
2019-06-04 17:25:09 -04:00
Barış Soner Uşaklı
c2e7ae7f41 fix: #7373 2019-02-15 10:51:18 -05:00
Julian Lam
e8f3c25676 fix: re-introducing indeterminate checkbox state to ACP privs 2019-02-11 16:33:47 -05:00
Julian Lam
91a7b9070a fix: #7346, panel-header widget colours in ACP 2019-02-08 16:09:29 -05:00
Julian Lam
87c2d10811 fix: #7226, added placeholder styling for fa-nbb-none 2019-01-11 12:30:23 -05:00
Baris Usakli
0c1ac4d6a2 feat: #7032 2018-12-18 13:44:03 -05:00
Baris Usakli
31bb2ae9af feat: make user cards look less derpy 2018-12-08 12:42:16 -05:00
Baris Usakli
de437e36a5 fix: admins&mods when there are mutliple lines of users 2018-12-08 12:39:21 -05:00
Barış Soner Uşaklı
f581c052ee feat: #7023
- add category selector to privileges and category create modals
- allow category selector to work for multiple selectors on same page
2018-12-04 14:32:43 -05:00
Julian Lam
98c14e0e68 fix: removal of scroll anchoring code in favour of browser handling
closes #6150
2018-11-20 16:56:54 -05:00
Barış Soner Uşaklı
ab7657d445 closes #6854 2018-10-22 07:30:48 -04:00
Barış Soner Uşaklı
9dd65cf772 closes #6822 2018-10-18 10:24:34 -04:00
Barış Soner Uşaklı
11bb2f1560 closes #6528 2018-05-30 14:21:03 -04:00
Andrew Rodrigues
d949aeed49 reposition legend in fs mode 2018-04-09 12:12:10 -04:00
Andrew Rodrigues
bdf67bd1c4 fix for large resolutions 2018-04-09 12:01:57 -04:00
Andrew Rodrigues
5e74e45c5a because ms edge. 2018-04-09 11:55:35 -04:00
Andrew Rodrigues
67c8d4b560 maximize graph w/ fullscreen API 2018-04-09 11:50:30 -04:00
Baris Usakli
46576189be closes #6392 2018-03-26 16:22:13 -04:00
Peter Jaszkowiak
dcf1865b54 Fix ACP alerts to use same system as client (#6396)
* Fix PostCSS warning message

* Fix disconnect indicator styling

Would increase size of quick actions when active

* Use same alert system in ACP and client

- Remove snackbar
- Add styling and fix template for ACP (based on Persona)
2018-03-26 11:55:01 -04:00
Peter Jaszkowiak
eaae5b52cd ACP quick actions (#6374)
* ACP quick actions

- Moved restart, build & restart, and logout into separate buttons
- Moved buttons on mobile into the side menu
- Added version and upgrade alert to header / mobile menu
- Moved version checking to server-side with a cache for rate limiting
- Changed "reload" translations to "rebuild and restart"

* Change info alert to black-on-white to match focused search bar

* Fix tests

* Fallback for failed fetch of latest version
2018-03-20 08:32:17 -04:00
Andrew Rodrigues
8a220b944e fix graph legend container on smaller widths 2018-03-14 16:28:42 -04:00
Julian Lam
3cbca69b27 closes #6346 2018-03-07 12:26:31 -05:00
psychobunny
69a8eb1100 extra fixes for #6297 2018-02-01 17:00:43 -05:00
psychobunny
6533c664d6 fix font size in appearance menus 2018-02-01 16:50:08 -05:00
psychobunny
29be18ae5b closes #6268 2018-01-31 15:03:23 -05:00
Barış Soner Uşaklı
8446a733e5 closes #5569 2018-01-05 14:44:18 -05:00
Peter Jaszkowiak
c731661a39 Remove external sources from installer page (#6101)
* Remove external sources from installer page

* Remove bootstrap.min.css

* Make spinner display consistently cross-platform

* Change spinner to look better
2017-11-23 10:50:10 -05:00
Julian Lam
cd6dcff38b Split up customJS into customHTML and customJS for better organisation (#5981)
* WIP

* fixed customJS not actually working in footer

* Moving scripts to footer, #5980

* Added upgrade scripts for #5980
2017-10-12 13:38:27 -04:00
psychobunny
d4a11de07d move blacklist.less into admin/manage/ip-blacklist.less 2017-09-01 19:47:20 -04:00
psychobunny
fdffaf9ed2 re-organized ip blacklist page 2017-09-01 19:29:09 -04:00
psychobunny
864321f727 re-organize newbiePostDelay fields 2017-08-24 14:25:09 -04:00
psychobunny
714a7066ec add some styling to blacklist rules textarea 2017-08-21 19:05:37 -04:00