forked from mirrors/homebox
feat: pwa support (#366)
* add PWA support * fix broken URLs for query * remove unused variable * restore authURL
This commit is contained in:
parent
be6b5c9c56
commit
0f8db862b4
8 changed files with 1656 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue