stand2026_10_06
This commit is contained in:
1 parent
41f80ce947
commit
266f8c3b4f
199 files changed
+17061
-87
No files matched your search
@@ -0,0 +1,105 @@
|
||||
|
||||
|
||||
|
||||
export default async function PageElements() {
|
||||
|
||||
return (
|
||||
<div className="p-4">
|
||||
<section>
|
||||
<div className="font-bold">Gruppe</div>
|
||||
<ul>
|
||||
<li>G35</li>
|
||||
<li>Name:Gurtförderr</li>
|
||||
<li>Typ:Band</li>
|
||||
<section className="ps-8">
|
||||
<div className="font-bold">Elemente</div>
|
||||
<ul className="ps-8">
|
||||
<li className="flex gap-4">
|
||||
<div className="w-15 font-bold">Name:</div>
|
||||
<div className="">Motor</div>
|
||||
</li>
|
||||
<li>Seilzug</li>
|
||||
<li>Repschalter</li>
|
||||
<li>Schieflauf</li>
|
||||
<li>Vorortbedienung</li>
|
||||
<li>Endschalter</li>
|
||||
<li>FU</li>
|
||||
<li>Drehzahl</li>
|
||||
</ul>
|
||||
</section>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
(Group)BA3
|
||||
(Group)H-Förderer
|
||||
(Group)G35 Band
|
||||
(Element) Motor 1
|
||||
(Element) Motor 2
|
||||
(Element) Drehzahl vorne
|
||||
(Element) Reperaturschalter
|
||||
(Element) Reissleine
|
||||
(Element) Endschalter
|
||||
(Element) Visu
|
||||
|
||||
*/
|
||||
|
||||
interface Group {
|
||||
id: number,
|
||||
name: string,
|
||||
nr: string,
|
||||
container: boolean
|
||||
groups?: Group[]
|
||||
}
|
||||
|
||||
interface Unit {
|
||||
group: Group
|
||||
typ: string,
|
||||
name: string,
|
||||
componentes: Componente[]
|
||||
}
|
||||
|
||||
type Componente = ComponenteMotor | ComponenteSchieflauf;
|
||||
|
||||
interface ComponenteBase {
|
||||
name: string,
|
||||
typ: string,
|
||||
|
||||
|
||||
}
|
||||
|
||||
interface ComponenteMotor extends ComponenteBase {
|
||||
motorEigenschaften: string //nur Platzhalter momentan
|
||||
|
||||
}
|
||||
|
||||
interface ComponenteSchieflauf {
|
||||
name: string,
|
||||
trueOK:boolean
|
||||
|
||||
}
|
||||
|
||||
const beispielBand: Unit = {
|
||||
group: {
|
||||
id: 1,
|
||||
name: "BA4",
|
||||
nr: '100',
|
||||
container: true
|
||||
},
|
||||
typ: "Band",
|
||||
name: "Förderband zu 1234",
|
||||
componentes: [{
|
||||
name: "Antrieb",
|
||||
typ: "Motor",
|
||||
motorEigenschaften: "platzhalter Beispiel"
|
||||
},
|
||||
{
|
||||
name: "Schieflauf",
|
||||
typ: "Schieflauf",
|
||||
trueOK: true
|
||||
},
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user