Skip to content

Commit

Permalink
Revert "9499-email-domains-interstitial-registry-sign-in"
Browse files Browse the repository at this point in the history
This reverts commit 70a1495.
  • Loading branch information
leomendoza123 committed Nov 25, 2024
1 parent 70a1495 commit edcfa1a
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 379 deletions.
3 changes: 1 addition & 2 deletions src/app/authorize/authorize.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { AuthorizeRoutingModule } from './authorize-routing.module'
import { OauthErrorComponent } from './components/oauth-error/oauth-error.component'
import { AuthorizeComponent } from './pages/authorize/authorize.component'
import { FormAuthorizeComponent } from './components/form-authorize/form-authorize.component'
import { ShareEmailsDomainsComponent } from '../cdk/interstitials/share-emails-domains/share-emails-domains.component'
import { InterstitialsModule } from '../cdk/interstitials/interstitials.module'
import { MatLegacyDialogModule } from '@angular/material/legacy-dialog'

@NgModule({
declarations: [
Expand All @@ -38,7 +38,6 @@ import { MatLegacyDialogModule } from '@angular/material/legacy-dialog'
InfoDropDownModule,
MatProgressBarModule,
InterstitialsModule,
MatLegacyDialogModule,
],
})
export class AuthorizeModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
border: solid 2px;
border-radius: 4px;
display: flex;
gap: 16px;

p {
margin: 0;
Expand Down
8 changes: 2 additions & 6 deletions src/app/cdk/interstitials/interstitials.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ import { MatLegacyCheckboxModule } from '@angular/material/legacy-checkbox'
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'
import { InfoPanelModule } from '../info-panel/info-panel.module'
import { A11yLinkModule } from '../a11y-link/a11y-link.module'
import { ShareEmailsDomainsDialogComponent } from './share-emails-domains/share-emails-domains-dialog.component'

@NgModule({
declarations: [
ShareEmailsDomainsComponent,
ShareEmailsDomainsDialogComponent,
],
declarations: [ShareEmailsDomainsComponent],
imports: [
CommonModule,
MatLegacyCardModule,
Expand All @@ -33,6 +29,6 @@ import { ShareEmailsDomainsDialogComponent } from './share-emails-domains/share-
InfoPanelModule,
A11yLinkModule,
],
exports: [ShareEmailsDomainsComponent, ShareEmailsDomainsDialogComponent],
exports: [ShareEmailsDomainsComponent],
})
export class InterstitialsModule {}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ import { FormBuilder, FormControl, FormGroup } from '@angular/forms'
import { RecordEmailsService } from 'src/app/core/record-emails/record-emails.service'
import { error } from 'console'
import { WINDOW } from '../../window'
import {
MAT_LEGACY_DIALOG_DATA,
MatLegacyDialogRef,
MatLegacyDialogState,
} from '@angular/material/legacy-dialog'

export type ShareEmailsDomainsComponentDialogInput = {
userEmailsJson: EmailsEndpoint
organizationName?: string
}

@Component({
selector: 'app-share-emails-domains',
Expand All @@ -31,7 +21,6 @@ export class ShareEmailsDomainsComponent {
@Input() userEmailsJson: EmailsEndpoint
@Input() organizationName: string
form: any
dialogMode: boolean
constructor(
public platformInfo: PlatformInfoService,
private fb: FormBuilder,
Expand Down Expand Up @@ -89,22 +78,16 @@ export class ShareEmailsDomainsComponent {

this.recordEmailsService.postEmails(this.userEmailsJson).subscribe(
(response) => {
if (!this.dialogMode) {
this.afterSummit = true
this.beforeSummit = false
} else {
this.finishIntertsitial(this.domainToMakePublic)
}
setTimeout(() => {}, 10000)
this.afterSummit = true
this.beforeSummit = false
setTimeout(() => {
this.finish.emit()
}, 10000)
},
(error) => this.finishIntertsitial()
(error) => this.finish.emit()
)
} else {
this.finishIntertsitial()
this.finish.emit()
}
}

finishIntertsitial(emails?: string[]) {
this.finish.emit()
}
}
3 changes: 2 additions & 1 deletion src/app/cdk/platform-info/browserlist.regexp.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// tslint:disable-next-line: max-line-length
export const BROWSERLIST_REGEXP = /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+|17[_.]0|17[_.]([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+|17\.0|17\.([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/
export const BROWSERLIST_REGEXP =
/((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+|17[_.]0|17[_.]([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+|17\.0|17\.([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
<div
class="wrapper"
class="container-text-and-icon"
[ngClass]="{
'warning-message': type === 'warning',
'success-message': type === 'success',
}"
'orc-font-body-small': !isMobile,
'orc-font-small-print': isMobile
}"
>
<div
class="container-text-and-icon"
[ngClass]="{
'orc-font-body-small': !isMobile,
'orc-font-small-print': isMobile
}"
>
<div class="col">
<mat-icon
[ngClass]="{
'material-icons-outlined' : type === 'success',
}"
>
{{ icon }}</mat-icon
>
</div>
<div class="text-container">
<strong>
<ng-content select="[title]"> </ng-content>
</strong>
<p>
<ng-content select="[content]"></ng-content>
</p>
</div>
<div class="col">
<mat-icon>{{ icon }}</mat-icon>
</div>
<div class="text-container">
<strong>
<ng-content select="[title]"> </ng-content>
</strong>
<p>
<ng-content select="[content]"></ng-content>
</p>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@
}
}
}
.wrapper {
border: 2px solid;
padding: 14px;
}

:host {
display: block;
border: 1px solid;
padding: 14px;
width: 100%;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,18 @@
$warn: map-get($theme, accent);
$foreground: map-get($theme, foreground);
$background: map-get($theme, background);

.wrapper.warning-message {
:host {
border-color: mat.get-color-from-palette(
$foreground,
'state-notice-dark'
) !important;
.container-text-and-icon {
mat-icon {
color: mat.get-color-from-palette(
$foreground,
'state-notice-dark'
) !important;
}
}
}

.wrapper.success-message {
border-color: $brand-primary-dark;

.container-text-and-icon {
mat-icon {
color: $brand-primary-dark;
}
.container-text-and-icon {
mat-icon {
color: mat.get-color-from-palette(
$foreground,
'state-notice-dark'
) !important;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@ import { PlatformInfoService } from '../../platform-info'
preserveWhitespaces: false,
})
export class WarningMessageComponent implements OnInit, OnDestroy {
private _type: 'warning' | 'success' | 'info' = 'warning'
icon = 'info'

@Input() set type(value: 'warning' | 'success' | 'info') {
this._type = value
this.icon = value === 'warning' ? 'info' : value === 'success' ? 'thumb_up' : 'info'
}
get type(): 'warning' | 'success' | 'info' {
return this._type
}

@Input() icon = 'info'
isMobile: boolean
$destroy: Subject<boolean> = new Subject<boolean>()

Expand Down

This file was deleted.

Loading

0 comments on commit edcfa1a

Please sign in to comment.