diff --git a/README.md b/README.md index 271a0cc..e6031a7 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,10 @@ Testing findings: - [X] rss feed wrong content type -- [ ] progress page has no mobile layout (jvs you suck) +- [?] progress page has no mobile layout (jvs you suck) +- [?] progress seems to sometimes not load for jvs? + +idk jvs, seems to work on my machine! - [ ] docs errors page, ironically, gives an error - [X] docs headings are very purple @@ -141,8 +144,8 @@ Testing findings: - [X] upgrade: progress numbers not bold - [X] upgrade: align perk text with icon -- [ ] miieditor logs serverside -- [ ] just move as much stuff as possible to renderside really +- [X] miieditor logs serverside +- [?] just move as much stuff as possible to renderside really - [X] account shows beta switch even if it's disabled - [X] if user has beta access they should be able to change back to prod @@ -155,4 +158,4 @@ Testing findings: - [ ] need error page - [ ] need 404 page -- ? progress seems to sometimes not load for jvs? + diff --git a/src/pages/account/miieditor/index.vue b/src/pages/account/miieditor/index.vue index aeb58e0..e5a71bf 100644 --- a/src/pages/account/miieditor/index.vue +++ b/src/pages/account/miieditor/index.vue @@ -15,8 +15,6 @@ definePageMeta({ const { data: profile } = await useApiFetch('/api/auth/me'); -console.log('miidata', profile.value?.mii?.data); - useHead({ title: 'Mii Editor | Pretendo Network' }); @@ -58,14 +56,10 @@ const newMiiSmileUrl = computed(() => { // this initalizes a mii for editing // returns true if mii data was parsed successfully function initializeMiiData(encodedUserMiiData: string) { - console.group('initalizing Mii data'); - console.log('encoded mii data:', encodedUserMiiData); - // We initialize the Mii object try { - console.log('attempting to parse mii data'); // @ts-expect-error -- this works just fine - const tempMii = new Mii(decode(miiDataString)); + const tempMii = new Mii(decode(encodedUserMiiData)); mii.value = tempMii; // we also initialize the old mii variable, which will be used to render the miis in the save dialogue oldMii = tempMii; @@ -79,14 +73,10 @@ function initializeMiiData(encodedUserMiiData: string) { bgColor: '13173300', expression: 'sorrow' }); - } catch (err) { - console.error('failed to decode mii data', err); - console.groupEnd(); + } catch { return false; } - console.log('initialization complete'); - console.groupEnd(); return true; } @@ -112,7 +102,6 @@ function loadImageAsync(url: string): Promise { // this renders the mii to canvas async function renderMii(_e?: Event, sizeChange?: boolean) { if (!miiCanvas.value) { - console.log('[ERROR]: nocanvas'); return; } @@ -241,8 +230,6 @@ function setActiveSubTab(newSubTab: string, newTab: string) { return; } - console.log(mii.value); - // open the subpage at which the selected value is located activeSubPage.value = getSubPageFromValue( mii.value?.[newSubTab], @@ -268,9 +255,8 @@ function getSubPageFromValue(value: string, newSubTab: string, newTab: string) { if (a?.find(e => e === value)) { subpageIndex = i; } - } catch (e) { - console.log(e); - return 0; + } catch { + return; } });