Skip to content

Commit 76793e0

Browse files
committed
refactor: Move core site source code into 'src' folder
1 parent dfc353b commit 76793e0

File tree

102 files changed

+7
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+7
-7
lines changed

site/.storybook/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ThemeProvider from "@material-ui/styles/ThemeProvider"
22
import { withThemes } from "@react-theming/storybook-addon"
3-
import { light, dark } from "../theme"
3+
import { light, dark } from "../src/theme"
44
import { addDecorator } from "node_modules/@storybook/react"
55
import { createMemoryHistory } from "history"
66
import { unstable_HistoryRouter as HistoryRouter } from "react-router-dom"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

site/components/SignIn/SignInForm.tsx renamed to site/src/components/SignIn/SignInForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import * as Yup from "yup"
88

99
import { Welcome } from "./Welcome"
1010
import { FormTextField } from "../Form"
11-
import * as API from "./../../api"
12-
import { LoadingButton } from "./../Button"
11+
import * as API from "../../api"
12+
import { LoadingButton } from "../Button"
1313

1414
/**
1515
* BuiltInAuthFormValues describes a form using built-in (email/password)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

site/forms/CreateProjectForm.tsx renamed to site/src/forms/CreateProjectForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
FormCloseButton,
1414
} from "../components/Form"
1515
import { LoadingButton } from "../components/Button"
16-
import { Organization, Project, Provisioner, CreateProjectRequest } from "./../api"
16+
import { Organization, Project, Provisioner, CreateProjectRequest } from "../api"
1717

1818
export interface CreateProjectFormProps {
1919
provisioners: Provisioner[]
File renamed without changes.
File renamed without changes.
File renamed without changes.

site/pages/login.tsx renamed to site/src/pages/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { makeStyles } from "@material-ui/core/styles"
22
import React from "react"
3-
import { SignInForm } from "./../components/SignIn"
3+
import { SignInForm } from "../components/SignIn"
44

55
export const useStyles = makeStyles((theme) => ({
66
root: {

site/pages/projects/index.tsx renamed to site/src/pages/projects/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Column, Table } from "../../components/Table"
1111
import { useUser } from "../../contexts/UserContext"
1212
import { FullScreenLoader } from "../../components/Loader/FullScreenLoader"
1313

14-
import { Organization, Project } from "./../../api"
14+
import { Organization, Project } from "../../api"
1515
import useSWR from "swr"
1616
import { CodeExample } from "../../components/CodeExample/CodeExample"
1717

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

site/webpack.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const commonWebpackConfig: Configuration = {
2222
// entry defines each "page" or "chunk". Currently, for v2, we only have one bundle -
2323
// a bundle that is shared across all of the UI. However, we may need to eventually split
2424
// like in v1, where there is a separate entry piont for dashboard & terminal.
25-
entry: path.join(__dirname, "Main.tsx"),
25+
entry: path.join(__dirname, "src/Main.tsx"),
2626

2727
// modules specify how different modules are loaded
2828
// See: https://webpack.js.org/concepts/modules/

0 commit comments

Comments
 (0)