Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{

"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
Expand All @@ -13,3 +14,4 @@
"trailingComma": "es5",
"endOfLine": "auto"
}

5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{


// Set the default
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Enable per-language
"[javascript]": {
"editor.formatOnSave": true
}
}
}

1 change: 1 addition & 0 deletions commit.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx cz && exit
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{


"name": "github-automated-repos",
"version": "1.0.10",
"description": "",
Expand Down Expand Up @@ -55,6 +56,7 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}

}
}

2 changes: 2 additions & 0 deletions src/ProjectIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type Props = {
};

export function ProjectIcon({ iconItem, className }: Props) {

const { iconsProjects } = IconsData();
return (
<div>
Expand All @@ -18,4 +19,5 @@ export function ProjectIcon({ iconItem, className }: Props) {
)}
</div>
);

}
2 changes: 2 additions & 0 deletions src/StackIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ type Props = {
className?: string;
};
export function StackIcon({ iconItem, className }: Props) {

const { iconStacks, iconsProjects } = IconsData();
return iconItem === 'deploy' || iconsProjects[iconItem as never] ? (
<> </>
) : (
<img className={className} alt={iconStacks[iconItem as never]} src={iconStacks[iconItem as never]} />
);

}
8 changes: 7 additions & 1 deletion src/hooks/useGithubAutomatedRepos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
// https://www.svgrepo.com/svg/429278/cart-essential-shopping?edit=true
// https://www.svgrepo.com/svg/144539/artist-color-palette?edit=true
// https://www.svgrepo.com/svg/424981/online?edit=true

// https://www.svgrepo.com/svg/384295/weather-forecast-sunny-snow-cloud-day?edit=true
// https://www.svgrepo.com/svg/456864/diagram
// https://www.svgrepo.com/svg/455166/map-navigation?edit=true
// https://www.svgrepo.com/svg/343466/news-feed?edit=true
// https://www.svgrepo.com/svg/458454/database-1?edit=true
export interface IGithubRepos {
name: string;
topics: [];
Expand All @@ -23,6 +27,7 @@ export interface IGithubRepos {
export function useGithubAutomatedRepos() {
function dataReposGithub(data: [], keyWordDeploy: string) {
let dataFilter = [];

dataFilter = data.filter((item: IGithubRepos) =>
item.topics.includes(keyWordDeploy as never),
);
Expand Down Expand Up @@ -114,6 +119,7 @@ export function IconsData() {
};



return {
iconStacks,
iconsProjects,
Expand Down