diff --git a/imports/startup/server/api.js b/imports/startup/server/api.js
index edd05c3..e5684d2 100644
--- a/imports/startup/server/api.js
+++ b/imports/startup/server/api.js
@@ -1,6 +1,6 @@
-import '../../api/Documents/methods';
-import '../../api/Documents/server/publications';
+// import '../../api/Documents/methods';
+// import '../../api/Documents/server/publications';
import '../../api/Invoices/methods';
import '../../api/Invoices/server/publications';
diff --git a/imports/ui/components/Content/Content.js b/imports/ui/components/Content/Content.js
deleted file mode 100644
index b38d9ca..0000000
--- a/imports/ui/components/Content/Content.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* eslint-disable react/no-danger */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-
-import './Content.scss';
-
-const Content = ({ content }) => (
-
-);
-
-Content.propTypes = {
- content: PropTypes.string.isRequired,
-};
-
-export default Content;
diff --git a/imports/ui/components/Content/Content.scss b/imports/ui/components/Content/Content.scss
deleted file mode 100644
index a1573ea..0000000
--- a/imports/ui/components/Content/Content.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-@import '../../stylesheets/mixins';
-
-.Content {
- max-width: 700px;
- margin: 0 auto;
- font-size: 14px;
- line-height: 22px;
-
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin: 30px 0 20px;
- }
-
- p {
- margin-bottom: 20px;
- }
-
- > *:first-child {
- margin-top: 0px;
- }
-
- > *:last-child {
- margin-bottom: 0px;
- }
-}
-
-@include breakpoint(tablet) {
- .Content {
- font-size: 16px;
- line-height: 22px;
- }
-}
diff --git a/imports/ui/components/DocumentEditor/DocumentEditor.js b/imports/ui/components/DocumentEditor/DocumentEditor.js
deleted file mode 100644
index 4a42df7..0000000
--- a/imports/ui/components/DocumentEditor/DocumentEditor.js
+++ /dev/null
@@ -1,97 +0,0 @@
-/* eslint-disable max-len, no-return-assign */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import { FormGroup, ControlLabel, Button } from 'react-bootstrap';
-import { Meteor } from 'meteor/meteor';
-import { Bert } from 'meteor/themeteorchef:bert';
-import validate from '../../../modules/validate';
-
-class DocumentEditor extends React.Component {
- componentDidMount() {
- const component = this;
- validate(component.form, {
- rules: {
- title: {
- required: true,
- },
- body: {
- required: true,
- },
- },
- messages: {
- title: {
- required: 'Need a title in here, Seuss.',
- },
- body: {
- required: 'This thneeds a body, please.',
- },
- },
- submitHandler() { component.handleSubmit(); },
- });
- }
-
- handleSubmit() {
- const { history } = this.props;
- const existingDocument = this.props.doc && this.props.doc._id;
- const methodToCall = existingDocument ? 'documents.update' : 'documents.insert';
- const doc = {
- title: this.title.value.trim(),
- body: this.body.value.trim(),
- };
-
- if (existingDocument) doc._id = existingDocument;
-
- Meteor.call(methodToCall, doc, (error, documentId) => {
- if (error) {
- Bert.alert(error.reason, 'danger');
- } else {
- const confirmation = existingDocument ? 'Document updated!' : 'Document added!';
- this.form.reset();
- Bert.alert(confirmation, 'success');
- history.push(`/documents/${documentId}`);
- }
- });
- }
-
- render() {
- const { doc } = this.props;
- return ();
- }
-}
-
-DocumentEditor.defaultProps = {
- doc: { title: '', body: '' },
-};
-
-DocumentEditor.propTypes = {
- doc: PropTypes.object,
- history: PropTypes.object.isRequired,
-};
-
-export default DocumentEditor;
diff --git a/imports/ui/components/Footer/Footer.js b/imports/ui/components/Footer/Footer.js
index e5f61b6..eb39e76 100644
--- a/imports/ui/components/Footer/Footer.js
+++ b/imports/ui/components/Footer/Footer.js
@@ -13,7 +13,7 @@ const copyrightYear = () => {
const Footer = () => (
- © {copyrightYear()} Application Name
+ © {copyrightYear()} CloudControl, LLC
- Terms of Service
- Privacy Policy
diff --git a/imports/ui/pages/Documents/Documents.js b/imports/ui/pages/Documents/Documents.js
deleted file mode 100644
index 6b7b2df..0000000
--- a/imports/ui/pages/Documents/Documents.js
+++ /dev/null
@@ -1,82 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { Link } from 'react-router-dom';
-import { Table, Alert, Button } from 'react-bootstrap';
-import { timeago, monthDayYearAtTime } from '@cleverbeagle/dates';
-import { Meteor } from 'meteor/meteor';
-import { createContainer } from 'meteor/react-meteor-data';
-import { Bert } from 'meteor/themeteorchef:bert';
-import DocumentsCollection from '../../../api/Documents/Documents';
-import Loading from '../../components/Loading/Loading';
-
-import './Documents.scss';
-
-const handleRemove = (documentId) => {
- if (confirm('Are you sure? This is permanent!')) {
- Meteor.call('documents.remove', documentId, (error) => {
- if (error) {
- Bert.alert(error.reason, 'danger');
- } else {
- Bert.alert('Document deleted!', 'success');
- }
- });
- }
-};
-
-const Documents = ({ loading, documents, match, history }) => (!loading ? (
-
-
-
Documents
- Add Document
-
- {documents.length ?
-
-
- Title |
- Last Updated |
- Created |
- |
- |
-
-
-
- {documents.map(({ _id, title, createdAt, updatedAt }) => (
-
- {title} |
- {timeago(updatedAt)} |
- {monthDayYearAtTime(createdAt)} |
-
-
- |
-
-
- |
-
- ))}
-
-
:
No documents yet!}
-
-) : );
-
-Documents.propTypes = {
- loading: PropTypes.bool.isRequired,
- documents: PropTypes.arrayOf(PropTypes.object).isRequired,
- match: PropTypes.object.isRequired,
- history: PropTypes.object.isRequired,
-};
-
-export default createContainer(() => {
- const subscription = Meteor.subscribe('documents');
- return {
- loading: !subscription.ready(),
- documents: DocumentsCollection.find().fetch(),
- };
-}, Documents);
diff --git a/imports/ui/pages/Documents/Documents.scss b/imports/ui/pages/Documents/Documents.scss
deleted file mode 100644
index f753913..0000000
--- a/imports/ui/pages/Documents/Documents.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.Documents table tbody tr td {
- vertical-align: middle;
-}
diff --git a/imports/ui/pages/EditDocument/EditDocument.js b/imports/ui/pages/EditDocument/EditDocument.js
deleted file mode 100644
index cfae309..0000000
--- a/imports/ui/pages/EditDocument/EditDocument.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { createContainer } from 'meteor/react-meteor-data';
-import { Meteor } from 'meteor/meteor';
-import Documents from '../../../api/Documents/Documents';
-import DocumentEditor from '../../components/DocumentEditor/DocumentEditor';
-import NotFound from '../NotFound/NotFound';
-
-const EditDocument = ({ doc, history }) => (doc ? (
-
-
{`Editing "${doc.title}"`}
-
-
-) : );
-
-EditDocument.defaultProps = {
- doc: null,
-};
-
-EditDocument.propTypes = {
- doc: PropTypes.object,
- history: PropTypes.object.isRequired,
-};
-
-export default createContainer(({ match }) => {
- const documentId = match.params._id;
- const subscription = Meteor.subscribe('documents.view', documentId);
-
- return {
- loading: !subscription.ready(),
- doc: Documents.findOne(documentId),
- };
-}, EditDocument);
diff --git a/imports/ui/pages/NewDocument/NewDocument.js b/imports/ui/pages/NewDocument/NewDocument.js
deleted file mode 100644
index cd8418f..0000000
--- a/imports/ui/pages/NewDocument/NewDocument.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import DocumentEditor from '../../components/DocumentEditor/DocumentEditor';
-
-const NewDocument = ({ history }) => (
-
-
New Document
-
-
-);
-
-NewDocument.propTypes = {
- history: PropTypes.object.isRequired,
-};
-
-export default NewDocument;
diff --git a/imports/ui/pages/Page/Page.js b/imports/ui/pages/Page/Page.js
index 41d6b4b..5cea942 100644
--- a/imports/ui/pages/Page/Page.js
+++ b/imports/ui/pages/Page/Page.js
@@ -4,7 +4,6 @@ import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
import { ReactiveVar } from 'meteor/reactive-var';
import PageHeader from '../../components/PageHeader/PageHeader';
-import Content from '../../components/Content/Content';
import './Page.scss';
diff --git a/imports/ui/pages/Privacy/Privacy.js b/imports/ui/pages/Privacy/Privacy.js
index 4cb33d4..f193491 100644
--- a/imports/ui/pages/Privacy/Privacy.js
+++ b/imports/ui/pages/Privacy/Privacy.js
@@ -5,7 +5,7 @@ const Privacy = () => (
diff --git a/imports/ui/pages/Terms/Terms.js b/imports/ui/pages/Terms/Terms.js
index 2aebfdf..b2e270c 100644
--- a/imports/ui/pages/Terms/Terms.js
+++ b/imports/ui/pages/Terms/Terms.js
@@ -5,7 +5,7 @@ const Terms = () => (