Skip to content

Commit

Permalink
idk what I'm doing
Browse files Browse the repository at this point in the history
lol
  • Loading branch information
MosleyTheMalO committed Nov 23, 2023
1 parent 5d12651 commit 910faa4
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 49 deletions.
20 changes: 10 additions & 10 deletions tgui/packages/tgui/components/LabeledList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Box, unit } from './Box';
import { Divider } from './Divider';

type LabeledListProps = {
children?: any;
readonly children?: any;
};

export const LabeledList = (props: LabeledListProps) => {
Expand All @@ -25,15 +25,15 @@ export const LabeledList = (props: LabeledListProps) => {
LabeledList.defaultHooks = pureComponentHooks;

type LabeledListItemProps = {
className?: string | BooleanLike;
label?: string | BooleanLike;
labelColor?: string | BooleanLike;
color?: string | BooleanLike;
textAlign?: string | BooleanLike;
buttons?: InfernoNode,
readonly className?: string | BooleanLike;
readonly label?: string | BooleanLike;
readonly labelColor?: string | BooleanLike;
readonly color?: string | BooleanLike;
readonly textAlign?: string | BooleanLike;
readonly buttons?: InfernoNode,
/** @deprecated */
content?: any,
children?: InfernoNode;
readonly content?: any,
readonly children?: InfernoNode;
};

const LabeledListItem = (props: LabeledListItemProps) => {
Expand Down Expand Up @@ -86,7 +86,7 @@ const LabeledListItem = (props: LabeledListItemProps) => {
LabeledListItem.defaultHooks = pureComponentHooks;

type LabeledListDividerProps = {
size?: number;
readonly size?: number;
};

const LabeledListDivider = (props: LabeledListDividerProps) => {
Expand Down
6 changes: 3 additions & 3 deletions tgui/packages/tgui/components/Popper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createPopper, OptionsGeneric } from "@popperjs/core";
import { Component, findDOMfromVNode, InfernoNode, render } from "inferno";

type PopperProps = {
popperContent: InfernoNode;
options?: Partial<OptionsGeneric<unknown>>;
additionalStyles?: CSSProperties,
readonly popperContent: InfernoNode;
readonly options?: Partial<OptionsGeneric<unknown>>;
readonly additionalStyles?: CSSProperties,
};

export class Popper extends Component<PopperProps> {
Expand Down
16 changes: 8 additions & 8 deletions tgui/packages/tgui/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import { addScrollableNode, removeScrollableNode } from '../events';
import { BoxProps, computeBoxClassName, computeBoxProps } from './Box';

interface SectionProps extends BoxProps {
className?: string;
title?: string;
buttons?: InfernoNode;
fill?: boolean;
fitted?: boolean;
scrollable?: boolean;
readonly className?: string;
readonly title?: string;
readonly buttons?: InfernoNode;
readonly fill?: boolean;
readonly fitted?: boolean;
readonly scrollable?: boolean;
/** @deprecated This property no longer works, please remove it. */
level?: boolean;
readonly level?: boolean;
/** @deprecated Please use `scrollable` property */
overflowY?: any;
readonly overflowY?: any;
}

export class Section extends Component<SectionProps> {
Expand Down
6 changes: 3 additions & 3 deletions tgui/packages/tgui/components/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { classes } from 'common/react';
import { Flex, FlexItemProps, FlexProps } from './Flex';

interface StackProps extends FlexProps {
vertical?: boolean;
fill?: boolean;
readonly vertical?: boolean;
readonly fill?: boolean;
}

export const Stack = (props: StackProps) => {
Expand Down Expand Up @@ -44,7 +44,7 @@ const StackItem = (props: FlexProps) => {
Stack.Item = StackItem;

interface StackDividerProps extends FlexItemProps {
hidden?: boolean;
readonly hidden?: boolean;
}

const StackDivider = (props: StackDividerProps) => {
Expand Down
6 changes: 3 additions & 3 deletions tgui/packages/tgui/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { createPopper, Placement, VirtualElement } from '@popperjs/core';
import { Component, findDOMfromVNode, InfernoNode, render } from 'inferno';

type TooltipProps = {
children?: InfernoNode;
content: InfernoNode;
position?: Placement,
readonly children?: InfernoNode;
readonly content: InfernoNode;
readonly position?: Placement,
};

type TooltipState = {
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/ComponentPrinter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const canProduce = (
};

const MaterialCost = (props: {
materials: Design["materials"],
readonly materials: Design["materials"],
}) => {
return (
<Stack>
Expand Down
10 changes: 5 additions & 5 deletions tgui/packages/tgui/interfaces/DecalPainter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ export const DecalPainter = (props, context) => {
};

type IconButtonParams = {
decal: string;
dir: number;
color: string;
label: string;
selected: boolean;
readonly decal: string;
readonly dir: number;
readonly color: string;
readonly label: string;
readonly selected: boolean;
};

const IconButton = (props: IconButtonParams, context) => {
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/ExodroneConsole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ const EventScreen = (props, context) => {


type AdventureScreenProps = {
hide_status?: boolean
readonly hide_status?: boolean
}

export const AdventureScreen = (props: AdventureScreenProps, context) => {
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/RequestKiosk.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const RequestKioskContent = (props, context) => {
title="Request Applicants">
{applicants?.map(applicant => (
applicant.request_id === request.acc_number && (
<Flex>
<Flex key={applicant.request_id}>
<Flex.Item
grow={1}
p={0.5}
Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui/interfaces/StripMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const getGridSpotKey = (spot: [number, number]): GridSpotKey => {
};

const CornerText = (props: {
align: "left" | "right";
children: string;
readonly align: "left" | "right";
readonly children: string;
}): JSX.Element => {
const { align, children } = props;

Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui/interfaces/common/InputButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ type InputButtonsData = {
};

type InputButtonsProps = {
input: string | number;
message?: string;
readonly input: string | number;
readonly message?: string;
};

export const InputButtons = (props: InputButtonsProps, context) => {
Expand Down
20 changes: 10 additions & 10 deletions tgui/packages/tgui/interfaces/common/Materials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type Material = {
};

interface MaterialIconProps extends BoxProps {
material: keyof typeof MATERIAL_KEYS;
readonly material: keyof typeof MATERIAL_KEYS;
}

export const MaterialIcon = (props: MaterialIconProps) => {
Expand All @@ -43,8 +43,8 @@ export const MaterialIcon = (props: MaterialIconProps) => {
};

const EjectMaterial = (props: {
material: Material,
onEject: (amount: number) => void,
readonly material: Material,
readonly onEject: (amount: number) => void,
}, context) => {
const {
name,
Expand Down Expand Up @@ -82,8 +82,8 @@ const EjectMaterial = (props: {
};

export const Materials = (props: {
materials: Material[],
onEject: (ref: string, amount: number) => void,
readonly materials: Material[],
readonly onEject: (ref: string, amount: number) => void,
}) => {
return (
<Flex wrap>
Expand Down Expand Up @@ -111,11 +111,11 @@ export enum MaterialFormatting {
}

export const MaterialAmount = (props: {
name: keyof typeof MATERIAL_KEYS,
amount: number,
formatting?: MaterialFormatting,
color?: string,
style?: Record<string, string>,
readonly name: keyof typeof MATERIAL_KEYS,
readonly amount: number,
readonly formatting?: MaterialFormatting,
readonly color?: string,
readonly style?: Record<string, string>,
}) => {
const {
name,
Expand Down

0 comments on commit 910faa4

Please sign in to comment.