From 71114877e8e5409e37dc5a4c03015408f8e905fc Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 31 Mar 2019 07:26:37 -0400 Subject: #801 rip out bower, move to unmanaged externals --- www/external/js/filelogger.min.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 www/external/js/filelogger.min.js (limited to 'www/external/js/filelogger.min.js') diff --git a/www/external/js/filelogger.min.js b/www/external/js/filelogger.min.js new file mode 100644 index 00000000..b3758b7a --- /dev/null +++ b/www/external/js/filelogger.min.js @@ -0,0 +1,6 @@ +/*! + * fileLogger + * Copyright 2016 Peter Bakondy https://github.com/pbakondy + * See LICENSE in this repository for license information + */ +!function(){angular.module("fileLogger",["ngCordova.plugins.file"]).factory("$fileLogger",["$q","$window","$cordovaFile","$timeout","$filter",function(e,o,r,a,n){"use strict";function t(){return o.parent&&o.parent.ripple}function i(){return!o.cordova&&!o.PhoneGap&&!o.phonegap||t()}function l(e){angular.isString(e)?(e=e.toUpperCase(),j.indexOf(e)===-1&&(e="INFO")):e="INFO";for(var o,r=new Date,a=b?n("date")(r,b,F):r.toJSON(),t=Array.prototype.slice.call(arguments,1),l=[a,e],s=0;s0)&&(O=e,!0)}function g(e,o){if(!angular.isUndefined(e)&&!angular.isString(e))throw new TypeError("format parameter must be a string or undefined");if(!angular.isUndefined(o)&&!angular.isString(o))throw new TypeError("timezone parameter must be a string or undefined");b=e,F=o}function p(){var a=e.defer();if(i())a.resolve({name:O,localURL:"localStorage://localhost/"+O,type:"text/plain",size:o.localStorage[O]?o.localStorage[O].length:0});else{if(!o.cordova||!o.cordova.file||!o.cordova.file.dataDirectory)return a.reject("cordova.file.dataDirectory is not available"),a.promise;r.checkFile(cordova.file.dataDirectory,O).then(function(e){e.file(a.resolve,a.reject)},a.reject)}return a.promise}function v(){var e=Array.prototype.slice.call(arguments,0);e.unshift("DEBUG"),l.apply(void 0,e)}function y(){var e=Array.prototype.slice.call(arguments,0);e.unshift("INFO"),l.apply(void 0,e)}function h(){var e=Array.prototype.slice.call(arguments,0);e.unshift("WARN"),l.apply(void 0,e)}function m(){var e=Array.prototype.slice.call(arguments,0);e.unshift("ERROR"),l.apply(void 0,e)}var b,F,D=[],S=!1,j=["DEBUG","INFO","WARN","ERROR"],O="messages.log";return{log:l,getLogfile:f,deleteLogfile:u,setStorageFilename:d,setTimestampFormat:g,checkFile:p,debug:v,info:y,warn:h,error:m}}])}(); \ No newline at end of file -- cgit v1.2.3