Files
light-factory-solution/services/src/init.ts
abearxiong fd664c018c feat: add initial Slidev presentation and demo components
- 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.
2026-01-01 22:23:22 +08:00

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);