trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dewr...@apache.org
Subject [2/3] incubator-trafficcontrol git commit: implements 1 way binding where possible to avoid creating uneccessary data watchers
Date Mon, 01 May 2017 16:40:54 GMT
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
index 5feaa3d..1b35d5a 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/statuses/table.statuses.tpl.html
@@ -38,9 +38,9 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-click="editStatus(status.id)" ng-repeat="status in statuses">
-                <td>{{status.name}}</td>
-                <td>{{status.description}}</td>
+            <tr ng-click="editStatus(status.id)" ng-repeat="status in ::statuses">
+                <td>{{::status.name}}</td>
+                <td>{{::status.description}}</td>
             </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
index 40c19bc..20e4c5f 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/tenants/table.tenants.tpl.html
@@ -40,11 +40,11 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-click="editTenant(tenant.id)" ng-repeat="tenant in tenants">
-                <td>{{tenant.id}}</td>
-                <td>{{tenant.name}}</td>
-                <td>{{tenant.active}}</td>
-                <td>{{tenant.parentId}}</td>
+            <tr ng-click="editTenant(tenant.id)" ng-repeat="tenant in ::tenants">
+                <td>{{::tenant.id}}</td>
+                <td>{{::tenant.name}}</td>
+                <td>{{::tenant.active}}</td>
+                <td>{{::tenant.parentId}}</td>
             </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
index c38eefb..54a2663 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/typeCacheGroups/table.typeCacheGroups.tpl.html
@@ -21,7 +21,7 @@ under the License.
     <div class="x_title">
         <ol class="breadcrumb pull-left">
             <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
-            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{type.name}}</a></li>
+            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
             <li class="active">Cache Groups</li>
         </ol>
         <div class="pull-right">
@@ -42,12 +42,12 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-click="editCacheGroup(cacheGroup.id)" ng-repeat="cacheGroup in cacheGroups">
-                <td>{{cacheGroup.name}}</td>
-                <td>{{cacheGroup.shortName}}</td>
-                <td>{{cacheGroup.typeName}}</td>
-                <td>{{cacheGroup.latitude}}</td>
-                <td>{{cacheGroup.longitude}}</td>
+            <tr ng-click="editCacheGroup(cacheGroup.id)" ng-repeat="cacheGroup in ::cacheGroups">
+                <td>{{::cacheGroup.name}}</td>
+                <td>{{::cacheGroup.shortName}}</td>
+                <td>{{::cacheGroup.typeName}}</td>
+                <td>{{::cacheGroup.latitude}}</td>
+                <td>{{::cacheGroup.longitude}}</td>
             </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
index cac9df0..27a0844 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/typeDeliveryServices/table.typeDeliveryServices.tpl.html
@@ -21,7 +21,7 @@ under the License.
     <div class="x_title">
         <ol class="breadcrumb pull-left">
             <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
-            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{type.name}}</a></li>
+            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
             <li class="active">Delivery Services</li>
         </ol>
         <div class="pull-right">
@@ -51,21 +51,21 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-click="editDeliveryService(deliveryService.id)" ng-repeat="deliveryService
in deliveryServices">
-                <td>{{deliveryService.xmlId}}</td>
-                <td>{{deliveryService.orgServerFqdn}}</td>
-                <td>{{deliveryService.cdnName}}</td>
-                <td>{{deliveryService.profileName}}</td>
-                <td>{{deliveryService.ccrDnsTtl}}</td>
-                <td>{{deliveryService.active}}</td>
-                <td>{{deliveryService.type}}</td>
-                <td>{{deliveryService.dscp}}</td>
-                <td>{{deliveryService.signed}}</td>
-                <td>{{deliveryService.qstringIgnore}}</td>
-                <td>{{deliveryService.geoLimit}}</td>
-                <td>{{deliveryService.protocol}}</td>
-                <td>{{deliveryService.ipv6RoutingEnabled}}</td>
-                <td>{{deliveryService.rangeRequestHandling}}</td>
+            <tr ng-click="editDeliveryService(deliveryService.id)" ng-repeat="deliveryService
in ::deliveryServices">
+                <td>{{::deliveryService.xmlId}}</td>
+                <td>{{::deliveryService.orgServerFqdn}}</td>
+                <td>{{::deliveryService.cdnName}}</td>
+                <td>{{::deliveryService.profileName}}</td>
+                <td>{{::deliveryService.ccrDnsTtl}}</td>
+                <td>{{::deliveryService.active}}</td>
+                <td>{{::deliveryService.type}}</td>
+                <td>{{::deliveryService.dscp}}</td>
+                <td>{{::deliveryService.signed}}</td>
+                <td>{{::deliveryService.qstringIgnore}}</td>
+                <td>{{::deliveryService.geoLimit}}</td>
+                <td>{{::deliveryService.protocol}}</td>
+                <td>{{::deliveryService.ipv6RoutingEnabled}}</td>
+                <td>{{::deliveryService.rangeRequestHandling}}</td>
             </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
