Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update auth syst with error msg from pia18n #606

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ Thumbs.db
src/environments/environment.prod.ts
/cypress/videos/*
/documentation
projects/*

# electron
electron/releases/
electron/private/
.idea
.env
dev-app-update.yml
101 changes: 101 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
<<<<<<< HEAD

# Pia

=======

# Pia [v.3.0.1](https://github.com/LINCnil/pia/releases/tag/v3.0.1)

# Le logiciel PIA / The PIA Software

## Présentation / Presentation

<img src="https://raw.githubusercontent.com/LINCnil/pia/master/src/assets/images/pia-auth-logo.png" align="left" hspace="10" vspace="6"> Le logiciel PIA est un outil distribué librement par la [CNIL](https://www.cnil.fr/fr/outil-pia-telechargez-et-installez-le-logiciel-de-la-cnil) afin de faciliter la réalisation d’analyses d’impact sur la protection des données prévues par le RGPD.

La dernière version de l'outil est téléchargeable dans la section [Release](https://github.com/LINCnil/pia/releases) de ce dépôt.

The PIA software is a free tool published by the [CNIL](https://www.cnil.fr/en/open-source-pia-software-helps-carry-out-data-protection-impact-assesment) which aims to help data controllers build and demonstrate compliance to the GDPR.

The latest version of the tool can be downloaded in the [Release](https://github.com/LINCnil/pia/releases) section of this repository.

## Traduire le logiciel PIA / Translating the PIA Software

Pour traduire le logiciel, nous vous invitons à vous rendre dans le [dépôt dédié](https://github.com/LINCnil/pia-i18n/tree/main/src/lib/assets/i18n) dans lequel les étapes de traduction sont décrites.

To translate the software, we invite you to visit the [related repository](https://github.com/LINCnil/pia-i18n/tree/main/src/lib/assets/i18n) where the translation steps are described.

# Information de développement / Dev information

> > > > > > > e3496260... feat: prepare new architect version for pia-i18n

![CI](https://github.com/atnos/pia/workflows/integration-tests/badge.svg?branch=master)

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.1.
Expand Down Expand Up @@ -39,3 +67,76 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

## Package the application for Mac, Windows or GNU/Linux

### Mac:

You must set the ENV variables `APPLEID` and `APPLEPIAPASSWORD` inside a `.env` file at the root of the project.

```
yarn electron:mac
```

### Windows:

```
CSC_LINK=../path_to_your/file.pfx CSC_KEY_PASSWORD="Your PFX file password" yarn electron:win
```

### GNU/Linux:

```
yarn electron:linux
```

## Publish the application to Github

See: https://www.electron.build/configuration/publish

```
GH_TOKEN=YOUR_GITHUB_TOKEN yarn electron:publish-to-github
```

## How to work on pia-i18n

You can work on this project with a [pia-i18n](https://github.com/LINCnil/pia-i18n) directly in development process.

This process permit to check your changes on the pia-i18n code (for traduction updates, fixes...) directly on the pia project

### /!\ Requirements /!\ :

- nodejs in lts version (14.17.4)
- ng client `npm install -g @angular/cli`

If you have to update your node version, you may to remove ./node_modules folder and type "npm i or yarn install" before continue.

### Set up your pia project

Get pia-i18n in the projects folder
Clone pia-i18n in a ./projects/pia-i18n folder

```
git clone git@github.com:LINCnil/pia-i18n.git ./projects/pia-i18n
```

Stop using npm dependancy

- remove @atnos/pia-i18n dependancy in package.json
- yarn

**warning** no commit this changes on the pia repository

build / rebuild the local

```
ng build pia-i18n --prod
```

start pia project

```
yarn start
```

This process replace npm @atnos/pia-i18n by the local pia-i18n dist folder
38 changes: 38 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,44 @@
}
}
}
},
"pia-i18n": {
"projectType": "library",
"root": "projects/pia-i18n",
"sourceRoot": "projects/pia-i18n/src",
"prefix": "atnos",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/pia-i18n/tsconfig.lib.json",
"project": "projects/pia-i18n/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/pia-i18n/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/pia-i18n/src/test.ts",
"tsConfig": "projects/pia-i18n/tsconfig.spec.json",
"karmaConfig": "projects/pia-i18n/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/pia-i18n/tsconfig.lib.json",
"projects/pia-i18n/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "pia-angular",
Expand Down
Loading