Skip to content

Commit

Permalink
Run pre-commit on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 18, 2024
1 parent fd79e97 commit 7c68e40
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion assets/src/components/FeaturesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default class FeaturesTable extends HTMLElement {
if (popupTable) {
popupTable.classList.add('table', 'table-condensed', 'table-sm', 'table-bordered', 'table-striped');
}

// Show popup and hide other children
const featuresTableDiv = aTarget.parentElement;
if (featuresTableDiv) {
Expand Down
4 changes: 2 additions & 2 deletions assets/src/legacy/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -3885,11 +3885,11 @@ window.lizMap = function() {
dockType = className.split('nav-')[1];
}
}

if (!dockType) {
return;
}

evt.preventDefault();

const linkClicked = evt.target.closest('a');
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/view/templates/map_headermenu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
<ul class="navbar-nav">
{include 'lizmap~user_menu'}
</ul>
</div>
</div>
2 changes: 1 addition & 1 deletion lizmap/www/themes/default/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@ div.jforms-submit-buttons.form-actions #jforms_view_edition__submit_submit {

.navbar .navbar-nav > li > a:focus, .navbar .navbar-nav > li > a:hover {
color: #333;
}
}
4 changes: 2 additions & 2 deletions tests/end2end/playwright/edition-form.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ test.describe('Text widget in a form', () => {

// second popup tab
const secondTabFields = page.locator('.lizmapPopupContent > .lizmapPopupSingleFeature .lizmapPopupDiv div.tab-pane').nth(1).locator('.field');

await expect(secondTabFields).toHaveCount(1);
await expect(secondTabFields.nth(0)).toHaveText('[%kk[% "ids" %]%]');

Expand Down Expand Up @@ -730,7 +730,7 @@ test.describe('Text widget in a form', () => {

expect(geometry.indexOf('POINT(')).toBe(0);
let coords = geometry.match(/\(([^)]+)\)/) || [];

expect(coords.length).toBe(2);

const xGeom = coords[1].split(" ")[0];
Expand Down
1 change: 0 additions & 1 deletion tests/end2end/playwright/popup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,4 +516,3 @@ test.describe('Drag and drop design with relations', () => {

});
});

2 changes: 1 addition & 1 deletion tests/qgis-projects/tests/base_layers.qgs
Original file line number Diff line number Diff line change
Expand Up @@ -1721,4 +1721,4 @@ def my_form_open(dialog, layer, feature):
<ProjectGpsSettings autoAddTrackVertices="0" autoCommitFeatures="0" destinationFollowsActiveLayer="1" destinationLayer="quartiers_c253f702_37b3_42f8_8e81_8458a742ec97" destinationLayerName="quartiers" destinationLayerProvider="postgres" destinationLayerSource="service='lizmapdb' sslmode=disable key='quartier' estimatedmetadata=true srid=4326 type=MultiPolygon checkPrimaryKeyUnicity='1' table=&quot;tests_projects&quot;.&quot;quartiers&quot; (geom)">
<timeStampFields></timeStampFields>
</ProjectGpsSettings>
</qgis>
</qgis>
2 changes: 1 addition & 1 deletion tests/qgis-projects/tests/cache.qgs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,4 +1119,4 @@ def my_form_open(dialog, layer, feature):
<ProjectGpsSettings autoAddTrackVertices="0" autoCommitFeatures="0" destinationFollowsActiveLayer="1" destinationLayer="">
<timeStampFields></timeStampFields>
</ProjectGpsSettings>
</qgis>
</qgis>
2 changes: 1 addition & 1 deletion tests/qgis-projects/tests/embed_child.qgs
Original file line number Diff line number Diff line change
Expand Up @@ -502,4 +502,4 @@
<ProjectGpsSettings autoAddTrackVertices="0" autoCommitFeatures="0" destinationFollowsActiveLayer="1" destinationLayer="edition_layer_embed_point_7794e305_0e9b_40d0_bf0b_2494790d4eb3" destinationLayerName="edition_layer_embed_point" destinationLayerProvider="postgres" destinationLayerSource="service='lizmapdb' sslmode=disable key='id' estimatedmetadata=true srid=4326 type=Point checkPrimaryKeyUnicity='1' table=&quot;tests_projects&quot;.&quot;edition_layer_embed_point&quot; (geom)">
<timeStampFields></timeStampFields>
</ProjectGpsSettings>
</qgis>
</qgis>
2 changes: 1 addition & 1 deletion tests/qgis-projects/tests/embed_parent.qgs
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ ouvert.

Utilisez cette fonction pour ajouter une logique supplémentaire à vos formulaires.

Entrez le nom de la fonction dans le champ
Entrez le nom de la fonction dans le champ
"Fonction d'initialisation Python".
Voici un exemple:
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/qgis-projects/tests/filter_layer_by_user.qgs
Original file line number Diff line number Diff line change
Expand Up @@ -1908,4 +1908,4 @@ def my_form_open(dialog, layer, feature):
</spatialrefsys>
</CoordinateCustomCrs>
</ProjectDisplaySettings>
</qgis>
</qgis>
1 change: 0 additions & 1 deletion tests/qgis-projects/tests/tests_dataset.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5045,4 +5045,3 @@ ALTER TABLE ONLY tests_projects.tramway_pivot
--
-- PostgreSQL database dump complete
--

0 comments on commit 7c68e40

Please sign in to comment.