This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.businessunits.insert( | |
[ | |
{_id: ObjectId("000000000000000000000001"), name: "lizzy", phoneNumber: "61368424", email: "[email protected]", state: "active", createdDate: new Date()}, | |
{_id: ObjectId("000000000000000000000002"), name: "melissa", phoneNumber: "63489125", email: "[email protected]", state: "active", createdDate: new Date()}, | |
{_id: ObjectId("000000000000000000000003"), name: "ericka", phoneNumber: "78996235", email: "[email protected]", state: "active", createdDate: new Date()}, | |
{_id: ObjectId("000000000000000000000004"), name: "sandra", phoneNumber: "78961254", email: "[email protected]", state: "active", createdDate: new Date()} | |
] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input id="media-file-upload" | |
class="input-upload" | |
type="file" | |
nv-file-select="" | |
uploader="mediaListCtrl.uploader" | |
accept="application/vnd.ms-powerpoint, | |
application/vnd.openxmlformats-officedocument.presentationml.slideshow, | |
application/vnd.openxmlformats-officedocument.presentationml.presentation" | |
multiple/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
togglePassword() { | |
this.typePassword = !this.typePassword; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<md-dialog-content> | |
<div class="md-dialog-content-bu"> | |
<p class="md-body-2">{{ 'main.business_units.delete.CONFIRM' | translate }}</p> | |
<md-input-container class="md-block"> | |
<label>{{ 'main.business_units.delete.ENTER_PASSWORD' | translate }}</label> | |
<input id="business-unit-name-input" | |
name="password" | |
type="{{ businessUnitDeleteFormController.typePassword ? 'text' : 'password' }}" | |
ng-model="businessUnitDeleteFormController.password" | |
required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mr-5 mb-5 d-flex justify-content-end"> | |
<button class="mr-2 btn bg-danger text-white text-uppercase" (click)="switchLanguage('en')">{{ 'demo.english' | translate | |
}}</button> | |
<button class="btn bg-danger text-white text-uppercase" (click)="switchLanguage('es')">{{ 'demo.spanish' | translate }}</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"demo": | |
{ | |
"by": "By Lizzy Mendivil", | |
"english": "English", | |
"forgot_password": "Forgot password?", | |
"not_member": "Not a member?", | |
"password": "Password", | |
"remember": "Remember me", | |
"signin": "Sign in", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import {TranslateService} from '@ngx-translate/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import {HttpClient, HttpClientModule} from '@angular/common/http'; | |
import { NgModule } from '@angular/core'; | |
import {TranslateModule, TranslateLoader} from '@ngx-translate/core'; | |
import {TranslateHttpLoader} from '@ngx-translate/http-loader'; | |
import { AppComponent } from './app.component'; | |
export function HttpLoaderFactory(http: HttpClient) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function flattenMessages(nestedMessages, prefix = '') { | |
return Object.keys(nestedMessages).reduce((messages, key) => { | |
const value = nestedMessages[key]; | |
const prefixedKey = prefix ? `${prefix}.${key}` : key; | |
if (typeof value === 'string') { | |
messages[prefixedKey] = value; | |
} else { | |
Object.assign(messages, flattenMessages(value, prefixedKey)); | |
} | |
return messages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { FormattedMessage } from 'react-intl'; | |
. | |
. | |
. | |
<Grid container={true} alignItems='center'> | |
<Grid item={true} xs={6}> | |
<FormControlLabel | |
classes={{root: this.props.classes.rememberText}} | |
control={<Checkbox color='primary' />} | |
label={<FormattedMessage id="sign.in.remember.me" />} |
NewerOlder