first commit

This commit is contained in:
Senad Uka
2018-05-07 16:07:00 +02:00
commit 8b4f09f9d5
3368 changed files with 852614 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import React, { Component } from 'react';
import QueueAnim from 'rc-queue-anim';
import Instance from '../../../components/Connection';
class Page extends React.Component {
constructor(props) {
super(props);
this.props = props;
Instance.getRawConn().post('/v1/ext/' + this.props.params.ride_uuid + '/' + this.props.params.user_uuid + '/ready').then(res => {
location.href = `/#/ride/${res.data.ride_uuid}/${res.data.user.useruuid}`;
}).catch(console.error);
}
render() {
return (
<section className="chapter">
<QueueAnim type="top" className="ui-animate">
</QueueAnim>
</section>
);
}
};
module.exports = Page;

View File

@@ -0,0 +1,8 @@
module.exports = {
path: 'ride/:ride_uuid/:user_uuid/ready',
getComponent(nextState, cb) {
require.ensure([], (require) => {
cb(null, require('./components/ridePage'));
});
}
};