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
payments | |
id user_id vehicle_id amount status | |
certificates | |
id payment_id cert_path | |
&&&&&&&&&&&&&& | |
payments |
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
<thead> | |
<Container | |
:tag="{ value: 'tr' }" | |
orientation="horizontal" | |
@drop="onDrop" | |
> | |
<td></td> | |
<Draggable | |
v-for="(level, idx) in columns" |
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
{ | |
path:'/implicit/callback', | |
name:'okta-callback', | |
component: Auth.handleCallback(), | |
meta: { layout:'Main', requiresAuth:false }, | |
beforeEnter: (to, from, next) => { | |
console.log("haime?"); | |
localStorage.setItem("referrerPath", "giorgi"); | |
next(); | |
} |
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
console.log(await Vue.prototype.$auth.getUser(), " first one"); | |
context.commit("SET_PAGE_LOADING") | |
setTimeout(async () => { | |
let user = await Vue.prototype.$auth.getUser(); | |
let userLoggedIn = await Vue.prototype.$auth.isAuthenticated() | |
let accessToken = await Vue.prototype.$auth.getAccessToken() | |
console.log(user, " second one"); | |
context.commit("UNSET_PAGE_LOADING") | |
context.commit("SET_USER_DATA", { | |
user:user, |
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 _bad_locations = []; | |
for(var i=0; i < _data.length; i++) { | |
if(_data[i].latitude == "" || _data[i].latitude == "0" || _data[i].longitude == "" || _data[i].longitude == "0") { | |
_bad_locations.push(_data[i]); | |
} | |
} | |
_NSApp.vrm.session.fixLocations(_bad_locations); | |
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
Array.prototype.matchAssociative = function(_key,_value,_isfuzzy,_opts) { | |
var _array = []; | |
_value = ["string", "number"].inArray(typeof(_value)) ? [_value] : _value; | |
var _fuzzy = _isfuzzy == null ? false : _isfuzzy; | |
var _caseSensitive = true; | |
var _isSortedByKey = false; | |
var _keyMatch = false; | |
if (_opts) { | |
if (_opts.caseSensitive && typeof _opts.caseSensitive == "boolean") _caseSensitive = _opts.caseSensitive; |
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
<template> | |
<div style="opacity:0.6;"> | |
<JqxScheduler ref="myScheduler" | |
:width="width" | |
:height="600" | |
:source="dataAdapter" | |
:resources="resources" | |
:appointmentDataFields="appointmentDataFields" | |
:views="views" | |
:view="'dayView'" |
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
changedAppointments(e){ | |
let updatedAppointments = []; | |
let appointments = this.$refs.myScheduler.getAppointments(); | |
for(let i=0; i<appointments.length; i++){ | |
let record = this.mainDataAdapter.records.find(appointment => appointment.id == appointments[i].id); | |
appointments[i].originalData.workorder_id = record.workorder_id; | |
updatedAppointments.push(appointments[i].originalData); | |
} | |
} |
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
<template> | |
<div style="opacity:0.6;"> | |
<JqxScheduler ref="myScheduler" | |
:width="width" | |
:height="600" | |
:source="dataAdapter" | |
:resources="resources" | |
:appointmentDataFields="appointmentDataFields" | |
:views="views" | |
:view="'dayView'" |
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
showMarkers(){ | |
let points, bounds; | |
points = bounds = []; | |
for(let i=0; i < this.markers.length; i++){ | |
if(!this.map.hasLayer(this.markers[i])){ | |
this.map.addLayer(this.markers[i]); | |
let p = new L.latLng(this.markers[i].getLatLng().lat, this.markers[i].getLatLng().lng); | |
points.push(p); | |
this.oms.addMarker(this.markers[i]) | |
}; |