GithubHelp home page GithubHelp logo

lincnil / pia Goto Github PK

View Code? Open in Web Editor NEW
261.0 261.0 268.0 23.85 MB

Version web front office de l’application PIA à déployer sur un serveur afin d’en donner l’accès via un navigateur web | Front office of the PIA application to be deployed on a server in order to access it through a web browser.

License: GNU General Public License v3.0

TypeScript 49.68% JavaScript 3.43% HTML 29.97% SCSS 16.93%

pia's People

Contributors

anotterdev avatar antoniormesa avatar bagois avatar brunto avatar cirku17 avatar dante-sec avatar dependabot[bot] avatar dimitripapadopoulos avatar dimitristzellis avatar gianlucamarkos avatar i4paga avatar joannakar avatar kevin-atnos avatar kosmas58 avatar labocnil avatar marcocoppotelli avatar martinmorolosada avatar microdrie avatar moolsen avatar msunta avatar pat-m avatar pervonbahr avatar pvohmn avatar remikoutcherawy avatar sant0s avatar syl-p avatar timothee-picard avatar tsvfin avatar user4294 avatar vibumees avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pia's Issues

develop - risks cartography is not correctly shown, when frontend is connected to the backend

connected

Only the background is shown, no bubbles, no arrows and no riskXLetters are shown. This problem occurs everytime you're connected to the backend, no matter

  1. when starting the frontend locally with yarn or npm start

  2. or generating pia-app out of the source with option build --prod --build-optimizer --sourcemaps

  3. or generating the frontend in prod mode in a docker container and so on ...

When not connected to the backend risk mapping is shown in all cases.

not connected

I've used your actual develop version from GitHub.

In your version the arrows are only weakly displayed. I've changed this in risks-cartography.component.ts to:
// Dotted lines params
context.setLineDash([2, 2]);
context.lineWidth = 2;
in my develop version. That leads to better visibility.

improved

[Cookies] Envoie des cookies en mode CORS

Bonjour,

J'utilise les cookies pour ajouter une authentification au PIA.
Cependant la partie front du pia n'est pas paramètré pour envoyer les cookies.

Pouvez-vous ajouter cette option comme indiqué ici ?

Add a simple command to package.json for production

Hello,

It would be nice to have a command in package.json to build the app for production purpose.
When I maintain the Dockerfile, I would like to do just yarn run build:prod for example without having to know that ng build --prod --build-optimizer --sourcemaps is being made.

You as the app developer could simply change the command in the package.json when doing a new release without having to change everything behind.

I'm suggesting this as I saw that the instructions changed with the 1.6.0 release. Before it was ng build -prod, now it is ng build --prod --build-optimizer --sourcemaps

A question about the connection between front and back

I have another question about this connection, there's any way to make it permanent?
Actually when you access from a new internet navigator the application "resets" and you lose the settings, there's any way to make this configuration permanent?

unknown attribute 'people_names' for Pia.

Hello,

we have a fresh installation of pia-back and pia frontend on CentOS 7. We can not create a new PIA. When clicking on the start button the PIA is not created (create windows stays open) and the following error is logged in pia-back.