index b15c246..e097573 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/typeServers/table.typeServers.tpl.html
@@ -21,7 +21,7 @@ under the License.
     <div class="x_title">
         <ol class="breadcrumb pull-left">
             <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
-            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{type.name}}</a></li>
+            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
             <li class="active">Servers</li>
         </ol>
         <div class="pull-right">
@@ -50,26 +50,26 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-click="editServer(server.id)" ng-repeat="server in servers" ng-class="{'active':
server.updPending}">
+            <tr ng-click="editServer(server.id)" ng-repeat="server in ::servers" ng-class="::{'active':
server.updPending}">
                 <td class="update-column">
-                    <i class="fa fa-flag" ng-show="server.updPending"></i>
-                    <i class="fa fa-ban" ng-show="!server.updPending"></i>
+                    <i class="fa fa-flag" ng-if="server.updPending"></i>
+                    <i class="fa fa-ban" ng-if="!server.updPending"></i>
                 </td>
-                <td>{{server.hostName}}</td>
-                <td>{{server.domainName}}</td>
-                <td>{{server.cdnName}}</td>
-                <td>{{server.cachegroup}}</td>
-                <td>{{server.type}}</td>
-                <td>{{server.physLocation}}</td>
-                <td>{{server.ipAddress}}</td>
-                <td>{{server.ip6Address}}</td>
+                <td>{{::server.hostName}}</td>
+                <td>{{::server.domainName}}</td>
+                <td>{{::server.cdnName}}</td>
+                <td>{{::server.cachegroup}}</td>
+                <td>{{::server.type}}</td>
+                <td>{{::server.physLocation}}</td>
+                <td>{{::server.ipAddress}}</td>
+                <td>{{::server.ip6Address}}</td>
                 <td>
-                    <span ng-show="!isOffline(server.status)">{{server.status}}</span>
-                    <span ng-show="isOffline(server.status)" uib-popover="{{offlineReason(server)}}"
popover-title="Offline Reason" popover-trigger="mouseenter" popover-placement="bottom" popover-append-to-body="true">{{server.status}}</span>
+                    <span ng-if="!isOffline(server.status)">{{::server.status}}</span>
+                    <span ng-if="isOffline(server.status)" uib-popover="{{::offlineReason(server)}}"
popover-title="Offline Reason" popover-trigger="mouseenter" popover-placement="bottom" popover-append-to-body="true">{{::server.status}}</span>
                 </td>
-                <td>{{server.profile}}</td>
-                <td>{{server.iloIpAddress}}</td>
-                <td>{{server.iloIpGateway}}</td>
+                <td>{{::server.profile}}</td>
+                <td>{{::server.iloIpAddress}}</td>
+                <td>{{::server.iloIpGateway}}</td>
             </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
index f948283..38c322a 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/typeStaticDnsEntries/table.typeStaticDnsEntries.tpl.html
@@ -21,7 +21,7 @@ under the License.
     <div class="x_title">
         <ol class="breadcrumb pull-left">
             <li><a ng-click="navigateToPath('/admin/types')">Types</a></li>
-            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{type.name}}</a></li>
+            <li><a ng-click="navigateToPath('/admin/types/' + type.id)">{{::type.name}}</a></li>
             <li class="active">Static DNS Entries</li>
         </ol>
         <div class="pull-right">
