SU-SWS/react_paragraphs

View on GitHub
js/public/index.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <meta name="theme-color" content="#000000"/>
  <!--
    manifest.json provides metadata used when your web app is installed on a
    user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
  -->
  <!--
    Notice the use of %PUBLIC_URL% in the tags above.
    It will be replaced with the URL of the `public` folder during the build.
    Only files inside the `public` folder can be referenced from the HTML.

    Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
    work correctly both with client-side routing and a non-root public URL.
    Learn how to configure a non-root public URL by running `npm run build`.
  -->
  <title>React App</title>
  <link rel="stylesheet" href="https://amptesting.sites.stanford.edu/core/misc/dropbutton/dropbutton.css"/>
  <link rel="stylesheet"
        href="https://amptesting.sites.stanford.edu/core/themes/stable/css/core/dropbutton/dropbutton.css?q6wkff"/>
  <link rel="stylesheet"
        href="https://amptesting.sites.stanford.edu/core/themes/classy/css/components/dropbutton.css?q6wkff"/>
  <link rel="stylesheet"
        href="https://amptesting.sites.stanford.edu/core/themes/seven/css/components/dropbutton.component.css"/>
</head>
<body>

<style>
  .visually-hidden {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    word-wrap: normal;
  }

  .button {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 4px 1.5em;
    cursor: pointer;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #a6a6a6;
    border-radius: 20em;
    background-color: #f2f1eb;
    background-image: -webkit-linear-gradient(top, #f6f6f3, #e7e7df);
    background-image: linear-gradient(to bottom, #f6f6f3, #e7e7df);
    text-shadow: 0 1px hsla(0, 0%, 100%, 0.6);
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-font-smoothing: antialiased;
  }

  .button--primary {
    color: #fff;
    border-color: #1e5c90;
    background-color: #0071b8;
    background-image: -webkit-linear-gradient(top, #007bc6, #0071b8);
    background-image: linear-gradient(to bottom, #007bc6, #0071b8);
    text-shadow: 0 1px hsla(0, 0%, 0%, 0.5);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
  }

</style>

<script type="application/json" data-drupal-selector="drupal-settings-json">
  {
    "path": {
      "baseUrl": "\/"
    },
    "ajaxTrustedUrl": {
      "": true
    },
    "reactParagraphs": [
      {
        "fieldId": "root",
        "inputId": "root-input",
        "rowBundle": "node_stanford_page_row",
        "tools": [
          {
            "id": "stanford_card",
            "label": "Card",
            "description": "",
            "icon": null,
            "minWidth": 1
          }
        ],
        "items": [
          {
            "row": {
              "target_id": "13",
              "entity": {
                "type": [
                  {
                    "target_id": "node_stanford_page_row"
                  }
                ]
              }
            },
            "rowItems": [
              {
                "target_id": "15",
                "entity": {
                  "type": [
                    {
                      "target_id": "stanford_wysiwyg"
                    }
                  ]
                },
                "settings": {
                  "width": 12,
                  "admin_title": "This is the admin title"
                }
              }
            ]
          }
        ],
        "itemsPerRow": 4,
        "resizableItems": false
      }
    ]
  }


</script>

<script
  src="https://amptesting.sites.stanford.edu/core/assets/vendor/jquery/jquery.min.js?v=3.4.1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/assets/vendor/underscore/underscore-min.js?v=1.8.3"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/assets/vendor/jquery-once/jquery.once.min.js?v=2.2.0"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/assets/vendor/backbone/backbone-min.js?v=1.2.3"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/drupalSettingsLoader.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/drupal.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/drupal.init.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/ajax.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/debounce.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/displace.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/assets/vendor/sortable/Sortable.min.js?v=1.10.0"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/modules/media_library/js/media_library.widget.js?v=8.8.0-beta1"></script>
<script
  src="https://amptesting.sites.stanford.edu/core/misc/dropbutton/dropbutton.js?v=8.8.0-beta1"></script>

<noscript>You need to enable JavaScript to run this app.</noscript>
<div>
  <form>
    <div id="root"></div>
    <input id="root-input" type="hidden" name="field[value]" value="">

    <input type="submit" value="Save"/>
  </form>
</div>
<!--
  This HTML file is a template.
  If you open it directly in the browser, you will see an empty page.

  You can add webfonts, meta tags, or analytics to this file.
  The build step will place the bundled scripts into the <body> tag.

  To begin the development, run `npm start` or `yarn start`.
  To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>