chore: remove useless comments
This commit is contained in:
parent
a2a2407af6
commit
04ab39a3ec
@ -81,15 +81,8 @@ export const ContentInfo = (props: {
|
|||||||
gallery?: string,
|
gallery?: string,
|
||||||
short?: boolean
|
short?: boolean
|
||||||
}) => {
|
}) => {
|
||||||
//const classes = useStyles();
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const document = props.document;
|
const document = props.document;
|
||||||
/*const rootName = props.short ? classes.short_root : classes.root;
|
|
||||||
const thumbnail_anchor = props.short ? classes.short_thumbnail_anchor : "";
|
|
||||||
const thumbnail_content = props.short ? classes.short_thumbnail_content :
|
|
||||||
classes.thumbnail_content;
|
|
||||||
const subinfoContainer = props.short ? classes.short_subinfoContainer :
|
|
||||||
classes.subinfoContainer;*/
|
|
||||||
const url = props.gallery === undefined ? makeContentReaderUrl(document.id) : makeContentInfoUrl(document.id);
|
const url = props.gallery === undefined ? makeContentReaderUrl(document.id) : makeContentInfoUrl(document.id);
|
||||||
return (<Paper sx={{
|
return (<Paper sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@ -100,26 +93,25 @@ export const ContentInfo = (props: {
|
|||||||
height: "auto",
|
height: "auto",
|
||||||
}
|
}
|
||||||
}} elevation={4}>
|
}} elevation={4}>
|
||||||
<Link /*className={propclasses.thumbnail_anchor ?? thumbnail_anchor}*/ component={RouterLink} to={{
|
<Link component={RouterLink} to={{
|
||||||
pathname: makeContentReaderUrl(document.id)
|
pathname: makeContentReaderUrl(document.id)
|
||||||
}}>
|
}}>
|
||||||
{document.deleted_at === null ?
|
{document.deleted_at === null ?
|
||||||
(<ThumbnailContainer content={document}/>)
|
(<ThumbnailContainer content={document}/>)
|
||||||
: (<Typography/* className={propclasses.thumbnail_content ?? thumbnail_content} */ variant='h4'>Deleted</Typography>)}
|
: (<Typography variant='h4'>Deleted</Typography>)}
|
||||||
</Link>
|
</Link>
|
||||||
<Box /*className={propclasses.infoContainer ?? classes.infoContainer}*/>
|
<Box>
|
||||||
<Link variant='h5' color='inherit' component={RouterLink} to={{pathname: url}}
|
<Link variant='h5' color='inherit' component={RouterLink} to={{pathname: url}}>
|
||||||
/*className={propclasses.title ?? classes.title}*/>
|
|
||||||
{document.title}
|
{document.title}
|
||||||
</Link>
|
</Link>
|
||||||
<Box /*className={propclasses.subinfoContainer ?? subinfoContainer}*/>
|
<Box>
|
||||||
{props.short ? (<Box /*className={propclasses.tag_list ?? classes.tag_list}*/>{document.tags.map(x =>
|
{props.short ? (<Box>{document.tags.map(x =>
|
||||||
(<TagChip key={x} label={x} clickable tagname={x} size="small"></TagChip>)
|
(<TagChip key={x} label={x} clickable tagname={x} size="small"></TagChip>)
|
||||||
)}</Box>) : (
|
)}</Box>) : (
|
||||||
<ComicDetailTag tags={document.tags} path={document.basepath+"/"+document.filename}
|
<ComicDetailTag tags={document.tags} path={document.basepath+"/"+document.filename}
|
||||||
createdAt={document.created_at}
|
createdAt={document.created_at}
|
||||||
deletedAt={document.deleted_at != null ? document.deleted_at : undefined}
|
deletedAt={document.deleted_at != null ? document.deleted_at : undefined}
|
||||||
/* classes={({tag_list:classes.tag_list})}*/ ></ComicDetailTag>)
|
></ComicDetailTag>)
|
||||||
}
|
}
|
||||||
</Box>
|
</Box>
|
||||||
{document.deleted_at != null &&
|
{document.deleted_at != null &&
|
||||||
|
@ -228,7 +228,6 @@ class ServerApplication{
|
|||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//let Koa = require("koa");
|
|
||||||
|
|
||||||
export async function create_server(){
|
export async function create_server(){
|
||||||
return await ServerApplication.createServer();
|
return await ServerApplication.createServer();
|
||||||
|
Loading…
Reference in New Issue
Block a user