Compare commits
No commits in common. "2b7ae75cc3ec4919bb88d473da086d2215c8b724" and "4bc854bf000aef6479cce6e3cdf1641c2458e894" have entirely different histories.
2b7ae75cc3
...
4bc854bf00
@ -97,19 +97,14 @@
|
|||||||
methods: {
|
methods: {
|
||||||
strHashHSL,
|
strHashHSL,
|
||||||
gettags(row) {
|
gettags(row) {
|
||||||
var res = {}, re, matches;
|
var res = {}, matches;
|
||||||
if((row.RESOURCENAME) && (matches = row.RESOURCENAME.replace(/\W+/g, '-').replace(/^-+|-+$/g, ''))) res[matches.toLowerCase()] = matches;
|
if((row.RESOURCENAME) && (matches = row.RESOURCENAME.replace(/\W+/g, '-').replace(/^-+|-+$/g, ''))) res[matches.toLowerCase()] = matches;
|
||||||
if(row.WALKIN != '0') res['walkin'] = 'WALKIN';
|
if(row.WALKIN != '0') res['walkin'] = 'WALKIN';
|
||||||
if(row.CANCELLED != '0') res['cancelled'] = 'CANCELLED';
|
if(row.CANCELLED != '0') res['cancelled'] = 'CANCELLED';
|
||||||
else if(row.NOSHOW != '0') res['noshow'] = 'NOSHOW';
|
else if(row.NOSHOW != '0') res['noshow'] = 'NOSHOW';
|
||||||
else if(row.CHECKOUT) res['checkedout'] = 'CHECKEDOUT';
|
else if(row.CHECKOUT) res['checkedout'] = 'CHECKEDOUT';
|
||||||
else if(row.CHECKIN) res['checkedin'] = 'CHECKEDIN';
|
else if(row.CHECKIN) res['checkedin'] = 'CHECKEDIN';
|
||||||
if(row.NOTE) {
|
if((row.NOTE) && (matches = row.NOTE.match(/#[0-9a-z][\w-]*/gi))) matches.reduce((acc, val) => (acc[val.substring(1).toLowerCase()] = val.substring(1), acc), res);
|
||||||
re = /#([0-9a-z][\w-]*)/gi;
|
|
||||||
while(matches = re.exec(row.NOTE)) res[matches[1].toLowerCase()] = matches[1];
|
|
||||||
re = /Dr[\.\s]*\b([a-z][\w-]*)/gi;
|
|
||||||
while(matches = re.exec(row.NOTE)) res[matches[1].toLowerCase()] = matches[1];
|
|
||||||
}
|
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
filter_conj(tags) {
|
filter_conj(tags) {
|
||||||
@ -135,7 +130,6 @@
|
|||||||
this.$watch(
|
this.$watch(
|
||||||
() => (this.client, this.selection, this.date_begin, this.date_end, {}),
|
() => (this.client, this.selection, this.date_begin, this.date_end, {}),
|
||||||
debounce(async () => {
|
debounce(async () => {
|
||||||
this.filter = {};
|
|
||||||
window.clearTimeout(this.timer);
|
window.clearTimeout(this.timer);
|
||||||
this.update();
|
this.update();
|
||||||
}, 500)
|
}, 500)
|
||||||
|
@ -463,7 +463,7 @@ Client.fromCookie = async function(secret, defaulthost='vista.northport.med.va.g
|
|||||||
console.log('Using saved secret and connection', secret);
|
console.log('Using saved secret and connection', secret);
|
||||||
var cid = localstate.cid;
|
var cid = localstate.cid;
|
||||||
var client = Client.fromID(cid, secret);
|
var client = Client.fromID(cid, secret);
|
||||||
if((await vista.call(cid, { method: 'XWB_IM_HERE', ttl: 0, stale: false, id: Date.now() })).result == '1') {
|
if((await vista.call(cid, { method: 'XWB_IM_HERE', ttl: 30, id: Date.now() })).result == '1') {
|
||||||
var server = await client.serverinfo();
|
var server = await client.serverinfo();
|
||||||
if((host[0] == server.result.host) && (host[1] == server.result.port)) {
|
if((host[0] == server.result.host) && (host[1] == server.result.port)) {
|
||||||
localstate.host = host.join(':');
|
localstate.host = host.join(':');
|
||||||
|
Loading…
Reference in New Issue
Block a user