- Created Slidev presentation structure with index.md and contents.md. - Implemented footer and menu components for navigation. - Added Markdown preview component with syntax highlighting. - Developed HTML template for consistent page structure. - Introduced button component with variant support. - Added Vue counter component for interactive demos. - Configured content collections for documentation. - Created multiple markdown documents for demo purposes. - Established global and theme styles for consistent UI. - Set up TypeScript configuration for better development experience.
20 lines
617 B
TypeScript
20 lines
617 B
TypeScript
import { columns as materialColumns } from './schema/material'
|
|
import { columns as projectColumns } from './schema/project'
|
|
import { baseId, noco } from './app.ts'
|
|
export const initSchemas = {
|
|
material: materialColumns,
|
|
project: projectColumns,
|
|
}
|
|
|
|
|
|
const projectTable = await noco.meta.tables.createTable(baseId, {
|
|
title: '项目表',
|
|
columns: initSchemas.project
|
|
})
|
|
console.log('Created project table:', projectTable.data);
|
|
|
|
const materialTable = await noco.meta.tables.createTable(baseId, {
|
|
title: '材料表',
|
|
columns: initSchemas.material
|
|
})
|
|
console.log('Created material table:', materialTable.data); |