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

Commitaec64e0

Browse files
chore: remove unused exports (#18038)
1 parentf331140 commitaec64e0

File tree

149 files changed

+165
-188
lines changed

Some content is hidden

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

149 files changed

+165
-188
lines changed

‎site/.knip.jsonc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,5 @@
88
"@types/react-virtualized-auto-sizer",
99
"jest_workaround",
1010
"ts-proto"
11-
],
12-
// Don't report unused exports of types as long as they are used within the file.
13-
"ignoreExportsUsedInFile": {
14-
"interface":true,
15-
"type":true
16-
}
11+
]
1712
}

‎site/pnpm-lock.yaml

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/api/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export interface FieldError {
1111
detail:string;
1212
}
1313

14-
exporttypeFieldErrors=Record<FieldError["field"],FieldError["detail"]>;
14+
typeFieldErrors=Record<FieldError["field"],FieldError["detail"]>;
1515

1616
exportinterfaceApiErrorResponse{
1717
message:string;
1818
detail?:string;
1919
validations?:FieldError[];
2020
}
2121

22-
exporttypeApiError=AxiosError<ApiErrorResponse>&{
22+
typeApiError=AxiosError<ApiErrorResponse>&{
2323
response:AxiosResponse<ApiErrorResponse>;
2424
};
2525

‎site/src/api/queries/workspaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export const agentLogs = (agentId: string) => {
355355
};
356356

357357
// workspace usage options
358-
exportinterfaceWorkspaceUsageOptions{
358+
interfaceWorkspaceUsageOptions{
359359
usageApp:UsageAppName;
360360
connectionStatus:ConnectionStatus;
361361
workspaceId:string|undefined;

‎site/src/components/ActiveUserChart/ActiveUserChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const chartConfig = {
2020
color:"hsl(var(--highlight-purple))",
2121
},
2222
}satisfiesChartConfig;
23-
exportinterfaceActiveUserChartProps{
23+
interfaceActiveUserChartProps{
2424
data:{date:string;amount:number}[];
2525
}
2626

‎site/src/components/Avatar/AvatarData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import{Avatar}from"components/Avatar/Avatar";
22
importtype{FC,ReactNode}from"react";
33

4-
exportinterfaceAvatarDataProps{
4+
interfaceAvatarDataProps{
55
title:ReactNode;
66
subtitle?:ReactNode;
77
src?:string;

‎site/src/components/Badge/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const badgeVariants = cva(
5050
},
5151
);
5252

53-
exportinterfaceBadgeProps
53+
interfaceBadgeProps
5454
extendsReact.HTMLAttributes<HTMLDivElement>,
5555
VariantProps<typeofbadgeVariants>{
5656
asChild?:boolean;

‎site/src/components/CodeExample/CodeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { FC } from "react";
33
import{MONOSPACE_FONT_FAMILY}from"theme/constants";
44
import{CopyButton}from"../CopyButton/CopyButton";
55

6-
exportinterfaceCodeExampleProps{
6+
interfaceCodeExampleProps{
77
code:string;
88
secret?:boolean;
99
className?:string;

‎site/src/components/CollapsibleSummary/CollapsibleSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const collapsibleSummaryVariants = cva(
2020
},
2121
);
2222

23-
exportinterfaceCollapsibleSummaryProps
23+
interfaceCollapsibleSummaryProps
2424
extendsVariantProps<typeofcollapsibleSummaryVariants>{
2525
/**
2626
* The label to display for the collapsible section

‎site/src/components/Conditionals/ChooseOne.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
typeReactNode,
66
}from"react";
77

8-
exportinterfaceCondProps{
8+
interfaceCondProps{
99
condition?:boolean;
1010
children?:ReactNode;
1111
}

‎site/src/components/Dialogs/DeleteDialog/DeleteDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { type FC, type FormEvent, useId, useState } from "react";
44
import{Stack}from"../../Stack/Stack";
55
import{ConfirmDialog}from"../ConfirmDialog/ConfirmDialog";
66

7-
exportinterfaceDeleteDialogProps{
7+
interfaceDeleteDialogProps{
88
isOpen:boolean;
99
onConfirm:()=>void;
1010
onCancel:()=>void;

‎site/src/components/Expander/Expander.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Link from "@mui/material/Link";
44
import{DropdownArrow}from"components/DropdownArrow/DropdownArrow";
55
importtype{FC,ReactNode}from"react";
66

7-
exportinterfaceExpanderProps{
7+
interfaceExpanderProps{
88
expanded:boolean;
99
setExpanded:(val:boolean)=>void;
1010
children?:ReactNode;

‎site/src/components/FileUpload/FileUpload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useClickable } from "hooks/useClickable";
66
import{CloudUploadIcon,FolderIcon,TrashIcon}from"lucide-react";
77
import{typeDragEvent,typeFC,typeReactNode,useRef}from"react";
88

9-
exportinterfaceFileUploadProps{
9+
interfaceFileUploadProps{
1010
isUploading:boolean;
1111
onUpload:(file:File)=>void;
1212
onRemove?:()=>void;

‎site/src/components/Filter/Filter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { ChevronDownIcon } from "lucide-react";
1818
import{typeFC,typeReactNode,useEffect,useRef,useState}from"react";
1919
importtype{useSearchParams}from"react-router-dom";
2020

21-
exporttypePresetFilter={
21+
typePresetFilter={
2222
name:string;
2323
query:string;
2424
};

‎site/src/components/Filter/SelectFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type SelectFilterOption = {
2020
value:string;
2121
};
2222

23-
exporttypeSelectFilterProps={
23+
typeSelectFilterProps={
2424
options:SelectFilterOption[]|undefined;
2525
selectedOption?:SelectFilterOption;
2626
// Used to add a accessibility label to the select

‎site/src/components/FullPageForm/FullPageHorizontalForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
}from"components/PageHeader/PageHeader";
88
importtype{FC,ReactNode}from"react";
99

10-
exportinterfaceFullPageHorizontalFormProps{
10+
interfaceFullPageHorizontalFormProps{
1111
title:string;
1212
detail?:ReactNode;
1313
onCancel?:()=>void;

‎site/src/components/GlobalSnackbar/EnterpriseSnackbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { FC } from "react";
99

1010
typeEnterpriseSnackbarVariant="error"|"info"|"success";
1111

12-
exportinterfaceEnterpriseSnackbarPropsextendsMuiSnackbarProps{
12+
interfaceEnterpriseSnackbarPropsextendsMuiSnackbarProps{
1313
/** Called when the snackbar should close, either from timeout or clicking close */
1414
onClose:()=>void;
1515
/** Variant of snackbar, for theming */

‎site/src/components/Link/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const linkVariants = cva(
2323
},
2424
);
2525

26-
exportinterfaceLinkProps
26+
interfaceLinkProps
2727
extendsReact.AnchorHTMLAttributes<HTMLAnchorElement>,
2828
VariantProps<typeoflinkVariants>{
2929
asChild?:boolean;

‎site/src/components/Logs/Logs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { type Line, LogLine, LogLinePrefix } from "./LogLine";
55

66
exportconstDEFAULT_LOG_LINE_SIDE_PADDING=24;
77

8-
exportinterfaceLogsProps{
8+
interfaceLogsProps{
99
lines:Line[];
1010
hideTimestamps?:boolean;
1111
className?:string;

‎site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ interface MultiSelectComboboxProps {
9797
hideClearAllButton?:boolean;
9898
}
9999

100-
exportinterfaceMultiSelectComboboxRef{
100+
interfaceMultiSelectComboboxRef{
101101
selectedValue:Option[];
102102
input:HTMLInputElement;
103103
focus:()=>void;

‎site/src/components/OrganizationAutocomplete/OrganizationAutocomplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { AvatarData } from "components/Avatar/AvatarData";
1010
import{typeComponentProps,typeFC,useEffect,useState}from"react";
1111
import{useQuery}from"react-query";
1212

13-
exporttypeOrganizationAutocompleteProps={
13+
typeOrganizationAutocompleteProps={
1414
onChange:(organization:Organization|null)=>void;
1515
label?:string;
1616
className?:string;

‎site/src/components/PageHeader/PageHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
importtype{FC,PropsWithChildren,ReactNode}from"react";
22
import{Stack}from"../Stack/Stack";
33

4-
exportinterfacePageHeaderProps{
4+
interfacePageHeaderProps{
55
actions?:ReactNode;
66
className?:string;
77
children?:ReactNode;

‎site/src/components/Paywall/Paywall.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Stack } from "components/Stack/Stack";
66
import{CircleCheckBigIcon}from"lucide-react";
77
importtype{FC,ReactNode}from"react";
88

9-
exportinterfacePaywallProps{
9+
interfacePaywallProps{
1010
message:string;
1111
description?:ReactNode;
1212
documentationLink?:string;

‎site/src/components/Paywall/PopoverPaywall.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Stack } from "components/Stack/Stack";
66
import{CircleCheckBigIcon}from"lucide-react";
77
importtype{FC,ReactNode}from"react";
88

9-
exportinterfacePopoverPaywallProps{
9+
interfacePopoverPaywallProps{
1010
message:string;
1111
description?:ReactNode;
1212
documentationLink?:string;

‎site/src/components/Pill/Pill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
}from"react";
1212
importtype{ThemeRole}from"theme/roles";
1313

14-
exporttypePillProps=HTMLAttributes<HTMLDivElement>&{
14+
typePillProps=HTMLAttributes<HTMLDivElement>&{
1515
icon?:ReactNode;
1616
type?:ThemeRole;
1717
size?:"md"|"lg";

‎site/src/components/RichParameterInput/RichParameterInput.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const styles = {
121121
}),
122122
}satisfiesRecord<string,Interpolation<Theme>>;
123123

124-
exportinterfaceParameterLabelProps{
124+
interfaceParameterLabelProps{
125125
parameter:TemplateVersionParameter;
126126
isPreset?:boolean;
127127
}
@@ -191,10 +191,7 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ parameter, isPreset }) => {
191191

192192
typeSize="medium"|"small";
193193

194-
exporttypeRichParameterInputProps=Omit<
195-
TextFieldProps,
196-
"size"|"onChange"
197-
>&{
194+
typeRichParameterInputProps=Omit<TextFieldProps,"size"|"onChange">&{
198195
parameter:TemplateVersionParameter;
199196
parameterAutofill?:AutofillBuildParameter;
200197
onChange:(value:string)=>void;

‎site/src/components/SelectMenu/SelectMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const SelectMenuTrigger = PopoverTrigger;
2929

3030
exportconstSelectMenuContent=PopoverContent;
3131

32-
exporttypeSelectMenuButtonProps=ButtonProps&{
32+
typeSelectMenuButtonProps=ButtonProps&{
3333
startIcon?:React.ReactNode;
3434
};
3535

‎site/src/components/Stack/Stack.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
importtype{CSSObject}from"@emotion/react";
22
import{forwardRef}from"react";
33

4-
exporttypeStackProps={
4+
typeStackProps={
55
className?:string;
66
direction?:"column"|"row";
77
spacing?:number;

‎site/src/components/TableEmpty/TableEmpty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
}from"components/EmptyState/EmptyState";
77
importtype{FC}from"react";
88

9-
exporttypeTableEmptyProps=EmptyStateProps;
9+
typeTableEmptyProps=EmptyStateProps;
1010

1111
exportconstTableEmpty:FC<TableEmptyProps>=(props)=>{
1212
return(

‎site/src/components/TagInput/TagInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Chip from "@mui/material/Chip";
22
importFormHelperTextfrom"@mui/material/FormHelperText";
33
import{typeFC,useId,useMemo}from"react";
44

5-
exporttypeTagInputProps={
5+
typeTagInputProps={
66
label:string;
77
id?:string;
88
values:string[];

‎site/src/components/Timeline/Timeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const groupByDate = <TData,>(
2222
returnitemsByDate;
2323
};
2424

25-
exportinterfaceTimelineProps<TData>{
25+
interfaceTimelineProps<TData>{
2626
items:readonlyTData[];
2727
getDate:GetDateFn<TData>;
2828
row:(item:TData)=>JSX.Element;

‎site/src/components/UserAutocomplete/UserAutocomplete.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import { keepPreviousData, useQuery } from "react-query";
1919
import{prepareQuery}from"utils/filters";
2020

2121
// The common properties between users and org members that we need.
22-
exporttypeSelectedUser={
22+
typeSelectedUser={
2323
avatar_url?:string;
2424
email:string;
2525
username:string;
2626
};
2727

28-
exporttypeCommonAutocompleteProps<TextendsSelectedUser>={
28+
typeCommonAutocompleteProps<TextendsSelectedUser>={
2929
className?:string;
3030
label?:string;
3131
onChange:(user:T|null)=>void;
@@ -34,7 +34,7 @@ export type CommonAutocompleteProps<T extends SelectedUser> = {
3434
value:T|null;
3535
};
3636

37-
exporttypeUserAutocompleteProps=CommonAutocompleteProps<User>;
37+
typeUserAutocompleteProps=CommonAutocompleteProps<User>;
3838

3939
exportconstUserAutocomplete:FC<UserAutocompleteProps>=(props)=>{
4040
const[filter,setFilter]=useState<string>();
@@ -58,7 +58,7 @@ export const UserAutocomplete: FC<UserAutocompleteProps> = (props) => {
5858
);
5959
};
6060

61-
exporttypeMemberAutocompleteProps=
61+
typeMemberAutocompleteProps=
6262
CommonAutocompleteProps<OrganizationMemberWithUserData>&{
6363
organizationId:string;
6464
};

‎site/src/hooks/useSearchParamsKey.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import{useSearchParams}from"react-router-dom";
22

3-
exporttypeUseSearchParamsKeyConfig=Readonly<{
3+
typeUseSearchParamsKeyConfig=Readonly<{
44
key:string;
55
searchParams?:URLSearchParams;
66
defaultValue?:string;
77
replace?:boolean;
88
}>;
99

10-
exporttypeUseSearchParamKeyResult=Readonly<{
10+
typeUseSearchParamKeyResult=Readonly<{
1111
value:string;
1212
setValue:(newValue:string)=>void;
1313
deleteValue:()=>void;

‎site/src/modules/apps/apps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const openAppInNewWindow = (href: string) => {
7979
window.open(href,"_blank","width=900,height=600");
8080
};
8181

82-
exporttypeGetAppHrefParams={
82+
typeGetAppHrefParams={
8383
path:string;
8484
host:string;
8585
workspace:Workspace;

‎site/src/modules/builds/BuildAvatar/BuildAvatar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useClassName } from "hooks/useClassName";
66
importtype{FC}from"react";
77
import{getDisplayWorkspaceBuildStatus}from"utils/workspace";
88

9-
exportinterfaceBuildAvatarProps{
9+
interfaceBuildAvatarProps{
1010
build:WorkspaceBuild;
1111
size?:AvatarProps["size"];
1212
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp