Skip to content

Commit

Permalink
Merge pull request #2962 from MerginMaps/dev-redesign
Browse files Browse the repository at this point in the history
Dev redesign
  • Loading branch information
PeterPetrik authored Dec 18, 2023
2 parents 4b59718 + c545232 commit 3140e87
Show file tree
Hide file tree
Showing 97 changed files with 4,657 additions and 937 deletions.
7 changes: 3 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Building Mergin Maps mobile app from source - step by step
* [5. Building iOS](#5-building-ios)
* [6. Building macOS](#6-building-macos)
* [7. Building Windows](#7-building-windows)
* [8. Auto Testing](#9-auto-testing)
* [8. Auto Testing](#8-auto-testing)

# 1. Introduction

Expand Down Expand Up @@ -89,8 +89,7 @@ openssl aes-256-cbc -d -in merginsecrets.cpp.enc -out merginsecrets.cpp -md md5
## 2.2 Code formatting

We use `astyle` to format CPP and Objective-C files. Format is similar to what QGIS has.

For QML files we use latest version of `jesperhh/qmlfmt`. To install, follow instruction on the GitHub of the project.
For more details about code conventions, please read [our code conventions doc](./docs/code_convention.md).

We also use software [pre-commit](https://pre-commit.com/) to automatically check format when doing a commit.
You need to install it via `brew`/`pip`, see [installation details](https://pre-commit.com/#installation).
Expand Down Expand Up @@ -397,7 +396,7 @@ or you need some user with unlimited projects limit. First workspace from list i

now you need to set environment variables:
```
TEST_MERGIN_URL=test.dev.merginmaps.com
TEST_MERGIN_URL=https://test.dev.merginmaps.com/
TEST_API_USERNAME=test_mobileapp_dev
TEST_API_PASSWORD=<your_password>
```
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,9 @@ To setup your development environment, read [INSTALL](./INSTALL.md)

New sub-project 'gallery' app is used to develop/design all UI components, used in the Mergin Maps app

### Code conventions

To learn about our code conventions, please see the [code conventions](./docs/code_convention.md) file.

## Privacy policy
Read more about the app privacy policy [here](https://merginmaps.com/docs/reference/privacy/)
6 changes: 2 additions & 4 deletions app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,15 +1056,13 @@ bool AttributeController::deleteFeature()
if ( !mFeatureLayerPair.layer() )
return false;

bool rv = true;

if ( !startEditing() )
{
rv = false;
return false;
}

bool isDeleted = mFeatureLayerPair.layer()->deleteFeature( mFeatureLayerPair.feature().id() );
rv = commit();
bool rv = commit();

if ( !isDeleted || !rv )
{
Expand Down
3 changes: 3 additions & 0 deletions app/icons/AcceptInvitationImage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions app/icons/AcceptInvitationLogoImage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/icons/Archaeology.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions app/icons/Back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/icons/Briefcase.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions app/icons/Bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/icons/Download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/icons/Electricity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/icons/Engineering.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/icons/Environmental.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/icons/Facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions app/icons/Globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/icons/Info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/icons/Linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3140e87

Please sign in to comment.