rawbotz 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +9 -0
- data/README.md +185 -0
- data/Rakefile +29 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config.ru +9 -0
- data/exe/debug/test_mail +15 -0
- data/exe/rawbotz +39 -0
- data/exe/rawbotz_import_links +74 -0
- data/exe/rawbotz_maintenance.sh +57 -0
- data/exe/rawbotz_process_order +86 -0
- data/exe/rawbotz_process_order_queue +80 -0
- data/exe/rawbotz_stock_update +84 -0
- data/exe/rawbotz_update_local_products +48 -0
- data/exe/rawbotz_update_remote_products +160 -0
- data/lib/rawbotz/app.rb +84 -0
- data/lib/rawbotz/cli/order_result_table.rb +57 -0
- data/lib/rawbotz/datapolate.rb +42 -0
- data/lib/rawbotz/helpers/flash_helper.rb +13 -0
- data/lib/rawbotz/helpers/icon_helper.rb +40 -0
- data/lib/rawbotz/helpers/resource_link_helper.rb +45 -0
- data/lib/rawbotz/local_shop.rb +12 -0
- data/lib/rawbotz/mail_template.rb +29 -0
- data/lib/rawbotz/option_parser.rb +37 -0
- data/lib/rawbotz/order_processor.rb +92 -0
- data/lib/rawbotz/product_updater.rb +89 -0
- data/lib/rawbotz/public/Chart.min.js +14 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/HELP-US-OUT.txt +7 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/css/font-awesome.css +2086 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/css/font-awesome.min.css +4 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/fonts/FontAwesome.otf +0 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/fonts/fontawesome-webfont.eot +0 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/fonts/fontawesome-webfont.svg +655 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/fonts/fontawesome-webfont.ttf +0 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/fonts/fontawesome-webfont.woff +0 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/fonts/fontawesome-webfont.woff2 +0 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/animated.less +34 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/bordered-pulled.less +25 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/core.less +12 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/fixed-width.less +6 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/font-awesome.less +17 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/icons.less +697 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/larger.less +13 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/list.less +19 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/mixins.less +26 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/path.less +15 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/rotated-flipped.less +20 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/stacked.less +20 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/less/variables.less +708 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_animated.scss +34 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_bordered-pulled.scss +25 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_core.scss +12 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_fixed-width.scss +6 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_icons.scss +697 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_larger.scss +13 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_list.scss +19 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_mixins.scss +26 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_path.scss +15 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_rotated-flipped.scss +20 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_stacked.scss +20 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/_variables.scss +708 -0
- data/lib/rawbotz/public/font-awesome-4.5.0/scss/font-awesome.scss +17 -0
- data/lib/rawbotz/public/jquery-2.2.0.min.js +4 -0
- data/lib/rawbotz/public/jui/external/jquery/jquery.js +9789 -0
- data/lib/rawbotz/public/jui/images/ui-icons_444444_256x240.png +0 -0
- data/lib/rawbotz/public/jui/images/ui-icons_555555_256x240.png +0 -0
- data/lib/rawbotz/public/jui/images/ui-icons_777620_256x240.png +0 -0
- data/lib/rawbotz/public/jui/images/ui-icons_777777_256x240.png +0 -0
- data/lib/rawbotz/public/jui/images/ui-icons_cc0000_256x240.png +0 -0
- data/lib/rawbotz/public/jui/images/ui-icons_ffffff_256x240.png +0 -0
- data/lib/rawbotz/public/jui/index.html +513 -0
- data/lib/rawbotz/public/jui/jquery-ui.css +1225 -0
- data/lib/rawbotz/public/jui/jquery-ui.js +16617 -0
- data/lib/rawbotz/public/jui/jquery-ui.min.css +7 -0
- data/lib/rawbotz/public/jui/jquery-ui.min.js +13 -0
- data/lib/rawbotz/public/jui/jquery-ui.structure.css +833 -0
- data/lib/rawbotz/public/jui/jquery-ui.structure.min.css +5 -0
- data/lib/rawbotz/public/jui/jquery-ui.theme.css +410 -0
- data/lib/rawbotz/public/jui/jquery-ui.theme.min.css +5 -0
- data/lib/rawbotz/public/pure-min.css +11 -0
- data/lib/rawbotz/public/rawbotz.css +60 -0
- data/lib/rawbotz/public/rawbotz.js +96 -0
- data/lib/rawbotz/public/rawbotz_ajax_product_link.js +64 -0
- data/lib/rawbotz/remote_shop.rb +21 -0
- data/lib/rawbotz/routes/non_remote_orders.rb +45 -0
- data/lib/rawbotz/routes/orders.rb +76 -0
- data/lib/rawbotz/routes/product_links.rb +68 -0
- data/lib/rawbotz/routes/products.rb +104 -0
- data/lib/rawbotz/routes/remote_shop.rb +37 -0
- data/lib/rawbotz/routes/suppliers.rb +36 -0
- data/lib/rawbotz/routes.rb +9 -0
- data/lib/rawbotz/version.rb +3 -0
- data/lib/rawbotz/views/_hide_unhide_button.haml +11 -0
- data/lib/rawbotz/views/_menu.haml +20 -0
- data/lib/rawbotz/views/index.haml +1 -0
- data/lib/rawbotz/views/layout.haml +55 -0
- data/lib/rawbotz/views/maintenance/menu.haml +25 -0
- data/lib/rawbotz/views/maintenance.haml +150 -0
- data/lib/rawbotz/views/order/_head.haml +24 -0
- data/lib/rawbotz/views/order/_item_table.haml +44 -0
- data/lib/rawbotz/views/order/new.haml +22 -0
- data/lib/rawbotz/views/order/non_remote.haml +42 -0
- data/lib/rawbotz/views/order/packlist.haml +14 -0
- data/lib/rawbotz/views/order/view.haml +79 -0
- data/lib/rawbotz/views/orders/index.haml +40 -0
- data/lib/rawbotz/views/orders/menu.haml +24 -0
- data/lib/rawbotz/views/orders/non_remotes.haml +8 -0
- data/lib/rawbotz/views/product/_stock_sales_plot.haml +60 -0
- data/lib/rawbotz/views/product/link_to.haml +29 -0
- data/lib/rawbotz/views/product/view.haml +64 -0
- data/lib/rawbotz/views/products/_link_table.haml +38 -0
- data/lib/rawbotz/views/products/index.haml +36 -0
- data/lib/rawbotz/views/products/link_wizard.haml +48 -0
- data/lib/rawbotz/views/products/links.haml +65 -0
- data/lib/rawbotz/views/products/menu.haml +27 -0
- data/lib/rawbotz/views/products/table.haml +20 -0
- data/lib/rawbotz/views/products/table_with_linking.haml +30 -0
- data/lib/rawbotz/views/remote_cart/index.haml +30 -0
- data/lib/rawbotz/views/remote_order/view.haml +35 -0
- data/lib/rawbotz/views/remote_orders/index.haml +20 -0
- data/lib/rawbotz/views/remote_product/view.haml +90 -0
- data/lib/rawbotz/views/remote_products/_table.haml +15 -0
- data/lib/rawbotz/views/remote_products/index.haml +30 -0
- data/lib/rawbotz/views/supplier/view.haml +63 -0
- data/lib/rawbotz/views/suppliers/index.haml +13 -0
- data/lib/rawbotz/views/thin_layout.haml +32 -0
- data/lib/rawbotz/views/widgets/_ajax_link.haml +5 -0
- data/lib/rawbotz/views/widgets/_link.haml +6 -0
- data/lib/rawbotz/views/widgets/_link_line.haml +15 -0
- data/lib/rawbotz.rb +77 -0
- data/rawbotz.gemspec +33 -0
- metadata +327 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
// Icon Sizes
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
/* makes the font 33% larger relative to the icon container */
|
5
|
+
.@{fa-css-prefix}-lg {
|
6
|
+
font-size: (4em / 3);
|
7
|
+
line-height: (3em / 4);
|
8
|
+
vertical-align: -15%;
|
9
|
+
}
|
10
|
+
.@{fa-css-prefix}-2x { font-size: 2em; }
|
11
|
+
.@{fa-css-prefix}-3x { font-size: 3em; }
|
12
|
+
.@{fa-css-prefix}-4x { font-size: 4em; }
|
13
|
+
.@{fa-css-prefix}-5x { font-size: 5em; }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// List Icons
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
.@{fa-css-prefix}-ul {
|
5
|
+
padding-left: 0;
|
6
|
+
margin-left: @fa-li-width;
|
7
|
+
list-style-type: none;
|
8
|
+
> li { position: relative; }
|
9
|
+
}
|
10
|
+
.@{fa-css-prefix}-li {
|
11
|
+
position: absolute;
|
12
|
+
left: -@fa-li-width;
|
13
|
+
width: @fa-li-width;
|
14
|
+
top: (2em / 14);
|
15
|
+
text-align: center;
|
16
|
+
&.@{fa-css-prefix}-lg {
|
17
|
+
left: (-@fa-li-width + (4em / 14));
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// Mixins
|
2
|
+
// --------------------------
|
3
|
+
|
4
|
+
.fa-icon() {
|
5
|
+
display: inline-block;
|
6
|
+
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
|
7
|
+
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
8
|
+
text-rendering: auto; // optimizelegibility throws things off #1094
|
9
|
+
-webkit-font-smoothing: antialiased;
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
11
|
+
|
12
|
+
}
|
13
|
+
|
14
|
+
.fa-icon-rotate(@degrees, @rotation) {
|
15
|
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
16
|
+
-webkit-transform: rotate(@degrees);
|
17
|
+
-ms-transform: rotate(@degrees);
|
18
|
+
transform: rotate(@degrees);
|
19
|
+
}
|
20
|
+
|
21
|
+
.fa-icon-flip(@horiz, @vert, @rotation) {
|
22
|
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
|
23
|
+
-webkit-transform: scale(@horiz, @vert);
|
24
|
+
-ms-transform: scale(@horiz, @vert);
|
25
|
+
transform: scale(@horiz, @vert);
|
26
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/* FONT PATH
|
2
|
+
* -------------------------- */
|
3
|
+
|
4
|
+
@font-face {
|
5
|
+
font-family: 'FontAwesome';
|
6
|
+
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
|
7
|
+
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
|
8
|
+
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
|
9
|
+
url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
|
10
|
+
url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
|
11
|
+
url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
|
12
|
+
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
|
13
|
+
font-weight: normal;
|
14
|
+
font-style: normal;
|
15
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Rotated & Flipped Icons
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
|
5
|
+
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
|
6
|
+
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
|
7
|
+
|
8
|
+
.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
|
9
|
+
.@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
|
10
|
+
|
11
|
+
// Hook for IE8-9
|
12
|
+
// -------------------------
|
13
|
+
|
14
|
+
:root .@{fa-css-prefix}-rotate-90,
|
15
|
+
:root .@{fa-css-prefix}-rotate-180,
|
16
|
+
:root .@{fa-css-prefix}-rotate-270,
|
17
|
+
:root .@{fa-css-prefix}-flip-horizontal,
|
18
|
+
:root .@{fa-css-prefix}-flip-vertical {
|
19
|
+
filter: none;
|
20
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Stacked Icons
|
2
|
+
// -------------------------
|
3
|
+
|
4
|
+
.@{fa-css-prefix}-stack {
|
5
|
+
position: relative;
|
6
|
+
display: inline-block;
|
7
|
+
width: 2em;
|
8
|
+
height: 2em;
|
9
|
+
line-height: 2em;
|
10
|
+
vertical-align: middle;
|
11
|
+
}
|
12
|
+
.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
|
13
|
+
position: absolute;
|
14
|
+
left: 0;
|
15
|
+
width: 100%;
|
16
|
+
text-align: center;
|
17
|
+
}
|
18
|
+
.@{fa-css-prefix}-stack-1x { line-height: inherit; }
|
19
|
+
.@{fa-css-prefix}-stack-2x { font-size: 2em; }
|
20
|
+
.@{fa-css-prefix}-inverse { color: @fa-inverse; }
|