mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-24 01:08:36 +02:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
15
web/app/lib/schema/master/force-graph.ts
Normal file
15
web/app/lib/schema/master/force-graph.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { co, CoList, CoMap } from "jazz-tools"
|
||||
|
||||
export class Connection extends CoMap {
|
||||
name = co.string
|
||||
}
|
||||
|
||||
export class ListOfConnections extends CoList.Of(co.ref(Connection)) {}
|
||||
|
||||
export class ForceGraph extends CoMap {
|
||||
name = co.string
|
||||
prettyName = co.string
|
||||
connections = co.optional.ref(ListOfConnections)
|
||||
}
|
||||
|
||||
export class ListOfForceGraphs extends CoList.Of(co.ref(ForceGraph)) {}
|
||||
12
web/app/lib/schema/master/public-group.ts
Normal file
12
web/app/lib/schema/master/public-group.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { co, CoMap, Group } from "jazz-tools"
|
||||
import { ListOfForceGraphs } from "./force-graph"
|
||||
import { ListOfTopics } from "./topic"
|
||||
|
||||
export class PublicGlobalGroupRoot extends CoMap {
|
||||
forceGraphs = co.ref(ListOfForceGraphs)
|
||||
topics = co.ref(ListOfTopics)
|
||||
}
|
||||
|
||||
export class PublicGlobalGroup extends Group {
|
||||
root = co.ref(PublicGlobalGroupRoot)
|
||||
}
|
||||
35
web/app/lib/schema/master/topic.ts
Normal file
35
web/app/lib/schema/master/topic.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { co, CoList, CoMap } from "jazz-tools"
|
||||
|
||||
export class Link extends CoMap {
|
||||
title = co.string
|
||||
url = co.string
|
||||
}
|
||||
|
||||
export class ListOfLinks extends CoList.Of(co.ref(Link)) {}
|
||||
|
||||
export class Section extends CoMap {
|
||||
title = co.string
|
||||
links = co.ref(ListOfLinks)
|
||||
}
|
||||
|
||||
export class ListOfSections extends CoList.Of(co.ref(Section)) {}
|
||||
|
||||
export class LatestGlobalGuide extends CoMap {
|
||||
sections = co.ref(ListOfSections)
|
||||
}
|
||||
|
||||
export class TopicConnection extends CoMap {
|
||||
name = co.string
|
||||
}
|
||||
|
||||
export class ListOfTopicConnections extends CoList.Of(
|
||||
co.ref(TopicConnection),
|
||||
) {}
|
||||
|
||||
export class Topic extends CoMap {
|
||||
name = co.string
|
||||
prettyName = co.string
|
||||
latestGlobalGuide = co.ref(LatestGlobalGuide)
|
||||
}
|
||||
|
||||
export class ListOfTopics extends CoList.Of(co.ref(Topic)) {}
|
||||
Reference in New Issue
Block a user