Giter Site home page Giter Site logo

pogues's People

Contributors

a-cordier avatar alicela avatar bulotf avatar bwerquin avatar ddotta avatar dependabot[bot] avatar emmanueldemey avatar franckco avatar jalelmahjoubi avatar javierlinan avatar jbplayground avatar laurentc35 avatar loichenninger avatar mickaelmenet avatar n0n4m3x41 avatar nathandm avatar nicolaval avatar orogel avatar qlevaslot avatar qruhier avatar romaintailhurat avatar thomaspo avatar

Stargazers

 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

pogues's Issues

Jetty - CORS - Response headers

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).

Implement SequenceModel.append(child, depth)

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.

Design edit mode of Sequence

Should allow to:

  • Modify sequence name
  • delete children sequences or questions
  • add, modify or delete declarations and controls

Define server API

First proposal:

  • http://[authority]/pogues/questionnaires
    • GET questionnaire list
    • PUT questionnaire list
    • POST create new questionnaire (returns questionnaire URI with created id)
  • http://[authority]/pogues/questionnaire/{id}
    • GET questionnaire
    • PUT questionnaire

Syncrhonisation issue in Gulp with babel and browserify

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

Outlook enhancement

  • refactor rendering
  • drag and drop
  • add menu (including search)
  • synchronisation

Fix default build

'default' gulp task runs 'browserify', which calls 'del:dist'. When it is completed, css and img folders are gone.

File naming convention

We have some of "my-file.js" and "MyFile.js". It will be clearer if we choose a one or the other form.

Problem with 'Component' component

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.

Wouldn't it be cool to have remote logging ?

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 ?

Manage app state

I think it could be time to think about managing global state in a consistent way and considering using a router solution.

Create server test data

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).

Design edit mode of Question

Should allow to:

  • change question name
  • change response characteristics
  • add, modify or delete declarations and controls (common with #23)

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.