psdi-data-conversion 0.0.33__py3-none-any.whl → 0.0.35__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.
@@ -10,11 +10,19 @@
10
10
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
11
  <title>PSDI Data Conversion Service</title>
12
12
  <link rel="icon" type="image/x-icon" href="../img/psdi-icon-dark.svg">
13
+
13
14
  <link href="https://fonts.googleapis.com/css?family=Lato:400" rel="stylesheet" type="text/css">
14
15
  <link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700" rel="stylesheet" type="text/css">
16
+
17
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
18
+ <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.slim.min.js"></script>
19
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
21
+
22
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
23
+
15
24
  <link rel="stylesheet" href="../styles/format.css">
16
25
  <script src="../javascript/load_accessibility.js"></script>
17
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
18
26
  <script src="../javascript/common.js" type="module"></script>
19
27
  <script src="../javascript/psdi-common.js" type="module"></script>
20
28
  </head>
@@ -99,16 +107,19 @@
99
107
  <p id="fileChecking">
100
108
  </p>
101
109
  <p id="convertFile">
102
- <input type="checkbox" checked id="extCheck">Enforce file naming checking to ensure uploaded files (and files
110
+ <input type="checkbox" checked id="extCheck"> Enforce file naming checking to ensure uploaded files (and files
103
111
  contained in archives) all have the correct extension<br>
104
- <input type="checkbox" id="requestLog">Also download log file for the conversion<br>
112
+ <input type="checkbox" id="requestLog"> Also download log file for the conversion<br>
105
113
  Select file to convert:
106
114
  <br><input type="file" name="fileToUpload" id="fileToUpload"><br>
107
115
  If you have sensitive data you might prefer to use
108
116
  <a href="download.htm">one of our downloadable tools or Python library</a> rather than uploading your data to
109
117
  our service.<br>
110
- <input type="button" class="button init-disabled" value=" Convert " name="uploadButton" id="uploadButton"
111
- disabled=true>
118
+ <span class="convert-button-and-spinner">
119
+ <input type="button" class="button init-disabled" value=" Convert " name="uploadButton" id="uploadButton"
120
+ disabled=true>
121
+ <span class="loading-spinner spinner-border"></span>
122
+ </span>
112
123
  </p>
113
124
  <div class="medGap"></div>
114
125
  </div>
@@ -10,11 +10,19 @@
10
10
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
11
  <title>PSDI Data Conversion Service</title>
12
12
  <link rel="icon" type="image/x-icon" href="../img/psdi-icon-dark.svg">
13
+
13
14
  <link href="https://fonts.googleapis.com/css?family=Lato:400" rel="stylesheet" type="text/css">
14
15
  <link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700" rel="stylesheet" type="text/css">
16
+
17
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
18
+ <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.slim.min.js"></script>
19
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
21
+
22
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
23
+
15
24
  <link rel="stylesheet" href="../styles/format.css">
16
25
  <script src="../javascript/load_accessibility.js"></script>
17
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
18
26
  <script src="../javascript/common.js" type="module"></script>
19
27
  <script src="../javascript/psdi-common.js" type="module"></script>
20
28
  </head>
@@ -43,16 +51,19 @@
43
51
  </p>
44
52
  <h6 id="heading"></h6>
45
53
  <p id="convertFile">
46
- <input type="checkbox" checked id="extCheck">Enforce file naming checking to ensure uploaded files (and files
54
+ <input type="checkbox" checked id="extCheck"> Enforce file naming checking to ensure uploaded files (and files
47
55
  contained in archives) all have the correct extension<br>
48
- <input type="checkbox" id="requestLog">Also download log file for the conversion<br>
56
+ <input type="checkbox" id="requestLog"> Also download log file for the conversion<br>
49
57
  Select file to convert:
50
58
  <br><input type="file" name="fileToUpload" id="fileToUpload"><br>
51
59
  If you have sensitive data you might prefer to use
52
60
  <a href="download.htm">one of our downloadable tools or Python library</a> rather than uploading your data to
53
61
  our service.<br>
54
- <input type="button" class="button init-disabled" value=" Convert " name="uploadButton" id="uploadButton"
55
- disabled=true>
62
+ <span class="convert-button-and-spinner">
63
+ <input type="button" class="button init-disabled" value=" Convert " name="uploadButton" id="uploadButton"
64
+ disabled=true>
65
+ <span class="loading-spinner spinner-border"></span>
66
+ </span>
56
67
  </p>
57
68
  </div>
58
69
  <div class="largeGap"></div>
@@ -7,14 +7,23 @@
7
7
  <html>
8
8
 
9
9
  <head>
10
+
10
11
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
12
  <title>PSDI Data Conversion Service</title>
12
13
  <link rel="icon" type="image/x-icon" href="../img/psdi-icon-dark.svg">
14
+
13
15
  <link href="https://fonts.googleapis.com/css?family=Lato:400" rel="stylesheet" type="text/css">
14
16
  <link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700" rel="stylesheet" type="text/css">
17
+
18
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
19
+ <script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.slim.min.js"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
21
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
22
+
23
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
24
+
15
25
  <link rel="stylesheet" href="../styles/format.css">
16
26
  <script src="../javascript/load_accessibility.js"></script>
17
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
18
27
  <script src="../javascript/common.js" type="module"></script>
19
28
  <script src="../javascript/psdi-common.js" type="module"></script>
20
29
  </head>
@@ -43,16 +52,19 @@
43
52
  </p>
44
53
  <h6 id="heading"></h6>
45
54
  <p id="convertFile">
46
- <input type="checkbox" checked id="extCheck">Enforce file naming checking to ensure uploaded files (and files
55
+ <input type="checkbox" checked id="extCheck"> Enforce file naming checking to ensure uploaded files (and files
47
56
  contained in archives) all have the correct extension<br>
48
- <input type="checkbox" id="requestLog">Also download log file for the conversion<br>
57
+ <input type="checkbox" id="requestLog"> Also download log file for the conversion<br>
49
58
  Select file to convert:
50
59
  <br><input type="file" name="fileToUpload" id="fileToUpload"><br>
51
60
  If you have sensitive data you might prefer to use
52
61
  <a href="download.htm">one of our downloadable tools or Python library</a> rather than uploading your data to
53
62
  our service.<br>
54
- <input type="button" class="button init-disabled" value=" Convert " name="uploadButton" id="uploadButton"
55
- disabled=true>
63
+ <span class="convert-button-and-spinner">
64
+ <input type="button" class="button init-disabled" value=" Convert " name="uploadButton" id="uploadButton"
65
+ disabled=true>
66
+ <span class="loading-spinner spinner-border"></span>
67
+ </span>
56
68
  </p>
57
69
  </div>
58
70
  <div class="largeGap"></div>
@@ -58,6 +58,8 @@ export function commonConvertReady(converter) {
58
58
  // Converts user-supplied file to another format and downloads the resulting file
59
59
  export function convertFile(form_data, download_fname, fname) {
60
60
 
61
+ showSpinner();
62
+
61
63
  let convertTimedOut = false;
62
64
 
63
65
  var jqXHR = $.ajax({
@@ -68,6 +70,7 @@ export function convertFile(form_data, download_fname, fname) {
68
70
  contentType: false,
69
71
  timeout: CONVERT_TIMEOUT,
70
72
  success: async function () {
73
+ hideSpinner();
71
74
  if (!convertTimedOut) {
72
75
  await downloadFile(`../downloads/${download_fname}`, download_fname)
73
76
 
@@ -105,6 +108,7 @@ export function convertFile(form_data, download_fname, fname) {
105
108
  })
106
109
  },
107
110
  error: function (xmlhttprequest, textstatus, message) {
111
+ hideSpinner();
108
112
  if (textstatus === "timeout") {
109
113
  convertTimedOut = true;
110
114
  alert("ERROR: Conversion attempt timed out. This may be because the conversion is too complicated, " +
@@ -216,7 +220,8 @@ function checkFile(event) {
216
220
  if (message !== "")
217
221
  message += "\n\n";
218
222
  message += "The file exceeds the maximum size limit of " + (max_file_size / MEGABYTE).toFixed(2) +
219
- " MB; its size is " + (file.size / MEGABYTE).toFixed(2) + " MB.";
223
+ " MB; its size is " + (file.size / MEGABYTE).toFixed(2) + " MB. Please either log in for an increased " +
224
+ "file size limit, or see the Downloads page to run the app locally with no limit.";
220
225
  allGood = false;
221
226
  }
222
227
 
@@ -249,4 +254,19 @@ async function downloadFile(path, filename) {
249
254
  a.click();
250
255
  a.remove();
251
256
  });
257
+ }
258
+
259
+
260
+ /**
261
+ * Show the loading spinner
262
+ */
263
+ function showSpinner() {
264
+ $(".loading-spinner").css({ display: "inherit" });
265
+ }
266
+
267
+ /**
268
+ * Hide the loading spinner
269
+ */
270
+ function hideSpinner() {
271
+ $(".loading-spinner").css({ display: "none" });
252
272
  }
@@ -144,4 +144,23 @@ select#dark-background option {
144
144
 
145
145
  [production-mode=False] .dev-only {
146
146
  display: none;
147
+ }
148
+
149
+ .footer__hline hr {
150
+ border-top-style : none;
151
+ border-bottom-style: inset;
152
+ border-bottom-width: 1px;
153
+ }
154
+
155
+ /* Convert button and loading spinner */
156
+ .convert-button-and-spinner {
157
+ display : flex;
158
+ flex-direction: row;
159
+ align-items : center;
160
+ }
161
+
162
+ .loading-spinner {
163
+ display: none;
164
+ color : var(--ifm-color-primary);
165
+ scale : 75%;
147
166
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: psdi_data_conversion
3
- Version: 0.0.33
3
+ Version: 0.0.35
4
4
  Summary: Chemistry file format conversion service, provided by PSDI
5
5
  Project-URL: Homepage, https://data-conversion.psdi.ac.uk/
6
6
  Project-URL: Documentation, https://psdi-uk.github.io/psdi-data-conversion/
@@ -22,9 +22,9 @@ psdi_data_conversion/converters/openbabel.py,sha256=L_YN83C3PVpa2r67CKf7RVt_2UY6
22
22
  psdi_data_conversion/scripts/atomsk.sh,sha256=N_NMO5q8sI3Lt1TerC-xcKbMI0kfscAudy5UAbY0uR0,804
23
23
  psdi_data_conversion/scripts/c2x.sh,sha256=F48jhgtgouKKZDQ9p6tCCNBN5bPuidBq2GcTurdWzQc,770
24
24
  psdi_data_conversion/static/content/accessibility.htm,sha256=UMkkVouE_HgkI1gEpCtm-fHSlL40yjkqbkAvOrGUjxQ,14277
25
- psdi_data_conversion/static/content/convert.htm,sha256=8dev0B8sFyi35R-SWDjhbBN-Y_70Hcfq1-YAguMCP20,6293
26
- psdi_data_conversion/static/content/convertato.htm,sha256=uwYL9wpHbmIwJewy-5xSLU3H_q2lBSwqubaxkd0BfV0,2765
27
- psdi_data_conversion/static/content/convertc2x.htm,sha256=LHMOnVDUzFHeSy-tyGLB0izCCs3fBGI1c9SA9YsmNlI,2764
25
+ psdi_data_conversion/static/content/convert.htm,sha256=lDMXZQ3vkMBYLrL57_W1bNNzW5M7EOC9vqL7YnZdHbU,6827
26
+ psdi_data_conversion/static/content/convertato.htm,sha256=WzOEBU6VcY2uS_0eFyUj7nyZJP5U2yqOlvZDmWyDa18,3299
27
+ psdi_data_conversion/static/content/convertc2x.htm,sha256=y9ehRa4lD81zM2FIc7jz2IrfHmOzBqQ2qf24o48HOTs,3299
28
28
  psdi_data_conversion/static/content/documentation.htm,sha256=6lDc81OoUmcGp01a_3rxVSHunajBh-09QJZgedBcSFM,5647
29
29
  psdi_data_conversion/static/content/download.htm,sha256=kPqCdjS6ssd77BHcCFKxm-QBhD-rpm13dUj4a7z-RY8,4094
30
30
  psdi_data_conversion/static/content/feedback.htm,sha256=jFoOI3t1VVchBcQBZGjPaVo2qnHmrvrM7MJjuDylLQg,1878
@@ -63,7 +63,7 @@ psdi_data_conversion/static/img/ukri-logo-lighttext.png,sha256=ptIQwIGGdVsO2rTxi
63
63
  psdi_data_conversion/static/javascript/accessibility.js,sha256=kbnWHeBNPrTLrnYRjMEUmiOcCXM2bORYIRfzUB03TAE,7208
64
64
  psdi_data_conversion/static/javascript/common.js,sha256=eAYSNrvRGx4ep2dIyMk1-J_biDvt-MWtUJNoSBUVXa4,1306
65
65
  psdi_data_conversion/static/javascript/convert.js,sha256=BQt4nhTrMDclhrZSMssFsxDU5f1ZyRakmJ1bFvsLjes,9112
66
- psdi_data_conversion/static/javascript/convert_common.js,sha256=uI-PrISECdHMEIOy7POE2xJFG9NMFjU1CocFo4ZZiy0,8842
66
+ psdi_data_conversion/static/javascript/convert_common.js,sha256=h-_sTdWlkVH0drojgNMonacqRfk33xSTsb-8GhfPwXw,9288
67
67
  psdi_data_conversion/static/javascript/convertato.js,sha256=km4BGyeNRoSL8uK6G7Zz0vOw2tO6KElasKR6sReFwGk,3593
68
68
  psdi_data_conversion/static/javascript/convertc2x.js,sha256=0tRUU3eugmxlbVl2xXm0gHT1WDGbvlCmwDZw_-Ja-Sk,3588
69
69
  psdi_data_conversion/static/javascript/data.js,sha256=davPYzCif_28FRpToQOYsoBgxpy6EMPWnBGQw0xKZrw,6111
@@ -71,7 +71,7 @@ psdi_data_conversion/static/javascript/format.js,sha256=xJM_1U-TETsYULvNr7nTt0MK
71
71
  psdi_data_conversion/static/javascript/load_accessibility.js,sha256=jTLfmubEmko2bJ_MKWMkmYxUeBxotozc-0-ua69CYJo,3265
72
72
  psdi_data_conversion/static/javascript/psdi-common.js,sha256=I0QqGQ7l_rA4KEfenQTfPc-uOXXp8sxMh_NHL3EkFm4,6231
73
73
  psdi_data_conversion/static/javascript/report.js,sha256=RP5EPVo44cTTfAvEdvSBR-zsg6dwqMb1brTukz4Pi4Y,12355
74
- psdi_data_conversion/static/styles/format.css,sha256=gY20e3SP-Aszpla0NhjfxjkygHxHjYqNe-QcLqS-rkk,2858
74
+ psdi_data_conversion/static/styles/format.css,sha256=eItTL6TSG_DucsYBqiyPednUVXaCXx8GXmQUQ_YZHkE,3207
75
75
  psdi_data_conversion/static/styles/psdi-common.css,sha256=gx6h9gnw2ONvCd46QSzg-uLntxfhyoEYkf0P_U0Nhu8,17107
76
76
  psdi_data_conversion/templates/index.htm,sha256=HE8YVUAFKey-JS-Z9EN6mdikYA98re5BP_62fLEg9yI,5612
77
77
  psdi_data_conversion/testing/__init__.py,sha256=Xku7drtLTYLLPsd403eC0LIEa_iohVifyeyAITy2w7U,135
@@ -79,8 +79,8 @@ psdi_data_conversion/testing/constants.py,sha256=TnUtsNmlFSzBrCWrCOp0TfKz33s8Oxz
79
79
  psdi_data_conversion/testing/conversion_callbacks.py,sha256=oSq93JdTz7KvLVirq_Ibaglg1ZxzuoKuWMv9DS2ykgs,18709
80
80
  psdi_data_conversion/testing/conversion_test_specs.py,sha256=bJxCDS-qq9M2_v22V6qJ4ZNHR9nOHcBsHzXMle91ejs,14795
81
81
  psdi_data_conversion/testing/utils.py,sha256=1QHd-bwc04SzqvwkV9Bhmm8Zi4ARoQE4jaECaTvaGAU,22601
82
- psdi_data_conversion-0.0.33.dist-info/METADATA,sha256=XVxiJBx8MBfjDasmJjI8hqhAgFl-LXWnffYjNWQ3bq4,36435
83
- psdi_data_conversion-0.0.33.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
84
- psdi_data_conversion-0.0.33.dist-info/entry_points.txt,sha256=o5y9mx-xX_koYtoAEB4acBG8lUkmhu8TlJhYD7axDS0,69
85
- psdi_data_conversion-0.0.33.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
86
- psdi_data_conversion-0.0.33.dist-info/RECORD,,
82
+ psdi_data_conversion-0.0.35.dist-info/METADATA,sha256=RWmDNsk8UqhorFVTHDdBiT0s9IwBpCknEGa4vO1Se20,36435
83
+ psdi_data_conversion-0.0.35.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
84
+ psdi_data_conversion-0.0.35.dist-info/entry_points.txt,sha256=o5y9mx-xX_koYtoAEB4acBG8lUkmhu8TlJhYD7axDS0,69
85
+ psdi_data_conversion-0.0.35.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
86
+ psdi_data_conversion-0.0.35.dist-info/RECORD,,