chore: remove useless comments

This commit is contained in:
monoid 2023-06-01 14:10:41 +09:00
parent a2a2407af6
commit 04ab39a3ec
2 changed files with 7 additions and 16 deletions

View File

@ -81,15 +81,8 @@ export const ContentInfo = (props: {
gallery?: string,
short?: boolean
}) => {
//const classes = useStyles();
const theme = useTheme();
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);
return (<Paper sx={{
display: "flex",
@ -100,26 +93,25 @@ export const ContentInfo = (props: {
height: "auto",
}
}} elevation={4}>
<Link /*className={propclasses.thumbnail_anchor ?? thumbnail_anchor}*/ component={RouterLink} to={{
<Link component={RouterLink} to={{
pathname: makeContentReaderUrl(document.id)
}}>
{document.deleted_at === null ?
(<ThumbnailContainer content={document}/>)
: (<Typography/* className={propclasses.thumbnail_content ?? thumbnail_content} */ variant='h4'>Deleted</Typography>)}
: (<Typography variant='h4'>Deleted</Typography>)}
</Link>
<Box /*className={propclasses.infoContainer ?? classes.infoContainer}*/>
<Link variant='h5' color='inherit' component={RouterLink} to={{pathname: url}}
/*className={propclasses.title ?? classes.title}*/>
<Box>
<Link variant='h5' color='inherit' component={RouterLink} to={{pathname: url}}>
{document.title}
</Link>
<Box /*className={propclasses.subinfoContainer ?? subinfoContainer}*/>
{props.short ? (<Box /*className={propclasses.tag_list ?? classes.tag_list}*/>{document.tags.map(x =>
<Box>
{props.short ? (<Box>{document.tags.map(x =>
(<TagChip key={x} label={x} clickable tagname={x} size="small"></TagChip>)
)}</Box>) : (
<ComicDetailTag tags={document.tags} path={document.basepath+"/"+document.filename}
createdAt={document.created_at}
deletedAt={document.deleted_at != null ? document.deleted_at : undefined}
/* classes={({tag_list:classes.tag_list})}*/ ></ComicDetailTag>)
></ComicDetailTag>)
}
</Box>
{document.deleted_at != null &&

View File

@ -228,7 +228,6 @@ class ServerApplication{
return app;
}
}
//let Koa = require("koa");
export async function create_server(){
return await ServerApplication.createServer();