Skip to content

Commit

Permalink
update routes, add assets & demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
evwilkin committed Feb 6, 2024
1 parent 4e95499 commit e07c5be
Show file tree
Hide file tree
Showing 15 changed files with 688 additions and 56 deletions.
654 changes: 654 additions & 0 deletions src/app/Resources/Resources.tsx

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions src/app/Support/Support.tsx

This file was deleted.

12 changes: 6 additions & 6 deletions src/app/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Route, RouteComponentProps, Switch, useLocation } from 'react-router-dom';
import { Dashboard } from '@app/Dashboard/Dashboard';
import { Support } from '@app/Support/Support';
import { PrimaryDetailCardView as Resources } from '@app/Resources/Resources';
import { GeneralSettings } from '@app/Settings/General/GeneralSettings';
import { ProfileSettings } from '@app/Settings/Profile/ProfileSettings';
import { NotFound } from '@app/NotFound/NotFound';
Expand Down Expand Up @@ -35,11 +35,11 @@ const routes: AppRouteConfig[] = [
title: 'PatternFly Seed | Main Dashboard',
},
{
component: Support,
component: Resources,
exact: true,
label: 'Support',
path: '/support',
title: 'PatternFly Seed | Support Page',
label: 'Resources',
path: '/resources',
title: 'PatternFly Seed | Resources Page',
},
{
label: 'Settings',
Expand Down Expand Up @@ -99,7 +99,7 @@ const PageNotFound = ({ title }: { title: string }) => {

const flattenedRoutes: IAppRoute[] = routes.reduce(
(flattened, route) => [...flattened, ...(route.routes ? route.routes : [route])],
[] as IAppRoute[]
[] as IAppRoute[],
);

const AppRoutes = (): React.ReactElement => (
Expand Down
Binary file added src/assets/FuseConnector_Icons_AzureServices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/FuseConnector_Icons_REST.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/activemq-core_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/camel-avro_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/camel-dropbox_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/camel-infinispan_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/camel-saxon_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/camel-spark_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/camel-swagger-java_200x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.svg' {
const content: string;
export default content;
}
23 changes: 23 additions & 0 deletions src/assets/pf-logo-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion stories/Support.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ComponentProps } from 'react';
import { Support } from '@app/Support/Support';
import { Support } from '@app/Resources/Resources';
import { Story } from '@storybook/react';

//👇 This default export determines where your story goes in the story list
Expand Down

0 comments on commit e07c5be

Please sign in to comment.