rails_marketplace 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.rdoc +2 -2
- data/Rakefile +37 -37
- data/app/assets/javascripts/rails_marketplace/application.js +46 -46
- data/app/assets/javascripts/rails_marketplace/catalog.coffee +3 -3
- data/app/assets/javascripts/rails_marketplace/flash.js +6 -6
- data/app/assets/javascripts/rails_marketplace/footermanifest.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/autocomplete/countries.js +266 -266
- data/app/assets/javascripts/rails_marketplace/js/autocomplete/jquery.autocomplete.js +986 -986
- data/app/assets/javascripts/rails_marketplace/js/bootstrap.min.js +6 -6
- data/app/assets/javascripts/rails_marketplace/js/calendar/fullcalendar.min.js +8 -8
- data/app/assets/javascripts/rails_marketplace/js/chartjs/chart.min.js +13 -13
- data/app/assets/javascripts/rails_marketplace/js/colorpicker/bootstrap-colorpicker.min.js +1087 -1087
- data/app/assets/javascripts/rails_marketplace/js/colorpicker/docs.js +17 -17
- data/app/assets/javascripts/rails_marketplace/js/cropping/cropper.min.js +9 -9
- data/app/assets/javascripts/rails_marketplace/js/cropping/main.js +321 -321
- data/app/assets/javascripts/rails_marketplace/js/cropping/main2.js +160 -160
- data/app/assets/javascripts/rails_marketplace/js/custom.js +379 -379
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.bootstrap.min.css +1 -1
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.bootstrap.min.js +6 -6
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.html5.min.js +22 -22
- data/app/assets/javascripts/rails_marketplace/js/datatables/buttons.print.min.js +4 -4
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.bootstrap.js +8 -8
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.buttons.min.js +36 -36
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.fixedHeader.min.js +17 -17
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.keyTable.min.js +18 -18
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.responsive.min.js +25 -25
- data/app/assets/javascripts/rails_marketplace/js/datatables/dataTables.scroller.min.js +26 -26
- data/app/assets/javascripts/rails_marketplace/js/datatables/fixedHeader.bootstrap.min.css +1 -1
- data/app/assets/javascripts/rails_marketplace/js/datatables/jquery.dataTables.min.css +333 -333
- data/app/assets/javascripts/rails_marketplace/js/datatables/jquery.dataTables.min.js +166 -166
- data/app/assets/javascripts/rails_marketplace/js/datatables/json/scroller-demo.json +2501 -2501
- data/app/assets/javascripts/rails_marketplace/js/datatables/jszip.min.js +14 -14
- data/app/assets/javascripts/rails_marketplace/js/datatables/pdfmake.min.js +21 -21
- data/app/assets/javascripts/rails_marketplace/js/datatables/responsive.bootstrap.min.css +1 -1
- data/app/assets/javascripts/rails_marketplace/js/datatables/responsive.bootstrap.min.js +7 -7
- data/app/assets/javascripts/rails_marketplace/js/datatables/scroller.bootstrap.min.css +1 -1
- data/app/assets/javascripts/rails_marketplace/js/dropzone/dropzone.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/easypie/jquery.easypiechart.min.js +9 -9
- data/app/assets/javascripts/rails_marketplace/js/echart/echarts-all.js +35 -35
- data/app/assets/javascripts/rails_marketplace/js/echart/green.js +212 -212
- data/app/assets/javascripts/rails_marketplace/js/editor/bootstrap-wysiwyg.js +200 -200
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-apollo.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-basic.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-clj.js +18 -18
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-css.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-dart.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-erlang.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-go.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-hs.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-lisp.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-llvm.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-lua.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-matlab.js +6 -6
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-ml.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-mumps.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-n.js +4 -4
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-pascal.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-proto.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-r.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-rd.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-scala.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-sql.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-tcl.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-tex.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-vb.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-vhdl.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-wiki.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-xq.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/lang-yaml.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/prettify.js +30 -30
- data/app/assets/javascripts/rails_marketplace/js/editor/external/google-code-prettify/run_prettify.js +34 -34
- data/app/assets/javascripts/rails_marketplace/js/editor/external/jquery.hotkeys.js +99 -99
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.orderBars.js +200 -200
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.pie.js +820 -820
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.resize.js +57 -57
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.stack.js +188 -188
- data/app/assets/javascripts/rails_marketplace/js/flot/jquery.flot.tooltip.min.js +11 -11
- data/app/assets/javascripts/rails_marketplace/js/gauge/gauge.min.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/gauge/gauge_demo.js +21 -21
- data/app/assets/javascripts/rails_marketplace/js/icheck/icheck.min.js +11 -11
- data/app/assets/javascripts/rails_marketplace/js/input_mask/jquery.inputmask.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/jquery.min.js +5 -5
- data/app/assets/javascripts/rails_marketplace/js/maps/gdp-data.js +184 -184
- data/app/assets/javascripts/rails_marketplace/js/maps/jquery-jvectormap-2.0.3.min.js +2 -2
- data/app/assets/javascripts/rails_marketplace/js/moment/moment.min.js +6 -6
- data/app/assets/javascripts/rails_marketplace/js/moris/example.js +127 -127
- data/app/assets/javascripts/rails_marketplace/js/moris/morris.min.js +7 -7
- data/app/assets/javascripts/rails_marketplace/js/moris/raphael-min.js +11 -11
- data/app/assets/javascripts/rails_marketplace/js/notify/pnotify.buttons.js +132 -132
- data/app/assets/javascripts/rails_marketplace/js/notify/pnotify.nonblock.js +151 -151
- data/app/assets/javascripts/rails_marketplace/js/nprogress.js +476 -476
- data/app/assets/javascripts/rails_marketplace/js/pace/pace.min.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/parsley/parsley.min.js +8 -8
- data/app/assets/javascripts/rails_marketplace/js/progressbar/bootstrap-progressbar.min.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/select/select2.full.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/sidebar/classie.js +80 -80
- data/app/assets/javascripts/rails_marketplace/js/sidebar/component.css +569 -569
- data/app/assets/javascripts/rails_marketplace/js/sidebar/modernizr.custom.js +3 -3
- data/app/assets/javascripts/rails_marketplace/js/sidebar/sidebarEffects.js +62 -62
- data/app/assets/javascripts/rails_marketplace/js/skycons/skycons.min.js +1 -1
- data/app/assets/javascripts/rails_marketplace/js/sparkline/jquery.sparkline.min.js +4 -4
- data/app/assets/javascripts/rails_marketplace/js/textarea/autosize.min.js +5 -5
- data/app/assets/javascripts/rails_marketplace/less/custom.css +6355 -6355
- data/app/assets/javascripts/rails_marketplace/marketplace.js +17 -17
- data/app/assets/javascripts/rails_marketplace/welcome.coffee +3 -3
- data/app/assets/stylesheets/rails_marketplace/application.scss +30 -30
- data/app/assets/stylesheets/rails_marketplace/catalog.scss +131 -131
- data/app/assets/stylesheets/rails_marketplace/css/animate.min.css +11 -11
- data/app/assets/stylesheets/rails_marketplace/css/bootstrap.min.css +5 -5
- data/app/assets/stylesheets/rails_marketplace/css/calendar/fullcalendar.css +1116 -1116
- data/app/assets/stylesheets/rails_marketplace/css/calendar/fullcalendar.min.css +4 -4
- data/app/assets/stylesheets/rails_marketplace/css/calendar/fullcalendar.print.css +208 -208
- data/app/assets/stylesheets/rails_marketplace/css/colorpicker/bootstrap-colorpicker.min.css +8 -8
- data/app/assets/stylesheets/rails_marketplace/css/custom.css +5347 -5347
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/demo_page.css +103 -103
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/demo_table.css +258 -258
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/demo_table_jui.css +500 -500
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/jquery.dataTables.css +221 -221
- data/app/assets/stylesheets/rails_marketplace/css/datatables/css/jquery.dataTables_themeroller.css +244 -244
- data/app/assets/stylesheets/rails_marketplace/css/datatables/tools/css/dataTables.tableTools.css +336 -336
- data/app/assets/stylesheets/rails_marketplace/css/editor/index.css +42 -42
- data/app/assets/stylesheets/rails_marketplace/css/floatexamples.css +21 -21
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/_all.css +529 -529
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/aero.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/blue.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/flat.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/green.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/grey.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/orange.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/pink.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/purple.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/red.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/icheck/flat/yellow.css +52 -52
- data/app/assets/stylesheets/rails_marketplace/css/ion.rangeSlider.css +146 -146
- data/app/assets/stylesheets/rails_marketplace/css/ion.rangeSlider.skinFlat.css +106 -106
- data/app/assets/stylesheets/rails_marketplace/css/maps/jquery-jvectormap-2.0.3.css +135 -135
- data/app/assets/stylesheets/rails_marketplace/css/normalize.css +421 -421
- data/app/assets/stylesheets/rails_marketplace/css/nprogress.css +74 -74
- data/app/assets/stylesheets/rails_marketplace/css/progressbar/bootstrap-progressbar-3.3.0.css +161 -161
- data/app/assets/stylesheets/rails_marketplace/css/select/select2.min.css +403 -403
- data/app/assets/stylesheets/rails_marketplace/fonts/css/font-awesome.css +2086 -2086
- data/app/assets/stylesheets/rails_marketplace/fonts/css/font-awesome.min.css +4 -4
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/FontAwesome.otf +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.svg +654 -654
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.svg +287 -287
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/stylesheets/rails_marketplace/fonts/less/animated.less +34 -34
- data/app/assets/stylesheets/rails_marketplace/fonts/less/bordered-pulled.less +25 -25
- data/app/assets/stylesheets/rails_marketplace/fonts/less/core.less +12 -12
- data/app/assets/stylesheets/rails_marketplace/fonts/less/fixed-width.less +6 -6
- data/app/assets/stylesheets/rails_marketplace/fonts/less/font-awesome.less +17 -17
- data/app/assets/stylesheets/rails_marketplace/fonts/less/icons.less +697 -697
- data/app/assets/stylesheets/rails_marketplace/fonts/less/larger.less +13 -13
- data/app/assets/stylesheets/rails_marketplace/fonts/less/list.less +19 -19
- data/app/assets/stylesheets/rails_marketplace/fonts/less/mixins.less +26 -26
- data/app/assets/stylesheets/rails_marketplace/fonts/less/path.less +15 -15
- data/app/assets/stylesheets/rails_marketplace/fonts/less/rotated-flipped.less +20 -20
- data/app/assets/stylesheets/rails_marketplace/fonts/less/spinning.less +29 -29
- data/app/assets/stylesheets/rails_marketplace/fonts/less/stacked.less +20 -20
- data/app/assets/stylesheets/rails_marketplace/fonts/less/variables.less +708 -708
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_animated.scss +34 -34
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_bordered-pulled.scss +25 -25
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_core.scss +12 -12
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_fixed-width.scss +6 -6
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_icons.scss +697 -697
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_larger.scss +13 -13
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_list.scss +19 -19
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_mixins.scss +26 -26
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_path.scss +15 -15
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_rotated-flipped.scss +20 -20
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_spinning.scss +29 -29
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_stacked.scss +20 -20
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/_variables.scss +708 -708
- data/app/assets/stylesheets/rails_marketplace/fonts/scss/font-awesome.scss +17 -17
- data/app/assets/stylesheets/rails_marketplace/images/loading.gif +0 -0
- data/app/assets/stylesheets/rails_marketplace/marketplace.scss +19 -19
- data/app/assets/stylesheets/rails_marketplace/pace.css +76 -76
- data/app/assets/stylesheets/rails_marketplace/welcome.scss +3 -3
- data/app/assets/stylesheets/scaffold.css +56 -56
- data/app/controllers/rails_marketplace/admin_controller.rb +150 -150
- data/app/controllers/rails_marketplace/application_controller.rb +4 -4
- data/app/controllers/rails_marketplace/catalog_controller.rb +171 -171
- data/app/controllers/rails_marketplace/seller_controller.rb +180 -180
- data/app/helpers/rails_marketplace/admin_helper.rb +16 -16
- data/app/helpers/rails_marketplace/application_helper.rb +4 -4
- data/app/helpers/rails_marketplace/catalog_helper.rb +4 -4
- data/app/helpers/rails_marketplace/plainpage_helper.rb +4 -4
- data/app/helpers/rails_marketplace/seller_helper.rb +15 -15
- data/app/models/rails_marketplace/admin.rb +9 -9
- data/app/models/rails_marketplace/admin_setting.rb +13 -13
- data/app/models/rails_marketplace/cart.rb +48 -48
- data/app/models/rails_marketplace/cart_product.rb +6 -6
- data/app/models/rails_marketplace/category.rb +21 -21
- data/app/models/rails_marketplace/category_product.rb +5 -5
- data/app/models/rails_marketplace/customer.rb +5 -5
- data/app/models/rails_marketplace/order.rb +21 -21
- data/app/models/rails_marketplace/order_product.rb +6 -6
- data/app/models/rails_marketplace/product.rb +33 -33
- data/app/models/rails_marketplace/seller.rb +12 -12
- data/app/models/rails_marketplace/seller_setting.rb +5 -5
- data/app/views/layouts/rails_marketplace/application.html.erb +37 -37
- data/app/views/layouts/rails_marketplace/seller_central.html.erb +58 -58
- data/app/views/layouts/rails_marketplace/super_admin.html.erb +58 -58
- data/app/views/rails_marketplace/admin/add_category.html.erb +63 -63
- data/app/views/rails_marketplace/admin/categories.html.erb +50 -50
- data/app/views/rails_marketplace/admin/category_products.html.erb +54 -54
- data/app/views/rails_marketplace/admin/dashboard.html.erb +49 -49
- data/app/views/rails_marketplace/admin/edit_category.html.erb +63 -63
- data/app/views/rails_marketplace/admin/login_form.html.erb +19 -19
- data/app/views/rails_marketplace/admin/products.html.erb +54 -54
- data/app/views/rails_marketplace/admin/seller_products.html.erb +54 -54
- data/app/views/rails_marketplace/admin/sellers.html.erb +48 -48
- data/app/views/rails_marketplace/admin/settings_form.html.erb +38 -38
- data/app/views/rails_marketplace/admin/signup_form.html.erb +24 -24
- data/app/views/rails_marketplace/catalog/cart.html.erb +80 -80
- data/app/views/rails_marketplace/catalog/category_products.html.erb +52 -52
- data/app/views/rails_marketplace/catalog/checkout.html.erb +207 -207
- data/app/views/rails_marketplace/catalog/checkout_success.html.erb +14 -14
- data/app/views/rails_marketplace/catalog/index.html.erb +0 -0
- data/app/views/rails_marketplace/catalog/product_detail.html.erb +87 -87
- data/app/views/rails_marketplace/partials/_admin_sidenav.html.erb +80 -80
- data/app/views/rails_marketplace/partials/_admin_topnav.html.erb +111 -111
- data/app/views/rails_marketplace/partials/_footer.html.erb +19 -19
- data/app/views/rails_marketplace/partials/_menu.html.erb +41 -41
- data/app/views/rails_marketplace/partials/_sidenav.html.erb +77 -77
- data/app/views/rails_marketplace/partials/_topnav.html.erb +105 -105
- data/app/views/rails_marketplace/seller/add_bulk_products.html.erb +0 -0
- data/app/views/rails_marketplace/seller/add_product.html.erb +66 -66
- data/app/views/rails_marketplace/seller/dashboard.html.erb +50 -50
- data/app/views/rails_marketplace/seller/edit_product.html.erb +68 -68
- data/app/views/rails_marketplace/seller/login_form.html.erb +36 -36
- data/app/views/rails_marketplace/seller/order_details.html.erb +69 -69
- data/app/views/rails_marketplace/seller/orders.html.erb +68 -68
- data/app/views/rails_marketplace/seller/products.html.erb +55 -55
- data/app/views/rails_marketplace/seller/settings_general.html.erb +64 -64
- data/app/views/rails_marketplace/seller/settings_payment.html.erb +34 -34
- data/app/views/rails_marketplace/seller/settings_shipping.html.erb +34 -34
- data/app/views/rails_marketplace/seller/settings_tax.html.erb +34 -34
- data/app/views/rails_marketplace/seller/signup_form.html.erb +27 -27
- data/app/views/rails_marketplace/seller/step_two.html.erb +16 -16
- data/app/views/rails_marketplace/shared/_admin_error_messages.html.erb +11 -11
- data/app/views/rails_marketplace/shared/_product_error_messages.html.erb +11 -11
- data/app/views/rails_marketplace/shared/_seller_error_messages.html.erb +11 -11
- data/config/routes.rb +58 -58
- data/db/migrate/20161013194852_create_sellers.rb +13 -13
- data/db/migrate/20161013195006_create_customers.rb +13 -13
- data/db/migrate/20161013195758_create_orders.rb +8 -8
- data/db/migrate/20161014013032_create_category_products.rb +10 -10
- data/db/migrate/20161014013058_create_order_products.rb +13 -13
- data/db/migrate/20161017185755_create_admins.rb +12 -12
- data/db/migrate/20161017232347_create_products.rb +14 -14
- data/db/migrate/20161019012043_add_reference_product_seller.rb +5 -5
- data/db/migrate/20161019013502_change_data_type_images_files.rb +6 -6
- data/db/migrate/20161019022020_add_reference_order_customers.rb +5 -5
- data/db/migrate/20161109191644_create_categories.rb +15 -15
- data/db/migrate/20161110021043_create_friendly_id_slugs.rb +15 -15
- data/db/migrate/20161110021131_add_slug_to_category.rb +6 -6
- data/db/migrate/20161110024118_add_slug_to_product.rb +6 -6
- data/db/migrate/20161111001446_create_carts.rb +8 -8
- data/db/migrate/20161111004451_create_cart_products.rb +12 -12
- data/db/migrate/20161115013956_add_currency_format_to_price.rb +6 -6
- data/db/migrate/20161115015227_monetize_product.rb +5 -5
- data/db/migrate/20161115032905_add_stripe_key_to_admin.rb +6 -6
- data/db/migrate/20161124015608_add_order_fields.rb +16 -16
- data/db/migrate/20161207193917_add_seller_to_orders.rb +6 -6
- data/db/migrate/20161208012601_add_price_to_cart_products.rb +6 -6
- data/db/migrate/20161208013402_add_money_to_cart_products.rb +6 -6
- data/db/migrate/20170217183953_create_seller_settings.rb +29 -29
- data/db/migrate/20170218003202_create_admin_settings.rb +24 -24
- data/db/migrate/20170224230449_create_stripe_managed_accounts.rb +9 -9
- data/db/migrate/20170224233736_add_stripe_to_admin_settings.rb +9 -9
- data/db/migrate/20170224235259_add_id_to_settings.rb +6 -6
- data/db/migrate/20170225002939_delete_stripe_accounts.rb +8 -8
- data/db/migrate/20170225003252_add_stripe_account_id_to_seller_settings.rb +5 -5
- data/lib/rails_marketplace.rb +4 -4
- data/lib/rails_marketplace/engine.rb +9 -9
- data/lib/rails_marketplace/version.rb +3 -3
- data/lib/tasks/rails_marketplace_tasks.rake +4 -4
- data/spec/controllers/rails_marketplace/catalog_controller_spec.rb +75 -75
- data/spec/dummy/README.rdoc +28 -28
- data/spec/dummy/Rakefile +6 -6
- data/spec/dummy/app/assets/javascripts/application.js +13 -13
- data/spec/dummy/app/assets/stylesheets/application.css +15 -15
- data/spec/dummy/app/controllers/application_controller.rb +5 -5
- data/spec/dummy/app/helpers/application_helper.rb +2 -2
- data/spec/dummy/app/views/layouts/application.html.erb +14 -14
- data/spec/dummy/bin/bundle +3 -3
- data/spec/dummy/bin/rails +4 -4
- data/spec/dummy/bin/rake +4 -4
- data/spec/dummy/bin/setup +29 -29
- data/spec/dummy/config.ru +4 -4
- data/spec/dummy/config/application.rb +32 -32
- data/spec/dummy/config/boot.rb +5 -5
- data/spec/dummy/config/database.yml +25 -25
- data/spec/dummy/config/environment.rb +5 -5
- data/spec/dummy/config/environments/development.rb +41 -41
- data/spec/dummy/config/environments/production.rb +79 -79
- data/spec/dummy/config/environments/test.rb +42 -42
- data/spec/dummy/config/initializers/assets.rb +11 -11
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -3
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/spec/dummy/config/initializers/inflections.rb +16 -16
- data/spec/dummy/config/initializers/mime_types.rb +4 -4
- data/spec/dummy/config/initializers/session_store.rb +3 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/spec/dummy/config/locales/en.yml +23 -23
- data/spec/dummy/config/routes.rb +4 -4
- data/spec/dummy/config/secrets.yml +22 -22
- data/spec/dummy/db/schema.rb +194 -194
- data/spec/dummy/log/development.log +889 -889
- data/spec/dummy/log/test.log +1229 -1229
- data/spec/dummy/public/404.html +67 -67
- data/spec/dummy/public/422.html +67 -67
- data/spec/dummy/public/500.html +66 -66
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/rails_marketplace/catalog_helper_spec.rb +17 -17
- data/spec/routing/rails_marketplace/catalog_routing_spec.rb +44 -44
- data/spec/spec_helper.rb +44 -44
- data/spec/views/rails_marketplace/catalog/edit.html.erb_spec.rb +15 -15
- data/spec/views/rails_marketplace/catalog/index.html.erb_spec.rb +15 -15
- data/spec/views/rails_marketplace/catalog/new.html.erb_spec.rb +15 -15
- data/spec/views/rails_marketplace/catalog/show.html.erb_spec.rb +12 -12
- metadata +37 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 966fd883086c3425c8cddb316bd94626e6b7445d88d0e8fe6e955a9fd9c84dab
|
4
|
+
data.tar.gz: e96e42795b3fcefc2f0be39707805f6a5beead04895c3fad18ed2b1e5e6b0946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 501bfd451ebf89034b38f16160e244b00ae8b1897c0ef4be8cf01d1c8cafc5d781c0942edfbfd3dd82d923fd8a4e69a1186fdb41c2ccb9af615d7bebc3f15305
|
7
|
+
data.tar.gz: 298c123c2adc604e989a367fc462a63670bebffb8f588e42d621b12a82abe98d495b1d8e6222ac9247501da2745658c5aa7df9d7f754a41eece3967f325889b0
|
data/MIT-LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright 2017 Josh Yan
|
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.
|
1
|
+
Copyright 2017 Josh Yan
|
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
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
= RailsMarketplace
|
2
|
-
|
1
|
+
= RailsMarketplace
|
2
|
+
|
3
3
|
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
CHANGED
@@ -1,37 +1,37 @@
|
|
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
|
-
require 'rdoc/task'
|
8
|
-
|
9
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
11
|
-
rdoc.title = 'RailsMarketplace'
|
12
|
-
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.rdoc')
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
-
end
|
16
|
-
|
17
|
-
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
18
|
-
load 'rails/tasks/engine.rake'
|
19
|
-
|
20
|
-
|
21
|
-
load 'rails/tasks/statistics.rake'
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
Bundler::GemHelper.install_tasks
|
26
|
-
|
27
|
-
require 'rake/testtask'
|
28
|
-
|
29
|
-
Rake::TestTask.new(:test) do |t|
|
30
|
-
t.libs << 'lib'
|
31
|
-
t.libs << 'test'
|
32
|
-
t.pattern = 'test/**/*_test.rb'
|
33
|
-
t.verbose = false
|
34
|
-
end
|
35
|
-
|
36
|
-
|
37
|
-
task default: :test
|
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
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'RailsMarketplace'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Bundler::GemHelper.install_tasks
|
26
|
+
|
27
|
+
require 'rake/testtask'
|
28
|
+
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
30
|
+
t.libs << 'lib'
|
31
|
+
t.libs << 'test'
|
32
|
+
t.pattern = 'test/**/*_test.rb'
|
33
|
+
t.verbose = false
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
task default: :test
|
@@ -1,46 +1,46 @@
|
|
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 any plugin's vendor/assets/javascripts directory 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
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require bootstrap-sprockets
|
15
|
-
|
16
|
-
//= require jquery_ujs
|
17
|
-
//= require turbolinks
|
18
|
-
|
19
|
-
//= require rails_marketplace/js/flot/jquery.flot.js
|
20
|
-
//= require rails_marketplace/js/flot/jquery.flot.pie.js
|
21
|
-
//= require rails_marketplace/js/flot/jquery.flot.orderBars.js
|
22
|
-
//= require rails_marketplace/js/flot/jquery.flot.time.min.js
|
23
|
-
//= require rails_marketplace/js/flot/date.js
|
24
|
-
//= require rails_marketplace/js/flot/jquery.flot.spline.js
|
25
|
-
//= require rails_marketplace/js/flot/jquery.flot.stack.js
|
26
|
-
//= require rails_marketplace/js/flot/curvedLines.js
|
27
|
-
//= require rails_marketplace/js/flot/jquery.flot.resize.js
|
28
|
-
|
29
|
-
//= require rails_marketplace/js/progressbar/bootstrap-progressbar.min.js
|
30
|
-
|
31
|
-
//= require rails_marketplace/js/icheck/icheck.min.js
|
32
|
-
|
33
|
-
//= require rails_marketplace/js/moment/moment.min.js
|
34
|
-
//= require rails_marketplace/js/datepicker/daterangepicker.js
|
35
|
-
|
36
|
-
//= require rails_marketplace/js/chartjs/chart.min.js
|
37
|
-
|
38
|
-
//= require rails_marketplace/js/pace/pace.min.js
|
39
|
-
|
40
|
-
//= require rails_marketplace/js/nprogress.js
|
41
|
-
|
42
|
-
//= require rails_marketplace/flash.js
|
43
|
-
|
44
|
-
//= require bootstrap-wysihtml5
|
45
|
-
|
46
|
-
|
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 any plugin's vendor/assets/javascripts directory 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
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require bootstrap-sprockets
|
15
|
+
|
16
|
+
//= require jquery_ujs
|
17
|
+
//= require turbolinks
|
18
|
+
|
19
|
+
//= require rails_marketplace/js/flot/jquery.flot.js
|
20
|
+
//= require rails_marketplace/js/flot/jquery.flot.pie.js
|
21
|
+
//= require rails_marketplace/js/flot/jquery.flot.orderBars.js
|
22
|
+
//= require rails_marketplace/js/flot/jquery.flot.time.min.js
|
23
|
+
//= require rails_marketplace/js/flot/date.js
|
24
|
+
//= require rails_marketplace/js/flot/jquery.flot.spline.js
|
25
|
+
//= require rails_marketplace/js/flot/jquery.flot.stack.js
|
26
|
+
//= require rails_marketplace/js/flot/curvedLines.js
|
27
|
+
//= require rails_marketplace/js/flot/jquery.flot.resize.js
|
28
|
+
|
29
|
+
//= require rails_marketplace/js/progressbar/bootstrap-progressbar.min.js
|
30
|
+
|
31
|
+
//= require rails_marketplace/js/icheck/icheck.min.js
|
32
|
+
|
33
|
+
//= require rails_marketplace/js/moment/moment.min.js
|
34
|
+
//= require rails_marketplace/js/datepicker/daterangepicker.js
|
35
|
+
|
36
|
+
//= require rails_marketplace/js/chartjs/chart.min.js
|
37
|
+
|
38
|
+
//= require rails_marketplace/js/pace/pace.min.js
|
39
|
+
|
40
|
+
//= require rails_marketplace/js/nprogress.js
|
41
|
+
|
42
|
+
//= require rails_marketplace/flash.js
|
43
|
+
|
44
|
+
//= require bootstrap-wysihtml5
|
45
|
+
|
46
|
+
|
@@ -1,3 +1,3 @@
|
|
1
|
-
# Place all the behaviors and hooks related to the matching controller here.
|
2
|
-
# All this logic will automatically be available in application.js.
|
3
|
-
# You can use CoffeeScript in this file: http://coffeescript.org/
|
1
|
+
# Place all the behaviors and hooks related to the matching controller here.
|
2
|
+
# All this logic will automatically be available in application.js.
|
3
|
+
# You can use CoffeeScript in this file: http://coffeescript.org/
|
@@ -1,6 +1,6 @@
|
|
1
|
-
$(function() {
|
2
|
-
$('#flash').delay(500).fadeIn('normal', function() {
|
3
|
-
$(this).delay(2500).fadeOut();
|
4
|
-
});
|
5
|
-
});
|
6
|
-
|
1
|
+
$(function() {
|
2
|
+
$('#flash').delay(500).fadeIn('normal', function() {
|
3
|
+
$(this).delay(2500).fadeOut();
|
4
|
+
});
|
5
|
+
});
|
6
|
+
|
@@ -1 +1 @@
|
|
1
|
-
//= require rails_marketplace/js/custom.js
|
1
|
+
//= require rails_marketplace/js/custom.js
|
@@ -1,267 +1,267 @@
|
|
1
|
-
var countries = {
|
2
|
-
"AD": "Andorra",
|
3
|
-
"A2": "Andorra Test",
|
4
|
-
"AE": "United Arab Emirates",
|
5
|
-
"AF": "Afghanistan",
|
6
|
-
"AG": "Antigua and Barbuda",
|
7
|
-
"AI": "Anguilla",
|
8
|
-
"AL": "Albania",
|
9
|
-
"AM": "Armenia",
|
10
|
-
"AN": "Netherlands Antilles",
|
11
|
-
"AO": "Angola",
|
12
|
-
"AQ": "Antarctica",
|
13
|
-
"AR": "Argentina",
|
14
|
-
"AS": "American Samoa",
|
15
|
-
"AT": "Austria",
|
16
|
-
"AU": "Australia",
|
17
|
-
"AW": "Aruba",
|
18
|
-
"AX": "\u00c5land Islands",
|
19
|
-
"AZ": "Azerbaijan",
|
20
|
-
"BA": "Bosnia and Herzegovina",
|
21
|
-
"BB": "Barbados",
|
22
|
-
"BD": "Bangladesh",
|
23
|
-
"BE": "Belgium",
|
24
|
-
"BF": "Burkina Faso",
|
25
|
-
"BG": "Bulgaria",
|
26
|
-
"BH": "Bahrain",
|
27
|
-
"BI": "Burundi",
|
28
|
-
"BJ": "Benin",
|
29
|
-
"BL": "Saint Barth\u00e9lemy",
|
30
|
-
"BM": "Bermuda",
|
31
|
-
"BN": "Brunei",
|
32
|
-
"BO": "Bolivia",
|
33
|
-
"BQ": "British Antarctic Territory",
|
34
|
-
"BR": "Brazil",
|
35
|
-
"BS": "Bahamas",
|
36
|
-
"BT": "Bhutan",
|
37
|
-
"BV": "Bouvet Island",
|
38
|
-
"BW": "Botswana",
|
39
|
-
"BY": "Belarus",
|
40
|
-
"BZ": "Belize",
|
41
|
-
"CA": "Canada",
|
42
|
-
"CC": "Cocos [Keeling] Islands",
|
43
|
-
"CD": "Congo - Kinshasa",
|
44
|
-
"CF": "Central African Republic",
|
45
|
-
"CG": "Congo - Brazzaville",
|
46
|
-
"CH": "Switzerland",
|
47
|
-
"CI": "C\u00f4te d\u2019Ivoire",
|
48
|
-
"CK": "Cook Islands",
|
49
|
-
"CL": "Chile",
|
50
|
-
"CM": "Cameroon",
|
51
|
-
"CN": "China",
|
52
|
-
"CO": "Colombia",
|
53
|
-
"CR": "Costa Rica",
|
54
|
-
"CS": "Serbia and Montenegro",
|
55
|
-
"CT": "Canton and Enderbury Islands",
|
56
|
-
"CU": "Cuba",
|
57
|
-
"CV": "Cape Verde",
|
58
|
-
"CX": "Christmas Island",
|
59
|
-
"CY": "Cyprus",
|
60
|
-
"CZ": "Czech Republic",
|
61
|
-
"DD": "East Germany",
|
62
|
-
"DE": "Germany",
|
63
|
-
"DJ": "Djibouti",
|
64
|
-
"DK": "Denmark",
|
65
|
-
"DM": "Dominica",
|
66
|
-
"DO": "Dominican Republic",
|
67
|
-
"DZ": "Algeria",
|
68
|
-
"EC": "Ecuador",
|
69
|
-
"EE": "Estonia",
|
70
|
-
"EG": "Egypt",
|
71
|
-
"EH": "Western Sahara",
|
72
|
-
"ER": "Eritrea",
|
73
|
-
"ES": "Spain",
|
74
|
-
"ET": "Ethiopia",
|
75
|
-
"FI": "Finland",
|
76
|
-
"FJ": "Fiji",
|
77
|
-
"FK": "Falkland Islands",
|
78
|
-
"FM": "Micronesia",
|
79
|
-
"FO": "Faroe Islands",
|
80
|
-
"FQ": "French Southern and Antarctic Territories",
|
81
|
-
"FR": "France",
|
82
|
-
"FX": "Metropolitan France",
|
83
|
-
"GA": "Gabon",
|
84
|
-
"GB": "United Kingdom",
|
85
|
-
"GD": "Grenada",
|
86
|
-
"GE": "Georgia",
|
87
|
-
"GF": "French Guiana",
|
88
|
-
"GG": "Guernsey",
|
89
|
-
"GH": "Ghana",
|
90
|
-
"GI": "Gibraltar",
|
91
|
-
"GL": "Greenland",
|
92
|
-
"GM": "Gambia",
|
93
|
-
"GN": "Guinea",
|
94
|
-
"GP": "Guadeloupe",
|
95
|
-
"GQ": "Equatorial Guinea",
|
96
|
-
"GR": "Greece",
|
97
|
-
"GS": "South Georgia and the South Sandwich Islands",
|
98
|
-
"GT": "Guatemala",
|
99
|
-
"GU": "Guam",
|
100
|
-
"GW": "Guinea-Bissau",
|
101
|
-
"GY": "Guyana",
|
102
|
-
"HK": "Hong Kong SAR China",
|
103
|
-
"HM": "Heard Island and McDonald Islands",
|
104
|
-
"HN": "Honduras",
|
105
|
-
"HR": "Croatia",
|
106
|
-
"HT": "Haiti",
|
107
|
-
"HU": "Hungary",
|
108
|
-
"ID": "Indonesia",
|
109
|
-
"IE": "Ireland",
|
110
|
-
"IL": "Israel",
|
111
|
-
"IM": "Isle of Man",
|
112
|
-
"IN": "India",
|
113
|
-
"IO": "British Indian Ocean Territory",
|
114
|
-
"IQ": "Iraq",
|
115
|
-
"IR": "Iran",
|
116
|
-
"IS": "Iceland",
|
117
|
-
"IT": "Italy",
|
118
|
-
"JE": "Jersey",
|
119
|
-
"JM": "Jamaica",
|
120
|
-
"JO": "Jordan",
|
121
|
-
"JP": "Japan",
|
122
|
-
"JT": "Johnston Island",
|
123
|
-
"KE": "Kenya",
|
124
|
-
"KG": "Kyrgyzstan",
|
125
|
-
"KH": "Cambodia",
|
126
|
-
"KI": "Kiribati",
|
127
|
-
"KM": "Comoros",
|
128
|
-
"KN": "Saint Kitts and Nevis",
|
129
|
-
"KP": "North Korea",
|
130
|
-
"KR": "South Korea",
|
131
|
-
"KW": "Kuwait",
|
132
|
-
"KY": "Cayman Islands",
|
133
|
-
"KZ": "Kazakhstan",
|
134
|
-
"LA": "Laos",
|
135
|
-
"LB": "Lebanon",
|
136
|
-
"LC": "Saint Lucia",
|
137
|
-
"LI": "Liechtenstein",
|
138
|
-
"LK": "Sri Lanka",
|
139
|
-
"LR": "Liberia",
|
140
|
-
"LS": "Lesotho",
|
141
|
-
"LT": "Lithuania",
|
142
|
-
"LU": "Luxembourg",
|
143
|
-
"LV": "Latvia",
|
144
|
-
"LY": "Libya",
|
145
|
-
"MA": "Morocco",
|
146
|
-
"MC": "Monaco",
|
147
|
-
"MD": "Moldova",
|
148
|
-
"ME": "Montenegro",
|
149
|
-
"MF": "Saint Martin",
|
150
|
-
"MG": "Madagascar",
|
151
|
-
"MH": "Marshall Islands",
|
152
|
-
"MI": "Midway Islands",
|
153
|
-
"MK": "Macedonia",
|
154
|
-
"ML": "Mali",
|
155
|
-
"MM": "Myanmar [Burma]",
|
156
|
-
"MN": "Mongolia",
|
157
|
-
"MO": "Macau SAR China",
|
158
|
-
"MP": "Northern Mariana Islands",
|
159
|
-
"MQ": "Martinique",
|
160
|
-
"MR": "Mauritania",
|
161
|
-
"MS": "Montserrat",
|
162
|
-
"MT": "Malta",
|
163
|
-
"MU": "Mauritius",
|
164
|
-
"MV": "Maldives",
|
165
|
-
"MW": "Malawi",
|
166
|
-
"MX": "Mexico",
|
167
|
-
"MY": "Malaysia",
|
168
|
-
"MZ": "Mozambique",
|
169
|
-
"NA": "Namibia",
|
170
|
-
"NC": "New Caledonia",
|
171
|
-
"NE": "Niger",
|
172
|
-
"NF": "Norfolk Island",
|
173
|
-
"NG": "Nigeria",
|
174
|
-
"NI": "Nicaragua",
|
175
|
-
"NL": "Netherlands",
|
176
|
-
"NO": "Norway",
|
177
|
-
"NP": "Nepal",
|
178
|
-
"NQ": "Dronning Maud Land",
|
179
|
-
"NR": "Nauru",
|
180
|
-
"NT": "Neutral Zone",
|
181
|
-
"NU": "Niue",
|
182
|
-
"NZ": "New Zealand",
|
183
|
-
"OM": "Oman",
|
184
|
-
"PA": "Panama",
|
185
|
-
"PC": "Pacific Islands Trust Territory",
|
186
|
-
"PE": "Peru",
|
187
|
-
"PF": "French Polynesia",
|
188
|
-
"PG": "Papua New Guinea",
|
189
|
-
"PH": "Philippines",
|
190
|
-
"PK": "Pakistan",
|
191
|
-
"PL": "Poland",
|
192
|
-
"PM": "Saint Pierre and Miquelon",
|
193
|
-
"PN": "Pitcairn Islands",
|
194
|
-
"PR": "Puerto Rico",
|
195
|
-
"PS": "Palestinian Territories",
|
196
|
-
"PT": "Portugal",
|
197
|
-
"PU": "U.S. Miscellaneous Pacific Islands",
|
198
|
-
"PW": "Palau",
|
199
|
-
"PY": "Paraguay",
|
200
|
-
"PZ": "Panama Canal Zone",
|
201
|
-
"QA": "Qatar",
|
202
|
-
"RE": "R\u00e9union",
|
203
|
-
"RO": "Romania",
|
204
|
-
"RS": "Serbia",
|
205
|
-
"RU": "Russia",
|
206
|
-
"RW": "Rwanda",
|
207
|
-
"SA": "Saudi Arabia",
|
208
|
-
"SB": "Solomon Islands",
|
209
|
-
"SC": "Seychelles",
|
210
|
-
"SD": "Sudan",
|
211
|
-
"SE": "Sweden",
|
212
|
-
"SG": "Singapore",
|
213
|
-
"SH": "Saint Helena",
|
214
|
-
"SI": "Slovenia",
|
215
|
-
"SJ": "Svalbard and Jan Mayen",
|
216
|
-
"SK": "Slovakia",
|
217
|
-
"SL": "Sierra Leone",
|
218
|
-
"SM": "San Marino",
|
219
|
-
"SN": "Senegal",
|
220
|
-
"SO": "Somalia",
|
221
|
-
"SR": "Suriname",
|
222
|
-
"ST": "S\u00e3o Tom\u00e9 and Pr\u00edncipe",
|
223
|
-
"SU": "Union of Soviet Socialist Republics",
|
224
|
-
"SV": "El Salvador",
|
225
|
-
"SY": "Syria",
|
226
|
-
"SZ": "Swaziland",
|
227
|
-
"TC": "Turks and Caicos Islands",
|
228
|
-
"TD": "Chad",
|
229
|
-
"TF": "French Southern Territories",
|
230
|
-
"TG": "Togo",
|
231
|
-
"TH": "Thailand",
|
232
|
-
"TJ": "Tajikistan",
|
233
|
-
"TK": "Tokelau",
|
234
|
-
"TL": "Timor-Leste",
|
235
|
-
"TM": "Turkmenistan",
|
236
|
-
"TN": "Tunisia",
|
237
|
-
"TO": "Tonga",
|
238
|
-
"TR": "Turkey",
|
239
|
-
"TT": "Trinidad and Tobago",
|
240
|
-
"TV": "Tuvalu",
|
241
|
-
"TW": "Taiwan",
|
242
|
-
"TZ": "Tanzania",
|
243
|
-
"UA": "Ukraine",
|
244
|
-
"UG": "Uganda",
|
245
|
-
"UM": "U.S. Minor Outlying Islands",
|
246
|
-
"US": "United States",
|
247
|
-
"UY": "Uruguay",
|
248
|
-
"UZ": "Uzbekistan",
|
249
|
-
"VA": "Vatican City",
|
250
|
-
"VC": "Saint Vincent and the Grenadines",
|
251
|
-
"VD": "North Vietnam",
|
252
|
-
"VE": "Venezuela",
|
253
|
-
"VG": "British Virgin Islands",
|
254
|
-
"VI": "U.S. Virgin Islands",
|
255
|
-
"VN": "Vietnam",
|
256
|
-
"VU": "Vanuatu",
|
257
|
-
"WF": "Wallis and Futuna",
|
258
|
-
"WK": "Wake Island",
|
259
|
-
"WS": "Samoa",
|
260
|
-
"YD": "People's Democratic Republic of Yemen",
|
261
|
-
"YE": "Yemen",
|
262
|
-
"YT": "Mayotte",
|
263
|
-
"ZA": "South Africa",
|
264
|
-
"ZM": "Zambia",
|
265
|
-
"ZW": "Zimbabwe",
|
266
|
-
"ZZ": "Unknown or Invalid Region"
|
1
|
+
var countries = {
|
2
|
+
"AD": "Andorra",
|
3
|
+
"A2": "Andorra Test",
|
4
|
+
"AE": "United Arab Emirates",
|
5
|
+
"AF": "Afghanistan",
|
6
|
+
"AG": "Antigua and Barbuda",
|
7
|
+
"AI": "Anguilla",
|
8
|
+
"AL": "Albania",
|
9
|
+
"AM": "Armenia",
|
10
|
+
"AN": "Netherlands Antilles",
|
11
|
+
"AO": "Angola",
|
12
|
+
"AQ": "Antarctica",
|
13
|
+
"AR": "Argentina",
|
14
|
+
"AS": "American Samoa",
|
15
|
+
"AT": "Austria",
|
16
|
+
"AU": "Australia",
|
17
|
+
"AW": "Aruba",
|
18
|
+
"AX": "\u00c5land Islands",
|
19
|
+
"AZ": "Azerbaijan",
|
20
|
+
"BA": "Bosnia and Herzegovina",
|
21
|
+
"BB": "Barbados",
|
22
|
+
"BD": "Bangladesh",
|
23
|
+
"BE": "Belgium",
|
24
|
+
"BF": "Burkina Faso",
|
25
|
+
"BG": "Bulgaria",
|
26
|
+
"BH": "Bahrain",
|
27
|
+
"BI": "Burundi",
|
28
|
+
"BJ": "Benin",
|
29
|
+
"BL": "Saint Barth\u00e9lemy",
|
30
|
+
"BM": "Bermuda",
|
31
|
+
"BN": "Brunei",
|
32
|
+
"BO": "Bolivia",
|
33
|
+
"BQ": "British Antarctic Territory",
|
34
|
+
"BR": "Brazil",
|
35
|
+
"BS": "Bahamas",
|
36
|
+
"BT": "Bhutan",
|
37
|
+
"BV": "Bouvet Island",
|
38
|
+
"BW": "Botswana",
|
39
|
+
"BY": "Belarus",
|
40
|
+
"BZ": "Belize",
|
41
|
+
"CA": "Canada",
|
42
|
+
"CC": "Cocos [Keeling] Islands",
|
43
|
+
"CD": "Congo - Kinshasa",
|
44
|
+
"CF": "Central African Republic",
|
45
|
+
"CG": "Congo - Brazzaville",
|
46
|
+
"CH": "Switzerland",
|
47
|
+
"CI": "C\u00f4te d\u2019Ivoire",
|
48
|
+
"CK": "Cook Islands",
|
49
|
+
"CL": "Chile",
|
50
|
+
"CM": "Cameroon",
|
51
|
+
"CN": "China",
|
52
|
+
"CO": "Colombia",
|
53
|
+
"CR": "Costa Rica",
|
54
|
+
"CS": "Serbia and Montenegro",
|
55
|
+
"CT": "Canton and Enderbury Islands",
|
56
|
+
"CU": "Cuba",
|
57
|
+
"CV": "Cape Verde",
|
58
|
+
"CX": "Christmas Island",
|
59
|
+
"CY": "Cyprus",
|
60
|
+
"CZ": "Czech Republic",
|
61
|
+
"DD": "East Germany",
|
62
|
+
"DE": "Germany",
|
63
|
+
"DJ": "Djibouti",
|
64
|
+
"DK": "Denmark",
|
65
|
+
"DM": "Dominica",
|
66
|
+
"DO": "Dominican Republic",
|
67
|
+
"DZ": "Algeria",
|
68
|
+
"EC": "Ecuador",
|
69
|
+
"EE": "Estonia",
|
70
|
+
"EG": "Egypt",
|
71
|
+
"EH": "Western Sahara",
|
72
|
+
"ER": "Eritrea",
|
73
|
+
"ES": "Spain",
|
74
|
+
"ET": "Ethiopia",
|
75
|
+
"FI": "Finland",
|
76
|
+
"FJ": "Fiji",
|
77
|
+
"FK": "Falkland Islands",
|
78
|
+
"FM": "Micronesia",
|
79
|
+
"FO": "Faroe Islands",
|
80
|
+
"FQ": "French Southern and Antarctic Territories",
|
81
|
+
"FR": "France",
|
82
|
+
"FX": "Metropolitan France",
|
83
|
+
"GA": "Gabon",
|
84
|
+
"GB": "United Kingdom",
|
85
|
+
"GD": "Grenada",
|
86
|
+
"GE": "Georgia",
|
87
|
+
"GF": "French Guiana",
|
88
|
+
"GG": "Guernsey",
|
89
|
+
"GH": "Ghana",
|
90
|
+
"GI": "Gibraltar",
|
91
|
+
"GL": "Greenland",
|
92
|
+
"GM": "Gambia",
|
93
|
+
"GN": "Guinea",
|
94
|
+
"GP": "Guadeloupe",
|
95
|
+
"GQ": "Equatorial Guinea",
|
96
|
+
"GR": "Greece",
|
97
|
+
"GS": "South Georgia and the South Sandwich Islands",
|
98
|
+
"GT": "Guatemala",
|
99
|
+
"GU": "Guam",
|
100
|
+
"GW": "Guinea-Bissau",
|
101
|
+
"GY": "Guyana",
|
102
|
+
"HK": "Hong Kong SAR China",
|
103
|
+
"HM": "Heard Island and McDonald Islands",
|
104
|
+
"HN": "Honduras",
|
105
|
+
"HR": "Croatia",
|
106
|
+
"HT": "Haiti",
|
107
|
+
"HU": "Hungary",
|
108
|
+
"ID": "Indonesia",
|
109
|
+
"IE": "Ireland",
|
110
|
+
"IL": "Israel",
|
111
|
+
"IM": "Isle of Man",
|
112
|
+
"IN": "India",
|
113
|
+
"IO": "British Indian Ocean Territory",
|
114
|
+
"IQ": "Iraq",
|
115
|
+
"IR": "Iran",
|
116
|
+
"IS": "Iceland",
|
117
|
+
"IT": "Italy",
|
118
|
+
"JE": "Jersey",
|
119
|
+
"JM": "Jamaica",
|
120
|
+
"JO": "Jordan",
|
121
|
+
"JP": "Japan",
|
122
|
+
"JT": "Johnston Island",
|
123
|
+
"KE": "Kenya",
|
124
|
+
"KG": "Kyrgyzstan",
|
125
|
+
"KH": "Cambodia",
|
126
|
+
"KI": "Kiribati",
|
127
|
+
"KM": "Comoros",
|
128
|
+
"KN": "Saint Kitts and Nevis",
|
129
|
+
"KP": "North Korea",
|
130
|
+
"KR": "South Korea",
|
131
|
+
"KW": "Kuwait",
|
132
|
+
"KY": "Cayman Islands",
|
133
|
+
"KZ": "Kazakhstan",
|
134
|
+
"LA": "Laos",
|
135
|
+
"LB": "Lebanon",
|
136
|
+
"LC": "Saint Lucia",
|
137
|
+
"LI": "Liechtenstein",
|
138
|
+
"LK": "Sri Lanka",
|
139
|
+
"LR": "Liberia",
|
140
|
+
"LS": "Lesotho",
|
141
|
+
"LT": "Lithuania",
|
142
|
+
"LU": "Luxembourg",
|
143
|
+
"LV": "Latvia",
|
144
|
+
"LY": "Libya",
|
145
|
+
"MA": "Morocco",
|
146
|
+
"MC": "Monaco",
|
147
|
+
"MD": "Moldova",
|
148
|
+
"ME": "Montenegro",
|
149
|
+
"MF": "Saint Martin",
|
150
|
+
"MG": "Madagascar",
|
151
|
+
"MH": "Marshall Islands",
|
152
|
+
"MI": "Midway Islands",
|
153
|
+
"MK": "Macedonia",
|
154
|
+
"ML": "Mali",
|
155
|
+
"MM": "Myanmar [Burma]",
|
156
|
+
"MN": "Mongolia",
|
157
|
+
"MO": "Macau SAR China",
|
158
|
+
"MP": "Northern Mariana Islands",
|
159
|
+
"MQ": "Martinique",
|
160
|
+
"MR": "Mauritania",
|
161
|
+
"MS": "Montserrat",
|
162
|
+
"MT": "Malta",
|
163
|
+
"MU": "Mauritius",
|
164
|
+
"MV": "Maldives",
|
165
|
+
"MW": "Malawi",
|
166
|
+
"MX": "Mexico",
|
167
|
+
"MY": "Malaysia",
|
168
|
+
"MZ": "Mozambique",
|
169
|
+
"NA": "Namibia",
|
170
|
+
"NC": "New Caledonia",
|
171
|
+
"NE": "Niger",
|
172
|
+
"NF": "Norfolk Island",
|
173
|
+
"NG": "Nigeria",
|
174
|
+
"NI": "Nicaragua",
|
175
|
+
"NL": "Netherlands",
|
176
|
+
"NO": "Norway",
|
177
|
+
"NP": "Nepal",
|
178
|
+
"NQ": "Dronning Maud Land",
|
179
|
+
"NR": "Nauru",
|
180
|
+
"NT": "Neutral Zone",
|
181
|
+
"NU": "Niue",
|
182
|
+
"NZ": "New Zealand",
|
183
|
+
"OM": "Oman",
|
184
|
+
"PA": "Panama",
|
185
|
+
"PC": "Pacific Islands Trust Territory",
|
186
|
+
"PE": "Peru",
|
187
|
+
"PF": "French Polynesia",
|
188
|
+
"PG": "Papua New Guinea",
|
189
|
+
"PH": "Philippines",
|
190
|
+
"PK": "Pakistan",
|
191
|
+
"PL": "Poland",
|
192
|
+
"PM": "Saint Pierre and Miquelon",
|
193
|
+
"PN": "Pitcairn Islands",
|
194
|
+
"PR": "Puerto Rico",
|
195
|
+
"PS": "Palestinian Territories",
|
196
|
+
"PT": "Portugal",
|
197
|
+
"PU": "U.S. Miscellaneous Pacific Islands",
|
198
|
+
"PW": "Palau",
|
199
|
+
"PY": "Paraguay",
|
200
|
+
"PZ": "Panama Canal Zone",
|
201
|
+
"QA": "Qatar",
|
202
|
+
"RE": "R\u00e9union",
|
203
|
+
"RO": "Romania",
|
204
|
+
"RS": "Serbia",
|
205
|
+
"RU": "Russia",
|
206
|
+
"RW": "Rwanda",
|
207
|
+
"SA": "Saudi Arabia",
|
208
|
+
"SB": "Solomon Islands",
|
209
|
+
"SC": "Seychelles",
|
210
|
+
"SD": "Sudan",
|
211
|
+
"SE": "Sweden",
|
212
|
+
"SG": "Singapore",
|
213
|
+
"SH": "Saint Helena",
|
214
|
+
"SI": "Slovenia",
|
215
|
+
"SJ": "Svalbard and Jan Mayen",
|
216
|
+
"SK": "Slovakia",
|
217
|
+
"SL": "Sierra Leone",
|
218
|
+
"SM": "San Marino",
|
219
|
+
"SN": "Senegal",
|
220
|
+
"SO": "Somalia",
|
221
|
+
"SR": "Suriname",
|
222
|
+
"ST": "S\u00e3o Tom\u00e9 and Pr\u00edncipe",
|
223
|
+
"SU": "Union of Soviet Socialist Republics",
|
224
|
+
"SV": "El Salvador",
|
225
|
+
"SY": "Syria",
|
226
|
+
"SZ": "Swaziland",
|
227
|
+
"TC": "Turks and Caicos Islands",
|
228
|
+
"TD": "Chad",
|
229
|
+
"TF": "French Southern Territories",
|
230
|
+
"TG": "Togo",
|
231
|
+
"TH": "Thailand",
|
232
|
+
"TJ": "Tajikistan",
|
233
|
+
"TK": "Tokelau",
|
234
|
+
"TL": "Timor-Leste",
|
235
|
+
"TM": "Turkmenistan",
|
236
|
+
"TN": "Tunisia",
|
237
|
+
"TO": "Tonga",
|
238
|
+
"TR": "Turkey",
|
239
|
+
"TT": "Trinidad and Tobago",
|
240
|
+
"TV": "Tuvalu",
|
241
|
+
"TW": "Taiwan",
|
242
|
+
"TZ": "Tanzania",
|
243
|
+
"UA": "Ukraine",
|
244
|
+
"UG": "Uganda",
|
245
|
+
"UM": "U.S. Minor Outlying Islands",
|
246
|
+
"US": "United States",
|
247
|
+
"UY": "Uruguay",
|
248
|
+
"UZ": "Uzbekistan",
|
249
|
+
"VA": "Vatican City",
|
250
|
+
"VC": "Saint Vincent and the Grenadines",
|
251
|
+
"VD": "North Vietnam",
|
252
|
+
"VE": "Venezuela",
|
253
|
+
"VG": "British Virgin Islands",
|
254
|
+
"VI": "U.S. Virgin Islands",
|
255
|
+
"VN": "Vietnam",
|
256
|
+
"VU": "Vanuatu",
|
257
|
+
"WF": "Wallis and Futuna",
|
258
|
+
"WK": "Wake Island",
|
259
|
+
"WS": "Samoa",
|
260
|
+
"YD": "People's Democratic Republic of Yemen",
|
261
|
+
"YE": "Yemen",
|
262
|
+
"YT": "Mayotte",
|
263
|
+
"ZA": "South Africa",
|
264
|
+
"ZM": "Zambia",
|
265
|
+
"ZW": "Zimbabwe",
|
266
|
+
"ZZ": "Unknown or Invalid Region"
|
267
267
|
}
|