-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.map.ts
37 lines (32 loc) · 1.08 KB
/
app.map.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// open devtools/codeGenerator/appGenerator/test/testAppSchema.ts for an example
import superCodeGenSchema from './devtools/codeGenerator/superCodeGen.schema.cjs'
import {
type MapProps,
type ElementsTypes,
} from './devtools/codeGenerator/appGenerator/generateAppMap/generateAppMap'
const templates = {
page: superCodeGenSchema.find((s) => s.type === 'Page')?.files || [],
pageContent: superCodeGenSchema.find((s) => s.type === 'Page Content')?.files || [],
container: superCodeGenSchema.find((s) => s.type === 'Container')?.files || [],
component:
superCodeGenSchema.find((s) => s.type === 'Component with story')?.files || [],
data: superCodeGenSchema.find((s) => s.type === 'Data')?.files || [],
}
const data = (): ElementsTypes['DataProps']['data'] => {
return []
}
const pages = (): ElementsTypes['PagesProps']['pages'] => {
return []
}
const components = (): ElementsTypes['ComponentsProps']['components'] => {
return []
}
export default async function appSchema() {
const schema: MapProps = {
templates,
pages,
data,
components,
}
return schema
}