1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 04:30:31 +09:00

fix: message for taken name

This commit is contained in:
uetchy 2020-02-08 13:47:55 +09:00
parent 1822fb29ae
commit cd395aa2ed
5 changed files with 17 additions and 24 deletions

View File

@ -8,13 +8,16 @@ const DomainCard: React.FC<{query: string}> = ({query}) => {
const {t} = useTranslation();
const lowerCase = query.toLowerCase();
const names = [`${lowerCase}.com`, `${lowerCase}.app`, `${lowerCase}.dev`];
const names = [`${lowerCase}.com`, `${lowerCase}.io`, `${lowerCase}.app`];
const moreNames = [
`${lowerCase}.org`,
`${lowerCase}.dev`,
`${lowerCase}.sh`,
`${lowerCase}.pro`,
`${lowerCase}.tools`,
`${lowerCase}.site`,
`${lowerCase}app.com`,
`get${lowerCase}.com`,
`${lowerCase}.org`,
`${lowerCase}.io`,
`${lowerCase}.tools`,
];
return (

View File

@ -24,10 +24,8 @@ const GithubCard: React.FC<{query: string}> = ({query}) => {
name={name}
query={`github.com/${name}`}
service="existence"
message="Create GitHub Organization"
link="https://github.com/organizations/new"
messageIfTaken={`Go to github.com/${name}`}
linkIfTaken={`https://github.com/${name}`}
message={`Go to github.com/${name}`}
link={`https://github.com/${name}`}
prefix="github.com/"
icon={<FaGithub />}
/>

View File

@ -18,19 +18,15 @@ const HomebrewCard: React.FC<{query: string}> = ({query}) => {
<ExistentialAvailability
name={name}
target={`https://formulae.brew.sh/api/formula/${name}.json`}
message="Read Contribution Guide"
link="https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request"
messageIfTaken="Go to formula page"
linkIfTaken={`https://formulae.brew.sh/formula/${name}`}
message="Go to formula page"
link={`https://formulae.brew.sh/formula/${name}`}
icon={<IoIosBeer />}
/>
<ExistentialAvailability
name={name}
target={`https://formulae.brew.sh/api/cask/${name}.json`}
message="Read Contribution Guide"
link="https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request"
messageIfTaken="Go to formula page"
linkIfTaken={`https://formulae.brew.sh/cask/${name}`}
message="Go to formula page"
link={`https://formulae.brew.sh/cask/${name}`}
suffix=" (Cask)"
icon={<IoIosBeer />}
/>

View File

@ -18,10 +18,8 @@ const RubyGemsCard: React.FC<{query: string}> = ({query}) => {
name={name}
query={`rubygems.org/gems/${name}`}
service="existence"
message="Read Publishing Guide"
link="https://guides.rubygems.org/publishing/"
messageIfTaken="Go to RubyGems"
linkIfTaken={`https://rubygems.org/gems/${name}`}
message="Go to RubyGems"
link={`https://rubygems.org/gems/${name}`}
icon={<FaGem />}
/>
)}

View File

@ -18,10 +18,8 @@ const S3Card: React.FC<{query: string}> = ({query}) => {
name={name}
query={`${name}.s3.amazonaws.com`}
service="existence"
message="Go to S3 console"
link="https://s3.console.aws.amazon.com"
messageIfTaken={`Go to ${name}.s3.amazonaws.com`}
linkIfTaken={`https://${name}.s3.amazonaws.com`}
message={`Go to ${name}.s3.amazonaws.com`}
link={`https://${name}.s3.amazonaws.com`}
suffix=".s3.amazonaws.com"
icon={<FaAws />}
/>