import { Routes } from '@angular/router';
import { AsciiToTextComponent } from '../tools/client-side/ascii-to-text/ascii-to-text.component';
import { GuidComponent } from '../tools/client-side/guid/guid.component';
import { Base64ConverterComponent } from '../tools/client-side/base64-converter/base64-converter.component';
import { JwtToJsonComponent } from '../tools/client-side/jwt-to-json/jwt-to-json.component';
import { TextToCronComponent } from '../tools/client-side/text-to-cron/text-to-cron.component';
import { DdsToPngComponent } from '../tools/client-side/dds-to-png/dds-to-png.component';
import { ImageConverterComponent } from '../tools/server-side/image-converter/image-converter.component';
import { WordCounterComponent } from '../tools/client-side/word-counter/word-counter.component';
import { ColorPickerComponent } from '../tools/client-side/color-picker/color-picker.component';
import { QrCodeGeneratorComponent } from '../tools/client-side/qr-code-generator/qr-code-generator.component';
import { OracleGuidConverterComponent } from '../tools/client-side/oracle-guid-converter/oracle-guid-converter.component';
import { FrontPageComponent } from './front-page/front-page.component';

export const routes: Routes = [
  {
    path: '',
    pathMatch: 'full',
    component: FrontPageComponent
  },
  {
    path: 'ascii-to-text',
    pathMatch: 'full',
    component: AsciiToTextComponent
  },
  {
    path: 'guid',
    pathMatch: 'full',
    component: GuidComponent
  },
  {
    path: 'base64-converter',
    pathMatch: 'full',
    component: Base64ConverterComponent
  },
  {
    path: 'jwt-decoder',
    pathMatch: 'full',
    component: JwtToJsonComponent
  },
  {
    path: 'text-to-cron',
    pathMatch: 'full',
    component: TextToCronComponent
  },
  {
    path: 'dds-to-png',
    pathMatch: 'full',
    component: DdsToPngComponent
  },
  {
    path: 'image-converter',
    pathMatch: 'full',
    component: ImageConverterComponent
  },
  {
    path: 'text-counter',
    pathMatch: 'full',
    component: WordCounterComponent
  },
  {
    path: 'qr-code-generator',
    pathMatch: 'full',
    component: QrCodeGeneratorComponent
  },
  {
    path: 'color-picker',
    pathMatch: 'full',
    component: ColorPickerComponent
  },
  {
    path: 'oracle-guid-converter',
    pathMatch: 'full',
    component: OracleGuidConverterComponent
  }, {
    path: '**',
    redirectTo: ''
  }
];

