Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"x-default-browser": "^0.5.2"
},
"devDependencies": {
"prettier": "^2.5.0",
"prettier": "^3.2.5",
"typescript": "^5.3.2"
},
"workspaces": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const Bar = styled.span`
border-bottom-left-radius: 20px;
background-color: ${props => props.theme.colors.brand};

box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
box-shadow:
inset 0 2px 9px rgba(255, 255, 255, 0.3),
inset 0 -2px 6px rgba(0, 0, 0, 0.4);
position: relative;
overflow: hidden;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,12 @@ export const TerminalContentContainer = styled.div`

export const TerminalCode = styled.div`
font-size: 12px;
font-family: Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace;
font-family:
Menlo,
DejaVu Sans Mono,
Consolas,
Lucida Console,
monospace;
line-height: 20px;
white-space: pre-wrap;
margin: 10px 16px;
Expand Down
2 changes: 1 addition & 1 deletion web/packages/shared/components/Select/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export type ActionMeta = {
*/
export type CustomSelectComponentProps<
CustomProps,
CustomOption = Option
CustomOption = Option,
> = CustomOption & {
/**
* selectProps is the field to use to access the props that were
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export function PinButton({
className={className}
css={`
visibility: ${shouldShowButton ? 'visible' : 'hidden'};
transition: color 0.3s, background 0.3s;
transition:
color 0.3s,
background 0.3s;
`}
>
{tipContent && shouldShowButton ? (
Expand Down
7 changes: 6 additions & 1 deletion web/packages/shared/components/Window/WindowComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export const WindowContentContainer = styled.div`

export const WindowCode = styled.div`
font-size: 12px;
font-family: Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace;
font-family:
Menlo,
DejaVu Sans Mono,
Consolas,
Lucida Console,
monospace;
line-height: 20px;
white-space: pre-wrap;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { MutableRefObject, useEffect, useRef, useCallback } from 'react';
* events to be ignored.
*/
export function useRefClickOutside<
T extends { contains(eventTarget: HTMLElement): boolean }
T extends { contains(eventTarget: HTMLElement): boolean },
>(options: { open: boolean; setOpen(b: boolean): void }): MutableRefObject<T> {
const ref = useRef<T>();
const { setOpen, open } = options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function LockedAccessRequests() {
transform: translate(-50%, 50%);
@media screen and (max-width: 800px) {
min-width: 100%;
} ;
}
`}
>
{CTAButton}
Expand Down
3 changes: 2 additions & 1 deletion web/packages/teleport/src/Assist/Assist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ const AssistContainer = styled.div`
0
);
animation: forwards ${slideIn} 0.5s cubic-bezier(0.33, 1, 0.68, 1);
transition: width 0.5s cubic-bezier(0.33, 1, 0.68, 1),
transition:
width 0.5s cubic-bezier(0.33, 1, 0.68, 1),
height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
background: ${p => p.theme.colors.levels.popout};
border-radius: var(--assist-border-radius);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const Content = styled.div`
background: var(--content-background);
color: var(--content-color);
border-radius: var(--content-border-radius);
box-shadow: 0 6px 12px -2px rgba(50, 50, 93, 0.05),
box-shadow:
0 6px 12px -2px rgba(50, 50, 93, 0.05),
0 3px 7px -3px rgba(0, 0, 0, 0.1);
max-width: 90%;
border: 1px solid ${p => p.theme.colors.spotBackground[1]};
Expand Down
12 changes: 8 additions & 4 deletions web/packages/teleport/src/Assist/Settings/DisplaySettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ const PageNavigation = styled.div`
background: ${p => p.theme.colors.levels.surface};
flex: 0 0 45px;
height: inherit;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
box-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px rgba(0, 0, 0, 0.14),
0px 1px 3px rgba(0, 0, 0, 0.12);
`;

