mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
ci: split repo: make this repo frontend only again
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import * as React from "react";
|
||||
import {CharacterListItemViewModel} from "../pages/CharacterList";
|
||||
|
||||
|
||||
|
||||
function CharacterListItem(props: {
|
||||
character: CharacterListItemViewModel,
|
||||
}) {
|
||||
const {character:c} = props
|
||||
return <>
|
||||
<td><a href={`/${c.edition}/karakter/${c.id}`}>{c.name}</a></td>
|
||||
<td>{c.szint}. szintű</td>
|
||||
<td>{c.faj}</td>
|
||||
<td>{c.osztaly}</td>
|
||||
<td>{c.edition}</td>
|
||||
</>
|
||||
}
|
||||
|
||||
export default CharacterListItem;
|
||||
@@ -0,0 +1,3 @@
|
||||
export function SignedNumberToText(val?: number) : string {
|
||||
return (val === null || val === undefined) ? "" : (val === 0 ? " 0" : (val > 0 ? '+'+val : val.toString()))
|
||||
}
|
||||
Reference in New Issue
Block a user