@@ -25,48 +25,41 @@ onMounted(() => {
25
25
</script >
26
26
27
27
<template >
28
- <div class =" h-full flex flex-col gap-4 " >
28
+ <div class =" h-full flex flex-col gap-2 " >
29
29
<!-- Top Pane -->
30
30
<div
31
- id =" ici"
32
31
class =" w-full flex-1 min-h-0 rounded-[0.25rem] shadow-md bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-surface-0"
33
32
>
34
33
<div class =" h-full flex flex-col" >
35
34
<!-- Header Section -->
36
- <div class =" content-center mb-4 " >
37
- <h3 class =" text-2xl ml-1 " >QuickSSRF</h3 >
35
+ <div class =" content-center p-4 flex items-center justify-between " >
36
+ <h3 class =" text-xl " >QuickSSRF</h3 >
38
37
</div >
39
38
40
39
<!-- Content Section -->
41
40
<div class =" flex flex-col h-full min-h-0" >
42
- <!-- Actions Section -->
43
- <div class =" flex-none flex items-center justify-between mb-4 m-4" >
44
- <!-- Left-aligned Buttons -->
45
- <div class =" flex gap-4 m-4" >
46
- <Button
47
- label =" Generate Link"
48
- style =" width : 200px "
49
- @click =" onGenerateClick"
50
- />
51
- <Button label =" Poll" style =" width : 200px " @click =" onManualPoll" />
52
- <Button
53
- label =" Clear Data"
54
- style =" width : 200px "
55
- @click =" onClearData"
56
- />
57
- </div >
58
- <!-- Right-aligned Button -->
59
- <button
60
- id =" star-project"
61
- class =" p-button p-button-rounded"
62
- @click =" onSupport"
63
- >
64
- ⭐ STAR ON GITHUB
65
- </button >
66
- </div >
67
41
<!-- Request Logs Section -->
68
- <div class =" flex-1 min-h-5" >
69
- <h3 class =" text-lg mb-2" >Request Logs</h3 >
42
+ <div class =" flex-1" >
43
+ <div class =" flex items-center justify-between p-4 pt-0" >
44
+ <!-- Actions Section -->
45
+ <div class =" flex-1 flex items-center justify-between" >
46
+ <!-- Left-aligned Buttons -->
47
+ <div class =" flex gap-2" >
48
+ <Button label =" Generate URL" @click =" onGenerateClick" />
49
+ <Button severity =" contrast" label =" Refresh" icon =" fas fa-sync" @click =" onManualPoll" />
50
+ <Button severity =" contrast" label =" Clear" @click =" onClearData" />
51
+ </div >
52
+
53
+ <!-- Right-aligned Button -->
54
+ <Button
55
+ label =" STAR ON GITHUB"
56
+ severity =" contrast"
57
+ icon =" fas fa-star"
58
+ @click =" onSupport"
59
+ />
60
+ </div >
61
+ </div >
62
+
70
63
<!-- DataTable directly scrollable -->
71
64
<DataTable
72
65
v-model:selection =" selectedRow"
@@ -83,14 +76,21 @@ onMounted(() => {
83
76
<Column field =" type" header =" Type" sortable />
84
77
<Column field =" payload" header =" Payload" sortable />
85
78
<Column field =" source" header =" Source" sortable />
79
+
80
+ <template #empty >
81
+ <div class =" flex flex-col justify-center items-center gap-2" >
82
+ <h3 class =" text-surface-300 text-xl" >Request Logs</h3 >
83
+ <p class =" text-surface-300" >No data found</p >
84
+ </div >
85
+ </template >
86
86
</DataTable >
87
87
</div >
88
88
</div >
89
89
</div >
90
90
</div >
91
91
92
92
<!-- Horizontal Split Below -->
93
- <div class =" w-full flex flex-1 gap-4 overflow-hidden" >
93
+ <div class =" w-full flex flex-1 gap-2 overflow-hidden" >
94
94
<!-- Request Component -->
95
95
<div ref =" requestEl" class =" h-full w-1/2" ></div >
96
96
<!-- Response Component -->
0 commit comments