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
class SwipeModal extends Component { | |
render() { | |
const { | |
visibleModal, | |
hide, | |
children, | |
containerStyle, | |
headTitle, | |
innerContainerStyle, |
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
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="start"> | |
<ion-back-button text="رجوع" icon="arrow-forward"></ion-back-button> | |
</ion-buttons> | |
<ion-title>نموذج التقديم</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content *ngIf="dataLoaded" #pageTop> |
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 { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { FormsModule } from '@angular/forms'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { IonicModule } from '@ionic/angular'; | |
import { LoginPage } from './login'; | |
import {SharedModule} from '../shared' | |
import {TranslateLoader, TranslateModule} from "@ngx-translate/core"; | |
import {HttpClient} from "@angular/common/http"; | |
import {TranslateHttpLoader} from "@ngx-translate/http-loader"; |
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 { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { RouteReuseStrategy } from '@angular/router'; | |
/* third parties */ | |
import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; | |
import {TranslateHttpLoader} from "@ngx-translate/http-loader"; | |
import {ENV} from '@app/env'; | |
import {TranslateLoader, TranslateModule} from "@ngx-translate/core"; | |
import {HttpClient, HttpClientModule} from "@angular/common/http"; |
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 React, { useState, useEffect } from 'react'; | |
import { Text, View, StyleSheet, SafeAreaView } from 'react-native'; | |
import { Colors } from 'react-native/Libraries/NewAppScreen'; | |
// Multi-Language Support | |
import {setI18nConfig,translate} from '../utils/translations' | |
import * as RNLocalize from 'react-native-localize' | |
class RegisterUserPage extends React.Component { | |
constructor(props) { | |
super(props) | |
setI18nConfig() |
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
const querableGame = this.authService.getApp('i3').database().ref().child('games') | |
.orderByKey() | |
.startAt('2020-05-31') | |
.endAt("2020-05-31\uf8ff") | |
.once('value'); | |
querableGame.then(snap => { | |
snap.val(); | |
const flatterArrayOfArrays = (arrayOfArrays) => arrayOfArrays.reduce((flat, toFlatten) => flat.concat(Array.isArray(toFlatten) ? flatterArrayOfArrays(toFlatten) : toFlatten), []); // flat unknown nested level of arrays | |
const gamesPerHour = Object.values(snap.val()).map(gamePerHour => Object.values(gamePerHour)); |
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 React, { Component } from 'react' | |
import { FlatList, SafeAreaView, View } from 'react-native' | |
import { withNavigation } from 'react-navigation' | |
import { Tray } from '../index' | |
import DynamicComponent from '../../ExternalComponents' | |
import components from '../../Transforms/Components' | |
import Background from './../../Components/Background' | |
import { get as _get, find as _find } from 'lodash' |
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 React, { Component } from 'react' | |
import { | |
Text, | |
View, | |
ScrollView, | |
Dimensions, | |
Platform, | |
ViewPropTypes, | |
TouchableOpacity | |
} from 'react-native' |
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 { SocketIoModule, SocketIoConfig } from 'ng-socket-io'; | |
const config: SocketIoConfig = { url: 'http://localhost:9002', options: {} }; //server port | |
@NgModule({ | |
declarations: [ | |
], | |
imports: [ | |
SocketIoModule.forRoot(config) | |
], | |
providers: [ |
NewerOlder