This commit is contained in:
mgabdev
2020-03-03 22:45:16 -05:00
parent 0df3c073a5
commit 33952e424f
127 changed files with 765 additions and 3588 deletions

View File

@@ -1,27 +0,0 @@
'use strict';
import loadPolyfills from '../gabsocial/load_polyfills';
import { start } from '../gabsocial/common';
start();
function loaded() {
const TimelineContainer = require('../gabsocial/containers/timeline_container').default;
const React = require('react');
const ReactDOM = require('react-dom');
const mountNode = document.getElementById('gabsocial-timeline');
if (mountNode !== null) {
const props = JSON.parse(mountNode.getAttribute('data-props'));
ReactDOM.render(<TimelineContainer {...props} />, mountNode);
}
}
function main() {
const ready = require('../gabsocial/ready').default;
ready(loaded);
}
loadPolyfills().then(main).catch(error => {
console.error(error);
});

View File

@@ -1 +1 @@
//
// : todo :

View File

@@ -1,27 +0,0 @@
'use strict';
import loadPolyfills from '../gabsocial/load_polyfills';
import { start } from '../gabsocial/common';
start();
function loaded() {
const ComposeContainer = require('../gabsocial/containers/compose_container').default;
const React = require('react');
const ReactDOM = require('react-dom');
const mountNode = document.getElementById('gabsocial-compose');
if (mountNode !== null) {
const props = JSON.parse(mountNode.getAttribute('data-props'));
ReactDOM.render(<ComposeContainer {...props} />, mountNode);
}
}
function main() {
const ready = require('../gabsocial/ready').default;
ready(loaded);
}
loadPolyfills().then(main).catch(error => {
console.error(error);
});