wad-lab 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +472 -631
- package/package.json +1 -1
- package/templates/fullstack-springboot-vue/frontend/vue-axios-basic/src/App.vue +241 -429
- package/templates/fullstack-springboot-vue/frontend/vue-axios-basic/src/components/ItemFormModal.vue +183 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-basic/src/components/ItemPatchModal.vue +193 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-basic/src/components/ItemTable.vue +177 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-pinia/src/App.vue +150 -441
- package/templates/fullstack-springboot-vue/frontend/vue-axios-pinia/src/components/ItemFormModal.vue +207 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-pinia/src/components/ItemStats.vue +64 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-pinia/src/components/ItemTable.vue +195 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router/src/App.vue +41 -90
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router/src/components/ItemFormModal.vue +173 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router/src/components/ItemTable.vue +102 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router/src/components/NavBar.vue +57 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router/src/views/DepartmentView.vue +132 -296
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router/src/views/EmployeeView.vue +126 -219
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/components/ItemDetail.vue +115 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/components/ItemTable.vue +104 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/components/SideBar.vue +59 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/views/CompanyLayout.vue +2 -51
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/views/DepartmentListView.vue +92 -250
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/views/EmployeeDetailView.vue +59 -181
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-children/src/views/EmployeeListView.vue +67 -315
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/App.vue +19 -70
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/components/ItemFormModal.vue +173 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/components/ItemPatchModal.vue +144 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/components/ItemTable.vue +102 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/components/NavBar.vue +53 -0
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/views/DepartmentView.vue +107 -229
- package/templates/fullstack-springboot-vue/frontend/vue-axios-router-pinia/src/views/EmployeeView.vue +143 -257
- package/templates/game-bingo/script.js +1 -1
- package/templates/game-memory-cards/script.js +2 -2
- package/templates/game-rock-paper-scissors/index.html +3 -3
- package/templates/game-rock-paper-scissors/script.js +2 -2
- package/templates/game-tic-tac-toe/script.js +2 -2
- package/templates/game-whack-a-mole/index.html +9 -9
- package/templates/servlet-basic/WEB-INF/ItemServlet.java +13 -0
- package/templates/servlet-basic/WEB-INF/classes/ItemServlet.class +0 -0
- package/templates/servlet-flow/WEB-INF/HelloServlet.java +34 -25
- package/templates/servlet-flow/WEB-INF/classes/HelloServlet.class +0 -0
- package/templates/servlet-jdbc/WEB-INF/JdbcItemServlet.java +13 -0
- package/templates/servlet-jdbc/WEB-INF/classes/JdbcItemServlet.class +0 -0
- package/templates/snippets/mongo-queries-cheatsheet.txt +105 -0
- package/templates/springboot-2model-aggregation-join/.mvn/wrapper/maven-wrapper.properties +3 -0
- package/templates/springboot-2model-aggregation-join/mvnw +295 -0
- package/templates/springboot-2model-aggregation-join/mvnw.cmd +189 -0
- package/templates/springboot-2model-aggregation-join/pom.xml +54 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/AggregationApplication.java +11 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/controller/DepartmentController.java +65 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/controller/EmployeeController.java +65 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/dto/DepartmentStatsDTO.java +15 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/dto/EmployeeJoinDTO.java +19 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/model/Department.java +20 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/model/Employee.java +21 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/repository/DepartmentRepository.java +9 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/repository/EmployeeRepository.java +9 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/service/DepartmentService.java +81 -0
- package/templates/springboot-2model-aggregation-join/src/main/java/com/example/aggregation/service/EmployeeService.java +80 -0
- package/templates/springboot-2model-aggregation-join/src/main/resources/application.properties +2 -0
- package/templates/springboot-2model-aggregation-join/src/test/java/com/example/aggregation/AggregationApplicationTests.java +13 -0
- package/templates/vue-2model-crud-patch/README.md +64 -0
- package/templates/vue-2model-crud-patch/index.html +12 -0
- package/templates/vue-2model-crud-patch/package-lock.json +1785 -0
- package/templates/vue-2model-crud-patch/package.json +21 -0
- package/templates/vue-2model-crud-patch/src/App.vue +63 -0
- package/templates/vue-2model-crud-patch/src/components/AnalyticsBoard.vue +291 -0
- package/templates/vue-2model-crud-patch/src/components/DepartmentFormModal.vue +138 -0
- package/templates/vue-2model-crud-patch/src/components/DepartmentPatchModal.vue +210 -0
- package/templates/vue-2model-crud-patch/src/components/DepartmentTable.vue +133 -0
- package/templates/vue-2model-crud-patch/src/components/EmployeeFormModal.vue +177 -0
- package/templates/vue-2model-crud-patch/src/components/EmployeePatchModal.vue +221 -0
- package/templates/vue-2model-crud-patch/src/components/EmployeeTable.vue +171 -0
- package/templates/vue-2model-crud-patch/src/components/NavBar.vue +156 -0
- package/templates/vue-2model-crud-patch/src/main.js +12 -0
- package/templates/vue-2model-crud-patch/src/router/index.js +33 -0
- package/templates/vue-2model-crud-patch/src/services/api.js +64 -0
- package/templates/vue-2model-crud-patch/src/stores/departmentStore.js +149 -0
- package/templates/vue-2model-crud-patch/src/stores/employeeStore.js +143 -0
- package/templates/vue-2model-crud-patch/src/style.css +415 -0
- package/templates/vue-2model-crud-patch/src/views/AnalyticsView.vue +59 -0
- package/templates/vue-2model-crud-patch/src/views/DepartmentsView.vue +135 -0
- package/templates/vue-2model-crud-patch/src/views/EmployeesView.vue +143 -0
- package/templates/vue-2model-crud-patch/vite.config.js +9 -0
- package/templates/vue-axios/src/App.vue +255 -264
- package/templates/vue-axios/src/components/ItemFormModal.vue +183 -0
- package/templates/vue-axios/src/components/ItemPatchModal.vue +193 -0
- package/templates/vue-axios/src/components/ItemTable.vue +177 -0
- package/templates/vue-axios-basic/src/App.vue +241 -429
- package/templates/vue-axios-basic/src/components/ItemFormModal.vue +183 -0
- package/templates/vue-axios-basic/src/components/ItemPatchModal.vue +193 -0
- package/templates/vue-axios-basic/src/components/ItemTable.vue +177 -0
- package/templates/vue-axios-pinia/src/App.vue +150 -441
- package/templates/vue-axios-pinia/src/components/ItemFormModal.vue +207 -0
- package/templates/vue-axios-pinia/src/components/ItemStats.vue +64 -0
- package/templates/vue-axios-pinia/src/components/ItemTable.vue +195 -0
- package/templates/vue-axios-router/src/App.vue +41 -90
- package/templates/vue-axios-router/src/components/ItemFormModal.vue +173 -0
- package/templates/vue-axios-router/src/components/ItemTable.vue +102 -0
- package/templates/vue-axios-router/src/components/NavBar.vue +57 -0
- package/templates/vue-axios-router/src/views/DepartmentView.vue +132 -296
- package/templates/vue-axios-router/src/views/EmployeeView.vue +126 -219
- package/templates/vue-axios-router-children/src/components/ItemDetail.vue +115 -0
- package/templates/vue-axios-router-children/src/components/ItemTable.vue +104 -0
- package/templates/vue-axios-router-children/src/components/SideBar.vue +59 -0
- package/templates/vue-axios-router-children/src/views/CompanyLayout.vue +2 -51
- package/templates/vue-axios-router-children/src/views/DepartmentListView.vue +92 -250
- package/templates/vue-axios-router-children/src/views/EmployeeDetailView.vue +59 -181
- package/templates/vue-axios-router-children/src/views/EmployeeListView.vue +67 -315
- package/templates/vue-axios-router-pinia/src/App.vue +19 -70
- package/templates/vue-axios-router-pinia/src/components/ItemFormModal.vue +173 -0
- package/templates/vue-axios-router-pinia/src/components/ItemPatchModal.vue +144 -0
- package/templates/vue-axios-router-pinia/src/components/ItemTable.vue +102 -0
- package/templates/vue-axios-router-pinia/src/components/NavBar.vue +53 -0
- package/templates/vue-axios-router-pinia/src/views/DepartmentView.vue +107 -229
- package/templates/vue-axios-router-pinia/src/views/EmployeeView.vue +143 -257
- package/templates/vue-banking-app/src/components/AccountOverview.vue +75 -0
- package/templates/vue-banking-app/src/components/TransactionForm.vue +89 -0
- package/templates/vue-banking-app/src/components/TransactionTable.vue +113 -0
- package/templates/vue-banking-app/src/stores/bankStore.js +16 -3
- package/templates/vue-banking-app/src/views/DashboardView.vue +23 -71
- package/templates/vue-banking-app/src/views/StatementView.vue +11 -158
- package/templates/vue-banking-app/src/views/TransactionFormView.vue +23 -121
- package/templates/vue-basics/src/App.vue +105 -76
- package/templates/vue-basics/src/components/CounterCard.vue +107 -0
- package/templates/vue-basics/src/components/ItemList.vue +99 -0
- package/templates/vue-basics/src/components/UserForm.vue +138 -0
- package/templates/vue-cart-router-pinia/src/components/CartSummary.vue +139 -0
- package/templates/vue-cart-router-pinia/src/components/CheckoutModal.vue +149 -0
- package/templates/vue-cart-router-pinia/src/components/ProductCard.vue +63 -0
- package/templates/vue-cart-router-pinia/src/stores/cartStore.js +11 -0
- package/templates/vue-cart-router-pinia/src/views/CartView.vue +52 -118
- package/templates/vue-cart-router-pinia/src/views/CheckoutView.vue +2 -5
- package/templates/vue-cart-router-pinia/src/views/ProductCatalogView.vue +20 -56
- package/templates/vue-employee-system/src/App.vue +75 -344
- package/templates/vue-employee-system/src/components/DepartmentFilter.vue +108 -0
- package/templates/vue-employee-system/src/components/EmployeeModal.vue +183 -0
- package/templates/vue-employee-system/src/components/EmployeeTable.vue +91 -0
- package/templates/vue-employee-system/src/stores/employeeStore.js +12 -0
- package/templates/vue-fetch/src/App.vue +261 -285
- package/templates/vue-fetch/src/components/FetchFormModal.vue +183 -0
- package/templates/vue-fetch/src/components/FetchPatchModal.vue +193 -0
- package/templates/vue-fetch/src/components/FetchTable.vue +177 -0
- package/templates/vue-food-ordering/src/components/CartSummary.vue +134 -0
- package/templates/vue-food-ordering/src/components/FoodMenu.vue +126 -0
- package/templates/vue-food-ordering/src/components/OrderModal.vue +150 -0
- package/templates/vue-food-ordering/src/views/MenuView.vue +11 -132
- package/templates/vue-food-ordering/src/views/OrderCartView.vue +31 -164
- package/templates/vue-game-rps/src/App.vue +29 -88
- package/templates/vue-game-tictactoe/src/App.vue +23 -53
- package/templates/vue-game-whackamole/src/App.vue +44 -63
- package/templates/vue-hospital-portal/src/components/AppointmentForm.vue +144 -0
- package/templates/vue-hospital-portal/src/components/DoctorCard.vue +73 -0
- package/templates/vue-hospital-portal/src/components/PatientTable.vue +123 -0
- package/templates/vue-hospital-portal/src/stores/hospitalStore.js +10 -1
- package/templates/vue-hospital-portal/src/views/OPDRegistrationView.vue +40 -416
- package/templates/vue-hospital-portal/src/views/PatientListView.vue +11 -301
- package/templates/vue-library-system/src/components/BookForm.vue +125 -0
- package/templates/vue-library-system/src/components/BookTable.vue +112 -0
- package/templates/vue-library-system/src/components/BorrowModal.vue +131 -0
- package/templates/vue-library-system/src/stores/libraryStore.js +26 -1
- package/templates/vue-library-system/src/views/BookCatalogView.vue +34 -415
- package/templates/vue-memory-game/src/App.vue +36 -40
- package/templates/vue-memory-game/src/stores/memoryStore.js +32 -37
- package/templates/vue-router/src/App.vue +24 -14
- package/templates/vue-router/src/components/AboutCard.vue +38 -0
- package/templates/vue-router/src/components/HomeHero.vue +75 -0
- package/templates/vue-router/src/components/NavBar.vue +54 -0
- package/templates/vue-router/src/views/ItemsLayout.vue +17 -9
- package/templates/vue-router/src/views/ListView.vue +106 -18
- package/templates/vue-router-pinia/src/App.vue +24 -14
- package/templates/vue-router-pinia/src/components/ItemFormModal.vue +163 -0
- package/templates/vue-router-pinia/src/components/ItemTable.vue +90 -0
- package/templates/vue-router-pinia/src/components/NavBar.vue +54 -0
- package/templates/vue-router-pinia/src/stores/itemStore.js +8 -1
- package/templates/vue-router-pinia/src/views/ListView.vue +78 -14
- package/templates/vue-router-pinia-springboot/frontend/src/App.vue +25 -8
- package/templates/vue-router-pinia-springboot/frontend/src/components/ItemFormModal.vue +183 -0
- package/templates/vue-router-pinia-springboot/frontend/src/components/ItemPatchModal.vue +193 -0
- package/templates/vue-router-pinia-springboot/frontend/src/components/ItemTable.vue +177 -0
- package/templates/vue-router-pinia-springboot/frontend/src/components/NavBar.vue +54 -0
- package/templates/vue-router-pinia-springboot/frontend/src/views/ListView.vue +92 -76
- package/templates/vue-springboot-mongo-aggregation/frontend/src/App.vue +184 -193
- package/templates/vue-springboot-mongo-aggregation/frontend/src/components/AnalyticsCards.vue +56 -0
- package/templates/vue-springboot-mongo-aggregation/frontend/src/components/CategorySummaryTable.vue +71 -0
- package/templates/vue-springboot-mongo-aggregation/frontend/src/components/ItemTable.vue +114 -0
- package/templates/vue-springboot-mongo-crud/frontend/src/App.vue +228 -158
- package/templates/vue-springboot-mongo-crud/frontend/src/components/ItemFormModal.vue +183 -0
- package/templates/vue-springboot-mongo-crud/frontend/src/components/ItemPatchModal.vue +193 -0
- package/templates/vue-springboot-mongo-crud/frontend/src/components/ItemTable.vue +177 -0
- package/templates/vue-symposium-system/src/App.vue +41 -256
- package/templates/vue-symposium-system/src/components/AttendeeTable.vue +100 -0
- package/templates/vue-symposium-system/src/components/EventCard.vue +67 -0
- package/templates/vue-symposium-system/src/components/RegistrationForm.vue +118 -0
- package/templates/vue-symposium-system/src/stores/symposiumStore.js +10 -0
- package/templates/vue-todo-pinia/src/App.vue +40 -138
- package/templates/vue-todo-pinia/src/components/TodoFilter.vue +74 -0
- package/templates/vue-todo-pinia/src/components/TodoInput.vue +53 -0
- package/templates/vue-todo-pinia/src/components/TodoList.vue +101 -0
- package/templates/vue-todo-pinia/src/stores/todoStore.js +6 -0
- package/templates/vue-todo-router/src/App.vue +5 -36
- package/templates/vue-todo-router/src/components/TodoForm.vue +78 -0
- package/templates/vue-todo-router/src/components/TodoList.vue +84 -0
- package/templates/vue-todo-router/src/components/TodoNavBar.vue +47 -0
- package/templates/vue-todo-router/src/data/todoState.js +7 -0
- package/templates/vue-todo-router/src/views/AddTodoView.vue +7 -66
- package/templates/vue-todo-router/src/views/TodoDetailView.vue +15 -1
- package/templates/vue-todo-router/src/views/TodoListView.vue +22 -64
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { defineStore } from 'pinia'
|
|
2
|
+
import api from '../services/api'
|
|
3
|
+
|
|
4
|
+
export const useDepartmentStore = defineStore('department', {
|
|
5
|
+
state: () => ({
|
|
6
|
+
departments: [],
|
|
7
|
+
selectedDepartment: null,
|
|
8
|
+
stats: [],
|
|
9
|
+
loading: false,
|
|
10
|
+
error: null
|
|
11
|
+
}),
|
|
12
|
+
|
|
13
|
+
actions: {
|
|
14
|
+
async getAll() {
|
|
15
|
+
this.loading = true
|
|
16
|
+
this.error = null
|
|
17
|
+
try {
|
|
18
|
+
const response = await api.departments.getAll()
|
|
19
|
+
this.departments = Array.isArray(response.data) ? response.data : []
|
|
20
|
+
return this.departments
|
|
21
|
+
} catch (err) {
|
|
22
|
+
this.error = err.message || 'Failed to fetch departments'
|
|
23
|
+
throw err
|
|
24
|
+
} finally {
|
|
25
|
+
this.loading = false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
async getById(id) {
|
|
30
|
+
this.loading = true
|
|
31
|
+
this.error = null
|
|
32
|
+
try {
|
|
33
|
+
const response = await api.departments.getById(id)
|
|
34
|
+
this.selectedDepartment = response.data
|
|
35
|
+
return response.data
|
|
36
|
+
} catch (err) {
|
|
37
|
+
this.error = err.message || `Failed to fetch department ${id}`
|
|
38
|
+
throw err
|
|
39
|
+
} finally {
|
|
40
|
+
this.loading = false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
async create(data) {
|
|
45
|
+
this.loading = true
|
|
46
|
+
this.error = null
|
|
47
|
+
try {
|
|
48
|
+
const response = await api.departments.create(data)
|
|
49
|
+
this.departments.push(response.data)
|
|
50
|
+
return response.data
|
|
51
|
+
} catch (err) {
|
|
52
|
+
this.error = err.message || 'Failed to create department'
|
|
53
|
+
throw err
|
|
54
|
+
} finally {
|
|
55
|
+
this.loading = false
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
async update(id, data) {
|
|
60
|
+
this.loading = true
|
|
61
|
+
this.error = null
|
|
62
|
+
try {
|
|
63
|
+
const response = await api.departments.update(id, data)
|
|
64
|
+
const updated = response.data
|
|
65
|
+
const index = this.departments.findIndex((d) => d.id === id)
|
|
66
|
+
if (index !== -1) {
|
|
67
|
+
this.departments[index] = updated
|
|
68
|
+
}
|
|
69
|
+
return updated
|
|
70
|
+
} catch (err) {
|
|
71
|
+
this.error = err.message || `Failed to update department ${id}`
|
|
72
|
+
throw err
|
|
73
|
+
} finally {
|
|
74
|
+
this.loading = false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
async patch(id, data) {
|
|
79
|
+
this.loading = true
|
|
80
|
+
this.error = null
|
|
81
|
+
try {
|
|
82
|
+
const response = await api.departments.patch(id, data)
|
|
83
|
+
const patched = response.data
|
|
84
|
+
const index = this.departments.findIndex((d) => d.id === id)
|
|
85
|
+
if (index !== -1) {
|
|
86
|
+
this.departments[index] = { ...this.departments[index], ...patched }
|
|
87
|
+
}
|
|
88
|
+
return patched
|
|
89
|
+
} catch (err) {
|
|
90
|
+
this.error = err.message || `Failed to patch department ${id}`
|
|
91
|
+
throw err
|
|
92
|
+
} finally {
|
|
93
|
+
this.loading = false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
async remove(id) {
|
|
98
|
+
this.loading = true
|
|
99
|
+
this.error = null
|
|
100
|
+
try {
|
|
101
|
+
await api.departments.remove(id)
|
|
102
|
+
this.departments = this.departments.filter((d) => d.id !== id)
|
|
103
|
+
} catch (err) {
|
|
104
|
+
this.error = err.message || `Failed to delete department ${id}`
|
|
105
|
+
throw err
|
|
106
|
+
} finally {
|
|
107
|
+
this.loading = false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
async fetchStats(employeesList = []) {
|
|
112
|
+
this.loading = true
|
|
113
|
+
this.error = null
|
|
114
|
+
try {
|
|
115
|
+
const response = await api.departments.getStats()
|
|
116
|
+
this.stats = Array.isArray(response.data) ? response.data : []
|
|
117
|
+
return this.stats
|
|
118
|
+
} catch (err) {
|
|
119
|
+
// Fallback: derive group aggregation client-side if backend stats endpoint is not available
|
|
120
|
+
const computed = this.departments.map((dept) => {
|
|
121
|
+
const deptEmployees = employeesList.filter(
|
|
122
|
+
(e) => e.departmentId === dept.id || e.departmentId === dept.name
|
|
123
|
+
)
|
|
124
|
+
const headcount = deptEmployees.length
|
|
125
|
+
const totalPayroll = deptEmployees.reduce(
|
|
126
|
+
(sum, e) => sum + (Number(e.salary) || 0),
|
|
127
|
+
0
|
|
128
|
+
)
|
|
129
|
+
const avgSalary = headcount > 0 ? Math.round(totalPayroll / headcount) : 0
|
|
130
|
+
const budget = Number(dept.budget) || 0
|
|
131
|
+
return {
|
|
132
|
+
departmentId: dept.id,
|
|
133
|
+
departmentName: dept.name,
|
|
134
|
+
location: dept.location,
|
|
135
|
+
budget,
|
|
136
|
+
headcount,
|
|
137
|
+
totalPayroll,
|
|
138
|
+
avgSalary,
|
|
139
|
+
budgetVariance: budget - totalPayroll
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
this.stats = computed
|
|
143
|
+
return this.stats
|
|
144
|
+
} finally {
|
|
145
|
+
this.loading = false
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
})
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineStore } from 'pinia'
|
|
2
|
+
import api from '../services/api'
|
|
3
|
+
|
|
4
|
+
export const useEmployeeStore = defineStore('employee', {
|
|
5
|
+
state: () => ({
|
|
6
|
+
employees: [],
|
|
7
|
+
selectedEmployee: null,
|
|
8
|
+
joinedData: [],
|
|
9
|
+
loading: false,
|
|
10
|
+
error: null
|
|
11
|
+
}),
|
|
12
|
+
|
|
13
|
+
actions: {
|
|
14
|
+
async getAll() {
|
|
15
|
+
this.loading = true
|
|
16
|
+
this.error = null
|
|
17
|
+
try {
|
|
18
|
+
const response = await api.employees.getAll()
|
|
19
|
+
this.employees = Array.isArray(response.data) ? response.data : []
|
|
20
|
+
return this.employees
|
|
21
|
+
} catch (err) {
|
|
22
|
+
this.error = err.message || 'Failed to fetch employees'
|
|
23
|
+
throw err
|
|
24
|
+
} finally {
|
|
25
|
+
this.loading = false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
async getById(id) {
|
|
30
|
+
this.loading = true
|
|
31
|
+
this.error = null
|
|
32
|
+
try {
|
|
33
|
+
const response = await api.employees.getById(id)
|
|
34
|
+
this.selectedEmployee = response.data
|
|
35
|
+
return response.data
|
|
36
|
+
} catch (err) {
|
|
37
|
+
this.error = err.message || `Failed to fetch employee ${id}`
|
|
38
|
+
throw err
|
|
39
|
+
} finally {
|
|
40
|
+
this.loading = false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
async create(data) {
|
|
45
|
+
this.loading = true
|
|
46
|
+
this.error = null
|
|
47
|
+
try {
|
|
48
|
+
const response = await api.employees.create(data)
|
|
49
|
+
this.employees.push(response.data)
|
|
50
|
+
return response.data
|
|
51
|
+
} catch (err) {
|
|
52
|
+
this.error = err.message || 'Failed to create employee'
|
|
53
|
+
throw err
|
|
54
|
+
} finally {
|
|
55
|
+
this.loading = false
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
async update(id, data) {
|
|
60
|
+
this.loading = true
|
|
61
|
+
this.error = null
|
|
62
|
+
try {
|
|
63
|
+
const response = await api.employees.update(id, data)
|
|
64
|
+
const updated = response.data
|
|
65
|
+
const index = this.employees.findIndex((e) => e.id === id)
|
|
66
|
+
if (index !== -1) {
|
|
67
|
+
this.employees[index] = updated
|
|
68
|
+
}
|
|
69
|
+
return updated
|
|
70
|
+
} catch (err) {
|
|
71
|
+
this.error = err.message || `Failed to update employee ${id}`
|
|
72
|
+
throw err
|
|
73
|
+
} finally {
|
|
74
|
+
this.loading = false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
async patch(id, data) {
|
|
79
|
+
this.loading = true
|
|
80
|
+
this.error = null
|
|
81
|
+
try {
|
|
82
|
+
const response = await api.employees.patch(id, data)
|
|
83
|
+
const patched = response.data
|
|
84
|
+
const index = this.employees.findIndex((e) => e.id === id)
|
|
85
|
+
if (index !== -1) {
|
|
86
|
+
this.employees[index] = { ...this.employees[index], ...patched }
|
|
87
|
+
}
|
|
88
|
+
return patched
|
|
89
|
+
} catch (err) {
|
|
90
|
+
this.error = err.message || `Failed to patch employee ${id}`
|
|
91
|
+
throw err
|
|
92
|
+
} finally {
|
|
93
|
+
this.loading = false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
async remove(id) {
|
|
98
|
+
this.loading = true
|
|
99
|
+
this.error = null
|
|
100
|
+
try {
|
|
101
|
+
await api.employees.remove(id)
|
|
102
|
+
this.employees = this.employees.filter((e) => e.id !== id)
|
|
103
|
+
} catch (err) {
|
|
104
|
+
this.error = err.message || `Failed to delete employee ${id}`
|
|
105
|
+
throw err
|
|
106
|
+
} finally {
|
|
107
|
+
this.loading = false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
async fetchJoined(departmentsList = []) {
|
|
112
|
+
this.loading = true
|
|
113
|
+
this.error = null
|
|
114
|
+
try {
|
|
115
|
+
const response = await api.employees.getJoined()
|
|
116
|
+
this.joinedData = Array.isArray(response.data) ? response.data : []
|
|
117
|
+
return this.joinedData
|
|
118
|
+
} catch (err) {
|
|
119
|
+
// Fallback: derive MongoDB-style $lookup joined data client-side
|
|
120
|
+
const joined = this.employees.map((emp) => {
|
|
121
|
+
const dept = departmentsList.find(
|
|
122
|
+
(d) => d.id === emp.departmentId || d.name === emp.departmentId
|
|
123
|
+
)
|
|
124
|
+
return {
|
|
125
|
+
id: emp.id,
|
|
126
|
+
name: emp.name,
|
|
127
|
+
email: emp.email,
|
|
128
|
+
role: emp.role,
|
|
129
|
+
salary: emp.salary,
|
|
130
|
+
departmentId: emp.departmentId,
|
|
131
|
+
departmentName: dept ? dept.name : 'Unassigned',
|
|
132
|
+
departmentLocation: dept ? dept.location : 'N/A',
|
|
133
|
+
departmentBudget: dept ? dept.budget : 0
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
this.joinedData = joined
|
|
137
|
+
return this.joinedData
|
|
138
|
+
} finally {
|
|
139
|
+
this.loading = false
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
})
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--primary: #2563eb;
|
|
3
|
+
--primary-hover: #1d4ed8;
|
|
4
|
+
--primary-light: #eff6ff;
|
|
5
|
+
--secondary: #64748b;
|
|
6
|
+
--secondary-hover: #475569;
|
|
7
|
+
--success: #16a34a;
|
|
8
|
+
--success-hover: #15803d;
|
|
9
|
+
--warning: #d97706;
|
|
10
|
+
--warning-hover: #b45309;
|
|
11
|
+
--danger: #dc2626;
|
|
12
|
+
--danger-hover: #b91c1c;
|
|
13
|
+
--patch: #7c3aed;
|
|
14
|
+
--patch-hover: #6d28d9;
|
|
15
|
+
--bg-main: #f8fafc;
|
|
16
|
+
--card-bg: #ffffff;
|
|
17
|
+
--border-color: #e2e8f0;
|
|
18
|
+
--text-main: #0f172a;
|
|
19
|
+
--text-muted: #64748b;
|
|
20
|
+
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
21
|
+
--radius-sm: 4px;
|
|
22
|
+
--radius-md: 8px;
|
|
23
|
+
--radius-lg: 12px;
|
|
24
|
+
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
25
|
+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
26
|
+
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
* {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body {
|
|
36
|
+
font-family: var(--font-family);
|
|
37
|
+
background-color: var(--bg-main);
|
|
38
|
+
color: var(--text-main);
|
|
39
|
+
line-height: 1.5;
|
|
40
|
+
-webkit-font-smoothing: antialiased;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.app-wrapper {
|
|
44
|
+
min-height: 100vh;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.main-container {
|
|
50
|
+
max-width: 1200px;
|
|
51
|
+
width: 100%;
|
|
52
|
+
margin: 0 auto;
|
|
53
|
+
padding: 24px 16px;
|
|
54
|
+
flex: 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Card */
|
|
58
|
+
.card {
|
|
59
|
+
background: var(--card-bg);
|
|
60
|
+
border: 1px solid var(--border-color);
|
|
61
|
+
border-radius: var(--radius-md);
|
|
62
|
+
padding: 20px;
|
|
63
|
+
box-shadow: var(--shadow-sm);
|
|
64
|
+
margin-bottom: 24px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.card-header {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
align-items: center;
|
|
71
|
+
margin-bottom: 16px;
|
|
72
|
+
padding-bottom: 12px;
|
|
73
|
+
border-bottom: 1px solid var(--border-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.card-title {
|
|
77
|
+
font-size: 1.25rem;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
color: var(--text-main);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.card-subtitle {
|
|
83
|
+
font-size: 0.875rem;
|
|
84
|
+
color: var(--text-muted);
|
|
85
|
+
margin-top: 2px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Buttons */
|
|
89
|
+
.btn {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
font-size: 0.875rem;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
padding: 8px 16px;
|
|
96
|
+
border-radius: var(--radius-sm);
|
|
97
|
+
border: 1px solid transparent;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
transition: all 0.15s ease-in-out;
|
|
100
|
+
text-decoration: none;
|
|
101
|
+
line-height: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.btn:disabled {
|
|
105
|
+
opacity: 0.6;
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.btn-primary {
|
|
110
|
+
background-color: var(--primary);
|
|
111
|
+
color: #ffffff;
|
|
112
|
+
}
|
|
113
|
+
.btn-primary:hover:not(:disabled) {
|
|
114
|
+
background-color: var(--primary-hover);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.btn-secondary {
|
|
118
|
+
background-color: #f1f5f9;
|
|
119
|
+
color: var(--text-main);
|
|
120
|
+
border-color: var(--border-color);
|
|
121
|
+
}
|
|
122
|
+
.btn-secondary:hover:not(:disabled) {
|
|
123
|
+
background-color: #e2e8f0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.btn-patch {
|
|
127
|
+
background-color: var(--patch);
|
|
128
|
+
color: #ffffff;
|
|
129
|
+
}
|
|
130
|
+
.btn-patch:hover:not(:disabled) {
|
|
131
|
+
background-color: var(--patch-hover);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.btn-danger {
|
|
135
|
+
background-color: var(--danger);
|
|
136
|
+
color: #ffffff;
|
|
137
|
+
}
|
|
138
|
+
.btn-danger:hover:not(:disabled) {
|
|
139
|
+
background-color: var(--danger-hover);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.btn-sm {
|
|
143
|
+
padding: 4px 10px;
|
|
144
|
+
font-size: 0.75rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.btn-group {
|
|
148
|
+
display: flex;
|
|
149
|
+
gap: 6px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Table */
|
|
153
|
+
.table-responsive {
|
|
154
|
+
width: 100%;
|
|
155
|
+
overflow-x: auto;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.data-table {
|
|
159
|
+
width: 100%;
|
|
160
|
+
border-collapse: collapse;
|
|
161
|
+
text-align: left;
|
|
162
|
+
font-size: 0.875rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.data-table th {
|
|
166
|
+
background-color: #f8fafc;
|
|
167
|
+
color: var(--text-muted);
|
|
168
|
+
font-weight: 600;
|
|
169
|
+
text-transform: uppercase;
|
|
170
|
+
font-size: 0.75rem;
|
|
171
|
+
letter-spacing: 0.05em;
|
|
172
|
+
padding: 12px 14px;
|
|
173
|
+
border-bottom: 2px solid var(--border-color);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.data-table td {
|
|
177
|
+
padding: 12px 14px;
|
|
178
|
+
border-bottom: 1px solid var(--border-color);
|
|
179
|
+
color: var(--text-main);
|
|
180
|
+
vertical-align: middle;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.data-table tbody tr:hover {
|
|
184
|
+
background-color: #f8fafc;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Forms */
|
|
188
|
+
.form-group {
|
|
189
|
+
margin-bottom: 16px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.form-label {
|
|
193
|
+
display: block;
|
|
194
|
+
font-size: 0.875rem;
|
|
195
|
+
font-weight: 500;
|
|
196
|
+
margin-bottom: 6px;
|
|
197
|
+
color: var(--text-main);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.form-control {
|
|
201
|
+
width: 100%;
|
|
202
|
+
padding: 8px 12px;
|
|
203
|
+
font-size: 0.875rem;
|
|
204
|
+
border: 1px solid var(--border-color);
|
|
205
|
+
border-radius: var(--radius-sm);
|
|
206
|
+
background-color: #ffffff;
|
|
207
|
+
color: var(--text-main);
|
|
208
|
+
transition: border-color 0.15s ease-in-out;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.form-control:focus {
|
|
212
|
+
outline: none;
|
|
213
|
+
border-color: var(--primary);
|
|
214
|
+
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.form-control:disabled {
|
|
218
|
+
background-color: #f1f5f9;
|
|
219
|
+
cursor: not-allowed;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.form-check {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: 8px;
|
|
226
|
+
margin-bottom: 8px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.form-check-input {
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Modal */
|
|
234
|
+
.modal-overlay {
|
|
235
|
+
position: fixed;
|
|
236
|
+
top: 0;
|
|
237
|
+
left: 0;
|
|
238
|
+
right: 0;
|
|
239
|
+
bottom: 0;
|
|
240
|
+
background-color: rgba(15, 23, 42, 0.5);
|
|
241
|
+
display: flex;
|
|
242
|
+
align-items: center;
|
|
243
|
+
justify-content: center;
|
|
244
|
+
z-index: 1000;
|
|
245
|
+
padding: 16px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.modal-container {
|
|
249
|
+
background: #ffffff;
|
|
250
|
+
border-radius: var(--radius-md);
|
|
251
|
+
box-shadow: var(--shadow-lg);
|
|
252
|
+
max-width: 520px;
|
|
253
|
+
width: 100%;
|
|
254
|
+
max-height: 90vh;
|
|
255
|
+
overflow-y: auto;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.modal-header {
|
|
259
|
+
display: flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: space-between;
|
|
262
|
+
padding: 16px 20px;
|
|
263
|
+
border-bottom: 1px solid var(--border-color);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.modal-title {
|
|
267
|
+
font-size: 1.125rem;
|
|
268
|
+
font-weight: 600;
|
|
269
|
+
color: var(--text-main);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.modal-close-btn {
|
|
273
|
+
background: none;
|
|
274
|
+
border: none;
|
|
275
|
+
font-size: 1.25rem;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
color: var(--text-muted);
|
|
278
|
+
line-height: 1;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.modal-close-btn:hover {
|
|
282
|
+
color: var(--text-main);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.modal-body {
|
|
286
|
+
padding: 20px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.modal-footer {
|
|
290
|
+
display: flex;
|
|
291
|
+
justify-content: flex-end;
|
|
292
|
+
gap: 10px;
|
|
293
|
+
padding: 14px 20px;
|
|
294
|
+
border-top: 1px solid var(--border-color);
|
|
295
|
+
background-color: #f8fafc;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* Badges */
|
|
299
|
+
.badge {
|
|
300
|
+
display: inline-block;
|
|
301
|
+
padding: 3px 8px;
|
|
302
|
+
font-size: 0.75rem;
|
|
303
|
+
font-weight: 600;
|
|
304
|
+
border-radius: 9999px;
|
|
305
|
+
line-height: 1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.badge-primary {
|
|
309
|
+
background-color: var(--primary-light);
|
|
310
|
+
color: var(--primary);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.badge-secondary {
|
|
314
|
+
background-color: #f1f5f9;
|
|
315
|
+
color: var(--secondary);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.badge-success {
|
|
319
|
+
background-color: #dcfce7;
|
|
320
|
+
color: var(--success);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.badge-patch {
|
|
324
|
+
background-color: #f3e8ff;
|
|
325
|
+
color: var(--patch);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.badge-danger {
|
|
329
|
+
background-color: #fee2e2;
|
|
330
|
+
color: var(--danger);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* Metric / Stat Card */
|
|
334
|
+
.metric-grid {
|
|
335
|
+
display: grid;
|
|
336
|
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
337
|
+
gap: 16px;
|
|
338
|
+
margin-bottom: 24px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.metric-card {
|
|
342
|
+
background: #ffffff;
|
|
343
|
+
border: 1px solid var(--border-color);
|
|
344
|
+
border-radius: var(--radius-md);
|
|
345
|
+
padding: 18px;
|
|
346
|
+
box-shadow: var(--shadow-sm);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.metric-card-label {
|
|
350
|
+
font-size: 0.75rem;
|
|
351
|
+
text-transform: uppercase;
|
|
352
|
+
color: var(--text-muted);
|
|
353
|
+
font-weight: 600;
|
|
354
|
+
letter-spacing: 0.05em;
|
|
355
|
+
margin-bottom: 6px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.metric-card-value {
|
|
359
|
+
font-size: 1.625rem;
|
|
360
|
+
font-weight: 700;
|
|
361
|
+
color: var(--text-main);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.metric-card-hint {
|
|
365
|
+
font-size: 0.75rem;
|
|
366
|
+
color: var(--text-muted);
|
|
367
|
+
margin-top: 4px;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* Code Preview */
|
|
371
|
+
.code-preview {
|
|
372
|
+
background-color: #0f172a;
|
|
373
|
+
color: #e2e8f0;
|
|
374
|
+
padding: 12px;
|
|
375
|
+
border-radius: var(--radius-sm);
|
|
376
|
+
font-family: monospace;
|
|
377
|
+
font-size: 0.8rem;
|
|
378
|
+
white-space: pre-wrap;
|
|
379
|
+
word-break: break-all;
|
|
380
|
+
margin-top: 12px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* Alerts */
|
|
384
|
+
.alert {
|
|
385
|
+
padding: 12px 16px;
|
|
386
|
+
border-radius: var(--radius-sm);
|
|
387
|
+
font-size: 0.875rem;
|
|
388
|
+
margin-bottom: 16px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.alert-danger {
|
|
392
|
+
background-color: #fef2f2;
|
|
393
|
+
border: 1px solid #fecaca;
|
|
394
|
+
color: #991b1b;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.alert-info {
|
|
398
|
+
background-color: #eff6ff;
|
|
399
|
+
border: 1px solid #bfdbfe;
|
|
400
|
+
color: #1e40af;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* Search Bar */
|
|
404
|
+
.search-bar {
|
|
405
|
+
display: flex;
|
|
406
|
+
gap: 10px;
|
|
407
|
+
align-items: center;
|
|
408
|
+
margin-bottom: 16px;
|
|
409
|
+
flex-wrap: wrap;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.search-input {
|
|
413
|
+
flex: 1;
|
|
414
|
+
min-width: 200px;
|
|
415
|
+
}
|