nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFIREG-13) Initial implementation for registry UI
Date Tue, 05 Sep 2017 20:03:00 GMT

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

ASF GitHub Bot commented on NIFIREG-13:
---------------------------------------

Github user scottyaslan commented on a diff in the pull request:

    https://github.com/apache/nifi-registry/pull/8#discussion_r137099164
  
    --- Diff: nifi-registry-web-ui/src/main/webapp/nf-registry-bootstrap.js ---
    @@ -0,0 +1,57 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +require('core-js');
    +require('zone.js');
    +require('hammerjs');
    +require('switchMap');
    +var $ = require('jquery');
    +var NfRegistryModule = require('nifi-registry/nf-registry.module.js');
    +var ngPlatformBrowserDynamic = require('@angular/platform-browser-dynamic');
    +var ngCore = require('@angular/core');
    +
    +// Comment out this line when developing to assert for unidirectional data flow
    +ngCore.enableProdMode();
    +
    +// Get the locale id from the global
    +var locale = navigator.language;
    +
    +var providers = [];
    +
    +// No locale or U.S. English: no translation providers so go ahead and bootstrap the
app
    +if (!locale || locale === 'en-US') {
    +    ngPlatformBrowserDynamic.platformBrowserDynamic().bootstrapModule(NfRegistryModule,
{providers: providers});
    +} else { //load the translation providers and bootstrap the module
    +    var translationFile = './nifi-registry/messages.' + locale + '.xlf';
    +
    +    $.ajax({
    +        url: translationFile,
    +        dataType: "text",
    +        success: function (translations) {
    --- End diff --
    
    ok


> Initial implementation for registry UI
> --------------------------------------
>
>                 Key: NIFIREG-13
>                 URL: https://issues.apache.org/jira/browse/NIFIREG-13
>             Project: NiFi Registry
>          Issue Type: Sub-task
>            Reporter: Scott Aslan
>            Assignee: Scott Aslan
>
> This ticket is to implement a production ready build for an SPA that will eventually
call the REST layer to request data. The SPA will:
> # Provide reuseable UI/UX components in the form (Fluid Design System NgModule)
> # Provide deep linking capabilities
> # Provide internationalization capability
> # Provide karma/Jasmine unit test harness (unit tests will be disabled be default)
> # Provide Protractor e2e test harness
> # Be theme-able (leveraging SASS and compiled at build time)
> # Use mock data instead of making actual REST calls
> # Be a rough draft of the UI/UX mocks provided in the parent ticket for this sub task.



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

Mime
View raw message