kkt_shoppe 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +55 -0
- data/Rakefile +36 -0
- data/app/assets/images/kkt_shoppe/chosen-sprite.png +0 -0
- data/app/assets/images/kkt_shoppe/chosen-sprite@2x.png +0 -0
- data/app/assets/images/kkt_shoppe/document.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/bag.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/balance.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/box.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/building.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/chart.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/chat.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/checkbox.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/checkbox2.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/cloud.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/cone.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/credit_card.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/currency.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/edit.svg +14 -0
- data/app/assets/images/kkt_shoppe/icons/flowchart.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/gift.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/globe.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/id.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/id2.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/locked.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/report.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/search.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/support.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/tags.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/toolbox.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/unlocked.svg +1 -0
- data/app/assets/images/kkt_shoppe/icons/wallet.svg +1 -0
- data/app/assets/images/kkt_shoppe/kkt_shoppe.svg +25 -0
- data/app/assets/images/kkt_shoppe/logo.svg +47 -0
- data/app/assets/images/kkt_shoppe/move.svg +1 -0
- data/app/assets/images/kkt_shoppe/square.svg +9 -0
- data/app/assets/images/kkt_shoppe/statuses/accepted.svg +14 -0
- data/app/assets/images/kkt_shoppe/statuses/paid.svg +16 -0
- data/app/assets/images/kkt_shoppe/statuses/received.svg +15 -0
- data/app/assets/images/kkt_shoppe/statuses/rejected.svg +14 -0
- data/app/assets/images/kkt_shoppe/statuses/shipped.svg +14 -0
- data/app/assets/images/kkt_shoppe/table-tear-off.png +0 -0
- data/app/assets/javascripts/kkt_shoppe/application.coffee +123 -0
- data/app/assets/javascripts/kkt_shoppe/chosen.jquery.js +1166 -0
- data/app/assets/javascripts/kkt_shoppe/jquery_ui.js +6 -0
- data/app/assets/javascripts/kkt_shoppe/mousetrap.js +9 -0
- data/app/assets/javascripts/kkt_shoppe/order_form.coffee +47 -0
- data/app/assets/stylesheets/kkt_shoppe/application.scss +601 -0
- data/app/assets/stylesheets/kkt_shoppe/chosen.scss +424 -0
- data/app/assets/stylesheets/kkt_shoppe/dialog.scss +25 -0
- data/app/assets/stylesheets/kkt_shoppe/elements.scss +79 -0
- data/app/assets/stylesheets/kkt_shoppe/printable.scss +67 -0
- data/app/assets/stylesheets/kkt_shoppe/reset.scss +93 -0
- data/app/assets/stylesheets/kkt_shoppe/sub.scss +106 -0
- data/app/assets/stylesheets/kkt_shoppe/variables.scss +1 -0
- data/app/controllers/kkt_shoppe/addresses_controller.rb +47 -0
- data/app/controllers/kkt_shoppe/application_controller.rb +46 -0
- data/app/controllers/kkt_shoppe/attachments_controller.rb +14 -0
- data/app/controllers/kkt_shoppe/countries_controller.rb +47 -0
- data/app/controllers/kkt_shoppe/customers_controller.rb +55 -0
- data/app/controllers/kkt_shoppe/dashboard_controller.rb +9 -0
- data/app/controllers/kkt_shoppe/delivery_service_prices_controller.rb +45 -0
- data/app/controllers/kkt_shoppe/delivery_services_controller.rb +47 -0
- data/app/controllers/kkt_shoppe/orders_controller.rb +119 -0
- data/app/controllers/kkt_shoppe/payments_controller.rb +33 -0
- data/app/controllers/kkt_shoppe/product_categories_controller.rb +47 -0
- data/app/controllers/kkt_shoppe/product_category_localisations_controller.rb +58 -0
- data/app/controllers/kkt_shoppe/product_localisations_controller.rb +58 -0
- data/app/controllers/kkt_shoppe/products_controller.rb +58 -0
- data/app/controllers/kkt_shoppe/sessions_controller.rb +34 -0
- data/app/controllers/kkt_shoppe/settings_controller.rb +16 -0
- data/app/controllers/kkt_shoppe/stock_level_adjustments_controller.rb +40 -0
- data/app/controllers/kkt_shoppe/tax_rates_controller.rb +49 -0
- data/app/controllers/kkt_shoppe/users_controller.rb +53 -0
- data/app/controllers/kkt_shoppe/variants_controller.rb +50 -0
- data/app/helpers/kkt_shoppe/application_helper.rb +60 -0
- data/app/helpers/kkt_shoppe/product_category_helper.rb +36 -0
- data/app/mailers/kkt_shoppe/order_mailer.rb +25 -0
- data/app/mailers/kkt_shoppe/user_mailer.rb +10 -0
- data/app/models/kkt_shoppe/address.rb +44 -0
- data/app/models/kkt_shoppe/country.rb +27 -0
- data/app/models/kkt_shoppe/customer.rb +41 -0
- data/app/models/kkt_shoppe/delivery_service.rb +33 -0
- data/app/models/kkt_shoppe/delivery_service_price.rb +31 -0
- data/app/models/kkt_shoppe/order/actions.rb +94 -0
- data/app/models/kkt_shoppe/order/billing.rb +105 -0
- data/app/models/kkt_shoppe/order/delivery.rb +229 -0
- data/app/models/kkt_shoppe/order/states.rb +69 -0
- data/app/models/kkt_shoppe/order.rb +100 -0
- data/app/models/kkt_shoppe/order_item.rb +239 -0
- data/app/models/kkt_shoppe/payment.rb +86 -0
- data/app/models/kkt_shoppe/product/product_attributes.rb +20 -0
- data/app/models/kkt_shoppe/product/variants.rb +51 -0
- data/app/models/kkt_shoppe/product.rb +189 -0
- data/app/models/kkt_shoppe/product_attribute.rb +66 -0
- data/app/models/kkt_shoppe/product_categorization.rb +14 -0
- data/app/models/kkt_shoppe/product_category.rb +75 -0
- data/app/models/kkt_shoppe/setting.rb +68 -0
- data/app/models/kkt_shoppe/stock_level_adjustment.rb +19 -0
- data/app/models/kkt_shoppe/tax_rate.rb +46 -0
- data/app/models/kkt_shoppe/user.rb +49 -0
- data/app/validators/permalink_validator.rb +7 -0
- data/app/views/kkt_shoppe/addresses/_form.html.haml +33 -0
- data/app/views/kkt_shoppe/addresses/edit.html.haml +5 -0
- data/app/views/kkt_shoppe/addresses/new.html.haml +5 -0
- data/app/views/kkt_shoppe/countries/_form.html.haml +35 -0
- data/app/views/kkt_shoppe/countries/edit.html.haml +6 -0
- data/app/views/kkt_shoppe/countries/index.html.haml +25 -0
- data/app/views/kkt_shoppe/countries/new.html.haml +7 -0
- data/app/views/kkt_shoppe/customers/_addresses.html.haml +20 -0
- data/app/views/kkt_shoppe/customers/_form.html.haml +30 -0
- data/app/views/kkt_shoppe/customers/_search_form.html.haml +13 -0
- data/app/views/kkt_shoppe/customers/edit.html.haml +5 -0
- data/app/views/kkt_shoppe/customers/index.html.haml +32 -0
- data/app/views/kkt_shoppe/customers/new.html.haml +5 -0
- data/app/views/kkt_shoppe/customers/show.html.haml +53 -0
- data/app/views/kkt_shoppe/delivery_service_prices/_form.html.haml +44 -0
- data/app/views/kkt_shoppe/delivery_service_prices/edit.html.haml +6 -0
- data/app/views/kkt_shoppe/delivery_service_prices/index.html.haml +23 -0
- data/app/views/kkt_shoppe/delivery_service_prices/new.html.haml +6 -0
- data/app/views/kkt_shoppe/delivery_services/_form.html.haml +38 -0
- data/app/views/kkt_shoppe/delivery_services/edit.html.haml +9 -0
- data/app/views/kkt_shoppe/delivery_services/index.html.haml +27 -0
- data/app/views/kkt_shoppe/delivery_services/new.html.haml +6 -0
- data/app/views/kkt_shoppe/order_mailer/accepted.text.erb +12 -0
- data/app/views/kkt_shoppe/order_mailer/received.text.erb +9 -0
- data/app/views/kkt_shoppe/order_mailer/rejected.text.erb +10 -0
- data/app/views/kkt_shoppe/order_mailer/shipped.text.erb +16 -0
- data/app/views/kkt_shoppe/orders/_form.html.haml +58 -0
- data/app/views/kkt_shoppe/orders/_order_details.html.haml +57 -0
- data/app/views/kkt_shoppe/orders/_order_items.html.haml +38 -0
- data/app/views/kkt_shoppe/orders/_order_items_form.html.haml +61 -0
- data/app/views/kkt_shoppe/orders/_payments_form.html.haml +15 -0
- data/app/views/kkt_shoppe/orders/_payments_table.html.haml +37 -0
- data/app/views/kkt_shoppe/orders/_search_form.html.haml +24 -0
- data/app/views/kkt_shoppe/orders/_status_bar.html.haml +35 -0
- data/app/views/kkt_shoppe/orders/despatch_note.html.haml +45 -0
- data/app/views/kkt_shoppe/orders/edit.html.haml +21 -0
- data/app/views/kkt_shoppe/orders/index.html.haml +39 -0
- data/app/views/kkt_shoppe/orders/new.html.haml +14 -0
- data/app/views/kkt_shoppe/orders/show.html.haml +25 -0
- data/app/views/kkt_shoppe/payments/refund.html.haml +13 -0
- data/app/views/kkt_shoppe/product_categories/_form.html.haml +50 -0
- data/app/views/kkt_shoppe/product_categories/edit.html.haml +8 -0
- data/app/views/kkt_shoppe/product_categories/index.html.haml +27 -0
- data/app/views/kkt_shoppe/product_categories/new.html.haml +6 -0
- data/app/views/kkt_shoppe/product_category_localisations/form.html.haml +29 -0
- data/app/views/kkt_shoppe/product_category_localisations/index.html.haml +26 -0
- data/app/views/kkt_shoppe/product_localisations/form.html.haml +32 -0
- data/app/views/kkt_shoppe/product_localisations/index.html.haml +26 -0
- data/app/views/kkt_shoppe/products/_form.html.haml +118 -0
- data/app/views/kkt_shoppe/products/_table.html.haml +42 -0
- data/app/views/kkt_shoppe/products/edit.html.haml +9 -0
- data/app/views/kkt_shoppe/products/import.html.haml +67 -0
- data/app/views/kkt_shoppe/products/index.html.haml +9 -0
- data/app/views/kkt_shoppe/products/new.html.haml +7 -0
- data/app/views/kkt_shoppe/sessions/new.html.haml +12 -0
- data/app/views/kkt_shoppe/sessions/reset.html.haml +12 -0
- data/app/views/kkt_shoppe/settings/edit.html.haml +19 -0
- data/app/views/kkt_shoppe/shared/error.html.haml +6 -0
- data/app/views/kkt_shoppe/stock_level_adjustments/index.html.haml +40 -0
- data/app/views/kkt_shoppe/tax_rates/form.html.haml +28 -0
- data/app/views/kkt_shoppe/tax_rates/index.html.haml +17 -0
- data/app/views/kkt_shoppe/user_mailer/new_password.text.erb +9 -0
- data/app/views/kkt_shoppe/users/_form.html.haml +27 -0
- data/app/views/kkt_shoppe/users/edit.html.haml +5 -0
- data/app/views/kkt_shoppe/users/index.html.haml +17 -0
- data/app/views/kkt_shoppe/users/new.html.haml +7 -0
- data/app/views/kkt_shoppe/variants/form.html.haml +68 -0
- data/app/views/kkt_shoppe/variants/index.html.haml +33 -0
- data/app/views/layouts/kkt_shoppe/application.html.haml +34 -0
- data/app/views/layouts/kkt_shoppe/printable.html.haml +11 -0
- data/app/views/layouts/kkt_shoppe/sub.html.haml +10 -0
- data/config/locales/de.yml +653 -0
- data/config/locales/en.yml +744 -0
- data/config/locales/es.yml +653 -0
- data/config/locales/pl.yml +662 -0
- data/config/locales/pt-BR.yml +655 -0
- data/config/routes.rb +53 -0
- data/db/countries.txt +252 -0
- data/db/migrate/20130926094549_create_kkt_shoppe_initial_schema.rb +175 -0
- data/db/migrate/20131024201501_add_address_type_to_kkt_shoppe_tax_rates.rb +5 -0
- data/db/migrate/20131024204815_create_kkt_shoppe_payments.rb +32 -0
- data/db/migrate/20131102143930_remove_default_on_order_item_weight.rb +9 -0
- data/db/migrate/20141013192427_create_kkt_shoppe_customers.rb +14 -0
- data/db/migrate/20141026175622_add_indexes_to_kkt_shoppe_order_items.rb +6 -0
- data/db/migrate/20141026175943_add_indexes_to_kkt_shoppe_orders.rb +7 -0
- data/db/migrate/20141026180333_add_indexes_to_kkt_shoppe_payments.rb +6 -0
- data/db/migrate/20141026180835_add_indexes_to_kkt_shoppe_product_attributes.rb +7 -0
- data/db/migrate/20141026180952_add_indexes_to_kkt_shoppe_product_categories.rb +5 -0
- data/db/migrate/20141026181040_add_indexes_to_kkt_shoppe_products.rb +8 -0
- data/db/migrate/20141026181312_add_indexes_to_kkt_shoppe_settings.rb +5 -0
- data/db/migrate/20141026181354_add_indexes_to_kkt_shoppe_stock_level_adjustments.rb +6 -0
- data/db/migrate/20141026181559_add_indexes_to_kkt_shoppe_users.rb +5 -0
- data/db/migrate/20141026181716_add_indexes_to_kkt_shoppe_delivery_services.rb +9 -0
- data/db/migrate/20141026181717_allow_multiple_kkt_shoppe_products_per_shoppe_product_category.rb +46 -0
- data/db/migrate/20141026181718_add_nested_to_product_categories.rb +30 -0
- data/db/migrate/20141027215005_create_kkt_shoppe_addresses.rb +17 -0
- data/db/migrate/20150315215633_add_customer_to_kkt_shoppe_orders.rb +5 -0
- data/db/migrate/20150513171350_create_kkt_shoppe_product_category_translation_table.rb +17 -0
- data/db/migrate/20150519173350_create_kkt_shoppe_product_translation_table.rb +18 -0
- data/db/schema.rb +308 -0
- data/db/seeds.rb +137 -0
- data/db/seeds_data/poe400.jpg +0 -0
- data/db/seeds_data/snom-870-blk.jpg +0 -0
- data/db/seeds_data/snom-870-grey.jpg +0 -0
- data/db/seeds_data/snom-mm2.jpg +0 -0
- data/db/seeds_data/spa303.jpg +0 -0
- data/db/seeds_data/t18p.jpg +0 -0
- data/db/seeds_data/t20p.jpg +0 -0
- data/db/seeds_data/t22p.jpg +0 -0
- data/db/seeds_data/t26p.jpg +0 -0
- data/db/seeds_data/t41pn.jpg +0 -0
- data/db/seeds_data/t46gn.jpg +0 -0
- data/db/seeds_data/w52p.jpg +0 -0
- data/db/seeds_data/yhs32.jpg +0 -0
- data/lib/kkt_shoppe/associated_countries.rb +20 -0
- data/lib/kkt_shoppe/country_importer.rb +15 -0
- data/lib/kkt_shoppe/default_navigation.rb +21 -0
- data/lib/kkt_shoppe/engine.rb +55 -0
- data/lib/kkt_shoppe/error.rb +21 -0
- data/lib/kkt_shoppe/errors/inappropriate_delivery_service.rb +6 -0
- data/lib/kkt_shoppe/errors/insufficient_stock_to_fulfil.rb +15 -0
- data/lib/kkt_shoppe/errors/invalid_configuration.rb +6 -0
- data/lib/kkt_shoppe/errors/not_enough_stock.rb +15 -0
- data/lib/kkt_shoppe/errors/payment_declined.rb +6 -0
- data/lib/kkt_shoppe/errors/refund_failed.rb +6 -0
- data/lib/kkt_shoppe/errors/unorderable_item.rb +6 -0
- data/lib/kkt_shoppe/navigation_manager.rb +81 -0
- data/lib/kkt_shoppe/orderable_item.rb +39 -0
- data/lib/kkt_shoppe/settings.rb +26 -0
- data/lib/kkt_shoppe/settings_loader.rb +16 -0
- data/lib/kkt_shoppe/setup_generator.rb +10 -0
- data/lib/kkt_shoppe/version.rb +3 -0
- data/lib/kkt_shoppe/view_helpers.rb +16 -0
- data/lib/kkt_shoppe.rb +60 -0
- data/lib/tasks/kylekthompson_shoppe.rake +29 -0
- metadata +662 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 94ebcde7fafab4a0056f0bfb94bd521bc7e423a6
|
4
|
+
data.tar.gz: f22abc64e962d93f330496cb85be1f6e1cbc2165
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 626c73c975be9de2fb765a6e50a7f4cf1e4aba9eaaa91bf7904ab26e489226b2c997e20186a1fc7be928d93f28da1f6c62c34ed0e61e1f051444becc30976f35
|
7
|
+
data.tar.gz: b47edcb463e804147db1ca93120c1811c80df446e41ac9dfa123bfad1378ea793b0e418d664f284093b1baad4011fd73a70e89c9ff6c637ef1d6064b769f7a47
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2013 aTech Media Limited.
|
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.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# KktShoppe
|
2
|
+
|
3
|
+
KktShoppe is an Rails-based e-commerce platform which allows you to easily introduce a
|
4
|
+
catalogue-based store into your Rails 4 applications.
|
5
|
+
|
6
|
+
![GemVersion](https://badge.fury.io/rb/kkt_shoppe.png)
|
7
|
+
[![Code Climate](https://codeclimate.com/github/trykkt_shoppe/core/badges/gpa.svg)](https://codeclimate.com/github/trykkt_shoppe/core)
|
8
|
+
[![Build Status](https://travis-ci.org/trykkt_shoppe/kkt_shoppe.svg?branch=master)](https://travis-ci.org/trykkt_shoppe/kkt_shoppe)
|
9
|
+
|
10
|
+
* [Check out the website](http://trykkt_shoppe.com)
|
11
|
+
* [View the demo site](http://demo.trykkt_shoppe.com)
|
12
|
+
* [Check out the demo site source](http://github.com/trykkt_shoppe/example-store)
|
13
|
+
* [Read the release notes](https://github.com/trykkt_shoppe/core/blob/master/CHANGELOG.md)
|
14
|
+
* [Read API documentation](http://api.trykkt_shoppe.com)
|
15
|
+
|
16
|
+
## Features
|
17
|
+
|
18
|
+
* An attractive & easy to use admin interface with integrated authentication
|
19
|
+
* Full product/catalogue management
|
20
|
+
* Stock control
|
21
|
+
* Tax management
|
22
|
+
* Flexible & customisable order flow
|
23
|
+
* Delivery/shipping control, management & weight-based calculation
|
24
|
+
|
25
|
+
## Getting Started
|
26
|
+
|
27
|
+
KktShoppe provides the core framework for the store and you're responsible for creating
|
28
|
+
the storefront which your customers will use to purchase products. In addition to
|
29
|
+
creating the UI for the frontend, you are also responsible for integrating with whatever
|
30
|
+
payment gateway takes your fancy.
|
31
|
+
|
32
|
+
### Installing into a new Rails application
|
33
|
+
|
34
|
+
To get up and running with KktShoppe in a new Rails application is simple. Just follow the
|
35
|
+
instructions below and you'll be up and running in minutes.
|
36
|
+
|
37
|
+
rails new my_store
|
38
|
+
cd my_store
|
39
|
+
echo "gem 'kkt_shoppe', '~> 1.0'" >> Gemfile
|
40
|
+
bundle
|
41
|
+
rails generate kkt_shoppe:setup
|
42
|
+
rails generate nifty:attachments:migration
|
43
|
+
rails generate nifty:key_value_store:migration
|
44
|
+
rake db:migrate kkt_shoppe:setup
|
45
|
+
rails server
|
46
|
+
|
47
|
+
## Contribution
|
48
|
+
|
49
|
+
If you'd like to help with this project, please get in touch with me. The best place is on
|
50
|
+
Twitter (@adamcooke) or by e-mail to adam@atechmedia.com.
|
51
|
+
|
52
|
+
## License
|
53
|
+
|
54
|
+
KktShoppe is licenced under the MIT license. Full details can be found in the MIT-LICENSE
|
55
|
+
file in the root of the repository.
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
APP_RAKEFILE = File.expand_path("../test/app/Rakefile", __FILE__)
|
8
|
+
load 'rails/tasks/engine.rake'
|
9
|
+
|
10
|
+
Bundler::GemHelper.install_tasks
|
11
|
+
|
12
|
+
require 'rake/testtask'
|
13
|
+
Rake::TestTask.new(:test) do |t|
|
14
|
+
t.libs << 'lib'
|
15
|
+
t.libs << 'test'
|
16
|
+
t.pattern = 'test/**/*_test.rb'
|
17
|
+
t.verbose = false
|
18
|
+
end
|
19
|
+
|
20
|
+
namespace :kkt_shoppe do
|
21
|
+
desc 'Publish the release notes'
|
22
|
+
task :changelog do
|
23
|
+
system "scp -P 32032 CHANGELOG.md vdt@185.44.252.32:/app/docs/CHANGELOG.md"
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "Publish RDoc documentation from doc to api.trykkt_shoppe.com"
|
27
|
+
task :docs do
|
28
|
+
if File.exist?('Rakefile')
|
29
|
+
system "yard"
|
30
|
+
system "ssh root@vm.adamcooke.io rm -Rf /var/www/kkt_shoppe-api"
|
31
|
+
system "scp -r doc root@vm.adamcooke.io:/var/www/kkt_shoppe-api"
|
32
|
+
system "rm -Rf doc"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 16 16" xml:space="preserve" fill="#cccccc"> <path d="M 39.00,48.00L9.00,48.00 c-1.659,0.00-3.00-1.341-3.00-3.00L6.00,3.00 c0.00-1.659, 1.341-3.00, 3.00-3.00l21.00,0.00 l 12.00,12.00l0.00,33.00 C 42.00,46.659, 40.659,48.00, 39.00,48.00z M 27.00,15.00L27.00,6.00 L12.00,6.00 l0.00,36.00 l24.00,0.00 L36.00,15.00 L27.00,15.00 z" ></path></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 6,32l 20,0 c 1.104,0, 2-0.896, 2-2L 28,8 c0-1.104-0.896-2-2-2l-4.010,0 C 21.942,2.678, 19.282,0, 16,0S 10.058,2.678, 10.010,6 L 6,6 C 4.896,6, 4,6.896, 4,8l0,22 C 4,31.104, 4.896,32, 6,32z M 26,8l0,22 L 6,30 L 6,8 L 26,8 z M 16,2c 2.174,0, 3.942,1.786, 3.99,4L 12.010,6 C 12.058,3.786, 13.826,2, 16,2zM 13,12l 6,0 C 19.552,12, 20,11.552, 20,11C 20,10.448, 19.552,10, 19,10l-6,0 C 12.448,10, 12,10.448, 12,11C 12,11.552, 12.448,12, 13,12z "></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 31.698,14.286l-4.822-8.77c-0.012-0.022-0.038-0.030-0.052-0.050c-0.242-0.374-0.698-0.564-1.142-0.416 L 18,7.608L 18,5 C 18,4.448, 17.552,4, 17,4S 16,4.448, 16,5l0,3.272 L 7.65,11.050c-0.068,0.022-0.12,0.068-0.18,0.104c0,0,0,0-0.002,0 C 7.332,11.236, 7.218,11.34, 7.136,11.47c-0.010,0.014-0.028,0.020-0.038,0.036l-4.966,8.75c-0.112,0.196-0.132,0.412-0.106,0.62 C 2.020,20.918, 2,20.956, 2,21C 2,23.060, 5.11,26, 8,26s 6-2.94, 6-5c0-0.128-0.028-0.25-0.074-0.362 c0-0.004-0.002-0.008-0.002-0.012c-0.002-0.006-0.004-0.014-0.006-0.020c-0.018-0.12-0.052-0.238-0.114-0.35L 9.438,12.566L 16,10.382 L 16,27 C 16,27.552, 16.448,28, 17,28S 18,27.552, 18,27L 18,9.716 l 5.892-1.96l-3.59,6.532C 20.116,14.468, 20,14.72, 20,15 c0,2.060, 3.11,5, 6,5s 6-2.94, 6-5C 32,14.72, 31.884,14.468, 31.698,14.286z M 4.576,20l 3.392-5.974L 11.358,20L 4.576,20 z M 22.744,14 L 26,8.076L 29.256,14L 22.744,14 z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 30,4L 2,4 C 0.896,4,0,4.896,0,6l0,4 l 32,0 L 32,6 C 32,4.896, 31.104,4, 30,4z M 30,8L 2,8 L 2,6 l 28,0 L 30,8 zM 2,30c0,1.104, 0.896,2, 2,2l 24,0 c 1.104,0, 2-0.896, 2-2L 30,12 L 2,12 L 2,30 z M 4,14l 24,0 l0,16 L 4,30 L 4,14 zM 21,16l-10,0 C 10.448,16, 10,16.448, 10,17C 10,17.552, 10.448,18, 11,18l 10,0 C 21.552,18, 22,17.552, 22,17 C 22,16.448, 21.552,16, 21,16z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 20,4L 22,4L 22,6L 20,6zM 24,4L 26,4L 26,6L 24,6zM 20,8L 22,8L 22,10L 20,10zM 24,8L 26,8L 26,10L 24,10zM 20,12L 22,12L 22,14L 20,14zM 24,12L 26,12L 26,14L 24,14zM 20,16L 22,16L 22,18L 20,18zM 24,16L 26,16L 26,18L 24,18zM 20,20L 22,20L 22,22L 20,22zM 24,20L 26,20L 26,22L 24,22zM 28,0L 18,0 C 16.896,0, 16,0.896, 16,2l0,6 L 6,8 C 4.896,8, 4,8.896, 4,10l0,20 c0,1.104, 0.896,2, 2,2l 22,0 c 1.104,0, 2-0.896, 2-2L 30,2 C 30,0.896, 29.104,0, 28,0z M 12,30L 10,30 l0-4 l 2,0 L 12,30 z M 14,30l0-4 l0-2 L 12,24 L 10,24 L 8,24 l0,2 l0,4 L 6,30 L 6,10 l 10,0 l0,20 L 14,30 z M 24,30l-2,0 l0-4 l 2,0 L 24,30 z M 28,30l-2,0 l0-4 l0-2 l-2,0 l-2,0 l-2,0 l0,6 L 18,30 L 18,10 L 18,2 l 10,0 L 28,30 zM 8,12L 10,12L 10,14L 8,14zM 12,12L 14,12L 14,14L 12,14zM 8,16L 10,16L 10,18L 8,18zM 12,16L 14,16L 14,18L 12,18zM 8,20L 10,20L 10,22L 8,22zM 12,20L 14,20L 14,22L 12,22z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 16,32c 5.158,0, 9.734-2.452, 12.66-6.242L 16,16L 16,0 C 7.164,0,0,7.164,0,16S 7.164,32, 16,32z M 14,2.142L 14,16 c0,0.62, 0.288,1.206, 0.778,1.584l 10.964,8.452C 23.144,28.576, 19.686,30, 16,30c-7.72,0-14-6.28-14-14C 2,8.96, 7.224,3.116, 14,2.142zM 18.75,0.268l0,14.31 l 11.424,8.806C 31.334,21.174, 32,18.668, 32,16C 32,8.104, 26.272,1.574, 18.75,0.268z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 27.91,11.79c 0.176,0.792, 0.278,1.606, 0.278,2.442c0,6.456-5.48,11.838-12.696,12.994 c 1.526,0.616, 3.236,0.976, 5.058,0.976c 1.718,0, 3.34-0.316, 4.804-0.866c 1.854,0.632, 3.878,0.796, 5.552,0.796 c-0.87-1.044-1.474-2.068-1.906-2.968C 30.856,23.508, 32,21.314, 32,18.898C 32,16.042, 30.406,13.496, 27.91,11.79zM 1.472,25.418c 0.174,0.33, 0.516,0.536, 0.886,0.536c 0.016,0, 0.034,0, 0.048-0.002 c 1.058-0.050, 3.162-0.752, 5.39-2.166c 1.192,0.21, 3.862,0.606, 4.794,0.606c 7.034,0, 12.542-4.898, 12.542-11.152 c0-6.15-5.624-11.152-12.542-11.152S 0.052,7.088, 0.052,13.238c0,2.862, 1.26,5.628, 3.478,7.698c-0.498,1.212-1.158,2.358-1.964,3.408 C 1.328,24.652, 1.292,25.072, 1.472,25.418z M 2.052,13.238c0-5.046, 4.728-9.152, 10.542-9.152s 10.542,4.106, 10.542,9.152 c0,5.216-4.532,9.152-10.542,9.152c-0.79,0-3.934-0.458-4.798-0.64c-0.264-0.052-0.538-0.004-0.758,0.146 c-0.858,0.568-1.666,0.998-2.37,1.314c 0.382-0.718, 0.712-1.462, 0.988-2.23c 0.142-0.398, 0.020-0.842-0.304-1.11 C 3.224,18.12, 2.052,15.764, 2.052,13.238z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 26,26L 6,26 L 6,6 l 14.752,0 L 22,4L 6,4 C 4.896,4, 4,4.896, 4,6l0,20 c0,1.104, 0.896,2, 2,2l 20,0 c 1.104,0, 2-0.896, 2-2L 28,12.794 L 26,16L 26,26 zM 29.366,2.228C 29.13,2.074, 28.864,2, 28.602,2c-0.456,0-0.904,0.224-1.172,0.634L 16.558,18.318l-4.206-4.8 C 11.782,12.992, 10.898,13.026, 10.372,13.594S 9.882,15.048, 10.45,15.572l 5.056,5.77c 0.032,0.052, 0.082,0.092, 0.122,0.14l 0.128,0.146 c 0.016,0.014, 0.036,0.018, 0.052,0.032c 0.040,0.032, 0.064,0.076, 0.106,0.106c 0.086,0.056, 0.18,0.092, 0.274,0.126 c 0.022,0.008, 0.040,0.022, 0.062,0.028c 0.14,0.046, 0.286,0.074, 0.43,0.074c 0.006,0, 0.012-0.004, 0.018-0.004 c 0.38,0.002, 0.758-0.138, 1.036-0.438c 0.052-0.056, 0.072-0.124, 0.114-0.186c 0.002-0.002, 0.004-0.004, 0.006-0.006l 11.918-17.194 C 30.194,3.52, 30.014,2.652, 29.366,2.228z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 16.084,0c-8.836,0-16,7.164-16,16s 7.164,16, 16,16s 16-7.164, 16-16S 24.92,0, 16.084,0z M 16.084,30c-7.72,0-14-6.28-14-14 s 6.28-14, 14-14s 14,6.28, 14,14S 23.802,30, 16.084,30zM 23.092,9.636c-0.646-0.424-1.514-0.242-1.938,0.406L 14.402,20.36L 11.174,17.372 C 10.606,16.848, 9.72,16.882, 9.194,17.45S 8.704,18.902, 9.272,19.428l 4.462,4.128c 0.016,0.014, 0.036,0.018, 0.052,0.032 c 0.040,0.032, 0.064,0.076, 0.106,0.106c 0.060,0.040, 0.128,0.048, 0.192,0.076c 0.076,0.036, 0.15,0.070, 0.23,0.092 c 0.078,0.020, 0.154,0.030, 0.234,0.036c 0.114,0.012, 0.224,0.012, 0.336-0.004c 0.046-0.008, 0.090-0.020, 0.136-0.032 c 0.138-0.034, 0.266-0.088, 0.392-0.164c 0.022-0.014, 0.040-0.030, 0.062-0.044c 0.082-0.056, 0.17-0.098, 0.24-0.174 c 0.050-0.054, 0.072-0.124, 0.112-0.184c 0.002-0.002, 0.006-0.004, 0.006-0.006l 7.664-11.714C 23.92,10.928, 23.738,10.060, 23.092,9.636z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 26,16c-0.070,0-0.136,0.018-0.204,0.020C 25.93,15.368, 26,14.692, 26,14c0-5.522-4.478-10-10-10S 6,8.478, 6,14 c0,0.034, 0.010,0.066, 0.010,0.1C 2.618,14.584,0,17.474,0,21c0,3.524, 2.612,6.41, 6,6.9L 6,28 l 20,0 c 3.314,0, 6-2.686, 6-6S 29.314,16, 26,16z M 26,26L 6.628,26 c-0.11-0.036-0.224-0.064-0.342-0.080C 3.842,25.568, 2,23.452, 2,21c0-2.456, 1.846-4.57, 4.292-4.92 c 0.994-0.142, 1.728-0.998, 1.718-2c0-0.060-0.004-0.12-0.010-0.178C 8.054,9.534, 11.622,6, 16,6c 4.412,0, 8,3.588, 8,8 c0,0.544-0.056,1.088-0.164,1.618c-0.124,0.6, 0.036,1.224, 0.432,1.692c 0.38,0.45, 0.94,0.708, 1.528,0.708 c 0.024,0, 0.046,0, 0.070-0.002C 25.91,18.018, 26.004,18.010, 26.082,18C 28.25,18.044, 30,19.822, 30,22C 30,24.206, 28.206,26, 26,26z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 24.966,20l-0.758-2l-2.14,0 L 9.932,18 l-2.14,0 l-0.758,2L 4,28l 24,0 L 24.966,20z M 9.174,20l 13.654,0 l 2.276,6L 6.898,26 L 9.174,20zM 20.552,14l 2.14,0 l-0.758-2L 17.866,1.278C 17.568,0.508, 16.826,0, 16,0S 14.432,0.508, 14.134,1.278L 10.068,12L 9.31,14 l 2.14,0 L 20.552,14 z M 16,2l 3.792,10L 12.208,12 L 16,2zM 30.984,30L 1.016,30 C 0.454,30,0,30.424,0,30.984S 0.454,32, 1.016,32l 29.968,0 C 31.546,32, 32,31.546, 32,30.984 S 31.546,30, 30.984,30z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 30,4L 2,4 C 0.896,4,0,4.896,0,6l0,4.084 L0,14 l0,12 c0,1.104, 0.896,2, 2,2l 28,0 c 1.104,0, 2-0.896, 2-2L 32,14 L 32,10.084 L 32,6 C 32,4.896, 31.104,4, 30,4z M 30,26L 2,26 L 2,14 l 28,0 L 30,26 z M 2,10.084L 2,6 l 28,0 l0,4.084 L 2,10.084 zM 5,24l 10,0 C 15.552,24, 16,23.552, 16,23C 16,22.448, 15.552,22, 15,22l-10,0 C 4.448,22, 4,22.448, 4,23 C 4,23.552, 4.448,24, 5,24zM 18,23A1,1 1080 1 0 20,23A1,1 1080 1 0 18,23zM 22,23A1,1 1080 1 0 24,23A1,1 1080 1 0 22,23zM 26,23A1,1 1080 1 0 28,23A1,1 1080 1 0 26,23z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 17,2C 8.716,2, 2,8.716, 2,17S 8.716,32, 17,32S 32,25.284, 32,17S 25.284,2, 17,2z M 17,30 C 9.832,30, 4,24.168, 4,17S 9.832,4, 17,4S 30,9.832, 30,17S 24.168,30, 17,30zM 18.714,10C 20.526,10, 22,11.346, 22,13C 22,13.552, 22.448,14, 23,14S 24,13.552, 24,13C 24,10.242, 21.628,8, 18.714,8L 18,8 L 18,7 C 18,6.448, 17.552,6, 17,6S 16,6.448, 16,7L 16,8 L 15.286,8 C 12.372,8, 10,10.242, 10,13S 12.372,18, 15.286,18L 16,18 l0,6 L 15.286,24 C 13.474,24, 12,22.654, 12,21 C 12,20.448, 11.552,20, 11,20S 10,20.448, 10,21C 10,23.758, 12.372,26, 15.286,26L 16,26 l0,1 C 16,27.552, 16.448,28, 17,28S 18,27.552, 18,27L 18,26 l 0.714,0 C 21.628,26, 24,23.758, 24,21S 21.628,16, 18.714,16L 18,16 L 18,10 L 18.714,10 z M 18.714,18C 20.526,18, 22,19.346, 22,21S 20.526,24, 18.714,24L 18,24 L 18,18 L 18.714,18 z M 16,16 L 15.286,16 C 13.474,16, 12,14.654, 12,13S 13.474,10, 15.286,10L 16,10 L 16,16 z"></path></g></svg>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="77.999px" height="78px" viewBox="0 0 77.999 78" enable-background="new 0 0 77.999 78"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<g>
|
9
|
+
<path d="M71.807,6.191c-7.215-7.216-12.629-6.133-12.629-6.133l-25.26,25.259L5.049,54.185L0,78l23.812-5.051l28.869-28.869
|
10
|
+
l25.26-25.257C77.941,18.824,79.025,13.409,71.807,6.191z M22.395,70.086l-8.117,1.748c-0.785-1.467-1.727-2.932-3.455-4.659
|
11
|
+
c-1.727-1.727-3.193-2.669-4.658-3.456l1.75-8.116l2.346-2.348c0,0,4.418,0.088,9.404,5.078c4.988,4.987,5.078,9.407,5.078,9.407
|
12
|
+
L22.395,70.086z"/>
|
13
|
+
</g>
|
14
|
+
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 30,20L 30,16 c0-1.104-0.896-2-2-2L 18,14 L 18,10 l 6,0 c 1.104,0, 2-0.896, 2-2L 26,6 c0-1.104-0.896-2-2-2L 10,4 C 8.896,4, 8,4.896, 8,6l0,2 c0,1.104, 0.896,2, 2,2l 6,0 l0,4 L 6,14 C 4.896,14, 4,14.896, 4,16l0,4 c-1.104,0-2,0.896-2,2l0,4 c0,1.104, 0.896,2, 2,2l 2,0 c 1.104,0, 2-0.896, 2-2l0-2 l0-2 c0-1.104-0.896-2-2-2L 6,16 l 10,0 l0,4 c-1.104,0-2,0.896-2,2l0,2 l0,2 c0,1.104, 0.896,2, 2,2l 2,0 c 1.104,0, 2-0.896, 2-2l0-2 l0-2 c0-1.104-0.896-2-2-2L 18,16 l 10,0 l0,4 c-1.104,0-2,0.896-2,2l0,2 l0,2 c0,1.104, 0.896,2, 2,2l 2,0 c 1.104,0, 2-0.896, 2-2l0-4 C 32,20.896, 31.104,20, 30,20z M 10,6l 14,0 l0,2 L 10,8 L 10,6 z M 6,24l0,2 L 4,26 l0-4 l 2,0 L 6,24 z M 18,26L 16,26 l0-4 l 2,0 L 18,26 z M 28,24l0-2 l 2,0 l0,4 l-2,0 L 28,24 z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 30,8L 18.042,8 L 14,8 L 2,8 C 0.896,8,0,8.896,0,10l0,6 l 2,0 l0,14 c0,1.104, 0.896,2, 2,2l 10,0 l 4.042,0 L 28,32 c 1.104,0, 2-0.896, 2-2L 30,16 l 2,0 L 32,10 C 32,8.896, 31.104,8, 30,8z M 2,10l 12,0 l0,4 L 2,14 L 2,10 z M 4,30L 4,16 l 10,0 l0,14 L 4,30 z M 28,30L 18.042,30 L 18.042,16 L 28,16 L 28,30 z M 30,14L 18.042,14 L 18.042,10 L 30,10 L 30,14 zM 16,6c0-0.004-0.002-0.012-0.002-0.016l 0.006,0 C 16.002,5.988, 16,5.996, 16,6c0,0, 5.238,0, 8,0 c 2.762,0, 4-1.344, 4-3S 26.762,0, 24,0c-2.586,0-4.622,1.164-6,2.514C 17.396,2.156, 16.698,1.938, 15.942,1.938 c-0.724,0-1.394,0.204-1.982,0.536C 12.584,1.14, 10.56,0, 8,0C 5.238,0, 4,1.344, 4,3S 5.238,6, 8,6C 10.762,6, 16,6, 16,6z M 26,3 C 26,3.826, 24.912,4, 24,4L 19.458,4 C 19.442,3.972, 19.428,3.942, 19.412,3.916C 20.428,2.928, 21.968,2, 24,2C 24.912,2, 26,2.174, 26,3z M 6,3 C 6,2.174, 7.088,2, 8,2c 1.988,0, 3.496,0.89, 4.512,1.844C 12.48,3.894, 12.456,3.948, 12.426,4L 8,4 C 7.088,4, 6,3.826, 6,3z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 30.118,21.638c-5.446,5.444-14.308,5.448-19.754,0C 7.728,19.004, 6.278,15.496, 6.278,11.76 s 1.452-7.244, 4.084-9.876c 0.39-0.39, 0.39-1.024,0-1.414s-1.024-0.39-1.414,0C 5.936,3.48, 4.278,7.49, 4.278,11.76 s 1.66,8.282, 4.67,11.292C 11.49,25.596, 14.686,27.082, 18,27.548L 18,30 L 15,30 C 14.448,30, 14,30.448, 14,31C 14,31.552, 14.448,32, 15,32l 8,0 c 0.552,0, 1-0.448, 1-1c0-0.552-0.448-1-1-1L 20,30 l0-2.288 c 0.080,0.002, 0.16,0.012, 0.24,0.012 c 4.088,0, 8.178-1.556, 11.292-4.67c 0.39-0.39, 0.39-1.024,0-1.414S 30.508,21.248, 30.118,21.638zM 20.24,0C 13.744,0, 8.48,5.266, 8.48,11.76s 5.266,11.76, 11.76,11.76S 32,18.256, 32,11.76S 26.734,0, 20.24,0z M 20.24,21.52c-5.382,0-9.76-4.378-9.76-9.76C 10.48,6.378, 14.858,2, 20.24,2C 25.622,2, 30,6.378, 30,11.76 C 30,17.142, 25.622,21.52, 20.24,21.52z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 30,6L 2,6 C 0.896,6,0,6.896,0,8l0,18 c0,1.104, 0.896,2, 2,2l 28,0 c 1.104,0, 2-0.896, 2-2L 32,8 C 32,6.896, 31.104,6, 30,6z M 2,8 l 28,0 l0,18 L 2,26 L 2,8 zM 27.166,16L 15,16 C 14.448,16, 14,16.448, 14,17C 14,17.552, 14.448,18, 15,18l 12.166,0 c 0.552,0, 1-0.448, 1-1 C 28.166,16.448, 27.718,16, 27.166,16zM 27.166,20L 15,20 C 14.448,20, 14,20.448, 14,21C 14,21.552, 14.448,22, 15,22l 12.166,0 c 0.552,0, 1-0.448, 1-1 C 28.166,20.448, 27.718,20, 27.166,20zM 27.166,12L 15,12 C 14.448,12, 14,12.448, 14,13C 14,13.552, 14.448,14, 15,14l 12.166,0 c 0.552,0, 1-0.448, 1-1 C 28.166,12.448, 27.718,12, 27.166,12zM 5.58,12.416A2.416,2.416 0 1 0 10.412,12.416A2.416,2.416 0 1 0 5.58,12.416zM 8.048,15.798c-2.184,0-3.952,2.372-3.952,5.3S 12,24.024, 12,21.098S 10.23,15.798, 8.048,15.798z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 30,6l-10,0 l0,4 c0,1.104-0.896,2-2,2l 1,0 C 20.656,12, 22,10.656, 22,9c0-0.38-0.006-0.71-0.018-1L 30,8 l0,22 L 2,30 L 2,8 l 8.018,0 C 10.006,8.29, 10,8.62, 10,9C 10,10.656, 11.344,12, 13,12L 14,12 C 12.896,12, 12,11.104, 12,10L 12,6 L 2,6 C 0.896,6,0,6.896,0,8l0,22 c0,1.104, 0.896,2, 2,2l 28,0 c 1.104,0, 2-0.896, 2-2L 32,8 C 32,6.896, 31.104,6, 30,6zM 27.166,20L 15,20 C 14.448,20, 14,20.448, 14,21C 14,21.552, 14.448,22, 15,22l 12.166,0 c 0.552,0, 1-0.448, 1-1 C 28.166,20.448, 27.718,20, 27.166,20zM 27.166,24L 15,24 C 14.448,24, 14,24.448, 14,25C 14,25.552, 14.448,26, 15,26l 12.166,0 c 0.552,0, 1-0.448, 1-1 C 28.166,24.448, 27.718,24, 27.166,24zM 15,18l 12.166,0 c 0.552,0, 1-0.448, 1-1c0-0.552-0.448-1-1-1L 15,16 C 14.448,16, 14,16.448, 14,17 C 14,17.552, 14.448,18, 15,18zM 5.58,16.416A2.416,2.416 0 1 0 10.412,16.416A2.416,2.416 0 1 0 5.58,16.416zM 8.048,19.798c-2.184,0-3.952,2.372-3.952,5.3S 12,28.024, 12,25.098S 10.23,19.798, 8.048,19.798zM 12,10c0,1.104, 0.896,2, 2,2l 4,0 c 1.104,0, 2-0.896, 2-2L 20,6 L 20,2 c0-1.104-0.896-2-2-2L 14,0 C 12.896,0, 12,0.896, 12,2l0,4 L 12,10 z M 18,10 L 14,10 L 14,2 l 4,0 L 18,10 z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 16,0C 10.478,0, 6,4.546, 6,10.154L 6,12 L 4,12 C 2.896,12, 2,12.896, 2,14l0,16 c0,1.104, 0.896,2, 2,2l 24,0 c 1.104,0, 2-0.896, 2-2L 30,14 c0-1.104-0.896-2-2-2l-2,0 L 26,10.154 C 26,4.546, 21.522,0, 16,0z M 8,10.154C 8,5.658, 11.588,2, 16,2s 8,3.658, 8,8.154L 24,12 L 8,12 L 8,10.154 z M 28,30L 4,30 L 4,14 l 24,0 L 28,30 z M 20,22c0-2.21-1.79-4-4-4s-4,1.79-4,4s 1.79,4, 4,4S 20,24.21, 20,22z M 16,24c-1.102,0-2-0.898-2-2 s 0.898-2, 2-2s 2,0.898, 2,2S 17.102,24, 16,24z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 2,30c0,1.104, 0.896,2, 2,2l 24,0 c 1.104,0, 2-0.896, 2-2L 30,2 c0-1.104-0.896-2-2-2L 4,0 C 2.896,0, 2,0.896, 2,2L 2,30 z M 4,2 l 24,0 l0,28 L 4,30 L 4,2 zM 8,18L 12,18L 12,26L 8,26zM 14,8L 18,8L 18,26L 14,26zM 20,12L 24,12L 24,26L 20,26z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32.24800109863281" height="32.24800109863281" viewBox="0 0 32.24800109863281 32.24800109863281" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 19,0C 11.82,0, 6,5.82, 6,13c0,3.090, 1.084,5.926, 2.884,8.158l-8.592,8.592c-0.54,0.54-0.54,1.418,0,1.958 c 0.54,0.54, 1.418,0.54, 1.958,0l 8.592-8.592C 13.074,24.916, 15.91,26, 19,26c 7.18,0, 13-5.82, 13-13S 26.18,0, 19,0z M 19,24 C 12.934,24, 8,19.066, 8,13S 12.934,2, 19,2S 30,6.934, 30,13S 25.066,24, 19,24z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="35.124000549316406" height="32" viewBox="0 0 35.124000549316406 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 16,0C 11.906,0, 7.81,1.562, 4.686,4.686c-6.248,6.248-6.248,16.38,0,22.628C 7.81,30.438, 11.906,32, 16,32 s 8.19-1.562, 11.314-4.686c 6.248-6.248, 6.248-16.38,0-22.628C 24.19,1.562, 20.094,0, 16,0z M 10.344,21.656C 8.832,20.146, 8,18.136, 8,16 c0-2.136, 0.832-4.146, 2.344-5.656C 11.854,8.832, 13.864,8, 16,8s 4.146,0.832, 5.656,2.344C 23.168,11.854, 24,13.864, 24,16 c0,2.136-0.832,4.146-2.344,5.656C 20.146,23.168, 18.136,24, 16,24S 11.854,23.168, 10.344,21.656z M 22.186,3.45L 19.1,6.536 C 18.092,6.206, 17.050,6, 16,6C 15.044,6, 14.098,6.182, 13.172,6.454l-3.12-3.12C 11.892,2.472, 13.908,2, 16,2C 18.184,2, 20.284,2.51, 22.186,3.45z M 3.336,10.054l 3.12,3.12c-0.572,1.94-0.548,4, 0.080,5.928l-3.086,3.086C 2.51,20.284, 2,18.184, 2,16C 2,13.908, 2.472,11.892, 3.336,10.054z M 6.1,25.898L 6.1,25.898C 6.1,25.9, 6.1,25.9, 6.1,25.898L 6.1,25.898z M 10.294,28.778l 3.152-3.152C 14.284,25.848, 15.138,26, 16,26 c 0.956,0, 1.902-0.182, 2.828-0.456l 3.12,3.12C 20.108,29.528, 18.092,30, 16,30C 13.998,30, 12.068,29.57, 10.294,28.778z M 28.66,21.942 l-3.114-3.114c 0.518-1.758, 0.548-3.612, 0.080-5.382l 3.146-3.146C 30.418,14.002, 30.38,18.266, 28.66,21.942z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32.012001037597656" viewBox="0 0 32 32.012001037597656" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 29.080,0c-0.012,0-0.024,0-0.036,0c-0.006,0-0.012,0-0.018,0c-0.002,0-0.004,0-0.006,0 c-0.010,0-0.018,0-0.026,0c-0.004,0-0.008,0-0.012,0L 18.406,0 C 18.1,0.016, 17.404,0.494, 17.314,0.584L 4.584,13.312 c-0.78,0.78-0.78,2.044,0,2.824l 1.588,1.588L 4.584,19.312c-0.78,0.78-0.78,2.044,0,2.824l 9.292,9.292 c 0.39,0.39, 0.9,0.584, 1.412,0.584c 0.51,0, 1.022-0.194, 1.412-0.584l 12.728-12.73C 29.52,18.608, 30,17.992, 30,17.608L 30,0.994 C 30.028,0.436, 29.628,0, 29.080,0z M 28.022,17.27c-0.006,0.010-0.010,0.016-0.008,0.016c0,0,0,0,0,0l-12.724,12.73l-9.292-9.288 l 1.588-1.588l 6.29,6.29c 0.39,0.39, 0.9,0.584, 1.412,0.584c 0.51,0, 1.022-0.194, 1.412-0.584l 11.322-11.322L 28.022,17.27 z M 28.022,8l0,3.27 c-0.006,0.010-0.010,0.016-0.008,0.016l0,0c0,0,0,0,0,0l-12.724,12.73L 5.998,14.728l 12.644-12.642C 18.68,2.058, 18.726,2.028, 18.772,2 l 9.25,0 L 28.022,8 zM 24.022,4.992A1,1 1080 1 0 26.022,4.992A1,1 1080 1 0 24.022,4.992z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 30,10l-8,0 c0,1.104-0.896,2-2,2l 10,0 l0,4 l-10,0 c 1.104,0, 2,0.896, 2,2l 8,0 l0,12 L 2,30 L 2,18 l 8,0 c0-1.104, 0.896-2, 2-2L 2,16 L 2,12 l 10,0 C 10.896,12, 10,11.104, 10,10L 2,10 C 0.896,10,0,10.896,0,12l0,4 l0,2 l0,12 c0,1.104, 0.896,2, 2,2l 28,0 c 1.104,0, 2-0.896, 2-2L 32,18 L 32,16 L 32,12 C 32,10.896, 31.104,10, 30,10zM 12,12l 8,0 c 1.104,0, 2-0.896, 2-2L 22,8 c0-1.104-0.896-2-2-2L 12,6 C 10.896,6, 10,6.896, 10,8l0,2 C 10,11.104, 10.896,12, 12,12z M 12,8l 8,0 l0,2 L 12,10 L 12,8 zM 10,18l0,2 c0,1.104, 0.896,2, 2,2l 8,0 c 1.104,0, 2-0.896, 2-2L 22,18 c0-1.104-0.896-2-2-2L 12,16 C 10.896,16, 10,16.896, 10,18z M 20,20L 12,20 L 12,18 l 8,0 L 20,20 z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 30,30L 30,14 c0-1.104-0.896-2-2-2L 7.99,12 L 8,11.152C 8,5.764, 11.328,2, 16.096,2c 3.49,0, 6.6,2.006, 8.118,5.236 c 0.234,0.5, 0.828,0.714, 1.33,0.478c 0.5-0.234, 0.714-0.83, 0.478-1.33C 24.172,2.448, 20.37,0, 16.096,0C 10.246,0, 6,4.69, 6,11.14 L 5.99,12L 4,12 C 2.896,12, 2,12.896, 2,14l0,16 c0,1.104, 0.896,2, 2,2l 24,0 C 29.104,32, 30,31.104, 30,30z M 4,14l 24,0 l0,16 L 4,30 L 4,14 zM 16,18c-2.21,0-4,1.79-4,4s 1.79,4, 4,4s 4-1.79, 4-4S 18.21,18, 16,18z M 16,24c-1.102,0-2-0.898-2-2s 0.898-2, 2-2 s 2,0.898, 2,2S 17.102,24, 16,24z"></path></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="32" height="32" viewBox="0 0 32 32" enable-background="new 0 0 16 16" xml:space="preserve" fill="#000000"> <g><path d="M 30,14L 30,8 c0-1.104-0.896-2-2-2l-0.596,0 l-0.674-4.16c-0.042-0.262-0.186-0.496-0.402-0.65 c-0.212-0.156-0.48-0.222-0.744-0.176L 3.84,4.542C 3.294,4.63, 2.924,5.144, 3.014,5.69L 3.064,6L 2,6 C 0.896,6,0,6.896,0,8l0,22 c0,1.104, 0.896,2, 2,2l 26,0 c 1.104,0, 2-0.896, 2-2l0-6 c 1.104,0, 2-0.896, 2-2L 32,16 C 32,14.896, 31.104,14, 30,14z M 2,8l 26,0 l0,6 l-8,0 C 18.896,14, 18,14.896, 18,16 l0,6 c0,1.104, 0.896,2, 2,2l 8,0 l0,6 L 2,30 L 2,8 z M 7.336,6l 17.58-2.854L 25.378,6L 7.336,6 z M 20,22L 20,16 l 10,0 l0,6 L 20,22 zM 22,19A1,1 0 1 0 24,19A1,1 0 1 0 22,19z"></path></g></svg>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="360.246px" height="79.421px" viewBox="0 0 360.246 79.421" enable-background="new 0 0 360.246 79.421"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<g>
|
9
|
+
<path fill="#FFFFFF" d="M57.64,56.541c0,12.21-8.14,22.88-25.52,22.88c-12.76,0-25.19-5.83-32.12-10.89l9.02-14.74
|
10
|
+
c5.72,3.63,15.95,8.14,21.67,8.14c3.19,0,5.72-1.43,5.72-4.399c0-5.391-8.91-6.82-19.58-12.65c-7.26-4.07-15.51-10.34-15.51-22.33
|
11
|
+
C1.32,10.23,9.68,0,26.95,0C37.73,0,48.51,4.07,56.1,8.36l-9.13,15.07c-5.17-2.75-13.42-5.94-18.48-5.94
|
12
|
+
c-3.3,0-5.94,1.32-5.94,4.291c0,5.39,9.35,6.93,19.36,12.319C48.73,37.951,57.64,44.001,57.64,56.541z"/>
|
13
|
+
<path fill="#FFFFFF" d="M98.229,46.531H80.41v31.68h-20.13v-77h20.13v27.83h17.82V1.211h20.02v77h-20.02V46.531z"/>
|
14
|
+
<path fill="#FFFFFF" d="M188.099,39.711c0,22.33-9.021,39.71-33.22,39.71c-24.2,0-33.22-17.38-33.22-39.71S130.678,0,154.878,0
|
15
|
+
C179.078,0,188.099,17.381,188.099,39.711z M167.528,39.711c0-12.76-3.08-21.78-12.65-21.78c-9.57,0-12.65,9.021-12.65,21.78
|
16
|
+
c0,12.869,3.08,21.779,12.65,21.779C164.448,61.49,167.528,52.58,167.528,39.711z"/>
|
17
|
+
<path fill="#FFFFFF" d="M219.007,52.691h-7.479v25.52h-20.13v-77h27.609c21.23,0,29.591,9.68,29.591,25.85
|
18
|
+
C248.598,43.121,240.237,52.691,219.007,52.691z M218.348,18.591h-6.82v16.94h6.82c5.72,0,10.01-1.541,10.01-8.471
|
19
|
+
S224.067,18.591,218.348,18.591z"/>
|
20
|
+
<path fill="#FFFFFF" d="M278.516,52.691h-7.479v25.52h-20.13v-77h27.609c21.23,0,29.591,9.68,29.591,25.85
|
21
|
+
C308.106,43.121,299.746,52.691,278.516,52.691z M277.856,18.591h-6.82v16.94h6.82c5.72,0,10.01-1.541,10.01-8.471
|
22
|
+
S283.576,18.591,277.856,18.591z"/>
|
23
|
+
<path fill="#FFFFFF" d="M310.416,78.211v-77h49.39v17.82h-29.26v11.989h23.65V48.4h-23.65v11.99h29.7v17.82H310.416z"/>
|
24
|
+
</g>
|
25
|
+
</svg>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="305.552px" height="226px" viewBox="0 0 305.552 226" enable-background="new 0 0 305.552 226"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<g>
|
9
|
+
<g>
|
10
|
+
<defs>
|
11
|
+
<path id="SVGID_1_" d="M182.757,201.905C163.547,216.998,139.325,226,113,226C50.592,226,0,175.408,0,113
|
12
|
+
C0,50.592,50.592,0,113,0c49.205,0,91.064,31.449,106.574,75.344c-32.834,9.341-56.854,39.258-56.854,74.72
|
13
|
+
C162.72,169.981,170.297,188.149,182.757,201.905L182.757,201.905L182.757,201.905z M79.685,121.92
|
14
|
+
c8.328,7.994,18.286,11.991,29.873,11.991c6.88,0,10.32-1.658,10.32-4.974c0-1.59-1.788-2.805-5.364-3.645
|
15
|
+
c-3.576-0.84-7.887-1.726-12.933-2.657c-5.047-0.931-10.093-2.282-15.14-4.054c-5.047-1.771-9.358-4.883-12.934-9.334
|
16
|
+
c-3.576-4.451-5.363-10.083-5.363-16.896c0-7.449,2.716-14.035,8.147-19.758c5.431-5.723,13.013-9.22,22.744-10.492V48.816
|
17
|
+
h17.788v13.422c11.406,1.59,21.137,5.678,29.194,12.264l-15.004,19.962c-8.057-6.132-17.154-9.198-27.293-9.198
|
18
|
+
c-4.707,0-7.061,1.385-7.061,4.156c0,1.499,1.754,2.714,5.262,3.645c3.508,0.931,7.796,1.908,12.866,2.93
|
19
|
+
c5.069,1.022,10.15,2.419,15.242,4.19c5.092,1.771,9.403,4.792,12.934,9.061c3.53,4.27,5.296,9.606,5.296,16.011
|
20
|
+
c0,8.948-2.761,16.17-8.283,21.665c-5.522,5.496-13.239,8.88-23.151,10.151v12.877H99.034v-12.877
|
21
|
+
c-13.714-1.317-25.03-6.064-33.946-14.239L79.685,121.92L79.685,121.92z M79.685,121.92"/>
|
22
|
+
</defs>
|
23
|
+
<use xlink:href="#SVGID_1_" overflow="visible" fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF"/>
|
24
|
+
<clipPath id="SVGID_2_">
|
25
|
+
<use xlink:href="#SVGID_1_" overflow="visible"/>
|
26
|
+
</clipPath>
|
27
|
+
</g>
|
28
|
+
<g>
|
29
|
+
<defs>
|
30
|
+
<path id="SVGID_3_" d="M240.464,213.344c35.947,0,65.088-28.736,65.088-64.184c0-35.448-29.141-64.184-65.088-64.184
|
31
|
+
c-35.947,0-65.088,28.736-65.088,64.184C175.376,184.608,204.517,213.344,240.464,213.344L240.464,213.344z M226.701,156.083
|
32
|
+
c4.526,4.415,9.938,6.622,16.235,6.622c3.739,0,5.609-0.916,5.609-2.747c0-0.878-0.972-1.549-2.915-2.013
|
33
|
+
c-1.943-0.464-4.286-0.953-7.029-1.467c-2.743-0.514-5.486-1.26-8.228-2.239c-2.743-0.978-5.086-2.696-7.029-5.155
|
34
|
+
c-1.943-2.458-2.915-5.568-2.915-9.331c0-4.114,1.476-7.751,4.428-10.911c2.952-3.161,7.072-5.092,12.361-5.794v-7.337h9.667
|
35
|
+
v7.412c6.199,0.878,11.488,3.135,15.866,6.772l-8.154,11.024c-4.379-3.386-9.323-5.079-14.833-5.079
|
36
|
+
c-2.558,0-3.837,0.765-3.837,2.295c0,0.828,0.953,1.499,2.86,2.013c1.906,0.514,4.237,1.053,6.992,1.618
|
37
|
+
c2.755,0.564,5.516,1.336,8.284,2.314c2.767,0.978,5.11,2.646,7.029,5.004c1.919,2.358,2.878,5.305,2.878,8.842
|
38
|
+
c0,4.941-1.5,8.929-4.502,11.965c-3.001,3.035-7.195,4.904-12.582,5.606v7.111h-9.667v-7.111
|
39
|
+
c-7.453-0.727-13.603-3.349-18.449-7.863L226.701,156.083L226.701,156.083z M226.701,156.083"/>
|
40
|
+
</defs>
|
41
|
+
<use xlink:href="#SVGID_3_" overflow="visible" fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF"/>
|
42
|
+
<clipPath id="SVGID_4_">
|
43
|
+
<use xlink:href="#SVGID_3_" overflow="visible"/>
|
44
|
+
</clipPath>
|
45
|
+
</g>
|
46
|
+
</g>
|
47
|
+
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="16" height="16.001001358032227" viewBox="0 0 16 16.001001358032227" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000"><g><path d="M 9.14,15.859c 0.098,0.098, 0.227,0.147, 0.355,0.146c 0.129,0, 0.257-0.048, 0.355-0.146l 1.926-1.926 c 0.195-0.195, 0.195-0.512,0-0.707s-0.512-0.195-0.707,0L 10,14.295l0-8.79 c0-0.276-0.224-0.5-0.5-0.5S 9,5.229, 9,5.505l0,8.8 l-1.152-1.152c-0.195-0.195-0.512-0.195-0.707,0c-0.195,0.195-0.195,0.512,0,0.707L 9.14,15.859zM 6.5,11.005c 0.276,0, 0.5-0.224, 0.5-0.5l0-8.8 l 1.152,1.152c 0.195,0.195, 0.512,0.195, 0.707,0 c 0.195-0.195, 0.195-0.512,0-0.707L 6.86,0.151C 6.762,0.053, 6.634,0.005, 6.505,0.005c-0.129,0-0.257,0.048-0.355,0.146L 4.224,2.077 c-0.195,0.195-0.195,0.512,0,0.707c 0.195,0.195, 0.512,0.195, 0.707,0L 6,1.715l0,8.79 C 6,10.781, 6.224,11.005, 6.5,11.005z"></path></g></svg>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="231.959px" height="231.959px" viewBox="0 0 231.959 231.959" enable-background="new 0 0 231.959 231.959"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<rect x="0" y="0" fill="#e7ebf2" width="231.959" height="231.959"/>
|
9
|
+
</svg>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="502.062px" height="502.062px" viewBox="0 0 502.062 502.062" enable-background="new 0 0 502.062 502.062"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<circle fill="#89BD2F" cx="251.031" cy="251.031" r="251.031"/>
|
9
|
+
<path fill="#FFFFFF" d="M290.908,204.098c-1.73-4.668,46.487-47.731,18.359-82.624c-6.586-8.166-28.908,39.069-60.613,60.457
|
10
|
+
c-17.491,11.799-58.189,36.913-58.189,50.787v89.833c0,16.705,64.531,34.376,113.588,34.376c17.96,0,44.007-112.618,44.007-130.509
|
11
|
+
C348.06,208.461,292.639,208.767,290.908,204.098z M177.333,205.347c-8.636,0-39.399,5.253-39.399,40.997v63.667
|
12
|
+
c0,35.746,30.762,39.686,39.399,39.686c8.632,0-13.133-7.521-13.133-29.672V236.33C164.2,213.106,185.965,205.347,177.333,205.347z"
|
13
|
+
/>
|
14
|
+
</svg>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="502.062px" height="502.062px" viewBox="0 0 502.062 502.062" enable-background="new 0 0 502.062 502.062"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<circle fill="#3DB3E2" cx="251.031" cy="251.031" r="251.031"/>
|
9
|
+
<path fill="#FFFFFF" d="M363.856,156.309H134.931c-15.739,0-28.616,12.877-28.616,28.616v143.078
|
10
|
+
c0,15.739,12.877,28.616,28.616,28.616h228.925c15.739,0,28.616-12.877,28.616-28.616V184.924
|
11
|
+
C392.471,169.186,379.594,156.309,363.856,156.309z M363.856,328.002H134.931v-85.847h228.925V328.002z M363.856,199.232H134.931
|
12
|
+
v-14.308h228.925V199.232z M163.546,272.202v8.585h8.585v-8.585H163.546z M215.054,289.371v8.585h17.169v-8.585h8.585v-8.585h8.585
|
13
|
+
v-8.585h-17.169v8.585h-8.585v8.585H215.054z M249.393,297.956v-8.585h-8.585v8.585H249.393z M206.47,297.956v-8.585H189.3v8.585
|
14
|
+
H206.47z M215.054,280.787h8.585v-8.585H206.47v17.169h8.585V280.787z M180.716,289.371h8.585v-8.585h8.585v-8.585h-17.169v8.585
|
15
|
+
h-8.585v8.585h-8.585v8.585h17.169V289.371z"/>
|
16
|
+
</svg>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="502.062px" height="502.062px" viewBox="0 0 502.062 502.062" enable-background="new 0 0 502.062 502.062"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<circle fill="#909091" cx="251.031" cy="251.031" r="251.031"/>
|
9
|
+
<path fill="#FFFFFF" d="M402.991,237.719c-6.284-6.68-36.621-36.416-50.491-49.992c-4.249-4.15-10.342-6.795-16.707-6.795
|
10
|
+
c-6.366,0-82.509,0-82.509,0s-76.144,0-82.509,0c-6.365,0-12.458,2.644-16.707,6.795c-13.871,13.576-44.207,43.312-50.491,49.992
|
11
|
+
c-7.84,8.336-12.142,14.99-10.094,23.232l8.992,49.276c2.041,8.239,11.071,14.983,20.064,14.983H384.03
|
12
|
+
c8.992,0,18.022-6.744,20.064-14.983l8.992-49.276C415.134,252.709,410.832,246.055,402.991,237.719z M318.175,248.402
|
13
|
+
c-1.628,0-3.106,0.825-3.839,2.129l-13.097,32.624h-95.91l-13.097-32.624c-0.733-1.304-2.21-2.129-3.839-2.129h-56.819l32.71-37.011
|
14
|
+
h177.999l32.71,37.011H318.175z"/>
|
15
|
+
</svg>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="502.062px" height="502.062px" viewBox="0 0 502.062 502.062" enable-background="new 0 0 502.062 502.062"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<circle fill="#E6311C" cx="251.031" cy="251.031" r="251.031"/>
|
9
|
+
<path fill="#FFFFFF" d="M202.229,293.308c1.851,4.994-49.731,51.061-19.64,88.389c7.045,8.736,30.925-41.795,64.842-64.676
|
10
|
+
c18.711-12.622,62.249-39.489,62.249-54.331v-96.101c0-17.87-69.033-36.775-121.513-36.775c-19.213,0-47.077,120.476-47.077,139.616
|
11
|
+
C141.089,288.64,200.377,288.312,202.229,293.308z M323.729,291.971c9.239,0,42.148-5.62,42.148-43.857v-68.11
|
12
|
+
c0-38.24-32.909-42.455-42.148-42.455c-9.236,0,14.049,8.045,14.049,31.742v89.535C337.778,283.671,314.492,291.971,323.729,291.971
|
13
|
+
z"/>
|
14
|
+
</svg>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
|
2
|
+
<svg version="1.1"
|
3
|
+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
4
|
+
x="0px" y="0px" width="502.062px" height="502.062px" viewBox="0 0 502.062 502.062" enable-background="new 0 0 502.062 502.062"
|
5
|
+
xml:space="preserve">
|
6
|
+
<defs>
|
7
|
+
</defs>
|
8
|
+
<circle fill="#E32479" cx="251.031" cy="251.031" r="251.031"/>
|
9
|
+
<g>
|
10
|
+
<path fill="#FFFFFF" d="M203.353,389.855h29.961l67.227-119.842h77.339c0,0,44.941,0,44.941-20.972s-44.941-20.972-44.941-20.972
|
11
|
+
H300.54l-67.227-119.842h-29.961l37.266,119.842h-53.733l-33.711-29.961h-29.961l23.968,50.933l-23.968,50.933h29.961
|
12
|
+
l33.711-29.961h53.733L203.353,389.855z"/>
|
13
|
+
</g>
|
14
|
+
</svg>
|
Binary file
|
@@ -0,0 +1,123 @@
|
|
1
|
+
#= require jquery
|
2
|
+
#= require jquery_ujs
|
3
|
+
#= require kkt_shoppe/mousetrap
|
4
|
+
#= require kkt_shoppe/jquery_ui
|
5
|
+
#= require kkt_shoppe/chosen.jquery
|
6
|
+
#= require nifty/dialog
|
7
|
+
#= require_tree .
|
8
|
+
|
9
|
+
$ ->
|
10
|
+
# Automatically focus all fields with the 'focus' class
|
11
|
+
$('input.focus').focus()
|
12
|
+
|
13
|
+
# When clicking the order search button, toggle the form
|
14
|
+
$('a[rel=searchOrders]').on 'click', ->
|
15
|
+
$('div.orderSearch').toggle()
|
16
|
+
|
17
|
+
# When clicking the customer search button, toggle the form
|
18
|
+
$('a[rel=searchCustomers]').on 'click', ->
|
19
|
+
$('div.customerSearch').toggle()
|
20
|
+
|
21
|
+
# Add a new attribute to a table
|
22
|
+
$('a[data-behavior=addAttributeToAttributesTable]').on 'click', ->
|
23
|
+
table = $('table.productAttributes')
|
24
|
+
if $('tbody tr', table).length == 1 || $('tbody tr:last td:first input', table).val().length > 0
|
25
|
+
template = $('tr.template', table).html()
|
26
|
+
table.append("<tr>#{template}</tr>")
|
27
|
+
false
|
28
|
+
|
29
|
+
# Remove an attribute from a table
|
30
|
+
$('table.productAttributes tbody').on 'click', 'tr td.remove a', ->
|
31
|
+
$(this).parents('tr').remove()
|
32
|
+
false
|
33
|
+
|
34
|
+
# Sorting on the product attribtues table
|
35
|
+
$('table.productAttributes tbody').sortable
|
36
|
+
axis: 'y'
|
37
|
+
handle: '.handle'
|
38
|
+
cursor: 'move',
|
39
|
+
helper: (e,tr)->
|
40
|
+
originals = tr.children()
|
41
|
+
helper = tr.clone()
|
42
|
+
helper.children().each (index)->
|
43
|
+
$(this).width(originals.eq(index).width())
|
44
|
+
helper
|
45
|
+
|
46
|
+
# Chosen
|
47
|
+
$('select.chosen').chosen()
|
48
|
+
$('select.chosen-with-deselect').chosen({allow_single_deselect: true})
|
49
|
+
$('select.chosen-basic').chosen({disable_search_threshold:100})
|
50
|
+
|
51
|
+
# Printables
|
52
|
+
$('a[rel=print]').on 'click', ->
|
53
|
+
window.open($(this).attr('href'), 'despatchnote', 'width=700,height=800')
|
54
|
+
false
|
55
|
+
|
56
|
+
# Close dialog
|
57
|
+
$('body').on 'click', 'a[rel=closeDialog]', Nifty.Dialog.closeTopDialog
|
58
|
+
|
59
|
+
# Open AJAX dialogs
|
60
|
+
$('a[rel=dialog]').on 'click', ->
|
61
|
+
element = $(this)
|
62
|
+
options = {}
|
63
|
+
options.width = element.data('dialog-width') if element.data('dialog-width')
|
64
|
+
options.offset = element.data('dialog-offset') if element.data('dialog-offset')
|
65
|
+
options.behavior = element.data('dialog-behavior') if element.data('dialog-behavior')
|
66
|
+
options.id = 'ajax'
|
67
|
+
options.url = element.attr('href')
|
68
|
+
Nifty.Dialog.open(options)
|
69
|
+
false
|
70
|
+
|
71
|
+
# Format money values to 2 decimal places
|
72
|
+
$('div.moneyInput input').each formatMoneyField
|
73
|
+
$('body').on('blur', 'div.moneyInput input', formatMoneyField)
|
74
|
+
|
75
|
+
#
|
76
|
+
# Format money values to 2 decimal places
|
77
|
+
#
|
78
|
+
window.formatMoneyField = ->
|
79
|
+
value = $(this).val().replace /,/, ""
|
80
|
+
$(this).val(parseFloat(value).toFixed(2)) if value.length
|
81
|
+
|
82
|
+
#
|
83
|
+
# Stock Level Adjustment dialog beavior
|
84
|
+
#
|
85
|
+
Nifty.Dialog.addBehavior
|
86
|
+
name: 'stockLevelAdjustments'
|
87
|
+
onLoad: (dialog,options)->
|
88
|
+
$('input[type=text]:first', dialog).focus()
|
89
|
+
$(dialog).on 'submit', 'form', ->
|
90
|
+
form = $(this)
|
91
|
+
$.ajax
|
92
|
+
url: form.attr('action')
|
93
|
+
method: 'POST'
|
94
|
+
data: form.serialize()
|
95
|
+
dataType: 'text'
|
96
|
+
success: (data)->
|
97
|
+
$('div.table', dialog).replaceWith(data)
|
98
|
+
$('input[type=text]:first', dialog).focus()
|
99
|
+
error: (xhr)->
|
100
|
+
if xhr.status == 422
|
101
|
+
alert xhr.responseText
|
102
|
+
else
|
103
|
+
alert 'An error occurred while saving the stock level.'
|
104
|
+
false
|
105
|
+
$(dialog).on 'click', 'nav.pagination a', ->
|
106
|
+
$.ajax
|
107
|
+
url: $(this).attr('href')
|
108
|
+
success: (data)->
|
109
|
+
$('div.table', dialog).replaceWith(data)
|
110
|
+
false
|
111
|
+
|
112
|
+
#
|
113
|
+
# Always fire keyboard shortcuts when focused on fields
|
114
|
+
#
|
115
|
+
Mousetrap.stopCallback = -> false
|
116
|
+
|
117
|
+
#
|
118
|
+
# Close dialogs on escape
|
119
|
+
#
|
120
|
+
Mousetrap.bind 'escape', ->
|
121
|
+
Nifty.Dialog.closeTopDialog()
|
122
|
+
false
|
123
|
+
|