Page MenuHomeSoftware Heritage

D2335.id.diff
No OneTemporary

D2335.id.diff

diff --git a/cypress/integration/errors.spec.js b/cypress/integration/errors.spec.js
--- a/cypress/integration/errors.spec.js
+++ b/cypress/integration/errors.spec.js
@@ -124,7 +124,7 @@
});
context('For invalid data', function() {
- it(`should display 400 for invalid checksum for
+ it(`should display 400 for invalid checksum for
directory, snapshot, revision, content`, function() {
const types = ['directory', 'snapshot', 'revision', 'content'];
for (let type of types) {
diff --git a/swh/web/api/views/identifiers.py b/swh/web/api/views/identifiers.py
--- a/swh/web/api/views/identifiers.py
+++ b/swh/web/api/views/identifiers.py
@@ -24,7 +24,7 @@
identifier is valid, the existence of the object in the archive
will also be checked.
- :param string swh_id: a Software Heritage presistent identifier
+ :param string swh_id: a Software Heritage persistent identifier
:>json string browse_url: the url for browsing the pointed object
:>json object metadata: object holding optional parts of the persistent identifier
diff --git a/swh/web/assets/config/bootstrap-pre-customize.scss b/swh/web/assets/config/bootstrap-pre-customize.scss
--- a/swh/web/assets/config/bootstrap-pre-customize.scss
+++ b/swh/web/assets/config/bootstrap-pre-customize.scss
@@ -5,7 +5,7 @@
* See top-level LICENSE file for more information
*/
-// override some global boostrap sass variables before generating stylesheets
+// override some global bootstrap sass variables before generating stylesheets
// global text colors and fonts
$body-color: rgba(0, 0, 0, 0.55);
diff --git a/swh/web/assets/config/webpack.config.development.js b/swh/web/assets/config/webpack.config.development.js
--- a/swh/web/assets/config/webpack.config.development.js
+++ b/swh/web/assets/config/webpack.config.development.js
@@ -100,7 +100,7 @@
// enable to serve static assets not managed by webpack
contentBase: path.resolve('./swh/web/'),
// we do not use hot reloading here (as a framework like React needs to be used in order to fully benefit from that feature)
- // and prefere to fully reload the frontend application in the browser instead
+ // and prefer to fully reload the frontend application in the browser instead
hot: false,
inline: true,
historyApiFallback: true,
diff --git a/swh/web/browse/views/directory.py b/swh/web/browse/views/directory.py
--- a/swh/web/browse/views/directory.py
+++ b/swh/web/browse/views/directory.py
@@ -116,10 +116,10 @@
sum_file_sizes = filesizeformat(sum_file_sizes)
- dir_metadata = {'directory': sha1_git,
- 'number of regular files': len(files),
- 'number of subdirectories': len(dirs),
- 'sum of regular file sizes': sum_file_sizes}
+ dir_metadata = {"directory": sha1_git,
+ "number of regular files": len(files),
+ "number of subdirectories": len(dirs),
+ "sum of regular file sizes": sum_file_sizes}
vault_cooking = {
'directory_context': True,
diff --git a/swh/web/browse/views/utils/snapshot_context.py b/swh/web/browse/views/utils/snapshot_context.py
--- a/swh/web/browse/views/utils/snapshot_context.py
+++ b/swh/web/browse/views/utils/snapshot_context.py
@@ -326,16 +326,16 @@
browse_rev_link = gen_revision_link(revision_id)
browse_snp_link = gen_snapshot_link(snapshot_id)
- dir_metadata = {'directory': sha1_git,
- 'context-independent directory': browse_dir_link,
- 'number of regular files': nb_files,
- 'number of subdirectories': nb_dirs,
- 'sum of regular file sizes': sum_file_sizes,
- 'path': dir_path,
- 'revision': revision_id,
- 'context-independent revision': browse_rev_link,
- 'snapshot': snapshot_id,
- 'context-independent snapshot': browse_snp_link}
+ dir_metadata = {"directory": sha1_git,
+ "context-independent directory": browse_dir_link,
+ "number of regular files": nb_files,
+ "number of subdirectories": nb_dirs,
+ "sum of regular file sizes": sum_file_sizes,
+ "path": dir_path,
+ "revision": revision_id,
+ "context-independent revision": browse_rev_link,
+ "snapshot": snapshot_id,
+ "context-independent snapshot": browse_snp_link}
if origin_info:
dir_metadata['origin url'] = origin_info['url']
diff --git a/swh/web/templates/includes/take-new-snapshot.html b/swh/web/templates/includes/take-new-snapshot.html
--- a/swh/web/templates/includes/take-new-snapshot.html
+++ b/swh/web/templates/includes/take-new-snapshot.html
@@ -29,7 +29,7 @@
<div class="modal-body">
<p>
If the archived software origin currently browsed is not synchronized with its upstream
- version (for instance when new commits have been issued), you can explicitely request Software
+ version (for instance when new commits have been issued), you can explicitly request Software
Heritage to take a new snapshot of it.
<p>
</p>
@@ -73,4 +73,4 @@
</script>
-{% endif %}
\ No newline at end of file
+{% endif %}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 11:29 AM (15 h, 8 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222082

Event Timeline