mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-05-02 13:39:40 +00:00
Update tags.tsx
This commit is contained in:
parent
7c03e330fd
commit
06af8b34c7
@ -15,14 +15,27 @@ const useStyles = makeStyles(() => ({
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
export default function Tags(props: any) {
|
export default function Tags(props: any) {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const Mane6=['rarity',"applejack","twilight sparkle","fluttershy","rainbow dash","pinkie pie"]
|
const characters=["ahuizotl","amethyst star","amira","angel bunny","apple bloom","apple bumpkin","athena sparkle","autumn blaze","babs seed","berry dreams","berry punch","big macintosh","big daddy mccolt","blossomforth","bon bon","braeburn","bright mac","bulk biceps","chancellor puddinghead","cheerilee","cherry jubilee","cinder glow","clover the clever","coco pommel","coloratura","daybreaker","daring do","derpy hooves","discord","diamond tiara","fancypants","flim","flam","fleur-de-lis","flash sentry","granny smith","joan pommelway","lemon hearts","lyra heartstrings","maud pie","mayor mare","scootaloo","shining armor","silver spoon","silverstream","smart cookie","snips","snails",`soarin'`,"spike","spitfire","star swirl the bearded","star hunter","starlight glimmer","steven magnet","sugar belle","sunset shimmer","sweetie belle","tank","tempest shadow","thorax","trixie","twilight sparkle (alicorn)","twinkleshine","unicorn twilight","ursa","vapor trail","vinyl scratch","winona","zecora"]
|
||||||
|
const Mane6=["rarity","applejack","twilight sparkle","fluttershy","rainbow dash","pinkie pie"]
|
||||||
|
const Seasons=["winter","spring","summer","autumn"]
|
||||||
|
const Styles=["traditional art","watercolor painting","acrylic painting","digital painting","oil painting","painting","bob ross","classic art","concept art","digital art","fine art emulation","fine art parody","pixel art","sketch","monochrome"]
|
||||||
const Tags=[]
|
const Tags=[]
|
||||||
const Mane6_tags=[]
|
const Mane6_tags=[]
|
||||||
for(const [tag_name,number_of_pictures] of props.tags){
|
const Seasons_tags=[]
|
||||||
const tag=<Chip label={`${tag_name} (${number_of_pictures})`} key={tag_name} className={classes.chip} component="a" href={`/search?q=${tag_name}`} clickable />
|
const Characters_tags=[]
|
||||||
if(Mane6.includes(tag_name)){
|
const Styles_tags=[]
|
||||||
|
for (const [tag_name, number_of_pictures] of props.tags) {
|
||||||
|
const tag = <Chip label={`${tag_name} (${number_of_pictures})`} key={tag_name} className={classes.chip} component="a" href={`/search?q=${tag_name}`} clickable />
|
||||||
|
if (Mane6.includes(tag_name)) {
|
||||||
Mane6_tags.push(tag)
|
Mane6_tags.push(tag)
|
||||||
}else{
|
} else if (Seasons.includes(tag_name)) {
|
||||||
|
Seasons_tags.push(tag)
|
||||||
|
}else if(characters.includes(tag_name)){
|
||||||
|
Characters_tags.push(tag)
|
||||||
|
}else if(Styles.includes(tag_name)){
|
||||||
|
Styles_tags.push(tag)
|
||||||
|
}
|
||||||
|
else {
|
||||||
Tags.push(tag)
|
Tags.push(tag)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -33,6 +46,18 @@ export default function Tags(props: any) {
|
|||||||
Mane 6
|
Mane 6
|
||||||
</Typography>
|
</Typography>
|
||||||
{Mane6_tags}
|
{Mane6_tags}
|
||||||
|
<Typography variant="h6" gutterBottom>
|
||||||
|
Characters
|
||||||
|
</Typography>
|
||||||
|
{Characters_tags}
|
||||||
|
<Typography variant="h6" gutterBottom>
|
||||||
|
Seasons
|
||||||
|
</Typography>
|
||||||
|
{Seasons_tags}
|
||||||
|
<Typography variant="h6" gutterBottom>
|
||||||
|
Styles
|
||||||
|
</Typography>
|
||||||
|
{Styles_tags}
|
||||||
<Typography variant="h6" gutterBottom>
|
<Typography variant="h6" gutterBottom>
|
||||||
Other
|
Other
|
||||||
</Typography>
|
</Typography>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user