Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Remove Styled Components #8471

Merged
merged 58 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
0e25797
remove styled components
HexaField Aug 12, 2023
ef120e3
Merge branch 'dev' into remove-styled-components
SYBIOTE Aug 12, 2023
6924798
fix regression
SYBIOTE Aug 12, 2023
6441fce
migrate all but html and body styles
SYBIOTE Aug 13, 2023
cf5573b
Merge branch 'dev' into remove-styled-components
SYBIOTE Aug 14, 2023
385da67
refactor and shift to css
SYBIOTE Aug 15, 2023
d0474a7
remove styled-component
SYBIOTE Aug 15, 2023
9536191
Merge branch 'dev' into remove-styled-components
SYBIOTE Aug 29, 2023
bf3b1e2
remove gobal text font for locations and admin
SYBIOTE Aug 29, 2023
a1c0f94
stats container and scrollbars
SYBIOTE Aug 29, 2023
6cadb67
remove ref errors
SYBIOTE Aug 29, 2023
6098c52
scrollbars hidden for dock
SYBIOTE Aug 29, 2023
b99f4a2
for firefox and edge
SYBIOTE Aug 29, 2023
f78be62
final touches
SYBIOTE Aug 29, 2023
1943e64
comment out a and sentry error styles
SYBIOTE Aug 29, 2023
53d9812
element search fix
SYBIOTE Aug 29, 2023
64f7134
Merge branch 'dev' into remove-styled-components
SYBIOTE Aug 29, 2023
a58d5a6
remove log and fix workflow errors
SYBIOTE Aug 29, 2023
73083ac
Merge branch 'dev' into remove-styled-components
HexaField Aug 30, 2023
0947af4
fixes for profile menu
HexaField Aug 30, 2023
2e662ad
Merge branch 'dev' into remove-styled-components
SYBIOTE Aug 30, 2023
e97946b
fix regressions
SYBIOTE Aug 30, 2023
d5507b3
Merge branch 'dev' into remove-styled-components
SYBIOTE Sep 4, 2023
f28cc57
improve array input group
SYBIOTE Sep 4, 2023
91588bc
improve numericimput group and scrubber
SYBIOTE Sep 4, 2023
0124a45
fix up editor nodes
SYBIOTE Sep 4, 2023
0fedd77
add particle editor node values
SYBIOTE Sep 4, 2023
74c571d
stepper font
SYBIOTE Sep 4, 2023
24d65fc
fix name font in location
SYBIOTE Sep 6, 2023
886504b
fix font for instance chat
SYBIOTE Sep 6, 2023
8b15d3b
Merge branch 'dev' into remove-styled-components
SYBIOTE Oct 3, 2023
4b65924
Merge branch 'dev' into remove-styled-components
SYBIOTE Oct 3, 2023
aef570e
Merge branch 'dev' into remove-styled-components
SYBIOTE Oct 17, 2023
7323522
Merge branch 'dev' into remove-styled-components
HexaField Oct 20, 2023
a4f31cd
add back selection to global styles
HexaField Oct 20, 2023
32952a0
Merge branch 'dev' into remove-styled-components
SYBIOTE Oct 20, 2023
2b34225
fix avatar select menu
SYBIOTE Oct 20, 2023
034d8e3
fix view panel logo size
SYBIOTE Oct 20, 2023
5a3b1eb
fix admin panel header color
SYBIOTE Oct 20, 2023
6f469f9
fix typo
SYBIOTE Oct 20, 2023
72472a7
fix admin panel buttons
SYBIOTE Oct 20, 2023
c1899a6
fix admin avatar drawer image
SYBIOTE Oct 20, 2023
92133b8
remove avatar drawer button margin
SYBIOTE Oct 20, 2023
04a9434
fix client theme settings
SYBIOTE Oct 20, 2023
1474342
fix, friends panel, world chat, instance chat
SYBIOTE Oct 20, 2023
465c967
fix world chat width
SYBIOTE Oct 20, 2023
ce8a814
fix volume slider regression
SYBIOTE Oct 20, 2023
1c6d969
Merge branch 'dev' into remove-styled-components
HexaField Oct 23, 2023
2579790
Merge branch 'remove-styled-components' of https://github.com/Etherea…
SYBIOTE Oct 24, 2023
7ed54c2
fix modal btm hover color
SYBIOTE Oct 25, 2023
459ed0c
icon gap
SYBIOTE Oct 25, 2023
428ab65
fix chat padding and margin
SYBIOTE Oct 25, 2023
a246b13
Merge branch 'dev' into remove-styled-components
SYBIOTE Oct 25, 2023
26a99a6
fix project page styling
SYBIOTE Oct 25, 2023
4da98f9
fix padding and margin
SYBIOTE Oct 25, 2023
91aca6b
fix debug panel
SYBIOTE Oct 25, 2023
d97b39f
Merge branch 'dev' into remove-styled-components
HexaField Oct 30, 2023
ed2240f
Merge branch 'dev' into remove-styled-components
HexaField Oct 31, 2023
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
15 changes: 14 additions & 1 deletion packages/client-core/i18n/en/editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
"lbl-exportOptions": "Export Options",
"lbl-export": "Export Prefab",
"lbl-load": "Load Into Scene",
"lbl-loadOptions": "Load Options",
"lbl-unload": "Unload",
"lbl-reload": "Reload"
},
Expand All @@ -226,6 +227,8 @@
"pausetitle": "Pause",
"resettitle": "Reset",
"lbl-controls": "controls",
"lbl-paused": "Paused",
"info-paused": "Toggle media playback",
"info-controls": "Toggle the visibility of the media controls.",
"lbl-autoplay": "Autoplay",
"info-autoplay": "Toggle whether this video autoplays",
Expand Down Expand Up @@ -259,7 +262,10 @@
"error-url": "Error Loading From URL"
},
"collider": {
"name": "Collider",
"description": "An invisible box that objects will bounce off of or rest on top of.\nWithout colliders, objects will fall through floors and go through walls.",
"lbl-type": "Type",
"lbl-shape": "Shape",
"lbl-isTrigger": "Trigger"
},
"camera": {
Expand Down Expand Up @@ -486,7 +492,14 @@
"mesh": "Particle Mesh",
"blending": "Blending",
"transparent": "Transparent",
"world-space": "Use World Space"
"world-space": "Use World Space",
"burst": {
"time":"Burst Time",
"count":"Burst Count",
"cycle":"Burst Cycle",
"interval":"Burst Interval",
"probability":"Burst Probability"
}
},
"clouds": {
"name": "Cloud",
Expand Down
3 changes: 0 additions & 3 deletions packages/client-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@mui/icons-material": "5.11.11",
"@mui/lab": "5.0.0-alpha.94",
"@mui/material": "5.11.13",
"@mui/styled-engine-sc": "5.11.11",
"@mui/x-date-pickers": "6.9.2",
"@vladmandic/face-api": "^1.7.9",
"apexcharts": "^3.37.1",
Expand Down Expand Up @@ -75,7 +74,6 @@
"react-router-dom": "6.9.0",
"recovery": "^0.2.6",
"save-as": "^0.1.8",
"styled-components": "5.3.9",
"tick-tock": "^1.0.0",
"typescript": "5.0.2",
"util": "^0.12.5",
Expand All @@ -88,7 +86,6 @@
"@types/node": "18.15.5",
"@types/react": "18.0.28",
"@types/react-router-dom": "5.3.3",
"@types/styled-components": "5.1.26",
"@types/three": "0.157.0",
"css-modules-require-hook": "4.2.3",
"esbuild": "0.17.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ const AvatarDrawerContent = ({ open, mode, selectedAvatar, onClose }: Props) =>
<Button
className={styles.gradientButton}
startIcon={<Icon type="Portrait" />}
sx={{ marginLeft: 1, width: '250px' }}
sx={{ width: '250px' }}
title={t('admin:components.avatar.saveThumbnailTooltip')}
disabled={!state.avatarFile.value || avatarLoading.value}
onClick={handleGenerateFileThumbnail}
Expand Down Expand Up @@ -552,14 +552,21 @@ const AvatarDrawerContent = ({ open, mode, selectedAvatar, onClose }: Props) =>

<Box
className={styles.preview}
style={{ width: '100px', height: '100px', position: 'relative', marginBottom: 15 }}
style={{ display: 'flex', justifyContent: 'center', position: 'relative', marginBottom: 15 }}
>
<img src={thumbnailSrc} crossOrigin="anonymous" />
<img
src={thumbnailSrc}
crossOrigin="anonymous"
style={{
height: 'auto',
maxWidth: '100%'
}}
/>
{((state.source.value === 'file' && !state.thumbnailFile.value) ||
(state.source.value === 'url' && !state.thumbnailUrl.value)) && (
<Typography
sx={{
position: 'absolute',
position: 'relative',
top: 0,
display: 'flex',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ const ProjectFields = ({ inputProject, existingProject = false, changeDestinatio
onBlur={handleChangeDestinationRepo}
/>
) : (
<div className={styles.textAlign}>{t('admin:components.project.needsGithubProvider')}</div>
<div className={classNames(styles.textAlign, styles.defaultFont)}>
{t('admin:components.project.needsGithubProvider')}
</div>
)}

{!projectUpdateStatus.value?.destinationProcessing &&
Expand Down Expand Up @@ -448,7 +450,9 @@ const ProjectFields = ({ inputProject, existingProject = false, changeDestinatio
</Tooltip>
</div>
) : (
<div className={styles.textAlign}>{t('admin:components.project.needsGithubProvider')}</div>
<div className={classNames(styles.textAlign, styles.defaultFont)}>
{t('admin:components.project.needsGithubProvider')}
</div>
)}

{!processing &&
Expand Down Expand Up @@ -523,21 +527,22 @@ const ProjectFields = ({ inputProject, existingProject = false, changeDestinatio
projectUpdateStatus.value?.selectedSHA.length > 0 &&
projectUpdateStatus.value?.commitData.length > 0 &&
!matchesEngineVersion && (
<div className={styles.projectMismatchWarning}>
<div className={classNames(styles.projectMismatchWarning)}>
<Icon type="WarningAmber" />
{t('admin:components.project.mismatchedProjectWarning')}
</div>
)}

{projectUpdateStatus.value?.sourceVsDestinationError.length > 0 && (
<div className={styles.errorText}>{projectUpdateStatus.value?.sourceVsDestinationError}</div>
<div className={classNames(styles.errorText)}>{projectUpdateStatus.value?.sourceVsDestinationError}</div>
)}

<div
className={classNames({
[styles.validContainer]: true,
[styles.valid]: projectUpdateStatus.value?.destinationValid,
[styles.invalid]: !projectUpdateStatus.value?.destinationValid
[styles.invalid]: !projectUpdateStatus.value?.destinationValid,
[styles.defaultFont]: true
})}
>
{projectUpdateStatus.value?.destinationValid && <Icon type="CheckCircle" />}
Expand All @@ -550,7 +555,8 @@ const ProjectFields = ({ inputProject, existingProject = false, changeDestinatio
className={classNames({
[styles.validContainer]: true,
[styles.valid]: projectUpdateStatus.value?.sourceValid,
[styles.invalid]: !projectUpdateStatus.value?.sourceValid
[styles.invalid]: !projectUpdateStatus.value?.sourceValid,
[styles.defaultFont]: true
})}
>
{projectUpdateStatus.value?.sourceValid && <Icon type="CheckCircle" />}
Expand All @@ -564,7 +570,8 @@ const ProjectFields = ({ inputProject, existingProject = false, changeDestinatio
className={classNames({
[styles.validContainer]: true,
[styles.valid]: projectUpdateStatus.value?.sourceProjectMatchesDestination,
[styles.invalid]: !projectUpdateStatus.value?.sourceProjectMatchesDestination
[styles.invalid]: !projectUpdateStatus.value?.sourceProjectMatchesDestination,
[styles.defaultFont]: true
})}
>
{projectUpdateStatus.value?.sourceProjectMatchesDestination && <Icon type="CheckCircle" />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const ServerLogs = ({
return (
<Box sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
<Box sx={{ display: 'flex', alignItems: 'center', margin: '15px 0' }}>
<h5 style={{ fontSize: '18px' }}>
<h5 style={{ fontSize: '18px', fontWeight: 'normal' }}>
{t('admin:components.server.logs')}: {podName.value!}
</h5>

Expand Down Expand Up @@ -202,7 +202,7 @@ const ServerLogs = ({
/>
</Box>
<Box sx={{ overflow: 'auto' }}>
<pre style={{ fontSize: '14px' }}>{serverLogs}</pre>
<pre style={{ fontSize: '14px', fontFamily: 'var(--lato)' }}>{serverLogs}</pre>
<pre ref={logsEndRef} />
</Box>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const DemoStyle = ({ theme }: DemoStyleProps) => {
font-size: 16px;
color: ${theme.textHeading};
margin-bottom: 10px;
font-family: var(--lato);
}

.textSubheading {
Expand All @@ -121,11 +122,13 @@ const DemoStyle = ({ theme }: DemoStyleProps) => {
flex-direction: row;
align-items: center;
justify-content: space-between;
font-family: var(--lato);
}

.textDescription {
font-size: 12px;
color: ${theme.textDescription};
font-family: var(--lato);
}

.panelCardContainer {
Expand Down
34 changes: 33 additions & 1 deletion packages/client-core/src/admin/styles/admin.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
@import "@etherealengine/client-core/src/styles/imports.module.scss";



.defaultFont {
font-family: var(--lato);
font-size: 12px;
}

.openModalBtn {
height: 50px;
width: 100%;
Expand All @@ -9,6 +16,7 @@

&:hover {
opacity: 0.8;
background-color: var(--buttonFilled);
}

&:disabled {
Expand Down Expand Up @@ -69,6 +77,7 @@
.gradientButton {
background: linear-gradient(90deg, var(--buttonGradientStart), var(--buttonGradientEnd));
color: var(--buttonTextColor) !important;
width:100%;

&.forceVaporwave {
background: linear-gradient(90deg, #5236ff, #c20560);
Expand All @@ -88,6 +97,7 @@
background: transparent;
border: solid 1px var(--buttonOutlined);
color: var(--buttonTextColor) !important;
width:100%;

&:hover {
opacity: 0.7;
Expand Down Expand Up @@ -325,7 +335,9 @@
}

.textAlign {
display: flex;
text-align: center;
justify-content: center;
}

.mb10px {
Expand Down Expand Up @@ -677,6 +689,8 @@
text-align: center;
display: flex;
align-items: center;
font-family: var(--lato);
font-size: 12px;

& > svg {
font-size: 2.5em;
Expand All @@ -693,6 +707,8 @@

.validContainer {
display: flex;
text-align: center;
align-items: center;

&.valid > svg {
color: var(--green);
Expand All @@ -709,10 +725,14 @@

.errorText {
color: var(--red);
font-family: var(--lato);
font-size: 12px;
}

.projectVersion {
color: var(--yellow);
font-family: var(--lato);
font-size: 12px;
}

.projectSelector {
Expand Down Expand Up @@ -820,11 +840,23 @@
color: var(--textColor);
text-align: center;
margin-bottom: 10px;
font-weight: 300;
font-size: 18px;
display: flex;
font-family: var(--lato);

a {
margin-left: 2px;
}
}

a {
color: var(--textColor);

&:hover{
color: var(--blueHover);
}

& :active {
color: var(--bluePressed);
}
}
2 changes: 2 additions & 0 deletions packages/client-core/src/admin/styles/settings.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,13 @@

label:nth-child(1) {
margin-right: 20px;
font-family: var(--lato);
}

label:nth-child(3) {
margin-left: 10px;
margin-right: 10px;
font-family: var(--lato);
}
}

Expand Down
2 changes: 2 additions & 0 deletions packages/client-core/src/admin/styles/table.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
flex-direction: column;
flex-grow: 1;
min-height: 0;

}

.tableCellHeader {
Expand All @@ -16,6 +17,7 @@
}
}


.tableCellBody {
border-bottom: 1px solid var(--mainBackground) !important;
color: var(--textColor) !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const AutoComplete = ({ data, label, disabled, onChange, value = [] }: Props) =>
{value.map((option: AutoCompleteData, index: number) => (
<Tag className={styles.tag} label={option.type} disabled={disabled} {...getTagProps({ index })} />
))}
<input disabled={disabled} {...getInputProps()} />
<input style={{ margin: 0 }} disabled={disabled} {...getInputProps()} />
</div>
</div>
{groupedOptions.length > 0 && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const AutoComplete = ({ data, label, disabled, error, onChange, value = '', free
</legend>
</fieldset>
<input
style={{ margin: 0 }}
disabled={disabled}
{...getInputProps()}
onBlur={(event: any) => {
Expand Down
22 changes: 20 additions & 2 deletions packages/client-core/src/common/components/Avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,17 @@ const Avatar = ({
className={`${commonStyles.preview} ${styles.avatarThumbnail} ${className}`}
sx={{ width: `${size}px`, height: `${size}px`, ...sx }}
>
<img alt={alt} src={imageSrc} crossOrigin="anonymous" width={`${size}px`} height={`${size}px`} />
<img
style={{
height: 'auto',
maxWidth: '100%'
}}
alt={alt}
src={imageSrc}
crossOrigin="anonymous"
width={`${size}px`}
height={`${size}px`}
/>
{!imageSrc && (
<Text className={commonStyles.previewText} variant="body2">
{t('admin:components.avatar.thumbnailPreview')}
Expand All @@ -123,7 +133,15 @@ const Avatar = ({
id={id}
sx={{ width: `${size}px`, height: `${size}px`, ...sx }}
>
<img alt={alt} src={imageSrc} crossOrigin="anonymous" />
<img
style={{
height: '100%',
maxWidth: '100%'
}}
alt={alt}
src={imageSrc}
crossOrigin="anonymous"
/>
{showChangeButton && (
<IconButton
disableRipple
Expand Down
Loading