This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # for each file in site/public/ dir, link it to the main /public dir so it can be edited directly. | |
| # | |
| # This script should be run AFTER the server is started, not before. | |
| # | |
| # | |
| for FILE in vendor/extensions/site/public/[jsi]**/*; do | |
| DIR=${FILE%/*} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysqldump -u $DB_USER -p$DB_PASS --compact --compatible=ansi --default-character-set=binary $DB_NAME | \ | |
| grep -v ' KEY "' | \ | |
| grep -v ' UNIQUE KEY "' | \ | |
| grep -v ' PRIMARY KEY ' | \ | |
| grep -ve '^SET ' | \ | |
| sed 's/ UNSIGNED / /g' | \ | |
| sed 's/ auto_increment/ primary key autoincrement/g' | \ | |
| sed 's/ smallint([0-9]*) / integer /g' | \ | |
| sed 's/ tinyint([0-9]*) / integer /g' | \ | |
| sed 's/ int([0-9]*) / integer /g' | \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% flash[:notice] = nil %> | |
| $("li.cart-indicator").html('<%= link_to_cart %>'); | |
| alert('<%= t("item_added_to_cart") %>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Spree::Site::OrdersController | |
| def self.included(target) | |
| target.class_eval do | |
| create.wants.js | |
| create.failure.wants.js { render :js => "alert('#{format_js_error}')" } | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Spree::DropdownVariantsByOption::OrdersController | |
| JS_ESCAPE_MAP = { '\\' => '\\\\', '</' => '<\/', "\r\n" => '\n', "\n" => '\n', "\r" => '\n', '"' => '\\"', "'" => "\\'" } | |
| def self.included(target) | |
| target.class_eval do | |
| create.before << :add_variants_from_option_values | |
| create.rescues ActiveRecord::RecordNotFound | |
| create.wants.js | |
| create.failure.wants.js { render :js => "alert('#{format_js_error}')" } |
NewerOlder