iatoolkit 0.60.0__py3-none-any.whl → 0.60.1__py3-none-any.whl
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.
Potentially problematic release.
This version of iatoolkit might be problematic. Click here for more details.
- iatoolkit/iatoolkit.py +1 -1
- iatoolkit/static/js/chat_logout_button.js +36 -0
- {iatoolkit-0.60.0.dist-info → iatoolkit-0.60.1.dist-info}/METADATA +1 -1
- {iatoolkit-0.60.0.dist-info → iatoolkit-0.60.1.dist-info}/RECORD +6 -5
- {iatoolkit-0.60.0.dist-info → iatoolkit-0.60.1.dist-info}/WHEEL +0 -0
- {iatoolkit-0.60.0.dist-info → iatoolkit-0.60.1.dist-info}/top_level.txt +0 -0
iatoolkit/iatoolkit.py
CHANGED
|
@@ -19,7 +19,7 @@ from werkzeug.middleware.proxy_fix import ProxyFix
|
|
|
19
19
|
from injector import Binder, Injector, singleton
|
|
20
20
|
from importlib.metadata import version as _pkg_version, PackageNotFoundError
|
|
21
21
|
|
|
22
|
-
IATOOLKIT_VERSION = "0.60.
|
|
22
|
+
IATOOLKIT_VERSION = "0.60.1"
|
|
23
23
|
|
|
24
24
|
# global variable for the unique instance of IAToolkit
|
|
25
25
|
_iatoolkit_instance: Optional['IAToolkit'] = None
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
2
|
+
const logoutButton = document.getElementById('logout-button');
|
|
3
|
+
if (!logoutButton) {
|
|
4
|
+
console.warn('El botón de logout con id "logout-button" no fue encontrado.');
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
if (window.toastr) {
|
|
9
|
+
toastr.options = { "positionClass": "toast-bottom-right", "preventDuplicates": true };
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
logoutButton.addEventListener('click', async function(event) {
|
|
13
|
+
event.preventDefault();
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
const apiPath = '/api/logout';
|
|
17
|
+
const data = await callToolkit(apiPath, null, 'GET');
|
|
18
|
+
|
|
19
|
+
// Procesar la respuesta
|
|
20
|
+
if (data && data.status === 'success' && data.url) {
|
|
21
|
+
window.top.location.href = data.url;
|
|
22
|
+
} else {
|
|
23
|
+
// Si algo falla, callToolkit usualmente muestra un error.
|
|
24
|
+
// Mostramos un toast como fallback.
|
|
25
|
+
if (window.toastr) {
|
|
26
|
+
toastr.error('No se pudo procesar el cierre de sesión. Por favor, intente de nuevo.');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.error('Error durante el logout:', error);
|
|
31
|
+
if (window.toastr) {
|
|
32
|
+
toastr.error('Ocurrió un error de red al intentar cerrar sesión.');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -2,7 +2,7 @@ iatoolkit/__init__.py,sha256=4PWjMJjktixtrxF6BY405qyA50Sv967kEP2x-oil6qk,1120
|
|
|
2
2
|
iatoolkit/base_company.py,sha256=vU4ki-wB3PWIn3_Bvehfh0TfBH_XNC614tRBKNmEd84,4718
|
|
3
3
|
iatoolkit/cli_commands.py,sha256=G5L9xQXZ0lVFXQWBaE_KEZHyfuiT6PL1nTQRoSdnBzc,2302
|
|
4
4
|
iatoolkit/company_registry.py,sha256=tduqt3oV8iDX_IB1eA7KIgvIxE4edTcy-3qZIXh3Lzw,2549
|
|
5
|
-
iatoolkit/iatoolkit.py,sha256=
|
|
5
|
+
iatoolkit/iatoolkit.py,sha256=9mzOWrmZq4TpJlb7cVsi0N4DewcZlUDqtiuggMFaSbE,17570
|
|
6
6
|
iatoolkit/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
iatoolkit/common/exceptions.py,sha256=EXx40n5htp7UiOM6P1xfJ9U6NMcADqm62dlFaKz7ICU,1154
|
|
8
8
|
iatoolkit/common/routes.py,sha256=L8UTwbE-cNSYl5s09mMckO2J9on0N1F6p8ZXMFbjrDM,5738
|
|
@@ -58,6 +58,7 @@ iatoolkit/static/images/fernando.jpeg,sha256=W68TYMuo5hZVpbP-evwH6Nu4xWFv2bc8pJz
|
|
|
58
58
|
iatoolkit/static/js/chat_feedback_button.js,sha256=j3BIyxcgyDuDDBn3vxxe0DV4evQabj3xb6XF28OWwCs,4220
|
|
59
59
|
iatoolkit/static/js/chat_filepond.js,sha256=mzXafm7a506EpM37KATTK3zvAswO1E0KSUY1vKbwuRc,3163
|
|
60
60
|
iatoolkit/static/js/chat_history_button.js,sha256=4h6ldU7cDvgkW84fMKB8JReoxCX0NKSQAir_4CzAF9I,4382
|
|
61
|
+
iatoolkit/static/js/chat_logout_button.js,sha256=Of9H6IbAboSBmeqRaurEVW6_dL752L0UeDcDLNBD5Z0,1335
|
|
61
62
|
iatoolkit/static/js/chat_main.js,sha256=GPPM3euqT_cGcrmsb7DGr0Aa6BpeQRTpuf2zW2VEvMM,18118
|
|
62
63
|
iatoolkit/static/js/chat_onboarding_button.js,sha256=vjvEloJ9PA9D7jOGca0QjS3J_7bU97R71L7kSyY3wOI,3153
|
|
63
64
|
iatoolkit/static/js/chat_reload_button.js,sha256=f8f_qRnZTNr_DwbcmafTHIuBLmiCoypYAKGQc472AOs,2393
|
|
@@ -105,7 +106,7 @@ iatoolkit/views/tasks_api_view.py,sha256=wGnuwuuL83ByQ1Yre6ytRVztA0OGQjGrwMjB1_G
|
|
|
105
106
|
iatoolkit/views/tasks_review_api_view.py,sha256=wsCpzqyRyUdCXWAhyGlBe3eNZZ6A1DQG7TblN_GZNfM,1894
|
|
106
107
|
iatoolkit/views/user_feedback_api_view.py,sha256=-Ngex8SPf0mPvPNqwE_GUcRErLpOL49yJ43o5Y4Qhqo,1992
|
|
107
108
|
iatoolkit/views/verify_user_view.py,sha256=7XLSaxvs8LjBr3cYOUDa9B8DqW_50IGlq0IvmOQcD0Y,2340
|
|
108
|
-
iatoolkit-0.60.
|
|
109
|
-
iatoolkit-0.60.
|
|
110
|
-
iatoolkit-0.60.
|
|
111
|
-
iatoolkit-0.60.
|
|
109
|
+
iatoolkit-0.60.1.dist-info/METADATA,sha256=kl3WrHpU-XIlw1_m_QDFNlNsvmKDpnEjW4j5zHbC9Tw,9301
|
|
110
|
+
iatoolkit-0.60.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
111
|
+
iatoolkit-0.60.1.dist-info/top_level.txt,sha256=V_w4QvDx0b1RXiy8zTCrD1Bp7AZkFe3_O0-9fMiwogg,10
|
|
112
|
+
iatoolkit-0.60.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|