wad-lab 1.2.2 → 1.2.4
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 +477 -627
- 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
|
@@ -1,315 +1,25 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { ref, computed } from 'vue'
|
|
3
2
|
import { useHospitalStore } from '../stores/hospitalStore'
|
|
3
|
+
import PatientTable from '../components/PatientTable.vue'
|
|
4
4
|
|
|
5
5
|
const hospital = useHospitalStore()
|
|
6
|
-
const filterBed = ref('ALL')
|
|
7
|
-
const searchQuery = ref('')
|
|
8
|
-
const notice = ref('')
|
|
9
|
-
|
|
10
|
-
const filteredPatients = computed(() => {
|
|
11
|
-
return hospital.patients.filter((p) => {
|
|
12
|
-
const matchesBed = filterBed.value === 'ALL' || p.bedType === filterBed.value
|
|
13
|
-
const matchesSearch = p.name.toLowerCase().includes(searchQuery.value.toLowerCase()) ||
|
|
14
|
-
p.doctor.toLowerCase().includes(searchQuery.value.toLowerCase())
|
|
15
|
-
return matchesBed && matchesSearch
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
function handleDischarge(id, name) {
|
|
20
|
-
hospital.dischargePatient(id)
|
|
21
|
-
notice.value = `Patient ${name} has been discharged.`
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
notice.value = ''
|
|
24
|
-
}, 3000)
|
|
25
|
-
}
|
|
26
6
|
</script>
|
|
27
7
|
|
|
28
8
|
<template>
|
|
29
9
|
<div class="patient-list-page">
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<div v-if="notice" class="alert alert-info">
|
|
39
|
-
{{ notice }}
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="filter-bar">
|
|
43
|
-
<input
|
|
44
|
-
v-model="searchQuery"
|
|
45
|
-
type="text"
|
|
46
|
-
placeholder="Search patient or doctor..."
|
|
47
|
-
class="search-input"
|
|
48
|
-
/>
|
|
49
|
-
<div class="filter-tabs">
|
|
50
|
-
<button
|
|
51
|
-
:class="['tab-btn', filterBed === 'ALL' ? 'tab-active' : '']"
|
|
52
|
-
@click="filterBed = 'ALL'"
|
|
53
|
-
>
|
|
54
|
-
All ({{ hospital.patients.length }})
|
|
55
|
-
</button>
|
|
56
|
-
<button
|
|
57
|
-
:class="['tab-btn', filterBed === 'General Ward' ? 'tab-active' : '']"
|
|
58
|
-
@click="filterBed = 'General Ward'"
|
|
59
|
-
>
|
|
60
|
-
General Ward
|
|
61
|
-
</button>
|
|
62
|
-
<button
|
|
63
|
-
:class="['tab-btn', filterBed === 'ICU' ? 'tab-active' : '']"
|
|
64
|
-
@click="filterBed = 'ICU'"
|
|
65
|
-
>
|
|
66
|
-
ICU
|
|
67
|
-
</button>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
<div v-if="filteredPatients.length === 0" class="empty-state">
|
|
72
|
-
<p>No admitted patients found matching current criteria.</p>
|
|
73
|
-
</div>
|
|
74
|
-
|
|
75
|
-
<div v-else class="table-container">
|
|
76
|
-
<table class="patient-table">
|
|
77
|
-
<thead>
|
|
78
|
-
<tr>
|
|
79
|
-
<th>Patient</th>
|
|
80
|
-
<th>Age</th>
|
|
81
|
-
<th>Bed Type</th>
|
|
82
|
-
<th>Doctor</th>
|
|
83
|
-
<th>Vitals (BP / HR / Temp)</th>
|
|
84
|
-
<th>Risk Level</th>
|
|
85
|
-
<th>Bill ($)</th>
|
|
86
|
-
<th>Actions</th>
|
|
87
|
-
</tr>
|
|
88
|
-
</thead>
|
|
89
|
-
<tbody>
|
|
90
|
-
<tr v-for="patient in filteredPatients" :key="patient.id">
|
|
91
|
-
<td class="font-bold">{{ patient.name }}</td>
|
|
92
|
-
<td>{{ patient.age }} yrs</td>
|
|
93
|
-
<td>
|
|
94
|
-
<span :class="['bed-badge', patient.bedType === 'ICU' ? 'bed-icu' : 'bed-general']">
|
|
95
|
-
{{ patient.bedType }}
|
|
96
|
-
</span>
|
|
97
|
-
</td>
|
|
98
|
-
<td>{{ patient.doctor }}</td>
|
|
99
|
-
<td>
|
|
100
|
-
<div class="vitals-chip">
|
|
101
|
-
<span>BP: {{ patient.vitals.bp }}</span>
|
|
102
|
-
<span>HR: {{ patient.vitals.hr }} bpm</span>
|
|
103
|
-
<span>{{ patient.vitals.temp }}°F</span>
|
|
104
|
-
</div>
|
|
105
|
-
</td>
|
|
106
|
-
<td>
|
|
107
|
-
<span :class="['risk-badge', 'risk-' + (patient.risk ? patient.risk.toLowerCase() : 'normal')]">
|
|
108
|
-
{{ patient.risk || 'Normal' }}
|
|
109
|
-
</span>
|
|
110
|
-
</td>
|
|
111
|
-
<td class="bill-cell">${{ patient.bill }}</td>
|
|
112
|
-
<td>
|
|
113
|
-
<button
|
|
114
|
-
class="btn-discharge"
|
|
115
|
-
@click="handleDischarge(patient.id, patient.name)"
|
|
116
|
-
>
|
|
117
|
-
Discharge
|
|
118
|
-
</button>
|
|
119
|
-
</td>
|
|
120
|
-
</tr>
|
|
121
|
-
</tbody>
|
|
122
|
-
</table>
|
|
123
|
-
</div>
|
|
10
|
+
<h2>Admitted Patients Directory</h2>
|
|
11
|
+
<PatientTable
|
|
12
|
+
:patients="hospital.patients"
|
|
13
|
+
@patch="({ id, vitals }) => hospital.patchPatient(id, { vitals })"
|
|
14
|
+
@settle="(id) => hospital.settlePayment(id)"
|
|
15
|
+
@discharge="(id) => hospital.dischargePatient(id)"
|
|
16
|
+
/>
|
|
124
17
|
</div>
|
|
125
18
|
</template>
|
|
126
19
|
|
|
127
20
|
<style scoped>
|
|
128
|
-
.patient-list-page {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
gap: 16px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.header-row {
|
|
135
|
-
display: flex;
|
|
136
|
-
justify-content: space-between;
|
|
137
|
-
align-items: center;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
h2 {
|
|
141
|
-
margin: 0;
|
|
142
|
-
font-size: 20px;
|
|
143
|
-
color: #1a202c;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.subtitle {
|
|
147
|
-
margin: 4px 0 0 0;
|
|
148
|
-
font-size: 13px;
|
|
149
|
-
color: #718096;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.btn-admit-link {
|
|
153
|
-
background-color: #2b6cb0;
|
|
154
|
-
color: white;
|
|
155
|
-
text-decoration: none;
|
|
156
|
-
font-size: 13px;
|
|
157
|
-
font-weight: 600;
|
|
158
|
-
padding: 8px 14px;
|
|
159
|
-
border-radius: 4px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.alert-info {
|
|
163
|
-
background-color: #ebf8ff;
|
|
164
|
-
color: #2b6cb0;
|
|
165
|
-
border: 1px solid #bee3f8;
|
|
166
|
-
padding: 10px 14px;
|
|
167
|
-
border-radius: 4px;
|
|
168
|
-
font-size: 14px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.filter-bar {
|
|
172
|
-
display: flex;
|
|
173
|
-
justify-content: space-between;
|
|
174
|
-
gap: 15px;
|
|
175
|
-
flex-wrap: wrap;
|
|
176
|
-
align-items: center;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.search-input {
|
|
180
|
-
flex: 1;
|
|
181
|
-
min-width: 200px;
|
|
182
|
-
padding: 8px 12px;
|
|
183
|
-
border: 1px solid #cbd5e0;
|
|
184
|
-
border-radius: 5px;
|
|
185
|
-
font-size: 14px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.filter-tabs {
|
|
189
|
-
display: flex;
|
|
190
|
-
gap: 6px;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.tab-btn {
|
|
194
|
-
padding: 6px 12px;
|
|
195
|
-
border: 1px solid #cbd5e0;
|
|
196
|
-
background-color: #ffffff;
|
|
197
|
-
border-radius: 4px;
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
font-size: 13px;
|
|
200
|
-
color: #4a5568;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.tab-active {
|
|
204
|
-
background-color: #2b6cb0;
|
|
205
|
-
color: #ffffff;
|
|
206
|
-
border-color: #2b6cb0;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.empty-state {
|
|
210
|
-
background-color: #ffffff;
|
|
211
|
-
padding: 30px;
|
|
212
|
-
text-align: center;
|
|
213
|
-
border: 1px solid #e2e8f0;
|
|
214
|
-
border-radius: 6px;
|
|
215
|
-
color: #718096;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.table-container {
|
|
219
|
-
overflow-x: auto;
|
|
220
|
-
background-color: #ffffff;
|
|
221
|
-
border: 1px solid #e2e8f0;
|
|
222
|
-
border-radius: 6px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.patient-table {
|
|
226
|
-
width: 100%;
|
|
227
|
-
border-collapse: collapse;
|
|
228
|
-
font-size: 13px;
|
|
229
|
-
text-align: left;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.patient-table th {
|
|
233
|
-
background-color: #f7fafc;
|
|
234
|
-
color: #4a5568;
|
|
235
|
-
font-weight: 700;
|
|
236
|
-
padding: 12px 14px;
|
|
237
|
-
border-bottom: 2px solid #e2e8f0;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.patient-table td {
|
|
241
|
-
padding: 12px 14px;
|
|
242
|
-
border-bottom: 1px solid #edf2f7;
|
|
243
|
-
color: #2d3748;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.font-bold {
|
|
247
|
-
font-weight: 600;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.bed-badge {
|
|
251
|
-
font-size: 11px;
|
|
252
|
-
font-weight: 600;
|
|
253
|
-
padding: 3px 8px;
|
|
254
|
-
border-radius: 12px;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.bed-general {
|
|
258
|
-
background-color: #e2e8f0;
|
|
259
|
-
color: #2d3748;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.bed-icu {
|
|
263
|
-
background-color: #feebc8;
|
|
264
|
-
color: #c05621;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.vitals-chip {
|
|
268
|
-
display: flex;
|
|
269
|
-
gap: 8px;
|
|
270
|
-
font-size: 12px;
|
|
271
|
-
color: #4a5568;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.risk-badge {
|
|
275
|
-
font-size: 11px;
|
|
276
|
-
font-weight: 700;
|
|
277
|
-
padding: 3px 8px;
|
|
278
|
-
border-radius: 12px;
|
|
279
|
-
text-transform: uppercase;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.risk-high {
|
|
283
|
-
background-color: #fed7d7;
|
|
284
|
-
color: #9b2c2c;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.risk-moderate {
|
|
288
|
-
background-color: #feebc8;
|
|
289
|
-
color: #c05621;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.risk-normal {
|
|
293
|
-
background-color: #c6f6d5;
|
|
294
|
-
color: #22543d;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.bill-cell {
|
|
298
|
-
font-weight: 600;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.btn-discharge {
|
|
302
|
-
background-color: #e53e3e;
|
|
303
|
-
color: #ffffff;
|
|
304
|
-
border: none;
|
|
305
|
-
padding: 6px 12px;
|
|
306
|
-
border-radius: 4px;
|
|
307
|
-
font-size: 12px;
|
|
308
|
-
font-weight: 600;
|
|
309
|
-
cursor: pointer;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.btn-discharge:hover {
|
|
313
|
-
background-color: #c53030;
|
|
21
|
+
.patient-list-page h2 {
|
|
22
|
+
font-size: 22px;
|
|
23
|
+
margin-bottom: 16px;
|
|
314
24
|
}
|
|
315
25
|
</style>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactive } from 'vue'
|
|
3
|
+
|
|
4
|
+
const emit = defineEmits(['submit-book'])
|
|
5
|
+
|
|
6
|
+
const form = reactive({
|
|
7
|
+
title: '',
|
|
8
|
+
author: '',
|
|
9
|
+
isbn: '',
|
|
10
|
+
category: 'Computer Science',
|
|
11
|
+
copies: 1
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const categories = ['Computer Science', 'Web Dev', 'Algorithms', 'Fiction', 'Science']
|
|
15
|
+
|
|
16
|
+
function handleSubmit() {
|
|
17
|
+
if (!form.title.trim() || !form.author.trim() || !form.isbn.trim()) return
|
|
18
|
+
emit('submit-book', {
|
|
19
|
+
title: form.title.trim(),
|
|
20
|
+
author: form.author.trim(),
|
|
21
|
+
isbn: form.isbn.trim(),
|
|
22
|
+
category: form.category,
|
|
23
|
+
copies: Number(form.copies) || 1
|
|
24
|
+
})
|
|
25
|
+
form.title = ''
|
|
26
|
+
form.author = ''
|
|
27
|
+
form.isbn = ''
|
|
28
|
+
form.copies = 1
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<form @submit.prevent="handleSubmit" class="book-form">
|
|
34
|
+
<h3>Add New Book</h3>
|
|
35
|
+
|
|
36
|
+
<div class="form-row">
|
|
37
|
+
<div class="form-group">
|
|
38
|
+
<label for="bk-title">Book Title</label>
|
|
39
|
+
<input id="bk-title" v-model="form.title" required placeholder="Clean Architecture" />
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="form-group">
|
|
43
|
+
<label for="bk-author">Author</label>
|
|
44
|
+
<input id="bk-author" v-model="form.author" required placeholder="Robert C. Martin" />
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="form-row">
|
|
49
|
+
<div class="form-group">
|
|
50
|
+
<label for="bk-isbn">ISBN</label>
|
|
51
|
+
<input id="bk-isbn" v-model="form.isbn" required placeholder="978-0134494166" />
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="form-group">
|
|
55
|
+
<label for="bk-cat">Category</label>
|
|
56
|
+
<select id="bk-cat" v-model="form.category">
|
|
57
|
+
<option v-for="c in categories" :key="c" :value="c">{{ c }}</option>
|
|
58
|
+
</select>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="form-group">
|
|
62
|
+
<label for="bk-copies">Copies</label>
|
|
63
|
+
<input id="bk-copies" v-model.number="form.copies" type="number" min="1" required />
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<button type="submit" class="btn btn-primary">Add Book</button>
|
|
68
|
+
</form>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<style scoped>
|
|
72
|
+
.book-form {
|
|
73
|
+
background: #ffffff;
|
|
74
|
+
border: 1px solid #e2e8f0;
|
|
75
|
+
border-radius: 8px;
|
|
76
|
+
padding: 16px;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: 12px;
|
|
80
|
+
margin-bottom: 20px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.book-form h3 {
|
|
84
|
+
font-size: 16px;
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.form-row {
|
|
89
|
+
display: flex;
|
|
90
|
+
gap: 12px;
|
|
91
|
+
flex-wrap: wrap;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.form-group {
|
|
95
|
+
flex: 1;
|
|
96
|
+
min-width: 140px;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 4px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.form-group label {
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
color: #475569;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.form-group input,
|
|
109
|
+
.form-group select {
|
|
110
|
+
padding: 8px 10px;
|
|
111
|
+
border: 1px solid #cbd5e1;
|
|
112
|
+
border-radius: 6px;
|
|
113
|
+
font-size: 13px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.btn-primary {
|
|
117
|
+
background: #0284c7;
|
|
118
|
+
color: #fff;
|
|
119
|
+
border: none;
|
|
120
|
+
padding: 8px 16px;
|
|
121
|
+
border-radius: 6px;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
align-self: flex-start;
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
books: { type: Array, required: true }
|
|
4
|
+
})
|
|
5
|
+
|
|
6
|
+
const emit = defineEmits(['borrow', 'patch', 'delete'])
|
|
7
|
+
|
|
8
|
+
function handlePatchCopies(b) {
|
|
9
|
+
const newCopies = prompt('Enter new copy count for ' + b.title + ':', b.copies)
|
|
10
|
+
if (newCopies !== null && !isNaN(Number(newCopies))) {
|
|
11
|
+
emit('patch', { id: b.id, copies: Number(newCopies) })
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<div class="table-container">
|
|
18
|
+
<table class="book-table">
|
|
19
|
+
<thead>
|
|
20
|
+
<tr>
|
|
21
|
+
<th>ISBN</th>
|
|
22
|
+
<th>Title</th>
|
|
23
|
+
<th>Author</th>
|
|
24
|
+
<th>Category</th>
|
|
25
|
+
<th>Copies</th>
|
|
26
|
+
<th>Actions</th>
|
|
27
|
+
</tr>
|
|
28
|
+
</thead>
|
|
29
|
+
<tbody>
|
|
30
|
+
<tr v-if="books.length === 0">
|
|
31
|
+
<td colspan="6" class="empty">No books available.</td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr v-for="b in books" :key="b.id">
|
|
34
|
+
<td><code>{{ b.isbn }}</code></td>
|
|
35
|
+
<td><strong>{{ b.title }}</strong></td>
|
|
36
|
+
<td>{{ b.author }}</td>
|
|
37
|
+
<td>{{ b.category }}</td>
|
|
38
|
+
<td>{{ b.copies }}</td>
|
|
39
|
+
<td class="action-cell">
|
|
40
|
+
<button
|
|
41
|
+
type="button"
|
|
42
|
+
class="btn btn-borrow"
|
|
43
|
+
:disabled="b.copies <= 0"
|
|
44
|
+
@click="emit('borrow', b)"
|
|
45
|
+
>
|
|
46
|
+
Borrow
|
|
47
|
+
</button>
|
|
48
|
+
<button type="button" class="btn btn-patch" @click="handlePatchCopies(b)">Patch</button>
|
|
49
|
+
<button type="button" class="btn btn-delete" @click="emit('delete', b.id)">Delete</button>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</tbody>
|
|
53
|
+
</table>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<style scoped>
|
|
58
|
+
.table-container {
|
|
59
|
+
overflow-x: auto;
|
|
60
|
+
background: #ffffff;
|
|
61
|
+
border: 1px solid #e2e8f0;
|
|
62
|
+
border-radius: 8px;
|
|
63
|
+
padding: 16px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.book-table {
|
|
67
|
+
width: 100%;
|
|
68
|
+
border-collapse: collapse;
|
|
69
|
+
font-size: 13px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
th, td {
|
|
73
|
+
padding: 10px;
|
|
74
|
+
border-bottom: 1px solid #f1f5f9;
|
|
75
|
+
text-align: left;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
th {
|
|
79
|
+
background: #f8fafc;
|
|
80
|
+
color: #475569;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
code {
|
|
84
|
+
background: #f1f5f9;
|
|
85
|
+
padding: 2px 4px;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.action-cell {
|
|
90
|
+
display: flex;
|
|
91
|
+
gap: 6px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.btn {
|
|
95
|
+
padding: 4px 8px;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
border: 1px solid transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.btn-borrow { background: #0284c7; color: #fff; }
|
|
103
|
+
.btn-borrow:disabled { background: #cbd5e1; cursor: not-allowed; }
|
|
104
|
+
.btn-patch { background: #8250df; color: #fff; }
|
|
105
|
+
.btn-delete { background: #cf222e; color: #fff; }
|
|
106
|
+
|
|
107
|
+
.empty {
|
|
108
|
+
text-align: center;
|
|
109
|
+
color: #94a3b8;
|
|
110
|
+
padding: 20px;
|
|
111
|
+
}
|
|
112
|
+
</style>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
show: { type: Boolean, default: false },
|
|
6
|
+
book: { type: Object, default: null },
|
|
7
|
+
members: { type: Array, default: () => [] }
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
const emit = defineEmits(['close', 'confirm'])
|
|
11
|
+
const selectedMember = ref('')
|
|
12
|
+
|
|
13
|
+
function handleConfirm() {
|
|
14
|
+
if (!selectedMember.value || !props.book) return
|
|
15
|
+
emit('confirm', { bookId: props.book.id, memberId: selectedMember.value })
|
|
16
|
+
selectedMember.value = ''
|
|
17
|
+
}
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<div v-if="show && book" class="modal-overlay" @click.self="emit('close')">
|
|
22
|
+
<div class="modal-card">
|
|
23
|
+
<div class="modal-header">
|
|
24
|
+
<h3>Borrow Book: {{ book.title }}</h3>
|
|
25
|
+
<button type="button" class="btn-close" @click="emit('close')">x</button>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="modal-body">
|
|
29
|
+
<div class="form-group">
|
|
30
|
+
<label for="borrow-member">Select Member</label>
|
|
31
|
+
<select id="borrow-member" v-model="selectedMember">
|
|
32
|
+
<option value="" disabled>Select a library member...</option>
|
|
33
|
+
<option v-for="m in members" :key="m.id" :value="m.id">
|
|
34
|
+
{{ m.name }} ({{ m.id }})
|
|
35
|
+
</option>
|
|
36
|
+
</select>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="modal-actions">
|
|
40
|
+
<button type="button" class="btn btn-secondary" @click="emit('close')">Cancel</button>
|
|
41
|
+
<button type="button" class="btn btn-primary" :disabled="!selectedMember" @click="handleConfirm">
|
|
42
|
+
Confirm Loan
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
<style scoped>
|
|
51
|
+
.modal-overlay {
|
|
52
|
+
position: fixed;
|
|
53
|
+
inset: 0;
|
|
54
|
+
background: rgba(0, 0, 0, 0.4);
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
z-index: 1000;
|
|
59
|
+
padding: 16px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.modal-card {
|
|
63
|
+
background: #ffffff;
|
|
64
|
+
border-radius: 8px;
|
|
65
|
+
width: 100%;
|
|
66
|
+
max-width: 420px;
|
|
67
|
+
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.modal-header {
|
|
72
|
+
padding: 16px 20px;
|
|
73
|
+
border-bottom: 1px solid #e1e4e8;
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: space-between;
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.modal-header h3 {
|
|
80
|
+
font-size: 15px;
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.btn-close {
|
|
85
|
+
background: none;
|
|
86
|
+
border: none;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.modal-body {
|
|
92
|
+
padding: 20px;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
gap: 16px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.form-group {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: 4px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.form-group label {
|
|
105
|
+
font-size: 13px;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.form-group select {
|
|
110
|
+
padding: 8px 10px;
|
|
111
|
+
border: 1px solid #cbd5e1;
|
|
112
|
+
border-radius: 6px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.modal-actions {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: flex-end;
|
|
118
|
+
gap: 10px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.btn {
|
|
122
|
+
padding: 8px 14px;
|
|
123
|
+
border-radius: 6px;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
border: 1px solid transparent;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-primary { background: #0284c7; color: #fff; }
|
|
129
|
+
.btn-primary:disabled { background: #cbd5e1; cursor: not-allowed; }
|
|
130
|
+
.btn-secondary { background: #f1f5f9; color: #475569; }
|
|
131
|
+
</style>
|