removes dist, moves all exporter files to /src
This commit is contained in:
29
src/components.js
Normal file
29
src/components.js
Normal file
@@ -0,0 +1,29 @@
|
||||
export { default as App } from './components/App';
|
||||
export { default as Button } from './components/controls/Button';
|
||||
export { default as MeasureWindow } from './components/utilities/MeasureWindow';
|
||||
export { default as MeasureScroll } from './components/utilities/MeasureScroll';
|
||||
export { default as Dashboard } from './components/views/Dashboard';
|
||||
export { default as CollectionRoutes } from './components/routes/Collections';
|
||||
export { default as DefaultTemplate } from './components/layout/DefaultTemplate';
|
||||
export { default as Login } from './components/views/Login';
|
||||
export { default as AddView } from './components/views/collections/Add';
|
||||
export { default as ArchiveView } from './components/views/collections/Archive';
|
||||
export { default as HeadingButton } from './components/modules/HeadingButton';
|
||||
export { default as Filter } from './components/modules/Filter';
|
||||
export { default as EditView } from './components/views/collections/Edit';
|
||||
export { default as StickOnScroll } from './components/layout/StickOnScroll';
|
||||
export { default as APIUrl } from './components/modules/APIUrl';
|
||||
export { default as Form, FormContext } from './components/forms/Form';
|
||||
export { default as FormSubmit } from './components/forms/Submit';
|
||||
export { default as Group } from './components/field-types/Group';
|
||||
export { default as Input } from './components/field-types/Input';
|
||||
export { default as Textarea } from './components/field-types/Textarea';
|
||||
export { default as PayloadIcon } from './components/graphics/PayloadIcon';
|
||||
export { default as PayloadLogo } from './components/graphics/PayloadLogo';
|
||||
export { default as Tooltip } from './components/modules/Tooltip';
|
||||
export { default as Sidebar } from './components/layout/Sidebar';
|
||||
export { default as StepNav } from './components/modules/StepNav';
|
||||
export { default as Arrow } from './components/graphics/Arrow';
|
||||
export { default as Label } from './components/type/Label';
|
||||
export { default as SetStepNav } from './components/utilities/SetStepNav';
|
||||
export { default as ContentBlock } from './components/layout/ContentBlock';
|
||||
@@ -1 +1 @@
|
||||
export { init } from './lib/payload';
|
||||
export { default as ajax } from './ajax';
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
class api {
|
||||
constructor(express, mongoose) {
|
||||
this.express = express;
|
||||
this.mongoose = mongoose;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = api;
|
||||
@@ -1,4 +1,4 @@
|
||||
import httpStatus from 'http-status';
|
||||
const httpStatus = require('http-status');
|
||||
|
||||
/**
|
||||
* @extends Error
|
||||
@@ -31,4 +31,4 @@ class APIError extends ExtendableError {
|
||||
}
|
||||
}
|
||||
|
||||
export default APIError;
|
||||
module.exports = APIError;
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export function init(app) {
|
||||
console.log('initialized')
|
||||
}
|
||||
7
src/redux.js
Normal file
7
src/redux.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import common from './reducers/common';
|
||||
import collections from './reducers/collections';
|
||||
|
||||
export {
|
||||
common,
|
||||
collections
|
||||
};
|
||||
Reference in New Issue
Block a user