Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed May 12, 2024
1 parent 2af1eb8 commit 3edf2f3
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### ### [11.0.0] - 2024-05-12
### [11.1.0] - 2024-05-12

- New resource - Templates

### [11.0.0] - 2024-05-12

- New feature - JWT converter

Expand Down
15 changes: 15 additions & 0 deletions ui/public/resource/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"name": "reactjs-starter-template-antd",
"category": "React",
"subCategory": "",
"url": "https://github.com/lifeparticle/reactjs-starter-template-antd/tree/main",
"socials": []
},
{
"name": "reactjs-starter-template-mui",
"category": "React",
"subCategory": "",
"url": "https://github.com/lifeparticle/reactjs-starter-template-mui"
}
]
6 changes: 6 additions & 0 deletions ui/src/data/menuData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ export const MENU_ITEMS = [
icon: "Vote",
show: true,
},
{
name: routesById.template.title,
url: routesById.template.path,
icon: "Template",
show: true,
},
{
name: routesById.tool.title,
url: routesById.tool.path,
Expand Down
9 changes: 9 additions & 0 deletions ui/src/data/routeData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
TableOfContent,
Terms,
TextEditor,
Template,
Tool,
TvSeries,
UiUx,
Expand Down Expand Up @@ -110,6 +111,7 @@ export type RouteId =
| "tableofcontent"
| "terms"
| "texteditor"
| "template"
| "tool"
| "tvseries"
| "uiux"
Expand Down Expand Up @@ -366,6 +368,13 @@ export const routes: Route[] = [
description: "Take a peek at the survey results.",
component: Survey,
},
{
id: "template",
path: "/resource/template",
title: "Templates",
description: "Templates to make your projects a breeze.",
component: Template,
},
{
id: "tool",
path: "/resource/tool",
Expand Down
23 changes: 23 additions & 0 deletions ui/src/pages/Resource/Template/Template.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Resource } from "components/InjectedComponent";
import { ListSearchResults } from "components/ComponentInjector";
import { useFetch } from "hooks";
import { FC } from "react";

const URL = `./template.json`;
const QUERY_KEY = "template";

const Template: FC = () => {
const { data, isLoading, isError } = useFetch(QUERY_KEY, URL);

return (
<ListSearchResults
items={data}
resourceName={QUERY_KEY}
itemComponent={Resource}
isLoading={isLoading}
isError={isError}
/>
);
};

export default Template;
1 change: 1 addition & 0 deletions ui/src/pages/Resource/Template/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./Template";
2 changes: 2 additions & 0 deletions ui/src/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Movie = lazy(() => import("pages/Resource/Movie"));
const Platform = lazy(() => import("pages/Resource/Platform"));
const Plugin = lazy(() => import("pages/Resource/Plugin"));
const Survey = lazy(() => import("pages/Resource/Survey"));
const Template = lazy(() => import("pages/Resource/Template"));
const Tool = lazy(() => import("pages/Resource/Tool"));
const TvSeries = lazy(() => import("pages/Resource/TvSeries"));
const UiUx = lazy(() => import("pages/Resource/UiUx"));
Expand Down Expand Up @@ -117,6 +118,7 @@ export {
Svg,
TableGenerator,
TableOfContent,
Template,
Terms,
TextEditor,
Tool,
Expand Down

0 comments on commit 3edf2f3

Please sign in to comment.