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:
parent
1822fb29ae
commit
cd395aa2ed
@ -8,13 +8,16 @@ const DomainCard: React.FC<{query: string}> = ({query}) => {
|
|||||||
const {t} = useTranslation();
|
const {t} = useTranslation();
|
||||||
const lowerCase = query.toLowerCase();
|
const lowerCase = query.toLowerCase();
|
||||||
|
|
||||||
const names = [`${lowerCase}.com`, `${lowerCase}.app`, `${lowerCase}.dev`];
|
const names = [`${lowerCase}.com`, `${lowerCase}.io`, `${lowerCase}.app`];
|
||||||
const moreNames = [
|
const moreNames = [
|
||||||
|
`${lowerCase}.org`,
|
||||||
|
`${lowerCase}.dev`,
|
||||||
|
`${lowerCase}.sh`,
|
||||||
|
`${lowerCase}.pro`,
|
||||||
|
`${lowerCase}.tools`,
|
||||||
|
`${lowerCase}.site`,
|
||||||
`${lowerCase}app.com`,
|
`${lowerCase}app.com`,
|
||||||
`get${lowerCase}.com`,
|
`get${lowerCase}.com`,
|
||||||
`${lowerCase}.org`,
|
|
||||||
`${lowerCase}.io`,
|
|
||||||
`${lowerCase}.tools`,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -24,10 +24,8 @@ const GithubCard: React.FC<{query: string}> = ({query}) => {
|
|||||||
name={name}
|
name={name}
|
||||||
query={`github.com/${name}`}
|
query={`github.com/${name}`}
|
||||||
service="existence"
|
service="existence"
|
||||||
message="Create GitHub Organization"
|
message={`Go to github.com/${name}`}
|
||||||
link="https://github.com/organizations/new"
|
link={`https://github.com/${name}`}
|
||||||
messageIfTaken={`Go to github.com/${name}`}
|
|
||||||
linkIfTaken={`https://github.com/${name}`}
|
|
||||||
prefix="github.com/"
|
prefix="github.com/"
|
||||||
icon={<FaGithub />}
|
icon={<FaGithub />}
|
||||||
/>
|
/>
|
||||||
|
@ -18,19 +18,15 @@ const HomebrewCard: React.FC<{query: string}> = ({query}) => {
|
|||||||
<ExistentialAvailability
|
<ExistentialAvailability
|
||||||
name={name}
|
name={name}
|
||||||
target={`https://formulae.brew.sh/api/formula/${name}.json`}
|
target={`https://formulae.brew.sh/api/formula/${name}.json`}
|
||||||
message="Read Contribution Guide"
|
message="Go to formula page"
|
||||||
link="https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request"
|
link={`https://formulae.brew.sh/formula/${name}`}
|
||||||
messageIfTaken="Go to formula page"
|
|
||||||
linkIfTaken={`https://formulae.brew.sh/formula/${name}`}
|
|
||||||
icon={<IoIosBeer />}
|
icon={<IoIosBeer />}
|
||||||
/>
|
/>
|
||||||
<ExistentialAvailability
|
<ExistentialAvailability
|
||||||
name={name}
|
name={name}
|
||||||
target={`https://formulae.brew.sh/api/cask/${name}.json`}
|
target={`https://formulae.brew.sh/api/cask/${name}.json`}
|
||||||
message="Read Contribution Guide"
|
message="Go to formula page"
|
||||||
link="https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request"
|
link={`https://formulae.brew.sh/cask/${name}`}
|
||||||
messageIfTaken="Go to formula page"
|
|
||||||
linkIfTaken={`https://formulae.brew.sh/cask/${name}`}
|
|
||||||
suffix=" (Cask)"
|
suffix=" (Cask)"
|
||||||
icon={<IoIosBeer />}
|
icon={<IoIosBeer />}
|
||||||
/>
|
/>
|
||||||
|
@ -18,10 +18,8 @@ const RubyGemsCard: React.FC<{query: string}> = ({query}) => {
|
|||||||
name={name}
|
name={name}
|
||||||
query={`rubygems.org/gems/${name}`}
|
query={`rubygems.org/gems/${name}`}
|
||||||
service="existence"
|
service="existence"
|
||||||
message="Read Publishing Guide"
|
message="Go to RubyGems"
|
||||||
link="https://guides.rubygems.org/publishing/"
|
link={`https://rubygems.org/gems/${name}`}
|
||||||
messageIfTaken="Go to RubyGems"
|
|
||||||
linkIfTaken={`https://rubygems.org/gems/${name}`}
|
|
||||||
icon={<FaGem />}
|
icon={<FaGem />}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -18,10 +18,8 @@ const S3Card: React.FC<{query: string}> = ({query}) => {
|
|||||||
name={name}
|
name={name}
|
||||||
query={`${name}.s3.amazonaws.com`}
|
query={`${name}.s3.amazonaws.com`}
|
||||||
service="existence"
|
service="existence"
|
||||||
message="Go to S3 console"
|
message={`Go to ${name}.s3.amazonaws.com`}
|
||||||
link="https://s3.console.aws.amazon.com"
|
link={`https://${name}.s3.amazonaws.com`}
|
||||||
messageIfTaken={`Go to ${name}.s3.amazonaws.com`}
|
|
||||||
linkIfTaken={`https://${name}.s3.amazonaws.com`}
|
|
||||||
suffix=".s3.amazonaws.com"
|
suffix=".s3.amazonaws.com"
|
||||||
icon={<FaAws />}
|
icon={<FaAws />}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user