logster 2.11.4 → 2.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +63 -12
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +15 -5
  5. data/README.md +8 -0
  6. data/assets/javascript/.gitkeep +0 -0
  7. data/assets/javascript/chunk.143.f61340b825c6a3bf6dbe.js +22 -0
  8. data/assets/javascript/chunk.178.6d9ae01775c898e7b748.js +22 -0
  9. data/assets/javascript/chunk.468.95dd450003497c781cb3.js +1213 -0
  10. data/assets/javascript/chunk.916.85a3fc9d873df80f5ea5.js +579 -0
  11. data/assets/javascript/client-app.js +1259 -280
  12. data/assets/javascript/vendor.js +4068 -3375
  13. data/assets/stylesheets/.gitkeep +0 -0
  14. data/assets/stylesheets/client-app.css +1 -1
  15. data/assets/stylesheets/vendor.css +1 -1
  16. data/build_client_app.sh +6 -8
  17. data/client-app/.editorconfig +0 -1
  18. data/client-app/.eslintignore +2 -0
  19. data/client-app/.eslintrc +10 -0
  20. data/client-app/.gitignore +1 -1
  21. data/client-app/.prettierignore +21 -0
  22. data/client-app/.prettierrc +1 -0
  23. data/client-app/.template-lintrc.js +10 -0
  24. data/client-app/README.md +4 -5
  25. data/client-app/app/app.js +2 -2
  26. data/client-app/app/components/actions-menu.js +21 -21
  27. data/client-app/app/components/back-trace.js +93 -90
  28. data/client-app/app/components/env-tab.js +41 -29
  29. data/client-app/app/components/message-info.js +78 -75
  30. data/client-app/app/components/message-row.js +20 -17
  31. data/client-app/app/components/page-nav.js +33 -24
  32. data/client-app/app/components/panel-resizer.js +53 -37
  33. data/client-app/app/components/patterns-list.js +101 -84
  34. data/client-app/app/components/tab-contents.js +15 -19
  35. data/client-app/app/components/tabbed-section.js +30 -18
  36. data/client-app/app/components/time-formatter.js +29 -18
  37. data/client-app/app/controllers/index.js +143 -119
  38. data/client-app/app/controllers/show.js +17 -13
  39. data/client-app/app/helpers/or.js +1 -1
  40. data/client-app/app/initializers/app-init.js +23 -34
  41. data/client-app/app/lib/decorators.js +4 -2
  42. data/client-app/app/lib/preload.js +7 -4
  43. data/client-app/app/lib/utilities.js +55 -54
  44. data/client-app/app/models/group.js +20 -15
  45. data/client-app/app/models/message-collection.js +153 -149
  46. data/client-app/app/models/message.js +60 -58
  47. data/client-app/app/models/pattern-item.js +24 -22
  48. data/client-app/app/router.js +2 -2
  49. data/client-app/app/routes/index.js +19 -12
  50. data/client-app/app/routes/settings.js +12 -10
  51. data/client-app/app/routes/show.js +6 -4
  52. data/client-app/app/services/events.js +4 -0
  53. data/client-app/app/styles/app.css +2 -0
  54. data/client-app/app/templates/application.hbs +1 -2
  55. data/client-app/app/templates/components/actions-menu.hbs +23 -8
  56. data/client-app/app/templates/components/back-trace.hbs +10 -3
  57. data/client-app/app/templates/components/env-tab.hbs +9 -7
  58. data/client-app/app/templates/components/message-info.hbs +65 -34
  59. data/client-app/app/templates/components/message-row.hbs +25 -8
  60. data/client-app/app/templates/components/page-nav.hbs +34 -10
  61. data/client-app/app/templates/components/panel-resizer.hbs +3 -3
  62. data/client-app/app/templates/components/patterns-list.hbs +54 -20
  63. data/client-app/app/templates/components/tabbed-section.hbs +12 -4
  64. data/client-app/app/templates/components/time-formatter.hbs +1 -1
  65. data/client-app/app/templates/index.hbs +100 -78
  66. data/client-app/app/templates/settings.hbs +30 -19
  67. data/client-app/app/templates/show.hbs +9 -8
  68. data/client-app/config/ember-cli-update.json +18 -0
  69. data/client-app/config/environment.js +13 -13
  70. data/client-app/config/icons.js +3 -3
  71. data/client-app/config/targets.js +16 -8
  72. data/client-app/ember-cli-build.js +4 -4
  73. data/client-app/package.json +41 -31
  74. data/client-app/testem.js +16 -17
  75. data/client-app/tests/index.html +8 -1
  76. data/client-app/tests/integration/components/back-trace-test.js +49 -26
  77. data/client-app/tests/integration/components/env-tab-test.js +79 -53
  78. data/client-app/tests/integration/components/message-info-test.js +25 -23
  79. data/client-app/tests/integration/components/patterns-list-test.js +14 -11
  80. data/client-app/tests/test-helper.js +8 -4
  81. data/client-app/tests/unit/controllers/index-test.js +32 -16
  82. data/client-app/tests/unit/controllers/show-test.js +5 -5
  83. data/client-app/tests/unit/routes/index-test.js +5 -5
  84. data/client-app/tests/unit/routes/show-test.js +5 -5
  85. data/client-app/yarn.lock +9673 -0
  86. data/lib/logster/version.rb +1 -1
  87. data/logster.gemspec +6 -3
  88. metadata +15 -6
  89. data/client-app/.eslintrc.js +0 -60
  90. data/client-app/.travis.yml +0 -28
  91. data/client-app/app/components/update-time.js +0 -21
  92. data/client-app/package-lock.json +0 -16639
