generated from idrinth-api-bench/project-defaults
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): remove things that should not be here
fixes #0
- Loading branch information
Showing
15 changed files
with
70 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
import React from 'react'; | ||
import Lang from './lang.tsx'; | ||
import languageKey from '../locales/language-key.ts'; | ||
|
||
interface ToolType { | ||
name: string; | ||
imgSrc?: string; | ||
desc: string; | ||
link: string | ||
} | ||
|
||
const Tool = ({ | ||
name, imgSrc, desc, link, | ||
}: ToolType,) => { | ||
|
||
const Image = imgSrc ? <img src={imgSrc} alt={name}/> : ''; | ||
|
||
return <div> | ||
<a | ||
href={link} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
<h3>{name}</h3> | ||
</a> | ||
{Image} | ||
<p>{desc}</p> | ||
</div>; | ||
}; | ||
name, | ||
link, | ||
}: ToolType,) => <div> | ||
<a | ||
href={link} | ||
target='_blank' | ||
rel='noreferrer' | ||
> | ||
<h3><Lang lnkey={`tools.${ name }.title` as languageKey}/></h3> | ||
<picture> | ||
<source srcSet={`/assets/tools/${ name }.avif`} type="image/avif"/> | ||
<source srcSet={`/assets/tools/${ name }.webp`} type="image/webp"/> | ||
<img src={`/assets/tools/${ name }.png`} alt={name}/> | ||
</picture> | ||
</a> | ||
<p> | ||
<Lang lnkey={`tools.${ name }.description` as languageKey}/> | ||
</p> | ||
</div>; | ||
|
||
export default Tool; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
export const EXIT_FAILURE = 1; | ||
export const CONTRIBUTOR_PAGE_SIZE = 30; | ||
const ORGANIZATION_NAME = 'Idrinth-api-bench'; | ||
export const ORGANIZATION_REPOS_URL = `https://api.github.com/orgs/${ ORGANIZATION_NAME }/repos`; | ||
export const ORGANIZATION_REPOS_URL = 'https://api.github.com/orgs/idrinth-api-bench/repos'; | ||
export const EXIT_SUCCESS = 0; | ||
export const ERROR_FTA_SCORE = 60; | ||
export const WARNING_FTA_SCORE = 60; | ||
export const PADDING_DEFAULT = 1; | ||
export const WEBP_QUALITY = 90; | ||
export const MAX_PROFILE_SIZE = 200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.