from pia-back production.log:
I, [2018-02-28T17:08:37.372801 #5045] INFO -- : [a05c53f3-3c18-4385-9293-6e676b4b170a] Parameters: {"pia"=>{"name"=>"bla", "author_name"=>"test", "evaluator_name"=>"test", "validator_name"=>"test", "dpo_status"=>"undefined", "dpo_opinion"=>"undefined", "concerned_people_opinion"=>"undefined", "concerned_people_status"=>"undefined", "rejected_reason"=>"undefined", "applied_adjustements"=>"undefined", "created_at"=>"Wed Feb 28 2018 17:08:37 GMT+0100 (Mitteleuropäische Zeit)", "updated_at"=>"undefined", "status"=>"0", "is_example"=>"0", "dpos_names"=>"undefined", "people_names"=>"undefined", "concerned_people_searched_opinion"=>"undefined", "concerned_people_searched_content"=>"undefined"}}
I, [2018-02-28T17:08:37.377399 #5045] INFO -- : [a05c53f3-3c18-4385-9293-6e676b4b170a] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
F, [2018-02-28T17:08:37.379348 #5045] FATAL -- : [a05c53f3-3c18-4385-9293-6e676b4b170a]
F, [2018-02-28T17:08:37.379523 #5045] FATAL -- : [a05c53f3-3c18-4385-9293-6e676b4b170a] ActiveModel::UnknownAttributeError (unknown attribute 'people_names' for Pia.):
F, [2018-02-28T17:08:37.379608 #5045] FATAL -- : [a05c53f3-3c18-4385-9293-6e676b4b170a]
F, [2018-02-28T17:08:37.379703 #5045] FATAL -- : [a05c53f3-3c18-4385-9293-6e676b4b170a] app/controllers/pias_controller.rb:23:in `create'

`

User Management Enhancement Request

Hi All,

Is it possible to include somehow a user management to allow segregation of PIA work from different workstreams ?
Maybe a group Management and a User Management ?

Thanks in advance

Enhanced version of PIA

I've created pull request #184. It contains the following enhancements to PIA:

  • Upgrade to Angular 5 for better I18n support
  • Help texts for all 10 languages PIA supports
  • Localization of dates by the I18n functionality Angular 5 delivers

Impossible to compile - front office

After i've successfully installed completely the system (back + front), i've the bad idea to "git pull" the front office.
Since i've do that, i got theses errors

`ERROR in ng:///rgpd/pia/src/app/header/header.component.html (69,17): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (33,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (50,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (55,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (60,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (65,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (70,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (75,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (18,15): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (25,15): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (38,21): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (38,17): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (49,17): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (54,17): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (59,17): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (64,17): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/header/header.component.html (39,42): Property '_languagesService' is private and only accessible within class 'HeaderComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (14,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (20,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (31,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (36,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (41,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (46,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (51,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (56,40): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in /rgpd/pia/src/$$_gendir/app/authentication/authentication.component.ngfactory.ts (280,44): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (19,19): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (19,15): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (30,15): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (35,15): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (40,15): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (45,15): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.
ERROR in ng:///rgpd/pia/src/app/authentication/authentication.component.html (50,15): Property '_languagesService' is private and only accessible within class 'AuthenticationComponent'.

`

Bascule Version DEV Version PROD

Bonjour,

J'ai suivi l'installation du runbook, je n'arrive pas à basculer de la version DEV à la version PROD (impossible de créer une PIA une fois mon URL renseignée)

image

image

Le bouton exemple de PIA ne fonctionne pas non plus.

Auriez vous une idée ?

Compilation de l'environnement de prod en erreur

Bonjour,

Etant novice en node.js, j'ai besoin d'aide pour interpréter l'erreur suivant

`sudo ng serve -e prod --host X.X.X.X --port 80 -d

@angular/[email protected] requires typescript@'>=2.1.0 <2.4.0' but 2.4.2 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.

Please run the following command to install a compatible version of TypeScript.

npm install typescript@'>=2.1.0 <2.4.0'

To disable this warning run "ng set warnings.typescriptMismatch=false".

Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:16640:109)
at parseSourceFileWorker (/home/schau/pia/node_modules/typescript/lib/typescript.js:16572:26)
at Object.parseSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:16521:26)
at Object.createSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:16371:29)
at VirtualFileStats.getSourceFile (/home/schau/pia/node_modules/@ngtools/webpack/src/compiler_host.js:67:35)
at WebpackCompilerHost.getSourceFile (/home/schau/pia/node_modules/@ngtools/webpack/src/compiler_host.js:206:38)
at findSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:70246:29)
at processImportedModules (/home/schau/pia/node_modules/typescript/lib/typescript.js:70393:25)
at findSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:70274:17)
at processImportedModules (/home/schau/pia/node_modules/typescript/lib/typescript.js:70393:25)
at findSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:70274:17)
at processImportedModules (/home/schau/pia/node_modules/typescript/lib/typescript.js:70393:25)
at findSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:70274:17)
at args (/home/schau/pia/node_modules/typescript/lib/typescript.js:70200:85)
at getSourceFileFromReferenceWorker (/home/schau/pia/node_modules/typescript/lib/typescript.js:70173:34)
at processSourceFile (/home/schau/pia/node_modules/typescript/lib/typescript.js:70200:13)
`
pour info j'arrive bien à compiler l'environnement de DEV et accéder à l'interface web.

Merci pour votre aide

Impossible to access to Server Version with Front Pia

Hi Guys,

i have an issue with the front App when i precise the url of back server
It's impossible to load or create a PIA as soon as i put the PIA-Back adress, it's only working when i use the app in front app like a standalone

image

Struggle with npm

Hi there !

I'm new and trying to install PIA Front and back for work ! So i follow the runbook in the first hand.

But near the end I struggle a lot with npm install, the only command given in the runbook is:

cd pia

sudo npm install npm@latest -g
sudo npm install -g @angular/cli

Which i did but i have some error with the angular/cli (but not the fisrt one) see below:

@weblinux-pia:~/pia$ sudo npm install -g @angular/cli
/usr/bin/ng -> /usr/lib/node_modules/@angular/cli/bin/ng

> [email protected] install /usr/lib/node_modules/@angular/cli/node_modules/node-sass
> node scripts/install.js

Unable to save binary /usr/lib/node_modules/@angular/cli/node_modules/node-sass/vendor/linux-x64-59 : { Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@angular/cli/node_modules/node-sass/vendor'
    at Object.fs.mkdirSync (fs.js:909:18)
    at sync (/usr/lib/node_modules/@angular/cli/node_modules/mkdirp/index.js:71:13)
    at Function.sync (/usr/lib/node_modules/@angular/cli/node_modules/mkdirp/index.js:77:24)
    at checkAndDownloadBinary (/usr/lib/node_modules/@angular/cli/node_modules/node-sass/scripts/install.js:114:11)
    at Object.<anonymous> (/usr/lib/node_modules/@angular/cli/node_modules/node-sass/scripts/install.js:157:1)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/usr/lib/node_modules/@angular/cli/node_modules/node-sass/vendor' }

> [email protected] postinstall /usr/lib/node_modules/@angular/cli/node_modules/node-sass
> node scripts/build.js

Building: /usr/bin/node /usr/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli   '/usr/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.12\n"
gyp verb get node dir no --target version specified, falling back to host node version: 9.9.0
gyp verb command install [ '9.9.0' ]
gyp verb install input version string "9.9.0"
gyp verb install installing version: 9.9.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 9.9.0
gyp verb build dir attempting to create "build" dir: /usr/lib/node_modules/@angular/cli/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@angular/cli/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-87-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/@angular/cli/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/lib/node_modules/@angular/cli/node_modules/node-sass
gyp ERR! node -v v9.9.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@angular/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@angular/cli/node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ @angular/[email protected]
updated 1 package in 21.643s

The thing i don't understand is:

  • the first command works fine. Why not the second one ?

  • I have acces denied with a sudo command, wtf ? So i dig a little. And the directory "/usr/lib/node_modules/@angular/cli/node_modules/node-sass/vendor" does not exist ! In fact i can go to "/usr/lib/node_modules/@angular/cli/node_modules/" the rest node-sass/vendor is missing. But why ?

Can someone point me in the right direction ? I'm not very familiar with the npm/angular environnement, maybe the answer is basic.

Best regards,

LaBanane.

develop - created major update for language support in PIA

@LaboCNIL: I've created pull request #193 to improve language and I18n support in PIA. I would be nice, if you are able to pull it.

I've improved help. I added the ability to show the Infografics DPIA inside the tool:

carte de processus

Corina Scheiter from the Bavarian DPA created a section "First Steps":

premieres etapes

As you can see on GitHub, I'm constantly working on the improvement of your marvellous tool.

I am a full time DPO at a large clinic in Munich and work in my spare time on the further development of the PIA application stack, because I'm with Ruby on Rails since 2007. In the meantime, Corina Scheiter from the Bavarian DPA supports my work. That's a real public private partnership.

Thanks in advance.

Kosmas

Dispo en machine virtuel

Bonjour,
n'avez vous pas la possibilité de proposer l'outil sous forme de OVA donc machine virtuelle,

car l'installation de votre outil en front et back, n'est vraiment pas facile à réaliser.

merci de votre retour.

Cannot ask for review when connected to backend

When connected to the backend the ask for review only works in Planned or Existing measures while working in offline mode it works in every section of the PIA
Howto reproduce:
open the pia app in standalone mode, import the pia provided in the example
Ask for review works in every section of the pia.
now set the backend url:
import again the pia provided in the example:
ask for review only works in the "Planned or existing measures" section

pia-example.zip

Tested on a clean checkout of "develop" branch of pia vs
clean checkout of master branch of pia-back

pia-1.6.0 vs the same backend works.

impossible de compiler pour l'environnement de prod

Bonjour,
lorsque je veux compiler l'environnement de prod avec la commande
ng build --prod --build-optimizer --sourcemaps
j'ai l'erreur suivante

Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined

Mais je peux lancer l'application en dev via
ng serve
Pouvez-vous m'aider?

Further setup instructions

Hi there,

We @fifty-five would like to use your tool to see the features it provides. However we've had some hard time deploying it dockerized on our servers.

Could you please provide more insights on how to build this properly for a docker-based production environment ?

Thanks in advance, great work.

Unmet CSS dependency

Hi,

I am not able to start PIA on Ubuntu 16.04 with NodeJS v6.12.2, Angular: 4.4.6 and Angular CLI: 1.6.1.
The path node_modules/ngx-chips/dist/modules does not exist.

ng serve

@angular/[email protected] requires typescript@'>=2.1.0 <2.4.0' but 2.4.2 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.

Please run the following command to install a compatible version of TypeScript.

    npm install typescript@'>=2.1.0 <2.4.0'

To disable this warning run "ng set warnings.typescriptMismatch=false".

** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
 91% additional chunk assets processingwebpack: wait until bundle finished: /           
webpack: wait until bundle finished: /                                                                                                                                                                                                                                                  Date: 2017-12-14T11:22:47.510Z         
Hash: 2a262cd2b40bc32005e4
Time: 35676ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 1.81 MB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 597 kB [initial] [rendered]
chunk {scripts} scripts.bundle.js (scripts) 1.93 MB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 26.2 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 11.8 MB [initial] [rendered]

ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./src/styles.scss
Module build failed: 
@import "../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss";
^
      File to import not found or unreadable: ../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss.
Parent style sheet: /home/hjjg/pia/src/assets/stylesheets/_tags.scss
      in /home/hjjg/pia/src/assets/stylesheets/_tags.scss (line 1, column 1)
Error: 
@import "../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss";
^
      File to import not found or unreadable: ../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss.
Parent style sheet: /home/hjjg/pia/src/assets/stylesheets/_tags.scss
      in /home/hjjg/pia/src/assets/stylesheets/_tags.scss (line 1, column 1)
    at options.error (/home/hjjg/pia/node_modules/node-sass/lib/index.js:291:26)
 @ ./src/styles.scss 4:14-191
 @ multi ./src/styles.scss

webpack: Failed to compile.

The web server is responding but it tells me:

Cannot GET /

I can't see why the Typescript-Warning could be an issue with this. Trying to install an older version gives me this:

npm install typescript@'>=2.1.0 <2.4.0'
[email protected] /home/hjjg/pia
└── [email protected]  invalid

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

I am not familiar with Node/NPM/Angular. If this is not a bug but a layer 8 problem, then please make it a feature request for a documentation on how to set up PIA correctly.

Thanks in advance,

hjjg

Gestion des utilisateurs / audit trail

Bonjour,
Je n'ai pas trouvé la possibilité d'authentifier les utilisateurs lors de leur connexion à PIA (version serveur). Sans cette fonctionnalité, il me semble difficile de pouvoir présenter le "qui fait quoi" du circuit de validation (édition/revue/validation) des informations saisies. J'ai mal vu ? c'est dans les tuyaux ?
merci, Vincent

Cannot install the front-end on the back-end debian server, instructions unclear

Hello,

I've followed the instructions provided by Bruno here: LINCnil/pia-back#9 to install the back-end =)

Then, it seems that no instructions are available to easily install the front-end =(

Despite the critical value of PIA to drive the GDPR project in our organization, we cannot use it without a proper deployment procedure.

Could you provide a clear step by step procedure to install the whole platform on a server or provide a packaged appliance that one could deploy in a virtual environment?

The local portable version is not sufficient in our case since we have to register multiple data treatment scattered across the organization. An solo auditor would not be sufficient and we need to distribute the workload.

Possibilité d'exporter en PDf

Bonjour,

Serait-il possible de prévoir la fonctionnalité d'export en PDF dans les différentes versions de la solution ?
Car si l'on peut exporter facilement les données, on ne peut pas récupérer les graphiques réalisés ce qui est fort dommage.

Merci par avance!

PIA non reconnue comme angular-cli project

Bonjour,

Lorsque j'essaye d'executer "ng serv" dans le dossier "PIA", celui-ci me retourne l'erreur suivante:
"You have to be inside an angular-cli project in order to use the serve command."

Je ne suis pas familier du monde de angular-cli et j'ai eu beaucoup de soucis à l'installation.
Lorsque je crée un nouveau projet comme décrit dans le README de angular/cli cela fonctionne très bien, j'en déduis que "PIA" n'est pas reconnue comme un projet angular/cli.

Que faire pour résoudre ce problème ?
Merci d'avance,
Cordialement

impression entraine fermeture du programme

bonjour,
voici le détail de l'anomalie rencontrée:
__l'impression des aperçus génère des messages d'erreurs et la fermeture du programme.
CAS 1
message 1 : "PIA a cessé de fonctionner / Windows recherche une solution au problème..." + bouton ANNULER
message 2 :¨"PIA a cessé de fonctionner : Un problème a fait que le programme a cessé de fonctionner correctement. Windows va fermer ce programme et vous indiquer si une solution est disponible" + bouton FERMER LE PROGRAMME

CAS 2
aucun message, l'application a été fermée (sans sommation) à la première tentative d'impression d'un aperçu.__
bien cordialement,
A.C.

Savoir si le serveur de base de données est opérationnel

Bonjour,

Il serait pas mal de rajouter un message pour confirmer (ou pas) le fonctionnement avec la base de données.
En effet lorsque que la base de données n'est pas fonctionnelle ni accessible, il n'y a pas de message d'erreur.

Issue in preview/print

In some cases preview and print not print complete document. This issue using backend with remote server.

[FEATURE REQUEST] AUTHENTIFICATION

Bonjour,

Est-il prévu une implémentation d'un système d'authentification (ex: basicAuth, ldap, ...)
[back et front]
Cordialement,
Jonathan

No rights to upload/save file in dir

Good evening from Greece!
I am not allowed to save el.json in the specified directory for the pia translation, due to permission constraints...
Could you please help?

BG translation

I am going to translate the software in Bulgarian.
Could you provide some technical instructions for that
SY
Dr Bankov

"Exemple de PIA" button doesn't work

Hello,

I have updated to the latest 1.6.0 release on front and back by using the Docker images I submitted on this PR: LINCnil/pia-back#15

By clicking on the button "Exemple de PIA", there is no reaction. And when opening the browser console, there is this error:

Error: Uncaught (in promise): Error: The requested path contains undefined segment at index 1
validateCommands@http://url-of-the-app.fr/vendor.bundle.js:74216:19

Do you think I badly build the app? Or is the issue elsewhere?

The rest of the app seems to work as before the update.

German and spanish translations waiting to be merged

Hi,
I wan't to contribute to PIA and created a german translation. I also included the spanish translation #67 of ylachgar after fixing some bugs in his es.json file. I've made a new pull request #78 having less commits.

I've made the appropriate changes to integrate the translations into the app.

It would be nice, if you integrate the translation into your repository.

Thanks,
Kosmas

ng build et ng serve en mode prod ne fonctionnent pas

Bonjour,

Lorsque je veux lancer le PIA front end en mode production, j'obtiens une bonne centaine de lignes de ce type

ERROR in ng:///home/(user)/pia/src/app/entry/entry-content/validate-pia/validate-pia.component.html (29,14): Property '_piaService' is private and only accessible within class 'ValidatePIAComponent'.

avec "... is private and only accessible within class ..." à chaque ligne

Après quelques recherches, je pense que ca vient des contraintes du AOT d'Angular
https://github.com/qdouble/angular-webpack2-starter#aot--donts

En revanche, aucun problème en mode "test"

QUESTION: working vmware appliance

Is there any working appliance? I tried to install required components and PIA on a Ubuntu VM but i was unable to run PIA due to errors invoking ng. Thanks.

problème de saisie champs PIA

Bonjour !

Après avoir installé l'application, lorsque j'essai de saisir du texte dans les champs du PIA, j'ai un souci : la saisie se s'interrompt après le premier caractère saisi !? Savez vous pourquoi ?

merci.

[Formulaire] Plusieurs éléments du formulaire avec le même nom

Bonjour,

J'essaie de connecter le front PIA à un back-Office dévellopé en JAVA.
Je m'appuie sur le fichier swagger.yml Comme évoqué dans le bug #2

J'ai des remarques à vous remonter sur le fichier swagger.yml mais une en particulier me pose problème;
Lors de la création/update d'un "Answer", la partie front envoie un formulaire de la manière suivante.

capture d ecran 2018-03-23 a 09 42 57

Comme vous le voyez, on utilise le même nom "answer[data][list][]", plusieurs fois dans le même formulaire
Il apparait que les spécifications ne l'Interdisent pas ( comme dit ici ).

mais comme il est aussi dit :

Programs are supposed to group identically named items together. While the HTML specification doesn't explicitly say this, it is implicitly stated in the documentation on checkboxes.

Serait-il possible de changer le fonctionnement actuel de :

answer[data][list][] = aa
answer[data][list][] = bb
answer[data][list][] = cc

à
answer[data][list] = aa bb cc

Malloum LAYA
https://carto-si.com
logo-mini

Is this installable on a Windows Server?

Firstly, let me apologize if this seems like a silly question, I am not familiar with Ubuntu OS / Server.
I have been asked to attempt to deploy this on a Windows Server (virtual machine), and I am struggling to understand what steps are involved in doing so.
I do realise there is a RunBook for Front End and Back End, but it seems to be exclusively for Ubuntu.
So, I am essentially looking for guidance on how to install this and test it on a Windows Server (2012 R2 Standard, if possible).

Can anyone help to enlighten my ignorance please?

Kind Regards

Failing build

Hey,

I start by running
nmp install

followed by

'ng build'

which result in a sequence of errors:

ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./src/styles.scss
Module build failed:
@import "../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss";
^
      File to import not found or unreadable: ../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss.
Parent style sheet:<path>/LINCnil/pia/src/assets/stylesheets/_tags.scss
      in <path>/LINCnil/pia/src/assets/stylesheets/_tags.scss (line 1, column 1)
Error:
@import "../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss";
^
      File to import not found or unreadable: ../../../node_modules/ngx-chips/dist/modules/core/styles/core/_core.scss.
Parent style sheet: <path>/LINCnil/pia/src/assets/stylesheets/_tags.scss
      in <path>/LINCnil/pia/src/assets/stylesheets/_tags.scss (line 1, column 1)
    at options.error (<path>/LINCnil/pia/node_modules/node-sass/lib/index.js:291:26)
 @ ./src/styles.scss 4:14-191
 @ multi ./src/styles.scss

Version 1.6 issue

Salut Les gars,

Après la mise a jour 1.6 j'ai quelques problème pour la faire fonctionner correctement :

image

J'ai essayer diverse actions comme reinstaller Angular cli, downgrade a une version 1.6.8, plusieurs reinstall mais je n'arrive pas a resoudre le pb.

j'ai aussi noté que la version du json indique toujours 1.5.0

image

src/styles.css manquant

Bonjour,

quand je lance un ng serve ou ng build j'ai un message d'erreur m'indiquant que le fichier src/styles.css est manquant (j'ai bien un fichier styles.scss mais pas de fichier styles.css dans le dossier src)
lorsque je rajoute un fichier styles.css vide a la main je n'ai plus de message et le site fonctionne mais l'afffichage est "buggé", forcement sans feuille de style c'est moche.
pouvez vous me dire ou trouver ce fichier styles.css manquant?

merci pour votre aide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.