[ 
https://issues.apache.org/jira/browse/NIFI-4400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251846#comment-16251846
 ] 

ASF GitHub Bot commented on NIFI-4400:
--------------------------------------

Github user scottyaslan commented on the issue:

    https://github.com/apache/nifi/pull/2269
  
    @yuri1969 you are welcome.
    
    I agree moving to Angular 2+ right now is probably out of scope for this 
PR. I just wanted to get the discussion moving forward about how we can offer a 
consistent quality UX across the nifi suite of web apps.
    
    For the JS unit tests you should be able to use the nifi registry as an 
example. It uses npm and the frontend-maven-plugin to run the karma.conf.js 
(https://github.com/apache/nifi-registry/blob/master/nifi-registry-web-ui/pom.xml#L442
 and also 
https://github.com/apache/nifi-registry/blob/master/nifi-registry-web-ui/src/main/frontend/package.json#L7).
    
    As for optimizing/minifying/bundling the JS/CSS/HTML there are a few 
different ways you could go about it. The nifi web site and the nifi registry 
both use grunt so there are some options there. The nifi registry uses grunt 
along with SystemJS to bundle and minify the client code 
(https://github.com/apache/nifi-registry/blob/master/nifi-registry-web-ui/pom.xml#L344).
 Nifi itself, however, uses maven and the YUI compressor to produce a client 
bundle 
(https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/pom.xml#L418).
 You will most likely want to follow the way nifi does it.


> Advanced UI with code editor for scripted processors
> ----------------------------------------------------
>
>                 Key: NIFI-4400
>                 URL: https://issues.apache.org/jira/browse/NIFI-4400
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core UI, Extensions
>            Reporter: Pierre Villard
>            Assignee: Yuri
>
> For the scripted processors it would nice to add an advanced UI with a "code 
> editor mode" that would provide some very useful features when typing code:
> - indentation
> - code highlighting
> - do not close the window when hitting enter
> etc
> The use of codemirror.js (as already done for EL auto-completion) sounds like 
> a good option.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to