feat: full sorting

This commit is contained in:
2025-03-12 20:57:36 +07:00
parent 7e140bd2ce
commit fc575fb2ab
12 changed files with 60 additions and 516 deletions

View File

@@ -2,6 +2,8 @@
import { Dialog } from "primevue";
import { useErrorStore } from "./stores/error.store";
import { RouterView } from "vue-router";
import AuthorScheme from "./author/AuthorScheme.vue";
import PostScheme from "./post/PostScheme.vue";
const errorStore = useErrorStore();
</script>
@@ -17,5 +19,6 @@ const errorStore = useErrorStore();
</Dialog>
<main class="w-screen h-screen">
<RouterView />
<PostScheme />
</main>
</template>

View File

@@ -31,7 +31,7 @@ const load = async () => {
onMounted(async () => {
await load();
console.log(await SortedByOrder({"Name": "ASC"}))
console.log(await SortedByOrder({"Comments": "DESC"}))
});
const scheme: Scheme<Author> = reactive({

View File

@@ -15,6 +15,8 @@ import PosttypeService from "../posttype/posttype.service.ts";
const posttypeService = new PosttypeService();
import CommentService from "../comment/comment.service.ts";
import {SortedByOrder} from "../../bindings/app/internal/services/postservice.ts";
const commentService = new CommentService();
const service = new Service();
@@ -36,6 +38,7 @@ const load = async () => {
onMounted(async () => {
await load();
console.log(await SortedByOrder({"Author": "DESC", "Text": "ASC"}));
});
const scheme: Scheme<Post> = reactive({