inseefr / pogues Goto Github PK
View Code? Open in Web Editor NEWQuestionnaire designer
License: MIT License
Questionnaire designer
License: MIT License
text/plain is used for persistence API and text/html for publish API.
Both should use application/json.
No success with working on Jetty configuration (web.xml) with things like :
<filter>
<filter-name>cross-origin</filter-name>
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
<init-param>
<param-name>allowedOrigins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>allowedMethods</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>allowedHeaders</param-name>
<param-value>Location</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>cross-origin</filter-name>
<filter-pattern>/*</filter-pattern>
</filter-mapping>
(wildcard doesn't seem to be allowed for param-value of allowedHeaders).
So we explicit set some headers when we build the response (XQuery) :
Access-Control-Allow-Headers:Location, Content-Type
Access-Control-Expose-Headers:Location, Content-Type
(I guess only one of these is useful, but we didn't have time to check which one).
Required in particular by GenericInput.
The method should append a question or sequence to an existing sequence, at a given depth. If depth is 1, the method is equivalent to addChild(child). For depth = 2, it is addChild(child) on the last direct child, etc.
Add the possibility to change component ordering by drag and drop in the questionnaire outlook.
See for example https://reactjsnews.com/complex-drag-and-drop-lists-using-react/
Questionnaire outlook should be sticky, and a click on a component should scroll the main panel to that component.
When writing a caracter "dash" in the label of a sequence, the input field is empty
Should allow to:
First proposal:
What tools to use to document the JS programs?
Don't suggest visualizationHint if a codeList is not selected
Define functionalities and corresponding icons.
We could make use of React prop validation to list the props used by a component. See https://facebook.github.io/react/docs/reusable-components.html#prop-validation.
The last questionnaire published was on friday the 17th.
Use 'get' instead of 'load'.
Associated to the search box in the general menu.
The culprit seems to be the way we use the appendComponent
in the QuestionnaireStore : we always append sequences and questions to the questionnaire itself, where we should append the questions to the sequence their belong to.
Not uniform in all files, sometimes it's a tab sometimes two whitespaces.
http://eslint.org/ seems to be the right choice.
I tried to remove es6 compiled files from tracked files, but gulp build fails when I run build after deleting src/js/models/*.js files. If I run gulp build:es6transpile and then gulp build again, it works.
I tried to ensure that babel was done before running browserify, using runSequence, but I didn't managed to make it work. Without any change, the build process seems to work, but I guess sometimes we can miss some changes made to the models since the last compilation.
Here's a way of doing it in a different way : https://github.com/BrowserSync/recipes/tree/master/recipes/gulp.browserify
I created declaration(s) in "'Pogues", but no declaration appears in the generated questionnaire
'default' gulp task runs 'browserify', which calls 'del:dist'. When it is completed, css and img folders are gone.
When selecting a questionnaire, going back to the list and reselecting.
Do we just load a JSON file? are there some standard ways of doing this?
We have some of "my-file.js" and "MyFile.js". It will be clearer if we choose a one or the other form.
to generate the array of SOeS, can we manage a concept of "Display the label of a liste of codes" (type boolean)
The name of the sequence is displayed in the questionnaire generated instead of the label
For the rendering of the questionnaire, we have React components 'Component', 'Sequence' and 'Question' mapping the corresponding model classes. Component is a superclass of Sequence and Question.
When structuring the rendering as Sequence -> Component -> Sequence or Question (see commit 333b1e8), the rendering bugs when there are sequences of depth 2 (ie sequences that are nested in others).
We have messages like: 'Warning: Only functions of strings can be mounted as React components', often followed by 'TypeError: element.type is not a constructor', and the questionnaire is not rendered at all.
Changing the rendering structure to Sequence -> Sequence or Question (see commit cd38356) seems to solve the problem.
A simple suggestion : to have a logging lib, that can switch between a local/dev mode (that logs on the client via console
), and a remote/prod mode (that push asynchronously log statements to a remote API).
What do you think guys ?
Instruction type is not saved in Pogue
I think it could be time to think about managing global state in a consistent way and considering using a router solution.
The list of codes doesn't exist in the generated questionnaire. Perhaps a similar problem than issue #47 ?
Proposal to add value "Warning" in the enumaration "DeclarationTypeEnum"
Render all components and improve visual design
Create two questionnaires corresponding to the Pogues XML schema (LFS + crash test questionnaire), and make them available on the database server according to the Server API (issue #20).
Should allow to:
Minimum & maximum of a numeric response doesn't exist in the generated questionnaire
On the wiki
Firefox console shows messages like:
mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
See also http://stackoverflow.com/a/28693578 and links in answers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.