@pixwel/pixwel-sdk 2.1.24 → 2.1.26
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.
- package/coverage/clover.xml +521 -525
- package/coverage/coverage-final.json +14 -14
- package/coverage/lcov-report/Ass.js.html +212 -212
- package/coverage/lcov-report/Asset.js.html +25 -25
- package/coverage/lcov-report/AssetType.js.html +12 -12
- package/coverage/lcov-report/Encode.js.html +12 -12
- package/coverage/lcov-report/File.js.html +17 -17
- package/coverage/lcov-report/Filename.js.html +1 -1
- package/coverage/lcov-report/Ingest.js.html +531 -516
- package/coverage/lcov-report/IngestFile.js.html +5 -5
- package/coverage/lcov-report/Model.js.html +147 -147
- package/coverage/lcov-report/Order.js.html +31 -34
- package/coverage/lcov-report/Srt.js.html +102 -102
- package/coverage/lcov-report/Sub.js.html +43 -43
- package/coverage/lcov-report/Tag.js.html +12 -12
- package/coverage/lcov-report/TimeFormat.js.html +63 -63
- package/coverage/lcov-report/fileType.js.html +14 -14
- package/coverage/lcov-report/index.html +115 -115
- package/coverage/lcov.info +1018 -1076
- package/dist/src/Ingest.js +4 -0
- package/dist/src/Order.js +7 -4
- package/package.json +1 -1
- package/src/Ingest.js +4 -0
- package/src/Order.js +8 -9
- package/test/Order.spec.js +44 -0
- package/.vs/slnx.sqlite +0 -0
- package/coverage/lcov-report/IngestFileDrop.js.html +0 -540
- package/coverage/lcov-report/block-navigation.js +0 -63
- package/coverage/lcov-report/lib/Filename.js.html +0 -720
- package/coverage/lcov-report/lib/index.html +0 -97
- package/coverage/lcov-report/test/index.html +0 -97
- package/coverage/lcov-report/test/mocks.js.html +0 -423
package/dist/src/Ingest.js
CHANGED
|
@@ -629,6 +629,10 @@ var Ingest = function (_Model) {
|
|
|
629
629
|
ingest.selected.preview.revision = "Unfinished";
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
+
if (!original.context.project && filename.project && filename.project._id) {
|
|
633
|
+
ingest.selected.project = filename.project._id;
|
|
634
|
+
}
|
|
635
|
+
|
|
632
636
|
if (!original.context.asset && filename.asset && filename.asset._id) {
|
|
633
637
|
ingest.selected.asset = filename.asset._id;
|
|
634
638
|
}
|
package/dist/src/Order.js
CHANGED
|
@@ -56,10 +56,13 @@ var Order = function () {
|
|
|
56
56
|
if (!this.dng) {
|
|
57
57
|
return null;
|
|
58
58
|
}
|
|
59
|
-
if (this.dng.
|
|
60
|
-
return
|
|
59
|
+
if (this.dng.dialogue.includes("Dedicated / Localized")) {
|
|
60
|
+
return true;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
if (this.dng.narration.includes("Dedicated / Localized")) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
63
66
|
}
|
|
64
67
|
/**
|
|
65
68
|
* Determines in an order should be classified as 'subbed' based on its dng values
|
|
@@ -71,7 +74,7 @@ var Order = function () {
|
|
|
71
74
|
if (!this.dng) {
|
|
72
75
|
return null;
|
|
73
76
|
}
|
|
74
|
-
if (this.dng ===
|
|
77
|
+
if (this.dng === "Graphics Only") return false;
|
|
75
78
|
return _lodash2.default.flattenDeep((0, _entries2.default)(this.dng)).includes("Subtitled");
|
|
76
79
|
}
|
|
77
80
|
}]);
|
package/package.json
CHANGED
package/src/Ingest.js
CHANGED
|
@@ -588,6 +588,10 @@ export default class Ingest extends Model {
|
|
|
588
588
|
ingest.selected.preview.revision = "Unfinished";
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
+
if (!original.context.project && filename.project && filename.project._id) {
|
|
592
|
+
ingest.selected.project = filename.project._id;
|
|
593
|
+
}
|
|
594
|
+
|
|
591
595
|
if (!original.context.asset && filename.asset && filename.asset._id) {
|
|
592
596
|
ingest.selected.asset = filename.asset._id;
|
|
593
597
|
}
|
package/src/Order.js
CHANGED
|
@@ -21,12 +21,13 @@ export default class Order {
|
|
|
21
21
|
if (!this.dng) {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
-
if (this.dng.
|
|
25
|
-
return
|
|
24
|
+
if (this.dng.dialogue.includes("Dedicated / Localized")) {
|
|
25
|
+
return true;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
if (this.dng.narration.includes("Dedicated / Localized")) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Determines in an order should be classified as 'subbed' based on its dng values
|
|
@@ -35,9 +36,7 @@ export default class Order {
|
|
|
35
36
|
if (!this.dng) {
|
|
36
37
|
return null;
|
|
37
38
|
}
|
|
38
|
-
if (this.dng ===
|
|
39
|
-
return _
|
|
40
|
-
.flattenDeep(Object.entries(this.dng))
|
|
41
|
-
.includes("Subtitled");
|
|
39
|
+
if (this.dng === "Graphics Only") return false;
|
|
40
|
+
return _.flattenDeep(Object.entries(this.dng)).includes("Subtitled");
|
|
42
41
|
}
|
|
43
42
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import Order from "../src/Order";
|
|
2
|
+
|
|
3
|
+
describe("Order", () => {
|
|
4
|
+
describe("isDub", () => {
|
|
5
|
+
it("should set DUB if Dialogue, Narration, or both are selected", () => {
|
|
6
|
+
let order = new Order({
|
|
7
|
+
dng: {
|
|
8
|
+
dialogue: ["Dedicated / Localized"],
|
|
9
|
+
narration: ["Dedicated / Localized"],
|
|
10
|
+
graphics: ["Dedicated / Localized"]
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
expect(order.isDub()).toBe(true);
|
|
14
|
+
});
|
|
15
|
+
it("should NOT set DUB if only Graphics is selected", () => {
|
|
16
|
+
let order = new Order({
|
|
17
|
+
dng: {
|
|
18
|
+
dialogue: [],
|
|
19
|
+
narration: [],
|
|
20
|
+
graphics: ["Dedicated / Localized"]
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
expect(order.isDub()).toBe(false);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
describe("isSub", () => {
|
|
27
|
+
it("should set SUB if any DNG contains Subtitled", () => {
|
|
28
|
+
let order = new Order({
|
|
29
|
+
dng: {
|
|
30
|
+
dialogue: ["Subtitled"],
|
|
31
|
+
narration: [],
|
|
32
|
+
graphics: []
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
expect(order.isSub()).toBe(true);
|
|
36
|
+
});
|
|
37
|
+
it("should not set SUB if DNG is Graphics Only", () => {
|
|
38
|
+
let order = new Order({
|
|
39
|
+
dng: "Grapghics Only"
|
|
40
|
+
});
|
|
41
|
+
expect(order.isSub()).toBe(false);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
});
|
package/.vs/slnx.sqlite
DELETED
|
Binary file
|