Commit Graph

583 Commits

Author SHA1 Message Date
Nassim Jahnke
f39a64e9fe
Use popover instead of menu in certain cases to manually close 2022-07-26 17:20:07 +02:00
Nassim Jahnke
a0b6bf6d03
Improve version list, add subtle border to project and version card 2022-07-26 14:45:05 +02:00
Nassim Jahnke
8d3311524f
Hack in better dependency modal validation 2022-07-26 13:28:53 +02:00
Nassim Jahnke
90548d8ee0
Update HangarLib 2022-07-26 12:17:30 +02:00
MiniDigger | Martin
f4e271b0c1 reeee intellij 2022-07-26 11:49:02 +02:00
MiniDigger | Martin
57a5cb2018 recalc pagination if needed, closes #795 2022-07-26 11:47:35 +02:00
Nassim Jahnke
4211f214c8
Remove create new project/org from nav menu when not logged in 2022-07-26 11:46:42 +02:00
Nassim Jahnke
9e3cedc100
Fix sortabletable pagination, improve useradmin page
Fixes #797
2022-07-26 11:10:40 +02:00
MiniDigger | Martin
9773e826a2 load swagger from cdn (#749) 2022-07-26 11:09:13 +02:00
Nassim Jahnke
1cd699017a
Fix CME when getting roles 2022-07-26 10:28:58 +02:00
MiniDigger | Martin
b14ed490f0 try to preoptimize swagger in order to fix it on staging (#749) 2022-07-26 10:01:13 +02:00
MiniDigger | Martin
99bf226b34 try to be less spamming about expected auth failures, closes #765 2022-07-26 09:38:59 +02:00
Nassim Jahnke
b94de32b94
Improve safe host check
Previously you could just have a host called "epapermc.io" and it'd be safe because it ends with "papermc.io"
2022-07-25 21:17:42 +02:00
Owen
0373b5345d
Disable role selector buttons when no role is selected (#792) 2022-07-25 21:05:24 +02:00
MiniDigger | Martin
ed06e1a301 update deps 2022-07-25 15:02:31 +02:00
Nassim Jahnke
81cf2a0ca7
Move version formatting away from frontend again
While this is mostly to just fix Safari and other old browser not supporting regex lookbacks, having this code in JS was pretty disgusting anyways and people might appreciate having the versions already formatted in API returned objects.
2022-07-25 10:21:35 +02:00
Bjarne Koll
b74b10394e
Properly scroll to linked element if present (#776) 2022-07-24 14:05:18 +02:00
Nassim Jahnke
50ecd9deda
Fix pinned version download button 2022-07-24 13:25:37 +02:00
Nassim Jahnke
4dc4c37559
Disgusting hacks to allow video embed and links
... before we either use a different sanitization lib or figure out how to move the sanitization before the markdown renderer without destroying plain text
2022-07-24 13:09:29 +02:00
Nassim Jahnke
d21dd69987
Be more lenient at md render rate limiting 2022-07-24 10:51:12 +02:00
Nassim Jahnke
d121d3dd65
asdas moment 2022-07-22 16:13:10 +02:00
Nassim Jahnke
88a4c62af8
Fix dependency detection when no last version exists 2022-07-22 16:03:43 +02:00
Nassim Jahnke
4fc8bae9ec
Fix some annoying warnings 2022-07-22 15:48:05 +02:00
Bjarne Koll
082d3d974a
Disable next button on incorrect new version data (#772) 2022-07-22 13:40:42 +02:00
Bjarne Koll
c61c0b46c9
Prevent Steps#next on final version creation step (#773) 2022-07-22 10:03:09 +02:00
Bjarne Koll
51e436d18c
Prevent vue from reusing project page component (#770)
Previously vue would reuse the project page component when switching
between project pages as the component was not keyed.
This commit fixes this by partially modifying the project page setup.

In the current state both the project page content as well as the list
of opened project pages, used to properly configure the tree views
opened elements, are handled in the same state.
This layout however introduces a rather unfortunate flaw into the logic
which makes this fix a bit larger than a simple :key value.

The openedProjectPages `open` contains state that is expected to outlive
a simple change from one project page to another to properly show the
project page tree. This directly conflicts with the assumptions made
about the rest of the project state, which should be discarded the
displayed project page is changed as content and potential edit values
are no longer applicable.

To implement this, this commit splits the opened project pages array
into its own composable as well as the project page markdown into its
own component.

The opened project pages are then tracked by the owning route, e.g. the
prjects index route or the general page route, while the current page
markdown lives in a new component which owns its own state and is keyed
with the pages path.
This way, a change in route properly re-creates the project page
markdown component while keeping the same opened page state in the
parent component.
2022-07-22 00:24:17 +02:00
Bjarne Koll
cd165e3991
Configure vue-router to scroll to top (#769)
Up till now, the vue-router did not have any scroll behaviour, leading
to no scrolling on page changes. This becomes particularly obvious when
opening a project from bottom of the main project list, as the project
page is scrolled down to a good part of the README.md.

To fix this, this commit configures the routers scrollBehaviour
following the vuejs documentation to create the most native scrolling
behaviour possible, scrolling to any potentially saved position when
using the browsers back button or scrolling to the top of the page
otherwise.

See: https://router.vuejs.org/guide/advanced/scroll-behavior.html
2022-07-20 19:27:24 +02:00
Nassim Jahnke
8bd1911c6f
Update HangarLib 2022-07-20 17:27:34 +02:00
Nassim Jahnke
1d9520d146
More things 2022-07-20 12:15:05 +02:00
Nassim Jahnke
633793ca80
Some padding fixes 2022-07-20 10:59:05 +02:00
Bjarne Koll
db59ab50dc
Close navigation popup for router links (#767) 2022-07-20 10:23:52 +02:00
Nassim Jahnke
7b46763bdd Update HangarLib 2022-07-19 22:39:28 +02:00
Nassim Jahnke
65293d77f2
Final touches on notifications page 2022-07-19 22:00:00 +02:00
Nassim Jahnke
bb9ba80198
Paginate notifications, use tabs 2022-07-19 13:05:17 +02:00
Nassim Jahnke
b5dda569b2
Add perm check to channels nav entry 2022-07-19 10:15:16 +02:00
Nassim Jahnke
3a5ece5407
Move pinned project getting to UsersController 2022-07-18 19:36:40 +02:00
Nassim Jahnke
d45291ba41
Improve modal width and scaling 2022-07-18 14:41:11 +02:00
Nassim Jahnke
70a825edbc
Show amount of reports/required approvals in staff dropdown 2022-07-17 15:31:34 +02:00
Nassim Jahnke
d2058d5e17
Actually fix version list order 2022-07-17 14:13:10 +02:00
Nassim Jahnke
e01467cb58
Make frozen channels (release channel) pinnable 2022-07-17 12:42:23 +02:00
Nassim Jahnke
fd3c57fd23
Paginate reports, add resolved reports tab 2022-07-14 11:03:25 +02:00
Nassim Jahnke
95c88e673d
Display report notifications 2022-07-13 23:08:02 +02:00
Nassim Jahnke
9f9f8520e4
Let staff send notifications during report resolving
TODO: Display them under their respective report in the flags page
2022-07-13 21:49:59 +02:00
Nassim Jahnke
c4fce0906c
Send notifications on visibility change of projects 2022-07-13 17:30:36 +02:00
Nassim Jahnke
f7a6ad553c
Improvements to report and approval pages 2022-07-13 16:32:11 +02:00
Nassim Jahnke
be6c36da56
Fix channel page reload on changes 2022-07-11 22:10:32 +02:00
Nassim Jahnke
6a8c352e96
Reverse version list to order by recency 2022-07-11 22:01:44 +02:00
MiniDigger | Martin
a1862becaf include credentials when saving avatar 2022-07-11 20:44:03 +02:00
Nassim Jahnke
fcc45dac75
Update HangarLib 2022-07-11 15:44:14 +02:00
Nassim Jahnke
618ba40d47
Fix a bunch of review issues 2022-07-11 15:42:49 +02:00