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

Commit

Permalink
Cleanup Client UI (#7861)
Browse files Browse the repository at this point in the history
* cleanup client ui

* remove more unused stuff

* remove local auth strategy

* update docs build
  • Loading branch information
HexaField authored Apr 4, 2023
1 parent 5bd4196 commit 67010d7
Show file tree
Hide file tree
Showing 78 changed files with 264 additions and 2,362 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
npm install --legacy-peer-deps
git clone https://github.com/etherealengine/etherealengine-docs.git docs
cd docs
cp .env.local.default .env.local
npm install --legacy-peer-deps
npm run build
gh-release:
Expand Down Expand Up @@ -69,5 +70,6 @@ jobs:
npm install --legacy-peer-deps
git clone https://github.com/etherealengine/etherealengine-docs.git docs
cd docs
cp .env.local.default .env.local
npm install --legacy-peer-deps
npm run deploy
9 changes: 2 additions & 7 deletions packages/client-core/i18n/en/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@
"secret": "Secret",
"entity": "Entity",
"authStrategies": "Authentication Strategies",
"local": "Local",
"userName": "User Name",
"password": "Password",
"local": "Local",
"oauth": "OAuth",
"password": "Password",
"defaults": "Defaults",
"host": "Host",
"protocol": "Protocol",
Expand Down Expand Up @@ -389,11 +389,6 @@
"deleteSelected": "Delete selected avatars",
"confirmThumbnailReplace": "Do you want to replace previously selected avatar thumbnail with current avatar preview?"
},
"dialog": {
"noAccess": "No access",
"askAccessResourceMessage": "To access this resource, please enter your username here to ask for access or login to continue.",
"login": "Login"
},
"user": {
"nameCantEmpty": "Name can't be empty",
"avatarCantEmpty": "Avatar can't be empty",
Expand Down
2 changes: 0 additions & 2 deletions packages/client-core/i18n/en/social.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@
"login": {
"account": "Have an account?",
"login": "Login",
"resetPassword": "Reset Password Fake button (here would be a link from email)",
"notHavingAccount": "Don't have an account?",
"signUp": "Sign Up",
"forgotPassword": "Forgot password?",
"back": "Back",
"or": "OR"
},
Expand Down
29 changes: 0 additions & 29 deletions packages/client-core/i18n/en/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
"resendEmail": "Please check your email to verify your account. If you didn't get an email, please click {{here}} to resend the verification email.",
"haveAnAccount": "Have an account?"
},
"forgotPassword": {
"header": "Forgot Password",
"enterEmail": "Please enter your registered email address and we'll send you a password reset link.",
"lbl-email": "Email Address",
"lbl-submit": "Send Link",
"emailSent": "Reset Password Email was sent. Please check your email."
},
"login": {
"email": "Email | SMS",
"username": "UserName + Password",
Expand All @@ -42,18 +35,6 @@
"success-msg": "Login Magic Link was sent. Please check your Email or SMS.",
"sms-sent-msg": "Login Magic Link was sent. Please check your SMS."
},
"passwordLogin": {
"header": "Sign In",
"lbl-email": "Email Address",
"lbl-password": "Password",
"lbl-rememberMe": "Remember me",
"lbl-signin": "Sign In",
"forgotPassword": "Forgot password?",
"signup": "Don't have an account? Sign Up",
"lbl-login": "Log In",
"ph-password": "Password",
"ph-email": "Email"
},
"social": {
"gitHub": "Login with GitHub",
"google": "Login with Google",
Expand All @@ -72,16 +53,6 @@
"ph-confirmPassword": "Password Confirm",
"ph-email": "Email"
},
"resetPassword": {
"header": "Reset Password",
"description": "Please enter your password for your email address",
"lbl-submit": "Reset Password",
"lbl-password": "Password",
"lbl-confirmPassword": "Password Confirm",
"passwordNotMatch": "Passwords Don't Match",
"nowLoginYourAccount": "You can now log into the your account",
"yourPasswordResetSuccess": "Your password was successfully reset!"
},
"verifyEmail": {
"header": "Verify Email",
"processing": "Please wait a moment while processing..."
Expand Down
76 changes: 0 additions & 76 deletions packages/client-core/src/admin/common/SubmitDialog.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ const Account = () => {
twitter: {
key: false,
secret: false
},
password: {
secret: false
}
})

Expand Down Expand Up @@ -461,33 +458,6 @@ const Account = () => {
</Grid>

<Grid item xs={12} sm={6} md={6}>
<Typography className={styles.settingsSubHeading}>{t('admin:components.setting.local')}</Typography>

<InputText
name="username"
label={t('admin:components.setting.userName')}
value={authSetting?.local.usernameField || ''}
disabled
/>

<InputText
name="password"
label={t('admin:components.setting.password')}
value={authSetting?.local.passwordField || ''}
type={showPassword.value.password.secret ? 'text' : 'password'}
disabled
endAdornment={
<IconButton
onClick={() => handleShowPassword('password-secret')}
icon={
<Icon
icon={showPassword.value.password.secret ? 'ic:baseline-visibility' : 'ic:baseline-visibility-off'}
color="orange"
/>
}
/>
}
/>
{holdAuth?.google.value && (
<>
<Typography className={styles.settingsSubHeading}>{t('admin:components.setting.google')}</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const AuthSettingsService = {
.find()) as Paginated<AdminAuthSetting>
dispatchAction(AuthSettingsActions.authSettingRetrieved({ authSetting }))
} catch (err) {
console.error(err)
NotificationService.dispatchNotify(err.message, { variant: 'error' })
}
},
Expand Down
17 changes: 0 additions & 17 deletions packages/client-core/src/common/components/EmptyLayout/index.tsx

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions packages/client-core/src/common/components/UIDialog/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/client-core/src/common/initialAuthState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const initialAuthState = {
jwt: true,
local: false,
discord: false,
facebook: false,
github: false,
Expand Down
36 changes: 0 additions & 36 deletions packages/client-core/src/common/services/DialogService.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/client-core/src/components/World/loading.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions packages/client-core/src/feathers-instance.ts

This file was deleted.

Loading

0 comments on commit 67010d7

Please sign in to comment.