const NavigationLogo = styled.div`
Expand Down Expand Up @@ -189,8 +191,10 @@ const PageTable = styled.div`
width: 100%;
height: 40px;
border-radius: 3px;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.1),
0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 3px rgba(0, 0, 0, 0.06);
box-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.1),
0px 1px 1px rgba(0, 0, 0, 0.07),
0px 1px 3px rgba(0, 0, 0, 0.06);
`;

function MockPage() {
Expand Down
10 changes: 4 additions & 6 deletions web/packages/teleport/src/Assist/context/AssistContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ export function AssistContextProvider(props: PropsWithChildren<unknown>) {

setupWebSocket(conversationId);

const serverMessages = await service.loadConversationMessages(
conversationId
);
const serverMessages =
await service.loadConversationMessages(conversationId);
const messages: ResolvedServerMessage[] = [];

for (const message of serverMessages) {
Expand Down Expand Up @@ -313,9 +312,8 @@ export function AssistContextProvider(props: PropsWithChildren<unknown>) {
loading: true,
});

const serverMessages = await service.loadConversationMessages(
conversationId
);
const serverMessages =
await service.loadConversationMessages(conversationId);
const messages: ResolvedServerMessage[] = [];

for (const message of serverMessages) {
Expand Down
30 changes: 24 additions & 6 deletions web/packages/teleport/src/Assist/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,14 @@ export const markdownCSS = css`
kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font:
11px ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
line-height: 10px;
color: var(--color-fg-default);
vertical-align: middle;
Expand Down Expand Up @@ -392,16 +398,28 @@ export const markdownCSS = css`
tt,
code,
samp {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 12px;
}

pre {
margin-top: 0;
margin-bottom: 0;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 12px;
word-wrap: normal;
}
Expand Down
2 changes: 1 addition & 1 deletion web/packages/teleport/src/Assist/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface GetConversationsResponse {
id: string;
title?: string;
created_time: string;
}
},
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const MobileDescription = styled(Text)`
margin-bottom: ${p => p.theme.space[3]}px;
@media screen and (min-width: ${p => p.theme.breakpoints.tablet}px) {
display: none;
} ;
}
`;

export const DesktopDescription = styled(Box)`
Expand All @@ -46,12 +46,12 @@ export const DesktopDescription = styled(Box)`
flex-shrink: 0;
@media screen and (max-width: ${p => p.theme.breakpoints.tablet}px) {
display: none;
} ;
}
`;

export const ResponsiveAddButton = styled(ButtonPrimary)`
width: 240px;
@media screen and (max-width: ${p => p.theme.breakpoints.tablet}px) {
width: 100%;
} ;
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ export const LockedFeatureButton = styled(ButtonLockedFeature)`
@media screen and (max-width: ${props => props.theme.breakpoints.tablet}px) {
width: 100%;
right: 1px;
} ;
}
`;
6 changes: 4 additions & 2 deletions web/packages/teleport/src/DeviceTrust/DeviceTrustLocked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ const StyledMessageContainer = styled(Flex)`
padding: 24px;
gap: 24px;
width: 600px;
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
box-shadow:
0 5px 5px -3px rgba(0, 0, 0, 0.2),
0 8px 10px 1px rgba(0, 0, 0, 0.14),
0 3px 14px 2px rgba(0, 0, 0, 0.12);
border-radius: 8px;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ export function useCreateDatabase() {
// database service. If there is no active database service,
// user is led to the next step.
try {
const { services } = await ctx.databaseService.fetchDatabaseServices(
clusterId
);
const { services } =
await ctx.databaseService.fetchDatabaseServices(clusterId);

if (!findActiveDatabaseSvc(db.labels, services)) {
updateAgentMeta({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ import {
import { ProxyServerIcon } from './Server';

const NodeHostname = styled.div`
font-family: Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace;
font-family:
Menlo,
DejaVu Sans Mono,
Consolas,
Lucida Console,
monospace;
font-size: 12px;
color: ${props => props.theme.colors.text.primary};
max-width: 184px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ const SuccessMessage = styled.div`
const SuccessTick = styled.span`
margin-right: 5px;
font-size: 14px;
font-family: Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace;
font-family:
Menlo,
DejaVu Sans Mono,
Consolas,
Lucida Console,
monospace;
`;

const Application = styled.div`
Expand Down Expand Up @@ -143,7 +148,12 @@ const ComputerOSVersion = styled.div`
`;

const ComputerAddress = styled.div`
font-family: Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace;
font-family:
Menlo,
DejaVu Sans Mono,
Consolas,
Lucida Console,
monospace;
font-size: 13px;
color: rgba(0, 0, 0, 0.8);
`;
Expand Down
2 changes: 1 addition & 1 deletion web/packages/teleport/src/Discover/Shared/HintBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const HintBoxContainer = styled(Box).attrs(props => ({
background-color: ${props => props.theme.colors.spotBackground[0]};
padding: ${props => `${props.theme.space[3]}px`};
border-radius: ${props => `${props.theme.space[2]}px`};
border: 2px solid ${props => props.theme.colors.warning.main}; ;
border: 2px solid ${props => props.theme.colors.warning.main};
`;

export const WaitingInfo = styled(Box)`
Expand Down
6 changes: 4 additions & 2 deletions web/packages/teleport/src/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ const NavigationContainer = styled.div`
position: relative;
display: flex;
flex-direction: column;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
box-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px rgba(0, 0, 0, 0.14),
0px 1px 3px rgba(0, 0, 0, 0.12);
`;

const CategoriesContainer = styled.div`
Expand Down
3 changes: 2 additions & 1 deletion web/packages/teleport/src/Navigation/NavigationSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const Title = styled.h3`
line-height: 14px;
color: ${props => props.theme.colors.text.slightlyMuted};
margin-left: 32px;
transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
transition:
transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
opacity 0.15s ease-in;
will-change: transform;
margin-top: 33px;
Expand Down
8 changes: 6 additions & 2 deletions web/packages/teleport/src/Navigation/NavigationSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ const Dropdown = styled.div<OpenProps>`
opacity: ${p => (p.open ? 1 : 0)};
visibility: ${p => (p.open ? 'visible' : 'hidden')};
transform-origin: top center;
transition: opacity 0.2s ease, visibility 0.2s ease,
transition:
opacity 0.2s ease,
visibility 0.2s ease,
transform 0.3s cubic-bezier(0.45, 0.6, 0.5, 1.25);
transform: translate3d(0, ${p => (p.open ? '12px' : 0)}, 0);
`;
Expand All @@ -87,7 +89,9 @@ const DropdownItem = styled.div<ActiveProps & OpenProps>`
box-sizing: border-box;
cursor: pointer;
opacity: ${p => (p.open ? 1 : 0)};
transition: transform 0.3s ease, opacity 0.7s ease;
transition:
transform 0.3s ease,
opacity 0.7s ease;
transform: translate3d(0, ${p => (p.open ? 0 : '-10px')}, 0);

&:hover,
Expand Down
4 changes: 3 additions & 1 deletion web/packages/teleport/src/Player/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ const StyledProgessBar = styled.div`
.grv-slider .handle {
background-color: ${props => props.theme.colors.text.main};
border-radius: 200px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);
box-shadow:
0 0 4px rgba(0, 0, 0, 0.12),
0 4px 4px rgba(0, 0, 0, 0.24);
width: 16px;
height: 16px;
left: -8px;
Expand Down
8 changes: 6 additions & 2 deletions web/packages/teleport/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const Dropdown = styled.div<OpenProps>`
opacity: ${p => (p.open ? 1 : 0)};
visibility: ${p => (p.open ? 'visible' : 'hidden')};
transform-origin: top right;
transition: opacity 0.2s ease, visibility 0.2s ease,
transition:
opacity 0.2s ease,
visibility 0.2s ease,
transform 0.3s cubic-bezier(0.45, 0.6, 0.5, 1.25);
transform: ${p =>
p.open ? 'scale(1) translate(0, 12px)' : 'scale(.8) translate(0, 4px)'};
Expand All @@ -53,7 +55,9 @@ export const DropdownItem = styled.div`
border-radius: ${p => p.theme.radii[2]}px;
margin-bottom: ${p => p.theme.space[1]}px;
opacity: ${p => (p.open ? 1 : 0)};
transition: transform 0.3s ease, opacity 0.7s ease;
transition:
transform 0.3s ease,
opacity 0.7s ease;
transform: translate3d(${p => (p.open ? 0 : '20px')}, 0, 0);
transition-delay: ${p => p.$transitionDelay}ms;

Expand Down
Loading