Skip to content

Commit

Permalink
Include dist dir in repo and host from rawgit
Browse files Browse the repository at this point in the history
  • Loading branch information
beefo committed Sep 26, 2016
1 parent bdae07e commit 1f70f77
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
dist
.tmp
.sass-cache
bower_components
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# addin-fuel-transaction-import
An add-in to read fuel card transactions from a file and import to MyGeotab database
An add-in to read fuel card transactions from a file and import to MyGeotab database

### Installation
Add the configuration below to the to the system setting -> add-ins section of the MyGeotab database
```
{
"name": "Fuel Transaction Import (by Geotab)",
"supportEmail": "support@geotab.com",
"version": "2.1.2",
"version": "2.2.0",
"items": [{
"icon": "https://4f3465123da62bdd31d958f0ad36d9b3485a550d.googledrive.com/host/0B2gIwKD5rJDcUGZLRy12X0J5dG8/images/icon.png",
"icon": "https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/images/icon.png",
"path": "EngineMaintenanceLink/",
"menuName": {
"en": "Fuel Transaction Import"
},
"url": "https://4f3465123da62bdd31d958f0ad36d9b3485a550d.googledrive.com/host/0B2gIwKD5rJDcUGZLRy12X0J5dG8/importFuelTransactions.html"
"url": "https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/importFuelTransactions.html"
}]
}
```
Expand Down
4 changes: 2 additions & 2 deletions app/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Fuel Transaction Import (by Geotab)",
"supportEmail": "support@geotab.com",
"version": "2.1.2",
"version": "2.2.0",
"items": [
{
"icon": "images/icon.png",
Expand All @@ -15,7 +15,7 @@
"dev": {
"root": "importFuelTransactions",
"dist": {
"host": "https://4f3465123da62bdd31d958f0ad36d9b3485a550d.googledrive.com/host/0B2gIwKD5rJDcUGZLRy12X0J5dG8/"
"host": "https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/"
}
}
}
13 changes: 13 additions & 0 deletions dist/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Fuel Transaction Import (by Geotab)",
"supportEmail": "support@geotab.com",
"version": "2.2.0",
"items": [{
"icon": "https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/images/icon.png",
"path": "EngineMaintenanceLink/",
"menuName": {
"en": "Fuel Transaction Import"
},
"url": "https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/importFuelTransactions.html"
}]
}
2 changes: 2 additions & 0 deletions dist/generic_fuel_card_csv_file_sample.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIN,Description,Serial Number,Licence Plate,Comments,Date Time,Volume,Cost,Currency Code,Odometer,Longitude,Latitude,Driver Name,Product Type,User Defined Field A
XXXXXXXXXXXXXXXX,F150 #1234,G7XXXXXXXXXX,ABAB123,Millennium Falcon,2014-05-26T21:39:08.277Z,100.2,150.2,CAD,19000,-79.7098792,43.4348104,Han Solo,Diesel,2313421313
Binary file added dist/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/importFuelTransactions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1"><title>Import Fuel Transactions</title><link rel="stylesheet" href="https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/styles/vendor.css"><link rel="stylesheet" href="https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/styles/main.css"><script src="https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/scripts/vendor.js"></script><script src="https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/dist/scripts/main.js"></script></head><body><div id="importFuelTransactions" class="app bootstrap" style="display: none"><div class="container-fluid"><section class="row"><div class="col-sm-12"><h1>Import Fuel Transactions</h1><p>Import fuel card transactions to your account. Simply select the file, click <q>Open File<q>, verify the columns are in the corect format and click <q>Import</q>.</q></q></p><p>View fuel transactions by navigating to Engine and Maintenance -> Fuel Usage -> Fill-Ups</p><p>Supported file providers:</p><ul><li>WEX</li><li><label class="btn btn-default btn-xs" title="Shows example of generic fuel card csv format"><input style="display: none" type="checkbox" id="exampleButton">Generic Format</label></li></ul></div></section><!-- alert info --><section class="row"><div class="col-sm-12"><div id="alertInfo" style="display: none" class="alert alert-info"><div class="spinner"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div><span></span></div><div id="alertSuccess" style="display: none" class="alert alert-success">Successfully added <span></span> fuel transactions</div><div id="alertError" style="display: none" class="alert alert-danger">Error: <span></span></div></div></section><!-- sample --><section class="row" id="sample" style="display: none"><div class="col-sm-12"><div class="panel panel-default"><div class="panel-heading">Generic Fuel Card csv file sample</div><div class="panel-body"><p>If your file does not conform to one of the know fuel card csv files types you can convert your csv file to the generic fuel card csv file type. This file type conforms to the FuelTransaction API object specification. See the <a href="https://my.geotab.com/sdk/default.html#/api">API Reference</a> for more details.</p><p>File should include column headings row and data rows.</p><div class="table-responsive"><table class="table table-condensed table-striped table-bordered"><tr><th>VIN</th><th>Description</th><th>Serial Number</th><th>Licence Plate</th><th>Comments</th><th>Date Time</th><th>Volume</th><th>Cost</th><th>Currency Code</th><th>Odometer</th><th>Longitude</th><th>Latitude</th><th>Driver Name</th><th>Product Type</th><th>[user defined]...</th></tr><tr><td>WMWMF33598T519807</td><td>F150 #1234</td><td>G7CC00000BC1</td><td>ABAB123</td><td>Vehicle 12345</td><td>2014-05-26T21:39:08.277Z</td><td>100.2</td><td>150.2</td><td>CAD</td><td>19000</td><td>-79.70987919999999</td><td>43.434810399999996</td><td>Jane Doe</td><td>DIESEL</td><td>*</td></tr><tr class="info"><td><em>string</em> - vehicle VIN</td><td><em>string</em> - device description</td><td><em>string</em> - device serial number</td><td><em>string</em> - vehicle licence plate</td><td><em>string</em> - comments</td><td><em>string</em> - ISO date time (UTC)</td><td><em>number</em> - volume of fuel added (Litres)</td><td><em>number</em> - cost</td><td><em>string</em> - <a href="http://www.xe.com/iso4217.php" target="_blank">three digit ISO 427 currency code</a></td><td><em>number</em> - driver entered odometer (KM)</td><td><em>number</em> - longitude</td><td><em>number</em> - latitude</td><td><em>string</em> - driver name</td><td><em>string</em> - product type, options:<ul class="list-unstyled"><li>Unknown</li><li>NonFuel</li><li>Regular</li><li>Midgrade</li><li>Premium</li><li>Super</li><li>Diesel</li><li>E85</li><li>CNG</li><li>LPG</li></ul></td><td>other user defined columns can be defined after the mandatory columns. These columns must have a heading and data. The data will be stored in the "SourceData" JSON string.</td></tr></table></div><a class="btn btn-default" href="https://cdn.rawgit.com/Geotab/addin-fuel-transaction-import/master/app/generic_fuel_card_csv_file_sample.csv">Download sample csv file</a></div></div></div></section><!-- file select --><section class="row" id="fileSelectContainer"><div class="col-sm-12"><form class="form-horizontal" role="form" id="form"><fieldset><legend>Select File</legend><div class="form-group"><label class="col-sm-2 col-lg-1 control-label" for="files">Select file</label><div class="col-sm-6 col-md-4 col-lg-3"><div class="input-group"><span class="input-group-btn"><span class="btn btn-default btn-file">Browse <input type="file" id="files" name="fileToUpload"> </span></span><input type="text" class="form-control" id="fileName" readonly="readonly"></div><p class="help-block">(.xlsx, .xlsm, .csv)</p></div><div class="col-sm-2 col-lg-1"><button disabled="disabled" class="btn btn-primary" id="parseButton" title="Load fuel card transactions from selected file">Open File</button></div></div><input type="hidden" name="JSON-RPC"></fieldset></form><!-- for ie9 --><iframe name="fileUpload" width="0" height="0" frameborder="0"></iframe></div></section><!-- import --><div id="transactionContainer" style="display: none"><section class="row"><div class="col-sm-12"><div class="btn-toolbar" role="toolbar"><div class="btn-group" role="group" aria-label="..."><button class="btn btn-default" id="cancelButton" title="Cancel">Cancel</button></div><div class="btn-group" role="group" aria-label="..."><div class="input-group"><div class="input-group-btn"><button disabled="disabled" class="btn btn-primary" id="importButton" title="Import fuel card transactions">Import</button></div><label class="sr-only" for="fleet">Fleet</label><select disabled="disabled" class="form-control" id="fleet" title="When a file has more than one fleet, select the fleet from this list."></select></div></div></div></div></section><section class="row"><div class="col-sm-12"><h3>Found fuel transactions!</h3><p>Showing first <span id="listCount"></span> fuel transactions. Verify the columns have the correct values then click import.</p><div class="table-responsive"><table id="transactionList" class="table table-condensed table-striped"></table></div></div></section></div></div></div></body></html>
Loading

0 comments on commit 1f70f77

Please sign in to comment.