1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/static/src/js/app.js

25 lines
618 B
JavaScript
Raw Normal View History

2015-11-23 18:46:11 +00:00
/* global $ */
2015-12-01 08:38:09 +00:00
2016-01-03 13:03:07 +00:00
import './events.js';
import './globals.js';
2015-12-01 08:33:23 +00:00
import 'whatwg-fetch';
2016-01-03 13:03:07 +00:00
import React from 'react';
import ProjectImagesTypes from './components/index/project-images-types';
2016-01-03 17:51:14 +00:00
import NavBar from './components/navbar/navbar';
import Breadcrumbs from './components/breadcrumbs';
2016-01-02 23:29:02 +00:00
2015-12-01 08:33:23 +00:00
if ($('body').hasClass('index')) { // Render components on index
React.render(<ProjectImagesTypes />, document.getElementById('project-images-types'));
}
2016-01-03 17:51:14 +00:00
if ($('navbar').length > 0) {
2016-01-05 14:11:26 +00:00
React.render(<NavBar />, $('navbar')[0]);
2016-01-03 17:51:14 +00:00
}
if ($('#breadcrumbs').length > 0) {
React.render(<Breadcrumbs />, $('#breadcrumbs')[0]);
}