feat: new nto-cli version changes
# Conflicts: # frontend/src/author/AuthorScheme.vue # frontend/src/post/PostScheme.vue # internal/models/models.go
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
<script setup lang="ts">
|
||||
import Table from '../table/Table.vue'
|
||||
import {onMounted, reactive} from 'vue'
|
||||
import {getDefaultValues} from '../utils/structs/defaults.util'
|
||||
import Service from './author.service.ts'
|
||||
import type {Scheme} from '../types/scheme.type'
|
||||
import {Author} from '../../bindings/app/internal/services'
|
||||
import Table from "../table/Table.vue";
|
||||
import { onMounted, reactive } from "vue";
|
||||
import { getDefaultValues } from "../utils/structs/defaults.util";
|
||||
import Service from "./author.service.ts";
|
||||
import type { Scheme } from "../types/scheme.type";
|
||||
import { Author } from "../../bindings/app/internal/services";
|
||||
|
||||
import PostService from '../post/post.service.ts'
|
||||
import PostService from "../post/post.service.ts";
|
||||
const postService = new PostService();
|
||||
|
||||
const postService = new PostService
|
||||
|
||||
|
||||
const service = new Service
|
||||
const service = new Service();
|
||||
|
||||
onMounted(async () => {
|
||||
(scheme as any).Posts.type!.nested!.values = await postService.readAll()
|
||||
})
|
||||
(scheme as any).Posts.type!.nested!.values = await postService.readAll();
|
||||
});
|
||||
|
||||
const scheme: Scheme<Author> = reactive({
|
||||
entityId: "AuthorId",
|
||||
Id: {
|
||||
hidden: true,
|
||||
type: {
|
||||
@@ -39,19 +36,17 @@ const scheme: Scheme<Author> = reactive({
|
||||
type: {
|
||||
nested: {
|
||||
values: [],
|
||||
field: ['Text']
|
||||
field: [""],
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
const getDefaults = () => getDefaultValues(scheme)
|
||||
|
||||
const getDefaults = () => getDefaultValues(scheme);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<main class="w-screen h-screen">
|
||||
<Table :scheme :service :getDefaults></Table>
|
||||
</main>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user