Skip to content

Commit

Permalink
⚡ compress image, improve memory usage
Browse files Browse the repository at this point in the history
Change log:
 - compress spritesheet image to reduce bundle size
 - remove texture when the removing a pet and the pet is the last pet to be removed
 - remove pre-load all pet to reduce memory usage
 - when adding a new pet, if the texture doesn't exist load it before adding the pet to the window.
 - improve update pop up information  such as change log
  • Loading branch information
SeakMengs committed Dec 10, 2023
1 parent d80044a commit 6e0a005
Show file tree
Hide file tree
Showing 59 changed files with 2,894 additions and 932 deletions.
2,305 changes: 1,938 additions & 367 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "WindowPet",
"private": true,
"version": "0.0.5",
"private": "false",
"version": "0.0.6",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -18,34 +18,36 @@
"@tabler/icons-react": "^2.41.0",
"@tauri-apps/api": "^1.5.1",
"clsx": "^2.0.0",
"i18next": "^23.7.6",
"jsdom": "^22.1.0",
"i18next": "^23.7.8",
"jsdom": "^23.0.1",
"phaser": "^3.70.0",
"postcss": "^8.4.31",
"postcss": "^8.4.32",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.5.0",
"react-intersection-observer": "^9.5.3",
"react-markdown": "^9.0.1",
"react-query": "^3.39.3",
"react-router-dom": "^6.19.0",
"react-router-dom": "^6.20.1",
"remark-gfm": "^4.0.0",
"tauri-plugin-autostart-api": "github:tauri-apps/tauri-plugin-autostart#v1",
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store#v1",
"vite-tsconfig-paths": "^4.2.1",
"zustand": "^4.4.6"
"vite-tsconfig-paths": "^4.2.2",
"zustand": "^4.4.7"
},
"devDependencies": {
"@tauri-apps/cli": "1.5.6",
"@tauri-apps/cli": "1.5.7",
"@testing-library/react": "^14.1.2",
"@types/node": "^20.9.1",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@vitejs/plugin-react": "^4.2.0",
"@types/node": "^20.10.4",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.1",
"postcss-preset-mantine": "^1.11.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"vite": "^5.0.0",
"vitest": "^0.34.6",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vite": "^5.0.7",
"vitest": "^1.0.4",
"vitest-canvas-mock": "^0.3.3"
}
}
Binary file modified public/media/68.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Albedo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Ayaka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Blooky Shimeji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Childe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Chongyun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Dearla.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Electro Childe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Ganyu-xll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Gengar Shimeji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Growlithe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/HOBIE shimeji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Hu Tao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Jotaro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Kamado Nezuko.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Kazuha-xll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Kazuha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Kizuna AI-ver1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Klee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Lavender Town Ghost Shimeji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Lumine-xll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Marisa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Nahida.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Punishing Bird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Puro the Latex Wolf Shimeji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/media/Pusheen.png
Binary file modified public/media/Rosaria-xll.png
Binary file modified public/media/Spongebob.png
Binary file modified public/media/Starphin Shimeji.png
Binary file modified public/media/The Chosen One.png
Binary file modified public/media/The King.png
Binary file modified public/media/Thoma.png
Binary file modified public/media/Venti-ys.png
Binary file modified public/media/XiaoCat.png
Binary file modified public/media/Xingqiu-xll.png
Binary file modified public/media/Yoimiya-ys.png
Binary file modified public/media/Yuan Ji.png
Binary file modified public/media/Zhongli-1.png
Binary file modified public/media/Zhongli-ys.png
Binary file modified public/media/Zuo Ci.png
Binary file modified public/media/honeychurros shimejiee.png
Binary file modified public/media/kuro.png
Binary file modified public/media/sanji.png
Binary file modified public/media/shimeji_Caneko.png
Binary file modified public/media/shimeji_Germouser.png
Binary file modified public/media/shimeji_Turkat.png
Binary file modified public/media/shimeji_nekojapan.png
Binary file modified public/media/shimeji_skoreacat.png
Binary file modified public/media/slugcat.png
Binary file modified public/media/tamamo shimeji.png
Loading

0 comments on commit 6e0a005

Please sign in to comment.