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.
This commit is contained in:
20
services/src/init.ts
Normal file
20
services/src/init.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user