Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: RegisterUsername #28362

Merged
merged 11 commits into from
Mar 13, 2023
2 changes: 0 additions & 2 deletions apps/meteor/app/lib/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ import './startup/settingsOnLoadSiteUrl';
import '../lib/MessageTypes';
import './OAuthProxy';
import './methods/sendMessage';
import './views/customFieldsForm.html';
import './views/customFieldsForm';

export * from './lib';
55 changes: 0 additions & 55 deletions apps/meteor/app/lib/client/views/customFieldsForm.html

This file was deleted.

69 changes: 0 additions & 69 deletions apps/meteor/app/lib/client/views/customFieldsForm.js

This file was deleted.

8 changes: 8 additions & 0 deletions apps/meteor/app/lib/server/methods/saveCustomFields.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import { Meteor } from 'meteor/meteor';
import type { IUser } from '@rocket.chat/core-typings';

import { RateLimiter } from '../lib';
import { saveCustomFields } from '../functions/saveCustomFields';

declare module '@rocket.chat/ui-contexts' {
// eslint-disable-next-line @typescript-eslint/naming-convention
interface ServerMethods {
saveCustomFields: (fields: IUser['customFields']) => void;
}
}

Meteor.methods({
saveCustomFields(fields = {}) {
const uid = Meteor.userId();
Expand Down
143 changes: 0 additions & 143 deletions apps/meteor/app/theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,136 +789,6 @@
flex-grow: 1;
}

.rc-old #login-card {
position: relative;
z-index: 1;

width: 100%;
max-width: 520px;
margin: 20px auto;
padding: 20px;

border-radius: 2px;
box-shadow: 0 0 2px 0 rgba(47, 52, 61, 0.08), 0 0 12px 0 rgba(47, 52, 61, 0.12);

& header {
padding: 18px 0 23px;

& p {
margin: 8px 0 0;

font-size: 14px;
font-weight: 300;
line-height: 22px;
}
}

& h2 {
margin: 0;

letter-spacing: -0.5px;
text-transform: uppercase;

font-size: 20px;
font-weight: 300;
line-height: 24px;
}

& h3 {
margin: 18px 0;

letter-spacing: -0.5px;
text-transform: uppercase;

font-size: 16px;
font-weight: 300;
}

& img {
width: 200px;
}

& a {
display: inline-block;

margin: 4px 0;
}

& .options {
display: none;

width: 100%;

font-size: 10px;
}

& .input-line {
position: relative;

margin: 0 0 14px;

&::before {
position: absolute;
top: 7px;
left: 0;

width: 100%;
height: 40px;

content: ' ';
cursor: text;
}

&.active::before {
visibility: hidden;
}

& input,
& select {
position: relative;

width: 100%;

padding: 4px 8px;

border-width: 0 0 1px;
border-radius: 0;
box-shadow: 0 0 0;

font-size: 18px;
font-weight: 400;

&:focus {
border-color: #1d74f5 !important;
}
}

& label {
display: block;

margin-left: 8px;

transition: all 0.3s;
text-align: left;

color: #a9a9a9;

font-size: 12px;
}

& .input-error {
padding-left: 8px;

text-align: left;

color: #b40202;

font-size: 14px;
font-weight: bold;
}
}
}

.full-page,
.page-loading {
background-color: var(--rc-color-primary);
Expand Down Expand Up @@ -1393,19 +1263,6 @@
}

@media (height <= 480px) {
.rc-old #login-card {
margin: 10px auto;
padding: 10px;

& .input-line {
margin-bottom: 6px;
}

& .submit {
margin: 0;
}
}

.rc-old .oauth-login {
margin-bottom: 6px;
}
Expand Down
8 changes: 0 additions & 8 deletions apps/meteor/app/theme/client/imports/general/theme_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,6 @@ textarea {
border-color: var(--error-color);
}

#login-card {
.input-text {
input:-webkit-autofill {
box-shadow: 0 0 0 20px var(--content-background-color) inset;
}
}
}

.upload-progress-progress {
background-color: var(--success-background);
}
Expand Down
1 change: 0 additions & 1 deletion apps/meteor/app/ui-login/client/index.ts

This file was deleted.

53 changes: 0 additions & 53 deletions apps/meteor/app/ui-login/client/username/username.html

This file was deleted.