Compare commits
3 Commits
4bc854bf00
...
2b7ae75cc3
Author | SHA1 | Date | |
---|---|---|---|
2b7ae75cc3 | |||
f0dcabe6b8 | |||
0ccf124cf0 |
@ -97,14 +97,19 @@
|
|||||||
methods: {
|
methods: {
|
||||||
strHashHSL,
|
strHashHSL,
|
||||||
gettags(row) {
|
gettags(row) {
|
||||||
var res = {}, matches;
|
var res = {}, re, 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) && (matches = row.NOTE.match(/#[0-9a-z][\w-]*/gi))) matches.reduce((acc, val) => (acc[val.substring(1).toLowerCase()] = val.substring(1), acc), res);
|
if(row.NOTE) {
|
||||||
|
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) {
|
||||||
@ -130,6 +135,7 @@
|
|||||||
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: 30, id: Date.now() })).result == '1') {
|
if((await vista.call(cid, { method: 'XWB_IM_HERE', ttl: 0, stale: false, 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