feat: pwa support (#366)

* add PWA support

* fix broken URLs for query

* remove unused variable

* restore authURL
This commit is contained in:
Hayden 2023-03-23 10:27:12 -08:00 committed by GitHub
parent be6b5c9c56
commit 0f8db862b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1656 additions and 7 deletions

View file

@ -158,8 +158,6 @@
location: string;
};
const api = useUserApi();
function fmtAssetID(aid: number | string) {
aid = aid.toString();
@ -178,7 +176,7 @@
const data = `${origin}/a/${assetID}`;
return `/api/v1/qrcode?data=${encodeURIComponent(data)}&access_token=${api.items.attachmentToken}`;
return `/api/v1/qrcode?data=${encodeURIComponent(data)}`;
}
function getItem(n: number): LabelData {