commit 1d78a3e86410141835b5ccb9bc996ffdf4d642ff Author: Vova Date: Sun Nov 30 20:10:54 2025 +0300 Init diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..3b3dc67 --- /dev/null +++ b/.env.development @@ -0,0 +1,8 @@ +NODE_ENV=development +VITE_API_URL=https://joyworkdev.ru +VITE_LARAVEL_URL=https://llar.joyworkdev.ru +VITE_LARAVEL_API_URL=https://joyworkdev.ru +VITE_DEV_SESSION_ID=e74fad113507355529accbf75227afb8 +VITE_DEV_REQUISITION_ID=17539 +#VITE_BASIC_AUTH_USER=adminlogin +#VITE_BASIC_AUTH_PASS=adminpassword \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..1a45116 --- /dev/null +++ b/.env.production @@ -0,0 +1,8 @@ +NODE_ENV=production +VITE_API_URL=https://joyworkdev.ru +VITE_LARAVEL_URL=https://llar.joyworkdev.ru +VITE_LARAVEL_API_URL=https://joyworkdev.ru +VITE_DEV_SESSION_ID=e33a6f076567ef9c7c6a9e244f0fd626 +VITE_DEV_REQUISITION_ID=17539 +#VITE_BASIC_AUTH_USER=adminlogin +#VITE_BASIC_AUTH_PASS=adminpassword \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..1511959 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Vue 3 + Vite + +This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 ` + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..02c5d90 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "deal", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "vite", + "build:dev": "vite build --mode development && node postbuild.js", + "build:prod": "vite build --mode production && node postbuild.js", + "preview": "vite preview" + }, + "dependencies": { + "@primevue/themes": "^4.4.1", + "axios": "^1.13.2", + "dayjs": "^1.11.19", + "primeicons": "^7.0.0", + "primevue": "^4.4.1", + "vue": "^3.5.24", + "vue-router": "^4.6.3" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.1.17", + "@vitejs/plugin-vue": "^6.0.2", + "sass": "^1.94.2", + "tailwindcss": "^4.1.17", + "vite": "^7.2.4" + } +} diff --git a/postbuild.js b/postbuild.js new file mode 100644 index 0000000..032d4b3 --- /dev/null +++ b/postbuild.js @@ -0,0 +1,39 @@ +// postbuild.js +import { readFile, writeFile } from 'fs/promises'; +import { join } from 'path'; +import { fileURLToPath } from 'url'; +import { dirname } from 'path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const distPath = join(__dirname, 'dist'); +const assetsPath = join(distPath, 'assets'); + +// Читаем index.html +const indexHtml = await readFile(join(distPath, 'index.html'), 'utf-8'); + +// Обновлённые регулярки — учитывают /deal/assets/ и атрибуты +const jsMatch = indexHtml.match(/]+src="\/deal\/assets\/([^"]+\.js)"/); +const cssMatch = indexHtml.match(/]+href="\/deal\/assets\/([^"]+\.css)"/); + +if (!jsMatch || !cssMatch) { + console.error('❌ Не удалось найти JS/CSS в index.html'); + console.log('Содержимое index.html:', indexHtml.substring(0, 500)); // Для отладки + process.exit(1); +} + +const jsFile = jsMatch[1]; +const cssFile = cssMatch[1]; + +const jsContent = `// Авто-сгенерировано: postbuild.js +import '/deal/assets/${jsFile}';`; + +const cssContent = `/* Авто-сгенерировано: postbuild.js */ +@import '/deal/assets/${cssFile}';`; + +// Записываем прослойки +await writeFile(join(assetsPath, 'app.js'), jsContent); +await writeFile(join(assetsPath, 'app.css'), cssContent); + +console.log('✅ Прослойки созданы: app.js и app.css'); \ No newline at end of file diff --git a/public/vite.svg b/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..8402f75 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/assets/css/main.css b/src/assets/css/main.css new file mode 100644 index 0000000..977a9a2 --- /dev/null +++ b/src/assets/css/main.css @@ -0,0 +1,2 @@ +@import '@/assets/css/temporary.css'; +@import '@/assets/css/tailwind.css'; diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css new file mode 100644 index 0000000..f61ac57 --- /dev/null +++ b/src/assets/css/tailwind.css @@ -0,0 +1,8 @@ +@import "tailwindcss"; + +@source "../../**/*.{vue,js,ts,jsx,tsx}"; +@source "../../../index.html"; + +@theme { + +} \ No newline at end of file diff --git a/src/assets/css/temporary.css b/src/assets/css/temporary.css new file mode 100644 index 0000000..0447026 --- /dev/null +++ b/src/assets/css/temporary.css @@ -0,0 +1,26 @@ +.addDeal { + .p-2 { + padding: calc(var(--spacing) * 2)!important; + } + .p-4 { + padding: calc(var(--spacing) * 4)!important; + } + .mb-3 { + margin-bottom: calc(var(--spacing) * 3)!important; + } + .ml-4 { + margin-left: calc(var(--spacing) * 4)!important; + } + .mr-4 { + margin-right: calc(var(--spacing) * 4)!important; + } + .p-4 { + padding: calc(var(--spacing) * 4)!important; + } + .mt-4 { + margin-top: calc(var(--spacing) * 4)!important; + } + .ml-auto { + margin-left: auto!important; + } +} \ No newline at end of file diff --git a/src/assets/vue.svg b/src/assets/vue.svg new file mode 100644 index 0000000..770e9d3 --- /dev/null +++ b/src/assets/vue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue new file mode 100644 index 0000000..546ebbc --- /dev/null +++ b/src/components/HelloWorld.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/components/deals/DealModal.vue b/src/components/deals/DealModal.vue new file mode 100644 index 0000000..8c7bcad --- /dev/null +++ b/src/components/deals/DealModal.vue @@ -0,0 +1,1474 @@ + + + + + diff --git a/src/components/deals/addEdit/DocAddModal.vue b/src/components/deals/addEdit/DocAddModal.vue new file mode 100644 index 0000000..681edd7 --- /dev/null +++ b/src/components/deals/addEdit/DocAddModal.vue @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/deals/addEdit/DocsCard.vue b/src/components/deals/addEdit/DocsCard.vue new file mode 100644 index 0000000..2082254 --- /dev/null +++ b/src/components/deals/addEdit/DocsCard.vue @@ -0,0 +1,142 @@ + + + + + \ No newline at end of file diff --git a/src/components/deals/addEdit/EmployeeAddModal.vue b/src/components/deals/addEdit/EmployeeAddModal.vue new file mode 100644 index 0000000..2a16819 --- /dev/null +++ b/src/components/deals/addEdit/EmployeeAddModal.vue @@ -0,0 +1,118 @@ + + + + + \ No newline at end of file diff --git a/src/components/deals/addEdit/EmployeeCard.vue b/src/components/deals/addEdit/EmployeeCard.vue new file mode 100644 index 0000000..13d877e --- /dev/null +++ b/src/components/deals/addEdit/EmployeeCard.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/components/deals/addEdit/EmployeeList.vue b/src/components/deals/addEdit/EmployeeList.vue new file mode 100644 index 0000000..8edea59 --- /dev/null +++ b/src/components/deals/addEdit/EmployeeList.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/components/deals/addEdit/InnerDocAddModal.vue b/src/components/deals/addEdit/InnerDocAddModal.vue new file mode 100644 index 0000000..72206de --- /dev/null +++ b/src/components/deals/addEdit/InnerDocAddModal.vue @@ -0,0 +1,245 @@ +