Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(demos): added Resources page with PrimaryDetailCardView demo #208

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading