34 lines
987 B
JavaScript
34 lines
987 B
JavaScript
'use strict';
|
|
|
|
/* global __webpack_nonce__ OC */
|
|
__webpack_nonce__ = btoa(OC.requestToken); // eslint-disable-line no-native-reassign
|
|
|
|
// used for building a vendor stylesheet
|
|
import 'ng-sortable/dist/ng-sortable.css';
|
|
|
|
import angular from 'angular';
|
|
import markdownit from 'markdown-it';
|
|
global.markdownit = markdownit;
|
|
|
|
import app from './app/App.js';
|
|
import './app/Config.js';
|
|
import './app/Run.js';
|
|
|
|
|
|
import ListController from 'controller/ListController.js';
|
|
import attachmentListComponent from './controller/AttachmentController.js';
|
|
import activityComponent from './controller/ActivityController.js';
|
|
|
|
app.controller('ListController', ListController);
|
|
app.component('attachmentListComponent', attachmentListComponent);
|
|
app.component('activityComponent', activityComponent);
|
|
|
|
|
|
// require all the js files from subdirectories
|
|
var context = require.context('.', true, /(controller|service|filters|directive)\/(.*)\.js$/);
|
|
|
|
context.keys().forEach(function (key) {
|
|
context(key);
|
|
});
|
|
|