From 772d425fdd764f16a966fb8f043d8d841e50ad0d Mon Sep 17 00:00:00 2001 From: Md Afiq Iskandar Date: Fri, 30 Aug 2024 09:58:17 +0800 Subject: [PATCH] Done ui niise --- app.vue | 2 +- navigation/index.js | 58 +- pages/dashboard/index.vue | 721 +++++++----------- pages/devtool/api-editor/code/index.vue | 26 +- pages/devtool/api-editor/index.vue | 39 +- pages/devtool/content-editor/code/index.vue | 26 +- pages/devtool/content-editor/index.vue | 41 +- .../devtool/content-editor/template/index.vue | 14 +- .../content-editor/template/view/[id].vue | 2 +- pages/devtool/menu-editor/index.vue | 24 +- pages/devtool/user-management/role-list.vue | 76 +- pages/devtool/user-management/user-list.vue | 72 +- .../for-01/kemaskini-daftar/index.vue | 233 ++++++ pages/prototype/for-01/permohonan/index.vue | 334 ++++++++ pages/senarai-mesej/index.vue | 193 +++++ pages/tipografi/index.vue | 284 +++++++ public/favicon.ico | Bin 4286 -> 3902 bytes 17 files changed, 1537 insertions(+), 608 deletions(-) create mode 100644 pages/prototype/for-01/kemaskini-daftar/index.vue create mode 100644 pages/prototype/for-01/permohonan/index.vue create mode 100644 pages/senarai-mesej/index.vue create mode 100644 pages/tipografi/index.vue diff --git a/app.vue b/app.vue index c4e21ec..6bfcf14 100644 --- a/app.vue +++ b/app.vue @@ -1,6 +1,6 @@ diff --git a/pages/devtool/api-editor/code/index.vue b/pages/devtool/api-editor/code/index.vue index 16049b9..8989fe2 100644 --- a/pages/devtool/api-editor/code/index.vue +++ b/pages/devtool/api-editor/code/index.vue @@ -3,7 +3,7 @@ import { useThemeStore } from "~/stores/theme"; definePageMeta({ - title: "API Code Editor", + title: "Penyunting Kod API", middleware: ["auth"], requiresAuth: true, }); @@ -63,8 +63,8 @@ if (data.value.statusCode === 200) { } else { $swal .fire({ - title: "Error", - text: "The API you are trying to edit is not found. Please choose a API to edit.", + title: "Ralat", + text: "API yang anda cuba sunting tidak dijumpai. Sila pilih API untuk disunting.", icon: "error", confirmButtonText: "Ok", }) @@ -134,8 +134,8 @@ const saveCode = async () => { if (linterError.value) { $swal.fire({ - title: "Error", - text: "There is an error in your code. Please fix it before saving.", + title: "Ralat", + text: "Terdapat ralat dalam kod anda. Sila betulkannya sebelum menyimpan.", icon: "error", confirmButtonText: "Ok", }); @@ -153,8 +153,8 @@ const saveCode = async () => { }); if (data.value.statusCode === 200) { $swal.fire({ - title: "Success", - text: "The code has been saved successfully.", + title: "Berjaya", + text: "Kod telah berjaya disimpan.", icon: "success", confirmButtonText: "Ok", timer: 1000, @@ -175,11 +175,11 @@ const saveCode = async () => { }} - +
- Format Code { size="20px" class="mr-1" /> - Save API + Simpan API
@@ -198,12 +198,12 @@ const saveCode = async () => { size="20px" />
-
ESLint Error
+
Ralat ESLint
{{ linterErrorText }}
- Line: {{ linterErrorLine }} Column: {{ linterErrorColumn }} + Baris: {{ linterErrorLine }} Lajur: {{ linterErrorColumn }}
@@ -216,7 +216,7 @@ const saveCode = async () => { mode="javascript" />
- +
diff --git a/pages/devtool/api-editor/index.vue b/pages/devtool/api-editor/index.vue index f31e157..351fc62 100644 --- a/pages/devtool/api-editor/index.vue +++ b/pages/devtool/api-editor/index.vue @@ -78,8 +78,8 @@ const saveAddAPI = async () => { if (data.value.statusCode === 200) { nuxtApp.$swal.fire({ - title: "Success", - text: "The code has been saved successfully.", + title: "Berjaya", + text: "Kod telah berjaya disimpan.", icon: "success", confirmButtonText: "Ok", timer: 1000, @@ -105,8 +105,8 @@ const saveEditAPI = async () => { if (data.value.statusCode === 200) { nuxtApp.$swal.fire({ - title: "Success", - text: "The code has been saved successfully.", + title: "Berjaya", + text: "Kod telah berjaya disimpan.", icon: "success", confirmButtonText: "Ok", timer: 1000, @@ -122,13 +122,14 @@ const saveEditAPI = async () => { const deleteAPI = async (apiURL) => { nuxtApp.$swal .fire({ - title: "Are you sure to delete this API?", - text: "You won't be able to revert this!", + title: "Adakah anda pasti untuk memadam API ini?", + text: "Anda tidak akan dapat memulihkan ini!", icon: "warning", showCancelButton: true, confirmButtonColor: "#3085d6", cancelButtonColor: "#d33", - confirmButtonText: "Yes, delete it!", + confirmButtonText: "Ya, padamkan!", + cancelButtonText: "Batal", }) .then(async (result) => { if (result.isConfirmed) { @@ -143,8 +144,8 @@ const deleteAPI = async (apiURL) => { if (data.value.statusCode === 200) { nuxtApp.$swal.fire({ - title: "Success", - text: "The code has been saved successfully.", + title: "Berjaya", + text: "Kod telah berjaya disimpan.", icon: "success", confirmButtonText: "Ok", timer: 1000, @@ -164,13 +165,13 @@ const deleteAPI = async (apiURL) => {
@@ -180,14 +181,14 @@ const deleteAPI = async (apiURL) => {
- Add API + Tambah API
@@ -214,7 +215,7 @@ const deleteAPI = async (apiURL) => { name="material-symbols:code-blocks-outline-rounded" class="mr-2" /> - Code Editor + Editor Kod
@@ -233,9 +234,9 @@ const deleteAPI = async (apiURL) => { @@ -248,9 +249,9 @@ const deleteAPI = async (apiURL) => { diff --git a/pages/devtool/content-editor/code/index.vue b/pages/devtool/content-editor/code/index.vue index 8bf8067..ee47da3 100644 --- a/pages/devtool/content-editor/code/index.vue +++ b/pages/devtool/content-editor/code/index.vue @@ -1,6 +1,6 @@ + + diff --git a/pages/prototype/for-01/permohonan/index.vue b/pages/prototype/for-01/permohonan/index.vue new file mode 100644 index 0000000..e7ebeb7 --- /dev/null +++ b/pages/prototype/for-01/permohonan/index.vue @@ -0,0 +1,334 @@ + + + diff --git a/pages/senarai-mesej/index.vue b/pages/senarai-mesej/index.vue new file mode 100644 index 0000000..05b65e6 --- /dev/null +++ b/pages/senarai-mesej/index.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/pages/tipografi/index.vue b/pages/tipografi/index.vue new file mode 100644 index 0000000..68ab7aa --- /dev/null +++ b/pages/tipografi/index.vue @@ -0,0 +1,284 @@ + + + + + diff --git a/public/favicon.ico b/public/favicon.ico index f544b53e3f0b0a2b8a8b521ad076e1b12510d453..4c810294cea7226cf89d97dd37ce4b8439ef3998 100644 GIT binary patch literal 3902 zcmd^CX-||_6rTQp_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