browser/devtools/app-manager/content/projects.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/app-manager/content/projects.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,97 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +     - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +     - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +<!DOCTYPE html [
     1.9 +  <!ENTITY % appMgrDTD SYSTEM "chrome://browser/locale/devtools/app-manager.dtd" >
    1.10 +  %appMgrDTD;
    1.11 +]>
    1.12 +
    1.13 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.14 +
    1.15 +  <head>
    1.16 +    <meta charset="utf8"/>
    1.17 +    <base href="chrome://browser/content/devtools/app-manager/"></base>
    1.18 +    <title>&projects.title;</title>
    1.19 +    <link rel="stylesheet" href="chrome://browser/skin/devtools/app-manager/projects.css" type="text/css"/>
    1.20 +    <script type="application/javascript;version=1.8" src="utils.js"></script>
    1.21 +    <script type="application/javascript;version=1.8" src="projects.js"></script>
    1.22 +    <script type="application/javascript;version=1.8" src="template.js"></script>
    1.23 +    <script type="application/javascript;version=1.8" src="manifest-editor.js"></script>
    1.24 +  </head>
    1.25 +
    1.26 +  <body onload="UI.onload()">
    1.27 +    <aside id="sidebar">
    1.28 +      <div id="project-list" template='{"type":"attribute","path":"projects.length","name":"projects-count"}'>
    1.29 +        <div template-loop='{"arrayPath":"projects","childSelector":"#project-item-template"}'></div>
    1.30 +        <div id="no-project">&projects.noProjects;</div>
    1.31 +      </div>
    1.32 +      <div id="new-packaged-project" onclick="UI.addPackaged()" title="&projects.addPackagedTooltip;">&projects.addPackaged;</div>
    1.33 +      <div id="new-hosted-project">&projects.addHosted;
    1.34 +        <form onsubmit="UI.addHosted(); return false;" id="new-hosted-project-wrapper">
    1.35 +          <input value="" id="url-input" type="url" required="true" pattern="(https?|chrome)://.+" placeholder="&projects.hostedManifestPlaceHolder2;" size="50" />
    1.36 +          <div onclick="UI.addHosted()" id="new-hosted-project-click" title="&projects.addHostedTooltip;"></div>
    1.37 +          <input type="submit" hidden="true"></input>
    1.38 +        </form>
    1.39 +      </div>
    1.40 +    </aside>
    1.41 +    <section id="lense"></section>
    1.42 +  </body>
    1.43 +
    1.44 +  <template id="project-item-template">
    1.45 +  <div class="project-item" template='{"type":"attribute","path":"location","name":"id"}' onclick="UI.selectProject(this.id)">
    1.46 +    <div class="project-item-status" template='{"type":"attribute","path":"validationStatus","name":"status"}'></div>
    1.47 +    <img class="project-item-icon" template='{"type":"attribute","path":"icon","name":"src"}' />
    1.48 +    <div class="project-item-meta">
    1.49 +      <div class="button-remove" onclick="UI.remove(this.dataset.location, event)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.removeAppFromList;"></div>
    1.50 +      <strong template='{"type":"textContent","path":"manifest.name"}'></strong>
    1.51 +      <span class="project-item-type" template='{"type":"textContent","path":"type"}'></span>
    1.52 +      <p class="project-item-description" template='{"type":"textContent","path":"manifest.description"}'></p>
    1.53 +      <div template='{"type":"attribute","path":"validationStatus","name":"status"}'>
    1.54 +        <div class="project-item-errors"><span template='{"type":"textContent","path":"errorsCount"}'></span></div>
    1.55 +        <div class="project-item-warnings"><span template='{"type":"textContent","path":"warningsCount"}'></span></div>
    1.56 +      </div>
    1.57 +    </div>
    1.58 +  </div>
    1.59 +  </template>
    1.60 +
    1.61 +  <template id="lense-template">
    1.62 +  <div>
    1.63 +    <div class="project-details" template='{"type":"attribute","path":"validationStatus","name":"status"}'>
    1.64 +      <div class="project-header">
    1.65 +        <img class="project-icon" template='{"type":"attribute","path":"icon","name":"src"}'/>
    1.66 +        <div class="project-metadata">
    1.67 +          <div class="project-title">
    1.68 +            <h1 template='{"type":"textContent","path":"manifest.name"}'></h1>
    1.69 +            <div class="project-status" template='{"type":"attribute","path":"validationStatus","name":"status"}'>
    1.70 +              <p class="project-validation valid">&projects.valid;</p>
    1.71 +              <p class="project-validation warning">&projects.warning;</p>
    1.72 +              <p class="project-validation error">&projects.error;</p>
    1.73 +            </div>
    1.74 +            <div class="project-status" template='{"type":"attribute","path":"type","name":"type"}'>
    1.75 +            	<p class="project-type hosted">&projects.hosted;</p>
    1.76 +            	<p class="project-type packaged">&projects.packaged;</p>
    1.77 +            </div>
    1.78 +          </div>
    1.79 +          <span template='{"type":"textContent","path":"manifest.developer.name"}'></span>
    1.80 +          <p class="project-location" template='{"type":"textContent","path":"location"}' onclick="UI.reveal(this.textContent)"></p>
    1.81 +          <p class="project-description" template='{"type":"textContent","path":"manifest.description"}'></p>
    1.82 +        </div>
    1.83 +      </div>
    1.84 +      <div class="project-buttons" template='{"type":"attribute","path":"type","name":"type"}'>
    1.85 +        <button class="project-button-update" onclick="UI.update(this, this.dataset.location)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.updateAppTooltip;">&projects.updateApp;</button>
    1.86 +        <button class="device-action project-button-debug" onclick="UI.debug(this, this.dataset.location)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.debugAppTooltip;">&projects.debugApp;</button>
    1.87 +      </div>
    1.88 +      <div class="project-errors" template='{"type":"textContent","path":"errors"}'></div>
    1.89 +      <div class="project-warnings" template='{"type":"textContent","path":"warnings"}'></div>
    1.90 +    </div>
    1.91 +    <div class="manifest-editor">
    1.92 +      <div class="manifest-header" template='{"type":"attribute","path":"type","name":"type"}'>
    1.93 +        <h2 class="editable" title="&projects.manifestEditorTooltip;">&projects.manifestEditor;</h2>
    1.94 +        <h2 class="viewable" title="&projects.manifestViewerTooltip;">&projects.manifestViewer;</h2>
    1.95 +        <button class="editable manifest-button-save" onclick="UI.saveManifest(this, this.dataset.location)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.saveManifestTooltip;">&projects.saveManifest;</button>
    1.96 +      </div>
    1.97 +    </div>
    1.98 +  </div>
    1.99 +  </template>
   1.100 +</html>

mercurial