chat: {
unread: n,
messages : [
{
from: userId,
to: userId,
timestamp: timestamp,
unread: true
}
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
loadImageLocation: function loadImageLocation(imageLocation) { | |
var preloader = this; | |
var _onLoadHandler = function(event) { | |
// Since the load event is asynchronous, we have to | |
// tell AngularJS that something changed. | |
$rootScope.$apply( |
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 Firebase from 'firebase'; | |
import React from 'react'; | |
import Config from '../../config/config'; | |
import Uploader from '../edit/Uploader'; | |
import { Status } from 'uxcore-uploadcore'; | |
import Safename from 'sanitize-filename'; | |
class FileUploader extends React.Component { | |
constructor(props) { |
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
Request URL:https://api.cloudinary.com/v1_1/[Cloud Id]/image/upload/ | |
Request Method:POST | |
Status Code:200 OK | |
Remote Address:54.210.11.115:443 | |
Response Headers | |
view source | |
Access-Control-Allow-Methods:POST, GET, OPTIONS | |
Access-Control-Allow-Origin:http://localhost:8080 | |
Access-Control-Max-Age:1728000 | |
Cache-Control:max-age=0, private, must-revalidate |
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 from 'react'; | |
// Scaffold imports | |
import './{{name}}.less'; | |
{{imports}} | |
// End scaffold imports | |
class {{name}} extends React.Component { | |
constructor(props) { |
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 from 'react'; | |
import { Auth, DatabaseRef } from 'firebaseConfig.js'; | |
import PublicComponent from 'PublicComponent.jsx'; | |
import PrivateComponent from 'PrivateComponent.jsx'; | |
import LoadingComponent from 'LoadingComponent.jsx'; | |
class App extends React.Component { | |
constructor() { | |
this.state = { |
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 from 'react'; | |
/*************/ | |
/* HELPERS */ | |
/*************/ | |
/** | |
* Returns the key of a Firebase snapshot across SDK versions. | |
* | |
* @param {DataSnapshot} snapshot A Firebase snapshot. | |
* @return {string|null} key The Firebase snapshot's key. |
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
{ | |
"alignContent": "", | |
"alignItems": "", | |
"alignSelf": "", | |
"alignmentBaseline": "", | |
"all": "", | |
"animation": "", | |
"animationDelay": "", | |
"animationDirection": "", | |
"animationDuration": "", |
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
Installing app dependencies for arch x64 to /tmp/yaourt-tmp-florian/aur-hyper/src/hyper-1.1.0/app | |
Error: /usr/bin/node exited with code 1 | |
Output: | |
yarn install v0.18.1 | |
[1/4] Resolving packages... | |
[2/4] Fetching packages... | |
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. | |
Error output: | |
error https://github.com/Tyriar/pty.js/tarball/c75c2dcb6dcad83b0cb3ef2ae42d0448fb912642: Bad hash. Expected "a6ae3472bd63d7a5c489699fa7b50de160d97bd5" but got "78b09a52820f7306dc809343f0160b6e6b0592c5" |
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
//Usage | |
import React from 'react'; | |
import { BrowserRouter as Router } from 'react-router-dom'; | |
import Route from './AuthRoute'; | |
import Login from './Login'; | |
import Private from './Private'; | |
export default () => | |
<Router> |
OlderNewer