logster 2.11.4 → 2.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +63 -12
- data/.gitignore +2 -0
- data/CHANGELOG.md +15 -5
- data/README.md +8 -0
- data/assets/javascript/.gitkeep +0 -0
- data/assets/javascript/chunk.143.f61340b825c6a3bf6dbe.js +22 -0
- data/assets/javascript/chunk.178.6d9ae01775c898e7b748.js +22 -0
- data/assets/javascript/chunk.468.95dd450003497c781cb3.js +1213 -0
- data/assets/javascript/chunk.916.85a3fc9d873df80f5ea5.js +579 -0
- data/assets/javascript/client-app.js +1259 -280
- data/assets/javascript/vendor.js +4068 -3375
- data/assets/stylesheets/.gitkeep +0 -0
- data/assets/stylesheets/client-app.css +1 -1
- data/assets/stylesheets/vendor.css +1 -1
- data/build_client_app.sh +6 -8
- data/client-app/.editorconfig +0 -1
- data/client-app/.eslintignore +2 -0
- data/client-app/.eslintrc +10 -0
- data/client-app/.gitignore +1 -1
- data/client-app/.prettierignore +21 -0
- data/client-app/.prettierrc +1 -0
- data/client-app/.template-lintrc.js +10 -0
- data/client-app/README.md +4 -5
- data/client-app/app/app.js +2 -2
- data/client-app/app/components/actions-menu.js +21 -21
- data/client-app/app/components/back-trace.js +93 -90
- data/client-app/app/components/env-tab.js +41 -29
- data/client-app/app/components/message-info.js +78 -75
- data/client-app/app/components/message-row.js +20 -17
- data/client-app/app/components/page-nav.js +33 -24
- data/client-app/app/components/panel-resizer.js +53 -37
- data/client-app/app/components/patterns-list.js +101 -84
- data/client-app/app/components/tab-contents.js +15 -19
- data/client-app/app/components/tabbed-section.js +30 -18
- data/client-app/app/components/time-formatter.js +29 -18
- data/client-app/app/controllers/index.js +143 -119
- data/client-app/app/controllers/show.js +17 -13
- data/client-app/app/helpers/or.js +1 -1
- data/client-app/app/initializers/app-init.js +23 -34
- data/client-app/app/lib/decorators.js +4 -2
- data/client-app/app/lib/preload.js +7 -4
- data/client-app/app/lib/utilities.js +55 -54
- data/client-app/app/models/group.js +20 -15
- data/client-app/app/models/message-collection.js +153 -149
- data/client-app/app/models/message.js +60 -58
- data/client-app/app/models/pattern-item.js +24 -22
- data/client-app/app/router.js +2 -2
- data/client-app/app/routes/index.js +19 -12
- data/client-app/app/routes/settings.js +12 -10
- data/client-app/app/routes/show.js +6 -4
- data/client-app/app/services/events.js +4 -0
- data/client-app/app/styles/app.css +2 -0
- data/client-app/app/templates/application.hbs +1 -2
- data/client-app/app/templates/components/actions-menu.hbs +23 -8
- data/client-app/app/templates/components/back-trace.hbs +10 -3
- data/client-app/app/templates/components/env-tab.hbs +9 -7
- data/client-app/app/templates/components/message-info.hbs +65 -34
- data/client-app/app/templates/components/message-row.hbs +25 -8
- data/client-app/app/templates/components/page-nav.hbs +34 -10
- data/client-app/app/templates/components/panel-resizer.hbs +3 -3
- data/client-app/app/templates/components/patterns-list.hbs +54 -20
- data/client-app/app/templates/components/tabbed-section.hbs +12 -4
- data/client-app/app/templates/components/time-formatter.hbs +1 -1
- data/client-app/app/templates/index.hbs +100 -78
- data/client-app/app/templates/settings.hbs +30 -19
- data/client-app/app/templates/show.hbs +9 -8
- data/client-app/config/ember-cli-update.json +18 -0
- data/client-app/config/environment.js +13 -13
- data/client-app/config/icons.js +3 -3
- data/client-app/config/targets.js +16 -8
- data/client-app/ember-cli-build.js +4 -4
- data/client-app/package.json +41 -31
- data/client-app/testem.js +16 -17
- data/client-app/tests/index.html +8 -1
- data/client-app/tests/integration/components/back-trace-test.js +49 -26
- data/client-app/tests/integration/components/env-tab-test.js +79 -53
- data/client-app/tests/integration/components/message-info-test.js +25 -23
- data/client-app/tests/integration/components/patterns-list-test.js +14 -11
- data/client-app/tests/test-helper.js +8 -4
- data/client-app/tests/unit/controllers/index-test.js +32 -16
- data/client-app/tests/unit/controllers/show-test.js +5 -5
- data/client-app/tests/unit/routes/index-test.js +5 -5
- data/client-app/tests/unit/routes/show-test.js +5 -5
- data/client-app/yarn.lock +9673 -0
- data/lib/logster/version.rb +1 -1
- data/logster.gemspec +6 -3
- metadata +15 -6
- data/client-app/.eslintrc.js +0 -60
- data/client-app/.travis.yml +0 -28
- data/client-app/app/components/update-time.js +0 -21
- data/client-app/package-lock.json +0 -16639
@@ -1,30 +1,46 @@
|
|
1
|
-
import { module, test } from
|
2
|
-
import { setupTest } from
|
3
|
-
import
|
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(
|
7
|
+
module("Unit | Controller | index", function (hooks) {
|
8
8
|
setupTest(hooks);
|
9
9
|
|
10
|
-
test(
|
11
|
-
const controller = this.owner.lookup(
|
12
|
-
const ajaxStub = sinon.stub(utilities,
|
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 = {
|
15
|
-
const row2 = {
|
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.
|
21
|
-
assert.deepEqual(controller.model.rows, [row1, row2],
|
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(() =>
|
23
|
+
ajaxStub.callsFake(async () => ({
|
24
|
+
search: "tomtom",
|
25
|
+
filter: [5],
|
26
|
+
messages: [],
|
27
|
+
}));
|
24
28
|
controller.set("search", "tomtom");
|
25
29
|
|
26
|
-
assert.
|
27
|
-
|
28
|
-
|
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
|
2
|
-
import { setupTest } from
|
1
|
+
import { module, test } from "qunit";
|
2
|
+
import { setupTest } from "ember-qunit";
|
3
3
|
|
4
|
-
module(
|
4
|
+
module("Unit | Controller | show", function (hooks) {
|
5
5
|
setupTest(hooks);
|
6
6
|
|
7
7
|
// Replace this with your real tests.
|
8
|
-
test(
|
9
|
-
let controller = this.owner.lookup(
|
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
|
2
|
-
import { setupTest } from
|
1
|
+
import { module, test } from "qunit";
|
2
|
+
import { setupTest } from "ember-qunit";
|
3
3
|
|
4
|
-
module(
|
4
|
+
module("Unit | Route | index", function (hooks) {
|
5
5
|
setupTest(hooks);
|
6
6
|
|
7
|
-
test(
|
8
|
-
let route = this.owner.lookup(
|
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
|
2
|
-
import { setupTest } from
|
1
|
+
import { module, test } from "qunit";
|
2
|
+
import { setupTest } from "ember-qunit";
|
3
3
|
|
4
|
-
module(
|
4
|
+
module("Unit | Route | show", function (hooks) {
|
5
5
|
setupTest(hooks);
|
6
6
|
|
7
|
-
test(
|
8
|
-
let route = this.owner.lookup(
|
7
|
+
test("it exists", function (assert) {
|
8
|
+
let route = this.owner.lookup("route:show");
|
9
9
|
assert.ok(route);
|
10
10
|
});
|
11
11
|
});
|