Consolidate 3 separate applications (reports-app, data-entry-app, telegram-bot) into a unified
architecture with single backend and frontend:
Backend Changes:
- Unified FastAPI backend at backend/ with modular structure
- Modules: reports, data_entry, telegram in backend/modules/
- Centralized config.py and main.py with all routers registered
- Single worker mode (--workers 1) for Telegram bot compatibility
- Shared Oracle connection pool and JWT authentication
- Unified requirements.txt and environment configuration
Frontend Changes:
- Single Vue.js SPA with module-based routing
- Unified frontend at src/ with modules in src/modules/{reports,data-entry}/
- Shared components and stores in src/shared/
- Error boundaries for module isolation
- Dual API proxy in Vite for module communication
Infrastructure:
- New unified startup scripts: start-prod.sh, start-test.sh, start-backend.sh
- Environment templates: .env.dev.example, .env.test.example, .env.prod.example
- Updated deployment scripts for Windows IIS
- Simplified SSH tunnel management
Documentation:
- Comprehensive CLAUDE.md with architecture overview
- Module-specific docs in docs/{data-entry,telegram}/
- Architecture decision records in docs/ARCHITECTURE-DECISIONS.md
- Deployment guides consolidated in deployment/windows/docs/
This migration reduces complexity, improves maintainability, and enables easier
deployment while maintaining all existing functionality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
96 lines
3.0 KiB
JavaScript
96 lines
3.0 KiB
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import PrimeVue from 'primevue/config'
|
|
import ToastService from 'primevue/toastservice'
|
|
import ConfirmationService from 'primevue/confirmationservice'
|
|
import Tooltip from 'primevue/tooltip'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
|
|
// PrimeVue Components
|
|
import Button from 'primevue/button'
|
|
import InputText from 'primevue/inputtext'
|
|
import Password from 'primevue/password'
|
|
import DataTable from 'primevue/datatable'
|
|
import Column from 'primevue/column'
|
|
import Card from 'primevue/card'
|
|
import Toast from 'primevue/toast'
|
|
import ConfirmDialog from 'primevue/confirmdialog'
|
|
import Menu from 'primevue/menu'
|
|
import Menubar from 'primevue/menubar'
|
|
import Badge from 'primevue/badge'
|
|
import Tag from 'primevue/tag'
|
|
import Dropdown from 'primevue/dropdown'
|
|
import AutoComplete from 'primevue/autocomplete'
|
|
import Calendar from 'primevue/calendar'
|
|
import ProgressSpinner from 'primevue/progressspinner'
|
|
import Dialog from 'primevue/dialog'
|
|
import InputNumber from 'primevue/inputnumber'
|
|
import Textarea from 'primevue/textarea'
|
|
import FileUpload from 'primevue/fileupload'
|
|
import Image from 'primevue/image'
|
|
import TabView from 'primevue/tabview'
|
|
import TabPanel from 'primevue/tabpanel'
|
|
import Checkbox from 'primevue/checkbox'
|
|
import RadioButton from 'primevue/radiobutton'
|
|
import Toolbar from 'primevue/toolbar'
|
|
import Divider from 'primevue/divider'
|
|
import Message from 'primevue/message'
|
|
|
|
// PrimeVue CSS (saga-blue theme)
|
|
import 'primevue/resources/themes/saga-blue/theme.css'
|
|
import 'primevue/resources/primevue.min.css'
|
|
import 'primeicons/primeicons.css'
|
|
|
|
// Data-Entry specific CSS (original styling)
|
|
import './assets/css/data-entry.css'
|
|
|
|
const app = createApp(App)
|
|
|
|
// Pinia store
|
|
app.use(createPinia())
|
|
|
|
// Router
|
|
app.use(router)
|
|
|
|
// PrimeVue with saga-blue theme
|
|
app.use(PrimeVue, { ripple: true })
|
|
app.use(ToastService)
|
|
app.use(ConfirmationService)
|
|
|
|
// Register PrimeVue directives
|
|
app.directive('tooltip', Tooltip)
|
|
|
|
// Register PrimeVue components globally
|
|
app.component('Button', Button)
|
|
app.component('InputText', InputText)
|
|
app.component('Password', Password)
|
|
app.component('DataTable', DataTable)
|
|
app.component('Column', Column)
|
|
app.component('Card', Card)
|
|
app.component('Toast', Toast)
|
|
app.component('ConfirmDialog', ConfirmDialog)
|
|
app.component('Menu', Menu)
|
|
app.component('Menubar', Menubar)
|
|
app.component('Badge', Badge)
|
|
app.component('Tag', Tag)
|
|
app.component('Dropdown', Dropdown)
|
|
app.component('AutoComplete', AutoComplete)
|
|
app.component('Calendar', Calendar)
|
|
app.component('ProgressSpinner', ProgressSpinner)
|
|
app.component('Dialog', Dialog)
|
|
app.component('InputNumber', InputNumber)
|
|
app.component('Textarea', Textarea)
|
|
app.component('FileUpload', FileUpload)
|
|
app.component('Image', Image)
|
|
app.component('TabView', TabView)
|
|
app.component('TabPanel', TabPanel)
|
|
app.component('Checkbox', Checkbox)
|
|
app.component('RadioButton', RadioButton)
|
|
app.component('Toolbar', Toolbar)
|
|
app.component('Divider', Divider)
|
|
app.component('Message', Message)
|
|
|
|
app.mount('#app')
|