2024-06-03 17:45:50 -05:00
|
|
|
import { Button } from '@radix-ui/themes';
|
2024-09-14 13:24:24 -05:00
|
|
|
import type { ComponentProps } from 'react';
|
2024-06-03 17:45:50 -05:00
|
|
|
|
2024-06-15 13:51:42 -05:00
|
|
|
export interface Tool {
|
2023-10-01 11:35:44 -05:00
|
|
|
id: string;
|
2025-01-06 20:09:11 -06:00
|
|
|
stringsId?: string;
|
2023-10-01 11:35:44 -05:00
|
|
|
disabled?: boolean;
|
2024-02-20 22:36:18 -06:00
|
|
|
href?: string;
|
2024-06-03 17:45:50 -05:00
|
|
|
button: {
|
2024-09-01 23:22:59 -05:00
|
|
|
highContrast?: boolean;
|
2024-06-03 17:45:50 -05:00
|
|
|
color: ComponentProps<typeof Button>['color'];
|
|
|
|
|
};
|
|
|
|
|
significant?: boolean;
|
2024-08-27 14:55:43 -05:00
|
|
|
branches?: string[];
|
2023-10-01 11:35:44 -05:00
|
|
|
}
|
|
|
|
|
|
2024-06-15 13:51:42 -05:00
|
|
|
export const tankopediaTool: Tool = {
|
|
|
|
|
id: 'tankopedia',
|
|
|
|
|
button: {
|
|
|
|
|
color: 'purple',
|
|
|
|
|
},
|
|
|
|
|
significant: true,
|
2024-11-22 10:50:35 -06:00
|
|
|
branches: ['main', 'dev', 'opentest', 'preview'],
|
2024-06-15 13:51:42 -05:00
|
|
|
};
|
|
|
|
|
|
2024-10-07 17:48:10 -05:00
|
|
|
// export const ratingTool: Tool = {
|
|
|
|
|
// id: 'rating',
|
|
|
|
|
// image: 'WEyMZH3',
|
|
|
|
|
// button: {
|
|
|
|
|
// color: 'orange',
|
|
|
|
|
// },
|
|
|
|
|
// branches: ['main', 'dev'],
|
|
|
|
|
// };
|
2024-06-15 13:51:42 -05:00
|
|
|
|
|
|
|
|
export const compareTool: Tool = {
|
|
|
|
|
id: 'compare',
|
|
|
|
|
button: {
|
|
|
|
|
color: 'crimson',
|
|
|
|
|
},
|
2024-11-22 10:50:35 -06:00
|
|
|
branches: ['main', 'dev', 'opentest', 'preview'],
|
2024-06-15 13:51:42 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const sessionTool: Tool = {
|
|
|
|
|
// TODO: rename to tracker
|
|
|
|
|
id: 'session',
|
|
|
|
|
button: {
|
|
|
|
|
color: 'blue',
|
|
|
|
|
},
|
2024-08-27 14:55:43 -05:00
|
|
|
branches: ['main', 'dev'],
|
2024-06-15 13:51:42 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const discordTool: Tool = {
|
|
|
|
|
id: 'discord',
|
|
|
|
|
href: 'https://discord.com/application-directory/1097673957865443370',
|
|
|
|
|
button: {
|
|
|
|
|
color: 'indigo',
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const moreTool: Tool = {
|
|
|
|
|
id: 'more',
|
|
|
|
|
href: 'https://discord.gg/nDt7AjGJQH',
|
|
|
|
|
button: {
|
2024-08-19 13:40:17 -05:00
|
|
|
color: 'plum',
|
2024-06-15 13:51:42 -05:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
2025-01-06 20:09:11 -06:00
|
|
|
export const playersTool: Tool = {
|
|
|
|
|
id: 'players',
|
2024-06-16 17:47:02 -05:00
|
|
|
button: {
|
|
|
|
|
color: 'blue',
|
|
|
|
|
},
|
2024-07-02 18:58:11 -05:00
|
|
|
href: '_', // TODO: remove this to re-enable link
|
2024-08-27 14:55:43 -05:00
|
|
|
branches: ['main', 'dev'],
|
2024-06-16 17:47:02 -05:00
|
|
|
};
|
|
|
|
|
|
2024-10-12 22:07:59 -05:00
|
|
|
export const performanceTool: Tool = {
|
2024-08-05 12:52:40 -05:00
|
|
|
id: 'performance',
|
2024-06-29 21:22:12 -05:00
|
|
|
button: {
|
|
|
|
|
color: 'jade',
|
|
|
|
|
},
|
2024-08-27 14:55:43 -05:00
|
|
|
branches: ['main', 'dev'],
|
2024-06-29 21:22:12 -05:00
|
|
|
};
|
|
|
|
|
|
2024-08-26 22:02:29 -05:00
|
|
|
export const embedTool: Tool = {
|
|
|
|
|
id: 'embed',
|
|
|
|
|
button: {
|
|
|
|
|
color: 'red',
|
|
|
|
|
},
|
2024-11-22 10:50:35 -06:00
|
|
|
branches: ['main', 'dev'],
|
2024-08-26 22:02:29 -05:00
|
|
|
};
|
|
|
|
|
|
2024-08-17 20:09:52 -05:00
|
|
|
export const homeTool: Tool = {
|
2025-01-06 20:09:11 -06:00
|
|
|
id: 'home',
|
|
|
|
|
button: { color: 'blue' },
|
2024-08-05 12:52:40 -05:00
|
|
|
};
|
|
|
|
|
|
2024-10-24 17:05:46 -05:00
|
|
|
export const galleryTool: Tool = {
|
|
|
|
|
id: 'gallery',
|
|
|
|
|
button: {
|
|
|
|
|
color: 'gold',
|
|
|
|
|
},
|
|
|
|
|
branches: ['main', 'dev'],
|
|
|
|
|
};
|
|
|
|
|
|
2024-11-15 10:55:23 -06:00
|
|
|
export const tierListTool: Tool = {
|
|
|
|
|
id: 'tier-list',
|
2025-01-06 20:09:11 -06:00
|
|
|
stringsId: 'tier_list',
|
2024-11-15 10:55:23 -06:00
|
|
|
button: {
|
|
|
|
|
color: 'orange',
|
|
|
|
|
},
|
2024-11-22 10:50:35 -06:00
|
|
|
branches: ['main', 'dev', 'opentest', 'preview'],
|
2024-11-15 10:55:23 -06:00
|
|
|
};
|
|
|
|
|
|
2024-12-22 20:34:16 -06:00
|
|
|
export const chartsTool: Tool = {
|
|
|
|
|
id: 'charts',
|
|
|
|
|
button: {
|
2024-12-23 12:48:52 -06:00
|
|
|
color: 'bronze',
|
2024-12-22 20:34:16 -06:00
|
|
|
},
|
2025-05-04 13:08:28 -05:00
|
|
|
branches: ['main', 'dev'],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const guessTool: Tool = {
|
|
|
|
|
id: 'guess',
|
|
|
|
|
button: { color: 'cyan' },
|
2024-12-22 20:34:16 -06:00
|
|
|
branches: ['main', 'dev', 'opentest', 'preview'],
|
|
|
|
|
};
|
|
|
|
|
|
2023-10-01 11:35:44 -05:00
|
|
|
export const TOOLS: Tool[] = [
|
2024-06-15 13:51:42 -05:00
|
|
|
tankopediaTool,
|
|
|
|
|
compareTool,
|
2024-10-12 22:07:59 -05:00
|
|
|
performanceTool,
|
2025-05-04 13:08:28 -05:00
|
|
|
guessTool,
|
2024-12-26 13:47:51 -06:00
|
|
|
// chartsTool,
|
2024-10-24 17:05:46 -05:00
|
|
|
galleryTool,
|
2024-06-15 13:51:42 -05:00
|
|
|
sessionTool,
|
2024-11-15 10:55:23 -06:00
|
|
|
tierListTool,
|
2024-09-08 21:29:18 -05:00
|
|
|
embedTool,
|
2024-10-07 17:48:10 -05:00
|
|
|
// ratingTool,
|
2023-09-24 17:24:21 -05:00
|
|
|
];
|