Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: Remove FE dead code#5760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 3 commits intomainfrombq/remove-dead-code
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletionsite/e2e/constants.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,5 +5,4 @@ export const basePort = 3000
// Credentials for the default user when running in dev mode.
export const username = "developer"
export const password = "password"
export const organization = "acme-corp"
export const email = "admin@coder.com"
4 changes: 3 additions & 1 deletionsite/package.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,7 +23,8 @@
"test": "jest --selectProjects test",
"test:coverage": "jest --selectProjects test --collectCoverage",
"test:watch": "jest --selectProjects test --watch",
"typegen": "xstate typegen 'src/**/*.ts'"
"typegen": "xstate typegen 'src/**/*.ts'",
"deadcode": "ts-prune | grep -v \".stories\\|.typegen\\|.config\\|e2e\\|__mocks__\\|used in module\\|testHelpers\\|typesGenerated\" || echo \"No deadcode found.\""
},
"dependencies": {
"@emoji-mart/data": "1.0.5",
Expand DownExpand Up@@ -68,6 +69,7 @@
"react-syntax-highlighter": "15.5.0",
"remark-gfm": "3.0.1",
"sourcemapped-stacktrace": "1.1.11",
"ts-prune": "0.10.3",
"tzdata": "1.0.30",
"ua-parser-js": "1.0.2",
"uuid": "9.0.0",
Expand Down
2 changes: 1 addition & 1 deletionsite/src/api/errors.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
import axios, { AxiosError, AxiosResponse } from "axios"

exportconst Language = {
const Language = {
errorsByCode: {
defaultErrorCode: "Invalid value",
},
Expand Down
2 changes: 1 addition & 1 deletionsite/src/components/AppLink/AppLink.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@ import { generateRandomString } from "../../util/random"
import { BaseIcon } from "./BaseIcon"
import { ShareIcon } from "./ShareIcon"

exportconst Language = {
const Language = {
appTitle: (appName: string, identifier: string): string =>
`${appName} - ${identifier}`,
}
Expand Down
2 changes: 1 addition & 1 deletionsite/src/components/AppLink/AppLinkSkeleton.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@ export const AppLinkSkeleton: FC<{ width: number }> = ({ width }) => {
)
}

exportconst useStyles = makeStyles(() => ({
const useStyles = makeStyles(() => ({
skeleton: {
borderRadius: borderRadiusSm,
},
Expand Down
2 changes: 1 addition & 1 deletionsite/src/components/AppLink/AppPreviewLink.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@ import * as TypesGen from "api/typesGenerated"
import { BaseIcon } from "./BaseIcon"
import { ShareIcon } from "./ShareIcon"

exportinterface AppPreviewProps {
interface AppPreviewProps {
app: TypesGen.WorkspaceApp
}

Expand Down
11 changes: 0 additions & 11 deletionssite/src/components/DeploySettingsLayout/Badges.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -40,17 +40,6 @@ export const EnterpriseBadge: FC = () => {
)
}

export const VersionBadge: FC<{
version: string
}> = ({ version }) => {
const styles = useStyles()
return (
<span className={combineClasses([styles.badge, styles.versionBadge])}>
Version: {version}
</span>
)
}

export const Badges: FC<PropsWithChildren> = ({ children }) => {
const styles = useStyles()
return (
Expand Down
62 changes: 0 additions & 62 deletionssite/src/components/Dialogs/Dialog.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
import MuiDialog, {
DialogProps as MuiDialogProps,
} from "@material-ui/core/Dialog"
import MuiDialogTitle from "@material-ui/core/DialogTitle"
import { alpha, darken, lighten, makeStyles } from "@material-ui/core/styles"
import SvgIcon from "@material-ui/core/SvgIcon"
import * as React from "react"
import { combineClasses } from "../../util/combineClasses"
import {
Expand All@@ -12,66 +10,6 @@ import {
} from "../LoadingButton/LoadingButton"
import { ConfirmDialogType } from "./types"

export interface DialogTitleProps {
/** Title for display */
title: React.ReactNode
/** Optional icon to display faded to the right of the title */
icon?: typeof SvgIcon
/** Smaller text to display above the title */
superTitle?: React.ReactNode
}

/**
* Override of Material UI's DialogTitle that allows for a supertitle and background icon
*/
export const DialogTitle: React.FC<DialogTitleProps> = ({
title,
icon: Icon,
superTitle,
}) => {
const styles = useTitleStyles()
return (
<MuiDialogTitle disableTypography>
<div className={styles.titleWrapper}>
{superTitle && <div className={styles.superTitle}>{superTitle}</div>}
<div className={styles.title}>{title}</div>
</div>
{Icon && <Icon className={styles.icon} />}
</MuiDialogTitle>
)
}

const useTitleStyles = makeStyles(
(theme) => ({
title: {
position: "relative",
zIndex: 2,
fontSize: theme.typography.h3.fontSize,
fontWeight: theme.typography.h3.fontWeight,
lineHeight: "40px",
display: "flex",
alignItems: "center",
},
superTitle: {
position: "relative",
zIndex: 2,
fontSize: theme.typography.body2.fontSize,
fontWeight: 500,
letterSpacing: 1.5,
textTransform: "uppercase",
},
titleWrapper: {
padding: `${theme.spacing(2)}px 0`,
},
icon: {
height: 84,
width: 84,
color: alpha(theme.palette.action.disabled, 0.4),
},
}),
{ name: "CdrDialogTitle" },
)

export interface DialogActionButtonsProps {
/** Text to display in the cancel button */
cancelText?: string
Expand Down
52 changes: 0 additions & 52 deletionssite/src/components/FormDropdownField/FormDropdownField.tsx
View file
Open in desktop

This file was deleted.

68 changes: 0 additions & 68 deletionssite/src/components/FormSection/FormSection.tsx
View file
Open in desktop

This file was deleted.

2 changes: 1 addition & 1 deletionsite/src/components/FormTextField/FormTextField.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@ import { PasswordField } from "../PasswordField/PasswordField"
/**
* FormFieldProps are required props for creating form fields using a factory.
*/
exportinterfaceFormFieldProps<T>{
interfaceFormFieldProps<T>{
/**
* form is a reference to a form or subform and is used to compute common
* states such as error and helper text
Expand Down
33 changes: 0 additions & 33 deletionssite/src/components/FormTitle/FormTitle.tsx
View file
Open in desktop

This file was deleted.

12 changes: 0 additions & 12 deletionssite/src/components/Icons/DocsIcon.tsx
View file
Open in desktop

This file was deleted.

26 changes: 0 additions & 26 deletionssite/src/components/Icons/Logo.tsx
View file
Open in desktop

This file was deleted.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp