Skip to content

Commit

Permalink
Format all
Browse files Browse the repository at this point in the history
  • Loading branch information
langdal committed Nov 21, 2024
1 parent fec43f6 commit eec30a5
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/core/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/context/experiment/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const createValueVariable = (input: Partial<ValueVariableType>) =>
min: input.min ?? 0,
max: input.max ?? 100,
enabled: input.enabled ?? true,
} satisfies ValueVariableType)
}) satisfies ValueVariableType

export const createCategoricalVariable = (
input: Partial<CategoricalVariableType>
Expand All @@ -27,14 +27,14 @@ export const createCategoricalVariable = (
description: input.description ?? '',
options: input.options ?? ['option1', 'option2'],
enabled: input.enabled ?? true,
} satisfies CategoricalVariableType)
}) satisfies CategoricalVariableType

export const createScoreVariable = (input: Partial<ScoreVariableType>) =>
({
name: input.name ?? 'name',
description: input.description ?? '',
enabled: input.enabled ?? true,
} satisfies ScoreVariableType)
}) satisfies ScoreVariableType

export const createDataPoints = (
count: number,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/features/core/title-card/title-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export const TitleCard = (props: TitleCardProps) => {
loadingMode === 'skeleton'
? loadingSkeleton
: loadingMode === 'overlay'
? loadingOverlay
: loadingView
? loadingOverlay
: loadingView

const cardView = loading ? loadingComponent : children

Expand Down
8 changes: 4 additions & 4 deletions packages/ui/src/features/core/title-card/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export const sortMessages = (a: Message, b: Message) => {
m.type === 'info'
? 1
: m.type === 'error'
? 2
: m.type === 'warning'
? 3
: 4
? 2
: m.type === 'warning'
? 3
: 4
const x = order(a)
const y = order(b)
return x < y ? -1 : x > y ? 1 : 0
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/features/data-points/useDataPoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const useDataPoints = (
dataPoints
),
meta: dataPoints.map(dp => dp.meta),
} as const),
}) as const,
[categoricalVariables, dataPoints, scoreNames, valueVariables]
)

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/features/input-model/variable-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default function VariableEditor(props: VariableEditorProps) {
props.editingValueVariable
? `value-${props.editingValueVariable.index}`
: props.editingCategoricalVariable
? `categorial-${props.editingCategoricalVariable.index}`
: 'blank'
? `categorial-${props.editingCategoricalVariable.index}`
: 'blank'
}
/>
)
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/features/plots/plots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const Plots: FC<Props> = ({
loadingMode === 'overlay'
? undefined
: loadingMode === 'custom'
? loadingView
: defaultLoadingView
? loadingView
: defaultLoadingView

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion sample-app/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
14 changes: 12 additions & 2 deletions sample-app/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
font-family:
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
}

a {
Expand Down

0 comments on commit eec30a5

Please sign in to comment.