@@ -43,13 +43,13 @@ under the License.
                 </tr>
             </thead>
             <tbody>
-                <tr ng-repeat="staticDnsEntry in staticDnsEntries">
-                    <td>{{staticDnsEntry.host}}</td>
-                    <td>{{staticDnsEntry.address}}</td>
-                    <td>{{staticDnsEntry.type}}</td>
-                    <td>{{staticDnsEntry.ttl}}</td>
-                    <td>{{staticDnsEntry.deliveryservice}}</td>
-                    <td>{{staticDnsEntry.cachegroup}}</td>
+                <tr ng-repeat="staticDnsEntry in ::staticDnsEntries">
+                    <td>{{::staticDnsEntry.host}}</td>
+                    <td>{{::staticDnsEntry.address}}</td>
+                    <td>{{::staticDnsEntry.type}}</td>
+                    <td>{{::staticDnsEntry.ttl}}</td>
+                    <td>{{::staticDnsEntry.deliveryservice}}</td>
+                    <td>{{::staticDnsEntry.cachegroup}}</td>
                 </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
index 6d9f3da..63bc37b 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/types/table.types.tpl.html
@@ -39,10 +39,10 @@ under the License.
                 </tr>
             </thead>
             <tbody>
-                <tr ng-click="editType(type.id)" ng-repeat="type in types">
-                    <td>{{type.name}}</td>
-                    <td>{{type.useInTable}}</td>
-                    <td>{{type.description}}</td>
+                <tr ng-click="editType(type.id)" ng-repeat="type in ::types">
+                    <td>{{::type.name}}</td>
+                    <td>{{::type.useInTable}}</td>
+                    <td>{{::type.description}}</td>
                 </tr>
             </tbody>
         </table>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
index f265854..a0de18e 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/userDeliveryServices/table.userDeliveryServices.tpl.html
@@ -21,7 +21,7 @@ under the License.
     <div class="x_title">
         <ol class="breadcrumb pull-left">
             <li><a ng-click="navigateToPath('/admin/users')">Users</a></li>
-            <li><a ng-click="navigateToPath('/admin/users/' + user.id)">{{user.username}}</a></li>
+            <li><a ng-click="navigateToPath('/admin/users/' + user.id)">{{::user.username}}</a></li>
             <li class="active">Delivery Services</li>
         </ol>
         <div class="pull-right">
@@ -42,10 +42,10 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-repeat="deliveryService in userDeliveryServices">
-                <td>{{deliveryService.xmlId}}</td>
-                <td>{{deliveryService.orgServerFqdn}}</td>
-                <td>{{deliveryService.cdnName}}</td>
+            <tr ng-repeat="deliveryService in ::userDeliveryServices">
+                <td>{{::deliveryService.xmlId}}</td>
+                <td>{{::deliveryService.orgServerFqdn}}</td>
+                <td>{{::deliveryService.cdnName}}</td>
                 <td><button type="button" class="btn btn-link" title="Remove Delivery
Service" ng-click="removeDeliveryService()"><i class="fa fa-trash-o"></i></button></td>
             </tr>
             </tbody>

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1c7b107c/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
----------------------------------------------------------------------
diff --git a/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
b/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
index 55a19f9..928b4aa 100644
--- a/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
+++ b/traffic_ops/experimental/ui/app/src/common/modules/table/users/table.users.tpl.html
@@ -40,11 +40,11 @@ under the License.
             </tr>
             </thead>
             <tbody>
-            <tr ng-click="editUser(user.id)" ng-repeat="user in users">
-                <td>{{user.fullName}}</td>
-                <td>{{user.username}}</td>
-                <td>{{user.email}}</td>
-                <td>{{user.rolename}}</td>
+            <tr ng-click="editUser(user.id)" ng-repeat="user in ::users">
+                <td>{{::user.fullName}}</td>
+                <td>{{::user.username}}</td>
+                <td>{{::user.email}}</td>
+                <td>{{::user.rolename}}</td>
             </tr>
             </tbody>
         </table>


Mime
View raw message