tg-prepare 1.1.0__py3-none-any.whl → 2.1.0b2__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 tg-prepare might be problematic. Click here for more details.
- {tg_prepare-1.1.0.dist-info → tg_prepare-2.1.0b2.dist-info}/METADATA +3 -3
- tg_prepare-2.1.0b2.dist-info/RECORD +78 -0
- {tg_prepare-1.1.0.dist-info → tg_prepare-2.1.0b2.dist-info}/WHEEL +1 -1
- tg_prepare-2.1.0b2.dist-info/projects/.secret_key +1 -0
- tgp_backend/__init__.py +3 -4
- tgp_backend/config.py +31 -0
- tgp_backend/directories.py +6 -8
- tgp_backend/nextcloud.py +40 -19
- tgp_backend/project.py +172 -45
- tgp_backend/session_manager.py +47 -0
- tgp_backend/util.py +73 -25
- tgp_ui/app.py +43 -335
- tgp_ui/routes/__init__.py +0 -0
- tgp_ui/routes/collection.py +272 -0
- tgp_ui/routes/data.py +228 -0
- tgp_ui/routes/project.py +102 -0
- tgp_ui/routes/publication.py +129 -0
- tgp_ui/routes/tabs.py +34 -0
- tgp_ui/routes/views.py +62 -0
- tgp_ui/static/css/bootstrap.min.css.map +1 -0
- tgp_ui/static/css/navbar.css +92 -0
- tgp_ui/static/img/favicon.ico +0 -0
- tgp_ui/static/img/textgrid-logo.svg +1 -0
- tgp_ui/static/js/collectionManager.js +60 -0
- tgp_ui/static/js/fileManager.js +186 -0
- tgp_ui/static/js/main.js +32 -485
- tgp_ui/static/js/modalManager.js +105 -0
- tgp_ui/static/js/navbarManager.js +151 -0
- tgp_ui/static/js/projectManager.js +60 -0
- tgp_ui/static/js/require.js +5 -0
- tgp_ui/static/js/sidebarManager.js +32 -0
- tgp_ui/static/js/tabManager.js +79 -0
- tgp_ui/templates/details/empty_container.html +16 -0
- tgp_ui/templates/details/manage_collection.html +205 -0
- tgp_ui/templates/includes/set_session_id_form.html +16 -0
- tgp_ui/templates/includes/upload_form.html +131 -0
- tgp_ui/templates/layout.html +9 -48
- tgp_ui/templates/macros.html +79 -72
- tgp_ui/templates/modal/delete_project.html +25 -0
- tgp_ui/templates/modal/empty_container.html +9 -0
- tgp_ui/templates/modal/file_explorer_content.html +34 -0
- tgp_ui/templates/modal/file_explorer_main.html +22 -0
- tgp_ui/templates/modal/file_explorer_nextcloud.html +27 -0
- tgp_ui/templates/modal/github_modal.html +29 -0
- tgp_ui/templates/modal/nextcloud_login.html +48 -0
- tgp_ui/templates/modal/tei_explorer.html +58 -0
- tgp_ui/templates/modal/xpath_parser.html +52 -0
- tgp_ui/templates/project_main.html +36 -0
- tgp_ui/templates/project_navbar.html +81 -0
- tgp_ui/templates/{projects.html → projects_main.html} +13 -28
- tgp_ui/templates/tab_final_upload.html +29 -0
- tgp_ui/templates/tabs/check_result.html +90 -0
- tgp_ui/templates/tabs/edit_project.html +113 -0
- tgp_ui/templates/tabs/empty_container.html +12 -0
- tgp_ui/templates/tabs/import_data.html +138 -0
- tgp_ui/templates/tabs/manage_collections.html +88 -0
- tgp_ui/templates/tabs/select_directories.html +41 -0
- tgp_ui/templates/tabs/upload.html +42 -0
- tgp_ui/templates/tabs/validate_metadata.html +227 -0
- tg_prepare-1.1.0.dist-info/RECORD +0 -39
- tgp_ui/templates/collection.html +0 -194
- tgp_ui/templates/file_upload.html +0 -24
- tgp_ui/templates/nxc_file_tree.html +0 -33
- tgp_ui/templates/project.html +0 -26
- tgp_ui/templates/storage.html +0 -49
- tgp_ui/templates/tei_explorer.html +0 -48
- tgp_ui/templates/xpath_parser_modal_content.html +0 -37
- {tg_prepare-1.1.0.dist-info → tg_prepare-2.1.0b2.dist-info}/entry_points.txt +0 -0
- {tg_prepare-1.1.0.dist-info → tg_prepare-2.1.0b2.dist-info}/licenses/LICENSE +0 -0
- {tg_prepare-1.1.0.dist-info → tg_prepare-2.1.0b2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.btn-circle.btn-xl {
|
|
2
|
+
width: 4.2rem;
|
|
3
|
+
height: 4.2rem;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
text-align: center;
|
|
6
|
+
font-size: 1.5rem;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
position: relative;
|
|
11
|
+
z-index: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn-circle.btn-sm {
|
|
15
|
+
width: 3.2rem;
|
|
16
|
+
height: 3.2rem;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Animation für den Übergang */
|
|
25
|
+
.btn-xl.animate-to-long {
|
|
26
|
+
width: 25rem;
|
|
27
|
+
height: 4.2rem;
|
|
28
|
+
border-width: 0.2rem;
|
|
29
|
+
border-radius: 3rem;
|
|
30
|
+
transition: all 5.2s ease-in-out;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.btn-xl.animate-to-long i .main-icon {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
/* Icon ausblenden */
|
|
39
|
+
transition: opacity 0.3s ease-in-out;
|
|
40
|
+
/* Sanftes Ausblenden */
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.line {
|
|
44
|
+
height: 20px;
|
|
45
|
+
border-radius: 10px;
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 50%;
|
|
48
|
+
height: 4px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.line.blank {
|
|
52
|
+
width: 95%;
|
|
53
|
+
background-color: #f8f9fa;
|
|
54
|
+
left: 1rem;
|
|
55
|
+
z-index: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.line.blue {
|
|
59
|
+
width: 0%;
|
|
60
|
+
background-color: #0d6efd;
|
|
61
|
+
left: 1rem;
|
|
62
|
+
z-index: 0.5;
|
|
63
|
+
transition: width 0.3s ease-in-out;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.btn-xl.animate-to-long {
|
|
67
|
+
z-index: 2;
|
|
68
|
+
/* Erweiterte Buttons über die Linie legen */
|
|
69
|
+
transition: all 0.3s ease-in-out;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.border-primary{
|
|
73
|
+
border-width: 0.2rem;
|
|
74
|
+
transition: all 0.2s ease-in-out;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/* tab-edit-other-files */
|
|
79
|
+
.tab-button {
|
|
80
|
+
width: 12rem;
|
|
81
|
+
height: 12rem;
|
|
82
|
+
color: #0d6efd;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tab-button.active,
|
|
86
|
+
.tab-button:active {
|
|
87
|
+
background-color: #FFFFFF !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.big-icon {
|
|
91
|
+
font-size: 5rem;
|
|
92
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1052.4" height="402.75" viewBox="0 0 1052.4 402.75"><path fill="#FFF" fill-opacity=".917" d="M79.453 81.4H192.98c33.09 0 59.916 26.824 59.916 59.915v45.727c0 33.09-26.826 59.917-59.917 59.917H79.452c-33.092 0-59.918-26.827-59.918-59.918v-45.727c0-33.09 26.826-59.916 59.918-59.916z"/><path fill="#1974BB" d="M597.384 236.043c-1.19 1.494-2.86 1.787-10.168 1.79-7.438.002-9.645-.426-11.758-2.28-1.51-1.325-1.85-2.266-2.64-7.255-1.443-9.144-5.07-16.244-11.898-23.304l-3.32-3.43 1.553-1.247c.853-.685 4.782-3.547 8.732-6.36 6.088-4.332 7.295-5.053 7.93-4.737 1.46.728 9.025 8.775 11.37 12.092 5.874 8.306 10.223 20.385 10.79 29.966.204 3.46.16 3.826-.59 4.765zm-56.61-65.878c-2.89 2.227-6.79 5.298-8.673 6.824-1.88 1.527-3.59 2.775-3.8 2.775-.606 0-6.222-5.92-8.54-9.002-2.867-3.815-5.695-8.845-7.257-12.904-3.385-8.802-5.263-20.502-3.757-23.413.928-1.793 2.448-2.074 11.247-2.074h7.868l1.77 1.04c2.393 1.405 3.48 3.39 4.414 8.046 1.822 9.09 4.895 15.63 10.36 22.05.895 1.052 1.63 2.07 1.63 2.262-.004.19-2.37 2.167-5.26 4.393zm-284.373 18.217c-1.152 28.382-6.607 52.157-16.357 71.283-13.492 26.468-35.653 43.847-65.497 51.367-23.17 5.837-53.585 6.213-76.218.943-14.674-3.416-28.202-9.59-38.652-17.642-25.58-19.708-39.068-52.3-41.525-100.33-.445-8.735-.525-173.464-.082-173.464.162 0 .96 1.47 1.77 3.272 3.333 7.402 8.617 15.137 14.602 21.38 6.128 6.393 11.236 10.182 18.36 13.617l3.746 1.805 80.214.005 80.214.007 4.27-3.057c7.34-5.252 11.545-8.838 18.34-15.645 6.89-6.906 10.91-11.877 14.412-17.826 1.153-1.958 2.255-3.56 2.448-3.56.424-.002.38 157.387-.043 167.842zm-12.535-59.195c-3.77-17.33-16.35-31.568-32.774-37.093-7.17-2.412-15.74-3.185-23.166-2.087-16.093 2.376-30.04 12.506-37.44 27.19-5.664 11.238-6.666 25.222-2.69 37.467 6.59 20.28 25.616 34.123 47 34.195 13.822.047 25.44-4.733 35.26-14.507 8.214-8.176 12.697-17.2 14.525-29.244.364-2.412-.117-13.182-.715-15.923zm-31.032 6.202c-3.105 9.533-12.853 15.125-22.144 12.705-11.547-3.007-17.382-15.79-12.03-26.355 1.86-3.672 6.18-7.518 9.924-8.84 9.164-3.233 18.817.668 23.1 9.338 1.425 2.89 1.472 3.104 1.557 7.306.056 2.796-.087 4.863-.407 5.845zm-56.194 58.8c-1.892-1.813-5.125-3.217-9.66-4.195-4.802-1.035-15.827-.94-20.277.173-5.688 1.425-9.303 3.774-10.043 6.525-.74 2.745.735 7.18 4.37 13.145 4.35 7.144 15.085 20.505 16.473 20.505.616 0 7.526-8.233 11.45-13.64 6.256-8.623 9.295-14.74 9.306-18.738.005-2.132-.06-2.28-1.62-3.776zm-28.322-64.903c-4.025-19.63-18.993-34.547-39.077-38.94-4.312-.944-14.915-.94-19.306.008-19.99 4.315-34.856 19.113-39.114 38.932-1.077 5.015-1.152 14.603-.15 19.183 2.32 10.613 6.643 18.678 13.865 25.87 9.665 9.622 21.455 14.505 35.053 14.515 10.308.01 19.165-2.676 27.82-8.432 6.367-4.234 13.233-12.023 16.762-19.014 2.254-4.467 4.27-11.4 5.01-17.236.376-2.95-.1-11.172-.862-14.887zm-31.684 5.637c-1.778 6.466-6.908 11.454-13.563 13.186-8.237 2.147-17.194-2.182-20.97-10.135-1.236-2.6-1.39-3.267-1.544-6.738-.142-3.19-.035-4.302.622-6.463 3.062-10.084 13.93-15.45 24.057-11.876 3.75 1.324 8.034 5.114 9.864 8.725 2.026 4 2.636 9.287 1.534 13.3z"/><path fill="#090909" d="M1030.386 383.502l-1.988-.114-.188-8.805c-.176-8.293-.24-8.9-1.054-10.428-2.202-4.127-8.21-3.863-10.75.472-.918 1.565-.935 1.733-.94 9.8-.005 4.517-.146 8.432-.32 8.7-.205.326-.93.453-2.147.376l-1.84-.116v-25.102l.883-.126c.485-.07 1.285-.025 1.778.1.762.19.9.455.9 1.715 0 .828.18 1.492.41 1.492.224 0 1.086-.58 1.916-1.29 4.663-3.992 11.528-2.948 14.264 2.17.79 1.475.838 2.065.95 11.41l.116 9.856-1.99-.11zm1.014-61.89c-.935 4.278-2.63 6.56-5.966 8.037-3.555 1.57-9.21 1.62-12.983.11-1.49-.596-1.545-.678-1.34-1.938.118-.724.35-1.455.52-1.624.17-.17 1.145.005 2.168.39 5.853 2.19 11.005.794 12.962-3.515.44-.97.685-2.4.69-4.03.01-2.833-.382-3.17-1.856-1.603-2.086 2.222-7.21 2.91-10.558 1.422-2.362-1.052-4.605-3.462-5.613-6.03-1.075-2.74-1.18-7.948-.217-10.743 2.534-7.347 11.39-10.5 16.704-5.95 1.87 1.6 2.298 1.592 2.298-.038 0-1.064.165-1.345.898-1.53.494-.123 1.295-.168 1.78-.1l.88.126.067 12.364c.05 9.133-.063 12.958-.433 14.65zm-4.674-20.428c-1.472-2.886-3.857-4.076-7.372-3.68-2.15.24-4.123 1.798-5.38 4.24-.81 1.57-.94 2.316-.938 5.39 0 4 .673 5.838 2.784 7.613 3.5 2.943 8.868 1.93 10.838-2.045 1.13-2.29 1.175-9.35.068-11.518zm1.465-71.332c-.71 3.596-2.25 4.552-9.86 6.125-14.216 2.937-33.407 4.172-43.942 2.827-11.913-1.52-20.247-5.097-27.014-11.595-7.896-7.582-11.946-17.748-13.228-33.208-.526-6.35-.243-17.738.583-23.53 3.186-22.31 13.346-34.708 31.846-38.862 3.664-.823 14.883-1.147 19.548-.565 4.796.6 11.12 2.242 15.096 3.92 1.745.738 3.296 1.342 3.448 1.342.15 0 .323-8.978.386-19.95.11-19.823.117-19.962.955-21.662.578-1.175 1.34-1.996 2.434-2.622 1.51-.865 1.91-.913 7.774-.913 3.4 0 6.81.133 7.576.297 2.124.45 3.855 2.31 4.364 4.686.507 2.365.537 131.157.033 133.71zm-26.07-76.56c-4.624-2.135-9.264-3.165-15.31-3.395-6.502-.248-9.89.355-14.38 2.56-5.534 2.717-9.132 7.13-11.507 14.118-1.99 5.847-2.52 10.735-2.292 21.058.173 7.737.314 9.304 1.168 12.925 1.463 6.215 3.652 10.45 7.26 14.056 1.873 1.87 3.732 3.313 5.275 4.09 6.655 3.355 15.796 3.846 27.558 1.483 2.044-.412 4.025-.913 4.403-1.115.66-.353.688-1.702.688-32.413v-32.045l-2.86-1.322zm.52 218.116c-.26.096-4.262.216-8.9.27l-8.43.096-.13.92c-.2 1.44.616 3.65 1.89 5.103 2.433 2.77 6 3.64 10.776 2.63 1.538-.324 2.937-.45 3.107-.28s.345.802.39 1.402c.07.994-.085 1.145-1.795 1.73-2.427.828-8.324.885-10.95.105-2.523-.75-5.345-3.3-6.515-5.886-.775-1.717-.895-2.55-.895-6.288 0-3.967.086-4.495 1.09-6.67 2.13-4.613 6.222-7.073 11.228-6.752 4.56.293 7.744 2.924 9.014 7.452.715 2.54.78 5.922.12 6.166zm-4.045-5.898c-1.89-6.8-11.212-6.106-13.134.98-.307 1.14-.285 1.527.104 1.773.585.37 12.807.442 13.172.077.35-.35.308-1.213-.14-2.83zm3.514-45.876c-.14.138-1.05.25-2.02.25-1.27 0-1.837-.167-2-.59-.125-.327-.23-4.247-.235-8.712-.01-8.932-.284-10.3-2.406-11.97-2.845-2.235-7.517-.898-9.517 2.727-.51.922-.654 2.674-.808 9.74l-.187 8.618-1.967.114-1.965.112-.082-9.947c-.045-5.472-.088-11.17-.094-12.664l-.012-2.716h1.68c1.393 0 1.7.127 1.795.748.426 2.82.713 2.988 2.335 1.367 1.572-1.574 3.632-2.43 6.273-2.607 4.4-.296 7.79 2.264 8.955 6.763.526 2.04.748 18.272.254 18.766zm-26.82 41.654c-.26.09-1.734.212-3.28.27l-2.81.1-.112 6.93c-.174 10.762.113 11.645 3.912 11.982 2.176.194 2.194.205 2.315 1.467.16 1.657-.29 1.9-3.53 1.906-3.074.006-4.64-.783-5.937-2.993-.703-1.195-.787-2.1-.958-10.3l-.187-8.993-1.874-.187c-1.854-.185-1.876-.202-1.99-1.58-.124-1.496.076-1.633 2.74-1.877 1.093-.1 1.126-.163 1.236-2.284.11-2.09.168-2.205 1.393-2.717 2.51-1.05 2.756-.864 2.88 2.18l.11 2.717 2.434.097c3.84.15 4.12.273 4.12 1.797.004.724-.208 1.39-.465 1.484zm-4.31-41.478c-1.735-.11-1.782-.146-1.9-1.425-.186-2.037-.614-2.113-2.51-.445-2.222 1.957-3.707 2.43-7.082 2.26-3.065-.155-4.7-.997-6.21-3.202-1.568-2.29-1.873-4.51-1.873-13.674v-8.527l.89-.224c.49-.123 1.376-.17 1.968-.1l1.075.12.24 8.43c.293 10.32.725 11.956 3.49 13.27 2.67 1.265 5.973.32 7.956-2.276l1.05-1.378.115-8.633c.07-5.408.263-8.814.514-9.115.22-.267.956-.484 1.635-.484 2.578 0 2.42-.85 2.42 12.986v12.53l-1.78-.114zm-12.044 28.548c-.243.872-.403.93-2.303.827-3.757-.2-5.61 1.887-5.73 6.453l-.06 2.274 2.77.187c3.055.205 3.7.67 3.276 2.36-.236.938-.37.984-3.147 1.09l-2.9.11-.188 10.863-.186 10.865h-3.747l-.188-10.865-.186-10.864-1.592-.116c-1.357-.1-1.627-.26-1.835-1.09-.348-1.384.282-2.14 1.965-2.354l1.46-.187.24-2.686c.558-6.244 3.707-9.49 9.208-9.49 3.152-.002 3.737.487 3.14 2.62zm-14.103-37.185c-1.59 5.902-5.402 9.06-10.954 9.077-3.194.012-4.666-.52-6.795-2.442-.852-.77-1.656-1.294-1.786-1.165-.13.13-.34.87-.466 1.645-.224 1.376-.266 1.41-1.85 1.41h-1.62l.052-18.356c.03-10.097.19-18.494.36-18.663.168-.17 1.047-.255 1.948-.19l1.644.117.1 7.296c.058 4.094.263 7.456.468 7.66.238.24.793-.038 1.584-.79 2.17-2.058 3.514-2.545 7.025-2.544 3.596 0 5.284.658 7.36 2.863 3.064 3.254 4.275 9.076 2.927 14.08zm-4.448-7.918c-1.084-3.602-3.84-5.85-7.172-5.85-2.227 0-3.993.85-5.55 2.668-1.595 1.864-2.11 3.646-2.107 7.304.004 4.082.513 5.65 2.44 7.506 4.075 3.924 10.288 2.25 12.2-3.29.834-2.416.914-5.93.19-8.338zm-3.935 80.164c-.086.085-.89.155-1.79.155-1.516 0-1.65-.08-1.86-1.13-.3-1.512-.767-1.726-1.747-.806-2.46 2.308-7.517 3.033-10.632 1.524-2.816-1.364-4.285-4.864-3.47-8.266.96-3.99 4.74-6.355 11.41-7.136 1.856-.218 3.48-.56 3.61-.76.52-.81-.462-3.493-1.705-4.66-1.69-1.585-3.942-1.933-7.076-1.09-1.276.34-2.69.717-3.145.835-.66.17-.875.017-1.07-.763-.135-.537-.156-1.21-.046-1.494.534-1.395 7.955-2.596 10.97-1.776 3.315.9 5.444 3.174 6.115 6.53.374 1.864.76 18.515.435 18.835zm-7-12.748c-3.172.025-5.587.855-7.11 2.445-.958.997-1.095 1.418-1.095 3.356 0 1.875.146 2.36.958 3.17 1.833 1.836 5.453 1.697 7.722-.294 1.88-1.65 2.375-2.976 2.272-6.078l-.087-2.623-2.66.02zm-3.694-138.702c-.797 2.238-1.937 3.167-5.116 4.172-6.18 1.952-15.077 2.042-20.962.213-6.008-1.867-9.884-6.47-11.708-13.9-1.282-5.226-1.42-10.326-1.306-48.122.124-40.54-.013-38.083 2.23-40.145 1.537-1.413 3.437-1.703 10.25-1.568 6.977.14 8.014.427 9.696 2.683.788 1.055.79 1.167 1.003 39.712.23 41.62.187 40.788 2.202 42.944 1.518 1.624 3.516 2.022 7.074 1.408 4.604-.795 5.23-.27 6.423 5.38.876 4.137.91 5.272.213 7.222zm-10.94 75.675c-.138.138-4.106.25-8.817.25-9.704 0-9.4-.105-8.587 2.962 1.027 3.888 4.34 6.205 8.843 6.185 1.444-.007 3.52-.232 4.614-.5 1.093-.27 2.07-.407 2.17-.307.1.102.28.77.395 1.49l.213 1.304-2.434.658c-1.824.494-3.405.62-6.315.51-3.435-.133-4.115-.278-5.89-1.25-4.263-2.336-6.3-6.54-5.96-12.3.323-5.444 2.526-9.365 6.416-11.41 1.676-.88 2.363-1.01 5.296-1.015 2.907-.003 3.603.126 5.04.934 2.092 1.175 3.95 3.58 4.692 6.078.577 1.95.778 5.953.32 6.41zm-4.37-6.32c-1.387-3.587-5.146-5.235-8.623-3.78-2.472 1.032-5.347 5.613-4.31 6.863.307.37 1.965.49 6.668.49 3.445 0 6.375-.11 6.51-.25.375-.374.253-2.036-.245-3.323zm-.017-187.762c-.615 2.19-2.046 3.76-3.95 4.33-.85.255-4.24.43-8.334.43-6.412 0-7.02-.06-8.573-.843-1.222-.616-1.9-1.293-2.514-2.515-.792-1.568-.845-2.138-.845-9.193 0-7.062.05-7.623.844-9.172 1.41-2.76 2.656-3.167 10.204-3.325 9.017-.188 11.48.513 12.857 3.663.813 1.854 1.038 14.022.31 16.625zm-1.61 269.762c-.138.137-1.048.25-2.02.25-1.27 0-1.836-.167-2-.592-.124-.326-.23-4.246-.235-8.71-.006-7.12-.094-8.31-.71-9.66-1.63-3.595-6.206-4.46-9.394-1.776-2.297 1.935-2.42 2.485-2.624 11.935l-.187 8.617-1.972.113-1.97.114.096-18.66.097-18.658h3.747l.103 7.295c.055 4.013.235 7.428.396 7.59.163.163.958-.295 1.766-1.016 5.263-4.682 12.892-2.395 14.652 4.39.53 2.04.75 18.27.255 18.765zm-22.238-74.118c-.142 8.218-.378 13.207-.665 14.062-1.23 3.68-3.818 6.115-7.57 7.122-3.673.985-11.097.198-12.348-1.31-.356-.427-.36-.85-.02-1.878.24-.73.47-1.326.514-1.326.042 0 1.082.366 2.312.814 4.565 1.66 9.648.886 11.754-1.792 1.034-1.313 1.91-4.33 1.91-6.582 0-1.915-.568-2.368-1.525-1.214-.27.325-1.344 1.025-2.387 1.556-2.577 1.31-6.347 1.367-8.912.132-2.11-1.018-4.197-3.225-5.298-5.605-.672-1.455-.8-2.42-.793-6.04.006-3.943.096-4.49 1.05-6.444 2.15-4.413 6.37-6.94 10.967-6.573 2.472.2 5.47 1.573 5.903 2.704.36.935 1.336.653 1.58-.457.405-1.85.5-1.968 1.62-1.968 1.656 0 2.3.364 2.21 1.257-.045.44-.18 6.533-.303 13.54zm-5.086-7.987c-2.38-4.777-8.698-5.228-11.928-.85-1.375 1.864-1.86 3.613-1.874 6.78-.025 5.318 2.71 8.92 7.052 9.282 1.48.122 2.34-.025 3.444-.59 3.245-1.664 4.24-3.784 4.263-9.09.013-3.122-.108-3.83-.957-5.532zm-2.635 82.033c-.59.244-2.845.516-5.01.605-3.34.136-4.25.042-6.024-.626-2.806-1.057-4.95-2.973-6.222-5.568-.97-1.972-1.054-2.49-1.054-6.454 0-4.023.074-4.45 1.1-6.482 2.148-4.24 5.99-6.6 11.205-6.88 1.874-.103 3.78.025 4.93.33 1.795.475 1.87.547 1.81 1.747-.085 1.817-.526 2.097-2.515 1.595-5.112-1.287-9.457.495-11.496 4.717-1.35 2.795-1.26 6.787.22 9.68 1.575 3.08 3.75 4.412 7.51 4.6 1.522.078 3.326-.062 4.096-.315 1.578-.522 1.94-.297 2.283 1.408.213 1.067.12 1.248-.837 1.642h.005zm-8.62-239.644c-.505 2.264-1.163 4.492-1.46 4.948-.82 1.25-3.18 1.75-5.97 1.264-2.968-.517-13.69-.523-17.816-.01-3.97.495-8.227 1.36-10.668 2.168l-1.872.622-.188 40.462c-.18 38.984-.212 40.506-.902 41.645-.395.65-1.405 1.577-2.248 2.06-1.447.828-1.897.877-8.09.877-4.466 0-7-.158-7.947-.494-1.683-.596-3.125-2.22-3.65-4.108-.558-2.006-.534-90.027.025-92.06.94-3.417 5.037-5.725 14.01-7.89 6.984-1.686 11.024-2.092 22.852-2.297 9.2-.16 12.057-.08 15.735.426 6.042.833 7.087 1.15 8.215 2.493.82.975.96 1.49.928 3.458-.023 1.274-.45 4.17-.956 6.434zm-13.12 175.807c-.294.722-3.738.617-4.02-.125-.126-.325-.23-4.077-.23-8.337 0-4.258-.178-8.37-.39-9.136-1.173-4.222-5.614-5.653-8.815-2.842-2.338 2.052-2.41 2.387-2.41 11.49 0 4.527-.1 8.5-.226 8.825-.164.426-.73.59-2.02.59s-1.86-.165-2.02-.59c-.126-.326-.23-4.346-.23-8.933 0-7.953-.038-8.415-.85-9.952-.91-1.724-2.794-3.008-4.388-2.994-1.747.015-4.03 1.36-5.132 3.025l-1.055 1.592-.096 8.082c-.054 4.446-.183 8.464-.29 8.926-.166.735-.43.843-2.05.843-1.618 0-1.886-.11-2.064-.843-.114-.462-.16-6.153-.1-12.645l.104-11.8.88-.126c.485-.07 1.286-.025 1.78.1.73.183.9.467.9 1.507 0 .705.17 1.387.38 1.517.21.13 1.127-.42 2.037-1.224 3.815-3.357 9.535-3.065 12.084.62.575.83 1.214 1.514 1.42 1.522.206.007.83-.557 1.386-1.254 1.38-1.73 4.483-3.226 6.686-3.226 5.07 0 7.913 2.993 8.61 9.068.368 3.19.454 15.475.115 16.314h.002zm-3.72 60.026c-.805 1.86-1.588 2.62-3.714 3.62-2.287 1.074-6.83 1.21-9.905.297l-1.984-.59.218-1.345c.12-.738.35-1.475.512-1.635.163-.158 1.22.032 2.355.424 3.866 1.34 7.276.723 8.44-1.525 1.355-2.623-.153-4.817-4.538-6.6-4.687-1.908-6.806-4.478-6.43-7.803.544-4.83 5.887-7.628 11.834-6.202 2.345.562 2.88 1.124 2.404 2.532-.395 1.167-1.038 1.247-3.738.473-1.973-.566-3.91-.226-5.243.92-.816.702-1.025 1.204-1.025 2.467 0 1.34.195 1.748 1.255 2.633.69.577 2.252 1.42 3.47 1.877 1.22.456 2.9 1.322 3.73 1.926 2.627 1.9 3.645 5.574 2.36 8.53zm-23.984 3.86c-.15.15-1.072.272-2.05.272h-1.775l-.14-8.71c-.158-9.606-.35-10.548-2.5-12.36-2.72-2.287-6.923-1.42-9.226 1.9l-1.127 1.623-.187 8.68-.186 8.68-1.945.112-1.945.113-.118-12.475c-.075-8.018.017-12.58.258-12.76.206-.158.965-.243 1.685-.19 1.214.092 1.337.217 1.664 1.69.408 1.842.848 1.972 2.11.62 1.7-1.82 3.64-2.56 6.743-2.574 2.518-.01 3.047.116 4.678 1.124 1.41.87 2.105 1.654 2.97 3.344l1.13 2.207.116 9.215c.066 5.067-.004 9.337-.154 9.487zm-17.16-63.57c-.29.112-1.09.15-1.78.084-1.132-.11-1.265-.248-1.374-1.432-.185-2.012-.625-2.133-2.29-.63-2.258 2.042-3.845 2.58-7.17 2.438-3.288-.14-4.898-.995-6.48-3.435-1.49-2.295-1.76-4.55-1.65-13.735l.1-8.43h3.745l.235 8.43c.287 10.29.725 11.954 3.498 13.27 3.11 1.474 6.8.07 8.484-3.23.63-1.24.71-2.284.71-9.574 0-5.865.127-8.31.448-8.632.248-.248.993-.45 1.655-.45 2.544 0 2.392-.814 2.392 12.79.004 10.247-.086 12.37-.524 12.536zm-12.062 51.385c-.16.355-2.32.47-8.944.47-9.874 0-9.473-.14-8.668 2.96 1.088 4.19 4.068 6.23 9.034 6.176 1.65-.017 3.74-.24 4.644-.492 1.856-.52 2.272-.242 2.282 1.528.01 1.404-1.497 1.872-6.738 2.088-5.313.22-7.654-.49-10.274-3.11-2.38-2.38-3.346-5.065-3.365-9.338-.038-8.718 5.222-14.27 12.867-13.577 5.315.482 8.69 4.352 9.19 10.537.1 1.26.088 2.5-.028 2.758zm-5.278-7.48c-1.737-2.974-6.412-3.83-9.222-1.685-1.747 1.33-2.982 3.404-3.03 5.082l-.038 1.367 6.366.103c5.42.088 6.432.015 6.797-.482.52-.718.136-2.655-.874-4.384zM785.56 231.01c-.753 1.528-1.88 2.33-4.998 3.555-2.893 1.138-11.263 3-17.105 3.805-10.717 1.48-29.2 1.677-37.595.403-28.34-4.3-43.122-21.368-47.076-54.36-.9-7.51-.9-28.39.003-35.18 4.13-31.123 18.942-48.64 46.064-54.483 6.18-1.33 12.622-1.903 21.426-1.903 11.136 0 19.204.777 29.096 2.8 8.16 1.67 10.136 3.676 9.565 9.7-.524 5.543-1.638 8.13-4.01 9.322-1.698.853-3.963.827-9.438-.107-15.78-2.693-28.463-2.94-38.532-.748-7.24 1.575-12.503 4.323-17.245 9.004-7.525 7.425-10.673 17.037-11.633 35.515-.458 8.834-.012 21.87.99 28.882 2.925 20.466 11.373 30.5 27.942 33.187 4.565.74 16.047.75 22.936.018 2.846-.302 5.332-.648 5.526-.768.216-.132.355-9.042.356-22.77 0-14.58.14-23.05.395-23.965.217-.78.9-1.99 1.517-2.695 1.592-1.815 3.62-2.172 11.387-2.015 7.595.155 8.825.552 10.21 3.3l.842 1.672-.008 28.3c-.007 25.3-.072 28.43-.614 29.528zm-1.03 84.94c-1.27 2.843-4.27 4.31-8.818 4.31-2.766 0-6.136-.787-6.602-1.542-.188-.303.482-2.955.746-2.955.055 0 1.08.337 2.278.75 4.978 1.712 8.805.235 8.805-3.4 0-1.923-1.166-3.008-5.308-4.943-2.163-1.01-3.893-2.1-4.522-2.846-3.096-3.68-1.395-9.015 3.42-10.714 2.08-.733 4.99-.733 7.465 0 1.6.475 1.94.727 1.94 1.428 0 .466-.215 1.146-.48 1.507-.456.624-.6.624-2.768.023-3.995-1.11-6.867.194-6.867 3.12 0 1.967.927 2.86 4.83 4.65 3.356 1.542 4.984 2.79 5.882 4.507.662 1.267.66 4.62-.003 6.105zm-13 62.707c-.588 1.96-1.806 3.34-3.85 4.358-1.564.78-2.414.934-5.108.934-3.068 0-6.455-.74-6.935-1.518-.177-.288.745-2.98 1.024-2.978.062 0 1 .338 2.085.75 4.705 1.786 8.83.226 8.83-3.342 0-1.932-1.048-2.923-5.19-4.907-4.83-2.31-6.178-3.817-6.168-6.89.017-4.76 4.007-7.7 9.8-7.222 2.07.17 4.807 1.036 4.807 1.52 0 .605-.904 2.48-1.198 2.48-.205 0-1.3-.27-2.43-.596-2.575-.75-4.377-.448-5.795.97-1.29 1.293-1.395 2.856-.28 4.273.437.557 2.51 1.825 4.68 2.864 3.1 1.485 4.08 2.15 4.806 3.265 1.06 1.632 1.46 4.237.923 6.037zm-9.368-57.718c-1.117 6.667-5.185 9.878-12.508 9.874-2.265-.002-4.11-.235-5.62-.712-2.24-.708-2.248-.717-2.203-2.12.065-1.997.444-2.202 2.592-1.397 4.668 1.748 8.748 1.305 11.277-1.222 1.755-1.755 2.38-3.506 2.38-6.698.005-2.44-.444-2.735-1.86-1.226-1.275 1.354-3.95 2.255-6.614 2.228-4.266-.046-7.597-2.4-9.6-6.78-.682-1.49-.826-2.465-.815-5.555.017-4.338.834-6.956 2.932-9.408 3.68-4.3 10.49-5.143 14.413-1.787 1.87 1.6 2.296 1.59 2.296-.038 0-1.065.167-1.346.9-1.53.494-.123 1.296-.168 1.78-.1l.88.125.052 12.177c.032 6.697-.096 13.072-.28 14.167zm-4.812-19.756c-1.473-2.886-3.86-4.076-7.373-3.68-2.178.245-4.15 1.796-5.38 4.23-.806 1.59-.937 2.354-.932 5.41.005 3.99.68 5.836 2.78 7.603 3.497 2.943 8.866 1.93 10.835-2.045 1.134-2.29 1.177-9.35.07-11.518zm-8.97 78.486c-1.426 3.145-4.354 4.445-9.484 4.212-4.432-.203-5.75-.788-5.667-2.517.032-.683.2-1.382.374-1.553.172-.172 1.24.01 2.375.403 5.21 1.805 9.54-.145 8.822-3.973-.293-1.57-1.897-2.922-4.922-4.153-4.785-1.947-6.848-4.507-6.38-7.918.655-4.768 5.744-7.43 11.672-6.103 2.43.543 2.997 1.118 2.513 2.545-.395 1.168-1.04 1.25-3.738.475-1.972-.566-3.91-.226-5.243.92-.815.702-1.024 1.204-1.024 2.467 0 1.34.194 1.748 1.255 2.633.69.575 2.252 1.42 3.47 1.877 5.707 2.132 7.997 6.23 5.976 10.683zm-15.65-60.036c-.136.138-1.046.25-2.02.25-1.27 0-1.835-.167-1.996-.592-.127-.325-.232-4.245-.237-8.71-.008-8.932-.283-10.3-2.405-11.97-2.843-2.235-7.516-.898-9.516 2.727-.507.922-.654 2.674-.806 9.74l-.188 8.617-1.955.113c-1.775.103-1.975.034-2.166-.748-.115-.475-.16-6.173-.104-12.664l.105-11.8h1.686c1.68 0 1.686 0 1.804 1.425.065.784.33 1.507.59 1.607.262.1 1.12-.407 1.906-1.127 4.044-3.705 10.73-3.14 13.673 1.154 1.497 2.186 1.87 4.898 1.876 13.645.003 4.445-.107 8.196-.245 8.332zm-8.604 33.193c-1.126.886-1.717.956-2.877.346-1.11-.583-1.37-1.046-1.376-2.445-.007-1.538 1.567-2.894 2.975-2.56 2.265.53 3.02 3.286 1.276 4.66zm.29 30.302c-.205.324-.93.452-2.15.374l-1.836-.116-.1-12.34c-.076-9.62.006-12.403.375-12.638.724-.458 3.077-.368 3.584.138.527.53.647 23.76.127 24.58zm-15.15-11.543l-3.835 11.8-1.823.117c-1.003.064-1.96-.02-2.125-.187-.352-.358-4.596-13.478-5.465-16.897-.33-1.296-.777-2.297-.995-2.225-.217.073-.625.88-.906 1.794-1.696 5.524-5.5 16.72-5.812 17.117-.483.607-3.452.607-3.925 0-.54-.692-7.594-24.335-7.37-24.7.237-.382 3.174-.4 3.76-.023.406.26 3.5 11.294 4.835 17.248.677 3.016 1.18 3.277 1.9.987.255-.812 1.592-5.1 2.972-9.53s2.677-8.267 2.884-8.525c.206-.257 1.007-.467 1.782-.467.774 0 1.57.21 1.77.467.32.413 3.853 11.64 5.54 17.61.337 1.184.76 2.153.944 2.153.184 0 .515-.716.736-1.59 1.702-6.718 5.05-17.948 5.452-18.28.27-.225 1.135-.355 1.92-.29 1.108.09 1.452.287 1.515.867.045.413-1.644 6.06-3.753 12.552zm-6.407-51.853c-.29.11-1.09.15-1.78.083-1.13-.11-1.265-.248-1.373-1.432-.185-2.01-.625-2.132-2.29-.628-2.26 2.04-3.846 2.58-7.176 2.437-3.666-.157-5.465-1.287-6.988-4.385l-1.035-2.107v-19.107h3.748l.19 8.63c.18 8.278.228 8.708 1.123 10.447 2.347 4.556 8.44 4.214 10.902-.612.63-1.24.71-2.283.71-9.573 0-5.865.126-8.31.447-8.632.583-.583 3.015-.583 3.597 0 .332.33.45 3.64.45 12.562.002 10.057-.088 12.148-.525 12.314zm-28.948-.1c-.136.138-1.048.25-2.025.25h-1.775l-.128-8.71c-.125-8.485-.154-8.754-1.065-10.365-1.354-2.388-2.61-3.19-4.99-3.19-2.45 0-4.148.928-5.683 3.112l-1.128 1.605-.19 8.68-.186 8.68-1.97.113-1.972.114.098-18.66.096-18.657h3.745l.102 7.295c.055 4.012.256 7.45.445 7.638.206.208 1.006-.24 2.03-1.14 2.956-2.605 6.547-3.083 10-1.336 1.184.6 2.385 1.564 2.88 2.31 1.687 2.546 1.962 4.445 1.962 13.524 0 4.667-.112 8.6-.248 8.736h-.002zm-2.743 59.15c-1.008 3.336-4.12 5.156-8.835 5.16-1.67.004-3.913-.26-5.01-.585l-1.984-.59.22-1.346c.12-.74.35-1.475.512-1.635.162-.16 1.222.03 2.355.423 5.174 1.792 9.542-.15 8.833-3.93-.306-1.638-1.373-2.543-4.87-4.136-3.856-1.757-4.943-2.563-5.844-4.327-2.325-4.557 1.098-9.537 6.878-10 2.566-.207 5.948.403 6.6 1.19.276.332.266.838-.03 1.688-.338.972-.58 1.174-1.217 1.015-4.052-1.018-4.503-1.068-5.887-.653-1.69.507-2.96 1.978-2.96 3.427 0 1.587 1.55 3.102 4.38 4.283 1.402.585 3.225 1.502 4.05 2.035 2.545 1.65 3.72 4.973 2.814 7.975l-.005.003zm-2.954-146.38c-.732 2.798-2.032 3.653-6.792 4.463-5.443.926-7.52 1.026-12.63.608-9.864-.806-15.963-3.122-20.73-7.875-3.003-2.992-4.608-5.618-5.957-9.747-1.812-5.548-1.89-7.178-1.9-38.964-.003-16.382-.13-29.976-.282-30.207-.156-.24-1.744-.49-3.668-.58-6.36-.298-8.036-2.12-8.036-8.74 0-3.17.136-4.04.845-5.438 1.22-2.407 2.675-3.108 6.812-3.29 2.535-.11 3.514-.298 3.864-.745.344-.436.47-2.815.47-8.837 0-9.61.26-10.64 3.09-12.23 1.43-.803 2.155-.91 7.035-1.05 8.025-.228 10.674.512 12.266 3.432.544.995.677 2.618.836 10.177l.19 8.99 8.618.188c9.8.213 10.69.433 12.127 2.99 1.56 2.775 1.522 9.315-.07 11.677-1.718 2.55-2.473 2.735-12.055 2.942l-8.618.187-.11 28.286c-.117 30.07-.063 31.167 1.668 34.655 1.29 2.597 2.82 4.07 5.51 5.287 2.074.94 2.685 1.04 6.234 1.007 2.16-.02 4.774-.208 5.8-.418 4.097-.832 5.47 1.104 5.664 7.986.063 2.267-.017 4.625-.178 5.244zm-19.38 138.714c-.16.355-2.324.47-8.945.47-9.874 0-9.47-.14-8.668 2.96 1.088 4.19 4.068 6.23 9.035 6.176 1.648-.017 3.74-.24 4.643-.492 1.856-.52 2.272-.242 2.284 1.528.008 1.404-1.498 1.872-6.74 2.088-5.312.22-7.652-.49-10.273-3.11-2.354-2.355-3.32-5.043-3.354-9.338-.07-8.698 5.21-14.27 12.864-13.576 5.3.48 8.78 4.466 9.21 10.555.086 1.247.064 2.48-.054 2.738zm-5.144-7.276c-.913-1.764-2.683-2.857-4.928-3.043-3.288-.273-6.098 1.727-7.325 5.212-.893 2.53-.783 2.576 6.35 2.576 5.497 0 6.41-.083 6.706-.613.403-.717.064-2.462-.804-4.133zm2.643-44.778c-1.818 1.508-9.748 1.57-12.636.1-4.915-2.504-7.508-8.21-6.416-14.127 1.342-7.287 6.78-11.4 14.42-10.91 1.677.108 3.518.413 4.092.68.913.42 1.015.63.804 1.635-.355 1.692-.67 1.862-2.55 1.387-3.754-.945-6.99-.342-9.28 1.728-2.98 2.694-4.023 6.846-2.784 11.11.766 2.632 3.016 5.07 5.315 5.757 1.9.568 5.092.592 7.026.055.798-.22 1.578-.262 1.73-.09.576.633.746 2.287.28 2.674zm-24.408-3.085c-.645 1.483-2.862 3.305-4.683 3.85-2.914.873-8.613.422-10.305-.817-.61-.444-.638-.663-.236-1.878.25-.756.488-1.373.53-1.373.043 0 1.038.337 2.21.748 5.915 2.08 10.6-.86 8.338-5.232-.53-1.03-1.012-1.315-6.257-3.74-2.218-1.025-4.245-3.245-4.576-5.014-.593-3.15 1.68-6.797 4.916-7.9 2.21-.752 5.04-.754 7.57-.002 1.94.576 1.976.613 1.746 1.768-.13.65-.37 1.314-.535 1.48-.166.164-1.423.005-2.796-.355-2.248-.59-2.65-.6-4.094-.1-1.216.42-1.76.883-2.274 1.93-.613 1.255-.622 1.493-.107 2.727.497 1.19 1.025 1.567 4.42 3.165 3.934 1.85 5.557 3.153 6.265 5.025.545 1.438.48 4.318-.133 5.717zm-.515 45.004c-.173.274-1.466.495-3.272.563l-2.986.11v17.112l1.05.903c.803.69 1.486.904 2.896.904 1.685 0 1.867.087 2.096.995.435 1.732-.202 2.178-3.27 2.29-3.56.13-5.064-.568-6.24-2.897-.797-1.583-.84-2.11-.847-10.115-.004-4.645-.133-8.642-.29-8.886-.153-.244-1.036-.496-1.96-.56l-1.68-.12v-2.997l1.68-.12c.924-.064 1.806-.318 1.96-.56.156-.244.285-1.307.29-2.362l.004-1.917 1.657-.464c.912-.255 1.84-.35 2.06-.214.227.14.405 1.394.405 2.85v2.6h2.922c1.774 0 3.1.177 3.373.45.506.504.584 1.755.152 2.434zm-18.673-63.3c-.11.26-.784.47-1.498.47-2.752 0-5.417 2.453-6.095 5.61-.226 1.055-.412 5.124-.412 9.04v7.12l-1.966-.115-1.968-.115-.187-12.176c-.11-7.09-.044-12.38.155-12.663.202-.288.89-.442 1.682-.375 1.298.108 1.35.172 1.6 1.928.14 1 .35 1.908.46 2.02.112.112.98-.66 1.928-1.716 1.774-1.972 3.642-2.875 5.43-2.622.787.11.93.346.994 1.627.04.824-.018 1.71-.125 1.965zm-1.956 82c-1.474 3.153-4.388 4.433-9.555 4.195-4.375-.2-5.695-.793-5.614-2.516.033-.684.2-1.382.374-1.554.174-.17 1.242.012 2.376.404 4.91 1.7 8.99.185 8.99-3.337 0-1.738-2.095-3.69-5.234-4.875-3.047-1.152-5.828-3.737-6.205-5.77-.91-4.913 3.552-8.852 9.544-8.423 3.376.24 4.73.924 4.63 2.332-.045.59-.225 1.218-.403 1.396-.18.18-1.425.032-2.816-.333-2.246-.59-2.65-.6-4.094-.1-1.195.413-1.79.908-2.35 1.957-.75 1.405-.75 1.405 0 2.79.563 1.042 1.31 1.648 2.998 2.436 6.466 3.02 7.742 4.255 7.95 7.705.095 1.552-.07 2.58-.59 3.692zm-3.315-239.632c-2.695 15.613-7.945 26.506-17.31 35.918-4.09 4.11-7.584 6.892-17.81 14.178-11.733 8.36-15.58 11.684-19.855 17.154-4.654 5.957-7.27 11.447-9.006 18.92-1.548 6.643-1.643 6.95-2.48 8.015-.43.548-1.486 1.372-2.34 1.83-1.44.77-2.146.84-9.28.953-8.998.14-10.085-.097-11.054-2.413-.68-1.628-.51-3.734.82-10.162 3.186-15.38 10.473-27.995 22.266-38.547 1.958-1.75 6.847-5.735 10.864-8.853 9.55-7.412 12.953-10.315 17.076-14.565 6.697-6.903 10.54-13.558 12.895-22.328 1.04-3.873 2.52-6.17 4.634-7.192 1.46-.705 2.285-.773 9.36-.773 8.34 0 9.7.238 10.872 1.917.59.84.752 3.61.348 5.95zm-13.736 171.24c-1.525 5.66-5.95 8.967-11.987 8.967-3.9 0-5.986-.82-8.516-3.348-2.713-2.71-3.52-4.91-3.52-9.578 0-4.387.786-6.675 3.204-9.32 2.617-2.865 4.837-3.78 9.155-3.78 4.26 0 6.567.93 8.997 3.635 2.822 3.134 3.932 8.73 2.667 13.423zm-4.564-8.212c-.754-2.538-3.125-5.065-5.296-5.646-5.017-1.34-9.38 2.585-9.778 8.8-.492 7.656 4.92 12.91 10.623 10.32 1.805-.82 3.686-2.977 4.434-5.084.72-2.03.728-5.99.016-8.39zm-2.655 49.747c-.543.426-1.28.776-1.636.776-1.24 0-2.624-1.464-2.624-2.78 0-2.25 2.47-3.47 4.23-2.084 1.394 1.093 1.406 3.003.03 4.087zm.362 30.498c-.137.137-1.047.25-2.02.25-1.27 0-1.835-.168-1.998-.592-.126-.326-.228-5.856-.228-12.29 0-8.596.12-11.814.45-12.144.247-.248.992-.45 1.654-.45 2.543 0 2.39-.806 2.39 12.717 0 6.74-.112 12.37-.25 12.508zm-12.582-11.917c-.258.096-4.26.216-8.9.27l-8.43.096-.12.85c-.35 2.464 1.9 5.93 4.805 7.416 1.63.833 6.505.94 9.096.198.985-.283 1.878-.426 1.983-.32.105.106.29.792.407 1.525.212 1.302.182 1.34-1.42 1.826-.98.295-3.517.493-6.32.493-4.358 0-4.816-.07-6.59-1.006-2.245-1.185-4.043-3.115-5.132-5.512-1.168-2.565-1.153-9.118.025-12.056 1.096-2.736 3.076-5.003 5.464-6.258 1.676-.882 2.362-1.012 5.296-1.017 2.906-.002 3.602.128 5.04.934 2.094 1.174 3.95 3.58 4.69 6.078.705 2.37.767 6.235.105 6.48zm-4.36-6.754c-1.575-3.41-5.055-4.824-8.414-3.42-2.47 1.033-5.345 5.614-4.308 6.864.307.37 1.964.49 6.668.49 3.444 0 6.374-.11 6.51-.25.456-.454.245-2.164-.456-3.684zm-4.236-76.8c-.27.098-3.526.223-7.235.276l-6.744.097v11.612l6.557.187 6.557.187v3.37l-6.557.187-6.556.187-.186 7.868-.188 7.867-1.97.114-1.97.113.098-17.723.096-17.72h18.36l.114 1.595c.076 1.06-.05 1.657-.375 1.778zm-21.003 94.413c-1.977.707-5.502 1.365-8.336 1.556-12.285.827-20.043-6.01-20.043-17.67 0-8.926 4.913-15.523 13.153-17.653 4.274-1.105 13.05-.586 14.235.842.45.542-.21 3.137-.798 3.137-.18 0-1.298-.253-2.485-.562-1.186-.31-3.35-.56-4.81-.56-9.605 0-15.276 6.067-14.7 15.732.382 6.43 3.294 10.633 8.707 12.565 2.424.867 8.48.958 10.115.154l1.124-.553v-10.48l-3.374-.187-3.372-.187-.115-1.59-.116-1.594h11.282v8.44c0 6.413-.114 8.48-.47 8.607zm-15.142-74.622c-.136.138-4.183.25-8.99.25h-8.744v1.61c0 2.444 1.917 5.394 4.3 6.614 1.57.803 2.34.948 4.87.917 1.654-.02 3.746-.244 4.647-.497 1.793-.5 2.074-.36 2.444 1.203.222.94.106 1.105-1.17 1.652-2.18.935-9.226 1.128-11.66.32-2.363-.786-5.326-3.383-6.355-5.572-3.274-6.963-.55-16.41 5.5-19.088 3.914-1.73 9.194-1.095 11.784 1.42 1.616 1.57 2.43 3.037 3.117 5.61.53 1.99.675 5.143.258 5.56zm-4.285-5.557c-1.176-4.306-5.448-6.288-9.308-4.32-1.737.887-2.756 2.11-3.602 4.327-1.065 2.793-1.044 2.803 6.12 2.803 4.404 0 6.44-.136 6.754-.45.543-.544.542-.5.036-2.36zm-22.056-69.73c-.422 1.312-1.703 2.736-3.135 3.48-2.306 1.2-13.25 2.84-23.284 3.485-25.882 1.67-42.945-2.346-53.84-12.68-9.452-8.963-13.775-21.97-13.787-41.485-.023-32.715 12.16-50.214 37.55-53.94 5.737-.84 18.297-.56 23.527.526 11.514 2.394 19.255 7.194 24.8 15.378 4.8 7.083 7.298 15.812 8.194 28.647.702 10.033.06 13.662-2.78 15.764-1.048.775-1.333.784-33.45.97-35.198.203-33.26.073-32.916 2.23.083.525.346 2.22.583 3.764 1.014 6.61 3.338 11.66 7.07 15.36 2.774 2.752 5.577 4.367 9.943 5.732 5.206 1.627 8.28 1.95 18.357 1.93 9.427-.02 12.617-.266 21.932-1.705 5.77-.89 7.38-.702 9.07 1.063 1.66 1.735 3.005 8.86 2.164 11.48zm-22.884-64.885c-2.03-9.854-7.624-16.31-15.805-18.24-3.118-.734-10.33-.733-13.225.004-9.9 2.516-15.516 10.358-17.116 23.905-.37 3.13-.354 3.73.105 4.022.31.196 10.225.344 23.274.348 18.712.005 22.823-.085 23.243-.507.577-.575.322-5.65-.477-9.532zm18.662 152.337l-1.97-.113v-37.09h3.745l.098 18.658.096 18.66-1.968-.115zm-2.25 51.598c-.257.096-4.262.216-8.898.27l-8.43.096.066 1.556c.13 3.025 2.316 5.903 5.262 6.927 1.82.632 6.154.618 8.45-.028.984-.278 1.877-.418 1.983-.312.105.106.287.784.405 1.507.204 1.253.146 1.34-1.234 1.827-.937.33-3.16.51-6.317.51-4.695 0-4.945-.04-6.87-1.105-2.374-1.315-3.588-2.667-4.9-5.45-.858-1.823-.966-2.514-.948-5.994.02-3.13.192-4.36.847-6.024 1.067-2.716 2.866-4.78 5.365-6.165 1.81-1.002 2.34-1.112 5.38-1.108 2.744.002 3.656.153 4.906.82 3.317 1.77 5.397 5.648 5.397 10.067.004 1.603-.156 2.49-.466 2.604zm-4.517-7.33c-1.448-2.738-5.064-4.073-8.01-2.96-2.293.867-4.773 4.297-4.544 6.28l.116 1.004 6.168.103c3.392.057 6.386.02 6.65-.082.765-.293.566-2.56-.38-4.345zm-3.884-44.444c-.135.138-1.045.25-2.02.25-1.268 0-1.834-.167-1.996-.592-.125-.325-.228-8.553-.228-18.283 0-13.26.113-17.803.45-18.14.475-.477 2.46-.606 3.453-.223.527.203.59 2.18.59 18.482 0 10.04-.11 18.368-.25 18.504zm-10.654-11.936c-.286.106-4.315.236-8.95.29l-8.43.095.02 1.714c.028 2.528 1.493 4.797 3.98 6.166 1.758.97 2.35 1.095 4.993 1.07 1.646-.018 3.734-.238 4.635-.49 1.79-.5 2.074-.36 2.444 1.202.22.942.105 1.105-1.17 1.65-2.166.927-8.79 1.117-11.494.33-2.917-.848-5.797-3.632-6.922-6.69-1.11-3.016-1.1-7.84.017-11.155 1.104-3.268 4.135-6.382 7.06-7.25 3.795-1.128 7.654-.578 10.344 1.474 1.892 1.444 3.52 5.124 3.778 8.544.17 2.245.105 2.897-.306 3.05zm-4.096-5.88c-1.14-4.103-5.815-6.034-9.525-3.934-1.756.995-3.62 3.8-3.7 5.58l-.06 1.246 6.32.103c7.656.126 7.812.06 6.965-2.994zm-6.965 51.01c-1.126.885-1.718.955-2.878.345-1.108-.583-1.368-1.046-1.375-2.445-.003-.845.283-1.418.982-1.966 1.296-1.02 2.216-.98 3.338.142 1.252 1.25 1.224 2.908-.067 3.923zm.364 30.28c-.294.722-3.736.616-4.02-.125-.126-.326-.228-5.856-.228-12.29 0-8.595.12-11.814.45-12.144.582-.582 3.015-.582 3.597 0 .33.332.44 3.542.42 12.27-.018 6.5-.116 12.03-.22 12.287zm-15.77.394c-1.738-.113-1.78-.145-1.886-1.427-.197-2.387-.35-2.44-2.168-.763-2.275 2.096-3.716 2.638-6.984 2.628-4.5-.013-7.57-2.043-9.618-6.36-.878-1.85-.978-2.5-.978-6.37 0-3.965.088-4.496 1.09-6.668 3.05-6.612 10.766-8.885 16.17-4.764.733.56 1.45.904 1.59.762.14-.14.34-3.402.444-7.248l.187-6.995 1.075-.123c.592-.067 1.477-.02 1.967.1l.89.225V383.617l-1.78-.115zm-3.393-18.517c-2.723-5.337-10.032-5.177-12.832.28-2.438 4.753-1.146 11.865 2.584 14.23 4.277 2.714 9.89.24 10.967-4.837.524-2.46.107-8.054-.72-9.673zm.022-45.175c-1.736-.11-1.784-.146-1.9-1.425-.19-2.037-.616-2.113-2.513-.445-2.222 1.957-3.707 2.43-7.08 2.26-3.066-.155-4.7-.997-6.21-3.202-1.57-2.29-1.873-4.51-1.873-13.674v-8.527l.89-.224c.49-.123 1.376-.17 1.968-.1l1.075.12.24 8.43c.294 10.32.725 11.956 3.492 13.27 2.666 1.265 5.97.32 7.954-2.276l1.05-1.378.115-8.633c.07-5.408.26-8.814.512-9.117.222-.265.957-.482 1.637-.482 2.577 0 2.42-.85 2.42 12.986v12.53l-1.78-.112zm-25.628-.02c-.286.287-1.495.468-3.11.468-3.543 0-4.976-.738-6.2-3.184-.897-1.794-.945-2.24-1.125-10.49l-.187-8.617-1.686-.188c-1.687-.188-1.687-.188-1.687-1.686v-1.5l1.78-.112 1.78-.114v-2.013c0-1.26.203-2.216.543-2.557.614-.614 3.024-1.163 3.585-.818.202.127.37 1.392.37 2.814v2.585l3.09.108 3.09.11.116 1.575.115 1.577-3.11.11-3.113.108v17.112l1.052.904c.805.69 1.486.904 2.903.904 1.23 0 1.855.16 1.858.47.004.256.096.805.206 1.216.11.41-.01.96-.268 1.216zm-2.733-211.02c-.68 1.85-2.336 3.385-4.215 3.908-.898.25-7.34.396-17.4.4-14.223 0-16.003.065-16.205.594-.125.325-.228 27.22-.228 59.768 0 64.642.14 60.645-2.193 62.61-1.756 1.475-4.54 1.894-11.465 1.724-5.504-.136-6.148-.225-7.605-1.047-1.1-.623-1.85-1.427-2.435-2.61l-.844-1.71-.186-59.57-.188-59.568-17.047-.188c-16.34-.18-17.11-.22-18.53-.967-2.468-1.293-3.2-3.172-3.2-8.193 0-3.583.12-4.404.842-5.833.5-.986 1.378-1.973 2.154-2.422 1.298-.75 1.816-.758 48.143-.758 46.155 0 46.85.012 48.105.75 2.097 1.233 2.82 3.118 2.937 7.68.075 2.747-.058 4.38-.443 5.43zm-8.524 252.86c-.27.083-1.122.24-1.897.348-1.88.26-3.485 1.462-4.503 3.364-.77 1.44-.848 2.197-1.022 9.802l-.188 8.244-1.955.112c-1.775.103-1.973.034-2.165-.748-.116-.475-.163-6.173-.106-12.664l.106-11.8.88-.126c.486-.07 1.278-.025 1.76.096.743.185.898.494.994 1.97.062.96.282 1.795.49 1.854.205.06.817-.535 1.36-1.322 1.135-1.64 3.905-3.147 5.46-2.968.962.11 1.055.262 1.16 1.903.08 1.222-.04 1.83-.374 1.935zm-6.535-63.945c-.108.258-.78.47-1.495.47-2.753 0-5.418 2.452-6.095 5.608-.226 1.056-.413 5.125-.413 9.04v7.12l-1.966-.114-1.965-.115-.188-12.176c-.108-7.09-.043-12.38.155-12.663.203-.288.892-.442 1.683-.375 1.297.108 1.35.172 1.6 1.928.14 1 .347 1.908.46 2.02.11.112.98-.66 1.927-1.716 1.775-1.972 3.643-2.875 5.432-2.622.787.11.93.346.993 1.627.04.824-.017 1.71-.126 1.965zm-15.058 85.518c-.068.205-.85.372-1.74.372-1.75 0-2.068-.35-2.068-2.278 0-1.404-.52-1.382-1.987.087-1.782 1.784-3.8 2.55-6.74 2.56-4.845.015-7.496-2.382-8.472-7.66-.576-3.12-.545-17.15.04-17.735.497-.497 2.856-.6 3.552-.157.314.2.478 2.837.563 9.08.11 8.076.182 8.904.89 10.107 2.036 3.468 6.3 4.017 9.284 1.195 2.198-2.08 2.292-2.523 2.495-11.872l.186-8.618h3.745l.188 12.273c.102 6.75.13 12.44.062 12.645zm-3.808-30.724c-1.484 1.484-4.122.404-4.122-1.686 0-1.202 1.233-2.435 2.435-2.435 1.203 0 2.435 1.232 2.435 2.434 0 .514-.336 1.273-.748 1.685zm-1.193-64.385c-.724 2.095-3.938 2.177-4.873.124-.947-2.08 1.16-4.377 3.347-3.647 1.26.42 2.006 2.14 1.526 3.522zm-.55 31.534c-.14.14-1.07.254-2.07.254h-1.814l.1-12.645.098-12.645h3.746l.1 12.39c.05 6.814-.02 12.504-.16 12.644zm-7.686 32.287c-.588 1.015-1.072 1.298-2.22 1.306-1.258.006-2.212-1.07-2.212-2.495 0-2.84 4.052-3.275 4.66-.498.113.517.01 1.275-.228 1.687zm-5.754-50.203c-3.18 8.86-5.976 16.574-6.21 17.14-.394.955-.583 1.03-2.58 1.03-1.273 0-2.315-.192-2.54-.467-.66-.81-11.395-34.023-11.18-34.588.225-.586 3.057-.753 3.88-.23.457.29 4.57 12.873 7.772 23.797.898 3.057 1.732 5.66 1.855 5.782.433.432.887-.516 1.875-3.923 1.742-5.995 8.502-25.39 8.954-25.688.778-.512 3.79-.146 3.88.47.044.31-2.524 7.813-5.706 16.674zm-6.545 47.058c-.27.465-.766.562-2.174.426-3.373-.324-5.028 1.26-5.713 5.462-.53 3.254-.417 3.39 2.944 3.517l2.885.108v2.998l-2.8.11c-1.655.067-2.915.297-3.085.562-.158.248-.29 5.223-.29 11.054l-.008 10.603-1.966-.114-1.967-.115-.19-10.863-.186-10.865-1.613-.117-1.61-.116.112-1.57c.112-1.525.157-1.574 1.613-1.756l1.5-.188.26-2.37c.54-4.888 1.89-7.35 4.846-8.823 2.116-1.054 5.68-1.353 7.095-.595.767.412.932 1.652.35 2.65z"/></svg>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
define([], function () {
|
|
2
|
+
const CollectionManager = {
|
|
3
|
+
loadDetailsInSidebar: function () {
|
|
4
|
+
const self = $(this);
|
|
5
|
+
const url = self.data('url');
|
|
6
|
+
const detailsContent = $('#detailsContent');
|
|
7
|
+
detailsContent.load("/details/container");
|
|
8
|
+
self.closest('.card-body')
|
|
9
|
+
.find('button.btn-primary')
|
|
10
|
+
.addClass('btn-secondary')
|
|
11
|
+
.removeClass('btn-primary');
|
|
12
|
+
|
|
13
|
+
self.addClass('btn-primary').removeClass('btn-secondary');
|
|
14
|
+
|
|
15
|
+
$.get(url, function (data) {
|
|
16
|
+
detailsContent.html(data);
|
|
17
|
+
}).fail(function () {
|
|
18
|
+
detailsContent.html('<p class="text-danger">Failed to load details. Please try again.</p>');
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
addMultiInputClassifications: function (e) {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
const self = $(this);
|
|
25
|
+
const thisRow = self.closest('.row');
|
|
26
|
+
thisRow.next().clone()
|
|
27
|
+
.insertAfter(thisRow)
|
|
28
|
+
.find('input').val('');
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
removeMultiInputClassifications: function (e) {
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
const self = $(this);
|
|
34
|
+
const thisMultiInput = self.closest('.multi-input');
|
|
35
|
+
thisMultiInput.remove();
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
highlightFolder: function (e) {
|
|
39
|
+
const self = $(this);
|
|
40
|
+
const selectedFolder = self.closest('.card');
|
|
41
|
+
selectedFolder.toggleClass('border-primary').toggleClass('border-secondary');
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
init: function () {
|
|
45
|
+
// Load details in sidebar
|
|
46
|
+
$(document).on('click', '.edit-collection-button', this.loadDetailsInSidebar);
|
|
47
|
+
|
|
48
|
+
// Add a new multi input-field (e.g., 'Basic classification', 'Rights Holder')
|
|
49
|
+
$(document).on('click', '.add-multi-input-classifications', this.addMultiInputClassifications);
|
|
50
|
+
|
|
51
|
+
// Remove a multi input-field (e.g., 'Basic classification', 'Rights Holder')
|
|
52
|
+
$(document).on('click', '.remove-multi-field-classification', this.removeMultiInputClassifications);
|
|
53
|
+
|
|
54
|
+
// Highlight folder
|
|
55
|
+
$(document).on('change', 'input[name="selected_folder"]', this.highlightFolder);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
return CollectionManager;
|
|
60
|
+
});
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
define([], function () {
|
|
2
|
+
const FileManager = {
|
|
3
|
+
triggerFileInput: function () {
|
|
4
|
+
$('#fileInput').trigger('click');
|
|
5
|
+
},
|
|
6
|
+
|
|
7
|
+
submitFileUpload: function () {
|
|
8
|
+
$('#fileUploadLocal').trigger('submit');
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
// New functions from main_new.js
|
|
12
|
+
showPreviewOfAvatar: function () {
|
|
13
|
+
const uploadFile = $(this);
|
|
14
|
+
const files = this.files;
|
|
15
|
+
|
|
16
|
+
if (files && files.length && window.FileReader) {
|
|
17
|
+
const reader = new FileReader();
|
|
18
|
+
reader.readAsDataURL(files[0]);
|
|
19
|
+
|
|
20
|
+
reader.onloadend = function () {
|
|
21
|
+
uploadFile.closest("div").find('.ratio').html(`
|
|
22
|
+
<div class="w-100 h-100"
|
|
23
|
+
style="background-image: url(${this.result});
|
|
24
|
+
background-size: cover;
|
|
25
|
+
background-position: center;">
|
|
26
|
+
</div>
|
|
27
|
+
`);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
cloneFromGit: function (e) {
|
|
33
|
+
e.preventDefault();
|
|
34
|
+
const form = $(e.target);
|
|
35
|
+
const button = form.find('button[type="submit"]');
|
|
36
|
+
const spinner = button.find('.spinner-border');
|
|
37
|
+
const buttonText = button.find('span:not(.spinner-border)');
|
|
38
|
+
const modal = form.closest('.modal');
|
|
39
|
+
|
|
40
|
+
button.prop('disabled', true);
|
|
41
|
+
spinner.removeClass('d-none');
|
|
42
|
+
buttonText.text('Cloning...');
|
|
43
|
+
|
|
44
|
+
$.ajax({
|
|
45
|
+
url: form.attr('action'),
|
|
46
|
+
method: 'POST',
|
|
47
|
+
data: form.serialize(),
|
|
48
|
+
success: function (response) {
|
|
49
|
+
$(modal).modal('hide');
|
|
50
|
+
$(form.closest('.tab-pane')).html(response);
|
|
51
|
+
},
|
|
52
|
+
error: function () {
|
|
53
|
+
button.removeClass('btn-primary').addClass('btn-danger');
|
|
54
|
+
buttonText.text('Clone Repository');
|
|
55
|
+
},
|
|
56
|
+
complete: function () {
|
|
57
|
+
spinner.addClass('d-none');
|
|
58
|
+
button.prop('disabled', false);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
deleteFolder: function (e) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
const button = $(this);
|
|
66
|
+
const itemName = button.data('item-name');
|
|
67
|
+
const itemType = button.data('item-type');
|
|
68
|
+
|
|
69
|
+
if (confirm(`Do you want to delete ${itemType === 'folder' ? 'the folder' : 'the file'} "${itemName}"?`)) {
|
|
70
|
+
$.ajax({
|
|
71
|
+
url: '/api/delete-folder',
|
|
72
|
+
method: 'DELETE',
|
|
73
|
+
data: {
|
|
74
|
+
path: button.data('item-path'),
|
|
75
|
+
projectname: button.data('projectname')
|
|
76
|
+
},
|
|
77
|
+
success: function (response) {
|
|
78
|
+
$(button.closest('.tab-pane')).html(response);
|
|
79
|
+
},
|
|
80
|
+
error: function () {
|
|
81
|
+
alert('Error deleting item.');
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
deleteXSLT: function (e) {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
const projectname = $(this).data('projectname');
|
|
90
|
+
const self = this;
|
|
91
|
+
$.ajax({
|
|
92
|
+
url: `/delete-xslt/${projectname}`,
|
|
93
|
+
method: 'DELETE',
|
|
94
|
+
headers: {
|
|
95
|
+
'Content-Type': 'application/json'
|
|
96
|
+
},
|
|
97
|
+
success: function (response) {
|
|
98
|
+
FileManager.hideHint.call(self);
|
|
99
|
+
},
|
|
100
|
+
error: function () {
|
|
101
|
+
alert('Error deleting XSLT file.');
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
hideHint: function () {
|
|
107
|
+
const hint = $('.xslt-upload');
|
|
108
|
+
if (hint) {
|
|
109
|
+
hint.addClass('d-none');
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
selectNextcloudFolder: function () {
|
|
114
|
+
const self = $(this);
|
|
115
|
+
const new_state = self.is(':checked') ? 'checked' : '';
|
|
116
|
+
const checkboxes = self.closest('.list-group-item').find('.nextcloud-folder');
|
|
117
|
+
checkboxes
|
|
118
|
+
.prop("checked", new_state)
|
|
119
|
+
.not(':first')
|
|
120
|
+
.prop("disabled", true);
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
dragDropHandler: function (event) {
|
|
124
|
+
event.preventDefault();
|
|
125
|
+
|
|
126
|
+
const dropZone = $(event.target).closest('.js-file-upload');
|
|
127
|
+
const files = event.originalEvent.dataTransfer.files;
|
|
128
|
+
const uploadUrl = dropZone.data('url');
|
|
129
|
+
|
|
130
|
+
console.log(`Dropped ${files.length} files to upload`);
|
|
131
|
+
|
|
132
|
+
if (files.length > 0) {
|
|
133
|
+
// Create FormData with the dropped files
|
|
134
|
+
const formData = new FormData();
|
|
135
|
+
|
|
136
|
+
for (let i = 0; i < files.length; i++) {
|
|
137
|
+
formData.append('files', files[i]);
|
|
138
|
+
console.log(`File ${i + 1}: ${files[i].name}`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Upload files via AJAX
|
|
142
|
+
$.ajax({
|
|
143
|
+
url: uploadUrl,
|
|
144
|
+
type: 'POST',
|
|
145
|
+
data: formData,
|
|
146
|
+
processData: false,
|
|
147
|
+
contentType: false,
|
|
148
|
+
success: function (response) {
|
|
149
|
+
dropZone.closest('.container, .tab-pane').html(response);
|
|
150
|
+
},
|
|
151
|
+
error: function (xhr, status, error) {
|
|
152
|
+
console.error('Upload error:', error);
|
|
153
|
+
dropZone.addClass('border-danger text-danger').removeClass('border-success');
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
preventDefaults: function (event) {
|
|
160
|
+
event.preventDefault();
|
|
161
|
+
event.stopPropagation();
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
// Update the init function to include drag & drop event listeners
|
|
165
|
+
init: function () {
|
|
166
|
+
$(document).on('change', 'input#fileInput', this.submitFileUpload);
|
|
167
|
+
$(document).on('click', 'button#triggerFileInput', this.triggerFileInput);
|
|
168
|
+
$(document).on('click', '.delete-folder', this.deleteFolder);
|
|
169
|
+
$(document).on("change", ".showPreviewOfAvatar", this.showPreviewOfAvatar);
|
|
170
|
+
$(document).on('click', '#deleteXsltButton', this.deleteXSLT);
|
|
171
|
+
$(document).on('change', '.xslt-upload', this.hideHint);
|
|
172
|
+
$(document).on('click', 'input.nextcloud-folder', this.selectNextcloudFolder);
|
|
173
|
+
|
|
174
|
+
// Drag & Drop event listeners for elements with class 'js-file-upload'
|
|
175
|
+
$(document).on('dragenter', '.js-file-upload', this.preventDefaults);
|
|
176
|
+
$(document).on('dragover', '.js-file-upload', this.preventDefaults);
|
|
177
|
+
$(document).on('dragleave', '.js-file-upload', this.preventDefaults);
|
|
178
|
+
$(document).on('drop', '.js-file-upload', this.dragDropHandler);
|
|
179
|
+
$(document).on('click', '.js-file-upload', function (event) {
|
|
180
|
+
$('#triggerFileInput').click();
|
|
181
|
+
})
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
return FileManager;
|
|
186
|
+
});
|