@@ -1,30 +1,46 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from 'ember-qunit';
3
- import { default as MessageCollection } from "client-app/models/message-collection";
1
+ import { module, test } from "qunit";
2
+ import { setupTest } from "ember-qunit";
3
+ import MessageCollection from "client-app/models/message-collection";
4
4
  import sinon from "sinon";
5
5
  import * as utilities from "client-app/lib/utilities";
6
6
 
7
- module('Unit | Controller | index', function (hooks) {
7
+ module("Unit | Controller | index", function (hooks) {
8
8
  setupTest(hooks);
9
9
 
10
- test('uses search param to filter results', function (assert) {
11
- const controller = this.owner.lookup('controller:index');
12
- const ajaxStub = sinon.stub(utilities, 'ajax')
10
+ test("uses search param to filter results", function (assert) {
11
+ const controller = this.owner.lookup("controller:index");
12
+ const ajaxStub = sinon.stub(utilities, "ajax");
13
13
  const messages = MessageCollection.create();
14
- const row1 = {"message": "error tomtom", "severity": 2, "key": "ce1f53b0cc"};
15
- const row2 = {"message": "error steaky", "severity": 3, "key": "b083352825"};
14
+ const row1 = { message: "error tomtom", severity: 2, key: "ce1f53b0cc" };
15
+ const row2 = { message: "error steaky", severity: 3, key: "b083352825" };
16
16
 
17
17
  messages.rows.addObjects([row1, row2]);
18
- controller.set("model", messages)
18
+ controller.set("model", messages);
19
19
 
20
- assert.equal(controller.searchTerm, null, 'initial value is null');
21
- assert.deepEqual(controller.model.rows, [row1, row2], 'all rows');
20
+ assert.strictEqual(controller.searchTerm, null, "initial value is null");
21
+ assert.deepEqual(controller.model.rows, [row1, row2], "all rows");
22
22
 
23
- ajaxStub.callsFake(() => Promise.resolve({search: "tomtom", filter: [5], messages: []}));
23
+ ajaxStub.callsFake(async () => ({
24
+ search: "tomtom",
25
+ filter: [5],
26
+ messages: [],
27
+ }));
24
28
  controller.set("search", "tomtom");
25
29
 
26
- assert.equal(controller.searchTerm, "tomtom", 'search sets search term');
27
- assert.equal(ajaxStub.firstCall.args[0], "/messages.json", "get messages");
28
- assert.deepEqual(ajaxStub.firstCall.args[1], {"data": {"filter": "5", "search": "tomtom"}, "method": "POST"}, "with correct terms");
30
+ assert.strictEqual(
31
+ controller.searchTerm,
32
+ "tomtom",
33
+ "search sets search term"
34
+ );
35
+ assert.strictEqual(
36
+ ajaxStub.firstCall.args[0],
37
+ "/messages.json",
38
+ "get messages"
39
+ );
40
+ assert.deepEqual(
41
+ ajaxStub.firstCall.args[1],
42
+ { data: { filter: "5", search: "tomtom" }, method: "POST" },
43
+ "with correct terms"
44
+ );
29
45
  });
30
46
  });
@@ -1,12 +1,12 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from 'ember-qunit';
1
+ import { module, test } from "qunit";
2
+ import { setupTest } from "ember-qunit";
3
3
 
4
- module('Unit | Controller | show', function(hooks) {
4
+ module("Unit | Controller | show", function (hooks) {
5
5
  setupTest(hooks);
6
6
 
7
7
  // Replace this with your real tests.
8
- test('it exists', function(assert) {
9
- let controller = this.owner.lookup('controller:show');
8
+ test("it exists", function (assert) {
9
+ let controller = this.owner.lookup("controller:show");
10
10
  assert.ok(controller);
11
11
  });
12
12
  });
@@ -1,11 +1,11 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from 'ember-qunit';
1
+ import { module, test } from "qunit";
2
+ import { setupTest } from "ember-qunit";
3
3
 
4
- module('Unit | Route | index', function(hooks) {
4
+ module("Unit | Route | index", function (hooks) {
5
5
  setupTest(hooks);
6
6
 
7
- test('it exists', function(assert) {
8
- let route = this.owner.lookup('route:index');
7
+ test("it exists", function (assert) {
8
+ let route = this.owner.lookup("route:index");
9
9
  assert.ok(route);
10
10
  });
11
11
  });
@@ -1,11 +1,11 @@
1
- import { module, test } from 'qunit';
2
- import { setupTest } from 'ember-qunit';
1
+ import { module, test } from "qunit";
2
+ import { setupTest } from "ember-qunit";
3
3
 
4
- module('Unit | Route | show', function(hooks) {
4
+ module("Unit | Route | show", function (hooks) {
5
5
  setupTest(hooks);
6
6
 
7
- test('it exists', function(assert) {
8
- let route = this.owner.lookup('route:show');
7
+ test("it exists", function (assert) {
8
+ let route = this.owner.lookup("route:show");
9
9
  assert.ok(route);
10
10
  });
11
11
  });