diff --git a/RoboFile.php b/RoboFile.php index 1432f9f87e..34d34f69b4 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -66,7 +66,8 @@ class RoboFile extends \Robo\Tasks { 'assets/css/src/newsletter_editor/newsletter_editor.styl', 'assets/css/src/public.styl', 'assets/css/src/rtl.styl', - 'assets/css/src/import.styl' + 'assets/css/src/import.styl', + 'assets/css/src/export.styl' ); $this->_exec(join(' ', array( diff --git a/assets/js/src/export/export.js b/assets/js/src/export/export.js new file mode 100644 index 0000000000..3a74dad60e --- /dev/null +++ b/assets/js/src/export/export.js @@ -0,0 +1,22 @@ +define( + [ + 'underscore', + 'jquery', + 'mailpoet', + 'handlebars', + 'select2' + ], + function ( + _, + jQuery, + MailPoet, + Handlebars + ) { + if (!jQuery("#mailpoet_subscribers_export").length) { + return; + } + jQuery(document).ready(function () { + + + }); + }); \ No newline at end of file diff --git a/lib/Config/Menu.php b/lib/Config/Menu.php index da62cbd96c..4e3a2c78b0 100644 --- a/lib/Config/Menu.php +++ b/lib/Config/Menu.php @@ -1,7 +1,6 @@ bootstrap(); echo $this->renderer->render('import.html', $data); } + function export() { + echo $this->renderer->render('export.html'); + } + function formEditor() { $id = (isset($_GET['id']) ? (int)$_GET['id'] : 0); $form = Form::findOne($id); diff --git a/lib/Export/BootstrapMenu.php b/lib/Export/BootstrapMenu.php new file mode 100644 index 0000000000..1c654bfe74 --- /dev/null +++ b/lib/Export/BootstrapMenu.php @@ -0,0 +1,11 @@ +profilerStart = microtime(true); + } + + function process() { + } + + function timeExecution() { + $profilerEnd = microtime(true); + return ($profilerEnd - $this->profilerStart) / 60; + } +} \ No newline at end of file diff --git a/lib/Router/Export.php b/lib/Router/Export.php new file mode 100644 index 0000000000..198be624ae --- /dev/null +++ b/lib/Router/Export.php @@ -0,0 +1,9 @@ + + +<% block content %> +
+

<%= __('Export') %>

+
+ +<%= stylesheet('export.css') %> + +<%= localize({ +}) %> + + +<% endblock %> \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index bc3e1e05fb..bcb1647286 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -96,6 +96,7 @@ config.push(_.extend({}, baseConfig, { 'forms/forms.jsx', 'settings/tabs.js', 'import/import.js', + 'export/export.js' 'helpscout' ], form_editor: [