@twab/visualization 1.2.0 → 1.2.1
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/dist/visualization.js +21 -16
- package/package.json +1 -1
package/dist/visualization.js
CHANGED
|
@@ -148,6 +148,7 @@ var index = {
|
|
|
148
148
|
styleTag.innerHTML = themeCss;
|
|
149
149
|
headTag.appendChild(styleTag);
|
|
150
150
|
|
|
151
|
+
|
|
151
152
|
Vue.component(
|
|
152
153
|
'Visualization',
|
|
153
154
|
(await Promise.resolve().then(function () { return Visualization; })).default
|
|
@@ -758,20 +759,24 @@ __vue_render__$5._withStripped = true;
|
|
|
758
759
|
undefined
|
|
759
760
|
);
|
|
760
761
|
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
})
|
|
762
|
+
const API = function() {
|
|
763
|
+
const alternative = sessionStorage.getItem('server') === 'alternative';
|
|
764
|
+
const Api = axios.create({
|
|
765
|
+
baseURL: sessionStorage.getItem(`base${alternative ? '_alternative' : ''}_url`),
|
|
766
|
+
});
|
|
767
|
+
|
|
768
|
+
Api.interceptors.request.use((config) => {
|
|
769
|
+
config.params = config.params || {};
|
|
770
|
+
config.params.Client = sessionStorage.getItem('client') || 'UNKNOWN';
|
|
771
|
+
if (alternative) {
|
|
772
|
+
config.params.BlockPathConfig = 'AlernativeTvConfig';
|
|
773
|
+
}
|
|
765
774
|
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
config.params.BlockPathConfig = 'AlernativeTvConfig';
|
|
771
|
-
}
|
|
775
|
+
return config
|
|
776
|
+
});
|
|
777
|
+
return Api
|
|
778
|
+
};
|
|
772
779
|
|
|
773
|
-
return config
|
|
774
|
-
});
|
|
775
780
|
|
|
776
781
|
var FramesService = {
|
|
777
782
|
getBlockRequest({
|
|
@@ -784,7 +789,7 @@ var FramesService = {
|
|
|
784
789
|
useCache = true,
|
|
785
790
|
signal,
|
|
786
791
|
} = {}) {
|
|
787
|
-
return
|
|
792
|
+
return API().get(`Get${direction}FramesBlockInFiles`, {
|
|
788
793
|
params: {
|
|
789
794
|
Channel: channel,
|
|
790
795
|
Split: split,
|
|
@@ -808,7 +813,7 @@ var FramesService = {
|
|
|
808
813
|
useCache = true,
|
|
809
814
|
signal,
|
|
810
815
|
} = {}) {
|
|
811
|
-
return
|
|
816
|
+
return API().get('GetSmallFramesBlockInFiles', {
|
|
812
817
|
params: {
|
|
813
818
|
Channel: channel,
|
|
814
819
|
Split: split,
|
|
@@ -824,7 +829,7 @@ var FramesService = {
|
|
|
824
829
|
},
|
|
825
830
|
|
|
826
831
|
getFileInfoRequest({ direction, channel, split, time, step, signal } = {}) {
|
|
827
|
-
return
|
|
832
|
+
return API().get(`Get${direction}BlockFileInformation`, {
|
|
828
833
|
params: {
|
|
829
834
|
Channel: channel,
|
|
830
835
|
Split: split,
|
|
@@ -838,7 +843,7 @@ var FramesService = {
|
|
|
838
843
|
getNextAvailableBlock({ channel, time, signal } = {}) {
|
|
839
844
|
// process.env.VUE_APP_NEXT_AVAILABLE_BLOCK
|
|
840
845
|
|
|
841
|
-
return
|
|
846
|
+
return API().get(`GetPreviousAvailableBlockFileInformation`, {
|
|
842
847
|
params: {
|
|
843
848
|
Channel: channel,
|
|
844
849
|
Split: 1,
|