Update error button styles, theme colors, and enhance audit model

- Changed the button background color in `error.vue` to improve visibility.
- Updated the secondary color in `theme.css` for better consistency.
- Refactored border color references in `collapse.css` for clarity.
- Added new fields (`auditAction`, `auditDetails`, `auditUsername`) to the `audit` model in `schema.prisma` for enhanced tracking.
- Updated JSON schema to reflect new audit model fields.
This commit is contained in:
Md Afiq Iskandar 2025-04-09 12:19:01 +08:00
parent 316420282b
commit 1f22375c95
6 changed files with 55 additions and 7 deletions

View File

@ -1,6 +1,6 @@
html[data-theme="default"] { html[data-theme="default"] {
--color-primary: 13, 27, 42; --color-primary: 13, 27, 42;
--color-secondary: 97, 176, 183; --color-secondary: 0, 140, 142;
--color-accent: 243, 244, 246; --color-accent: 243, 244, 246;
--color-success: 79, 192, 103; --color-success: 79, 192, 103;
--color-info: 65, 133, 242; --color-info: 65, 133, 242;

View File

@ -6,7 +6,7 @@
.accordion.accordion-border { .accordion.accordion-border {
@apply border-t border-x rounded-lg; @apply border-t border-x rounded-lg;
border-color: rgb(var(--border)); border-color: rgb(var(--border-color));
} }
.accordion .accordion-group { .accordion .accordion-group {
@ -16,12 +16,12 @@
.accordion .accordion-group.accordion-default { .accordion .accordion-group.accordion-default {
@apply border-b; @apply border-b;
border-color: rgb(var(--border)); border-color: rgb(var(--border-color));
} }
.accordion .accordion-group.accordion-border { .accordion .accordion-group.accordion-border {
@apply border-b last:rounded-b-lg; @apply border-b last:rounded-b-lg;
border-color: rgb(var(--border)); border-color: rgb(var(--border-color));
} }
.accordion .accordion-group.accordion-card { .accordion .accordion-group.accordion-card {

View File

@ -36,7 +36,7 @@ const redirectClearError = () => {
<button <button
@click="redirectClearError" @click="redirectClearError"
class="mt-5 w-fit rounded-lg flex justify-center items-center h-fit text-sm px-8 py-2.5 text-white bg-[#F3586A] hover:bg-[#F3586A]/90 disabled:bg-[#F3586A]/30 disabled:text-[#F3586A]/50 disabled:border-primary/5 disabled:cursor-default" class="mt-5 w-fit rounded-lg flex justify-center items-center h-fit text-sm px-8 py-2.5 text-white bg-[#212E3B] hover:bg-[#212E3B]/90 disabled:bg-[#212E3B]/30 disabled:text-[#212E3B]/50 disabled:border-primary/5 disabled:cursor-default"
> >
Back to Home Back to Home
</button> </button>

View File

@ -76,6 +76,12 @@ export default [
"path": "/devtool/code-playground", "path": "/devtool/code-playground",
"icon": "mdi:code-braces", "icon": "mdi:code-braces",
"child": [] "child": []
},
{
"title": "Form Builder",
"path": "/form-builder/manage",
"icon": "mdi:form-select",
"child": []
} }
], ],
"meta": { "meta": {

View File

@ -37,6 +37,34 @@
"null" "null"
], ],
"format": "date-time" "format": "date-time"
},
"auditAction": {
"type": [
"string",
"null"
]
},
"auditDetails": {
"type": [
"string",
"null"
]
},
"auditUsername": {
"type": [
"string",
"null"
]
},
"user": {
"anyOf": [
{
"$ref": "#/definitions/user"
},
{
"type": "null"
}
]
} }
} }
}, },
@ -102,6 +130,12 @@
], ],
"format": "date-time" "format": "date-time"
}, },
"audit": {
"type": "array",
"items": {
"$ref": "#/definitions/audit"
}
},
"userrole": { "userrole": {
"type": "array", "type": "array",
"items": { "items": {

View File

@ -17,8 +17,15 @@ model audit {
auditIP String? @db.VarChar(255) auditIP String? @db.VarChar(255)
auditURL String? @db.VarChar(255) auditURL String? @db.VarChar(255)
auditURLMethod String? @db.VarChar(255) auditURLMethod String? @db.VarChar(255)
auditURLPayload String? @db.VarChar(255) auditURLPayload String? @db.Text
auditCreatedDate DateTime? @db.DateTime(0) auditCreatedDate DateTime? @default(now()) @db.DateTime(0)
auditAction String? @db.VarChar(255)
auditDetails String? @db.Text
auditUserID Int?
auditUsername String? @db.VarChar(255)
user user? @relation(fields: [auditUserID], references: [userID])
@@index([auditUserID], map: "FK_audit_user")
} }
model user { model user {
@ -32,6 +39,7 @@ model user {
userStatus String? @db.VarChar(255) userStatus String? @db.VarChar(255)
userCreatedDate DateTime? @db.DateTime(0) userCreatedDate DateTime? @db.DateTime(0)
userModifiedDate DateTime? @db.DateTime(0) userModifiedDate DateTime? @db.DateTime(0)
audit audit[]
userrole userrole[] userrole userrole[]
} }