Skip to content

Commit

Permalink
fix env files
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Sep 4, 2021
1 parent 454d50c commit 997caf5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/page/landing-layout/login/login.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="landing-form-page">
<app-card1 [isSmall]="true" [title]="'Log in'" [topLayer]="true">
<app-card1 [isSmall]="true" [title]="'Log in'">
<div body>
<div fxLayout="row" fxLayoutAlign="center center">
<app-social-button (click)="socialLogin(environmentCommon.website.facebook)"
Expand Down
2 changes: 1 addition & 1 deletion src/app/page/landing-layout/sign-up/sign-up.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="landing-form-page">
<app-card1 [isSmall]="true" [title]="'Register'" [topLayer]="true">
<app-card1 [isSmall]="true" [title]="'Register'">
<div body>
<div fxLayout="row" fxLayoutAlign="center center">
<app-social-button (click)="socialLogin(environmentCommon.website.facebook)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<a *ngIf="environment.identity !== 'production'" [attr.data-ribbon]="environment.identity"
[class]="environment.identity === 'local' ? 'ribbon ribbon-error ribbon-top fixed' :
(environment.identity === 'staging' ? 'ribbon ribbon-warn ribbon-top fixed' : '')"
[class]="environment.identity ? environment.identity + ' ribbon ribbon-top fixed' : ''"
[href]="environmentCommon.website.github.url + '/' + environmentCommon.oth.social.github + '/company-profile-ui-template'"
target="_blank" rel="noreferrer" title="Identity"></a>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.local-to-staging-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const environment = {

production: false,

serverUrl: 'https://oth-orchestration.herokuapp.com',
serverUrl: 'https://oth-server-orchestra-dev.herokuapp.com',

clientUrl: 'http://localhost:4200',

Expand Down
6 changes: 4 additions & 2 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ export const environment = {

production: true,

serverUrl: 'https://oth-orchestration.herokuapp.com',
// FIXME: After creating live env change this url
serverUrl: 'https://oth-server-orchestra-dev.herokuapp.com',

clientUrl: 'https://www.opentemplatehub.com',
clientUrl: 'https://opentemplatehub.com',

// FIXME: After switching to live, change this to false
mockDataEnabled: true,

oauth: {
Expand Down
5 changes: 3 additions & 2 deletions src/environments/environment.staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ export const environment = {

production: false,

serverUrl: 'https://oth-orchestration.herokuapp.com',
serverUrl: 'https://oth-server-orchestra-dev.herokuapp.com',

clientUrl: 'https://oth-company-profile-stg.herokuapp.com',
clientUrl: 'https://dev.opentemplatehub.com',

// FIXME: After switching to live, change this to false
mockDataEnabled: true,

oauth: {
Expand Down
8 changes: 8 additions & 0 deletions src/styles/other/ribbon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@
background-color: var(--new);
}

.ribbon.local:before {
background-color: var(--brand-color-green-theme);
}

.ribbon.staging:before {
background-color: var(--brand-color-yellow-theme);
}

.ribbon:after {
/* Set the text from the data-ribbon attribute */
content: attr(data-ribbon);
Expand Down

0 comments on commit 997caf5

Please sign in to comment.