Commit 80bc8faa authored by Yas Naoi's avatar Yas Naoi Committed by Yas Naoi
Browse files

Issue #3094027 by yas: Comply with Drupal coding standard (9)

parent a0eabef7
Loading
Loading
Loading
Loading
+2 −1
Changes for README.md: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -112,7 +112,8 @@ Launching Instance
Permissions
===========
- Configure permissions per your requirements.
  - [The detail about permissions is here.](https://www.drupal.org/docs/8/modules/cloud/configuration)
  - [The detail about permissions is here.](
     https://www.drupal.org/docs/8/modules/cloud/configuration)

Directory Structure
===================
−2
Changes for cloud.info.yml: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -5,8 +5,6 @@ package: Cloud
dependencies:
  - drupal:views
core : 8.x

scripts:
  - js/cloud.js

configure: cloud.settings
−1
Changes for cloud.permissions.yml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -112,4 +112,3 @@ launch cloud server template:
administer cloud:
  title: 'Administer Cloud settings'
  description: 'Perform administration tasks for Cloud.'
+8 −8
Changes for js/cloud_config_location.js: 8 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@
  svg.style('width', '100%')
    .style('height', 'auto')
    .style('max-width', '750px')
    .attr("viewBox", "0 0 " + width + " " + height )
    .attr("preserveAspectRatio", "xMinYMin");
    .attr('viewBox', '0 0 ' + width + ' ' + height)
    .attr('preserveAspectRatio', 'xMinYMin');

  let g_pointer = svg.append('g')
    .attr('id', 'pointer')
@@ -24,7 +24,7 @@

  let projection = d3.geoMercator()
    .scale(width / 2 / Math.PI)
    .translate([width / 2, height * 3 / 5])
    .translate([width / 2, height * 3 / 5]);

  let path = d3.geoPath()
    .projection(projection);
@@ -61,7 +61,7 @@
    let parent = this.parentNode;
    let node = d3.select(this).node();
    let children = $(parent).children();
    if (children[children.length - 1] != node) {
    if (children[children.length - 1] !== node) {
      parent.insertBefore(this, null);
    }
    let clientRect = this.getBoundingClientRect();
@@ -76,8 +76,8 @@
    tooltip.html(items.join('</br>') + '<br/>[' + d.City + ', ' + d.Country + ']')
      .style('text-align', 'center')
      .style('opacity', 1)
      .style("left", (x - 20) + "px")
      .style("top", (y + 25) + "px");
      .style('left', (x - 20) + 'px')
      .style('top', (y + 25) + 'px');
  };

  let mouseleave = function (d) {
@@ -91,12 +91,12 @@
      .attr('class', 'map');
    let g = svg.append('g');
    d3.json(json_url).then(function (data) {
      g.selectAll("a")
      g.selectAll('a')
        .data(data)
        .enter()
        .append('a')
        .attr('href', function (d) {
          if (d.Items.length == 1) {
          if (d.Items.length === 1) {
            return d.Items[0].Url;
          }
        })
−1
Changes for modules/cloud_service_providers/aws_cloud/aws_cloud.module: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -132,7 +132,6 @@ function aws_cloud_image_allowed_values_function(FieldStorageConfig $definition,
  $allowed_values = [];

  if ($entity->bundle() == 'aws_cloud' || $entity->bundle() == 'aws_ec2') {
    $ec2_service = \Drupal::service('aws_cloud.ec2');
    if ($entity->isNew() && $entity->bundle() == 'aws_cloud') {
      $route = \Drupal::routeMatch();
      $cloud_context = $route->getParameter('cloud_context');
Loading