rails_execution 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-version +1 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +129 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +3 -0
- data/app/assets/images/executions/approved.png +0 -0
- data/app/assets/images/executions/favicon.png +0 -0
- data/app/assets/images/executions/logo.png +0 -0
- data/app/assets/images/executions/rejected.png +0 -0
- data/app/assets/images/executions/robot.png +0 -0
- data/app/assets/javascripts/executions/ace.min.js +1 -0
- data/app/assets/javascripts/executions/ace.modes.ruby.min.js +1 -0
- data/app/assets/javascripts/executions/ace.theme-solarized_dark.min.js +1 -0
- data/app/assets/javascripts/executions/base.js +1 -0
- data/app/assets/javascripts/executions/bootstrap.5.2.1.min.js +6 -0
- data/app/assets/javascripts/executions/chart.min.js +13 -0
- data/app/assets/javascripts/executions/comments.js +43 -0
- data/app/assets/javascripts/executions/easymde.min.js +7 -0
- data/app/assets/javascripts/executions/events.js +8 -0
- data/app/assets/javascripts/executions/highlight.min.js +1198 -0
- data/app/assets/javascripts/executions/highlight.ruby.min.js +51 -0
- data/app/assets/javascripts/executions/jquery-3.6.1.min.js +2 -0
- data/app/assets/javascripts/executions/marked.min.js +6 -0
- data/app/assets/javascripts/executions/rails.js +565 -0
- data/app/assets/javascripts/executions/select2.min.js +2 -0
- data/app/assets/stylesheets/executions/base.css +3 -0
- data/app/assets/stylesheets/executions/bootstrap-icons.css +1869 -0
- data/app/assets/stylesheets/executions/comments.css +14 -0
- data/app/assets/stylesheets/executions/easymde.min.css +7 -0
- data/app/assets/stylesheets/executions/fonts.css +4 -0
- data/app/assets/stylesheets/executions/highlight.min.css +9 -0
- data/app/assets/stylesheets/executions/modify.scss +278 -0
- data/app/assets/stylesheets/executions/select2.min.css +1 -0
- data/app/controllers/rails_execution/base_controller.rb +16 -0
- data/app/controllers/rails_execution/comments_controller.rb +34 -0
- data/app/controllers/rails_execution/dashboards_controller.rb +27 -0
- data/app/controllers/rails_execution/tasks_controller.rb +175 -0
- data/app/helpers/rails_execution/base_helper.rb +14 -0
- data/app/helpers/rails_execution/policy_helper.rb +64 -0
- data/app/helpers/rails_execution/rendering_helper.rb +94 -0
- data/app/models/rails_execution/activity.rb +8 -0
- data/app/models/rails_execution/comment.rb +8 -0
- data/app/models/rails_execution/task.rb +71 -0
- data/app/models/rails_execution/task_review.rb +14 -0
- data/app/views/layouts/execution.html.haml +16 -0
- data/app/views/rails_execution/comments/_comment.html.haml +23 -0
- data/app/views/rails_execution/comments/create.js.haml +6 -0
- data/app/views/rails_execution/comments/update.js.haml +2 -0
- data/app/views/rails_execution/dashboards/charts/_insights.html.haml +27 -0
- data/app/views/rails_execution/dashboards/home.html.haml +24 -0
- data/app/views/rails_execution/dashboards/insights.json.jbuilder +8 -0
- data/app/views/rails_execution/shared/_flash.html.haml +7 -0
- data/app/views/rails_execution/shared/_header.html.haml +13 -0
- data/app/views/rails_execution/shared/_paging.html.haml +35 -0
- data/app/views/rails_execution/tasks/_actions.html.haml +12 -0
- data/app/views/rails_execution/tasks/_activities.html.haml +22 -0
- data/app/views/rails_execution/tasks/_attachment_file_fields.html.haml +3 -0
- data/app/views/rails_execution/tasks/_attachment_files.html.haml +12 -0
- data/app/views/rails_execution/tasks/_comments.html.haml +15 -0
- data/app/views/rails_execution/tasks/_form.html.haml +55 -0
- data/app/views/rails_execution/tasks/_form_scripts.html.haml +34 -0
- data/app/views/rails_execution/tasks/_new_comment.html.haml +8 -0
- data/app/views/rails_execution/tasks/_reviewers.html.haml +23 -0
- data/app/views/rails_execution/tasks/_script_content.html.haml +15 -0
- data/app/views/rails_execution/tasks/_show_scripts.html.haml +27 -0
- data/app/views/rails_execution/tasks/_status.html.haml +19 -0
- data/app/views/rails_execution/tasks/_task.html.haml +18 -0
- data/app/views/rails_execution/tasks/_tips.html.haml +18 -0
- data/app/views/rails_execution/tasks/closed.html.haml +12 -0
- data/app/views/rails_execution/tasks/completed.html.haml +12 -0
- data/app/views/rails_execution/tasks/edit.html.haml +3 -0
- data/app/views/rails_execution/tasks/index.html.haml +12 -0
- data/app/views/rails_execution/tasks/new.html.haml +3 -0
- data/app/views/rails_execution/tasks/show.html.haml +38 -0
- data/config/routes.rb +26 -0
- data/lib/generators/rails_execution/file_upload_generator.rb +18 -0
- data/lib/generators/rails_execution/install_generator.rb +36 -0
- data/lib/generators/rails_execution/templates/config.rb.tt +63 -0
- data/lib/generators/rails_execution/templates/file_reader.rb.tt +14 -0
- data/lib/generators/rails_execution/templates/file_uploader.rb.tt +11 -0
- data/lib/generators/rails_execution/templates/install.rb.tt +48 -0
- data/lib/rails_execution/app_model.rb +14 -0
- data/lib/rails_execution/config.rb +73 -0
- data/lib/rails_execution/engine.rb +24 -0
- data/lib/rails_execution/error.rb +6 -0
- data/lib/rails_execution/files/reader.rb +49 -0
- data/lib/rails_execution/files/uploader.rb +42 -0
- data/lib/rails_execution/services/approvement.rb +41 -0
- data/lib/rails_execution/services/execution.rb +87 -0
- data/lib/rails_execution/services/executor.rb +24 -0
- data/lib/rails_execution/services/paging.rb +35 -0
- data/lib/rails_execution/services/syntax_checker.rb +38 -0
- data/lib/rails_execution/version.rb +5 -0
- data/lib/rails_execution.rb +24 -0
- metadata +157 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
function AddMoreFile() {
|
2
|
+
var fieldsHtml = $('#js-add-more-file').data('fields-html');
|
3
|
+
var $fieldsHtml = $(fieldsHtml);
|
4
|
+
var fileID = Date.now();
|
5
|
+
$fieldsHtml.find('.file-name').attr('name', 'attachments[' + fileID + '][name]');
|
6
|
+
$fieldsHtml.find('.file-upload').attr('name', 'attachments[' + fileID + '][file]');
|
7
|
+
$('#attachment_files ul').append($fieldsHtml);
|
8
|
+
}
|