add better loading for profile settings and user profiles & add details bar
All checks were successful
Android Build / publish (push) Successful in 54s
Linux Build / publish (push) Successful in 53s

This commit is contained in:
olcxja 2026-07-04 13:55:23 +02:00
commit 271c573fb4
16 changed files with 504 additions and 174 deletions

View file

@ -1,11 +1,18 @@
import { encodeAnimation } from './wasm-webp/index.js';
import { encodeAnimation, decodeAnimation } from './wasm-webp/index.js';
self.onmessage = async (e) => {
let { targetWidth, targetHeight, webpFrames } = e.data;
let action = e.data.action || 'encode';
try {
let webpUint8 = await encodeAnimation(targetWidth, targetHeight, true, webpFrames);
self.postMessage({ success: true, data: webpUint8 }, [webpUint8.buffer]);
if (action === 'decode') {
let decoded = await decodeAnimation(e.data.data, true);
let transferables = decoded.map(f => f.data.buffer);
self.postMessage({ success: true, data: decoded, action }, transferables);
} else {
let { targetWidth, targetHeight, webpFrames } = e.data;
let webpUint8 = await encodeAnimation(targetWidth, targetHeight, true, webpFrames);
self.postMessage({ success: true, data: webpUint8, action }, [webpUint8.buffer]);
}
} catch (err) {
self.postMessage({ success: false, error: err.toString() });
self.postMessage({ success: false, error: err.toString(), action });
}
};