feat: full sorting
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user