Skip to content

Instantly share code, notes, and snippets.

@jtreminio
Created October 10, 2018 01:44
Show Gist options
  • Save jtreminio/8d5254b8011bdd6c305788656e3431f1 to your computer and use it in GitHub Desktop.
Save jtreminio/8d5254b8011bdd6c305788656e3431f1 to your computer and use it in GitHub Desktop.
const ServiceCategory = {
"Application Engine": 0,
"Web Server": 0,
"Database Engine": 0,
"Other": 0,
};
const ServiceCategories = Object.keys(ServiceCategory);
interface ServiceType {
name: string,
slug: string,
image: string,
organization: string,
versions: string[],
url: string,
logo: string,
bgcolor: string,
category: keyof typeof ServiceCategory,
}
const ServiceTypes: ServiceType[] = [
{
name: "PHP",
slug: "php",
image: "jtreminio/php",
organization: "jtreminio",
versions: [
"7.2",
"7.3",
"7.1",
"7.0",
"5.6",
],
url: "https://hub.docker.com/r/jtreminio/php/",
logo: "/img/service-logos/php.svg",
bgcolor: "indigo",
category: "Application Engine",
},
];
export {
Service,
ServiceCategories,
ServiceType,
ServiceTypes,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment