This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request: | |
var form = new FormData(); | |
form.append("email", "admin@patienttranslate.com"); | |
form.append("password", "Xg7h2@Txx&hqYAkbmUMS"); | |
var settings = { | |
"async": true, | |
"crossDomain": true, | |
"url": "http://localhost:8000/api/v1/auth/login", | |
"method": "POST", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\SoftDeletes; | |
use Spatie\Activitylog\Traits\LogsActivity; | |
class Product extends Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use App\User; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Dingo\Api\Routing\Helpers; | |
class CheckApiToken |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Requests\ProductCreateRequest; | |
use App\Http\Requests\ProductDeleteRequest; | |
use App\Http\Requests\ProductEditRequest; | |
use App\Http\Requests\ProductGetRequest; | |
use App\Http\Requests\ProductPutRequest; | |
use App\Inventory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Database\Eloquent\SoftDeletes; | |
use App\Http\Requests\InventoryCreateRequest; | |
use App\Http\Requests\InventoryGetRequest; | |
use App\Inventory; | |
use App\Product; | |
use App\Vendor; | |
use Illuminate\Http\Request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(types) { | |
case 'point': | |
var point = new Point(result.features[i].geometry.coordinates); | |
geometryPoint =point | |
break; | |
case 'polyline': | |
var polyline = new Polyline(inSpatialReference); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(types) { | |
case 'point': | |
var point = new Point(result.features[i].geometry.coordinates); | |
geometryPoint =point | |
break; | |
case 'polyline': | |
polyline = new Polyline({ | |
paths: [result.features[i].geometry.coordinates] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var featuresArr = []; | |
var btnDelete, selectedGraphic, btnSave, alreadyLoad; | |
var map, editToolbar; | |
var lat = ""; | |
var long = ""; | |
var tb; | |
var mapZoom; | |
var shapeInfo = ''; | |
var vectorLayerArr = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.getSavedMap = function(req, res) { | |
var userName = req.params.userName; | |
MapDrawing.find({ | |
userName: userName, | |
trekName: { | |
$exists: true | |
}, | |
'features.0': { | |
$exists: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replaceURLString(level, row, column, finalFilterUrl) { | |
finalFilterUrl = finalFilterUrl.replace("{z}", level).replace("{x}", column).replace("{y}", row); | |
finalFilterUrl = finalFilterUrl.replace("${level}", level).replace("${col}", column).replace("${row}", row); | |
finalFilterUrl = finalFilterUrl.replace("{l}", level); | |
finalFilterUrl = finalFilterUrl.replace("{abc}", "a").replace("{SHASH}", "0").replace("{SHASHPLUSONE}", "1"); | |
if (finalFilterUrl.indexOf("{nzy}") !== -1) { | |
var filterUrl = finalFilterUrl.replace("{z}", level).replace("{x}", column).replace("{y}", row); | |
var vData = ((1 << level) - 1 - row); | |
finalFilterUrl = filterUrl.replace("{nzy}", vData); |
NewerOlder