-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext.funnelql.js
115 lines (98 loc) · 1.78 KB
/
ext.funnelql.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
var $FQL = {};
$FQL.init = function() {};
$FQL.parse = function() {};
$FQL.query = function() {};
$FQL.on = function() {};
$FQL.off = function() {};
$FQL.tag = function() {};
$FQL.nav = function() {};
$FQL.debug = function() {};
var TOKEN_REGEX = {
"whitespace": '',
// query method
"method": '',
// path query operator
"path_operator": '',
"count_operator": '',
"str": '',
"and": '',
"or": '',
"comma": '',
"fn_args_bool": '',
// numeric
"operator": '',
"num": '',
// date / time
"time": '',
"date": ''
};
// query token index
var QUERY_REGEX_INDEX = {
"base": '',
"path": '',
"fn_args": '',
"url_page": '',
"page": '',
"count": '',
"since": ''
};
var QUERY_IGNORE_INDEX = {
"global": '',
"fn_args": ''
};
var QUERY_METHODS_INDEX = {
"base": '',
"path": '',
"url_page": '',
"page": '',
"count": '',
"since": ''
};
var QUERY_IGNORE_INDEX = {
"global": '',
"fn_args": ''
};
var parse_log = ['', [{
fql: '',
json: '',
cache: ''
}]];
var query = [];
query[0] = {
fn: '',
args: '',
funnel: '',
url: '',
regex: '',
path: '',
count: '',
since: '',
page: ''
};
var conditions = {
minTime: '',
maxTime: '',
pathOffset: {
date: '',
path: ''
},
pathOperator: '',
offset: '',
count: '',
pathRange: '',
pathDepth: ''
};
var log = {
visits: ''
}
function FunnelQL_Parser_Error(message, startLine, startCol, endLine, endCol) {
this.name = '';
this.message = message;
this.startLine = startLine;
this.startCol = startCol;
this.endLine = endLine;
this.endCol = endCol;
this.toObject = function() {}
};
window.$FQL = $FQL;
window['funnelql-worker'] = '';