1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-16 20:20:38 +09:00

fix: jump to domain directly

This commit is contained in:
uetchy 2022-04-14 13:03:52 +09:00
parent e8f7db80d8
commit eebf6797b5
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ export default async function handler(
);
const body = await response.text();
const json = JSON.parse(body.slice(5));
console.log(json[1][1][0]);
const items = json[1][1].map((item: any) => ({
id: item[0],
name: item[1],

View File

@ -19,7 +19,7 @@ export default async function handler(
'GET'
);
const json = await response.json();
console.log(json.results.map((i: any) => i.name));
const items = json.results.map((item: any) => {
const locale = item.name._default || 'en-US';
return {

View File

@ -92,9 +92,9 @@ const DomainCard: React.FC<{ query: string }> = ({ query }) => {
{(name) => (
<DedicatedAvailability
name={name}
message="Go to tld-list.com"
message={`Go to ${name}`}
service="domain"
link={`https://tld-list.com/tld/${name.replace(/^.+?\./, '')}`}
link={'http://' + name}
icon={<MdDomain />}
/>
)}