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:
parent
e8f7db80d8
commit
eebf6797b5
@ -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],
|
||||
|
@ -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 {
|
||||
|
@ -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 />}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user