Skip to content

Commit

Permalink
Merge pull request #379 from OpenCatalogi/development
Browse files Browse the repository at this point in the history
Development to main, week 44
  • Loading branch information
remko48 authored Nov 7, 2023
2 parents 67bccf9 + 46a759c commit 2386b9b
Show file tree
Hide file tree
Showing 45 changed files with 793 additions and 549 deletions.
68 changes: 29 additions & 39 deletions pwa/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"prepare": "cd .. && husky install"
},
"dependencies": {
"@conduction/components": "2.2.20",
"@conduction/theme": "1.0.50",
"@conduction/components": "2.2.24",
"@conduction/theme": "1.0.52",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "6.4.2",
"@fortawesome/free-regular-svg-icons": "6.4.2",
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/apiService/resources/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Component {
}

public getOne = async (id: string): Promise<any> => {
const { data } = await Send(this._instance, "GET", `/components/${id}`);
const { data } = await Send(this._instance, "GET", `/components/${id}?extend[]=all`);

return data;
};
Expand Down
5 changes: 2 additions & 3 deletions pwa/src/apiService/resources/organization.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Send } from "../apiService";
import { AxiosInstance } from "axios";
import { IFiltersContext } from "../../context/filters";
import { filtersToQueryParams } from "../../services/filtersToQueryParams";

export default class Organization {
private _instance: AxiosInstance;
Expand Down Expand Up @@ -34,8 +33,8 @@ export default class Organization {
return data;
};

public getCount = async (filters: IFiltersContext): Promise<any> => {
const { data } = await Send(this._instance, "GET", `/organizations?limit=1${filtersToQueryParams(filters)}`);
public getCount = async (): Promise<any> => {
const { data } = await Send(this._instance, "GET", `/organizations?limit=1`);

return data.total;
};
Expand Down
43 changes: 0 additions & 43 deletions pwa/src/components/buttonLink/ButtonLink.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions pwa/src/components/categoryCard/CategoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ export interface CategoryCardProps {
description: string | JSX.Element;
icon: JSX.Element;
domain?: boolean;
titleHrefOnly?: boolean;
}

export const CategoryCard: React.FC<CategoryCardProps> = ({ title, description, icon, domain }) => {
export const CategoryCard: React.FC<CategoryCardProps> = ({ title, description, icon, domain, titleHrefOnly }) => {
return (
<CardWrapper className={styles.container} onClick={() => navigate(title.href)}>
<CardWrapper className={styles.container} onClick={() => !titleHrefOnly && navigate(title.href)}>
<CardHeader>
<CardHeaderTitle>
<Link className={styles.titleLink} onClick={() => navigate(title.href)}>
Expand Down
2 changes: 0 additions & 2 deletions pwa/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export * from "./applicationCard/ApplicationCard";
export * from "./buttonLink/ButtonLink";
export * from "./categoryCard/CategoryCard";
export * from "./componentCard/ComponentCard";
export * from "./organizationCard/OrganizationCard";
export * from "./resultsDisplaySwitch/ResultsDisplaySwitch";

This file was deleted.

66 changes: 0 additions & 66 deletions pwa/src/components/resultsDisplaySwitch/ResultsDisplaySwitch.tsx

This file was deleted.

Loading

0 comments on commit 2386b9b

Please sign in to comment.