├── .gitignore ├── docs ├── img │ ├── favicon.ico │ ├── loader.gif │ ├── icons │ │ ├── file.gif │ │ ├── ok.png │ │ ├── class.png │ │ ├── folder.gif │ │ ├── method.png │ │ ├── search.gif │ │ ├── constant.png │ │ ├── favicon.ico │ │ ├── file-php.png │ │ ├── function.png │ │ ├── interface.png │ │ ├── property.png │ │ ├── variable.png │ │ ├── arrow_down.png │ │ ├── arrow_right.png │ │ ├── icon-th-big.png │ │ ├── view_source.png │ │ ├── visibility_private.png │ │ ├── visibility_public.png │ │ ├── icon-folder-open-big.png │ │ ├── visibility_protected.png │ │ └── icon_template.svg │ ├── iviewer │ │ ├── grab.cur │ │ ├── hand.cur │ │ ├── iviewer.zoom_fit.png │ │ ├── iviewer.zoom_fit2.gif │ │ ├── iviewer.zoom_in.png │ │ ├── iviewer.zoom_in2.gif │ │ ├── iviewer.zoom_out.png │ │ ├── iviewer.zoom_out2.gif │ │ ├── iviewer.zoom_zero.png │ │ ├── iviewer.rotate_left.png │ │ ├── iviewer.zoom_zero2.gif │ │ └── iviewer.rotate_right.png │ ├── apple-touch-icon.png │ ├── glyphicons-halflings.png │ ├── apple-touch-icon-72x72.png │ ├── apple-touch-icon-114x114.png │ └── glyphicons-halflings-white.png ├── js │ ├── prettify │ │ ├── lang-go.js │ │ ├── lang-lua.js │ │ ├── lang-ml.js │ │ ├── lang-sql.js │ │ ├── lang-tex.js │ │ ├── lang-vb.js │ │ ├── lang-scala.js │ │ ├── lang-vhdl.js │ │ ├── lang-wiki.js │ │ ├── lang-apollo.js │ │ ├── lang-proto.js │ │ ├── lang-yaml.js │ │ ├── lang-hs.js │ │ ├── lang-lisp.js │ │ ├── lang-css.js │ │ ├── lang-n.js │ │ └── lang-clj.js │ ├── menu.js │ ├── jqplot │ │ ├── plugins │ │ │ ├── jqplot.ciParser.min.js │ │ │ ├── jqplot.mobile.min.js │ │ │ ├── jqplot.trendline.min.js │ │ │ ├── jqplot.canvasAxisLabelRenderer.min.js │ │ │ ├── jqplot.canvasAxisTickRenderer.min.js │ │ │ ├── jqplot.blockRenderer.min.js │ │ │ ├── jqplot.json2.min.js │ │ │ ├── jqplot.ohlcRenderer.min.js │ │ │ ├── jqplot.dragable.min.js │ │ │ ├── jqplot.pointLabels.min.js │ │ │ ├── jqplot.enhancedLegendRenderer.min.js │ │ │ ├── jqplot.BezierCurveRenderer.min.js │ │ │ ├── jqplot.mekkoRenderer.min.js │ │ │ ├── jqplot.logAxisRenderer.min.js │ │ │ ├── jqplot.highlighter.min.js │ │ │ ├── jqplot.pyramidGridRenderer.min.js │ │ │ ├── jqplot.pyramidRenderer.min.js │ │ │ ├── jqplot.mekkoAxisRenderer.min.js │ │ │ ├── jqplot.categoryAxisRenderer.min.js │ │ │ └── jqplot.dateAxisRenderer.min.js │ │ ├── MIT-LICENSE.txt │ │ ├── copyright.txt │ │ ├── jquery.jqplot.min.css │ │ └── README.txt │ ├── jquery.mousewheel.min.js │ ├── sidebar.js │ ├── jquery.cookie.js │ ├── SVGPan.js │ ├── jquery.xml2json.js │ └── jquery.treeview.js ├── css │ ├── prettify.css │ ├── jquery.iviewer.css │ └── bootstrap-responsive.min.css └── checkstyle.xml ├── .styleci.yml ├── .codeclimate.yml ├── src ├── helpers.php ├── Logs │ ├── MonologHandler.php │ └── Formatter.php ├── config │ └── influxdb.php ├── Jobs │ ├── Job.php │ ├── Write.php │ ├── WritePoints.php │ └── WritePayload.php ├── InfluxDbServiceProvider.php └── InfluxDbFacade.php ├── tests └── InfluxDbTest.php ├── .travis.yml ├── phpunit.xml ├── .scrutinizer.yml ├── phpdoc.xml ├── composer.json ├── README.md └── CONTRIBUTING.md /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /composer.phar 3 | /composer.lock 4 | /vendor 5 | /test.php 6 | -------------------------------------------------------------------------------- /docs/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/favicon.ico -------------------------------------------------------------------------------- /docs/img/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/loader.gif -------------------------------------------------------------------------------- /docs/img/icons/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/file.gif -------------------------------------------------------------------------------- /docs/img/icons/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/ok.png -------------------------------------------------------------------------------- /docs/img/icons/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/class.png -------------------------------------------------------------------------------- /docs/img/icons/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/folder.gif -------------------------------------------------------------------------------- /docs/img/icons/method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/method.png -------------------------------------------------------------------------------- /docs/img/icons/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/search.gif -------------------------------------------------------------------------------- /docs/img/iviewer/grab.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/grab.cur -------------------------------------------------------------------------------- /docs/img/iviewer/hand.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/hand.cur -------------------------------------------------------------------------------- /docs/img/icons/constant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/constant.png -------------------------------------------------------------------------------- /docs/img/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/favicon.ico -------------------------------------------------------------------------------- /docs/img/icons/file-php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/file-php.png -------------------------------------------------------------------------------- /docs/img/icons/function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/function.png -------------------------------------------------------------------------------- /docs/img/icons/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/interface.png -------------------------------------------------------------------------------- /docs/img/icons/property.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/property.png -------------------------------------------------------------------------------- /docs/img/icons/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/variable.png -------------------------------------------------------------------------------- /docs/js/prettify/lang-go.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-go.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-lua.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-lua.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-ml.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-ml.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-sql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-sql.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-tex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-tex.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-vb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-vb.js -------------------------------------------------------------------------------- /docs/img/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/img/icons/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/arrow_down.png -------------------------------------------------------------------------------- /docs/img/icons/arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/arrow_right.png -------------------------------------------------------------------------------- /docs/img/icons/icon-th-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/icon-th-big.png -------------------------------------------------------------------------------- /docs/img/icons/view_source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/view_source.png -------------------------------------------------------------------------------- /docs/js/prettify/lang-scala.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-scala.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-vhdl.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-wiki.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-wiki.js -------------------------------------------------------------------------------- /docs/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /docs/js/prettify/lang-apollo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/js/prettify/lang-apollo.js -------------------------------------------------------------------------------- /docs/img/apple-touch-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/apple-touch-icon-72x72.png -------------------------------------------------------------------------------- /docs/img/apple-touch-icon-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/apple-touch-icon-114x114.png -------------------------------------------------------------------------------- /docs/img/icons/visibility_private.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/visibility_private.png -------------------------------------------------------------------------------- /docs/img/icons/visibility_public.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/visibility_public.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_fit.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_fit2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_fit2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_in.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_in2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_in2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_out.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_out.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_out2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_out2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_zero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_zero.png -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | preset: laravel 2 | 3 | risky: false 4 | 5 | finder: 6 | exclude: 7 | - "build" 8 | - "docs" 9 | - "tests" 10 | -------------------------------------------------------------------------------- /docs/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /docs/img/icons/icon-folder-open-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/icon-folder-open-big.png -------------------------------------------------------------------------------- /docs/img/icons/visibility_protected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/icons/visibility_protected.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.rotate_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.rotate_left.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_zero2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.zoom_zero2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.rotate_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/austinheap/laravel-database-influxdb/HEAD/docs/img/iviewer/iviewer.rotate_right.png -------------------------------------------------------------------------------- /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | languages: 2 | Ruby: false 3 | JavaScript: false 4 | Python: false 5 | PHP: true 6 | 7 | exclude_paths: 8 | - tests/* 9 | - vendor/* 10 | - docs/* 11 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /src/helpers.php: -------------------------------------------------------------------------------- 1 | 6 | * @version v0.1.7 7 | */ 8 | declare(strict_types=1); 9 | 10 | if (! function_exists('influxdb')) { 11 | /** 12 | * @return \InfluxDB\Client|\InfluxDB\Database 13 | */ 14 | function influxdb() 15 | { 16 | return \AustinHeap\Database\InfluxDb\InfluxDbServiceProvider::getInstance(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/InfluxDbTest.php: -------------------------------------------------------------------------------- 1 | 8 | * @version v0.1.1 9 | */ 10 | 11 | /** 12 | * InfluxDbTest 13 | */ 14 | class InfluxDbTest extends \PHPUnit\Framework\TestCase 15 | { 16 | 17 | public function testPlaceholder() 18 | { 19 | $this->assertEquals('', ''); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n \r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 7.2 5 | - 7.1 6 | - 7.0 7 | 8 | before_script: 9 | - pecl install uopz 10 | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter 11 | - chmod +x ./cc-test-reporter 12 | - ./cc-test-reporter before-build 13 | - composer self-update 14 | - composer install --prefer-source --no-interaction 15 | 16 | script: 17 | - vendor/bin/phpunit --coverage-clover build/logs/clover.xml 18 | 19 | after_script: 20 | - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT 21 | 22 | after_success: 23 | - vendor/bin/test-reporter 24 | -------------------------------------------------------------------------------- /docs/css/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /docs/js/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","scm"]); 4 | -------------------------------------------------------------------------------- /docs/js/menu.js: -------------------------------------------------------------------------------- 1 | var timeout = 500; 2 | var closetimer = 0; 3 | var ddmenuitem = 0; 4 | 5 | function menu_open() { 6 | menu_canceltimer(); 7 | menu_close(); 8 | ddmenuitem = $(this).find('ul').css('visibility', 'visible'); 9 | } 10 | 11 | function menu_close() { 12 | if (ddmenuitem) ddmenuitem.css('visibility', 'hidden'); 13 | } 14 | 15 | function menu_timer() { 16 | closetimer = window.setTimeout(menu_close, timeout); 17 | } 18 | 19 | function menu_canceltimer() { 20 | if (closetimer) { 21 | window.clearTimeout(closetimer); 22 | closetimer = null; 23 | } 24 | } 25 | 26 | $(document).ready(function() { 27 | $('#file-nav > li').bind('mouseover', menu_open); 28 | $('#file-nav > li').bind('mouseout', menu_timer); 29 | }); 30 | 31 | document.onclick = menu_close; -------------------------------------------------------------------------------- /docs/js/jqplot/plugins/jqplot.ciParser.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.ciParser=function(g,l){var m=[],o,n,h,f,e,c;if(typeof(g)=="string"){g=a.jqplot.JSON.parse(g,d)}else{if(typeof(g)=="object"){for(e in g){for(h=0;h=0){i=/^\/Date\((-?[0-9]+)\)\/$/.exec(k);if(i){return parseInt(i[1],10)}}return k}}for(var b in g){o=[];n=g[b];switch(b){case"PriceTicks":for(h=0;h)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /src/Logs/MonologHandler.php: -------------------------------------------------------------------------------- 1 | 6 | * @version v0.1.7 7 | */ 8 | declare(strict_types=1); 9 | 10 | namespace AustinHeap\Database\InfluxDb\Logs; 11 | 12 | use Monolog\Logger; 13 | use Monolog\Handler\AbstractProcessingHandler; 14 | 15 | /** 16 | * Class MonologHandler. 17 | */ 18 | class MonologHandler extends AbstractProcessingHandler 19 | { 20 | /** 21 | * InfluxDbMonologHandler constructor. 22 | * 23 | * @param int $level 24 | * @param bool $bubble 25 | */ 26 | public function __construct($level = Logger::DEBUG, $bubble = true) 27 | { 28 | parent::__construct($level, $bubble); 29 | } 30 | 31 | /** 32 | * @param array $record 33 | * 34 | * @return void 35 | */ 36 | protected function write(array $record): void 37 | { 38 | parent::write($record); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /docs/js/jqplot/plugins/jqplot.mobile.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(b){function a(e,d,c){this.bindCustomEvents=function(){this.eventCanvas._elem.bind("vclick",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("taphold",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("vmousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("vmousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave);if(this.captureRightClick){this.eventCanvas._elem.bind("vmouseup",{plot:this},this.onRightClick);this.eventCanvas._elem.get(0).oncontextmenu=function(){return false}}else{this.eventCanvas._elem.bind("vmouseup",{plot:this},this.onMouseUp)}};this.plugins.mobile=true}b.jqplot.postInitHooks.push(a)})(jQuery); -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | ./src 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | ./tests 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- 1 | build: 2 | dependencies: 3 | before: 4 | - 'pecl install uopz' 5 | tests: 6 | override: 7 | - php-scrutinizer-run 8 | - 9 | command: phpcs-run 10 | use_website_config: true 11 | - 12 | command: 'vendor/bin/phpunit --coverage-clover build/logs/clover.xml' 13 | coverage: 14 | file: 'build/logs/clover.xml' 15 | format: 'clover' 16 | environment: 17 | php: 18 | version: 7.0, 7.1, 7.2 19 | tools: 20 | php_loc: 21 | enabled: true 22 | command: phploc 23 | excluded_dirs: 24 | - vendor 25 | - tests 26 | - build 27 | - docs 28 | sensiolabs_security_checker: true 29 | filter: 30 | excluded_paths: 31 | - 'vendor/*' 32 | - 'tests/*' 33 | - 'build/*' 34 | - 'docs/*' 35 | checks: 36 | php: true 37 | coding_style: 38 | php: { } 39 | -------------------------------------------------------------------------------- /src/config/influxdb.php: -------------------------------------------------------------------------------- 1 | 6 | * @version v0.1.7 7 | */ 8 | 9 | return [ 10 | 11 | 'protocol' => env('INFLUXDB_PROTOCOL', 'http'), 12 | 13 | 'user' => env('INFLUXDB_USER', null), 14 | 15 | 'pass' => env('INFLUXDB_PASS', null), 16 | 17 | 'host' => env('INFLUXDB_HOST', 'localhost'), 18 | 19 | 'port' => env('INFLUXDB_PORT', 8086), 20 | 21 | 'database' => env('INFLUXDB_DATABASE', 'default'), 22 | 23 | 'queue' => [ 24 | 25 | 'enable' => env('INFLUXDB_QUEUE_ENABLE', false), 26 | 27 | 'name' => env('INFLUXDB_QUEUE_NAME', 'default'), 28 | 29 | ], 30 | 31 | 'log' => [ 32 | 33 | 'monolog' => env('INFLUXDB_LOG_MONOLOG', false), 34 | 35 | 'level' => env('INFLUXDB_LOG_LEVEL', 'DEBUG'), 36 | 37 | 'limit' => env('INFLUXDB_LOG_LIMIT', 5), 38 | 39 | ], 40 | 41 | 'timeout' => env('INFLUXDB_TIMEOUT', 5), 42 | 43 | 'verify_ssl' => env('INFLUXDB_VERIFY_SSL', true), 44 | 45 | ]; 46 | -------------------------------------------------------------------------------- /src/Jobs/Job.php: -------------------------------------------------------------------------------- 1 | 6 | * @version v0.1.7 7 | */ 8 | declare(strict_types=1); 9 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; 11 | 12 | use Illuminate\Bus\Queueable; 13 | use Illuminate\Queue\SerializesModels; 14 | use Illuminate\Queue\InteractsWithQueue; 15 | use Illuminate\Contracts\Queue\ShouldQueue; 16 | use Illuminate\Foundation\Bus\Dispatchable; 17 | 18 | /** 19 | * Class Job. 20 | */ 21 | class Job implements ShouldQueue 22 | { 23 | use Dispatchable; 24 | use InteractsWithQueue; 25 | use Queueable; 26 | use SerializesModels; 27 | 28 | /** 29 | * @var array 30 | */ 31 | public $args; 32 | 33 | /** 34 | * Write constructor. 35 | * 36 | * @param array $args 37 | */ 38 | public function __construct(array $args = []) 39 | { 40 | if (count($args)) { 41 | $this->args = $args; 42 | } 43 | } 44 | 45 | /** 46 | * @return array 47 | */ 48 | public function tags(): array 49 | { 50 | return [static::class]; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /phpdoc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | laravel-database-influxdb docs 4 | 5 | \AustinHeap\Database\InfluxDb 6 | build/docs 7 | utf8 8 | 9 | TODO 10 | 11 | public,protected,private 12 | 13 | php 14 | 15 | 16 | 17 | docs 18 | 19 | 20 |