This file contains hidden or 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 { gun } from './gun.service'; | |
export const STATUS_SUCCESS = 'success'; | |
export const STATUS_ERROR = 'error'; | |
const ACTION_CREATE = 'create'; | |
const ACTION_AUTH = 'auth'; | |
const SESSION_KEY_USERNAME = 'rt_username'; | |
const SESSION_KEY_PASSWORD = 'rt_password'; | |
export interface Credentials { | |
username: string; |
This file contains hidden or 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 { gun } from './gun.service'; | |
export const STATUS_SUCCESS = 'success'; | |
export const STATUS_ERROR = 'error'; | |
const ACTION_CREATE = 'create'; | |
const ACTION_AUTH = 'auth'; | |
const SESSION_KEY_USERNAME = 'rt_username'; | |
const SESSION_KEY_PASSWORD = 'rt_password'; | |
export interface Credentials { | |
username: string; |
This file contains hidden or 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
{ | |
"hosting": { | |
"public": "www", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites": [ | |
{ |
This file contains hidden or 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
Show hidden characters
{ | |
"rules": { | |
"indent": ["error", 2], | |
"linebreak-style": ["error", "unix"] | |
} | |
} |
This file contains hidden or 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
/** | |
* Function that mutates original webpack config. | |
* Supports asynchronous changes when promise is returned. | |
* | |
* @param {object} config - original webpack config. | |
* @param {object} env - options passed to CLI. | |
* @param {WebpackConfigHelpers} helpers - object with useful helpers when working with config. | |
**/ | |
import AggressiveMergingPlugin from "./node_modules/webpack/lib/optimize/AggressiveMergingPlugin"; | |
import CompressionPlugin from "compression-webpack-plugin"; |
This file contains hidden or 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 './style'; | |
import react, {Component} from 'react'; | |
import { render } from 'react-dom'; | |
import Framework7 from 'framework7'; | |
import Framework7React, {App as F7App, View, Page} from 'framework7-react'; | |
import Something from './something/something'; | |
Framework7.use(Framework7React); | |
class TestPage extends Component { | |
render() { |
This file contains hidden or 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
{ | |
"schema": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"pattern": "^\\w+\\s\\w+$" | |
}, | |
"username": { | |
"type": "string", |
This file contains hidden or 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
{ | |
"name": "AwesomeProjectTS", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "react-native start --transformer node_modules/react-native-typescript-transformer/index.js --skipflow --sourceExts ts,tsx", | |
"test": "jest" | |
}, | |
"dependencies": { | |
"react": "16.2.0", |
This file contains hidden or 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
{ | |
"compilerOptions": { | |
"jsx": "react", | |
"target": "es5", | |
"module": "es2015", | |
"types": ["react", "react-native", "jest", "realm"], | |
"lib": ["es2015", "dom"], | |
"moduleResolution": "node", | |
"experimentalDecorators": true, | |
"noEmit": true, |
This file contains hidden or 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 { | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; | |
class DogModel { | |
public static schema: Realm.ObjectSchema = {name: 'Dog', properties: {name: 'string'} }; | |
public name: string ; |
NewerOlder