amalgam 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +27 -0
- data/app/assets/images/amalgam/admin/bg.png +0 -0
- data/app/assets/images/amalgam/admin/tree-last-node-bg.gif +0 -0
- data/app/assets/images/amalgam/admin/tree-node-bg.gif +0 -0
- data/app/assets/javascripts/amalgam/admin.js +19 -0
- data/app/assets/javascripts/amalgam/admin/app.js.coffee +70 -0
- data/app/assets/javascripts/amalgam/admin/popover.js.coffee +79 -0
- data/app/assets/javascripts/amalgam/admin/tree.js.coffee +66 -0
- data/app/assets/javascripts/amalgam/application.js +15 -0
- data/app/assets/javascripts/amalgam/editor.js.coffee +161 -0
- data/app/assets/javascripts/amalgam/extra.js +0 -0
- data/app/assets/javascripts/amalgam/mercury.js +456 -0
- data/app/assets/javascripts/amalgam/mercury/locales/zh-CN.locale.js.coffee +196 -0
- data/app/assets/stylesheets/amalgam/admin.css +5 -0
- data/app/assets/stylesheets/amalgam/admin/_mixins.css.scss +58 -0
- data/app/assets/stylesheets/amalgam/admin/layout.css.scss +261 -0
- data/app/assets/stylesheets/amalgam/admin/login.css.scss +19 -0
- data/app/assets/stylesheets/amalgam/application.css +13 -0
- data/app/assets/stylesheets/amalgam/editor.css.scss +53 -0
- data/app/assets/stylesheets/amalgam/extra.css +0 -0
- data/app/controllers/amalgam/admin/base_controller.rb +6 -0
- data/app/controllers/amalgam/admin/editor_controller.rb +24 -0
- data/app/controllers/amalgam/admin/groups_controller.rb +55 -0
- data/app/controllers/amalgam/admin/pages_controller.rb +75 -0
- data/app/controllers/amalgam/application_controller.rb +7 -0
- data/app/controllers/amalgam/registrations_controller.rb +34 -0
- data/app/controllers/amalgam/sessions_controller.rb +31 -0
- data/app/helpers/amalgam/admin/layout_helper.rb +72 -0
- data/app/helpers/amalgam/application_helper.rb +4 -0
- data/app/helpers/amalgam/attachments_helper.rb +20 -0
- data/app/helpers/amalgam/editor/editor_helper.rb +39 -0
- data/app/helpers/amalgam/editor/properties_builder_helper.rb +143 -0
- data/app/helpers/amalgam/pages_helper.rb +14 -0
- data/app/helpers/amalgam/url_helper.rb +48 -0
- data/app/views/amalgam/admin/_nav_bar.html.haml +28 -0
- data/app/views/amalgam/admin/groups/_form.html.haml +9 -0
- data/app/views/amalgam/admin/groups/edit.html.haml +1 -0
- data/app/views/amalgam/admin/groups/index.html.haml +19 -0
- data/app/views/amalgam/admin/groups/new.html.haml +1 -0
- data/app/views/amalgam/admin/pages/_fields.html.haml +10 -0
- data/app/views/amalgam/admin/pages/_form.html.haml +9 -0
- data/app/views/amalgam/admin/pages/_inline_form.html.haml +6 -0
- data/app/views/amalgam/admin/pages/_tree_inner.html.haml +24 -0
- data/app/views/amalgam/admin/pages/create.js.erb +1 -0
- data/app/views/amalgam/admin/pages/destroy.js.erb +1 -0
- data/app/views/amalgam/admin/pages/edit.html.haml +2 -0
- data/app/views/amalgam/admin/pages/index.html.haml +6 -0
- data/app/views/amalgam/admin/pages/new.html.haml +2 -0
- data/app/views/amalgam/admin/pages/update.js.erb +1 -0
- data/app/views/amalgam/admin/tree/_create.js.erb +19 -0
- data/app/views/amalgam/admin/tree/_destroy.js.erb +6 -0
- data/app/views/amalgam/admin/tree/_list.html.haml +5 -0
- data/app/views/amalgam/admin/tree/_node.html.haml +3 -0
- data/app/views/amalgam/admin/tree/_update.js.erb +11 -0
- data/app/views/amalgam/registrations/edit.html.haml +28 -0
- data/app/views/amalgam/sessions/new.html.haml +25 -0
- data/app/views/layouts/amalgam/admin/application.html.haml +15 -0
- data/app/views/layouts/amalgam/admin/editor.html.haml +11 -0
- data/app/views/layouts/amalgam/admin/login.html.haml +10 -0
- data/app/views/layouts/amalgam/application.html.erb +14 -0
- data/app/views/mercury/modals/link.html +86 -0
- data/app/views/mercury/modals/media.html +86 -0
- data/app/views/mercury/panels/properties.html +3 -0
- data/config/locales/en.yml +91 -0
- data/config/locales/zh-CN.yml +93 -0
- data/config/routes.rb +48 -0
- data/lib/amalgam.rb +91 -0
- data/lib/amalgam/authorities/controllers/helpers.rb +115 -0
- data/lib/amalgam/authorities/model.rb +41 -0
- data/lib/amalgam/authorities/models/active_record.rb +49 -0
- data/lib/amalgam/content_persistence.rb +40 -0
- data/lib/amalgam/editable.rb +20 -0
- data/lib/amalgam/engine.rb +46 -0
- data/lib/amalgam/globalize.rb +6 -0
- data/lib/amalgam/globalize/helpers.rb +44 -0
- data/lib/amalgam/models/attachable.rb +51 -0
- data/lib/amalgam/models/base_group.rb +14 -0
- data/lib/amalgam/models/group.rb +15 -0
- data/lib/amalgam/models/groupable.rb +16 -0
- data/lib/amalgam/models/hierarchical.rb +71 -0
- data/lib/amalgam/models/page.rb +13 -0
- data/lib/amalgam/models/templatable.rb +16 -0
- data/lib/amalgam/template_finder.rb +122 -0
- data/lib/amalgam/tree/exportable.rb +46 -0
- data/lib/amalgam/tree/importable.rb +46 -0
- data/lib/amalgam/validators/slug.rb +10 -0
- data/lib/amalgam/version.rb +3 -0
- data/lib/page_routes.rb +18 -0
- data/lib/tasks/amalgam_tasks.rake +4 -0
- data/lib/tasks/dump.rake +9 -0
- data/lib/tasks/load.rake +13 -0
- data/script/rails +8 -0
- data/spec/app/views/test_pages/@group1.html.erb +0 -0
- data/spec/app/views/test_pages/@group1/&1.html.erb +0 -0
- data/spec/app/views/test_pages/@group1/&2.html.erb +0 -0
- data/spec/app/views/test_pages/@group10.html.erb +0 -0
- data/spec/app/views/test_pages/default/&1.html.erb +0 -0
- data/spec/app/views/test_pages/default/&2.html.erb +0 -0
- data/spec/app/views/test_pages/show.html.erb +0 -0
- data/spec/app/views/test_pages/slug2.html.erb +0 -0
- data/spec/app/views/test_pages/slug2/@group3.html.erb +0 -0
- data/spec/app/views/test_pages/slug2/slug3@group3.html.erb +0 -0
- data/spec/app/views/test_pages/slug2@group1.html.erb +0 -0
- data/spec/app/views/test_pages/slug5/@group1.html.erb +0 -0
- data/spec/app/views/test_pages/slug5/@group2/@group1.html.erb +0 -0
- data/spec/app/views/test_pages/slug6/default.html.erb +0 -0
- data/spec/content_persistence_spec.rb +93 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/amalgam/admin/session_boxs_controller.rb +11 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/pages_controller.rb +10 -0
- data/spec/dummy/app/controllers/posts_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/admin_user.rb +3 -0
- data/spec/dummy/app/models/attachment.rb +35 -0
- data/spec/dummy/app/models/page.rb +10 -0
- data/spec/dummy/app/models/post.rb +3 -0
- data/spec/dummy/app/models/session_boxs.rb +2 -0
- data/spec/dummy/app/uploaders/attachment_uploader.rb +38 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/pages/show.html.haml +12 -0
- data/spec/dummy/app/views/pages/test123.html.haml +6 -0
- data/spec/dummy/app/views/posts/show.html.haml +1 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +73 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/i18n_locales_list.yml +1 -0
- data/spec/dummy/config/initializers/amalgam.rb +15 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/locales/zh-CN.yml +18 -0
- data/spec/dummy/config/routes.rb +8 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20120824071117_create_pages.rb +19 -0
- data/spec/dummy/db/migrate/20120904075542_create_posts.rb +10 -0
- data/spec/dummy/db/migrate/20120913061406_create_admins.rb +12 -0
- data/spec/dummy/db/migrate/20120920033135_create_attachments.rb +15 -0
- data/spec/dummy/db/migrate/20121219062850_create_groups.rb +10 -0
- data/spec/dummy/db/migrate/20121219062901_create_base_groups.rb +12 -0
- data/spec/dummy/db/pages.yml +262 -0
- data/spec/dummy/db/schema.rb +81 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +339740 -0
- data/spec/dummy/log/test.log +63208 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/uploads/attachment/1/e2ff.gif +0 -0
- data/spec/dummy/public/uploads/attachment/1/f582.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/1/preview_e2ff.gif +0 -0
- data/spec/dummy/public/uploads/attachment/1/preview_f582.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/1/thumb_e2ff.gif +0 -0
- data/spec/dummy/public/uploads/attachment/1/thumb_f582.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/2/c7c7.gif +0 -0
- data/spec/dummy/public/uploads/attachment/2/ee57.png +0 -0
- data/spec/dummy/public/uploads/attachment/2/preview_c7c7.gif +0 -0
- data/spec/dummy/public/uploads/attachment/2/preview_ee57.png +0 -0
- data/spec/dummy/public/uploads/attachment/2/thumb_c7c7.gif +0 -0
- data/spec/dummy/public/uploads/attachment/2/thumb_ee57.png +0 -0
- data/spec/dummy/public/uploads/attachment/3/004c.pdf +0 -0
- data/spec/dummy/public/uploads/attachment/3/711c.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/3/preview_711c.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/3/thumb_711c.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/4/8fae.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/4/preview_8fae.jpg +0 -0
- data/spec/dummy/public/uploads/attachment/4/thumb_8fae.jpg +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/assets/BFE/110/sprockets%2F741f81260849a3151c5f742198b58955 +0 -0
- data/spec/dummy/tmp/cache/assets/C24/220/sprockets%2F4078446bd698a67513559e55f123301a +0 -0
- data/spec/dummy/tmp/cache/assets/C2C/440/sprockets%2F592974c469130daa2948a294107c4679 +0 -0
- data/spec/dummy/tmp/cache/assets/C53/2E0/sprockets%2F0647d3840be61720252b9f742846c5b9 +0 -0
- data/spec/dummy/tmp/cache/assets/C58/360/sprockets%2Fd70d7d09f7c543961a832525a4057765 +0 -0
- data/spec/dummy/tmp/cache/assets/C5B/5B0/sprockets%2F2ed1e82828401788f208f72d438a6742 +0 -0
- data/spec/dummy/tmp/cache/assets/C60/490/sprockets%2F5698175a9c988c40691a61c9111c936b +0 -0
- data/spec/dummy/tmp/cache/assets/C65/D90/sprockets%2F778981d002f7645776a9e786bc73a115 +0 -0
- data/spec/dummy/tmp/cache/assets/C74/B00/sprockets%2Fd113953516073be0084309a4b935d1ff +0 -0
- data/spec/dummy/tmp/cache/assets/C74/FF0/sprockets%2F9835c246232df220b44742dd5b41681a +0 -0
- data/spec/dummy/tmp/cache/assets/C78/FF0/sprockets%2F6dd8db7321e52a4686404a22b5258416 +0 -0
- data/spec/dummy/tmp/cache/assets/C80/140/sprockets%2F29d3786161a63135c12654cca286b9f5 +0 -0
- data/spec/dummy/tmp/cache/assets/C80/BC0/sprockets%2Fe44a62348383735a723819f2abaf6236 +0 -0
- data/spec/dummy/tmp/cache/assets/C81/260/sprockets%2F5a7830b2e1f1f96e4013966569f23b22 +0 -0
- data/spec/dummy/tmp/cache/assets/C82/540/sprockets%2F63a36c57823d752717535db46c125ea8 +0 -0
- data/spec/dummy/tmp/cache/assets/C86/7F0/sprockets%2F6f542d22a765f6fa98dd003574188215 +0 -0
- data/spec/dummy/tmp/cache/assets/C86/B20/sprockets%2F908ac5f9983f05152b04a6742f61f553 +0 -0
- data/spec/dummy/tmp/cache/assets/C88/F70/sprockets%2F7071fff4752940f61683282371e45abf +0 -0
- data/spec/dummy/tmp/cache/assets/C8D/E90/sprockets%2Fc40f127f0984461ed5c4f86389e56421 +0 -0
- data/spec/dummy/tmp/cache/assets/C8F/E90/sprockets%2F79494794613aa994ee442a2d46e8522a +0 -0
- data/spec/dummy/tmp/cache/assets/C94/450/sprockets%2F291b255f25caf077f544788a0829769e +0 -0
- data/spec/dummy/tmp/cache/assets/C96/E20/sprockets%2F1016d04371c4bf510b2e448236d0c77a +0 -0
- data/spec/dummy/tmp/cache/assets/C9A/2A0/sprockets%2F67c1f84497e5d261509295f7016e5e9f +0 -0
- data/spec/dummy/tmp/cache/assets/CA1/600/sprockets%2F5188c3bf07e1f044d29a03d16024f453 +0 -0
- data/spec/dummy/tmp/cache/assets/CA2/550/sprockets%2Fb71e5844762b26443452df0c3dd403c1 +0 -0
- data/spec/dummy/tmp/cache/assets/CA5/910/sprockets%2F04185e34a7f03db34495ca8d30344f34 +0 -0
- data/spec/dummy/tmp/cache/assets/CAB/B40/sprockets%2F3a5d588a18086d2624328dc1255ed4d1 +0 -0
- data/spec/dummy/tmp/cache/assets/CAC/E00/sprockets%2F1121f251881caf77f241a8461a366e8f +0 -0
- data/spec/dummy/tmp/cache/assets/CB1/650/sprockets%2Fbf9784552f2d3a243b45f9202d715e44 +0 -0
- data/spec/dummy/tmp/cache/assets/CB3/C40/sprockets%2F2b2a45721c4c6419c75a95f427d964e2 +0 -0
- data/spec/dummy/tmp/cache/assets/CBA/660/sprockets%2F7497670f00f7f5e27ad5d016f13e7492 +0 -0
- data/spec/dummy/tmp/cache/assets/CBD/2D0/sprockets%2Fa4e95535619535e62a5e68c0c5b559e4 +0 -0
- data/spec/dummy/tmp/cache/assets/CC2/D70/sprockets%2F2b2090fb1c1c1390731566f2ab1380fa +0 -0
- data/spec/dummy/tmp/cache/assets/CC5/750/sprockets%2F4c596252a719258c6d554fbc7fd12989 +0 -0
- data/spec/dummy/tmp/cache/assets/CC6/260/sprockets%2F664715277b72f8b5939d706f9e22b7ae +0 -0
- data/spec/dummy/tmp/cache/assets/CC7/E70/sprockets%2F8f7bf771b9fa1166269619049e7752dc +0 -0
- data/spec/dummy/tmp/cache/assets/CC8/740/sprockets%2F624609703a2441b00dfd1a539b1ba87c +0 -0
- data/spec/dummy/tmp/cache/assets/CC8/DA0/sprockets%2F50f88c887eb8957909417352af037dbd +0 -0
- data/spec/dummy/tmp/cache/assets/CCB/A50/sprockets%2Fdcfe40462219fb0ea740fa2201518176 +0 -0
- data/spec/dummy/tmp/cache/assets/CCC/D20/sprockets%2F2c4b202cde474c09d063716c6a3c7332 +0 -0
- data/spec/dummy/tmp/cache/assets/CD0/6C0/sprockets%2Fa3681a07ddc61ec6d2153a51762807e0 +0 -0
- data/spec/dummy/tmp/cache/assets/CD4/460/sprockets%2F5c30c404c8d3dba3319126f2f34c7089 +0 -0
- data/spec/dummy/tmp/cache/assets/CD4/5C0/sprockets%2F99679443bdf010a6a23343aa6c6227ad +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/9E0/sprockets%2F49b52a664350bbe3be436b0c3579028f +0 -0
- data/spec/dummy/tmp/cache/assets/CDA/9E0/sprockets%2Ff3188d432180dff427fc090c5d150c55 +0 -0
- data/spec/dummy/tmp/cache/assets/CDC/4E0/sprockets%2Fc838aa9d2c0055c60c6219376ad1f486 +0 -0
- data/spec/dummy/tmp/cache/assets/CDC/D40/sprockets%2Fe11aeaf4c9048d6589035a17320d2e78 +0 -0
- data/spec/dummy/tmp/cache/assets/CDD/100/sprockets%2Fb07931646d646ee95310ec0ac141c9e8 +0 -0
- data/spec/dummy/tmp/cache/assets/CE1/510/sprockets%2Fa938ef564111d7d092e6a09e52523e6c +0 -0
- data/spec/dummy/tmp/cache/assets/CE1/660/sprockets%2F11ef2996170ba4b455a2084a8b79e74e +0 -0
- data/spec/dummy/tmp/cache/assets/CE2/A90/sprockets%2F950d363c9e753da911ee22692b57a0f4 +0 -0
- data/spec/dummy/tmp/cache/assets/CE3/210/sprockets%2F458fc151db77a67e52f0b0520f56686d +0 -0
- data/spec/dummy/tmp/cache/assets/CE5/D30/sprockets%2Fa8b2ce32c8448680e86419ae373d85a0 +0 -0
- data/spec/dummy/tmp/cache/assets/CE6/670/sprockets%2F59ce49b728a902931713d0df5abf7931 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/7A0/sprockets%2Facac2f098936ea9209250992def75044 +0 -0
- data/spec/dummy/tmp/cache/assets/CE8/0F0/sprockets%2F17d4249b09080893e06b7e6b65cff91a +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/740/sprockets%2Fae2e598bb6526d763ff6f1332718a670 +0 -0
- data/spec/dummy/tmp/cache/assets/CEB/D90/sprockets%2Fdd6c71b803d84d05bc47897d12e79075 +0 -0
- data/spec/dummy/tmp/cache/assets/CEC/480/sprockets%2F35a19bd6fd97613463a55f86ce086c62 +0 -0
- data/spec/dummy/tmp/cache/assets/CED/7E0/sprockets%2F918f7d077916b440c4e7a25f7eb5e535 +0 -0
- data/spec/dummy/tmp/cache/assets/CEF/6E0/sprockets%2F96ebdd205193869f500d8f49762ba2c9 +0 -0
- data/spec/dummy/tmp/cache/assets/CEF/A30/sprockets%2Fe79393de73e0b03643338fd9539da36e +0 -0
- data/spec/dummy/tmp/cache/assets/CEF/B00/sprockets%2F9518382687c84984bc2c6c7e340ac3fc +0 -0
- data/spec/dummy/tmp/cache/assets/CF1/3F0/sprockets%2F37842acf58edff73176fe247819f4203 +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/710/sprockets%2Fb9e52159c19947809da909ede2cd6254 +0 -0
- data/spec/dummy/tmp/cache/assets/CFB/5F0/sprockets%2F77c7d377904208d548e68cadf777ac48 +0 -0
- data/spec/dummy/tmp/cache/assets/CFC/CF0/sprockets%2F4113c0ae5ae66875ac91832a48111bcc +0 -0
- data/spec/dummy/tmp/cache/assets/D01/FB0/sprockets%2F49c2bbde5f1342b70039a855c91c7a10 +0 -0
- data/spec/dummy/tmp/cache/assets/D02/1E0/sprockets%2Fd522765c0695d600d55e0a4b3ba5fb63 +0 -0
- data/spec/dummy/tmp/cache/assets/D02/380/sprockets%2Fb13e41ee1816773d0b6c0211c954e7dc +0 -0
- data/spec/dummy/tmp/cache/assets/D02/E50/sprockets%2Fc49caac6f0a5717352c2ae50637864a0 +0 -0
- data/spec/dummy/tmp/cache/assets/D04/980/sprockets%2F5b5b8d27d2443d108513f7a9b21c8bc2 +0 -0
- data/spec/dummy/tmp/cache/assets/D06/FB0/sprockets%2F994ca106b1c2bc799ad9006d6444ab33 +0 -0
- data/spec/dummy/tmp/cache/assets/D07/4F0/sprockets%2F89db66eb537f4d5f62aa80b1181b0116 +0 -0
- data/spec/dummy/tmp/cache/assets/D09/7D0/sprockets%2F49660b80a3e76cd585e20c6aa30cb863 +0 -0
- data/spec/dummy/tmp/cache/assets/D0A/200/sprockets%2F50b374320de449095bee6e8542b4f3ba +0 -0
- data/spec/dummy/tmp/cache/assets/D0E/900/sprockets%2F24c195216f1a8c6e1085b7ac563f77db +0 -0
- data/spec/dummy/tmp/cache/assets/D0F/760/sprockets%2Fb4737b2f5235f1bcf91f8c22e839511b +0 -0
- data/spec/dummy/tmp/cache/assets/D0F/C60/sprockets%2F21584e7371cf8fce9f21c036016cd53e +0 -0
- data/spec/dummy/tmp/cache/assets/D10/B80/sprockets%2Ff215394828cd9b946f7b00dc46ab243c +0 -0
- data/spec/dummy/tmp/cache/assets/D12/020/sprockets%2F8dd72e4e192e21f86b4e93d0022458af +0 -0
- data/spec/dummy/tmp/cache/assets/D12/750/sprockets%2F1f24a1ca8e18b6b638c5e168433c578e +0 -0
- data/spec/dummy/tmp/cache/assets/D12/A70/sprockets%2F685aa56aa5e3a6654894c4382bb42a9d +0 -0
- data/spec/dummy/tmp/cache/assets/D13/9E0/sprockets%2Fe3eab71719736a77ca9bc38e31b90437 +0 -0
- data/spec/dummy/tmp/cache/assets/D14/700/sprockets%2Fe7d51253e102dd7d9b48144e59fc545c +0 -0
- data/spec/dummy/tmp/cache/assets/D14/FC0/sprockets%2F72ba03304b682e717b5dc8c98657c2ef +0 -0
- data/spec/dummy/tmp/cache/assets/D15/180/sprockets%2F21da349d3de4905553f2ed6293e5c78a +0 -0
- data/spec/dummy/tmp/cache/assets/D16/E70/sprockets%2F3f7e1988ab4f26cc524654c0e6a6e705 +0 -0
- data/spec/dummy/tmp/cache/assets/D17/F10/sprockets%2F088abf7abdf0841b1896141953985ecb +0 -0
- data/spec/dummy/tmp/cache/assets/D18/C20/sprockets%2Ff54ff37933fccc28e3470688f03ca108 +0 -0
- data/spec/dummy/tmp/cache/assets/D19/900/sprockets%2F7a1ad7eff2736e168109f126d544fb87 +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/440/sprockets%2Fe375d06592fd34b8548243c6d5eae5f3 +0 -0
- data/spec/dummy/tmp/cache/assets/D1D/000/sprockets%2Fdfc98c87d52484fd6a1c1314d5f05929 +0 -0
- data/spec/dummy/tmp/cache/assets/D1E/EB0/sprockets%2Fb8aa5f60149d568fa9c07b883ab28668 +0 -0
- data/spec/dummy/tmp/cache/assets/D21/E30/sprockets%2Fc30e400e947be3006b2138eb2a118cea +0 -0
- data/spec/dummy/tmp/cache/assets/D23/070/sprockets%2F0ad36b9a9e965ef66871cd465849b21d +0 -0
- data/spec/dummy/tmp/cache/assets/D24/760/sprockets%2F8303b5bc419bf07aaf03cd3aa0436049 +0 -0
- data/spec/dummy/tmp/cache/assets/D26/0C0/sprockets%2F8c0b57be976d698c1c6c8655786f2ca0 +0 -0
- data/spec/dummy/tmp/cache/assets/D2D/A70/sprockets%2F00632ff0a7171cfef0280be7b06c816c +0 -0
- data/spec/dummy/tmp/cache/assets/D30/850/sprockets%2F9cf873e6bbad214c1327db2110b7d473 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/370/sprockets%2Fabcc7db1b3b2458a1d123f36793707b7 +0 -0
- data/spec/dummy/tmp/cache/assets/D34/DD0/sprockets%2F97b052906124e7bc05c3722ec5abc8be +0 -0
- data/spec/dummy/tmp/cache/assets/D36/6C0/sprockets%2F504cde3ce0d273b7392d5624e63a4c6b +0 -0
- data/spec/dummy/tmp/cache/assets/D36/A90/sprockets%2Fa310632f1f06b37e3722fc27f5e39afc +0 -0
- data/spec/dummy/tmp/cache/assets/D37/D00/sprockets%2Fd91049a9cca358600e5e6b1a4bb3e376 +0 -0
- data/spec/dummy/tmp/cache/assets/D39/270/sprockets%2F04297bee1e87b1bd9e225c042f443b6d +0 -0
- data/spec/dummy/tmp/cache/assets/D3B/770/sprockets%2F2cff431ebf16d661e2e77606136a0dd8 +0 -0
- data/spec/dummy/tmp/cache/assets/D3B/BF0/sprockets%2F2fd45727318f2d35da3508a9f2afba81 +0 -0
- data/spec/dummy/tmp/cache/assets/D3B/C20/sprockets%2F083fdf43c74230f83dbc4bc4a75b5573 +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/0C0/sprockets%2F138c3c31ce060e19769e43cbef05a88b +0 -0
- data/spec/dummy/tmp/cache/assets/D3D/E70/sprockets%2F6d71b922b6979fa55b2cbc22c07ec660 +0 -0
- data/spec/dummy/tmp/cache/assets/D3E/4E0/sprockets%2F49f381c19815ab7e04774ccf11c9dbc0 +0 -0
- data/spec/dummy/tmp/cache/assets/D40/D00/sprockets%2F7ee6278dd364bccd3148dd0436db9601 +0 -0
- data/spec/dummy/tmp/cache/assets/D42/0A0/sprockets%2F3926b2152fc6077a67c0393dd1fde5ff +0 -0
- data/spec/dummy/tmp/cache/assets/D42/6C0/sprockets%2F03848ab37827dec48d7da96dabc21391 +0 -0
- data/spec/dummy/tmp/cache/assets/D42/710/sprockets%2Fd686370f5a50a7b4e72c7ce2a1fa4994 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/C40/sprockets%2F605f2716c99ad07e6557e3c11afe2d5f +0 -0
- data/spec/dummy/tmp/cache/assets/D48/030/sprockets%2Fc40ee9f1b6195d2b1c688b1b76a298d8 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/8B0/sprockets%2F7cb6398fa76dfd0c23c320c4f6679e61 +0 -0
- data/spec/dummy/tmp/cache/assets/D4A/A50/sprockets%2Fd2508f9dc10d480fe0e96295d1bff396 +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/810/sprockets%2Ff12e8e91de7a8141f5c683ad7a4e2788 +0 -0
- data/spec/dummy/tmp/cache/assets/D53/140/sprockets%2F163d881988dbb2e1afaf609ede199728 +0 -0
- data/spec/dummy/tmp/cache/assets/D57/7D0/sprockets%2F77ad64276f587f3d4939fcfc43ac390f +0 -0
- data/spec/dummy/tmp/cache/assets/D58/050/sprockets%2F5ebe40a16ad45f3c1a1074ecc446a292 +0 -0
- data/spec/dummy/tmp/cache/assets/D58/A20/sprockets%2F1eb6b3cf6044c4f45f401620dc32dcb4 +0 -0
- data/spec/dummy/tmp/cache/assets/D59/480/sprockets%2Fdd1552b23d46a3e5023ccc43cd14e8a6 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/0C0/sprockets%2F8d2ad7f5c2e34f43bcf2003055ea54b0 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/DE0/sprockets%2Fba56c872020d81adefc1a14d1a4a9915 +0 -0
- data/spec/dummy/tmp/cache/assets/D5E/050/sprockets%2Fe702fcfb1a2b3a9c7c7133734add0338 +0 -0
- data/spec/dummy/tmp/cache/assets/D5E/A60/sprockets%2F5d5889179e40a94d598d5aaef5e8ee07 +0 -0
- data/spec/dummy/tmp/cache/assets/D5F/110/sprockets%2Ff60880c0b15a4b40a1ff1dd84c4d418f +0 -0
- data/spec/dummy/tmp/cache/assets/D63/6B0/sprockets%2Fca3181abfdd31a22eb404ae76970e687 +0 -0
- data/spec/dummy/tmp/cache/assets/D65/EA0/sprockets%2Fdb95545103d8bda2a981abbd60598d0b +0 -0
- data/spec/dummy/tmp/cache/assets/D66/090/sprockets%2F5f23fb3b3620e42770a222dcffc3fe68 +0 -0
- data/spec/dummy/tmp/cache/assets/D66/4A0/sprockets%2F1ac93156ae46673c2e4ba7ebd8043a9a +0 -0
- data/spec/dummy/tmp/cache/assets/D66/E40/sprockets%2Fbc274bea451a3e63277a834da4e2f4b8 +0 -0
- data/spec/dummy/tmp/cache/assets/D68/3D0/sprockets%2F31c1a6f065dfda1dec7659153b2fe490 +0 -0
- data/spec/dummy/tmp/cache/assets/D68/D10/sprockets%2Fb2f1cbe194eb34e1b59f21e551fc3574 +0 -0
- data/spec/dummy/tmp/cache/assets/D69/C60/sprockets%2F03bfc608c93aa93a2c256fcec50c5874 +0 -0
- data/spec/dummy/tmp/cache/assets/D6C/900/sprockets%2F4b3d80c1c3945f3d066afd6866bf41bb +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/A80/sprockets%2F2b7d49e95ce028a708cb5bcc42e636a3 +0 -0
- data/spec/dummy/tmp/cache/assets/D6E/1D0/sprockets%2Febe8b91ab292681b3aa9b2919bcb9309 +0 -0
- data/spec/dummy/tmp/cache/assets/D6E/C60/sprockets%2F8e87ddaee33f8186012822fcc103df2e +0 -0
- data/spec/dummy/tmp/cache/assets/D6F/BB0/sprockets%2F5d2d21e6cde758d2c0bd1fe4c1976742 +0 -0
- data/spec/dummy/tmp/cache/assets/D70/5E0/sprockets%2Fa3ae8bf758d0039d588053ebed90da70 +0 -0
- data/spec/dummy/tmp/cache/assets/D72/710/sprockets%2F79bac7d1795bf8754bb0fbba67e00770 +0 -0
- data/spec/dummy/tmp/cache/assets/D73/960/sprockets%2F181dab5ecaf89764c5467b65e23bba56 +0 -0
- data/spec/dummy/tmp/cache/assets/D74/490/sprockets%2F648cf9e0488a2f7626ace8ebad1f4122 +0 -0
- data/spec/dummy/tmp/cache/assets/D74/6B0/sprockets%2Fa08fbd7af9855772d668a08ff02ca13c +0 -0
- data/spec/dummy/tmp/cache/assets/D74/DC0/sprockets%2Fe265bb7bbe258b662d4f40f26e529ef3 +0 -0
- data/spec/dummy/tmp/cache/assets/D74/EB0/sprockets%2F693c9ecc1e41b6cb892d4ddd3c907550 +0 -0
- data/spec/dummy/tmp/cache/assets/D76/580/sprockets%2F74dc711f9d61a7533e8586e2fb5c3abe +0 -0
- data/spec/dummy/tmp/cache/assets/D76/FC0/sprockets%2F7ae697fb2502f9128fd86add032ad9f2 +0 -0
- data/spec/dummy/tmp/cache/assets/D77/730/sprockets%2F665c2d33686edda640646ef56cafa9c2 +0 -0
- data/spec/dummy/tmp/cache/assets/D77/A00/sprockets%2F8ce80cb4c6b710afda9ec656197458e2 +0 -0
- data/spec/dummy/tmp/cache/assets/D77/FB0/sprockets%2F3ab88055d76438c1d45e9accbb79cd55 +0 -0
- data/spec/dummy/tmp/cache/assets/D79/1D0/sprockets%2F7abdc027647b84c4f53cb3d2b8d96f77 +0 -0
- data/spec/dummy/tmp/cache/assets/D7B/150/sprockets%2Fd9fa9f45aa3f6724017e189a5c7a9b7c +0 -0
- data/spec/dummy/tmp/cache/assets/D7C/300/sprockets%2F1d6b390990b7c7b9ed499e2d01dea7c8 +0 -0
- data/spec/dummy/tmp/cache/assets/D7D/BD0/sprockets%2Fea81f82f5cff518d0c44d7543c77e5e4 +0 -0
- data/spec/dummy/tmp/cache/assets/D7D/FF0/sprockets%2F4c3966e119bbb65deceab8e7e8973126 +0 -0
- data/spec/dummy/tmp/cache/assets/D7F/600/sprockets%2Fe39484299c25cdfefefc7d33e741b325 +0 -0
- data/spec/dummy/tmp/cache/assets/D80/410/sprockets%2F2f90a1502bced530cfe43d52401ae4da +0 -0
- data/spec/dummy/tmp/cache/assets/D80/FD0/sprockets%2F728a58fa544e4efd983fad0456e463ed +0 -0
- data/spec/dummy/tmp/cache/assets/D81/8C0/sprockets%2F9cc8d4f6431e7e2ee2dc27e59c26b388 +0 -0
- data/spec/dummy/tmp/cache/assets/D88/600/sprockets%2Fcf9142cde71894eae6379dd48c37db96 +0 -0
- data/spec/dummy/tmp/cache/assets/D89/260/sprockets%2Fd301f60bda3bd4ed3d9ba69a61240a38 +0 -0
- data/spec/dummy/tmp/cache/assets/D89/9C0/sprockets%2Fe9f82dbde6002e4034513caad34d17ba +0 -0
- data/spec/dummy/tmp/cache/assets/D8D/3A0/sprockets%2Fecd5384bfb53f02ad91442b321fa1fd4 +0 -0
- data/spec/dummy/tmp/cache/assets/D8D/420/sprockets%2F7467447671cf6b9acbb94e9fd8ff6c08 +0 -0
- data/spec/dummy/tmp/cache/assets/D8D/CF0/sprockets%2Fbdb1f63b098352e751a0beb16b4be08d +0 -0
- data/spec/dummy/tmp/cache/assets/D91/1E0/sprockets%2Fbc1a8eab372e58fd252aa253e43336de +0 -0
- data/spec/dummy/tmp/cache/assets/D93/CE0/sprockets%2Fd9b8a6bb3a8a311ce98f75da01ca3434 +0 -0
- data/spec/dummy/tmp/cache/assets/D94/C30/sprockets%2Fb7fa94e617e70031daa94006f53cceea +0 -0
- data/spec/dummy/tmp/cache/assets/D95/EC0/sprockets%2Fe145e85edd68680ed88e3f3e8f9e51f8 +0 -0
- data/spec/dummy/tmp/cache/assets/D96/090/sprockets%2Fad332c8d6e4424da09ac1e55ed0b9d65 +0 -0
- data/spec/dummy/tmp/cache/assets/D96/8A0/sprockets%2Fe0a190e3e0da0e9f68d00ec71f85a75b +0 -0
- data/spec/dummy/tmp/cache/assets/D96/E10/sprockets%2F33e5a45c911eb718fea3c6ec42a832eb +0 -0
- data/spec/dummy/tmp/cache/assets/D98/950/sprockets%2F93a3b56babd39d715f71a970cb77bbb1 +0 -0
- data/spec/dummy/tmp/cache/assets/D98/F60/sprockets%2F9ab95efc5aa0eb2460668878baa0c22d +0 -0
- data/spec/dummy/tmp/cache/assets/D99/560/sprockets%2Fbbab097d388443baa6cbfd49b33b4475 +0 -0
- data/spec/dummy/tmp/cache/assets/D99/610/sprockets%2Fdd28851baa7a8a58e4c1d3257b2a76dc +0 -0
- data/spec/dummy/tmp/cache/assets/D99/AE0/sprockets%2F3e5bc199b14be3f6d01cc980ec2c69a2 +0 -0
- data/spec/dummy/tmp/cache/assets/D9A/600/sprockets%2F17951cd6fff06d13da3f6f1b40e309ce +0 -0
- data/spec/dummy/tmp/cache/assets/D9A/EA0/sprockets%2Fc33093eedea1f8d41a3c191b94f18f6a +0 -0
- data/spec/dummy/tmp/cache/assets/D9B/BF0/sprockets%2Fe0b11f8a26c196cc9e085fdf1cb029d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D9B/C40/sprockets%2Fb56a9cad8972f42d5b1e880a18cea1c2 +0 -0
- data/spec/dummy/tmp/cache/assets/D9C/2D0/sprockets%2F091dee17d79da1264db1fabe58ab5259 +0 -0
- data/spec/dummy/tmp/cache/assets/D9C/5B0/sprockets%2Fa9e4927e3a4aeab27dd9bdc11a744934 +0 -0
- data/spec/dummy/tmp/cache/assets/D9E/410/sprockets%2F3c3eed64613c6bd970835b6ea2c1f6ce +0 -0
- data/spec/dummy/tmp/cache/assets/D9F/350/sprockets%2F6398e1e2bee52bf2783ed2b6a8f2d1c1 +0 -0
- data/spec/dummy/tmp/cache/assets/DA0/310/sprockets%2Fee7ff6d0499cd1f8952ac0f0a221dc55 +0 -0
- data/spec/dummy/tmp/cache/assets/DA2/180/sprockets%2Fbfafc9261998007eab2d57ecf0147dd5 +0 -0
- data/spec/dummy/tmp/cache/assets/DA2/510/sprockets%2Fffb4e28a83d3a3602896aaaede28149f +0 -0
- data/spec/dummy/tmp/cache/assets/DA2/E60/sprockets%2F58cc6e0c3efbde98de62aa3b07970219 +0 -0
- data/spec/dummy/tmp/cache/assets/DA2/FE0/sprockets%2Fd1c3f7352aba9ec1eee709f4764dc805 +0 -0
- data/spec/dummy/tmp/cache/assets/DA3/5F0/sprockets%2Ff1714849b6d37eb8a95079befa2ba1be +0 -0
- data/spec/dummy/tmp/cache/assets/DA4/870/sprockets%2Fe50d3fc5f7c551f0e8707bbd3ed5f761 +0 -0
- data/spec/dummy/tmp/cache/assets/DA6/F20/sprockets%2F1f52d853eac4e4ea08c9b05b7f648d8d +0 -0
- data/spec/dummy/tmp/cache/assets/DA9/390/sprockets%2Fba8d66e733696ec3fc844f23e3a8c0fb +0 -0
- data/spec/dummy/tmp/cache/assets/DA9/B00/sprockets%2F679d1c18f398cf0a6d18bea88ebb41f3 +0 -0
- data/spec/dummy/tmp/cache/assets/DAC/820/sprockets%2Fbec425c925dc8fae9187da93d25c8d81 +0 -0
- data/spec/dummy/tmp/cache/assets/DAF/670/sprockets%2Ff997be298da2fc0143b7abe6d75d8f36 +0 -0
- data/spec/dummy/tmp/cache/assets/DAF/D20/sprockets%2F97a19eb371b8ebfea86d4abd5165797d +0 -0
- data/spec/dummy/tmp/cache/assets/DAF/EB0/sprockets%2F280e1d09ef0a9f79f58d116a8dfe3df7 +0 -0
- data/spec/dummy/tmp/cache/assets/DB0/9B0/sprockets%2F6f666c02872c71ab5477e97fceaf7ade +0 -0
- data/spec/dummy/tmp/cache/assets/DB2/1E0/sprockets%2F2ed4cc57940e14d3b9bdfdc9e788e852 +0 -0
- data/spec/dummy/tmp/cache/assets/DB2/8F0/sprockets%2F406e919de63de77edf457f864c0f0fbc +0 -0
- data/spec/dummy/tmp/cache/assets/DBB/680/sprockets%2Ff15fbbc346c6414546dac4a2af74b2ba +0 -0
- data/spec/dummy/tmp/cache/assets/DBC/E30/sprockets%2Fedf6a0b56fde4bdc2a5002a27855b31e +0 -0
- data/spec/dummy/tmp/cache/assets/DBE/480/sprockets%2Ffb2e0f29761a2d3dcfa5cc33044bfb90 +0 -0
- data/spec/dummy/tmp/cache/assets/DC6/0C0/sprockets%2Fce8e75caa306b3a8bcb1c2e4623de658 +0 -0
- data/spec/dummy/tmp/cache/assets/DC6/230/sprockets%2Fd111840b917b593beadee27c2faee07e +0 -0
- data/spec/dummy/tmp/cache/assets/DC6/680/sprockets%2Fd9f1b4d0bf60ca6a1f09c8ee881e205a +0 -0
- data/spec/dummy/tmp/cache/assets/DC6/870/sprockets%2F350a15a94eda815505d7dbcdda5d59dc +0 -0
- data/spec/dummy/tmp/cache/assets/DC6/960/sprockets%2Ffead4b816a34baa067257a14bfd469ed +0 -0
- data/spec/dummy/tmp/cache/assets/DC7/930/sprockets%2F603c75dedfb626e7b0f2d1d0bfb3d790 +0 -0
- data/spec/dummy/tmp/cache/assets/DC8/C40/sprockets%2F40ead92705912acec7feedb56112ee7b +0 -0
- data/spec/dummy/tmp/cache/assets/DC9/B10/sprockets%2F3d1b2e8424e53e20f79b1fbb8bc8eaf2 +0 -0
- data/spec/dummy/tmp/cache/assets/DCB/270/sprockets%2F59626b1b2c5e74b0d6ce9abfc7ce34c2 +0 -0
- data/spec/dummy/tmp/cache/assets/DCD/350/sprockets%2Fefe1d037a6f235acf2fb648a482cc29e +0 -0
- data/spec/dummy/tmp/cache/assets/DCD/780/sprockets%2F8ea4837f3bab7d843c630d3bec62bd9a +0 -0
- data/spec/dummy/tmp/cache/assets/DCF/AB0/sprockets%2F4a57c94dc9f8ad22a5ba7e0a76b195dc +0 -0
- data/spec/dummy/tmp/cache/assets/DD1/2E0/sprockets%2Fde5b118ac7e596969a504cf7d5cabc0c +0 -0
- data/spec/dummy/tmp/cache/assets/DD2/6D0/sprockets%2F8af46a137b3db7af99c7c98ba4fe1d01 +0 -0
- data/spec/dummy/tmp/cache/assets/DD5/CA0/sprockets%2Fbb945ca5e6d777f5c4d305b0cfe66be5 +0 -0
- data/spec/dummy/tmp/cache/assets/DDA/160/sprockets%2Fe83a02feabcdb566ed2d4d996f3b9646 +0 -0
- data/spec/dummy/tmp/cache/assets/DDF/C30/sprockets%2F91731613dfffcc928fba82975adfb4ff +0 -0
- data/spec/dummy/tmp/cache/assets/DDF/CA0/sprockets%2F79e095ac769fbef92d74261db9ecaea2 +0 -0
- data/spec/dummy/tmp/cache/assets/DE2/620/sprockets%2F7efcee84eefdb62f5029662b966fe24a +0 -0
- data/spec/dummy/tmp/cache/assets/DE2/D70/sprockets%2F8849f51dedcfdc1e897a359a1d6ad5a9 +0 -0
- data/spec/dummy/tmp/cache/assets/DE3/4D0/sprockets%2F96058ff0b86ebf599b9ac53bfd88bc0c +0 -0
- data/spec/dummy/tmp/cache/assets/DE4/DA0/sprockets%2F14b1df157404b0dccba1e2fed9bab904 +0 -0
- data/spec/dummy/tmp/cache/assets/DE7/F20/sprockets%2Fe0b4544b613e6a0f72c3adfeaae55d0a +0 -0
- data/spec/dummy/tmp/cache/assets/DE8/520/sprockets%2F4ce4c3d8226a403bfea5c021acf98aba +0 -0
- data/spec/dummy/tmp/cache/assets/DEC/C60/sprockets%2Fc4f5dcbaec305c20428f1a3cab39fa85 +0 -0
- data/spec/dummy/tmp/cache/assets/DEC/E10/sprockets%2F3bd5bc2022ca2f6d42c81d9efdbea173 +0 -0
- data/spec/dummy/tmp/cache/assets/DED/450/sprockets%2Fca1b006daa72e1bebd67f0920fd92fd5 +0 -0
- data/spec/dummy/tmp/cache/assets/DF0/430/sprockets%2F4e6e49bfdcb2dff35b612b3bba2131d8 +0 -0
- data/spec/dummy/tmp/cache/assets/DF2/A00/sprockets%2Fdca5550fd00901735cb59dae8afdbd2d +0 -0
- data/spec/dummy/tmp/cache/assets/DF5/8B0/sprockets%2F6ac23ce25bde19ba520fdc64bd890a8e +0 -0
- data/spec/dummy/tmp/cache/assets/DF6/DE0/sprockets%2F490d27cff133bedabb9ddde84a2f1316 +0 -0
- data/spec/dummy/tmp/cache/assets/DF9/300/sprockets%2F3fd9c2e7afb65bbc5e74b1b60473e5ba +0 -0
- data/spec/dummy/tmp/cache/assets/DFA/5E0/sprockets%2Fd0da91a89bbf83c0f735b95dfa7d2ba1 +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/5F0/sprockets%2F0b7de140dc7f0afc2199920f8ecbfda8 +0 -0
- data/spec/dummy/tmp/cache/assets/DFC/8A0/sprockets%2Fc0affaeb55a22bcee24f78686ce138f1 +0 -0
- data/spec/dummy/tmp/cache/assets/E00/030/sprockets%2F3d20bdd129376f6c5a1afbef1fed5f97 +0 -0
- data/spec/dummy/tmp/cache/assets/E00/AC0/sprockets%2F0e39fdfc12c1c6fed9e0cb138666abf7 +0 -0
- data/spec/dummy/tmp/cache/assets/E08/7F0/sprockets%2F55b64acc3aefafc79d25671e990eec7b +0 -0
- data/spec/dummy/tmp/cache/assets/E0D/A50/sprockets%2Fdd8b5fab1dd4cd799e62585f35da49cb +0 -0
- data/spec/dummy/tmp/cache/assets/E14/3A0/sprockets%2Fac9b7cde37f5929e46ff6d9b2daa773d +0 -0
- data/spec/dummy/tmp/cache/assets/E15/450/sprockets%2F73ccebb07acba8fbdaad31f4173e4600 +0 -0
- data/spec/dummy/tmp/cache/assets/E16/D40/sprockets%2F9dfea9ec8cff54ba5abb286c91f71879 +0 -0
- data/spec/dummy/tmp/cache/assets/E20/530/sprockets%2Fa027fa4713d59f7cc060b1aaaedeeb9e +0 -0
- data/spec/dummy/tmp/cache/assets/E26/750/sprockets%2Faaa76cdb66120383db0fbaefeb659f5d +0 -0
- data/spec/dummy/tmp/cache/assets/E28/160/sprockets%2F4fc48abbb4e106d9d4a285bea7e0efd4 +0 -0
- data/spec/dummy/tmp/cache/assets/E2E/950/sprockets%2Ffd20bf9d9aaac4a84d5e38f605bff0d5 +0 -0
- data/spec/dummy/tmp/cache/assets/E2F/9F0/sprockets%2F59570fc13c52b6fbdb0aeea98eebf6f1 +0 -0
- data/spec/dummy/tmp/cache/assets/E31/5D0/sprockets%2F46cbf84ed6c51af7e031dadf896ecc0d +0 -0
- data/spec/dummy/tmp/cache/assets/E38/200/sprockets%2F25542fbbdeb80e9439fd4e8cafedb45f +0 -0
- data/spec/dummy/tmp/cache/assets/E38/AE0/sprockets%2Ffea1e8c6ea7bfb94c347ad4eec06f738 +0 -0
- data/spec/dummy/tmp/cache/assets/E39/FE0/sprockets%2F9e8ce0a11b64a68d7873cae7e9ecefab +0 -0
- data/spec/dummy/tmp/cache/assets/E77/530/sprockets%2Fbbf58cbd41a1abc2319e8cbf3da3d1af +0 -0
- data/spec/dummy/tmp/cache/assets/EBD/E20/sprockets%2Fb9cfb8a94c54abb1dfdac6fd7cea93e0 +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/accordion.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/button-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/carousel.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/close.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/code.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/component-animations.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/dropdowns.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/forms.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/grid.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/hero-unit.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/labels-badges.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/layouts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/modals.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/navs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/pager.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/popovers.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/progress-bars.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/reset.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/responsive-1200px-min.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/responsive-767px-max.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/responsive-768px-979px.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/responsive-navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/responsive-utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/responsive.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/scaffolding.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/sprites.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/tables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/thumbnails.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/tooltip.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/type.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/variables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/83beff91c6a328e38af6564bb868a6f695f56b00/wells.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/ac3a301b70655436b0c6093da0999a0fe5bfe6ce/editor.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/d13116538a2d1c1c59dcf0e4d4ccff3b2d5cf475/_mixins.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/d13116538a2d1c1c59dcf0e4d4ccff3b2d5cf475/layout.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/d13116538a2d1c1c59dcf0e4d4ccff3b2d5cf475/login.css.scssc +0 -0
- data/spec/models/page_spec.rb +17 -0
- data/spec/rule_spec.rb +129 -0
- data/spec/spec_helper.rb +61 -0
- data/spec/support/tree_macro.rb +44 -0
- data/vendor/assets/javascripts/jquery.scrollto.js +218 -0
- data/vendor/assets/javascripts/jquery.ui.nestedSortable.js +391 -0
- metadata +916 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2012 YOURNAME
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'rdoc/task'
|
9
|
+
rescue LoadError
|
10
|
+
require 'rdoc/rdoc'
|
11
|
+
require 'rake/rdoctask'
|
12
|
+
RDoc::Task = Rake::RDocTask
|
13
|
+
end
|
14
|
+
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
17
|
+
rdoc.title = 'Amalgam'
|
18
|
+
rdoc.options << '--line-numbers'
|
19
|
+
rdoc.rdoc_files.include('README.rdoc')
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
Bundler::GemHelper.install_tasks
|
27
|
+
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//= require modernizr
|
2
|
+
//= require jquery
|
3
|
+
//= require jquery.ui.core
|
4
|
+
//= require jquery.ui.widget
|
5
|
+
//= require jquery.ui.mouse
|
6
|
+
//= require jquery.ui.sortable
|
7
|
+
//= require jquery.ui.nestedSortable
|
8
|
+
//= require jquery.scrollto
|
9
|
+
//= require jquery_ujs
|
10
|
+
//= require bootstrap-dropdown
|
11
|
+
//= require bootstrap-alert
|
12
|
+
//= require bootstrap-tooltip
|
13
|
+
//= require bootstrap-button
|
14
|
+
//= require amalgam/extra
|
15
|
+
//= require_tree ./admin
|
16
|
+
|
17
|
+
Modernizr.addTest("boxsizing",function(){
|
18
|
+
return Modernizr.testAllProps("boxSizing") && (document.documentMode === undefined || document.documentMode > 7);
|
19
|
+
});
|
@@ -0,0 +1,70 @@
|
|
1
|
+
$ = window.jQuery
|
2
|
+
$win = $(window)
|
3
|
+
|
4
|
+
findOrCreate = (selector,content)->
|
5
|
+
if (el=$(selector)).length
|
6
|
+
el
|
7
|
+
else
|
8
|
+
$(content).prependTo($('body')).hide()
|
9
|
+
|
10
|
+
App =
|
11
|
+
warnning: (msg)->
|
12
|
+
@_msg("<span class=\"label label-warning\">#{msg}</span>")
|
13
|
+
success: (msg)->
|
14
|
+
@_msg("<span class=\"label label-success\">#{msg}</span>").delay(500).fadeOut ->
|
15
|
+
$(@).remove()
|
16
|
+
error: (msg)->
|
17
|
+
@_msg("<span class=\"label label-important\">#{msg}</span>").click ->
|
18
|
+
$(@).fadeOut ->
|
19
|
+
$(@).remove()
|
20
|
+
_msg: (content)->
|
21
|
+
$loader = findOrCreate('#ajax-loader','<div id="ajax-loader"></div>')
|
22
|
+
$loader.html(content);
|
23
|
+
$loader.fadeIn();
|
24
|
+
init: ->
|
25
|
+
App.rebind()
|
26
|
+
processScroll()
|
27
|
+
$win.on('scroll',processScroll)
|
28
|
+
|
29
|
+
rebind: ->
|
30
|
+
$('[rel*=tooltip]').tooltip()
|
31
|
+
|
32
|
+
$(App.init)
|
33
|
+
|
34
|
+
$(document).on 'ajax:beforeSend' , '[data-remote]' , (e,xhr)->
|
35
|
+
$el = $(e.target)
|
36
|
+
msgLoading = $el.data('loading') || 'Loading...'
|
37
|
+
msgDone = $el.data('done') || 'Done!'
|
38
|
+
msgError = $el.data('error') || 'Error!'
|
39
|
+
App.warnning(msgLoading)
|
40
|
+
xhr.done ->
|
41
|
+
App.success(msgDone)
|
42
|
+
App.rebind()
|
43
|
+
.fail ->
|
44
|
+
App.error(msgError)
|
45
|
+
|
46
|
+
#fix scroll
|
47
|
+
|
48
|
+
processScroll = () ->
|
49
|
+
scrollTop = $win.scrollTop()
|
50
|
+
$('[data-scroll=fixed]').each ->
|
51
|
+
el = $(@)
|
52
|
+
navTop = el.data('app.navtop')
|
53
|
+
if !navTop
|
54
|
+
navTop = el.offset().top - 40
|
55
|
+
el.data('app.navtop',navTop)
|
56
|
+
substitute = el.next('.substitute')
|
57
|
+
if !(substitute.length)
|
58
|
+
substitute = $('<div class="substitute"/>').insertAfter(el)
|
59
|
+
substitute.height(el.outerHeight()).hide()
|
60
|
+
isFixed = el.is('.scroll_fixed')
|
61
|
+
if scrollTop >= navTop && !isFixed
|
62
|
+
el.addClass('scroll_fixed')
|
63
|
+
substitute.show()
|
64
|
+
else if (scrollTop <= navTop && isFixed)
|
65
|
+
el.removeClass('scroll_fixed')
|
66
|
+
substitute.hide()
|
67
|
+
# console.log("#{scrollTop},#{navTop}")
|
68
|
+
|
69
|
+
|
70
|
+
window.App = App
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# = require ./app
|
2
|
+
|
3
|
+
$ = window.jQuery
|
4
|
+
|
5
|
+
class App.Popover
|
6
|
+
@template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div>'
|
7
|
+
constructor: (@bind,@options={})->
|
8
|
+
@options = $.extend({
|
9
|
+
content: @bind.data('content')
|
10
|
+
title: @bind.attr('title')
|
11
|
+
},options)
|
12
|
+
@el = $(@constructor.template).appendTo($('body')).hide()
|
13
|
+
render: ->
|
14
|
+
@el.find('.popover-title').html(@options.title)
|
15
|
+
@el.find('.popover-content').html(@options.content)
|
16
|
+
@position()
|
17
|
+
|
18
|
+
position: ->
|
19
|
+
visible = @el.is(':visible')
|
20
|
+
@el.show()
|
21
|
+
w = @el.width()
|
22
|
+
h = @el.innerHeight()
|
23
|
+
pos = $.extend {} , @bind.offset() ,{
|
24
|
+
width: @bind[0].offsetWidth
|
25
|
+
height: @bind[0].offsetHeight
|
26
|
+
}
|
27
|
+
padding = parseInt(@el.css('padding-left'))
|
28
|
+
margin = 5
|
29
|
+
$window = $(window)
|
30
|
+
$arrow = @el.find('.arrow')
|
31
|
+
view =
|
32
|
+
top: $window.scrollTop()
|
33
|
+
left: $window.scrollLeft()
|
34
|
+
width: $window.width()
|
35
|
+
height: $window.height()
|
36
|
+
@el.css({ top: 0, left: 0, display: 'block' })
|
37
|
+
@el.removeClass('top')
|
38
|
+
@el.removeClass('bottom')
|
39
|
+
tp = {}
|
40
|
+
if (pos.left + w ) <= view.left + view.width
|
41
|
+
tp.left = pos.left - padding
|
42
|
+
$arrow.css('left', pos.width/2 + padding)
|
43
|
+
else
|
44
|
+
tp.left = pos.left + pos.width - w - margin
|
45
|
+
$arrow.css('left', w - pos.width/2 - padding)
|
46
|
+
if (pos.top + pos.height + h) <= view.top + view.height
|
47
|
+
#bottom
|
48
|
+
cssClass = 'bottom'
|
49
|
+
tp.top = pos.top + pos.height - margin
|
50
|
+
else
|
51
|
+
cssClass = 'top'
|
52
|
+
tp.top = pos.top - h + margin
|
53
|
+
@el.css(tp)
|
54
|
+
@el.addClass(cssClass)
|
55
|
+
@el.hide() if !visible
|
56
|
+
@el
|
57
|
+
|
58
|
+
toggle: ->
|
59
|
+
if @el.is(':visible')
|
60
|
+
@el.fadeOut('fast')
|
61
|
+
else
|
62
|
+
@render()
|
63
|
+
@el.fadeIn('fast')
|
64
|
+
content: (content) ->
|
65
|
+
return options.content if !content
|
66
|
+
@options.content = content
|
67
|
+
@render()
|
68
|
+
title: (title) ->
|
69
|
+
return options.title if !title
|
70
|
+
@options.title = title
|
71
|
+
@render()
|
72
|
+
|
73
|
+
$.fn.popo = (options={})->
|
74
|
+
$el = $(@)
|
75
|
+
data = $el.data('app.popover')
|
76
|
+
return data if data
|
77
|
+
popover = new App.Popover($el,options)
|
78
|
+
$el.data('app.popover',popover)
|
79
|
+
return popover
|
@@ -0,0 +1,66 @@
|
|
1
|
+
$ = window.jQuery
|
2
|
+
$ ->
|
3
|
+
return unless $('.tree').length
|
4
|
+
$(document).on 'click','.tree .inner', (e)->
|
5
|
+
return unless($(e.target).is('.inner, span:not(.badge)'))
|
6
|
+
e.stopPropagation()
|
7
|
+
$(@).siblings('form').slideToggle('fast')
|
8
|
+
|
9
|
+
$tree = $('div > ol.tree')
|
10
|
+
dataPath = $tree.data('path')
|
11
|
+
msgDone = $tree.data('done')
|
12
|
+
msgError = $tree.data('error')
|
13
|
+
param = $tree.data('param')
|
14
|
+
if($tree.data('path').indexOf('?') >= 0)
|
15
|
+
dataPath = $tree.data('path').substring(0,$tree.data('path').indexOf('?'))
|
16
|
+
|
17
|
+
$('div > ol.tree').nestedSortable
|
18
|
+
helper: 'clone'
|
19
|
+
items: 'li'
|
20
|
+
opacity: .6
|
21
|
+
forcePlaceholderSize: true
|
22
|
+
placeholder: 'placeholder'
|
23
|
+
tabSize: 60
|
24
|
+
tolerance: 'pointer'
|
25
|
+
handle: '.inner'
|
26
|
+
toleranceElement: '> div'
|
27
|
+
revert: 250
|
28
|
+
update: (e,ui)->
|
29
|
+
data = {}
|
30
|
+
data["#{param}[parent_id]"] = ui.item.parents('[data-id]').data('id')
|
31
|
+
data["#{param}[prev_id]"] = ui.item.prevAll('[data-id]').data('id')
|
32
|
+
data["#{param}[next_id]"] = ui.item.nextAll('[data-id]').data('id')
|
33
|
+
$.ajax
|
34
|
+
type: 'PUT'
|
35
|
+
url: "#{dataPath}/#{ui.item.data('id')}"
|
36
|
+
data: data
|
37
|
+
dataType: 'script'
|
38
|
+
beforeSend: ->
|
39
|
+
#
|
40
|
+
success: ->
|
41
|
+
App.rebind()
|
42
|
+
App.success(msgDone || 'Updated!')
|
43
|
+
error: ->
|
44
|
+
App.error(msgError || 'Move Error!')
|
45
|
+
|
46
|
+
$(document).on 'click', '.btn-add' , (e)->
|
47
|
+
e.preventDefault()
|
48
|
+
el = $(@)
|
49
|
+
form = el.data('content')
|
50
|
+
unless form
|
51
|
+
$.ajax
|
52
|
+
url: el.attr('href')
|
53
|
+
dataType: 'html'
|
54
|
+
beforeSend: (xhr)->
|
55
|
+
xhr.setRequestHeader('Accept', 'text/javascript');
|
56
|
+
success: (data)->
|
57
|
+
el.data('content',data)
|
58
|
+
el.popo().content(data)
|
59
|
+
el.popo(content: 'Loading...')
|
60
|
+
el.popo().el.on 'click', '.btn-cancel' , (e)->
|
61
|
+
e.preventDefault()
|
62
|
+
el.trigger('click') if el.popo().el.is(':visible')
|
63
|
+
el.popo().el.on 'ajax:success','form' , ->
|
64
|
+
el.trigger('click') if el.popo().el.is(':visible')
|
65
|
+
|
66
|
+
$(@).popo().toggle()
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require_tree .
|
@@ -0,0 +1,161 @@
|
|
1
|
+
#= require jquery
|
2
|
+
#= require amalgam/mercury
|
3
|
+
#= require bootstrap-dropdown
|
4
|
+
#= require jquery.remotipart
|
5
|
+
#= require_self
|
6
|
+
|
7
|
+
$ = window.jQuery
|
8
|
+
|
9
|
+
findOrCreate = (selector,content)->
|
10
|
+
if (el=$(selector)).length
|
11
|
+
el
|
12
|
+
else
|
13
|
+
$(content).prependTo($('body')).hide()
|
14
|
+
|
15
|
+
Msg =
|
16
|
+
warnning: (msg)->
|
17
|
+
@_msg("<span class=\"label label-warning\">#{msg}</span>")
|
18
|
+
success: (msg)->
|
19
|
+
@_msg("<span class=\"label label-success\">#{msg}</span>").delay(500).fadeOut ->
|
20
|
+
$(@).remove()
|
21
|
+
error: (msg)->
|
22
|
+
@_msg("<span class=\"label label-important\">#{msg}</span>").click ->
|
23
|
+
$(@).fadeOut ->
|
24
|
+
$(@).remove()
|
25
|
+
_msg: (content)->
|
26
|
+
$loader = findOrCreate('#ajax-loader','<div id="ajax-loader"></div>')
|
27
|
+
$loader.html(content);
|
28
|
+
$loader.fadeIn();
|
29
|
+
|
30
|
+
$ = jQuery
|
31
|
+
attachments_count = 0
|
32
|
+
$ ->
|
33
|
+
@nav = $('.nav')
|
34
|
+
topMargin = @nav.height()
|
35
|
+
@editor = new Mercury.PageEditor mercury_prefix()+"/admin/editor",
|
36
|
+
saveStyle: "form"
|
37
|
+
saveMethod: "PUT"
|
38
|
+
visible: false
|
39
|
+
@editor.iframe.one 'load', ->
|
40
|
+
if window.location.hash=='#edit'
|
41
|
+
$(".nav .edit").trigger('click')
|
42
|
+
|
43
|
+
sanitize_url = (url)->
|
44
|
+
url = url.replace(Mercury.config.editorUrlRegEx, "$1/$2")
|
45
|
+
url = url.replace(/[\?|\&]mercury_frame=true/gi, '')
|
46
|
+
url.replace(/\&_=i\d+/gi, '')
|
47
|
+
|
48
|
+
$('.new_attachment').live 'click', (event) ->
|
49
|
+
event.preventDefault
|
50
|
+
target = $(event.target)
|
51
|
+
type = target.data().type
|
52
|
+
$('.attachment_list_' + target.attr('name')).append("<label for='page_描述'>描述</label><div><input id='"+type+"_attachment.description' name='[content]["+type+"s/" + target.data().modelId + ".attachments_attributes][value][" + attachments_count + "][description]' size='30' type='text'><br>
|
53
|
+
<input id='"+type+"_attachment.file' name='[content]["+type+"s/" + target.data().modelId + ".attachments_attributes][value][" + attachments_count + "][file]' type='file'>
|
54
|
+
<input id='"+type+"_attachment.name' name='[content]["+type+"s/"+ target.data().modelId + ".attachments_attributes][value][" + attachments_count + "][name]' type='hidden' value='" + $(event.target).attr('name') + "'></div>")
|
55
|
+
attachments_count++
|
56
|
+
return false
|
57
|
+
|
58
|
+
$(".nav .edit").click (e) ->
|
59
|
+
e.preventDefault()
|
60
|
+
if window.Mercury
|
61
|
+
Mercury.trigger("toggle:interface")
|
62
|
+
|
63
|
+
buttons = $('#mercury_iframe').contents().find("button.properties")
|
64
|
+
if $('.mercury-toolbar-container:hidden').length
|
65
|
+
buttons.hide()
|
66
|
+
else
|
67
|
+
buttons.show()
|
68
|
+
|
69
|
+
@editor.toolbar.show = ->
|
70
|
+
@visible = true
|
71
|
+
@element.css(top: topMargin, display: 'block')
|
72
|
+
|
73
|
+
Mercury.on "saved", =>
|
74
|
+
window.location.hash = ''
|
75
|
+
window.location.href = "#{sanitize_url(window.location.href)}#edit"
|
76
|
+
location.reload()
|
77
|
+
# => TODO 只使iframe内部刷新
|
78
|
+
# Msg.success('保存成功!')
|
79
|
+
# @editor.loadIframeSrc(null)
|
80
|
+
|
81
|
+
Mercury.on "resize", =>
|
82
|
+
if typeof(@editor.toolbar.height()) == "number"
|
83
|
+
toolbar_height = @editor.toolbar.height()
|
84
|
+
else
|
85
|
+
toolbar_height = @editor.toolbar.element.height()
|
86
|
+
@editor.iframe.css
|
87
|
+
top: toolbar_height + topMargin
|
88
|
+
height: @editor.statusbar.top() - toolbar_height - topMargin
|
89
|
+
|
90
|
+
Mercury.on 'ready', =>
|
91
|
+
$($(".mercury-panel .mercury-panel-pane")[0]).css("visibility","visible")
|
92
|
+
$('.mercury-panel-close').css("opacity", '1')
|
93
|
+
@editor.iframe.contents().find("button.properties").click () ->
|
94
|
+
getform($(this).data().url)
|
95
|
+
# TODO 使加载的页面
|
96
|
+
# $(@editor.iframe.get(0).contentWindow.document).on 'click','a', (e)->
|
97
|
+
# $target = $(e.target)
|
98
|
+
# if($target.attr('target') == '_parent' || $target.attr('target') == '_top')
|
99
|
+
# href = sanitize_url($target.attr('href'))
|
100
|
+
# if href != ''
|
101
|
+
# e.preventDefault()
|
102
|
+
# window.mercuryInstance.loadIframeSrc(href)
|
103
|
+
# if (Modernizr.history)
|
104
|
+
# history.pushState(null,null,href);
|
105
|
+
|
106
|
+
$('.mercury-editproperties-button').click (event,state) ->
|
107
|
+
if state != "button"
|
108
|
+
if $('.mercury-editproperties-button.pressed').length
|
109
|
+
$(".mercury-panel .mercury-panel-pane .content").html($('#mercury_iframe').contents().find('script#property-form').html())
|
110
|
+
|
111
|
+
$(".mercury-preview-button").click (event,state) ->
|
112
|
+
buttons = $('#mercury_iframe').contents().find("button.properties")
|
113
|
+
if $('.mercury-preview-button.pressed').length
|
114
|
+
buttons.hide()
|
115
|
+
else
|
116
|
+
buttons.show()
|
117
|
+
|
118
|
+
getform = (src) ->
|
119
|
+
$.ajax({
|
120
|
+
url: src,
|
121
|
+
type: "get",
|
122
|
+
dataType: "html",
|
123
|
+
success: (data) ->
|
124
|
+
reg = /<script id=\"property-form\" type=\"text\/html\">([\s\S]*?)<\/script>/i
|
125
|
+
result = reg.exec(data)
|
126
|
+
if result != null && result.length > 1
|
127
|
+
loadform(result[1])
|
128
|
+
})
|
129
|
+
|
130
|
+
loadform = (content=null) ->
|
131
|
+
if $('.mercury-editproperties-button.pressed').length == 0
|
132
|
+
$('.mercury-editproperties-button').trigger('click',['button'])
|
133
|
+
|
134
|
+
$(".mercury-panel .mercury-panel-pane .content").find('form').remove()
|
135
|
+
if content == null
|
136
|
+
$(".mercury-panel .mercury-panel-pane .content").append($('#properties_frame').contents().find('script.properties').html())
|
137
|
+
else
|
138
|
+
$(".mercury-panel .mercury-panel-pane .content").append(content)
|
139
|
+
|
140
|
+
|
141
|
+
fixHelper = (e, ui) ->
|
142
|
+
ui.children().each () ->
|
143
|
+
$(this).width($(this).width())
|
144
|
+
ui
|
145
|
+
|
146
|
+
# addsortable = () ->
|
147
|
+
# $('.attachmentlist tbody').sortable({
|
148
|
+
# helper: fixHelper,
|
149
|
+
# update: (event, ui) ->
|
150
|
+
# id = ui.item.attr("id")
|
151
|
+
# data = {}
|
152
|
+
# data['prev'] = ui.item.prev().attr("id") if ui.item.prev('tr').length
|
153
|
+
# data['next'] = ui.item.next().attr("id") if ui.item.next('tr').length
|
154
|
+
|
155
|
+
# $.ajax {
|
156
|
+
# url: "/admin/attachments/" + id + "/move",
|
157
|
+
# type: "POST",
|
158
|
+
# data: data,
|
159
|
+
# dataType: "html"
|
160
|
+
# }
|
161
|
+
# }).disableSelection()
|