Skip to content

Commit 2ac48ed

Browse files
committed
no aliases
1 parent 48d6ee6 commit 2ac48ed

19 files changed

Lines changed: 44 additions & 56 deletions

web/src/components/ColoredSyntax.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { DefaultTheme, useTheme } from "styled-components";
3-
import { Theme } from "~components/Themes";
3+
import { Theme } from "./Themes";
44

55
export type ColoredSyntaxKind = keyof Theme["syntax"];
66

web/src/components/Docs/ContentList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { useContext } from "react";
22
import { useNavigate } from "react-router-dom";
33
import styled from "styled-components";
4-
import { ContentWrapper, ListItem, TextMessage } from "~components/layout/Content";
5-
import { LazyList, ScrollableList } from "~components/Lists";
4+
import { ContentWrapper, ListItem, TextMessage } from "../layout/Content";
5+
import { LazyList, ScrollableList } from "../Lists";
66
import { useFilteredData } from "./utils/filtering";
77
import { SchemaClassView } from "./SchemaClass";
88
import { SchemaEnumView } from "./SchemaEnum";
9-
import { Declaration } from "~components/Docs/api";
10-
import { DeclarationsContext } from "~components/Docs/DeclarationsContext";
11-
import { GAMES } from "~games";
9+
import { Declaration } from "./api";
10+
import { DeclarationsContext } from "./DeclarationsContext";
11+
import { GAMES } from "../../games";
1212

1313
const InfoBlock = styled.div`
1414
max-width: 560px;

web/src/components/Docs/CrossGameRefs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useContext } from "react";
22
import styled from "styled-components";
33
import { Declaration, SchemaClass, SchemaEnum } from "./api";
44
import { DeclarationsContext } from "./DeclarationsContext";
5-
import { GAMES, GameId } from "~games";
5+
import { GAMES, GameId } from "../../games";
66
import { SectionWrapper, SectionTitle, SectionList, SectionLink } from "./utils/styles";
77

88
type DiffStatus = "identical" | "offsets_only" | "differs";

web/src/components/Docs/DeclarationsContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createContext } from "react";
2-
import { Declaration } from "~components/Docs/api";
3-
import { GameId } from "~games";
2+
import { Declaration } from "./api";
3+
import { GameId } from "../../games";
44

55
export type ReferenceEntry = {
66
declarationName: string;

web/src/components/Docs/ReferencedBy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useContext, useState } from "react";
22
import styled from "styled-components";
33
import { DeclarationsContext } from "./DeclarationsContext";
4-
import { KindIcon } from "~components/KindIcon";
4+
import { KindIcon } from "../KindIcon";
55
import { SectionWrapper, SectionTitle, SectionList, SectionLink } from "./utils/styles";
66

77
const COLLAPSE_THRESHOLD = 8;

web/src/components/Docs/SchemaEnum.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as api from "./api";
22
import React, { useContext, useMemo } from "react";
33
import styled from "styled-components";
4-
import { ColoredSyntax } from "~components/ColoredSyntax";
4+
import { ColoredSyntax } from "../ColoredSyntax";
55
import { KindIcon } from "./utils/components";
66
import { DeclarationsContext } from "./DeclarationsContext";
77
import { MetadataTags } from "./SchemaType";

web/src/components/Docs/SchemaType.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useContext, useMemo, useState } from "react";
22
import { NavLink } from "react-router-dom";
33
import styled, { useTheme } from "styled-components";
44
import { SchemaFieldType, SchemaMetadataEntry } from "./api";
5-
import { ColoredSyntax, getSyntaxColorFor } from "~components/ColoredSyntax";
5+
import { ColoredSyntax, getSyntaxColorFor } from "../ColoredSyntax";
66
import { DeclarationsContext } from "./DeclarationsContext";
77

88
const TypeLink = styled(NavLink)`

web/src/components/Docs/utils/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components";
2-
import { KindIcon as UnstyledKindIcon } from "~components/KindIcon";
2+
import { KindIcon as UnstyledKindIcon } from "../../KindIcon";
33

44
export const KindIcon = styled(UnstyledKindIcon)`
55
margin-bottom: -4px;

web/src/components/Docs/utils/filtering.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useContext, useMemo } from "react";
22
import { useParams } from "react-router-dom";
3-
import { SearchContext } from "~components/Search/SearchContext";
4-
import * as api from "~components/Docs/api";
3+
import { SearchContext } from "../../Search/SearchContext";
4+
import * as api from "../api";
55

66
export function useFilteredData(declarations: api.Declaration[]) {
77
const { search } = useContext(SearchContext);

web/src/components/layout/NavBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
22
import styled from "styled-components";
33
import { useNavigate, useLocation } from "react-router-dom";
4-
import { AppContext } from "~components/AppContext";
5-
import { SearchBox } from "~components/Search";
6-
import { GAMES, GameId, getGame } from "~games";
4+
import { AppContext } from "../AppContext";
5+
import { SearchBox } from "../Search";
6+
import { GAMES, GameId, getGame } from "../../games";
77

88
export const NavBar = ({ baseUrl }: { baseUrl?: string }) => {
99
if (!baseUrl) {

0 commit comments

Comments
 (0)