keppler 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/installer/core/app/views/admin/layouts/_sidebar.html.haml +2 -2
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/application.js +0 -6
- data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/application.scss +2 -6
- data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/admin/views_controller.rb +4 -3
- data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/app/app_controller.rb +0 -8
- data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/services.rb +14 -0
- data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/view.rb +0 -1
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/file_format.rb +29 -0
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/resources.rb +70 -0
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/resources_format.rb +63 -0
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/utils/file_format.rb +44 -0
- data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/multimedia/index.html.haml +5 -5
- data/installer/core/rockets/keppler_frontend/app/views/layouts/keppler_frontend/app/layouts/_head.html.haml +0 -2
- data/installer/core/rockets/keppler_frontend/app/views/layouts/keppler_frontend/app/layouts/application.html.erb +2 -2
- data/installer/core/rockets/keppler_frontend/app/views/layouts/themes/keppler_default/application.html.erb +1 -1
- data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/editor_spec.rb +20 -0
- data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/live_editor_save_spec.rb +10 -10
- data/installer/core/spec/fixtures/keppler_frontend/editor/test.html +16 -0
- data/installer/core/spec/fixtures/keppler_frontend/editor/test.png +0 -0
- data/installer/core/spec/models/keppler_frontend/view/live_editor_spec.rb +54 -54
- data/installer/core/spec/routing/keppler_frontend/views_spec.rb +15 -7
- data/installer/core/spec/services/keppler_frontend/editor/file_format_spec.rb +35 -0
- data/installer/core/spec/services/keppler_frontend/editor/resources_format_spec.rb +45 -0
- data/installer/core/spec/services/keppler_frontend/editor/resources_spec.rb +44 -0
- data/installer/core/spec/services/keppler_frontend/utils/code_search_spec.rb +4 -5
- data/installer/core/spec/services/keppler_frontend/utils/file_format_spec.rb +52 -0
- data/installer/core/spec/services/keppler_frontend/utils/yml_handle_spec.rb +15 -12
- data/installer/core/spec/spec_helper.rb +2 -0
- data/installer/core/test/run.sh +1 -1
- data/lib/keppler/version.rb +1 -1
- metadata +14 -7400
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-accordion.html +0 -56
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-alert.html +0 -18
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-button-group.html +0 -15
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-button.html +0 -15
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-checks.html +0 -23
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-collapse.html +0 -23
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-12.html +0 -59
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-2.html +0 -29
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-3.html +0 -32
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-4.html +0 -35
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-6.html +0 -41
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-container.html +0 -15
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-dropdown-btn.html +0 -22
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-form.html +0 -33
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-jumbotron.html +0 -25
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-label.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-list-group.html +0 -22
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-modal.html +0 -32
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-navbar.html +0 -71
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-pagination.html +0 -31
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-panel-table.html +0 -48
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-panel.html +0 -19
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-progress-bar.html +0 -17
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-radio.html +0 -23
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-table.html +0 -42
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-tabs.html +0 -34
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-textarea.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-thumbnail.html +0 -23
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-well.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/btsp-input.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-blur-parallax.html +0 -59
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-blur.html +0 -58
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-parallax.html +0 -49
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-static.html +0 -48
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-video.html +0 -54
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-block.html +0 -15
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h1.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h2.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h3.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h4.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-small.html +0 -13
- data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/slick/slick-basic.html +0 -43
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-custom-code.js +0 -3
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-editor.js +0 -1174
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-format.js +0 -498
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-gradient.js +0 -2
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes.js +0 -53138
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapesjs-custom-code.min.js.map +0 -1
- data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapick.js +0 -2
- data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/font-awesome.css +0 -4
- data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/grapes-custom.scss +0 -610
- data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/grapes.scss +0 -2
- data/installer/core/rockets/keppler_frontend/app/assets/stylesheets/keppler_frontend/app/grapes/grapick.scss +0 -1
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/components_handler.rb +0 -41
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/css/convert.rb +0 -28
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/css_handler.rb +0 -44
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/editor.rb +0 -48
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/html_handler.rb +0 -73
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/html_save_utils.rb +0 -43
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/images_handler.rb +0 -31
- data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/live_editor/no_edit_area.rb +0 -67
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000020e7930>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000004f35968>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000005dff430>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000062d44b0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006306690>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000064d22f8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006501580>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000067c5d70>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000691b760>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006998918>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000069bf068>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006a4fd48>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006b36bd0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006ba2bc8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006d9e530>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006e43d50>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006e7e180>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006f765d8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006fa5590>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006fa6e40>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000006fca958>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007019788>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007071230>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000070bef58>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000718e730>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000728c4e8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000072e1948>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000073fd200>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000074220f0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000074762e0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000750b548>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000750de10>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007553460>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000075a58a0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000075e0400>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000075f3b18>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000767c828>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000076825e8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000076c1310>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000077bc080>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000078595b0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007a274a0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007a3be78>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007acc4f0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007b669d8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007bcd1d8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007cb0398>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007cea548>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007d60a68>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007d89490>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007e4bdb0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007eb3c58>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007ef6198>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007f728b0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007f7e228>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007f820d0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000007fca8f8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000800b5d8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008048730>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080a5bd8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080bc360>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080c6c20>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000080ece98>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008102090>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000811d1b0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000081773e0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008182a60>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000081bd7f0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000082311a0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000828de00>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008396e00>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008452a88>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000085ab218>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008628970>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000867d2e0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008681430>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000086c38f8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000878ed50>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000087d1150>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000880e000>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x000000000881dca8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008841d60>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008846450>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008894510>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000089c1a50>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000008b38b18>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000090a0650>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000090e9418>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000091dae30>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000092907f8>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000092ba170>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000093bfd40>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000009449180>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000094656a0>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000009527f48>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000095d4e78>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000095e0b60>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x0000000009661710>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000096c0350>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/data/#<KepplerFrontend::View::ActiveRecord_Relation:0x00000000097c1f88>.yml +0 -1
- data/installer/core/rockets/keppler_frontend/config/views.yml +0 -18
- data/installer/core/spec/services/keppler_frontend/live_editor/components_output_spec.rb +0 -20
- data/installer/core/spec/services/keppler_frontend/live_editor/css/convert_spec.rb +0 -39
- data/installer/core/spec/services/keppler_frontend/live_editor/css_handler_spec.rb +0 -31
- data/installer/core/spec/services/keppler_frontend/live_editor/html_save_spec.rb +0 -75
- data/installer/core/spec/services/keppler_frontend/live_editor/html_save_utils_spec.rb +0 -49
- data/installer/core/spec/services/keppler_frontend/live_editor/image_output_spec.rb +0 -19
- data/installer/core/spec/services/keppler_frontend/live_editor/no_edit_area_spec.rb +0 -44
- data/installer/core/spec/services/keppler_frontend/live_editor/render_spec.rb +0 -47
- data/installer/core/spec/services/keppler_frontend/live_editor/save_spec.rb +0 -36
@@ -1,498 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (C) 2013 Sencha Inc.
|
3
|
-
Copyright (C) 2012 Sencha Inc.
|
4
|
-
Copyright (C) 2011 Sencha Inc.
|
5
|
-
|
6
|
-
Author: Ariya Hidayat.
|
7
|
-
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
10
|
-
in the Software without restriction, including without limitation the rights
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
13
|
-
furnished to do so, subject to the following conditions:
|
14
|
-
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
16
|
-
all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
THE SOFTWARE.
|
25
|
-
*/
|
26
|
-
|
27
|
-
/*jslint continue: true, indent: 4 */
|
28
|
-
/*global exports:true, module:true, window:true */
|
29
|
-
|
30
|
-
(function () {
|
31
|
-
|
32
|
-
'use strict';
|
33
|
-
|
34
|
-
function cssbeautify(style, opt) {
|
35
|
-
|
36
|
-
var options, index = 0, length = style.length, blocks, formatted = '',
|
37
|
-
ch, ch2, str, state, State, depth, quote, comment,
|
38
|
-
openbracesuffix = true,
|
39
|
-
autosemicolon = false,
|
40
|
-
trimRight;
|
41
|
-
|
42
|
-
options = arguments.length > 1 ? opt : {};
|
43
|
-
if (typeof options.indent === 'undefined') {
|
44
|
-
options.indent = ' ';
|
45
|
-
}
|
46
|
-
if (typeof options.openbrace === 'string') {
|
47
|
-
openbracesuffix = (options.openbrace === 'end-of-line');
|
48
|
-
}
|
49
|
-
if (typeof options.autosemicolon === 'boolean') {
|
50
|
-
autosemicolon = options.autosemicolon;
|
51
|
-
}
|
52
|
-
|
53
|
-
function isWhitespace(c) {
|
54
|
-
return (c === ' ') || (c === '\n') || (c === '\t') || (c === '\r') || (c === '\f');
|
55
|
-
}
|
56
|
-
|
57
|
-
function isQuote(c) {
|
58
|
-
return (c === '\'') || (c === '"');
|
59
|
-
}
|
60
|
-
|
61
|
-
// FIXME: handle Unicode characters
|
62
|
-
function isName(c) {
|
63
|
-
return (ch >= 'a' && ch <= 'z') ||
|
64
|
-
(ch >= 'A' && ch <= 'Z') ||
|
65
|
-
(ch >= '0' && ch <= '9') ||
|
66
|
-
'-_*.:#[]'.indexOf(c) >= 0;
|
67
|
-
}
|
68
|
-
|
69
|
-
function appendIndent() {
|
70
|
-
var i;
|
71
|
-
for (i = depth; i > 0; i -= 1) {
|
72
|
-
formatted += options.indent;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
function openBlock() {
|
77
|
-
formatted = trimRight(formatted);
|
78
|
-
if (openbracesuffix) {
|
79
|
-
formatted += ' {';
|
80
|
-
} else {
|
81
|
-
formatted += '\n';
|
82
|
-
appendIndent();
|
83
|
-
formatted += '{';
|
84
|
-
}
|
85
|
-
if (ch2 !== '\n') {
|
86
|
-
formatted += '\n';
|
87
|
-
}
|
88
|
-
depth += 1;
|
89
|
-
}
|
90
|
-
|
91
|
-
function closeBlock() {
|
92
|
-
var last;
|
93
|
-
depth -= 1;
|
94
|
-
formatted = trimRight(formatted);
|
95
|
-
|
96
|
-
if (formatted.length > 0 && autosemicolon) {
|
97
|
-
last = formatted.charAt(formatted.length - 1);
|
98
|
-
if (last !== ';' && last !== '{') {
|
99
|
-
formatted += ';';
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
formatted += '\n';
|
104
|
-
appendIndent();
|
105
|
-
formatted += '}';
|
106
|
-
blocks.push(formatted);
|
107
|
-
formatted = '';
|
108
|
-
}
|
109
|
-
|
110
|
-
if (String.prototype.trimRight) {
|
111
|
-
trimRight = function (s) {
|
112
|
-
return s.trimRight();
|
113
|
-
};
|
114
|
-
} else {
|
115
|
-
// old Internet Explorer
|
116
|
-
trimRight = function (s) {
|
117
|
-
return s.replace(/\s+$/, '');
|
118
|
-
};
|
119
|
-
}
|
120
|
-
|
121
|
-
State = {
|
122
|
-
Start: 0,
|
123
|
-
AtRule: 1,
|
124
|
-
Block: 2,
|
125
|
-
Selector: 3,
|
126
|
-
Ruleset: 4,
|
127
|
-
Property: 5,
|
128
|
-
Separator: 6,
|
129
|
-
Expression: 7,
|
130
|
-
URL: 8
|
131
|
-
};
|
132
|
-
|
133
|
-
depth = 0;
|
134
|
-
state = State.Start;
|
135
|
-
comment = false;
|
136
|
-
blocks = [];
|
137
|
-
|
138
|
-
// We want to deal with LF (\n) only
|
139
|
-
style = style.replace(/\r\n/g, '\n');
|
140
|
-
|
141
|
-
while (index < length) {
|
142
|
-
ch = style.charAt(index);
|
143
|
-
ch2 = style.charAt(index + 1);
|
144
|
-
index += 1;
|
145
|
-
|
146
|
-
// Inside a string literal?
|
147
|
-
if (isQuote(quote)) {
|
148
|
-
formatted += ch;
|
149
|
-
if (ch === quote) {
|
150
|
-
quote = null;
|
151
|
-
}
|
152
|
-
if (ch === '\\' && ch2 === quote) {
|
153
|
-
// Don't treat escaped character as the closing quote
|
154
|
-
formatted += ch2;
|
155
|
-
index += 1;
|
156
|
-
}
|
157
|
-
continue;
|
158
|
-
}
|
159
|
-
|
160
|
-
// Starting a string literal?
|
161
|
-
if (isQuote(ch)) {
|
162
|
-
formatted += ch;
|
163
|
-
quote = ch;
|
164
|
-
continue;
|
165
|
-
}
|
166
|
-
|
167
|
-
// Comment
|
168
|
-
if (comment) {
|
169
|
-
formatted += ch;
|
170
|
-
if (ch === '*' && ch2 === '/') {
|
171
|
-
comment = false;
|
172
|
-
formatted += ch2;
|
173
|
-
index += 1;
|
174
|
-
}
|
175
|
-
continue;
|
176
|
-
}
|
177
|
-
if (ch === '/' && ch2 === '*') {
|
178
|
-
comment = true;
|
179
|
-
formatted += ch;
|
180
|
-
formatted += ch2;
|
181
|
-
index += 1;
|
182
|
-
continue;
|
183
|
-
}
|
184
|
-
|
185
|
-
if (state === State.Start) {
|
186
|
-
|
187
|
-
if (blocks.length === 0) {
|
188
|
-
if (isWhitespace(ch) && formatted.length === 0) {
|
189
|
-
continue;
|
190
|
-
}
|
191
|
-
}
|
192
|
-
|
193
|
-
// Copy white spaces and control characters
|
194
|
-
if (ch <= ' ' || ch.charCodeAt(0) >= 128) {
|
195
|
-
state = State.Start;
|
196
|
-
formatted += ch;
|
197
|
-
continue;
|
198
|
-
}
|
199
|
-
|
200
|
-
// Selector or at-rule
|
201
|
-
if (isName(ch) || (ch === '@')) {
|
202
|
-
|
203
|
-
// Clear trailing whitespaces and linefeeds.
|
204
|
-
str = trimRight(formatted);
|
205
|
-
|
206
|
-
if (str.length === 0) {
|
207
|
-
// If we have empty string after removing all the trailing
|
208
|
-
// spaces, that means we are right after a block.
|
209
|
-
// Ensure a blank line as the separator.
|
210
|
-
if (blocks.length > 0) {
|
211
|
-
formatted = '\n\n';
|
212
|
-
}
|
213
|
-
} else {
|
214
|
-
// After finishing a ruleset or directive statement,
|
215
|
-
// there should be one blank line.
|
216
|
-
if (str.charAt(str.length - 1) === '}' ||
|
217
|
-
str.charAt(str.length - 1) === ';') {
|
218
|
-
|
219
|
-
formatted = str + '\n\n';
|
220
|
-
} else {
|
221
|
-
// After block comment, keep all the linefeeds but
|
222
|
-
// start from the first column (remove whitespaces prefix).
|
223
|
-
while (true) {
|
224
|
-
ch2 = formatted.charAt(formatted.length - 1);
|
225
|
-
if (ch2 !== ' ' && ch2.charCodeAt(0) !== 9) {
|
226
|
-
break;
|
227
|
-
}
|
228
|
-
formatted = formatted.substr(0, formatted.length - 1);
|
229
|
-
}
|
230
|
-
}
|
231
|
-
}
|
232
|
-
formatted += ch;
|
233
|
-
state = (ch === '@') ? State.AtRule : State.Selector;
|
234
|
-
continue;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
|
238
|
-
if (state === State.AtRule) {
|
239
|
-
|
240
|
-
// ';' terminates a statement.
|
241
|
-
if (ch === ';') {
|
242
|
-
formatted += ch;
|
243
|
-
state = State.Start;
|
244
|
-
continue;
|
245
|
-
}
|
246
|
-
|
247
|
-
// '{' starts a block
|
248
|
-
if (ch === '{') {
|
249
|
-
str = trimRight(formatted);
|
250
|
-
openBlock();
|
251
|
-
state = (str === '@font-face') ? State.Ruleset : State.Block;
|
252
|
-
continue;
|
253
|
-
}
|
254
|
-
|
255
|
-
formatted += ch;
|
256
|
-
continue;
|
257
|
-
}
|
258
|
-
|
259
|
-
if (state === State.Block) {
|
260
|
-
|
261
|
-
// Selector
|
262
|
-
if (isName(ch)) {
|
263
|
-
|
264
|
-
// Clear trailing whitespaces and linefeeds.
|
265
|
-
str = trimRight(formatted);
|
266
|
-
|
267
|
-
if (str.length === 0) {
|
268
|
-
// If we have empty string after removing all the trailing
|
269
|
-
// spaces, that means we are right after a block.
|
270
|
-
// Ensure a blank line as the separator.
|
271
|
-
if (blocks.length > 0) {
|
272
|
-
formatted = '\n\n';
|
273
|
-
}
|
274
|
-
} else {
|
275
|
-
// Insert blank line if necessary.
|
276
|
-
if (str.charAt(str.length - 1) === '}') {
|
277
|
-
formatted = str + '\n\n';
|
278
|
-
} else {
|
279
|
-
// After block comment, keep all the linefeeds but
|
280
|
-
// start from the first column (remove whitespaces prefix).
|
281
|
-
while (true) {
|
282
|
-
ch2 = formatted.charAt(formatted.length - 1);
|
283
|
-
if (ch2 !== ' ' && ch2.charCodeAt(0) !== 9) {
|
284
|
-
break;
|
285
|
-
}
|
286
|
-
formatted = formatted.substr(0, formatted.length - 1);
|
287
|
-
}
|
288
|
-
}
|
289
|
-
}
|
290
|
-
|
291
|
-
appendIndent();
|
292
|
-
formatted += ch;
|
293
|
-
state = State.Selector;
|
294
|
-
continue;
|
295
|
-
}
|
296
|
-
|
297
|
-
// '}' resets the state.
|
298
|
-
if (ch === '}') {
|
299
|
-
closeBlock();
|
300
|
-
state = State.Start;
|
301
|
-
continue;
|
302
|
-
}
|
303
|
-
|
304
|
-
formatted += ch;
|
305
|
-
continue;
|
306
|
-
}
|
307
|
-
|
308
|
-
if (state === State.Selector) {
|
309
|
-
|
310
|
-
// '{' starts the ruleset.
|
311
|
-
if (ch === '{') {
|
312
|
-
openBlock();
|
313
|
-
state = State.Ruleset;
|
314
|
-
continue;
|
315
|
-
}
|
316
|
-
|
317
|
-
// '}' resets the state.
|
318
|
-
if (ch === '}') {
|
319
|
-
closeBlock();
|
320
|
-
state = State.Start;
|
321
|
-
continue;
|
322
|
-
}
|
323
|
-
|
324
|
-
formatted += ch;
|
325
|
-
continue;
|
326
|
-
}
|
327
|
-
|
328
|
-
if (state === State.Ruleset) {
|
329
|
-
|
330
|
-
// '}' finishes the ruleset.
|
331
|
-
if (ch === '}') {
|
332
|
-
closeBlock();
|
333
|
-
state = State.Start;
|
334
|
-
if (depth > 0) {
|
335
|
-
state = State.Block;
|
336
|
-
}
|
337
|
-
continue;
|
338
|
-
}
|
339
|
-
|
340
|
-
// Make sure there is no blank line or trailing spaces inbetween
|
341
|
-
if (ch === '\n') {
|
342
|
-
formatted = trimRight(formatted);
|
343
|
-
formatted += '\n';
|
344
|
-
continue;
|
345
|
-
}
|
346
|
-
|
347
|
-
// property name
|
348
|
-
if (!isWhitespace(ch)) {
|
349
|
-
formatted = trimRight(formatted);
|
350
|
-
formatted += '\n';
|
351
|
-
appendIndent();
|
352
|
-
formatted += ch;
|
353
|
-
state = State.Property;
|
354
|
-
continue;
|
355
|
-
}
|
356
|
-
formatted += ch;
|
357
|
-
continue;
|
358
|
-
}
|
359
|
-
|
360
|
-
if (state === State.Property) {
|
361
|
-
|
362
|
-
// ':' concludes the property.
|
363
|
-
if (ch === ':') {
|
364
|
-
formatted = trimRight(formatted);
|
365
|
-
formatted += ': ';
|
366
|
-
state = State.Expression;
|
367
|
-
if (isWhitespace(ch2)) {
|
368
|
-
state = State.Separator;
|
369
|
-
}
|
370
|
-
continue;
|
371
|
-
}
|
372
|
-
|
373
|
-
// '}' finishes the ruleset.
|
374
|
-
if (ch === '}') {
|
375
|
-
closeBlock();
|
376
|
-
state = State.Start;
|
377
|
-
if (depth > 0) {
|
378
|
-
state = State.Block;
|
379
|
-
}
|
380
|
-
continue;
|
381
|
-
}
|
382
|
-
|
383
|
-
formatted += ch;
|
384
|
-
continue;
|
385
|
-
}
|
386
|
-
|
387
|
-
if (state === State.Separator) {
|
388
|
-
|
389
|
-
// Non-whitespace starts the expression.
|
390
|
-
if (!isWhitespace(ch)) {
|
391
|
-
formatted += ch;
|
392
|
-
state = State.Expression;
|
393
|
-
continue;
|
394
|
-
}
|
395
|
-
|
396
|
-
// Anticipate string literal.
|
397
|
-
if (isQuote(ch2)) {
|
398
|
-
state = State.Expression;
|
399
|
-
}
|
400
|
-
|
401
|
-
continue;
|
402
|
-
}
|
403
|
-
|
404
|
-
if (state === State.Expression) {
|
405
|
-
|
406
|
-
// '}' finishes the ruleset.
|
407
|
-
if (ch === '}') {
|
408
|
-
closeBlock();
|
409
|
-
state = State.Start;
|
410
|
-
if (depth > 0) {
|
411
|
-
state = State.Block;
|
412
|
-
}
|
413
|
-
continue;
|
414
|
-
}
|
415
|
-
|
416
|
-
// ';' completes the declaration.
|
417
|
-
if (ch === ';') {
|
418
|
-
formatted = trimRight(formatted);
|
419
|
-
formatted += ';\n';
|
420
|
-
state = State.Ruleset;
|
421
|
-
continue;
|
422
|
-
}
|
423
|
-
|
424
|
-
formatted += ch;
|
425
|
-
|
426
|
-
if (ch === '(') {
|
427
|
-
if (formatted.charAt(formatted.length - 2) === 'l' &&
|
428
|
-
formatted.charAt(formatted.length - 3) === 'r' &&
|
429
|
-
formatted.charAt(formatted.length - 4) === 'u') {
|
430
|
-
|
431
|
-
// URL starts with '(' and closes with ')'.
|
432
|
-
state = State.URL;
|
433
|
-
continue;
|
434
|
-
}
|
435
|
-
}
|
436
|
-
|
437
|
-
continue;
|
438
|
-
}
|
439
|
-
|
440
|
-
if (state === State.URL) {
|
441
|
-
|
442
|
-
|
443
|
-
// ')' finishes the URL (only if it is not escaped).
|
444
|
-
if (ch === ')' && formatted.charAt(formatted.length - 1 !== '\\')) {
|
445
|
-
formatted += ch;
|
446
|
-
state = State.Expression;
|
447
|
-
continue;
|
448
|
-
}
|
449
|
-
}
|
450
|
-
|
451
|
-
// The default action is to copy the character (to prevent
|
452
|
-
// infinite loop).
|
453
|
-
formatted += ch;
|
454
|
-
}
|
455
|
-
|
456
|
-
formatted = blocks.join('') + formatted;
|
457
|
-
|
458
|
-
return formatted;
|
459
|
-
}
|
460
|
-
|
461
|
-
if (typeof exports !== 'undefined') {
|
462
|
-
// Node.js module.
|
463
|
-
module.exports = exports = cssbeautify;
|
464
|
-
} else if (typeof window === 'object') {
|
465
|
-
// Browser loading.
|
466
|
-
window.cssbeautify = cssbeautify;
|
467
|
-
}
|
468
|
-
|
469
|
-
}());
|
470
|
-
function processHtml(str) {
|
471
|
-
|
472
|
-
var div = document.createElement('div');
|
473
|
-
div.innerHTML = str.trim();
|
474
|
-
|
475
|
-
return format(div, 0).innerHTML;
|
476
|
-
}
|
477
|
-
|
478
|
-
function format(node, level) {
|
479
|
-
|
480
|
-
var indentBefore = new Array(level++ + 1).join(' '),
|
481
|
-
indentAfter = new Array(level - 1).join(' '),
|
482
|
-
textNode;
|
483
|
-
|
484
|
-
for (var i = 0; i < node.children.length; i++) {
|
485
|
-
|
486
|
-
textNode = document.createTextNode('\n' + indentBefore);
|
487
|
-
node.insertBefore(textNode, node.children[i]);
|
488
|
-
|
489
|
-
format(node.children[i], level);
|
490
|
-
|
491
|
-
if (node.lastElementChild == node.children[i]) {
|
492
|
-
textNode = document.createTextNode('\n' + indentAfter);
|
493
|
-
node.appendChild(textNode);
|
494
|
-
}
|
495
|
-
}
|
496
|
-
|
497
|
-
return node;
|
498
|
-
}
|