- mail_settings_controller for setting smtp settings - added view ror rjecting dataset for editor - added new model AppConfig for stroing appwide config values - better validate_chesum.ts command with process chunking - added vue3 apps 'BasicSettings' like email, profile settings - started with 2 multilingual capabilities - npm updates
This commit is contained in:
parent
010bead723
commit
b06ccae603
67 changed files with 7820 additions and 1463 deletions
|
@ -10,7 +10,7 @@ import BaseButton from '@/Components/BaseButton.vue';
|
|||
import CardBox from '@/Components/CardBox.vue';
|
||||
import BaseButtons from '@/Components/BaseButtons.vue';
|
||||
import NotificationBar from '@/Components/NotificationBar.vue';
|
||||
import Pagination from '@/Components/Admin/Pagination.vue';
|
||||
import Pagination from '@/Components/Pagination.vue';
|
||||
import { stardust } from '@eidellev/adonis-stardust/client';
|
||||
|
||||
const props = defineProps({
|
||||
|
@ -61,6 +61,20 @@ const getRowClass = (dataset) => {
|
|||
return rowclass;
|
||||
};
|
||||
|
||||
// New method to format server state
|
||||
const formatServerState = (state: string) => {
|
||||
if (state === 'inprogress') {
|
||||
return 'draft';
|
||||
} else if (state === 'released') {
|
||||
return 'submitted';
|
||||
} else if (state === 'approved') {
|
||||
return 'ready for review';
|
||||
} else if (state === 'reviewer_accepted') {
|
||||
return 'in review';
|
||||
}
|
||||
return state; // Return the original state for other cases
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -109,7 +123,7 @@ const getRowClass = (dataset) => {
|
|||
{{ dataset.main_title }}
|
||||
</td>
|
||||
<td class="py-4 whitespace-nowrap text-gray-700 dark:text-white">
|
||||
{{ dataset.server_state }}
|
||||
{{ formatServerState(dataset.server_state) }}
|
||||
</td>
|
||||
|
||||
<td data-label="modified" class="py-4 whitespace-nowrap text-gray-700 dark:text-white">
|
||||
|
@ -135,42 +149,26 @@ const getRowClass = (dataset) => {
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="py-4">
|
||||
<Pagination v-bind:data="datasets.meta" />
|
||||
<!-- <ul>
|
||||
<li>
|
||||
<a href="{{ users.page == 1 ? '#' : '?page=' + (users.page - 1) }}">Previous</a>
|
||||
</li>
|
||||
@each(page in ???)
|
||||
<li>
|
||||
<a href="?page={{ page }}">{{ page }}</a>
|
||||
</li>
|
||||
@endeach
|
||||
<li>
|
||||
<a href="{{ users.lastPage == users.page ? '#' : '?page=' + (users.page + 1) }}">Next</a>
|
||||
</li>
|
||||
</ul> -->
|
||||
<Pagination v-bind:data="datasets.meta" />
|
||||
</div>
|
||||
</CardBox>
|
||||
</SectionMain>
|
||||
</LayoutAuthenticated>
|
||||
</template>
|
||||
|
||||
<style scoped lang="css">
|
||||
.pure-table tr.released {
|
||||
/* background-color: greenyellow; */
|
||||
<!-- <style scoped lang="css">
|
||||
.pure-table tr.released {
|
||||
background-color: rgb(52 211 153);
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.pure-table tr.inprogress {
|
||||
padding: 0.8em;
|
||||
/* bg-teal-300 */
|
||||
padding: 0.8em;
|
||||
background-color: rgb(94 234 212);
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.pure-table tr.editor_accepted {
|
||||
/* background-color: lightblue; */
|
||||
.pure-table tr.editor_accepted {
|
||||
background-color: rgb(125 211 252);
|
||||
color: gray;
|
||||
}
|
||||
|
@ -181,24 +179,21 @@ const getRowClass = (dataset) => {
|
|||
color: gray;
|
||||
}
|
||||
|
||||
.pure-table tr.rejected_editor {
|
||||
/* padding: 0.8em; */
|
||||
.pure-table tr.rejected_editor {
|
||||
background-color: orange;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.pure-table tr.reviewed {
|
||||
/* padding: 0.8em; */
|
||||
.pure-table tr.reviewed {
|
||||
background-color: yellow;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.pure-table tr.approved {
|
||||
/* padding: 0.8em; */
|
||||
.pure-table tr.approved {
|
||||
background-color: rgb(86, 86, 241);
|
||||
color: whitesmoke;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</style> -->
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue