Skip to content

Instantly share code, notes, and snippets.

View novaknole's full-sized avatar

Giorgi Lagidze novaknole

View GitHub Profile
payments
id user_id vehicle_id amount status
certificates
id payment_id cert_path
&&&&&&&&&&&&&&
payments
<thead>
<Container
:tag="{ value: 'tr' }"
orientation="horizontal"
@drop="onDrop"
>
<td></td>
<Draggable
v-for="(level, idx) in columns"
{
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();
}
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,
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);
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;
<template>
<div style="opacity:0.6;">
<JqxScheduler ref="myScheduler"
:width="width"
:height="600"
:source="dataAdapter"
:resources="resources"
:appointmentDataFields="appointmentDataFields"
:views="views"
:view="'dayView'"
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);
}
}
<template>
<div style="opacity:0.6;">
<JqxScheduler ref="myScheduler"
:width="width"
:height="600"
:source="dataAdapter"
:resources="resources"
:appointmentDataFields="appointmentDataFields"
:views="views"
:view="'dayView'"
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])
};