2026-01-15 01:13:44 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://www.schemastore.org/package.json",
|
|
|
|
|
"private": true,
|
|
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build": "vite build",
|
|
|
|
|
"build:ssr": "vite build && vite build --ssr",
|
|
|
|
|
"dev": "vite",
|
|
|
|
|
"format": "prettier --write resources/",
|
|
|
|
|
"format:check": "prettier --check resources/",
|
2026-07-04 13:53:08 +00:00
|
|
|
"lint": "eslint . --fix"
|
2026-01-15 01:13:44 +00:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@eslint/js": "^9.19.0",
|
2026-01-15 17:24:39 +00:00
|
|
|
"@laravel/echo-vue": "^2.3.0",
|
2026-01-15 01:13:44 +00:00
|
|
|
"@laravel/vite-plugin-wayfinder": "^0.1.3",
|
|
|
|
|
"@tailwindcss/vite": "^4.1.11",
|
|
|
|
|
"@types/node": "^22.13.5",
|
|
|
|
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
|
|
|
"@vue/eslint-config-typescript": "^14.3.0",
|
2026-01-16 15:36:52 +00:00
|
|
|
"chokidar": "^5.0.0",
|
2026-06-14 21:40:40 +00:00
|
|
|
"concurrently": "^10.0.3",
|
2026-01-15 01:13:44 +00:00
|
|
|
"eslint": "^9.17.0",
|
|
|
|
|
"eslint-config-prettier": "^10.0.1",
|
|
|
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
|
|
|
"eslint-plugin-import": "^2.32.0",
|
|
|
|
|
"eslint-plugin-vue": "^9.32.0",
|
2026-01-15 17:24:39 +00:00
|
|
|
"laravel-echo": "^2.3.0",
|
Crop the avatar/logo before upload with a dependency-free cropper
Selecting an avatar or workspace logo now opens a crop dialog (drag + zoom)
before uploading, so the image is framed the way it renders. The crop is
performed client-side and the resized 512x512 result is what gets uploaded.
This reworks the idea from #131 without its cropper dependency: vue-advanced-cropper
was last released ~2 years ago and we did not want an unmaintained package for
something this load-bearing. What we need is narrow (fixed 1:1, a circle/square
mask, fixed-size output), so a small canvas-based cropper covers it:
- imageCrop.ts: pure transform math (cover-fit, clamp, zoom, viewport->source).
- ImageCropperDialog.vue: CSS-transform preview, pointer drag, wheel/button zoom,
a ResizeObserver to measure the modal (no requestAnimationFrame timing hacks),
and a canvas toBlob only on save.
- PhotoUpload.vue: opens the cropper on file select; the mask shape follows the
display shape (round avatar / square logo) instead of always being round.
- crop_* strings added to all 15 locales.
Also installs Pest browser testing (pest-plugin-browser + Playwright) and adds a
browser test for the crop flow. TestCase only calls withoutVite() for non-browser
tests, since browser tests need the real Vite assets to boot the SPA. The Pest
browser server does not parse multipart uploads, so the test asserts the crop
dispatches the correct upload request; endpoint persistence stays covered by
ProfileUpdateTest.
2026-07-04 00:46:19 +00:00
|
|
|
"playwright": "^1.61.1",
|
2026-01-15 01:13:44 +00:00
|
|
|
"prettier": "^3.4.2",
|
|
|
|
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
|
|
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
2026-01-15 17:24:39 +00:00
|
|
|
"pusher-js": "^8.4.0",
|
2026-01-15 01:13:44 +00:00
|
|
|
"typescript": "^5.2.2",
|
|
|
|
|
"typescript-eslint": "^8.23.0",
|
2026-06-14 21:40:40 +00:00
|
|
|
"vite": "^8.0.16",
|
2026-01-15 01:13:44 +00:00
|
|
|
"vue-tsc": "^2.2.4"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2026-08-06 13:08:24 +00:00
|
|
|
"@inertiajs/vue3": "^3.6.1",
|
2026-01-15 17:24:39 +00:00
|
|
|
"@tabler/icons-vue": "^3.36.1",
|
2026-01-18 16:10:01 +00:00
|
|
|
"@tailwindcss/typography": "^0.5.19",
|
2026-01-15 01:13:44 +00:00
|
|
|
"@vueuse/core": "^12.8.2",
|
2026-01-17 17:44:37 +00:00
|
|
|
"axios": "^1.13.2",
|
2026-01-15 01:13:44 +00:00
|
|
|
"class-variance-authority": "^0.7.1",
|
|
|
|
|
"clsx": "^2.1.1",
|
2026-01-15 17:24:39 +00:00
|
|
|
"dayjs": "^1.11.19",
|
2026-01-17 15:36:49 +00:00
|
|
|
"embla-carousel-vue": "^8.6.0",
|
2026-05-24 12:17:19 +00:00
|
|
|
"highlight.js": "^11.11.1",
|
2026-06-14 21:40:40 +00:00
|
|
|
"laravel-vite-plugin": "^3.1.0",
|
2026-01-17 17:44:37 +00:00
|
|
|
"laravel-vue-i18n": "^2.8.0",
|
2026-01-15 17:24:39 +00:00
|
|
|
"maska": "^3.2.0",
|
2026-03-31 00:18:07 +00:00
|
|
|
"posthog-js": "^1.364.2",
|
2026-06-12 20:09:39 +00:00
|
|
|
"reka-ui": "^2.9.10",
|
2026-01-15 01:13:44 +00:00
|
|
|
"tailwind-merge": "^3.2.0",
|
|
|
|
|
"tailwindcss": "^4.1.1",
|
|
|
|
|
"tw-animate-css": "^1.2.5",
|
2026-01-17 15:36:49 +00:00
|
|
|
"vaul-vue": "^0.4.1",
|
2026-01-15 01:13:44 +00:00
|
|
|
"vue": "^3.5.13",
|
2026-01-17 15:36:49 +00:00
|
|
|
"vue-input-otp": "^0.3.2",
|
|
|
|
|
"vue-sonner": "^2.0.9"
|
2026-01-15 01:13:44 +00:00
|
|
|
},
|
|
|
|
|
"optionalDependencies": {
|
|
|
|
|
"@rollup/rollup-linux-x64-gnu": "4.9.5",
|
|
|
|
|
"@rollup/rollup-win32-x64-msvc": "4.9.5",
|
|
|
|
|
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.1",
|
|
|
|
|
"@tailwindcss/oxide-win32-x64-msvc": "^4.0.1",
|
|
|
|
|
"lightningcss-linux-x64-gnu": "^1.29.1",
|
|
|
|
|
"lightningcss-win32-x64-msvc": "^1.29.1"
|
|
|
|
|
}
|
|
|
|
|
}
|