feat(web): meta tags for share links (#1290)

* feat(web): meta tags for share links

* refactor: svelte head tags

* chore: clean up

* chore: linting
This commit is contained in:
Jason Rasmussen 2023-01-10 22:36:50 -05:00 committed by GitHub
parent a3688fe642
commit fa31a6e441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 120 additions and 84 deletions

View file

@ -1,10 +1,18 @@
import { api, AddAssetsResponseDto, AssetResponseDto } from '@api';
import { api, AddAssetsResponseDto, AssetResponseDto, ThumbnailFormat } from '@api';
import {
notificationController,
NotificationType
} from '$lib/components/shared-components/notification/notification';
import { downloadAssets } from '$lib/stores/download';
export const getThumbnailUrl = (assetId: string, format: ThumbnailFormat, key?: string) => {
let url = `/api/asset/thumbnail/${assetId}?format=${format}`;
if (key) {
url += `&key=${key}`;
}
return url;
};
export const addAssetsToAlbum = async (
albumId: string,
assetIds: Array<string>,