-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
201 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<template> | ||
<q-page> | ||
<div class="q-pa-md"> | ||
<div class="row q-mb-xl"> | ||
<div class="col"> | ||
<span class="text-h4">Documents</span> | ||
<p class="q-mt-sm text-caption text-weight-light"> | ||
All documents related to | ||
</p> | ||
</div> | ||
<div class="col-grow q-gutter-sm"> | ||
<q-btn color="secondary" label="Upload" icon="upload" /> | ||
</div> | ||
</div> | ||
<q-table :rows="rows" :columns="columns" row-key="name" flat bordered> | ||
<template v-slot:top-right> | ||
<q-input | ||
dense | ||
debounce="300" | ||
placeholder="Filter by filename" | ||
outlined | ||
> | ||
<template v-slot:prepend> | ||
<q-icon name="filter_list" class="q-mr-sm" /> | ||
</template> | ||
</q-input> | ||
</template> | ||
<template v-slot:body-cell-status="props"> | ||
<q-td :props="props"> | ||
<div> | ||
<q-badge :color="props.row.status_text" :label="props.value" /> | ||
</div> | ||
<div class="my-table-details"> | ||
{{ props.row.details }} | ||
</div> | ||
</q-td> | ||
</template> | ||
</q-table> | ||
</div> | ||
</q-page> | ||
</template> | ||
|
||
<script setup> | ||
defineOptions({ | ||
name: "IndexPage", | ||
}); | ||
const columns = [ | ||
{ | ||
name: "name", | ||
required: true, | ||
label: "Name", | ||
align: "left", | ||
field: (row) => row.name, | ||
format: (val) => `${val}`, | ||
sortable: true, | ||
}, | ||
{ | ||
name: "date", | ||
align: "center", | ||
label: "Date", | ||
field: "date", | ||
sortable: true, | ||
}, | ||
{ | ||
name: "status", | ||
align: "center", | ||
label: "Status", | ||
field: "status", | ||
sortable: true, | ||
}, | ||
]; | ||
const rows = [ | ||
{ | ||
name: "Document 01", | ||
date: "12/05/2024", | ||
status: "done", | ||
status_text: "green", | ||
}, | ||
{ | ||
name: "Document 02", | ||
date: "01/08/2024", | ||
status: "on progress", | ||
status_text: "purple", | ||
}, | ||
]; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,36 @@ | ||
<template> | ||
<q-page class="flex flex-center"> index page </q-page> | ||
<q-page padding> | ||
<q-card flat bordered> | ||
<q-card-section> | ||
<div class="text-h6">Dashboard</div> | ||
</q-card-section> | ||
|
||
<q-separator /> | ||
<div class="q-pa-md row items-start q-gutter-md"> | ||
<q-card class="q-mb-sm"> | ||
<q-card-section> | ||
<div class="text-h6">Active Users</div> | ||
<div class="text-h2 text-center text-bold">100</div></q-card-section | ||
> | ||
</q-card> | ||
|
||
<q-card> | ||
<q-card-section> | ||
<div class="text-h6">Number of Documents</div> | ||
<div class="text-center text-h2 text-bold">3524</div> | ||
</q-card-section> | ||
</q-card> | ||
</div> | ||
</q-card> | ||
</q-page> | ||
</template> | ||
|
||
<script setup> | ||
defineOptions({ | ||
name: "IndexPage", | ||
name: "1Page", | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
/* Add any custom styles for the dashboard here */ | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<template> | ||
<div class="q-pa-md example-row-equal-width"> | ||
<div class="row"> | ||
<div class="col col-sm-6"> | ||
<q-input | ||
@keydown.enter.prevent="MainStore.sendQA(question)" | ||
outlined | ||
v-model="question" | ||
placeholder="ask a question..." | ||
type="text" | ||
dense | ||
> | ||
<template v-slot:prepend> | ||
<q-icon | ||
name="search" | ||
class="q-mr-sm" | ||
@click="MainStore.sendQA(question)" | ||
/> | ||
</template> | ||
</q-input> | ||
|
||
<q-card flat bordered class="q-mt-sm column" v-if="solution || loading"> | ||
<q-input | ||
v-model="solution" | ||
autogrow | ||
borderless | ||
dense | ||
:loading="loading" | ||
class="text-weight-bolder text-body1 q-mx-sm" | ||
/> | ||
|
||
<div | ||
class="q-ma-sm q-gutter-y-md items-start" | ||
v-if="!loading && solution" | ||
> | ||
<q-btn-group push> | ||
<q-btn size="xs" icon="thumb_up" /> | ||
<q-btn | ||
size="xs" | ||
icon="thumb_down" | ||
style="border-left: 1px black solid" | ||
/> | ||
</q-btn-group> | ||
</div> | ||
</q-card> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { storeToRefs } from "pinia"; | ||
import { useMainStore } from "../stores/main-store"; | ||
defineOptions({ | ||
name: "2Page", | ||
}); | ||
const MainStore = useMainStore(); | ||
const { loading, solution, question } = storeToRefs(MainStore); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters