Adds Red Hat copyright notice

This commit is contained in:
Ben Thomasson 2017-11-14 09:42:42 -05:00
parent 2a8ced5a5d
commit 2713ec2dd5
No known key found for this signature in database
GPG Key ID: 5818EF4CC895D5F5
106 changed files with 108 additions and 1 deletions

View File

@ -0,0 +1,2 @@
# Copyright (c) 2017 Red Hat, Inc

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.contrib import admin
from awx.network_ui.models import Device

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
# In consumers.py
from channels import Group, Channel
from channels.sessions import channel_session

View File

@ -0,0 +1,2 @@
# Copyright (c) 2017 Red Hat, Inc

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.core.management.base import BaseCommand
from awx.network_ui.models import Topology, Device, Link, Interface

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.core.management.base import BaseCommand
from awx.network_ui.models import Topology, Device, Link

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.core.management.base import BaseCommand
from awx.network_ui.serializers import yaml_serialize_topology

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.core.management.base import BaseCommand

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.core.management.base import BaseCommand
from websocket import create_connection

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.core.management.base import BaseCommand
import unittest
from websocket import create_connection

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from collections import namedtuple

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from django.db import models

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from channels.routing import route
from awx.network_ui.consumers import ws_connect, ws_message, ws_disconnect, console_printer, persistence, discovery
from awx.network_ui.consumers import ansible_connect, ansible_message, ansible_disconnect

View File

@ -1,3 +1,4 @@
# Copyright (c) 2017 Red Hat, Inc
from awx.network_ui.models import Topology, Device, Link, Interface, Group, GroupDevice, Process, Stream
from django.db.models import Q

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function button () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/button.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function configuration () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/configuration.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function cursor () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/cursor.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function debug () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/debug.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function defaultd () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/default.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function deviceDetail () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/device_detail.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function FSMController (scope, initial_state, next_controller) {
this.scope = scope;
this.state = initial_state;

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function group () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/group.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function host () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/host.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var messages = require('./messages.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function inventoryToolboxClipPath () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/inventory_toolbox_clip_path.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function inventoryToolbox () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/inventory_toolbox.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function layer () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/layer.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function link () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/link.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var networkUI = require('./network.ui.app.js');
var networkWidgets = require('./network.widgets.app.js');
var tablesUI = require('./tables.ui.app.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function map () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/map.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function serialize(message) {

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var move = require('./move.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var fsm = require('./fsm.js');
var button = require('./button.js');
var util = require('./util.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
//console.log = function () { };
var angular = require('angular');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var angular = require('angular');
var fsm = require('./fsm.js');
var null_fsm = require('./null.fsm.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function awxNetworkUI () {
return { restrict: 'E', templateUrl: '/static/network_ui/widgets/network_ui.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
//console.log = function () { };
var angular = require('angular');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
// This is not production code. It is a development environment for UI widgets.
// Do not refactor this code with the production code in network.ui.controller.js
// This code is separate so that it can be broken without breaking the main UI code.

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function awxNetworkWidgets () {
return { restrict: 'E', templateUrl: '/static/network_ui/widgets/network_widgets.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function process () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/process.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function quadrants () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/quadrants.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function rack () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/rack.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function rackIcon () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/rack_icon.html' };
}

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function router () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/router.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function site () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/site.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function siteIcon () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/site_icon.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function statusLight () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/status_light.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function stencil () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/stencil.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function stream () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/stream.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var models = require('./models.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
@font-face {
font-family: 'Open Sans';

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function switchd () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/switch.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
//console.log = function () { };
var angular = require('angular');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var util = require('./util.js');
var messages = require('./messages.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function awxTablesUI () {
return { restrict: 'E', templateUrl: '/static/network_ui/widgets/tables_ui.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function taskStatus () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/task_status.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');
var messages = require('./messages.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
function touch () {
return { restrict: 'A', templateUrl: '/static/network_ui/widgets/touch.html' };

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var angular = require('angular');

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
Array.prototype.extend = function (other_array) {
/* you should include a test to check whether other_array really is an array */
var i = 0;

View File

@ -1,3 +1,4 @@
/* Copyright (c) 2017 Red Hat, Inc. */
var inherits = require('inherits');
var fsm = require('./fsm.js');

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Red Hat, Inc
"""
Usage:

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Red Hat, Inc
"""
Usage:

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<rect ng-attr-class="{{button.is_pressed ? 'NetworkUI__button--button-pressed' : button.mouse_over ? 'NetworkUI__button--button-hover' : 'NetworkUI__button'}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-attr-transform="translate({{item.x}}, {{item.y}}">
<path d="M100,100 h200 a20,20 0 0 1 20,20 v200 a20,20 0 0 1 -20,20 h-200 a20,20 0 0 1 -20,-20 v-200 a20,20 0 0 1 20,-20 z" fill="none" stroke="black" stroke-width="3" />
</g>

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-attr-transform="translate({{cursor.x}},{{cursor.y}})" ng-attr-class="{{cursor.hidden && 'NetworkUI--hidden' || ''}}" >
<line x1="-15" y1="0" x2="15" y2="0" class="NetworkUI__cursor"/>
<line x1="0" y1="-15" x2="0" y2="15" class="NetworkUI__cursor"/>

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-attr-class="{{debug.hidden && 'NetworkUI--hidden' || ''}}">

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="item.moving">

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-attr-transform="scale({{1/5}}) translate(-250,-250)">
<rect width=500

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="!hide_groups || item.type == 'site'">
<g ng-if="current_scale < 5">
<g ng-if="current_scale > 0.5 || item.type == 'site' || (item.type == 'rack' && current_scale > 0.1)" >

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="item.moving">

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="toolbox.enabled">
<rect class="NetworkUI__toolbox"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<rect ng-attr-x="{{toolbox.x}}"
ng-attr-y="{{toolbox.y}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<rect ng-attr-class="{{layer.is_pressed ? 'NetworkUI__layer--button-pressed' : layer.mouse_over ? 'NetworkUI__layer--button-hover' : 'NetworkUI__layer'}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<line ng-attr-x1="{{link.from_device.x}}"
ng-attr-y1="{{link.from_device.y}}"
ng-attr-x2="{{link.to_device !== null ? link.to_device.x : scaledX}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" viewBox="0 0 2752.766 1537.631" version="1.0" height="715" width="1410" id="svg1926" sodipodi:version="0.32" inkscape:version="0.48.4 r9939" sodipodi:docname="BlankMap-World8.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape">
<sodipodi:namedview inkscape:window-height="705" inkscape:window-width="1366" inkscape:pageshadow="2" inkscape:pageopacity="0.0" guidetolerance="10.0" gridtolerance="10.0" objecttolerance="10.0" borderopacity="1.0" bordercolor="#666666" pagecolor="#ffffff" id="base" inkscape:zoom="5.6568543" inkscape:cx="829.90777" inkscape:cy="530.87245" inkscape:window-x="-8" inkscape:window-y="-8" inkscape:current-layer="svg1926" width="1410px" height="625px" units="px" showgrid="false" inkscape:window-maximized="1"/>

Before

Width:  |  Height:  |  Size: 966 KiB

After

Width:  |  Height:  |  Size: 966 KiB

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<div ng-controller="NetworkUIController">
<svg id="frame" class="NetworkUI"
ng-attr-height="{{graph.height}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<div ng-controller="NetworkWidgetsController">
<svg id="frame" class="NetworkUI"
ng-attr-height="{{graph.height}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g class="NetworkUI__process" ng-attr-transform="translate(-50, -50)">
<path ng-attr-class="{{item.selected || item.remote_selected ? item.selected && item.remote_selected ? 'NetworkUI__switch--selected-conflict' : item.selected ? 'NetworkUI__switch--selected' : 'NetworkUI__switch--remote-selected' : 'NetworkUI--hidden'}}"
d="M0,0 h100 a10,10 0 0 1 10,10 v100 a10,10 0 0 1 -10,10 h-100 a10,10 0 0 1 -10,-10 v-100 a10,10 0 0 1 10,-10 z" />

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<line x1="-100000"
y1="0"
x2="100000"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="current_scale >= 0.1 && current_scale <= 0.5 && item.type == 'rack'" ng-attr-transform="translate({{item.width()/2}}, {{item.height()/2}})">
<g ng-attr-transform="scale({{1/0.5}})">

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="!debug.hidden">
<line ng-attr-x1="{{-50 - 10}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="current_scale <= 0.1 && item.type == 'site'" ng-attr-transform="translate({{item.width()/2}}, {{item.height()/2}})">
<g ng-attr-transform="scale({{1/(0.1)}})">

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="!debug.hidden">
<line ng-attr-x1="{{-50 - 10}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<g ng-if="item.working">
<path ng-attr-transform="translate({{-item.width}}, {{-item.height}}) rotate({{frame/3}})" class="NetworkUI__status-path" ng-attr-d="{{item.describeArc(0, 0, 10, 0, 270)}}"/>
</g>

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<rect ng-attr-class="{{stencil.is_pressed ? 'NetworkUI__stencil--button-pressed' : stencil.mouse_over ? 'NetworkUI__stencil--button-hover' : 'NetworkUI__stencil'}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<!-- Straight line -->
<g ng-if="!debug.hidden">
<line ng-attr-x1="{{stream.from_device.x}}"

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->

View File

@ -1,3 +1,4 @@
<!-- Copyright (c) 2017 Red Hat, Inc. -->
<div ng-controller="TablesUIController">
<ul class="nav nav-tabs">
<li ng-repeat="sheet in sheets" role="presentation" class="{{sheet === name ? 'active': ''}}"><a href ng-click="changeSheet(sheet)">{{sheet}}</a></li>

Some files were not shown because too many files have changed in this diff Show More