Commit Graph

1844 Commits

Author SHA1 Message Date
Nassim Jahnke
1e76fbff8f
Small fixes 2022-07-26 21:00:55 +02:00
MiniDigger | Martin
a595640c48 !important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
!important
2022-07-26 20:27:22 +02:00
Nassim Jahnke
8f5f0d1137
Use Popper for proper dropdown placement 2022-07-26 20:10:22 +02:00
Nassim Jahnke
9e442802e1
Things 2022-07-26 18:53:04 +02:00
MiniDigger | Martin
de484d6695 move styles to lib 2022-07-26 17:37:44 +02:00
Nassim Jahnke
459f739082
Add popoveritem 2022-07-26 17:20:40 +02:00
Nassim Jahnke
f39a64e9fe
Use popover instead of menu in certain cases to manually close 2022-07-26 17:20:07 +02:00
MiniDigger | Martin
b910a57064 come on 2022-07-26 16:57:04 +02:00
MiniDigger | Martin
3a425ce2a1 fix env var name for auth api key 2022-07-26 16:48:47 +02:00
MiniDigger | Martin
a093b64b90 sync traits to auth 2022-07-26 16:32:21 +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
231ed284c1
Fix starred/watched projects showing unpublished
Fixes #796
2022-07-26 10:40:42 +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
bace653ccc set right avatar and auth url in order to avoid cors errors 2022-07-26 09:58:16 +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
Bjarne Koll
f624b7fec2
Create tokens with same-site policy lax (#774)
Both the HangarAuth and HangarAuth_REFRESH cookies were set with
same-site policy 'strict', preventing the browser from sending them when
opening a hangar page from a third party href, such as a plain link in a
github gist.

This prevents the server side rendering from picking up the token or
refresh token, leading the the server side rendering logic to assume an
unauthorized user is attempting to view a page eventho the user is
actually logged in.
This directly leads to hydration errors as the SSR renders the page for
a non-logged in user while the client side hydration properly detects
the logged in user and renders a potentially completely different page.
2022-07-24 10:32:00 +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
Owen
5aa44e6062
Fix markdown block conversions (#766) 2022-07-20 10:21:53 +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
97c301c7c4
Small cleanup 2022-07-19 20:55:46 +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
7b1dae8726
Update docs 2022-07-18 20:37:00 +02:00