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

chore: bump to version 3.0.3 #625

Merged
merged 3 commits into from
Jan 21, 2022
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
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Pia [v3.0.2](https://github.com/LINCnil/pia/releases/tag/v3.0.2)

# Le logiciel PIA / The PIA Software

## Présentation / Presentation
Expand All @@ -20,7 +18,7 @@ To translate the software, we invite you to visit the [related repository](https

# Information de développement / Dev information

![CI](https://github.com/atnos/pia/workflows/integration-tests/badge.svg?branch=master)
![CI](https://github.com/lincnil/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
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 46 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pia",
"version": "3.0.2",
"version": "3.0.3",
"license": "GPLV3",
"author": "ATNOS",
"repository": "https://github.com/LINCnil/pia",
Expand Down Expand Up @@ -38,76 +38,76 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~11.0.0",
"@angular/common": "~11.0.0",
"@angular/compiler": "~11.0.0",
"@angular/core": "~11.0.0",
"@angular/forms": "~11.0.0",
"@angular/platform-browser": "~11.0.0",
"@angular/platform-browser-dynamic": "~11.0.0",
"@angular/router": "~11.0.0",
"@angular/service-worker": "~11.0.0",
"@angular/animations": "~11.0.9",
"@angular/common": "~11.0.9",
"@angular/compiler": "~11.0.9",
"@angular/core": "~11.0.9",
"@angular/forms": "~11.0.9",
"@angular/platform-browser": "~11.0.9",
"@angular/platform-browser-dynamic": "~11.0.9",
"@angular/router": "~11.0.9",
"@angular/service-worker": "~11.0.9",
"@atnos/pia-i18n": "^0.0.4",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@types/intro.js": "^2.4.6",
"@types/intro.js": "^2.4.8",
"angular2-csv": "git+https://github.com/dauledk/angular2-csv.git",
"core-js": "^3.6.5",
"cypress": "^6.2.0",
"cypress": "^6.2.1",
"cypress-file-upload": "^4.1.1",
"cypress-localstorage-commands": "^1.3.1",
"d3": "^5.15.0",
"d3": "^5.15.1",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.0.6",
"electron-log": "^4.0.7",
"electron-notarize": "^0.2.1",
"electron-updater": "^4.2.0",
"electron-updater": "^4.2.5",
"electron-window-state": "^5.0.3",
"file-saver": "^2.0.2",
"file-saver": "^2.0.5",
"font-awesome": "^4.7.0",
"foundation-sites": "^6.6.3",
"html2canvas": "1.0.0-rc.1",
"html2canvas": "1.0.0",
"intro.js": "^2.9.3",
"jszip": "^3.7.0",
"jszip": "^3.7.1",
"ng2-pdfjs-viewer": "^5.0.7",
"ngx-chips": "2.1.0",
"normalize.css": "^8.0.1",
"rxjs": "^6.6.3",
"rxjs": "^6.6.7",
"rxjs-compat": "^6.5.5",
"save-svg-as-png": "^1.4.17",
"tinymce": "^4.9.10",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
"tinymce": "^4.9.11",
"tslib": "^2.0.3",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.1100.1",
"@angular/cli": "~11.0.1",
"@angular/compiler-cli": "~11.0.0",
"@angular-devkit/build-angular": "^0.1100.7",
"@angular/cli": "~11.0.7",
"@angular/compiler-cli": "~11.0.9",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^14.11.8",
"codelyzer": "^6.0.0",
"@types/jasmine": "~3.6.11",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^14.11.11",
"codelyzer": "^6.0.2",
"commitlint": "^11.0.0",
"electron": "^8.0.0",
"electron-builder": "^22.3.2",
"electron": "^8.0.3",
"electron-builder": "^22.3.6",
"husky": "^4.0.10",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"jasmine-spec-reporter": "~5.0.2",
"karma": "~5.1.1",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^11.0.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~4.0.1",
"karma-jasmine-html-reporter": "^1.5.4",
"ng-packagr": "^11.0.3",
"ngx-cypress-builder": "^1.0.2",
"prettier": "^1.18.2",
"pretty-quick": "^2.0.1",
"pretty-quick": "^2.0.2",
"protractor": "~7.0.0",
"sass": "^1.29.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.0.2"
"tslint": "~6.1.3",
"typescript": "~4.0.8"
},
"build": {
"appId": "com.atnos.pia",
Expand All @@ -125,7 +125,13 @@
"icon": "electron/icons/512x512.png",
"entitlements": "electron/entitlements.mac.plist",
"entitlementsInherit": "electron/entitlements.mac.plist",
"category": "public.app.category.productivity"
"category": "public.app.category.productivity",
"target": {
"target": "default",
"arch": [
"universal"
]
}
},
"win": {
"target": [
Expand Down
22 changes: 13 additions & 9 deletions src/app/modules/pia/export/export.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import * as FileSaver from 'file-saver';
import * as html2canvas from 'html2canvas';
import html2canvas from 'html2canvas';
import { svgAsPngUri } from 'save-svg-as-png';
import { PiaService } from 'src/app/services/pia.service';
import { AppDataService } from 'src/app/services/app-data.service';
Expand Down Expand Up @@ -495,14 +495,16 @@ export class ExportComponent implements OnInit {
* Download the action plan overview as an image
* @async
*/
async getActionPlanOverviewImg(): Promise<void> {
async getActionPlanOverviewImg(): Promise<string> {
return new Promise((resolve, reject) => {
setTimeout(() => {
const actionPlanOverviewImg = document.querySelector(
'#actionPlanOverviewImg'
);
if (actionPlanOverviewImg) {
html2canvas(actionPlanOverviewImg, { scale: 1.4 }).then(canvas => {
html2canvas(actionPlanOverviewImg as HTMLElement, {
scale: 1.4
}).then(canvas => {
if (canvas) {
const img = canvas.toDataURL();
resolve(img);
Expand All @@ -517,19 +519,21 @@ export class ExportComponent implements OnInit {
* Download the risks cartography as an image
* @async
*/
async getRisksCartographyImg(): Promise<void> {
async getRisksCartographyImg(): Promise<string> {
return new Promise((resolve, reject) => {
setTimeout(() => {
const risksCartographyImg = document.querySelector(
'#risksCartographyImg'
);
if (risksCartographyImg) {
html2canvas(risksCartographyImg, { scale: 1.4 }).then(canvas => {
if (canvas) {
const img = canvas.toDataURL();
resolve(img);
html2canvas(risksCartographyImg as HTMLElement, { scale: 1.4 }).then(
canvas => {
if (canvas) {
const img = canvas.toDataURL();
resolve(img);
}
}
});
);
}
}, 250);
});
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const environment = {
name: 'production',
production: true,
version: '3.0.2'
version: '3.0.3'
};
Loading