grim/port-authority

3c3c71634c15
flow: Merged '0.0.9' to ('default').
--- a/html/window.html Fri Mar 13 10:37:17 2015 -0500
+++ b/html/window.html Tue Mar 17 13:59:08 2015 -0500
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="en" data-ng-app="manifest">
+<html lang="en" data-ng-app="manifest" data-ng-csp>
<head>
<title>Port Authority</title>
<script src="/js/angular.min.js"></script>
--- a/js/app.js Fri Mar 13 10:37:17 2015 -0500
+++ b/js/app.js Tue Mar 17 13:59:08 2015 -0500
@@ -23,11 +23,24 @@
});
function ManifestController($scope, manifestREST) {
- $scope.debug = false;
+ $scope.storage = chrome.storage.sync;
+
+ var defaults = {
+ debug: false,
+ registry: "registry.hub.docker.com",
+ query: "docker"
+ };
+
+ $scope.storage.get(defaults, function(items) {
+ $scope.$apply(function() {
+ $scope.debug = items.debug;
+ $scope.registry = items.registry;
+ $scope.query = items.query;
+ });
+ });
+
$scope.refreshing = false;
$scope.refreshing_repo = false;
- $scope.registry = "registry.hub.docker.com";
- $scope.query = "node";
$scope.repos = null;
$scope.repo = null;
$scope.error = null;
@@ -53,6 +66,11 @@
$scope.registry = "http://" + $scope.registry;
}
+ $scope.storage.set({
+ registry: $scope.registry,
+ query: $scope.query
+ });
+
$scope.ga_tracker.sendEvent("refresh", "search param", "used", $scope.query !== "");
var timer_start = window.performance.now();
--- a/manifest.json Fri Mar 13 10:37:17 2015 -0500
+++ b/manifest.json Tue Mar 17 13:59:08 2015 -0500
@@ -1,6 +1,6 @@
{
"name": "Port Authority",
- "version": "0.0.8",
+ "version": "0.0.9",
"manifest_version": 2,
"description": "Chrome application for interacting with a Docker registry",
"icons": {