sass-template-common 0.1.1 → 0.1.3
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.
|
@@ -211,6 +211,7 @@ export declare interface CommentType extends ReplyType {
|
|
|
211
211
|
|
|
212
212
|
export declare class CommonServices {
|
|
213
213
|
protected props?: ICommonServices | undefined;
|
|
214
|
+
configVersion: string;
|
|
214
215
|
constructor(props?: ICommonServices | undefined);
|
|
215
216
|
generateTokenOffline: (browserId: string) => Promise<any>;
|
|
216
217
|
getMainMenu: (params: Params) => Promise<AxiosResponse< {
|
|
@@ -329,6 +330,7 @@ export declare type Config = {
|
|
|
329
330
|
showuppertitle?: boolean;
|
|
330
331
|
showads?: boolean;
|
|
331
332
|
articlepreview?: string;
|
|
333
|
+
configVersion?: string;
|
|
332
334
|
};
|
|
333
335
|
|
|
334
336
|
export declare type ConfigDynamic = {
|
|
@@ -1037,6 +1039,7 @@ export declare class MainComponentServices {
|
|
|
1037
1039
|
exclude: string;
|
|
1038
1040
|
config: any;
|
|
1039
1041
|
imgSizes: any;
|
|
1042
|
+
configVersion: string;
|
|
1040
1043
|
axiosApi: AxiosInstance | undefined;
|
|
1041
1044
|
constructor(config: Config, imgSizes: any, axiosApi: AxiosInstance);
|
|
1042
1045
|
getNewsListZone(params: Params): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
|
|
@@ -1315,9 +1315,10 @@ class g9 {
|
|
|
1315
1315
|
exclude = "keywords,gallery,related,relatedexternal,external,customfields";
|
|
1316
1316
|
config = {};
|
|
1317
1317
|
imgSizes = {};
|
|
1318
|
+
configVersion = ".config";
|
|
1318
1319
|
axiosApi = void 0;
|
|
1319
1320
|
constructor(t, n, s) {
|
|
1320
|
-
this.config = t, this.imgSizes = n, this.axiosApi = s;
|
|
1321
|
+
this.config = t, this.imgSizes = n, this.axiosApi = s, t.configVersion && (this.configVersion = t.configVersion);
|
|
1321
1322
|
}
|
|
1322
1323
|
async getNewsListZone(t) {
|
|
1323
1324
|
if (this.axiosApi)
|
|
@@ -1328,7 +1329,7 @@ class g9 {
|
|
|
1328
1329
|
return this.axiosApi.get("/config/blocks", {
|
|
1329
1330
|
params: {
|
|
1330
1331
|
...t,
|
|
1331
|
-
path: this.config.servicePrefix +
|
|
1332
|
+
path: this.config.servicePrefix + `/${this.configVersion}/columna_derecha.html`
|
|
1332
1333
|
}
|
|
1333
1334
|
}).catch((n) => (console.log(`[/config/blocks] Error: ${n.message}`), console.log(n), Promise.reject(n)));
|
|
1334
1335
|
}
|
|
@@ -1419,9 +1420,9 @@ class g9 {
|
|
|
1419
1420
|
};
|
|
1420
1421
|
async getMainBlockData(t, n) {
|
|
1421
1422
|
const o = (await this.getOutstandingBlock(t))?.data.data[0]?.value || "";
|
|
1422
|
-
if (
|
|
1423
|
+
if (!o || !Object.keys(this.GetByOptions).includes(o))
|
|
1423
1424
|
return {
|
|
1424
|
-
section:
|
|
1425
|
+
section: o,
|
|
1425
1426
|
news: []
|
|
1426
1427
|
};
|
|
1427
1428
|
const i = await this.GetByOptions[o](n);
|
|
@@ -3202,8 +3203,9 @@ const {
|
|
|
3202
3203
|
} = Y;
|
|
3203
3204
|
class xe {
|
|
3204
3205
|
constructor(t) {
|
|
3205
|
-
this.props = t;
|
|
3206
|
+
this.props = t, t?.config?.configVersion && (this.configVersion = t.config.configVersion);
|
|
3206
3207
|
}
|
|
3208
|
+
configVersion = ".config";
|
|
3207
3209
|
generateTokenOffline = async (t) => {
|
|
3208
3210
|
const {
|
|
3209
3211
|
PUBLIC_IS_OFFLINE: n,
|
|
@@ -3240,7 +3242,7 @@ class xe {
|
|
|
3240
3242
|
getBanners = async (t) => this.props?.axiosApi.get("/config/banners", {
|
|
3241
3243
|
params: {
|
|
3242
3244
|
...t,
|
|
3243
|
-
path: this.props?.config?.servicePrefix +
|
|
3245
|
+
path: this.props?.config?.servicePrefix + `/${this.configVersion}/banners.html`
|
|
3244
3246
|
}
|
|
3245
3247
|
}).catch((n) => (console.log(`[/config/banners] Error: ${n.message}`), Promise.reject(n)));
|
|
3246
3248
|
getPages = (t) => this.props?.axiosApi.get("/config/pages", { params: t }).catch((n) => (console.log(`[/config/pages] Error: ${n.message}`), Promise.reject(n)));
|
|
@@ -3290,7 +3292,7 @@ class vr extends xe {
|
|
|
3290
3292
|
const n = await this.props?.axiosApi.get("/config/blocks-saas", {
|
|
3291
3293
|
params: {
|
|
3292
3294
|
...t,
|
|
3293
|
-
path: this.props?.config?.servicePrefix +
|
|
3295
|
+
path: this.props?.config?.servicePrefix + `/${this.configVersion}/columna_derecha.html`
|
|
3294
3296
|
}
|
|
3295
3297
|
});
|
|
3296
3298
|
if (!n || !n.data || !n.data.data || n.data.data.length === 0 || !n.data.data[0]?.value || !n.data.data[0].block || !this.props?.imgSizes[n.data.data[0].block])
|