From b98c04294b748d9f21f2da22a12ca4563d2c126d Mon Sep 17 00:00:00 2001 From: Igor V Belousov Date: Sun, 16 Aug 2015 06:30:06 +0300 Subject: [PATCH] delete dev files --- .gitignore | 2 +- .gitmodules | 3 - Gruntfile.js | 53 -------------- batch_test.php | 193 ------------------------------------------------- css/ShortCSS | 1 - package.json | 14 ---- 6 files changed, 1 insertion(+), 265 deletions(-) delete mode 100644 .gitmodules delete mode 100644 Gruntfile.js delete mode 100644 batch_test.php delete mode 160000 css/ShortCSS delete mode 100644 package.json diff --git a/.gitignore b/.gitignore index d44d59f..ad5b24f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -css/ShortCSS +css/ShortCSS/* .gitmodules batch_test.php Gruntfile.js diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 4e0abac..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "css/ShortCSS"] - path = css/ShortCSS - url = https://github.com/IgorVBelousov/ShortCSS.git diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 23a956b..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,53 +0,0 @@ -module.exports = function(grunt) { - - // Project configuration. - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - - uglify: { - batch: { - src: 'js/batch.js', - dest: 'js/batch.min.js' - } - }, - - - stylus: { - compile: { - - files: { - 'css/batch.css':'css/batch.styl', - 'css/notice.css':'css/notice.styl' - } - } - }, - - csso: { - dist: { - files: { - 'css/batch.css':'css/batch.css', - 'css/notice.css':'css/notice.css' - } - } - } - - }); - - - - // Load the plugin that provides the "uglify" task. - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-internal'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - - grunt.loadNpmTasks('grunt-contrib-clean'); - grunt.loadNpmTasks('grunt-csso'); - grunt.loadNpmTasks('grunt-contrib-stylus'); - - grunt.registerTask('js',['uglify']); - grunt.registerTask('css',['stylus','csso']); - - // Default task(s). - grunt.registerTask('default', ['css','js']); - -}; \ No newline at end of file diff --git a/batch_test.php b/batch_test.php deleted file mode 100644 index aa0cde7..0000000 --- a/batch_test.php +++ /dev/null @@ -1,193 +0,0 @@ - "Test finished_callback without errors", - 'init_message' => 'Custom Init Message', - 'progress_message' => 'Step %current% of %total%.', - 'operations' => array( - array('test_batch_operation_params',array('a',1)), - array(array('TestBatch','Operations'),array()), - array('test_batch_operation_context_finished',array()), - array('test_batch_operation',array()), - ), - 'finished' => 'test_batch_operations_callback' - ); - - batch_operations_start($batch,get_admin_url( null, 'tools.php' ) . "?page=batch-operations-test"); - break; - - case 12: - $batch = array( - 'title' => "Test finished_callback with errors", - 'init_message' => 'Custom Init Message', - 'progress_message' => 'Step %current% of %total%.', - 'operations' => array( - array('test_batch_operation_params',array('a')), - array('test_batch_operation_params',array('Hello','World')), - array(array('TestBatch','Operations'),array()), - array('test_batch_operationh',array()), - ), - 'finished' => 'test_batch_operations_callback' - ); - batch_operations_start($batch,get_admin_url( null, 'tools.php' ) . "?page=batch-operations-test"); - break; - - default: - break; - } - - ?> -
-

-
    -
  1. $current_array is empty -
  2. Default title & init_message -
  3. Set custom title & custom init_message -
  4. 5 operations default progress_message -
  5. 5 operations custom progress_message -
  6. Test $context['finished'] -
  7. Test params -
  8. Test operations in class -
  9. Test redirect -
  10. Test messages -
  11. Test finished_callback without errors -
  12. Test finished_callback with errors -
-
- results
' . print_r( $results, true ) . '

errors

' .
-      print_r( $errors, true ) . '
', 'error'); - } -} - -class TestBatch { - - public function Operations(&$context){ - sleep(2); - $context['message'] = 'class TestBatch'; - } - -} \ No newline at end of file diff --git a/css/ShortCSS b/css/ShortCSS deleted file mode 160000 index c5ac1d8..0000000 --- a/css/ShortCSS +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c5ac1d81265c4a6c0614fc095bcf563f8d84c84a diff --git a/package.json b/package.json deleted file mode 100644 index 57d31cb..0000000 --- a/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "Batch_operations", - "version": "0.1.0", - "devDependencies": { - "grunt": "~0.4.5", - "grunt-contrib-internal": "~0.4.5", - "grunt-contrib-jshint": "~0.10.0", - "grunt-contrib-nodeunit": "~0.4.1", - "grunt-contrib-uglify": "~0.5.0", - "grunt-contrib-clean": "~0.5.0", - "grunt-csso": "~0.5.0", - "grunt-contrib-stylus": "~0.10.0" - } -} \ No newline at end of file