Use absolute @/ style imports

- remove index.html
This commit is contained in:
Xevion
2023-01-14 14:27:55 -06:00
parent fb337b9a4c
commit b1db1fea8a
7 changed files with 34 additions and 112 deletions

View File

@@ -1,6 +1,7 @@
import React, {Fragment, FunctionComponent, ReactNode} from "react";
import {DomainType} from "./DomainType";
import {rdapStatusInfo} from "../constants";
import type {FunctionComponent, ReactNode} from "react";
import React, {Fragment} from "react";
import type {DomainType} from "@/components/DomainType";
import {rdapStatusInfo} from "@/constants";
export type DomainProps = {
data: DomainType;

View File

@@ -1,6 +1,5 @@
import type {FunctionComponent} from "react";
import {useMemo} from "react";
import Domain from "./Domain";
import Domain from "@/components/Domain";
export type Link = {
value: string;

View File

@@ -1,4 +1,4 @@
import {FunctionComponent} from "react";
import type {FunctionComponent} from "react";
export type Event = {
eventAction: string;

View File

@@ -1,5 +1,5 @@
// see https://www.iana.org/assignments/rdap-json-values
import type {ExtendedUri, RdapStatusType, Uri} from "./types";
import type {ExtendedUri, RdapStatusType, Uri} from "@/types";
export const rdapStatusInfo: Record<RdapStatusType, string> = {
"validated": "Signifies that the data of the object instance has been found to be accurate. This type of status is usually found on entity object instances to note the validity of identifying contact information.",

View File

@@ -1,6 +1,6 @@
import ipaddr from "ipaddr.js";
import {registryURLs, rdapStatusInfo, placeholders} from "./constants";
import type {Uri} from "./types";
import {rdapStatusInfo, registryURLs} from "@/constants";
import type {Uri} from "@/types";
// keeps track of how many registries we've loaded
let loadedRegistries = 0;