chore(miieditor): update mii-js to fix build issue
Some checks are pending
Build and Publish Docker Image / Build and Publish (amd64) (push) Waiting to run
Build and Publish Docker Image / Build and Publish (arm64) (push) Waiting to run

This commit is contained in:
limes 2025-09-02 22:16:31 +02:00
parent 03cb1c3db4
commit d8a47d80b1
4 changed files with 39 additions and 37 deletions

View File

@ -1,5 +1,3 @@
import { nodePolyfills } from 'vite-plugin-node-polyfills';
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
@ -14,12 +12,7 @@ export default defineNuxtConfig({
vite: {
server: {
allowedHosts: ['pretendo.network']
},
plugins: [
nodePolyfills({
include: ['buffer', 'crypto', 'stream'] // we need these for the mii editor
})
]
}
},
modules: [

57
package-lock.json generated
View File

@ -15,7 +15,7 @@
"@nuxt/fonts": "^0.11.1",
"@nuxt/icon": "^1.11.0",
"@nuxtjs/i18n": "^9.5.3",
"@pretendonetwork/mii-js": "^1.0.5",
"@pretendonetwork/mii-js": "^1.0.8",
"base64-arraybuffer": "^1.0.2",
"eslint": "^9.24.0",
"feed": "^4.2.2",
@ -30,8 +30,7 @@
"@iconify-json/ph": "^1.2.2",
"@pretendonetwork/eslint-config": "^0.0.8",
"eslint-plugin-vue": "^10.0.0",
"sass-embedded": "^1.86.3",
"vite-plugin-node-polyfills": "^0.24.0"
"sass-embedded": "^1.86.3"
}
},
"node_modules/@ampproject/remapping": {
@ -4667,12 +4666,13 @@
}
},
"node_modules/@pretendonetwork/mii-js": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@pretendonetwork/mii-js/-/mii-js-1.0.5.tgz",
"integrity": "sha512-8JPOqJgbhf0zMrwA6s899m76BClnP/gh1GxgGje1CaZVSd9PFLyMOIbwEuqVBj40hVtkTVVwAUtSguJgAZ9oaw==",
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@pretendonetwork/mii-js/-/mii-js-1.0.8.tgz",
"integrity": "sha512-lnn8fGTNFuxlUqAn6eR+czNhfatHK99AbMlcHceONHjlgmHP/UCjeK3Vdns+u4IOHQOcgF4MfN0rv6VtRpm7gg==",
"license": "GNU AFFERO GPLV3",
"dependencies": {
"bit-buffer": "^0.2.5"
"bit-buffer": "^0.2.5",
"crypto-js": "^4.2.0"
}
},
"node_modules/@rolldown/pluginutils": {
@ -8134,6 +8134,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/crypto-js": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==",
"license": "MIT"
},
"node_modules/css-declaration-sorter": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-7.2.0.tgz",
@ -17279,6 +17285,7 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17295,6 +17302,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17311,6 +17319,7 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17327,6 +17336,7 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17343,6 +17353,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17359,6 +17370,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17375,6 +17387,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17391,6 +17404,7 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17407,6 +17421,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17423,6 +17438,7 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17439,6 +17455,7 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17455,6 +17472,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17471,6 +17489,7 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17487,6 +17506,7 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17503,6 +17523,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17519,6 +17540,7 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17535,6 +17557,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17551,6 +17574,7 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17567,6 +17591,7 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -17583,6 +17608,7 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@ -20181,23 +20207,6 @@
"url": "https://github.com/sponsors/sxzz"
}
},
"node_modules/vite-plugin-node-polyfills": {
"version": "0.24.0",
"resolved": "https://registry.npmjs.org/vite-plugin-node-polyfills/-/vite-plugin-node-polyfills-0.24.0.tgz",
"integrity": "sha512-GA9QKLH+vIM8NPaGA+o2t8PDfFUl32J8rUp1zQfMKVJQiNkOX4unE51tR6ppl6iKw5yOrDAdSH7r/UIFLCVhLw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@rollup/plugin-inject": "^5.0.5",
"node-stdlib-browser": "^1.2.0"
},
"funding": {
"url": "https://github.com/sponsors/davidmyersdev"
},
"peerDependencies": {
"vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
}
},
"node_modules/vite-plugin-vue-tracer": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/vite-plugin-vue-tracer/-/vite-plugin-vue-tracer-1.0.0.tgz",

View File

@ -20,7 +20,7 @@
"@nuxt/fonts": "^0.11.1",
"@nuxt/icon": "^1.11.0",
"@nuxtjs/i18n": "^9.5.3",
"@pretendonetwork/mii-js": "^1.0.5",
"@pretendonetwork/mii-js": "^1.0.8",
"base64-arraybuffer": "^1.0.2",
"eslint": "^9.24.0",
"feed": "^4.2.2",
@ -38,7 +38,6 @@
"@iconify-json/ph": "^1.2.2",
"@pretendonetwork/eslint-config": "^0.0.8",
"eslint-plugin-vue": "^10.0.0",
"sass-embedded": "^1.86.3",
"vite-plugin-node-polyfills": "^0.24.0"
"sass-embedded": "^1.86.3"
}
}

View File

@ -1,11 +1,12 @@
<script setup lang="ts">
// eslint-disable-next-line import/no-unresolved -- i genuinely don't know why this errors
import Mii from '@pretendonetwork/mii-js';
import { decode } from 'base64-arraybuffer';
// we don't want the navbar or the footer
import type { Subtab, Tab } from '@/utils/miieditor';
// eslint-disable-next-line import/no-unresolved -- i genuinely don't know why this errors
import BirthdaySetter from '@/components/BirthdaySetter/BirthdaySetter.vue';
// eslint-disable-next-line import/no-unresolved -- i genuinely don't know why this errors either
import BirthdaySetter from '@/components/BirthdaySetter/BirthdaySetter.vue';
// eslint-disable-next-line import/no-unresolved -- i genuinely don't know why this errors either either
import { miiEditorJSON } from '@/utils/miieditor';
const { t } = useI18n();