Only mount uploads folder as docker volume (#616)

Remove base64 jQuery plugin (#684)
This commit is contained in:
jekkos
2016-06-25 12:35:51 +02:00
parent b76d4526de
commit e25ce12e55
6 changed files with 13 additions and 75 deletions

View File

@@ -72,7 +72,7 @@
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=f8daa2f957"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=26c6d98f54" language="javascript"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=8f5db8017e" language="javascript"></script>
<!-- end minjs template tags -->
<?php endif; ?>

60
dist/opensourcepos.js vendored
View File

@@ -44035,66 +44035,6 @@ $.extend($.fn, {
});
}));
jQuery.base64 = (function($) {
// private property
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
// private method for UTF-8 encoding
function utf8Encode(string) {
string = string.replace(/\r\n/g,"\n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
if (c < 128) {
utftext += String.fromCharCode(c);
}
else if((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
}
else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
}
function encode(input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = utf8Encode(input);
while (i < input.length) {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}
output = output +
keyStr.charAt(enc1) + keyStr.charAt(enc2) +
keyStr.charAt(enc3) + keyStr.charAt(enc4);
}
return output;
}
return {
encode: function (str) {
return encode(str);
}
};
}(jQuery));
/*
* Project: Bootstrap Notify = v3.1.3
* Description: Turns standard Bootstrap alerts into "Growl-like" notifications.

View File

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@ web:
roles:
- global
volumes:
- /app
- /app/uploads
environment:
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale

View File

@@ -1,7 +1,7 @@
version: '2'
volumes:
ospos:
uploads:
driver: local
services:
@@ -14,7 +14,7 @@ services:
ports:
- "80:80"
volumes:
- ospos:/app
- uploads:/app/uploads
environment:
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale

View File

@@ -73,7 +73,7 @@
<!-- end mincss template tags -->
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/style.css"/>
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=26c6d98f54" language="javascript"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=8f5db8017e" language="javascript"></script>
<!-- end minjs template tags -->
<?php endif; ?>