/** @jsx React.DOM */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* jshint newcap:false */ /* global loop:true, React */ (function() { "use strict"; // 1. Desktop components // 1.1 Panel var PanelView = loop.panel.PanelView; // 1.2. Conversation Window var IncomingCallView = loop.conversation.IncomingCallView; // 2. Standalone webapp var CallUrlExpiredView = loop.webapp.CallUrlExpiredView; var StartConversationView = loop.webapp.StartConversationView; // 3. Shared components var ConversationToolbar = loop.shared.views.ConversationToolbar; var ConversationView = loop.shared.views.ConversationView; var FeedbackView = loop.shared.views.FeedbackView; // Local helpers function returnTrue() { return true; } function returnFalse() { return false; } // Feedback API client configured to send data to the stage input server, // which is available at https://input.allizom.org var stageFeedbackApiClient = new loop.FeedbackAPIClient( "https://input.allizom.org/api/v1/feedback", { product: "Loop" } ); var mockClient = { requestCallUrl: function() {} }; var mockConversationModel = new loop.shared.models.ConversationModel({}, {sdk: {}}); var Example = React.createClass({ render: function() { var cx = React.addons.classSet; return (

{this.props.summary}

{this.props.children}
); } }); var Section = React.createClass({ render: function() { return (

{this.props.name}

{this.props.children}
); } }); var ShowCase = React.createClass({ render: function() { return (

Loop UI Components Showcase

{this.props.children}
); } }); var App = React.createClass({ render: function() { return (

Note: 332px wide.

Desktop Conversation Window

Standalone

Note: For the useable demo, you can access submitted data at  input.allizom.org.

); } }); window.addEventListener("DOMContentLoaded", function() { var body = document.body; body.className = loop.shared.utils.getTargetPlatform(); React.renderComponent(, document.body); }); })();