logster 2.7.0 → 2.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -1
- data/.travis.yml +0 -1
- data/CHANGELOG.md +23 -0
- data/README.md +12 -2
- data/assets/javascript/client-app.js +199 -164
- data/assets/javascript/vendor.js +3535 -4774
- data/assets/stylesheets/client-app.css +1 -1
- data/assets/stylesheets/vendor.css +1 -4
- data/build_client_app.sh +1 -1
- data/client-app/.eslintignore +0 -2
- data/client-app/.gitignore +0 -2
- data/client-app/app/components/message-info.js +11 -4
- data/client-app/app/controllers/index.js +5 -0
- data/client-app/app/lib/utilities.js +3 -1
- data/client-app/app/models/group.js +5 -1
- data/client-app/app/models/message.js +26 -5
- data/client-app/app/styles/app.css +20 -13
- data/client-app/app/templates/components/actions-menu.hbs +3 -3
- data/client-app/app/templates/components/back-trace.hbs +1 -1
- data/client-app/app/templates/components/message-info.hbs +1 -1
- data/client-app/app/templates/components/message-row.hbs +2 -2
- data/client-app/app/templates/components/page-nav.hbs +4 -4
- data/client-app/app/templates/components/patterns-list.hbs +4 -4
- data/client-app/app/templates/index.hbs +5 -5
- data/client-app/config/icons.js +26 -0
- data/client-app/package-lock.json +2160 -1933
- data/client-app/package.json +9 -8
- data/client-app/tests/integration/components/back-trace-test.js +1 -1
- data/client-app/tests/integration/components/env-tab-test.js +2 -2
- data/lib/logster/base_store.rb +1 -1
- data/lib/logster/message.rb +1 -5
- data/lib/logster/middleware/debug_exceptions.rb +2 -4
- data/lib/logster/middleware/reporter.rb +8 -1
- data/lib/logster/middleware/viewer.rb +8 -8
- data/lib/logster/redis_store.rb +3 -0
- data/lib/logster/version.rb +1 -1
- data/logster.gemspec +4 -5
- data/test/logster/middleware/test_reporter.rb +23 -0
- data/test/logster/test_base_store.rb +12 -0
- data/test/logster/test_group.rb +1 -1
- data/test/logster/test_message.rb +1 -1
- metadata +9 -28
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +0 -640
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6bfa37a007e1a0c6949cf94791f4d910af327bf8a715c155f33bab108813f1f
|
4
|
+
data.tar.gz: cca6f8e9ce0edd51c6ff7d370fac3e75740cbe96cfd43873aee7dc3b3d3e6ebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b84f20df74b3613493dbf752cf31fda784c070384f7d83c0aa9f28fe288b8c9ef8c5fc3ddd56fe5873a442684c43c1298c8e78d4700791f62717bb70230cf341
|
7
|
+
data.tar.gz: 676e6b97dc13dfe5965612b5548c8475e517d5307a705e9c82d6fe05e6069827515d1e2938dfc90c9c66836931ef4e997c2fdd94dadd701e8105ab525f027e53
|
data/.rubocop.yml
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
inherit_gem:
|
2
|
+
rubocop-discourse: default.yml
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
- 2020-08-11: 2.9.2
|
4
|
+
|
5
|
+
- FIX: `report_js_error` incorrectly denying logs when Redis#exists returns integer
|
6
|
+
|
7
|
+
- 2020-07-20: 2.9.1
|
8
|
+
|
9
|
+
- FIX: Missing application backtrace in chained loggers.
|
10
|
+
|
11
|
+
- 2020-06-11: 2.9.0
|
12
|
+
|
13
|
+
- FEATURE: Allows JS errors to specify a log severity
|
14
|
+
- DEV: Several dependencies upgrades
|
15
|
+
- FIX: Don't search if the phrase hasn't changed
|
16
|
+
- UX: Distinguish the value of the current env from the values of other envs in a merged message
|
17
|
+
|
18
|
+
- 2020-03-30: 2.8.0
|
19
|
+
|
20
|
+
- FEATURE: Upgrade icons to Font Awesome 5
|
21
|
+
|
22
|
+
- 2020-03-03: 2.7.1
|
23
|
+
|
24
|
+
- FIX: Stop env mutation to allow all chained loggers to have the same env (#110)
|
25
|
+
|
3
26
|
- 2020-02-26: 2.7.0
|
4
27
|
|
5
28
|
- FEATURE: Make log message max length configurable and bump the default to 2000 (#109)
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ And then execute:
|
|
19
19
|
|
20
20
|
$ bundle
|
21
21
|
|
22
|
-
|
22
|
+
To make logster web available add the following to your `routes.rb`:
|
23
23
|
|
24
24
|
```
|
25
25
|
constraints lambda { |req| req.session["admin"] } do
|
@@ -50,7 +50,7 @@ Logster can be configured using `Logster.config`:
|
|
50
50
|
|
51
51
|
- `Logster.config.maximum_message_length` : set a maximum length for log messages that are shown inside the `info` tab and in the message rows in the UI. Messages that exceed the specified length will be truncated and an ellipsis will be appended to indicate that the message has been truncated. Default value is 2000.
|
52
52
|
|
53
|
-
- `Logster.config.maximum_message_size_bytes` : set a maximum size for message objects. Default value is 10,000. If a message size exceeds this limit, Logster will first remove all occurrences of `gems_dir` (more on this config below) from the backtrace and computes the size again; if the message is still above the limit, Logster will remove as many as character as needed from the backtrace to bring the size below the limit. It's discouraged to set this config to a really low value (e.g. less than 2000) because a message needs a minimum amount of data in order to make sense (the minimum amount varies per message), so the closer the limit is to the
|
53
|
+
- `Logster.config.maximum_message_size_bytes` : set a maximum size for message objects. Default value is 10,000. If a message size exceeds this limit, Logster will first remove all occurrences of `gems_dir` (more on this config below) from the backtrace and computes the size again; if the message is still above the limit, Logster will remove as many as character as needed from the backtrace to bring the size below the limit. It's discouraged to set this config to a really low value (e.g. less than 2000) because a message needs a minimum amount of data in order to make sense (the minimum amount varies per message), so the closer the limit is to the minimum amount of space needed, the more of the backtrace will be removed. Keep this in mind when tweaking this config.
|
54
54
|
|
55
55
|
- `Logster.config.max_env_bytes` : set a maximum size for `env`. Default value is 1000. In case `env` is an array of hashes, this limit applies to the individual hashes in the array rather than the whole array. If an `env` hash exceeds this limit, Logster will take the biggest subset of key-value pairs whose size is below the limit. If the hash has a key with the name `time`, it will always be included.
|
56
56
|
|
@@ -100,6 +100,16 @@ The reason this doesn't happen in rails apps is because ActiveSupport has a monk
|
|
100
100
|
end
|
101
101
|
```
|
102
102
|
|
103
|
+
### Mount using devise (method 2)
|
104
|
+
Change :admin_user symbol with your devise user, example :user.
|
105
|
+
In -> lambda block change admin? method with your authorization method
|
106
|
+
Or simply define a admin? method in you user model.
|
107
|
+
```
|
108
|
+
authenticate :admin_user, ->(u) { u.admin? } do
|
109
|
+
mount Logster::Web, at: "/logs"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
103
113
|
Out of the box, logster will use the default redis connection, to customise, in `config/application.rb`
|
104
114
|
|
105
115
|
```
|
@@ -1,70 +1,99 @@
|
|
1
1
|
"use strict"
|
2
|
-
define("client-app/
|
3
|
-
|
4
|
-
|
5
|
-
return
|
6
|
-
|
2
|
+
define("client-app/app",["exports","client-app/resolver","ember-load-initializers","client-app/config/environment"],(function(e,t,n,r){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
|
3
|
+
if(Reflect.construct.sham)return!1
|
4
|
+
if("function"==typeof Proxy)return!0
|
5
|
+
try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()
|
6
|
+
return function(){var n,r=c(e)
|
7
|
+
if(t){var a=c(this).constructor
|
8
|
+
n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments)
|
9
|
+
return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
|
10
|
+
return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
11
|
+
var p=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
|
12
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)})(a,Ember.Application)
|
13
|
+
var n=i(a)
|
14
|
+
function a(){var e
|
15
|
+
o(this,a)
|
16
|
+
for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l]
|
17
|
+
return d(u(e=n.call.apply(n,[this].concat(i))),"modulePrefix",r.default.modulePrefix),d(u(e),"podModulePrefix",r.default.podModulePrefix),d(u(e),"Resolver",t.default),e}return a}()
|
18
|
+
e.default=p,(0,n.default)(p,r.default.modulePrefix)})),define("client-app/component-managers/glimmer",["exports","@glimmer/component/-private/ember-component-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("client-app/components/actions-menu",["exports","client-app/lib/decorators"],(function(e,t){var n
|
7
19
|
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
8
|
-
var r=Ember.Component.extend((
|
9
|
-
e.default=
|
10
|
-
|
11
|
-
var o=
|
12
|
-
if(
|
13
|
-
var
|
14
|
-
|
15
|
-
if(
|
16
|
-
|
20
|
+
var r,a,o,s,i,l,u=Ember.Component.extend((r=n={showMenu:!1,tagName:"span",outsideClickHandler:function(e){this.element&&!this.element.contains(e.target)&&this.element!==e.target&&(this.set("showMenu",!1),this.updateMenu())},updateMenu:function(){this.showMenu?this.addOutsideClickHandler():this.removeOutsideClickHandler()},addOutsideClickHandler:function(){document.addEventListener("click",this.outsideClickHandler)},removeOutsideClickHandler:function(){document.removeEventListener("click",this.outsideClickHandler)},willDestroyElement:function(){this._super.apply(this,arguments),this.removeOutsideClickHandler()},actions:{expandMenu:function(){this.toggleProperty("showMenu"),this.updateMenu()},share:function(){this.share()}}},a="outsideClickHandler",o=[t.bound],s=Object.getOwnPropertyDescriptor(n,"outsideClickHandler"),i=n,l={},Object.keys(s).forEach((function(e){l[e]=s[e]})),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0),l=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),l),i&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(i):void 0,l.initializer=void 0),void 0===l.initializer&&(Object.defineProperty(r,a,l),l=null),n))
|
21
|
+
e.default=u})),define("client-app/components/back-trace",["exports","client-app/lib/preload"],(function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return
|
22
|
+
var n=[],r=!0,a=!1,o=void 0
|
23
|
+
try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){a=!0,o=l}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return
|
24
|
+
if("string"==typeof e)return r(e,t)
|
25
|
+
var n=Object.prototype.toString.call(e).slice(8,-1)
|
26
|
+
"Object"===n&&e.constructor&&(n=e.constructor.name)
|
27
|
+
if("Map"===n||"Set"===n)return Array.from(e)
|
28
|
+
if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length)
|
29
|
+
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
|
30
|
+
return r}function a(e,t){return!(!e||!t||t.length>e.length)&&e.substring(0,t.length)===t}function o(){return t.default.get("backtrace_links_enabled")}function s(e){return e&&"/"!==e[e.length-1]?e+"/":e}function i(e){var t=e.repo,n=e.path,r=e.filename,a=e.lineNumber,o=e.commitSha,i=void 0===o?null:o,l=s(t)
|
31
|
+
return/\/tree\//.test(l)||(l+="blob/",l+=i?"".concat(i,"/"):"master/"),l+=n+r,/^[0-9]+$/.test(a)&&(l+="#L".concat(a)),l}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
32
|
+
var l=Ember.Component.extend({GithubURLForGem:function(e){var r=null
|
33
|
+
if(!o())return r
|
34
|
+
var s=n(e.match(/([^/]+)\/(.+\/)(.+):(\d+):.*/)||[],5),l=s[1],u=s[2],c=s[3],d=s[4],p=t.default.get("gems_data").filter((function(e){return a(l,"".concat(e.name,"-"))})).sortBy("name.length").reverse()[0]
|
35
|
+
return p&&(r=i({repo:p.url,path:u,filename:c,lineNumber:d})),r},GithubURLForApp:function(e){var r=null
|
36
|
+
if(!o())return r
|
37
|
+
var l=t.default.get("directories").filter((function(t){return a(e,t.path)})).sortBy("path.length").reverse()[0]
|
17
38
|
if(l){var u,c,d,p=s(l.path),f=e.substring(p.length),m="",h=-1!==f.indexOf("/"),v=h?/(.+\/)(.+):(\d+)(:.*)/:/(.+):(\d+)(:.*)/
|
18
|
-
if(h){var b=f.match(v)||[],
|
19
|
-
m=
|
20
|
-
u=
|
21
|
-
|
22
|
-
return s
|
23
|
-
return Array.isArray(this.env)?e=this.env.map((function(e){return e.application_version})).filter((function(e){return e}))[0]:this.env&&(e=this.env.application_version),e||
|
24
|
-
return this.backtrace&&0!==this.backtrace.length?this.backtrace.split("\n").map((function(
|
25
|
-
return e.substring(
|
26
|
-
return{line:r,url:e.findGithubURL(
|
27
|
-
e.default=
|
28
|
-
var
|
29
|
-
if(this.isEnvArray){var
|
30
|
-
return(n.default.get("env_expandable_keys")||[]).forEach((function(t){if(
|
31
|
-
e.message.env.forEach((function(e){e[t]&&-1===n.indexOf(e[t])&&n.push(e[t])})),
|
32
|
-
e.default=
|
39
|
+
if(h){var b=n(f.match(v)||[],5)
|
40
|
+
m=b[1],u=b[2],c=b[3],d=b[4]}else{var g=n(f.match(v)||[],4)
|
41
|
+
u=g[1],c=g[2],d=g[3]}if(u&&c&&d){var y=l.main_app?this.commitSha:null
|
42
|
+
r=i({repo:l.url,path:m,filename:u,lineNumber:c,commitSha:y})}}return r},findGithubURL:function(e,n){var r=t.default.get("directories")||[],o=a(e,t.default.get("gems_dir")),s=r.some((function(t){return a(e,t.path)}))
|
43
|
+
return o||!s?this.GithubURLForGem(n):this.GithubURLForApp(e)},commitSha:Ember.computed("env",(function(){var e=null
|
44
|
+
return Array.isArray(this.env)?e=this.env.map((function(e){return e.application_version})).filter((function(e){return e}))[0]:this.env&&(e=this.env.application_version),e||t.default.get("application_version")})),lines:Ember.computed("backtrace","commitSha",(function(){var e=this
|
45
|
+
return this.backtrace&&0!==this.backtrace.length?this.backtrace.split("\n").map((function(n){var r=function(e){if(a(e,t.default.get("gems_dir"))){var n=t.default.get("gems_dir")
|
46
|
+
return e.substring(n.length)}return e}(n)
|
47
|
+
return{line:r,url:e.findGithubURL(n,r)}})):[]}))})
|
48
|
+
e.default=l})),define("client-app/components/env-tab",["exports","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
49
|
+
var r=Ember.Component.extend({currentEnv:Ember.computed("isEnvArray","currentEnvPosition",(function(){return this.isEnvArray?this.message.env[this.currentEnvPosition]:this.message.env})),isEnvArray:Ember.computed("message.env",(function(){return Array.isArray(this.get("message.env"))})),html:Ember.computed("isEnvArray","currentEnv","expanded.[]",(function(){var e=this
|
50
|
+
if(this.isEnvArray){var r=(0,t.clone)(this.currentEnv)
|
51
|
+
return(n.default.get("env_expandable_keys")||[]).forEach((function(t){if(r.hasOwnProperty(t)&&!Array.isArray(r[t])){var n=[r[t]]
|
52
|
+
e.message.env.forEach((function(e){e[t]&&-1===n.indexOf(e[t])&&n.push(e[t])})),r[t]=n.length>1?n:n[0]}})),(0,t.buildHashString)(r,!1,this.expanded||[])}return(0,t.buildHashString)(this.get("message.env"))})),click:function(e){var t=e.target,r=t.dataset.key;-1!==(n.default.get("env_expandable_keys")||[]).indexOf(r)&&t.classList.contains("expand-list")&&(e.preventDefault(),this.expanded?this.expanded.pushObject(r):this.set("expanded",[r]))}})
|
53
|
+
e.default=r})),define("client-app/components/fa-icon",["exports","@fortawesome/ember-fontawesome/components/fa-icon"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("client-app/components/message-info",["exports","client-app/lib/preload"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
33
54
|
var n=Ember.Component.extend({showSolveAllButton:Ember.computed.bool("currentRow.group"),buttons:Ember.computed("currentMessage.protected","showSolveButton",(function(){var e=this.get("currentMessage.protected"),t=[]
|
34
|
-
return!e&&this.showSolveButton&&t.push({klass:"solve",action:"solve",icon:"check-square
|
55
|
+
return!e&&this.showSolveButton&&t.push({klass:"solve",action:"solve",icon:"check-square",label:"Solve",prefix:"far",danger:!0}),this.showSolveAllButton&&t.push({klass:"solve-all",action:"solveAll",icon:"check-square",label:"Solve All",prefix:"far",danger:!0}),e?t.push({klass:"unprotect",action:"unprotect",icon:"unlock",prefix:"fas",label:"Unprotect"}):t.push({klass:"remove",action:"remove",icon:"trash-alt",label:"Remove",prefix:"far",danger:!0},{klass:"protect",action:"protect",icon:"lock",prefix:"fas",label:"Protect"}),t.push({klass:"copy",action:"copyAction",icon:"copy",prefix:"far",label:"Copy"}),t})),showSolveButton:Ember.computed("showSolveAllButton","currentMessage.{canSolve,env}",(function(){return!this.showSolveAllButton&&(this.currentMessage.env?this.currentMessage.canSolve:!!t.default.get("application_version"))})),copy:function(){var e=document.createElement("TEXTAREA")
|
35
56
|
document.body.appendChild(e)
|
36
|
-
var t=this.currentMessage.showCount?"Message (".concat(this.currentMessage.count," copies reported)"):"Message",n="".concat(t,"\n\n").concat(this.currentMessage.message),
|
37
|
-
e.value=
|
57
|
+
var t=this.currentMessage.showCount?"Message (".concat(this.currentMessage.count," copies reported)"):"Message",n="".concat(t,"\n\n").concat(this.currentMessage.message),r="Backtrace\n\n".concat(this.currentMessage.backtrace.split("\n").slice(0,10).join("\n")),a=Array.isArray(this.currentMessage.env)?this.currentMessage.env.map((function(e){return e.HTTP_HOST})).filter((function(e,t,n){return e&&n.indexOf(e)===t})).join(", "):this.currentMessage.env.HTTP_HOST,o=[n,r,a?"Env\n\nHTTP HOSTS: ".concat(a):""].filter((function(e){return e})).join("\n\n")
|
58
|
+
e.value=o,e.select(),document.execCommand("copy"),document.body.removeChild(e)},actions:{tabChanged:function(e){this.onTabChange&&this.onTabChange(e)},protect:function(){this.currentMessage.protect()},unprotect:function(){this.currentMessage.unprotect()},remove:function(){this.removeMessage(this.currentMessage)},solve:function(){this.solveMessage(this.currentMessage)},solveAll:function(){this.currentRow.solveAll()},share:function(){window.location.pathname=this.get("currentMessage.shareUrl")},copyAction:function(){this.copy()}}})
|
38
59
|
e.default=n})),define("client-app/components/message-row",["exports"],(function(e){var t,n
|
39
60
|
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
40
|
-
var
|
41
|
-
if(e){var
|
42
|
-
n=e.scrollHeight-20<
|
61
|
+
var r=Ember.Component.extend({tagName:"div",classNameBindings:["model.rowClass",":message-row","model.selected:selected"],click:function(){this.selectRow()},willInsertElement:function(){if(!t){var e=document.getElementById("top-panel")
|
62
|
+
if(e){var r=parseFloat(getComputedStyle(e).height)
|
63
|
+
n=e.scrollHeight-20<r+e.scrollTop,t=!0}}},didInsertElement:function(){var e=document.getElementById("top-panel")
|
43
64
|
e&&(t=!1,n&&(n=!1,e.scrollTop=e.scrollHeight-parseFloat(getComputedStyle(e).height)))}})
|
44
|
-
e.default=
|
65
|
+
e.default=r})),define("client-app/components/page-nav",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
45
66
|
var t=Ember.Component.extend({classNames:["nav-controls"],classNameBindings:["extraClasses"],disableBackButtons:Ember.computed.equal("position",0),disableForwardButtons:Ember.computed("position","list.length",(function(){return this.position===this.get("list.length")-1})),displayNumber:Ember.computed("position",(function(){return this.position+1})),actions:{takeStep:function(e){var t="back"===e?-1:1
|
46
67
|
if(!(1===t&&this.disableForwardButtons||-1===t&&this.disableBackButtons)){var n=this.position+t
|
47
68
|
this.navigate(n)}},bigJump:function(e){var t="back"===e?0:this.get("list.length")-1
|
48
69
|
this.navigate(t)}}})
|
49
|
-
e.default=t})),define("client-app/components/panel-resizer",["exports","
|
50
|
-
|
51
|
-
|
70
|
+
e.default=t})),define("client-app/components/panel-resizer",["exports","client-app/lib/decorators"],(function(e,t){var n
|
71
|
+
function r(e,t,n,r,a){var o={}
|
72
|
+
return Object.keys(r).forEach((function(e){o[e]=r[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),o),a&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(a):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
73
|
+
var a=["touchmove","mousemove"],o=["touchend","mouseup"],s=["touchstart","mousedown"],i=Ember.Component.extend((r(n={resizing:!1,classNames:["divider"],divideView:function(e){var t=window.innerHeight,n=t-e
|
52
74
|
e<100||e+170>t||(this.divider.style.bottom="".concat(n-5,"px"),this.events.trigger("panelResized",n))},performDrag:function(e){Ember.run.throttle(this,this.throttledPerformDrag,e,25)},throttledPerformDrag:function(e){this.resizing&&this.divideView(e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY)},endDrag:function(){var e=this,t=document.getElementById("overlay")
|
53
|
-
t&&t.parentElement.removeChild(t),this.set("resizing",!1),localStorage&&(localStorage.logster_divider_bottom=parseInt(this.divider.style.bottom,10)),
|
75
|
+
t&&t.parentElement.removeChild(t),this.set("resizing",!1),localStorage&&(localStorage.logster_divider_bottom=parseInt(this.divider.style.bottom,10)),a.forEach((function(t){return document.removeEventListener(t,e.performDrag)})),o.forEach((function(t){return document.removeEventListener(t,e.endDrag)}))},dividerClickHandler:function(e){var t=this
|
54
76
|
e.preventDefault()
|
55
77
|
var n=document.createElement("DIV")
|
56
|
-
n.id="overlay",document.body.appendChild(n),this.set("resizing",!0),
|
57
|
-
this.set("divider",document.querySelector(".divider")),
|
78
|
+
n.id="overlay",document.body.appendChild(n),this.set("resizing",!0),a.forEach((function(e){return document.addEventListener(e,t.performDrag)})),o.forEach((function(e){return document.addEventListener(e,t.endDrag)}))},didInsertElement:function(){var e=this
|
79
|
+
this.set("divider",document.querySelector(".divider")),s.forEach((function(t){e.divider.addEventListener(t,e.dividerClickHandler)})),Ember.run.scheduleOnce("afterRender",this,"initialDivideView")},initialDivideView:function(){var e=localStorage&&localStorage.logster_divider_bottom||300,t=window.innerHeight-parseInt(e,10)
|
58
80
|
this.divideView(t)},willDestroyElement:function(){var e=this
|
59
|
-
|
60
|
-
e.default=
|
61
|
-
|
62
|
-
|
63
|
-
|
81
|
+
s.forEach((function(t){return e.divider.removeEventListener(t,e.dividerClickHandler)}))}},"performDrag",[t.bound],Object.getOwnPropertyDescriptor(n,"performDrag"),n),r(n,"endDrag",[t.bound],Object.getOwnPropertyDescriptor(n,"endDrag"),n),r(n,"dividerClickHandler",[t.bound],Object.getOwnPropertyDescriptor(n,"dividerClickHandler"),n),n))
|
82
|
+
e.default=i})),define("client-app/components/patterns-list",["exports","client-app/models/pattern-item","client-app/lib/utilities"],(function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return
|
83
|
+
if("string"==typeof e)return a(e,t)
|
84
|
+
var n=Object.prototype.toString.call(e).slice(8,-1)
|
85
|
+
"Object"===n&&e.constructor&&(n=e.constructor.name)
|
86
|
+
if("Map"===n||"Set"===n)return Array.from(e)
|
87
|
+
if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length)
|
88
|
+
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
|
89
|
+
return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
90
|
+
var o=Ember.Component.extend({immutable:Ember.computed.not("mutable"),showCounter:Ember.computed.equal("key","suppression"),init:function(){this._super.apply(this,arguments),this.get("patterns.length")<1&&this.get("mutable")&&this.send("create")},allPatterns:Ember.computed("patterns.[]","newPatterns.[]",(function(){var e=this.get("patterns"),t=this.get("newPatterns")||[]
|
91
|
+
return[].concat(r(t.reverse()),r(e.reverse()))})),makeAPICall:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.method
|
92
|
+
return delete e.method,(0,n.ajax)("/patterns/".concat(this.get("key"),".json"),{method:t,data:e})},finallyBlock:function(e){e.set("saving",!1)},catchBlock:function(e,t){t.responseText?e.set("error",t.responseText):e.set("error","Unkown error occured. Please see dev console.")},requestInit:function(e){e.setProperties({saving:!0,error:null})},actions:{create:function(){this.get("newPatterns")||this.set("newPatterns",[]),this.get("newPatterns").pushObject(t.default.create({isNew:!0}))},trash:function(e){var t=this
|
64
93
|
e.get("isNew")?(this.get("newPatterns").removeObject(e),e.destroy()):(this.requestInit(e),this.makeAPICall({method:"DELETE",pattern:e.get("value")}).then((function(){t.get("patterns").removeObject(e),e.destroy()})).catch((function(n){return t.catchBlock(e,n)})).finally((function(){return t.finallyBlock(e)})))},save:function(e){var t=this
|
65
94
|
this.requestInit(e),(e.get("isNew")?this.makeAPICall({method:"POST",pattern:e.valueBuffer,retroactive:!!e.retroactive}).then((function(n){e.updateValue(n.pattern),e.set("isNew",!1),t.get("patterns").pushObject(e),t.get("newPatterns").removeObject(e)})):this.makeAPICall({method:"PUT",pattern:e.get("value"),new_pattern:e.get("valueBuffer")}).then((function(t){e.updateValue(t.pattern),e.set("count",0)}))).catch((function(n){t.catchBlock(e,n)})).finally((function(){return t.finallyBlock(e)}))},resetCount:function(e){var t=this
|
66
|
-
e.set("saving",!0),(0,
|
67
|
-
e.default=
|
95
|
+
e.set("saving",!0),(0,n.ajax)("/reset-count.json",{method:"PUT",data:{pattern:e.get("value"),hard:!!e.get("hard")}}).then((function(){e.set("count",0)})).catch((function(n){return t.catchBlock(e,n)})).finally((function(){return t.finallyBlock(e)}))},checkboxChanged:function(e){e.toggleProperty("retroactive")}}})
|
96
|
+
e.default=o})),define("client-app/components/tab-contents",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
68
97
|
var t=Ember.Component.extend({classNameBindings:["active",":content","name"],isLink:!1,invokeParent:function(e){for(var t=this.get("parentView");t&&!t[e];)t=t.get("parentView")
|
69
98
|
t&&t[e](this)},didInsertElement:function(){this.invokeParent("addTab"),this.get("defaultTab")&&this.invokeParent("selectTab")},willDestroyElement:function(){this.invokeParent("removeTab")}})
|
70
99
|
e.default=t})),define("client-app/components/tabbed-section",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
@@ -75,99 +104,90 @@ e.default=t})),define("client-app/components/time-formatter",["exports","client-
|
|
75
104
|
var n=Ember.Component.extend({tagName:"span",classNames:"auto-update-time",attributeBindings:["dataTimestamp:data-timestamp","title"],title:Ember.computed((function(){return this.get("moment").format()})),dataTimestamp:Ember.computed((function(){return this.get("timestamp")})),moment:Ember.computed((function(){return moment(this.get("timestamp"))})),time:Ember.computed("timestamp",(function(){return(0,t.formatTime)(this.get("timestamp"))}))})
|
76
105
|
e.default=n})),define("client-app/components/update-time",["exports","client-app/lib/utilities"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
77
106
|
var n=Ember.Component.extend({didInsertElement:function(){Ember.run.later(this,this.updateTimes,6e4)},updateTimes:function(){Array.from(document.querySelectorAll(".auto-update-time")).forEach((function(e){var n=parseInt(e.dataset.timestamp)
|
78
|
-
if(n){var
|
79
|
-
|
107
|
+
if(n){var r=(0,t.formatTime)(n)
|
108
|
+
r!==e.innerText&&(e.innerText=r)}})),Ember.run.later(this,this.updateTimes,6e4)}})
|
80
109
|
e.default=n})),define("client-app/controllers/index",["exports","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
81
|
-
var
|
110
|
+
var r=Ember.Controller.extend({showDebug:!0,showInfo:!0,showWarn:!0,showErr:!0,showFatal:!0,search:"",queryParams:["search"],showSettings:Ember.computed((function(){return n.default.get("patterns_enabled")})),resizePanels:function(e){var t=document.getElementById("bottom-panel"),n=document.getElementById("top-panel")
|
82
111
|
t.style.height="".concat(e-13,"px"),n.style.bottom="".concat(e+12,"px")},actionsInMenu:Ember.computed((function(){return this.site.isMobile})),actions:{expandMessage:function(e){e.expand()},selectRowAction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
|
83
112
|
this.model.selectRow(e,t)},tabChangedAction:function(e){this.model.tabChanged(e)},showMoreBefore:function(){this.model.showMoreBefore()},loadMore:function(){return this.model.loadMore()},clear:function(){var e=this
|
84
|
-
confirm("Clear the logs?\n\nCancel = No, OK = Clear")&&(0,t.ajax)("/clear",{type:"POST"}).then((function(){e.model.reload()}))},removeMessage:function(e){var t=this.model.currentRow.group?this.model.currentRow:null,n=this.model.rows,
|
113
|
+
confirm("Clear the logs?\n\nCancel = No, OK = Clear")&&(0,t.ajax)("/clear",{type:"POST"}).then((function(){e.model.reload()}))},removeMessage:function(e){var t=this.model.currentRow.group?this.model.currentRow:null,n=this.model.rows,r=t?n.indexOf(t):n.indexOf(e)
|
85
114
|
e.destroy(),e.set("selected",!1),this.model.set("total",this.model.total-1)
|
86
|
-
var
|
87
|
-
t?(
|
115
|
+
var a=!1,o=0
|
116
|
+
t?(o=t.messages.indexOf(e),t.messages.removeObject(e),o=Math.min(o,t.messages.length-1),0===t.messages.length&&(n.removeObject(t),a=!0)):(n.removeObject(e),a=!0),a?r>0?this.model.selectRow(n[r-1]):this.model.total>0?this.model.selectRow(n[0]):this.model.reload():t&&this.model.selectRow(n[r],{messageIndex:o})},solveMessage:function(e){this.model.solve(e)},groupedMessageChangedAction:function(e){this.model.groupedMessageChanged(e)},envChangedAction:function(e){this.model.envChanged(e)},updateFilter:function(e){var t=this
|
88
117
|
this.toggleProperty(e)
|
89
|
-
var n=[];["Debug","Info","Warn","Err","Fatal"].forEach((function(e,
|
118
|
+
var n=[];["Debug","Info","Warn","Err","Fatal"].forEach((function(e,r){t.get("show".concat(e))&&n.push(r)})),n.push(5),this.model.set("filter",n),this.model.reload().then((function(){return t.model.updateSelectedRow()}))},updateSearch:function(e){e!==this.search&&(e&&1===e.length||Ember.run.debounce(this,this.doSearch,e,250))}},doSearch:function(e){var t=this
|
90
119
|
this.model.set("search",e),this.model.reload().then((function(){return t.model.updateSelectedRow()}))}})
|
91
|
-
e.default=
|
120
|
+
e.default=r})),define("client-app/controllers/show",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
92
121
|
var t=Ember.Controller.extend({envPosition:0,actions:{protect:function(){this.get("model").protect()},unprotect:function(){this.get("model").unprotect()},envChanged:function(e){this.set("envPosition",e)}}})
|
93
|
-
e.default=t})),define("client-app/
|
94
|
-
return
|
95
|
-
var
|
96
|
-
e.default=
|
122
|
+
e.default=t})),define("client-app/helpers/app-version",["exports","client-app/config/environment","ember-cli-app-version/utils/regexp"],(function(e,t,n){function r(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.default.APP.version,o=r.versionOnly||r.hideSha,s=r.shaOnly||r.hideVersion,i=null
|
123
|
+
return o&&(r.showExtended&&(i=a.match(n.versionExtendedRegExp)),i||(i=a.match(n.versionRegExp))),s&&(i=a.match(n.shaRegExp)),i?i[0]:a}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=r,e.default=void 0
|
124
|
+
var a=Ember.Helper.helper(r)
|
125
|
+
e.default=a})),define("client-app/helpers/logster-url",["exports","client-app/lib/preload"],(function(e,t){function n(e){var n=e[0]
|
97
126
|
return"/"!==n[0]&&(n="/".concat(n)),(0,t.getRootPath)()+n}Object.defineProperty(e,"__esModule",{value:!0}),e.logsterUrl=n,e.default=void 0
|
98
|
-
var
|
99
|
-
e.default=
|
127
|
+
var r=Ember.Helper.helper(n)
|
128
|
+
e.default=r})),define("client-app/helpers/or",["exports"],(function(e){function t(e){return e.some((function(e){return e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.or=t,e.default=void 0
|
100
129
|
var n=Ember.Helper.helper(t)
|
101
|
-
e.default=n})),define("client-app/
|
102
|
-
var
|
103
|
-
e.
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
var o
|
110
|
-
o
|
111
|
-
e.default=s})),define("client-app/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","client-app/config/environment"],(function(e,t,n){var a,r
|
112
|
-
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n.default.APP&&(a=n.default.APP.name,r=n.default.APP.version)
|
113
|
-
var s={name:"App Version",initialize:(0,t.default)(a,r)}
|
114
|
-
e.default=s})),define("client-app/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
130
|
+
e.default=n})),define("client-app/initializers/app-init",["exports","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=a,e.default=void 0
|
131
|
+
var r=["component","route"]
|
132
|
+
function a(e){var a,o,s=e.resolveRegistration("config:environment");(0,n.setRootPath)(s.rootURL.replace(/\/$/,"")),"development"===s.environment&&(e.deferReadiness(),(0,t.ajax)("/development-preload.json").then((function(e){document.getElementById("preloaded-data").setAttribute("data-preloaded",JSON.stringify(e))})).catch((function(e){return console.error("Fetching preload data failed.",e)})).finally((function(){return e.advanceReadiness()}))),moment.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"secs",m:"a min",mm:"%d mins",h:"an hr",hh:"%d hrs",d:"a day",dd:"%d days",M:"a mth",MM:"%d mths",y:"a yr",yy:"%d yrs"}}),["","webkit","ms","moz","ms"].forEach((function(e){var t=e+(""===e?"hidden":"Hidden")
|
133
|
+
void 0===document[t]||a||(a=t,o=e+"visibilitychange")})),(0,t.updateHiddenProperty)(a),document.addEventListener(o,(function(){(0,t.resetTitleCount)()}),!1),e.register("events:main",Ember.Object.extend(Ember.Evented).create(),{instantiate:!1}),r.forEach((function(t){return e.inject(t,"events","events:main")}))
|
134
|
+
var i=/mobile/i.test(navigator.userAgent)&&!/iPad/.test(navigator.userAgent)
|
135
|
+
i&&document.body.classList.add("mobile"),e.register("site:main",{isMobile:i},{instantiate:!1}),e.inject("controller","site","site:main")}var o={initialize:a}
|
136
|
+
e.default=o})),define("client-app/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","client-app/config/environment"],(function(e,t,n){var r,a
|
137
|
+
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n.default.APP&&(r=n.default.APP.name,a=n.default.APP.version)
|
138
|
+
var o={name:"App Version",initialize:(0,t.default)(r,a)}
|
139
|
+
e.default=o})),define("client-app/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
115
140
|
var n={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0]
|
116
141
|
e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}}
|
117
|
-
e.default=n})),define("client-app/initializers/
|
118
|
-
var a={name:"ember-data",initialize:t.default}
|
119
|
-
e.default=a})),define("client-app/initializers/export-application-global",["exports","client-app/config/environment"],(function(e,t){function n(){var e=arguments[1]||arguments[0]
|
142
|
+
e.default=n})),define("client-app/initializers/export-application-global",["exports","client-app/config/environment"],(function(e,t){function n(){var e=arguments[1]||arguments[0]
|
120
143
|
if(!1!==t.default.exportApplicationGlobal){var n
|
121
144
|
if("undefined"!=typeof window)n=window
|
122
145
|
else if("undefined"!=typeof global)n=global
|
123
146
|
else{if("undefined"==typeof self)return
|
124
|
-
n=self}var a
|
125
|
-
|
126
|
-
var
|
127
|
-
e.default=
|
128
|
-
|
129
|
-
e.default=
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
if(
|
139
|
-
|
140
|
-
|
141
|
-
if(
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
i.push("<tr><td></td><td><table>"),i.push("<td>".concat(o(t),"</td><td>").concat(e(n,!0),"</td>")),i.push("</table></td></tr>")}))
|
147
|
-
var p=r?"":"env-table"
|
148
|
-
return"<table class='".concat(p,"'>").concat(i.join("\n"),"</table>")},e.clone=function(e){var t={}
|
147
|
+
n=self}var r,a=t.default.exportApplicationGlobal
|
148
|
+
r="string"==typeof a?a:Ember.String.classify(t.default.modulePrefix),n[r]||(n[r]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete n[r]}}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=n,e.default=void 0
|
149
|
+
var r={name:"export-application-global",initialize:n}
|
150
|
+
e.default=r})),define("client-app/lib/decorators",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bound=function(e,t,n){var r=n.value,a="_".concat(t,"Bound")
|
151
|
+
return{get:function(){return this[a]?this[a]:(this.set(a,r.bind(this)),this[a])}}}})),define("client-app/lib/preload",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.setRootPath=function(e){t=e},e.getRootPath=function(){return t},e.init=a,e.mutatePreload=function(e,t){r||a()
|
152
|
+
Em.set(n,e,t)},e.uninitialize=function(){r=!1},e.default=void 0
|
153
|
+
var t,n={},r=!1
|
154
|
+
function a(){var e=document.getElementById("preloaded-data").dataset;(n=JSON.parse(e.preloaded)).rootPath=t,r=!0}var o={get:function(e){return r||a(),Em.get(n,e)}}
|
155
|
+
e.default=o})),define("client-app/lib/utilities",["exports","client-app/lib/preload"],(function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.escapeHtml=i,e.ajax=l,e.preloadOrAjax=function(e,n){var r=t.default.get(e.replace(".json",""))
|
156
|
+
return r?Ember.RSVP.resolve(r):l(e,n)},e.updateHiddenProperty=function(e){r=e},e.isHidden=u,e.increaseTitleCount=function(e){if(!u())return
|
157
|
+
a=a||document.title,o=o||0,o+=e,document.title="".concat(a," (").concat(o,")")},e.resetTitleCount=function(){o=0,document.title=a||document.title},e.formatTime=c,e.buildArrayString=d,e.buildHashString=function e(r,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]
|
158
|
+
if(!r)return""
|
159
|
+
var s=[],l=[],u=t.default.get("env_expandable_keys")||[]
|
160
|
+
Object.keys(r).forEach((function(e){var t=r[e]
|
161
|
+
if(null===t)s.push("null")
|
162
|
+
else if("[object Array]"===Object.prototype.toString.call(t)){var p=""
|
163
|
+
p=-1!==u.indexOf(e)&&!a&&-1===o.indexOf(e)&&t.length>3?"".concat(i(t[0]),', <a class="expand-list" data-key=').concat(e,">").concat(t.length-1," more</a>"):"".concat(i(t[0]),", ").concat(d(t.slice(1,t.length))),s.push("<tr><td>".concat(i(e),"</td><td>").concat(p,"</td></tr>"))}else if("object"===n(t))l.push(e)
|
164
|
+
else if("time"===e&&"number"==typeof t){var f=moment(t).format(),m=c(t)
|
165
|
+
s.push('<tr title="'.concat(f,'"><td>').concat(e,"</td><td>").concat(m,"</td></tr>"))}else s.push("<tr><td>".concat(i(e),"</td><td>").concat(i(t),"</td></tr>"))})),l.length>0&&l.forEach((function(t){var n=r[t]
|
166
|
+
s.push("<tr><td></td><td><table>"),s.push("<td>".concat(i(t),"</td><td>").concat(e(n,!0),"</td>")),s.push("</table></td></tr>")}))
|
167
|
+
var p=a?"":"env-table"
|
168
|
+
return"<table class='".concat(p,"'>").concat(s.join("\n"),"</table>")},e.clone=function(e){var t={}
|
149
169
|
return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}
|
150
|
-
var a,
|
151
|
-
function
|
152
|
-
var
|
153
|
-
if(e=(0,
|
154
|
-
e+=
|
155
|
-
|
156
|
-
if(e>=200&&e<300||304===e){var t=
|
170
|
+
var r,a,o,s={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}
|
171
|
+
function i(e){return String(e).replace(/[&<>"'/]/g,(function(e){return s[e]}))}function l(e,n){return new Ember.RSVP.Promise((function(r,a){n=n||{}
|
172
|
+
var o=new XMLHttpRequest
|
173
|
+
if(e=(0,t.getRootPath)()+e,n.data)for(var s in n.data){var i=-1===e.indexOf("?")?"?":"&"
|
174
|
+
e+=i,e+="".concat(s,"=").concat(encodeURIComponent(n.data[s]))}if(o.open(n.method||n.type||"GET",e),o.setRequestHeader("X-SILENCE-LOGGER",!0),n.headers)for(var l in n.headers)o.setRequestHeader(l,n.headers[l])
|
175
|
+
o.onreadystatechange=function(){if(4===o.readyState){var e=o.status
|
176
|
+
if(e>=200&&e<300||304===e){var t=o.getResponseHeader("Content-Type"),n=o.responseText;/\bjson\b/.test(t)&&(n=JSON.parse(n)),r(n)}else a(o)}},o.send()}))}function u(){return void 0!==r?document[r]:!document.hasFocus}function c(e){var t=moment(e),n=moment()
|
157
177
|
return t.diff(n.startOf("day"))>0?t.format("h:mm a"):t.diff(n.startOf("week"))>0?t.format("dd h:mm a"):t.diff(n.startOf("year"))>0?t.format("D MMM h:mm a"):t.format("D MMM YY")}function d(e){var t=[]
|
158
|
-
return e.forEach((function(e){null===e?t.push("null"):"[object Array]"===Object.prototype.toString.call(e)?t.push(d(e)):t.push(
|
159
|
-
var
|
178
|
+
return e.forEach((function(e){null===e?t.push("null"):"[object Array]"===Object.prototype.toString.call(e)?t.push(d(e)):t.push(i(e.toString()))})),"["+t.join(", ")+"]"}})),define("client-app/models/group",["exports","client-app/models/message","client-app/lib/utilities"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
179
|
+
var r=Ember.Object.extend({selected:!1,showCount:!0,key:Ember.computed.reads("regex"),displayMessage:Ember.computed.reads("messages.firstObject.message"),init:function(){this._super.apply(this,arguments)
|
160
180
|
var e=this.messages.map((function(e){return t.default.create(e)}))
|
161
|
-
this.set("messages",e)},glyph:Ember.computed((function(){return"
|
162
|
-
e.default=
|
163
|
-
var
|
181
|
+
this.set("messages",e)},glyph:Ember.computed((function(){return"clone"})),prefix:Ember.computed((function(){return"far"})),solveAll:function(){return(0,n.ajax)("/solve-group",{type:"POST",data:{regex:this.regex}})}})
|
182
|
+
e.default=r})),define("client-app/models/message-collection",["exports","client-app/lib/utilities","client-app/models/message","client-app/models/group"],(function(e,t,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
183
|
+
var a=[0,1,2,3,4,5],o=Ember.Object.extend({total:0,rows:null,currentRow:null,currentTab:null,currentEnvPosition:0,currentGroupedMessagesPosition:0,init:function(){this._super.apply(this,arguments),this.setProperties({filter:a,search:"",rows:Ember.A()})},currentMessage:Ember.computed("currentRow","currentGroupedMessagesPosition",(function(){var e=this.currentRow,t=this.currentGroupedMessagesPosition
|
164
184
|
return e&&e.group?e.messages[t]:e})),solve:function(e){var t=this
|
165
185
|
e.solve().then((function(){t.reload()}))},selectRow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.currentRow
|
166
186
|
n&&n.set("selected",!1),e.set("selected",!0)
|
167
|
-
var
|
168
|
-
this.setProperties({currentRow:e,loadingEnv:!1,currentGroupedMessagesPosition:
|
169
|
-
var
|
170
|
-
this.fetchEnv({force:
|
187
|
+
var r=t.messageIndex||0,a=r===this.currentGroupedMessagesPosition
|
188
|
+
this.setProperties({currentRow:e,loadingEnv:!1,currentGroupedMessagesPosition:r,currentEnvPosition:0}),a&&this.notifyPropertyChange("currentGroupedMessagesPosition")
|
189
|
+
var o=this.currentMessage&&!this.currentMessage.env
|
190
|
+
this.fetchEnv({force:o})},tabChanged:function(e){this.setProperties({currentTab:e,loadingEnv:!1}),this.fetchEnv()},groupedMessageChanged:function(e){this.setProperties({currentGroupedMessagesPosition:e,currentEnvPosition:0})
|
171
191
|
var t=this.currentMessage&&!this.currentMessage.env
|
172
192
|
this.fetchEnv({force:t})},envChanged:function(e){this.set("currentEnvPosition",e),this.fetchEnv()},fetchEnv:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.currentMessage
|
173
193
|
if(t.force||n&&!n.env&&"env"===this.currentTab)return this.set("loadingEnv",!0),n.fetchEnv().finally((function(){return e.set("loadingEnv",!1)}))},findEquivalentMessageIndex:function(e){var t=0
|
@@ -176,79 +196,94 @@ if(e&&this.rows){var t=this.rows.find((function(t){return t.key===e}))
|
|
176
196
|
if(t){var n=this.findEquivalentMessageIndex(t)
|
177
197
|
this.selectRow(t,{messageIndex:n})}else this.setProperties({currentRow:null,currentEnvPosition:0,currentGroupedMessagesPosition:0})}},load:function(e){var n=this
|
178
198
|
e=e||{}
|
179
|
-
var
|
180
|
-
this.search&&this.search.length>0&&(
|
181
|
-
return e.before&&(
|
182
|
-
e.before?
|
183
|
-
n.selectRow(e,{messageIndex:
|
199
|
+
var r={filter:this.filter.join("_")}
|
200
|
+
this.search&&this.search.length>0&&(r.search=this.search,this.regexSearch&&(r.regex_search="true"))
|
201
|
+
return e.before&&(r.before=e.before,e.knownGroups&&(r.known_groups=e.knownGroups)),e.after&&(r.after=e.after),this.set("loading",!0),(0,t.ajax)("/messages.json",{data:r}).then((function(r){if(0==Ember.compare(r.filter,n.filter)&&0==Ember.compare(r.search,n.search)){if(r.messages.length>0){var a=n.toObjects(r.messages),o=n.rows
|
202
|
+
e.before?o.unshiftObjects(a):(a.forEach((function(e){o.forEach((function(t){if(t.key===e.key&&(o.removeObject(t),n.currentRow===t)){var r=n.findEquivalentMessageIndex(e)
|
203
|
+
n.selectRow(e,{messageIndex:r})}}))})),o.addObjects(a),a.length>0&&(0,t.increaseTitleCount)(a.length))}return n.set("total",r.total),r}})).finally((function(){return n.set("loading",!1)}))},reload:function(){var e=this
|
184
204
|
return this.set("total",0),this.rows.clear(),this.load().then((function(t){return e.updateCanLoadMore(t)}))},updateCanLoadMore:function(e){e&&(e.messages.length<50?this.set("canLoadMore",!1):this.set("canLoadMore",!0))},loadMore:function(){var e=this.rows
|
185
205
|
if(0!==e.length){var t=e[e.length-1],n=t.group?t.row_id:t.key
|
186
206
|
this.load({after:n})}else this.load({})},hideCountInLoadMore:Ember.computed("search","filter",(function(){var e=this.filter
|
187
|
-
return this.search&&this.search.length>0||e&&e.length<6})),moreBefore:Ember.computed("rows.length","canLoadMore",(function(){return this.get("rows.length")>=50&&this.canLoadMore})),totalBefore:Ember.computed("total","rows.length",(function(){return this.total-this.rows.length})),showMoreBefore:function(){var e=this,t=this.rows,n=t[0],
|
188
|
-
this.load({before:
|
207
|
+
return this.search&&this.search.length>0||e&&e.length<6})),moreBefore:Ember.computed("rows.length","canLoadMore",(function(){return this.get("rows.length")>=50&&this.canLoadMore})),totalBefore:Ember.computed("total","rows.length",(function(){return this.total-this.rows.length})),showMoreBefore:function(){var e=this,t=this.rows,n=t[0],r=n.group?n.row_id:n.key,a=t.filterBy("group").mapBy("regex")
|
208
|
+
this.load({before:r,knownGroups:a}).then((function(t){return e.updateCanLoadMore(t)}))},regexSearch:Ember.computed("search",(function(){var e=this.search
|
189
209
|
if(e&&e.length>2&&"/"===e[0]){var t=e.match(/\/(.*)\/(.*)/)
|
190
|
-
if(t&&3===t.length)try{return new RegExp(t[1],t[2])}catch(n){}}return null})),toObjects:function(e){return e.map((function(e){return e.group?
|
191
|
-
e.default=
|
192
|
-
var
|
210
|
+
if(t&&3===t.length)try{return new RegExp(t[1],t[2])}catch(n){}}return null})),toObjects:function(e){return e.map((function(e){return e.group?r.default.create(e):n.default.create(e)}))}})
|
211
|
+
e.default=o})),define("client-app/models/message",["exports","client-app/lib/utilities","client-app/lib/preload"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
212
|
+
var r=Em.Object.extend({MAX_LEN:200,fetchEnv:function(){var e=this
|
193
213
|
return(0,t.ajax)("/fetch-env/".concat(this.key,".json")).then((function(t){return e.set("env",t)}))},expand:function(){this.set("expanded",!0)},solve:function(){return(0,t.ajax)("/solve/".concat(this.key),{type:"PUT"})},destroy:function(){return(0,t.ajax)("/message/".concat(this.key),{type:"DELETE"})},protect:function(){return this.set("protected",!0),(0,t.ajax)("/protect/".concat(this.key),{type:"PUT"})},unprotect:function(){return this.set("protected",!1),(0,t.ajax)("/unprotect/".concat(this.key),{type:"DELETE"})},showCount:Ember.computed("count",(function(){return this.count>1})),hasMore:Ember.computed("message","expanded",(function(){return!this.expanded&&this.message.length>this.MAX_LEN})),shareUrl:Ember.computed("key",(function(){return"".concat((0,n.getRootPath)(),"/show/").concat(this.key)})),displayMessage:Ember.computed("message","expanded",(function(){var e=this.message
|
194
214
|
return!this.expanded&&this.message.length>this.MAX_LEN&&(e=this.message.substr(0,this.MAX_LEN)),e})),updateFromObject:function(e){this.set("count",e.get("count"))},canSolve:Ember.computed("env.{application_version,length}",(function(){return(Array.isArray(this.env)?this.env.map((function(e){return e.application_version})).compact().join(""):this.env&&this.env.application_version)&&this.backtrace&&this.backtrace.length>0})),rowClass:Ember.computed("severity",(function(){switch(this.get("severity")){case 0:return"debug"
|
195
215
|
case 1:return"info"
|
196
216
|
case 2:return"warn"
|
197
217
|
case 3:return"error"
|
198
218
|
case 4:return"fatal"
|
199
|
-
default:return"unknown"}})),glyph:Ember.computed("severity",(function(){switch(this.
|
200
|
-
case 2:return"
|
201
|
-
case 3:return"
|
202
|
-
|
203
|
-
|
204
|
-
|
219
|
+
default:return"unknown"}})),glyph:Ember.computed("severity",(function(){switch(this.severity){case 0:case 1:return""
|
220
|
+
case 2:return"exclamation-circle"
|
221
|
+
case 3:case 4:return"times-circle"
|
222
|
+
default:return"question-circle"}})),prefix:Ember.computed((function(){return"fas"})),klass:Ember.computed("severity",(function(){switch(this.severity){case 0:case 1:return""
|
223
|
+
case 2:return"warning"
|
224
|
+
case 3:return"error"
|
225
|
+
case 4:return"fatal"
|
226
|
+
default:return"unknown"}}))})
|
227
|
+
e.default=r}))
|
228
|
+
define("client-app/models/pattern-item",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
205
229
|
var t=Ember.Object.extend({isNew:!1,value:"",valueBuffer:"",error:null,saving:!1,count:0,init:function(){this._super.apply(this,arguments),this.set("valueBuffer",this.get("value"))},updateValue:function(e){this.setProperties({value:e,valueBuffer:e})},hasBuffer:Ember.computed("value","valueBuffer",(function(){return this.get("value")!==this.get("valueBuffer")})),zeroCount:Ember.computed("count",(function(){return this.get("count")<=0}))})
|
206
230
|
e.default=t})),define("client-app/resolver",["exports","ember-resolver"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
207
231
|
var n=t.default
|
208
|
-
e.default=n})),define("client-app/router",["exports","
|
209
|
-
|
210
|
-
|
211
|
-
return
|
212
|
-
|
213
|
-
var a=
|
214
|
-
|
215
|
-
this
|
216
|
-
|
217
|
-
e
|
218
|
-
e.
|
219
|
-
var
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
e.default=
|
232
|
+
e.default=n})),define("client-app/router",["exports","client-app/config/environment"],(function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
|
233
|
+
if(Reflect.construct.sham)return!1
|
234
|
+
if("function"==typeof Proxy)return!0
|
235
|
+
try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()
|
236
|
+
return function(){var n,r=l(e)
|
237
|
+
if(t){var a=l(this).constructor
|
238
|
+
n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments)
|
239
|
+
return s(this,n)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
|
240
|
+
return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
241
|
+
var c=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
|
242
|
+
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)})(s,Ember.Router)
|
243
|
+
var n=o(s)
|
244
|
+
function s(){var e
|
245
|
+
r(this,s)
|
246
|
+
for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l]
|
247
|
+
return u(i(e=n.call.apply(n,[this].concat(o))),"location",t.default.locationType),u(i(e),"rootURL",t.default.rootURL),e}return s}()
|
248
|
+
e.default=c,c.map((function(){this.route("index",{path:"/"}),this.route("show",{path:"/show/:id"}),this.route("settings")}))})),define("client-app/routes/index",["exports","client-app/models/message-collection","client-app/lib/utilities"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
249
|
+
var r=Ember.Route.extend({model:function(){return t.default.create()},setupController:function(e,t){this._super(e,t),t.reload()
|
250
|
+
var r=0,a=1
|
251
|
+
this.refreshInterval=setInterval((function(){if(!t.loading){r+=1
|
252
|
+
var e=(0,n.isHidden)(),o=!e
|
253
|
+
e&&r%a==0&&(o=!0,a<20&&a++),o&&(t.loadMore(),e||(a=1))}}),3e3),this.events.on("panelResized",(function(t){e.resizePanels(t)}))},deactivate:function(){clearInterval(this.refreshInterval)}})
|
254
|
+
e.default=r})),define("client-app/routes/settings",["exports","client-app/lib/utilities","client-app/models/pattern-item"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
255
|
+
var r=Ember.Route.extend({model:function(){return(0,t.ajax)("/settings.json")},setupController:function(e,t){this._super.apply(this,arguments)
|
256
|
+
var r=t.suppression,a=r.filter((function(e){return e.hard})).map((function(e){return n.default.create(e)})),o=r.reject((function(e){return e.hard})).map((function(e){return n.default.create(e)})),s=t.grouping.map((function(e){return n.default.create(e)})),i=a.length>0
|
257
|
+
e.setProperties({showCodedSuppression:i,codedSuppression:a,customSuppression:o,grouping:s})}})
|
258
|
+
e.default=r})),define("client-app/routes/show",["exports","client-app/models/message","client-app/lib/utilities"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
259
|
+
var r=Ember.Route.extend({model:function(e){return(0,n.preloadOrAjax)("/show/"+e.id+".json")},setupController:function(e,n){this._super.apply(this,arguments),e.set("model",t.default.create(n))}})
|
260
|
+
e.default=r})),define("client-app/templates/application",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
225
261
|
var t=Ember.HTMLBars.template({id:"Jmulcwk9",block:'{"symbols":[],"statements":[[1,[22,"update-time"],false],[0,"\\n"],[1,[22,"outlet"],false],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/application.hbs"}})
|
226
262
|
e.default=t})),define("client-app/templates/components/actions-menu",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
227
|
-
var t=Ember.HTMLBars.template({id:"
|
263
|
+
var t=Ember.HTMLBars.template({id:"cR1PWBcz",block:'{"symbols":["&default"],"statements":[[4,"if",[[24,["actionsInMenu"]]],null,{"statements":[[4,"if",[[24,["showMenu"]]],null,{"statements":[[0," "],[7,"div",true],[10,"class","actions-menu"],[8],[0,"\\n "],[14,1],[0,"\\n "],[9],[0,"\\n"]],"parameters":[]},null],[0," "],[7,"button",false],[12,"class","expand btn no-text"],[3,"action",[[23,0,[]],"expandMenu"]],[8],[1,[28,"fa-icon",["ellipsis-h"],null],false],[9],[0,"\\n"],[4,"if",[[24,["showShare"]]],null,{"statements":[[0," "],[7,"button",false],[12,"class","share btn"],[3,"action",[[23,0,[]],"share"]],[8],[1,[28,"fa-icon",["share"],null],false],[7,"span",true],[8],[0,"Share"],[9],[9],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},{"statements":[[0," "],[14,1],[0,"\\n"],[4,"if",[[24,["showShare"]]],null,{"statements":[[0," "],[7,"button",false],[12,"class","share btn"],[3,"action",[[23,0,[]],"share"]],[8],[1,[28,"fa-icon",["share"],null],false],[7,"span",true],[8],[0,"Share"],[9],[9],[0,"\\n"]],"parameters":[]},null]],"parameters":[]}]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/actions-menu.hbs"}})
|
228
264
|
e.default=t})),define("client-app/templates/components/back-trace",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
229
|
-
var t=Ember.HTMLBars.template({id:"
|
265
|
+
var t=Ember.HTMLBars.template({id:"1Or5KwVp",block:'{"symbols":["line"],"statements":[[4,"each",[[24,["lines"]]],null,{"statements":[[7,"div",true],[10,"class","backtrace-line"],[8],[1,[23,1,["line"]],false],[4,"if",[[23,1,["url"]]],null,{"statements":[[7,"a",true],[11,"href",[29,[[23,1,["url"]]]]],[10,"target","_blank"],[10,"class","line-link"],[8],[1,[28,"fa-icon",["external-link-square-alt"],null],false],[9]],"parameters":[]},null],[9]],"parameters":[1]},null]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/back-trace.hbs"}})
|
230
266
|
e.default=t})),define("client-app/templates/components/env-tab",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
231
267
|
var t=Ember.HTMLBars.template({id:"LEg262h6",block:'{"symbols":[],"statements":[[4,"if",[[24,["isEnvArray"]]],null,{"statements":[[0," "],[1,[28,"page-nav",null,[["list","position","extraClasses","navigate"],[[24,["message","env"]],[24,["currentEnvPosition"]],"env-nav",[24,["envChangedAction"]]]]],false],[0,"\\n"]],"parameters":[]},null],[1,[22,"html"],true],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/env-tab.hbs"}})
|
232
268
|
e.default=t})),define("client-app/templates/components/message-info",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
233
|
-
var t=Ember.HTMLBars.template({id:"
|
269
|
+
var t=Ember.HTMLBars.template({id:"rIFGBxcK",block:'{"symbols":["btn"],"statements":[[7,"div",true],[10,"class","message-info"],[8],[0,"\\n"],[4,"tabbed-section",null,[["onTabChange"],[[28,"action",[[23,0,[]],"tabChanged"],null]]],{"statements":[[4,"tab-contents",null,[["name","hint","currentMessage"],["info","show info",[24,["currentMessage"]]]],{"statements":[[4,"if",[[24,["showTitle"]]],null,{"statements":[[0," "],[7,"h3",true],[8],[0,"Message\\n"],[4,"if",[[24,["currentMessage","showCount"]]],null,{"statements":[[0," ("],[1,[24,["currentMessage","count"]],false],[0," copies reported)\\n"]],"parameters":[]},null],[0," "],[9],[0,"\\n"]],"parameters":[]},null],[0," "],[7,"pre",true],[8],[1,[24,["currentMessage","message"]],false],[9],[0,"\\n"]],"parameters":[]},null],[4,"tab-contents",null,[["name","defaultTab","hint","currentMessage"],["backtrace","true","show backtrace",[24,["currentMessage"]]]],{"statements":[[4,"if",[[24,["showTitle"]]],null,{"statements":[[0," "],[7,"h3",true],[8],[0,"Backtrace"],[9],[0,"\\n"]],"parameters":[]},null],[0," "],[7,"pre",true],[8],[1,[28,"back-trace",null,[["class","backtrace","env"],["backtrace",[24,["currentMessage","backtrace"]],[24,["currentMessage","env"]]]]],false],[9],[0,"\\n"]],"parameters":[]},null],[4,"tab-contents",null,[["className","name","hint","currentMessage"],["env","env","show environment",[24,["currentMessage"]]]],{"statements":[[4,"if",[[24,["currentMessage"]]],null,{"statements":[[4,"if",[[24,["currentMessage","env"]]],null,{"statements":[[4,"if",[[24,["showTitle"]]],null,{"statements":[[0," "],[7,"h3",true],[8],[0,"Env"],[9],[0,"\\n"]],"parameters":[]},null],[0," "],[1,[28,"env-tab",null,[["message","currentEnvPosition","envChangedAction"],[[24,["currentMessage"]],[24,["currentEnvPosition"]],[24,["envChangedAction"]]]]],false],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[24,["loadingEnv"]]],null,{"statements":[[0," Loading env...\\n"]],"parameters":[]},{"statements":[[0," No env for this message.\\n "]],"parameters":[]}]],"parameters":[]}]],"parameters":[]},null]],"parameters":[]},null]],"parameters":[]},null],[0,"\\n"],[4,"if",[[24,["currentMessage"]]],null,{"statements":[[0," "],[7,"div",true],[10,"class","message-actions"],[8],[0,"\\n"],[4,"actions-menu",null,[["actionsInMenu","showShare","share"],[[24,["actionsInMenu"]],[24,["showShare"]],[28,"action",[[23,0,[]],"share"],null]]],{"statements":[[4,"each",[[24,["buttons"]]],null,{"statements":[[0," "],[7,"button",false],[12,"class",[29,[[23,1,["klass"]]," btn ",[28,"if",[[23,1,["danger"]],"danger",""],null]]]],[3,"action",[[23,0,[]],[23,1,["action"]]]],[8],[0,"\\n "],[1,[28,"fa-icon",[[23,1,["icon"]]],[["prefix"],[[23,1,["prefix"]]]]],false],[0,"\\n "],[7,"span",true],[8],[1,[23,1,["label"]],false],[9],[0,"\\n "],[9],[0,"\\n"]],"parameters":[1]},null]],"parameters":[]},null],[0," "],[9],[0,"\\n"]],"parameters":[]},null],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/message-info.hbs"}})
|
234
270
|
e.default=t})),define("client-app/templates/components/message-row",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
235
|
-
var t=Ember.HTMLBars.template({id:"
|
271
|
+
var t=Ember.HTMLBars.template({id:"c0TndQ3O",block:'{"symbols":[],"statements":[[7,"div",true],[10,"class","count"],[8],[0,"\\n"],[4,"if",[[24,["model","showCount"]]],null,{"statements":[[0," "],[1,[24,["model","count"]],false],[0,"\\n"]],"parameters":[]},null],[9],[0,"\\n"],[7,"div",true],[10,"class","severity"],[8],[4,"if",[[24,["model","glyph"]]],null,{"statements":[[1,[28,"fa-icon",[[24,["model","glyph"]]],[["class","prefix"],[[24,["model","klass"]],[24,["model","prefix"]]]]],false]],"parameters":[]},null],[9],[0,"\\n"],[7,"div",true],[10,"class","message-body"],[8],[0,"\\n "],[1,[24,["model","displayMessage"]],false],[0,"\\n"],[9],[0,"\\n"],[7,"div",true],[10,"class","protected"],[8],[0,"\\n"],[4,"if",[[24,["model","protected"]]],null,{"statements":[[0," "],[1,[28,"fa-icon",["lock"],[["title"],["message is protected, clearing will not remove it"]]],false],[0,"\\n"]],"parameters":[]},null],[9],[0,"\\n"],[7,"div",true],[10,"class","time"],[8],[1,[28,"time-formatter",null,[["timestamp"],[[24,["model","timestamp"]]]]],false],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/message-row.hbs"}})
|
236
272
|
e.default=t})),define("client-app/templates/components/page-nav",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
237
|
-
var t=Ember.HTMLBars.template({id:"
|
273
|
+
var t=Ember.HTMLBars.template({id:"i9ATUGkF",block:'{"symbols":[],"statements":[[7,"button",false],[12,"disabled",[22,"disableBackButtons"]],[12,"class","btn nav-btn no-text"],[3,"action",[[23,0,[]],"bigJump","back"]],[8],[0,"\\n "],[1,[28,"fa-icon",["fast-backward"],null],false],[0,"\\n"],[9],[0,"\\n"],[7,"button",false],[12,"disabled",[22,"disableBackButtons"]],[12,"class","btn nav-btn no-text"],[3,"action",[[23,0,[]],"takeStep","back"]],[8],[0,"\\n "],[1,[28,"fa-icon",["backward"],null],false],[0,"\\n"],[9],[0,"\\n"],[7,"span",true],[10,"class","current-number"],[8],[1,[22,"displayNumber"],false],[0,"/"],[1,[24,["list","length"]],false],[9],[0,"\\n"],[7,"button",false],[12,"disabled",[22,"disableForwardButtons"]],[12,"class","btn nav-btn no-text"],[3,"action",[[23,0,[]],"takeStep","front"]],[8],[0,"\\n "],[1,[28,"fa-icon",["forward"],null],false],[0,"\\n"],[9],[0,"\\n"],[7,"button",false],[12,"disabled",[22,"disableForwardButtons"]],[12,"class","btn nav-btn no-text"],[3,"action",[[23,0,[]],"bigJump","front"]],[8],[0,"\\n "],[1,[28,"fa-icon",["fast-forward"],null],false],[0,"\\n"],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/page-nav.hbs"}})
|
238
274
|
e.default=t})),define("client-app/templates/components/panel-resizer",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
239
275
|
var t=Ember.HTMLBars.template({id:"mMcWs7yM",block:'{"symbols":[],"statements":[[7,"div",true],[10,"class","line-1"],[8],[9],[0,"\\n"],[7,"div",true],[10,"class","line-2"],[8],[9],[0,"\\n"],[7,"div",true],[10,"class","line-3"],[8],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/panel-resizer.hbs"}})
|
240
276
|
e.default=t})),define("client-app/templates/components/patterns-list",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
241
|
-
var t=Ember.HTMLBars.template({id:"
|
277
|
+
var t=Ember.HTMLBars.template({id:"XL78JoZq",block:'{"symbols":["pattern"],"statements":[[4,"if",[[24,["mutable"]]],null,{"statements":[[0," "],[7,"button",false],[12,"class","btn new-pattern"],[3,"action",[[23,0,[]],"create"]],[8],[1,[28,"fa-icon",["plus"],null],false],[7,"span",true],[8],[0,"New"],[9],[9],[0,"\\n"]],"parameters":[]},null],[4,"each",[[24,["allPatterns"]]],null,{"statements":[[0," "],[7,"div",true],[10,"class","pattern-wrapper"],[8],[0,"\\n "],[1,[28,"input",null,[["type","class","placeholder","value","disabled"],["textfield","pattern-input","Enter regular expression…",[23,1,["valueBuffer"]],[28,"or",[[24,["immutable"]],[23,1,["saving"]]],null]]]],false],[0,"\\n"],[4,"if",[[24,["mutable"]]],null,{"statements":[[4,"if",[[23,1,["hasBuffer"]]],null,{"statements":[[0," "],[7,"button",false],[12,"disabled",[23,1,["saving"]]],[12,"class","btn ok no-text save shrink"],[3,"action",[[23,0,[]],"save",[23,1,[]]]],[8],[0,"\\n "],[1,[28,"fa-icon",["check"],null],false],[0,"\\n "],[9],[0,"\\n"]],"parameters":[]},null],[0," "],[7,"button",false],[12,"disabled",[23,1,["saving"]]],[12,"class","btn no-text trash shrink"],[3,"action",[[23,0,[]],"trash",[23,1,[]]]],[8],[0,"\\n "],[1,[28,"fa-icon",["trash-alt"],null],false],[0,"\\n "],[9],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"if",[[24,["showCounter"]]],null,{"statements":[[0," "],[7,"input",true],[10,"disabled","true"],[10,"title","Number of logs that have been suppressed by this pattern"],[10,"class","count shrink"],[11,"value",[23,1,["count"]]],[8],[9],[0,"\\n "],[7,"button",false],[12,"class","btn no-text reset shrink"],[12,"title","Reset count of suppressed logs"],[12,"disabled",[23,1,["zeroCount"]]],[3,"action",[[23,0,[]],"resetCount",[23,1,[]]]],[8],[0,"\\n "],[1,[28,"fa-icon",["redo-alt"],null],false],[0,"\\n "],[9],[0,"\\n"]],"parameters":[]},null],[0," "],[9],[0,"\\n"],[4,"if",[[24,["applyRetroactivelyCheckbox"]]],null,{"statements":[[4,"if",[[23,1,["isNew"]]],null,{"statements":[[0," "],[7,"div",true],[10,"class","retro-checkbox"],[8],[0,"\\n "],[7,"input",true],[11,"checked",[23,1,["retroactive"]]],[10,"class","checkbox"],[11,"onclick",[28,"action",[[23,0,[]],"checkboxChanged",[23,1,[]]],null]],[10,"type","checkbox"],[8],[9],[0,"\\n Apply retroactively\\n "],[9],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[4,"if",[[23,1,["error"]]],null,{"statements":[[7,"pre",true],[10,"class","api-error"],[8],[1,[23,1,["error"]],false],[9]],"parameters":[]},null]],"parameters":[1]},null]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/patterns-list.hbs"}})
|
242
278
|
e.default=t})),define("client-app/templates/components/tabbed-section",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
243
279
|
var t=Ember.HTMLBars.template({id:"66JSiIiX",block:'{"symbols":["tab","&default"],"statements":[[14,2],[0,"\\n"],[7,"ul",true],[10,"class","tabs"],[8],[0,"\\n"],[4,"each",[[24,["tabs"]]],null,{"statements":[[0," "],[7,"li",true],[8],[0,"\\n "],[7,"a",false],[12,"title",[29,[[28,"unbound",[[23,1,["hint"]]],null]]]],[12,"href","#"],[12,"class",[29,[[28,"if",[[23,1,["active"]],"active"],null]]]],[3,"action",[[23,0,[]],[24,["selectTab"]],[23,1,[]]]],[8],[0,"\\n "],[1,[28,"unbound",[[23,1,["name"]]],null],false],[0,"\\n "],[9],[0,"\\n "],[9],[0,"\\n"]],"parameters":[1]},null],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/tabbed-section.hbs"}})
|
244
280
|
e.default=t})),define("client-app/templates/components/time-formatter",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
245
281
|
var t=Ember.HTMLBars.template({id:"Nb2l5Onl",block:'{"symbols":[],"statements":[[1,[22,"time"],false],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/components/time-formatter.hbs"}})
|
246
282
|
e.default=t})),define("client-app/templates/index",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
247
|
-
var t=Ember.HTMLBars.template({id:"
|
283
|
+
var t=Ember.HTMLBars.template({id:"kZA2i0MB",block:'{"symbols":["row"],"statements":[[7,"div",true],[10,"id","top-panel"],[8],[0,"\\n "],[7,"div",true],[10,"id","log-table"],[8],[0,"\\n"],[4,"if",[[24,["model","moreBefore"]]],null,{"statements":[[0," "],[7,"div",false],[12,"class","show-more"],[3,"action",[[23,0,[]],"showMoreBefore"]],[8],[0,"\\n"],[4,"if",[[24,["model","hideCountInLoadMore"]]],null,{"statements":[[0," Load more\\n"]],"parameters":[]},{"statements":[[0," Select to see "],[1,[24,["model","totalBefore"]],false],[0," more\\n"]],"parameters":[]}],[0," "],[9],[0,"\\n"]],"parameters":[]},null],[4,"each",[[24,["model","rows"]]],null,{"statements":[[0," "],[1,[28,"message-row",null,[["model","selectRow"],[[23,1,[]],[28,"action",[[23,0,[]],"selectRowAction",[23,1,[]]],null]]]],false],[0,"\\n"]],"parameters":[1]},null],[0," "],[9],[0,"\\n"],[9],[0,"\\n"],[7,"div",true],[10,"id","bottom-panel"],[11,"class",[29,[[28,"if",[[24,["model","currentRow","group"]],"group-view"],null]]]],[8],[0,"\\n"],[4,"if",[[24,["model","currentRow","group"]]],null,{"statements":[[0," "],[1,[28,"page-nav",null,[["list","position","extraClasses","navigate"],[[24,["model","currentRow","messages"]],[24,["model","currentGroupedMessagesPosition"]],"group-nav",[28,"action",[[23,0,[]],"groupedMessageChangedAction"],null]]]],false],[0,"\\n"]],"parameters":[]},null],[0," "],[1,[28,"message-info",null,[["currentMessage","currentRow","loadingEnv","removeMessage","solveMessage","onTabChange","envChangedAction","currentEnvPosition","actionsInMenu","showShare"],[[24,["model","currentMessage"]],[24,["model","currentRow"]],[24,["model","loadingEnv"]],[28,"action",[[23,0,[]],"removeMessage"],null],[28,"action",[[23,0,[]],"solveMessage"],null],[28,"action",[[23,0,[]],"tabChangedAction"],null],[28,"action",[[23,0,[]],"envChangedAction"],null],[24,["model","currentEnvPosition"]],[24,["actionsInMenu"]],true]]],false],[0,"\\n\\n "],[7,"div",true],[10,"class","action-panel"],[8],[0,"\\n "],[7,"div",true],[10,"class","severity-filters"],[8],[0,"\\n "],[7,"div",true],[10,"class","more-wrapping"],[8],[0,"\\n "],[7,"label",true],[10,"class","debug"],[8],[0,"\\n "],[7,"input",true],[11,"checked",[22,"showDebug"]],[11,"onchange",[28,"action",[[23,0,[]],[28,"action",[[23,0,[]],"updateFilter","showDebug"],null]],null]],[10,"type","checkbox"],[8],[9],[0,"\\n "],[7,"span",true],[8],[0,"Debug"],[9],[0,"\\n "],[9],[0,"\\n "],[7,"label",true],[10,"class","info"],[8],[0,"\\n "],[7,"input",true],[11,"checked",[22,"showInfo"]],[11,"onchange",[28,"action",[[23,0,[]],[28,"action",[[23,0,[]],"updateFilter","showInfo"],null]],null]],[10,"type","checkbox"],[8],[9],[0,"\\n "],[7,"span",true],[8],[0,"Info"],[9],[0,"\\n "],[9],[0,"\\n "],[7,"label",true],[10,"class","warn"],[8],[0,"\\n "],[7,"input",true],[11,"checked",[22,"showWarn"]],[11,"onchange",[28,"action",[[23,0,[]],[28,"action",[[23,0,[]],"updateFilter","showWarn"],null]],null]],[10,"type","checkbox"],[8],[9],[0,"\\n "],[1,[28,"fa-icon",["exclamation-circle"],[["class"],["warning"]]],false],[0,"\\n "],[7,"span",true],[8],[0,"Warning"],[9],[0,"\\n "],[9],[0,"\\n "],[7,"label",true],[10,"class","error"],[8],[0,"\\n "],[7,"input",true],[11,"checked",[22,"showErr"]],[11,"onchange",[28,"action",[[23,0,[]],[28,"action",[[23,0,[]],"updateFilter","showErr"],null]],null]],[10,"type","checkbox"],[8],[9],[0,"\\n "],[1,[28,"fa-icon",["times-circle"],[["class"],["error"]]],false],[0,"\\n "],[7,"span",true],[8],[0,"Error"],[9],[0,"\\n "],[9],[0,"\\n "],[7,"label",true],[10,"class","fatal"],[8],[0,"\\n "],[7,"input",true],[11,"checked",[22,"showFatal"]],[11,"onchange",[28,"action",[[23,0,[]],[28,"action",[[23,0,[]],"updateFilter","showFatal"],null]],null]],[10,"type","checkbox"],[8],[9],[0,"\\n "],[1,[28,"fa-icon",["times-circle"],[["class"],["fatal"]]],false],[0,"\\n "],[7,"span",true],[8],[0,"Fatal"],[9],[0,"\\n "],[9],[0,"\\n "],[9],[0,"\\n "],[9],[0,"\\n "],[7,"div",true],[10,"class","search-clear-all"],[8],[0,"\\n "],[7,"input",true],[10,"class","search"],[10,"placeholder","Search"],[11,"onkeyup",[28,"action",[[23,0,[]],"updateSearch"],[["value"],["target.value"]]]],[10,"type","text"],[8],[9],[0,"\\n "],[7,"div",true],[10,"class","footer-btns"],[8],[0,"\\n"],[4,"if",[[24,["showSettings"]]],null,{"statements":[[4,"link-to",null,[["class","route"],["settings btn no-text","settings"]],{"statements":[[0," "],[1,[28,"fa-icon",["cog"],null],false],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[0," "],[7,"button",false],[12,"class","clear btn danger"],[3,"action",[[23,0,[]],"clear"]],[8],[1,[28,"fa-icon",["trash-alt"],[["prefix"],["far"]]],false],[7,"span",true],[8],[0,"Clear logs"],[9],[9],[0,"\\n "],[9],[0,"\\n "],[9],[0,"\\n "],[9],[0,"\\n"],[9],[0,"\\n"],[1,[22,"panel-resizer"],false],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/index.hbs"}})
|
248
284
|
e.default=t})),define("client-app/templates/settings",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
249
285
|
var t=Ember.HTMLBars.template({id:"QRu+EVou",block:'{"symbols":[],"statements":[[7,"div",true],[10,"class","settings-page"],[8],[0,"\\n "],[4,"link-to",null,[["route"],["index"]],{"statements":[[0,"Home"]],"parameters":[]},null],[0,"\\n "],[7,"div",true],[10,"class","settings-header"],[8],[0,"\\n "],[7,"h1",true],[10,"class","header-title"],[8],[0,"Settings"],[9],[0,"\\n "],[7,"img",true],[10,"class","header-logo"],[11,"src",[28,"logster-url",["images/icon_144x144.png"],null]],[8],[9],[0,"\\n "],[9],[0,"\\n\\n "],[7,"div",true],[10,"class","settings-section suppression-patterns"],[8],[0,"\\n "],[7,"h2",true],[10,"class","section-title"],[8],[0,"Suppression Patterns"],[9],[0,"\\n "],[7,"div",true],[8],[0,"New messages that match these Regular Expression patterns will be suppressed. Checking Apply retroactively will remove all existing messages that match the patterns."],[9],[0,"\\n\\n"],[4,"if",[[24,["showCodedSuppression"]]],null,{"statements":[[0," "],[7,"h3",true],[10,"class","subsection-title"],[8],[0,"Hard-coded patterns:"],[9],[0,"\\n "],[7,"div",true],[10,"class","tip"],[8],[0,"These patterns can\'t be removed via the UI because they are commited to the source code of your app."],[9],[0,"\\n "],[1,[28,"patterns-list",null,[["patterns","mutable"],[[24,["codedSuppression"]],false]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n "],[7,"h3",true],[10,"class","subsection-title"],[8],[0,"Custom patterns:"],[9],[0,"\\n "],[1,[28,"patterns-list",null,[["patterns","key","applyRetroactivelyCheckbox","mutable"],[[24,["customSuppression"]],"suppression",true,true]]],false],[0,"\\n "],[9],[0,"\\n "],[7,"div",true],[10,"class","settings-section grouping-patterns"],[8],[0,"\\n "],[7,"h2",true],[10,"class","section-title"],[8],[0,"Grouping Patterns"],[9],[0,"\\n "],[7,"div",true],[8],[0,"Add a Regular Expression pattern to group all new and existing messages into a single row when viewing the logs."],[9],[0,"\\n\\n "],[1,[28,"patterns-list",null,[["patterns","key","mutable"],[[24,["grouping"]],"grouping",true]]],false],[0,"\\n "],[9],[0,"\\n"],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/settings.hbs"}})
|
250
286
|
e.default=t})),define("client-app/templates/show",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
251
287
|
var t=Ember.HTMLBars.template({id:"Xt+M1cRV",block:'{"symbols":[],"statements":[[4,"link-to",null,[["route"],["index"]],{"statements":[[0,"Recent"]],"parameters":[]},null],[0,"\\n"],[7,"div",true],[10,"id","bottom-panel"],[10,"class","full"],[8],[0,"\\n "],[1,[28,"message-info",null,[["currentMessage","showTitle","envChangedAction","currentEnvPosition","actionsInMenu"],[[24,["model"]],"true",[28,"action",[[23,0,[]],"envChanged"],null],[24,["envPosition"]],false]]],false],[0,"\\n"],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/show.hbs"}})
|
252
|
-
e.default=t}))
|
253
|
-
|
254
|
-
return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(a){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("client-app/app").default.create({name:"client-app",version:"0.0.0+3dd1107e"})
|
288
|
+
e.default=t})),define("client-app/config/environment",[],(function(){try{var e="client-app/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))}
|
289
|
+
return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("client-app/app").default.create({name:"client-app",version:"0.0.0+63634ced"})
|