2013-09-05 06:15:37 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- 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/. -->
|
|
|
|
<!DOCTYPE html [
|
|
|
|
<!ENTITY % appMgrDTD SYSTEM "chrome://browser/locale/devtools/app-manager.dtd" >
|
|
|
|
%appMgrDTD;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf8"/>
|
|
|
|
<base href="chrome://browser/content/devtools/app-manager/"></base>
|
|
|
|
<title>&projects.title;</title>
|
|
|
|
<link rel="stylesheet" href="chrome://browser/skin/devtools/app-manager/projects.css" type="text/css"/>
|
2013-10-08 22:52:38 -07:00
|
|
|
<script type="application/javascript;version=1.8" src="utils.js"></script>
|
|
|
|
<script type="application/javascript;version=1.8" src="projects.js"></script>
|
|
|
|
<script type="application/javascript;version=1.8" src="template.js"></script>
|
|
|
|
<script type="application/javascript;version=1.8" src="manifest-editor.js"></script>
|
2013-09-05 06:15:37 -07:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="UI.onload()">
|
|
|
|
<aside id="sidebar">
|
|
|
|
<div id="project-list" template='{"type":"attribute","path":"projects.length","name":"projects-count"}'>
|
|
|
|
<div template-loop='{"arrayPath":"projects","childSelector":"#project-item-template"}'></div>
|
2013-09-12 15:54:00 -07:00
|
|
|
<div id="no-project">&projects.noProjects;</div>
|
2013-09-05 06:15:37 -07:00
|
|
|
</div>
|
2013-09-13 09:43:49 -07:00
|
|
|
<div id="new-packaged-project" onclick="UI.addPackaged()" title="&projects.addPackagedTooltip;">&projects.addPackaged;</div>
|
2013-09-05 06:15:37 -07:00
|
|
|
<div id="new-hosted-project">&projects.addHosted;
|
|
|
|
<form onsubmit="UI.addHosted(); return false;" id="new-hosted-project-wrapper">
|
2013-10-08 22:52:38 -07:00
|
|
|
<input value="" id="url-input" type="url" required="true" pattern="(https?|chrome)://.+" placeholder="&projects.hostedManifestPlaceHolder2;" size="50" />
|
2013-09-13 09:43:49 -07:00
|
|
|
<div onclick="UI.addHosted()" id="new-hosted-project-click" title="&projects.addHostedTooltip;"></div>
|
2013-09-05 06:15:37 -07:00
|
|
|
<input type="submit" hidden="true"></input>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<section id="lense"></section>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<template id="project-item-template">
|
|
|
|
<div class="project-item" template='{"type":"attribute","path":"location","name":"id"}' onclick="UI.selectProject(this.id)">
|
|
|
|
<div class="project-item-status" template='{"type":"attribute","path":"validationStatus","name":"status"}'></div>
|
|
|
|
<img class="project-item-icon" template='{"type":"attribute","path":"icon","name":"src"}' />
|
|
|
|
<div class="project-item-meta">
|
2013-09-17 22:40:00 -07:00
|
|
|
<div class="button-remove" onclick="UI.remove(this.dataset.location, event)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.removeAppFromList;"></div>
|
2013-10-08 22:52:38 -07:00
|
|
|
<strong template='{"type":"textContent","path":"manifest.name"}'></strong>
|
2013-09-05 06:15:37 -07:00
|
|
|
<span class="project-item-type" template='{"type":"textContent","path":"type"}'></span>
|
|
|
|
<p class="project-item-description" template='{"type":"textContent","path":"manifest.description"}'></p>
|
|
|
|
<div template='{"type":"attribute","path":"validationStatus","name":"status"}'>
|
|
|
|
<div class="project-item-errors"><span template='{"type":"textContent","path":"errorsCount"}'></span></div>
|
|
|
|
<div class="project-item-warnings"><span template='{"type":"textContent","path":"warningsCount"}'></span></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="lense-template">
|
|
|
|
<div>
|
|
|
|
<div class="project-details" template='{"type":"attribute","path":"validationStatus","name":"status"}'>
|
|
|
|
<div class="project-header">
|
|
|
|
<img class="project-icon" template='{"type":"attribute","path":"icon","name":"src"}'/>
|
2013-10-08 22:52:38 -07:00
|
|
|
<div class="project-metadata">
|
2013-09-05 06:15:37 -07:00
|
|
|
<div class="project-title">
|
2013-10-08 22:52:38 -07:00
|
|
|
<h1 template='{"type":"textContent","path":"manifest.name"}'></h1>
|
2013-09-05 06:15:37 -07:00
|
|
|
<div class="project-status" template='{"type":"attribute","path":"validationStatus","name":"status"}'>
|
2013-11-07 09:31:32 -08:00
|
|
|
<p class="project-validation valid">&projects.valid;</p>
|
|
|
|
<p class="project-validation warning">&projects.warning;</p>
|
|
|
|
<p class="project-validation error">&projects.error;</p>
|
2014-02-18 06:20:24 -08:00
|
|
|
</div>
|
|
|
|
<div class="project-status" template='{"type":"attribute","path":"type","name":"type"}'>
|
|
|
|
<p class="project-type hosted">&projects.hosted;</p>
|
|
|
|
<p class="project-type packaged">&projects.packaged;</p>
|
2013-09-05 06:15:37 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span template='{"type":"textContent","path":"manifest.developer.name"}'></span>
|
|
|
|
<p class="project-location" template='{"type":"textContent","path":"location"}' onclick="UI.reveal(this.textContent)"></p>
|
|
|
|
<p class="project-description" template='{"type":"textContent","path":"manifest.description"}'></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-11-13 11:34:29 -08:00
|
|
|
<div class="project-buttons" template='{"type":"attribute","path":"type","name":"type"}'>
|
2013-09-13 06:36:00 -07:00
|
|
|
<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>
|
|
|
|
<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>
|
2013-09-05 06:15:37 -07:00
|
|
|
</div>
|
|
|
|
<div class="project-errors" template='{"type":"textContent","path":"errors"}'></div>
|
|
|
|
<div class="project-warnings" template='{"type":"textContent","path":"warnings"}'></div>
|
|
|
|
</div>
|
2013-11-13 11:34:29 -08:00
|
|
|
<div class="manifest-editor">
|
|
|
|
<div class="manifest-header" template='{"type":"attribute","path":"type","name":"type"}'>
|
|
|
|
<h2 class="editable" title="&projects.manifestEditorTooltip;">&projects.manifestEditor;</h2>
|
|
|
|
<h2 class="viewable" title="&projects.manifestViewerTooltip;">&projects.manifestViewer;</h2>
|
|
|
|
<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>
|
|
|
|
</div>
|
2013-10-08 22:52:38 -07:00
|
|
|
</div>
|
2013-09-05 06:15:37 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</html>
|