vue-intergrall-plugins 0.0.155 → 0.0.158
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.
|
@@ -8222,48 +8222,47 @@ function createInstance(defaultConfig) {
|
|
|
8222
8222
|
}
|
|
8223
8223
|
|
|
8224
8224
|
// Create the default instance to be exported
|
|
8225
|
-
var axios$
|
|
8225
|
+
var axios$1 = createInstance(defaults$1);
|
|
8226
8226
|
|
|
8227
8227
|
// Expose Axios class to allow class inheritance
|
|
8228
|
-
axios$
|
|
8228
|
+
axios$1.Axios = Axios_1;
|
|
8229
8229
|
|
|
8230
8230
|
// Expose Cancel & CancelToken
|
|
8231
|
-
axios$
|
|
8232
|
-
axios$
|
|
8233
|
-
axios$
|
|
8234
|
-
axios$
|
|
8231
|
+
axios$1.Cancel = Cancel_1;
|
|
8232
|
+
axios$1.CancelToken = CancelToken_1;
|
|
8233
|
+
axios$1.isCancel = isCancel;
|
|
8234
|
+
axios$1.VERSION = data.version;
|
|
8235
8235
|
|
|
8236
8236
|
// Expose all/spread
|
|
8237
|
-
axios$
|
|
8237
|
+
axios$1.all = function all(promises) {
|
|
8238
8238
|
return Promise.all(promises);
|
|
8239
8239
|
};
|
|
8240
|
-
axios$
|
|
8240
|
+
axios$1.spread = spread;
|
|
8241
8241
|
|
|
8242
8242
|
// Expose isAxiosError
|
|
8243
|
-
axios$
|
|
8243
|
+
axios$1.isAxiosError = isAxiosError;
|
|
8244
8244
|
|
|
8245
|
-
var axios_1 = axios$
|
|
8245
|
+
var axios_1 = axios$1;
|
|
8246
8246
|
|
|
8247
8247
|
// Allow use of default import syntax in TypeScript
|
|
8248
|
-
var _default = axios$
|
|
8248
|
+
var _default = axios$1;
|
|
8249
8249
|
axios_1.default = _default;
|
|
8250
8250
|
|
|
8251
8251
|
var axios = axios_1;
|
|
8252
8252
|
|
|
8253
|
-
|
|
8254
|
-
|
|
8253
|
+
vue.prototype.$httpRequest = axios;
|
|
8255
8254
|
const baseURL = window.location.hostname == 'localhost' ? `https://linux07/im/atdHumano/middleware/atd_api.php` : `https://${window.location.hostname}`;
|
|
8256
8255
|
const dev = window.location.hostname == 'localhost' ? '&teste=levchat2' : '';
|
|
8257
8256
|
const standardMessages = {
|
|
8258
8257
|
methods: {
|
|
8259
8258
|
async getStandardMessages(type, token) {
|
|
8260
8259
|
try {
|
|
8261
|
-
return
|
|
8260
|
+
return this.$httpRequest({
|
|
8262
8261
|
method: 'get',
|
|
8263
|
-
url: `${baseURL}/get-messages/${type}?token_cliente=${token}${dev}
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8262
|
+
url: `${baseURL}/get-messages/${type}?token_cliente=${token}${dev}` // headers: {
|
|
8263
|
+
// Authorization: "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdGQiOiJNS1VJNnhZdm1xSWVFaWpuMXJwMERkZzQ0ZjFzd3dpbTRsNXd3WWFrVUJtd3d4YjQ0YXd3ZVJ1U2lUeUxxVTEiLCJtYW5hZ2VyIjoiTUtVd0J6YzFnVkIzaWNlNE5yU01lbU5aekI1MkExTzdtNXdhdmQyYnd3eGI0NGF3d3d3eGI0NGF3d3FVU2NoIiwibnJvcyI6WyI0MSJdLCJhdXRoIjoiTUtVVnAxTWR3d2ltNGw1d3dYTnNjWDg5R3V4c1RsZUVqdGdpNjhoNk1JUzl6d0xBTGVRbjhUUCIsImlhdCI6MTY0NjMzOTkyOCwiZXhwIjoxNjQ2NDI2MzI4fQ.QNu0uO3qV-Lqvu8Xww1F_x8Bwnjlm175IVdM89EgPM0"
|
|
8264
|
+
// }
|
|
8265
|
+
|
|
8267
8266
|
}).then(response => {
|
|
8268
8267
|
const {
|
|
8269
8268
|
data
|
|
@@ -8320,7 +8319,6 @@ var script$g = {
|
|
|
8320
8319
|
data() {
|
|
8321
8320
|
return {
|
|
8322
8321
|
placement: "top",
|
|
8323
|
-
firstMount: true,
|
|
8324
8322
|
formatted_messages_1: [{
|
|
8325
8323
|
cod: "T",
|
|
8326
8324
|
value: "Todos"
|
|
@@ -8349,12 +8347,6 @@ var script$g = {
|
|
|
8349
8347
|
receiveValueFormattedMessage(cod, selectionIndex) {
|
|
8350
8348
|
try {
|
|
8351
8349
|
if (!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ");
|
|
8352
|
-
|
|
8353
|
-
if (this.firstMount) {
|
|
8354
|
-
cod = `${this.key_1}/${cod}`;
|
|
8355
|
-
this.firstMount = false;
|
|
8356
|
-
}
|
|
8357
|
-
|
|
8358
8350
|
this.getStandardMessages(cod, this.token_cliente).then(data => {
|
|
8359
8351
|
if (data && typeof data == 'string') return this.$toasted.global.emConstrucao({
|
|
8360
8352
|
msg: data
|