Initial work on Shares

This commit is contained in:
Deluan 2023-01-19 22:52:55 -05:00
commit ab04e33da6
36 changed files with 841 additions and 84 deletions

View file

@ -4,3 +4,4 @@ export * from './formatters'
export * from './intersperse'
export * from './notifications'
export * from './openInNewTab'
export * from './shareUrl'

6
ui/src/utils/shareUrl.js Normal file
View file

@ -0,0 +1,6 @@
import config from '../config'
export const shareUrl = (path) => {
const url = new URL(config.shareBaseUrl + '/' + path, window.location.href)
return url.href
}