Convert the Studio Library view to webpack
This commit is contained in:
8
cms/static/js/pages/library.js
Normal file
8
cms/static/js/pages/library.js
Normal file
@@ -0,0 +1,8 @@
|
||||
define(
|
||||
['js/factories/library', 'common/js/utils/page_factory', 'js/factories/base'],
|
||||
function(LibraryFactory, invokePageFactory) {
|
||||
'use strict';
|
||||
invokePageFactory('LibraryFactory', LibraryFactory);
|
||||
}
|
||||
);
|
||||
|
||||
@@ -37,7 +37,7 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
showChildrenPreviews: ${context_library.show_children_previews | n, dump_js_escaped_json}
|
||||
}
|
||||
);
|
||||
});
|
||||
</%static:webpack>
|
||||
</%block>
|
||||
|
||||
<%block name="content">
|
||||
|
||||
@@ -33,6 +33,7 @@ module.exports = {
|
||||
'js/pages/login': './cms/static/js/pages/login.js',
|
||||
'js/pages/textbooks': './cms/static/js/pages/textbooks.js',
|
||||
'js/pages/container': './cms/static/js/pages/container.js',
|
||||
'js/pages/library': './cms/static/js/pages/library.js',
|
||||
'js/sock': './cms/static/js/sock.js',
|
||||
|
||||
// LMS
|
||||
|
||||
Reference in New Issue
Block a user