Permalink
Browse files

Fixing issue with module name...

Unable to continue until chrome allows launching browser_action from another extension is available if ever.
  • Loading branch information...
1 parent 6bb518a commit 81e90e94831e65b0b3f3a93a213975f9aac184d5 @btilford committed Aug 26, 2012
Showing with 89,259 additions and 0 deletions.
  1. +27 −0 app.js
  2. +42 −0 controllers/ListController.js
  3. +17 −0 css/app.css
  4. +121 −0 hack.js
  5. +95 −0 index.html
  6. +29 −0 jam/angularjs/README.md
  7. +14,327 −0 jam/angularjs/angular.js
  8. +20 −0 jam/angularjs/package.json
  9. +36 −0 jam/bootstrap/.jamignore
  10. +3 −0 jam/bootstrap/.travis.yml
  11. +176 −0 jam/bootstrap/LICENSE
  12. +94 −0 jam/bootstrap/Makefile
  13. +137 −0 jam/bootstrap/README.md
  14. +808 −0 jam/bootstrap/css/bootstrap-responsive.css
  15. +9 −0 jam/bootstrap/css/bootstrap-responsive.min.css
  16. +4,960 −0 jam/bootstrap/css/bootstrap.css
  17. +9 −0 jam/bootstrap/css/bootstrap.min.css
  18. +815 −0 jam/bootstrap/docs/assets/css/bootstrap-responsive.css
  19. +4,983 −0 jam/bootstrap/docs/assets/css/bootstrap.css
  20. +846 −0 jam/bootstrap/docs/assets/css/docs.css
  21. BIN jam/bootstrap/docs/assets/ico/apple-touch-icon-114-precomposed.png
  22. BIN jam/bootstrap/docs/assets/ico/apple-touch-icon-144-precomposed.png
  23. BIN jam/bootstrap/docs/assets/ico/apple-touch-icon-57-precomposed.png
  24. BIN jam/bootstrap/docs/assets/ico/apple-touch-icon-72-precomposed.png
  25. BIN jam/bootstrap/docs/assets/ico/favicon.ico
  26. BIN jam/bootstrap/docs/assets/img/bird.png
  27. BIN jam/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg
  28. BIN jam/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg
  29. BIN jam/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg
  30. BIN jam/bootstrap/docs/assets/img/browsers.png
  31. BIN jam/bootstrap/docs/assets/img/example-sites/fleetio.png
  32. BIN jam/bootstrap/docs/assets/img/example-sites/jshint.png
  33. BIN jam/bootstrap/docs/assets/img/example-sites/kippt.png
  34. BIN jam/bootstrap/docs/assets/img/example-sites/soundready.png
  35. BIN jam/bootstrap/docs/assets/img/examples/bootstrap-example-fluid.jpg
  36. BIN jam/bootstrap/docs/assets/img/examples/bootstrap-example-hero.jpg
  37. BIN jam/bootstrap/docs/assets/img/examples/bootstrap-example-starter.jpg
  38. BIN jam/bootstrap/docs/assets/img/github-16px.png
  39. BIN jam/bootstrap/docs/assets/img/glyphicons-halflings-white.png
  40. BIN jam/bootstrap/docs/assets/img/glyphicons-halflings.png
  41. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_009_magic.png
  42. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_042_group.png
  43. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_079_podium.png
  44. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_082_roundabout.png
  45. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png
  46. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_163_iphone.png
  47. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_214_resize_small.png
  48. BIN jam/bootstrap/docs/assets/img/glyphicons/glyphicons_266_book_open.png
  49. BIN jam/bootstrap/docs/assets/img/grid-18px-masked.png
  50. BIN jam/bootstrap/docs/assets/img/icon-css3.png
  51. BIN jam/bootstrap/docs/assets/img/icon-github.png
  52. BIN jam/bootstrap/docs/assets/img/icon-html5.png
  53. BIN jam/bootstrap/docs/assets/img/icon-twitter.png
  54. BIN jam/bootstrap/docs/assets/img/less-logo-large.png
  55. BIN jam/bootstrap/docs/assets/img/less-small.png
  56. BIN jam/bootstrap/docs/assets/img/responsive-illustrations.png
  57. +106 −0 jam/bootstrap/docs/assets/js/README.md
  58. +184 −0 jam/bootstrap/docs/assets/js/application.js
  59. +90 −0 jam/bootstrap/docs/assets/js/bootstrap-alert.js
  60. +96 −0 jam/bootstrap/docs/assets/js/bootstrap-button.js
  61. +169 −0 jam/bootstrap/docs/assets/js/bootstrap-carousel.js
  62. +157 −0 jam/bootstrap/docs/assets/js/bootstrap-collapse.js
  63. +100 −0 jam/bootstrap/docs/assets/js/bootstrap-dropdown.js
  64. +218 −0 jam/bootstrap/docs/assets/js/bootstrap-modal.js
  65. +98 −0 jam/bootstrap/docs/assets/js/bootstrap-popover.js
  66. +151 −0 jam/bootstrap/docs/assets/js/bootstrap-scrollspy.js
  67. +135 −0 jam/bootstrap/docs/assets/js/bootstrap-tab.js
  68. +275 −0 jam/bootstrap/docs/assets/js/bootstrap-tooltip.js
  69. +61 −0 jam/bootstrap/docs/assets/js/bootstrap-transition.js
  70. +285 −0 jam/bootstrap/docs/assets/js/bootstrap-typeahead.js
  71. +1,825 −0 jam/bootstrap/docs/assets/js/bootstrap.js
  72. +6 −0 jam/bootstrap/docs/assets/js/bootstrap.min.js
  73. +30 −0 jam/bootstrap/docs/assets/js/google-code-prettify/prettify.css
  74. +28 −0 jam/bootstrap/docs/assets/js/google-code-prettify/prettify.js
  75. +9,252 −0 jam/bootstrap/docs/assets/js/jquery.js
  76. +1,710 −0 jam/bootstrap/docs/base-css.html
  77. +44 −0 jam/bootstrap/docs/build/index.js
  78. +6 −0 jam/bootstrap/docs/build/package.json
  79. +1,931 −0 jam/bootstrap/docs/components.html
  80. +454 −0 jam/bootstrap/docs/download.html
  81. +147 −0 jam/bootstrap/docs/examples.html
  82. +162 −0 jam/bootstrap/docs/examples/fluid.html
  83. +109 −0 jam/bootstrap/docs/examples/hero.html
  84. +79 −0 jam/bootstrap/docs/examples/starter-template.html
  85. +259 −0 jam/bootstrap/docs/index.html
  86. +1,520 −0 jam/bootstrap/docs/javascript.html
  87. +1,060 −0 jam/bootstrap/docs/less.html
  88. +671 −0 jam/bootstrap/docs/scaffolding.html
  89. +146 −0 jam/bootstrap/docs/templates/layout.mustache
  90. +1,594 −0 jam/bootstrap/docs/templates/pages/base-css.mustache
  91. +1,815 −0 jam/bootstrap/docs/templates/pages/components.mustache
  92. +338 −0 jam/bootstrap/docs/templates/pages/download.mustache
  93. +31 −0 jam/bootstrap/docs/templates/pages/examples.mustache
  94. +144 −0 jam/bootstrap/docs/templates/pages/index.mustache
  95. +1,405 −0 jam/bootstrap/docs/templates/pages/javascript.mustache
  96. +944 −0 jam/bootstrap/docs/templates/pages/less.mustache
  97. +555 −0 jam/bootstrap/docs/templates/pages/scaffolding.mustache
  98. +194 −0 jam/bootstrap/docs/templates/pages/upgrading.mustache
  99. +310 −0 jam/bootstrap/docs/upgrading.html
  100. BIN jam/bootstrap/img/glyphicons-halflings-white.png
  101. BIN jam/bootstrap/img/glyphicons-halflings.png
  102. +10 −0 jam/bootstrap/js/.jshintrc
  103. +112 −0 jam/bootstrap/js/README.md
  104. +90 −0 jam/bootstrap/js/bootstrap-alert.js
  105. +96 −0 jam/bootstrap/js/bootstrap-button.js
  106. +169 −0 jam/bootstrap/js/bootstrap-carousel.js
  107. +157 −0 jam/bootstrap/js/bootstrap-collapse.js
  108. +100 −0 jam/bootstrap/js/bootstrap-dropdown.js
  109. +218 −0 jam/bootstrap/js/bootstrap-modal.js
  110. +98 −0 jam/bootstrap/js/bootstrap-popover.js
  111. +151 −0 jam/bootstrap/js/bootstrap-scrollspy.js
  112. +135 −0 jam/bootstrap/js/bootstrap-tab.js
  113. +275 −0 jam/bootstrap/js/bootstrap-tooltip.js
  114. +61 −0 jam/bootstrap/js/bootstrap-transition.js
  115. +285 −0 jam/bootstrap/js/bootstrap-typeahead.js
  116. +54 −0 jam/bootstrap/js/tests/index.html
  117. +63 −0 jam/bootstrap/js/tests/phantom.js
  118. +14 −0 jam/bootstrap/js/tests/server.js
  119. +56 −0 jam/bootstrap/js/tests/unit/bootstrap-alert.js
  120. +77 −0 jam/bootstrap/js/tests/unit/bootstrap-button.js
  121. +28 −0 jam/bootstrap/js/tests/unit/bootstrap-carousel.js
  122. +54 −0 jam/bootstrap/js/tests/unit/bootstrap-collapse.js
  123. +87 −0 jam/bootstrap/js/tests/unit/bootstrap-dropdown.js
  124. +114 −0 jam/bootstrap/js/tests/unit/bootstrap-modal.js
  125. +21 −0 jam/bootstrap/js/tests/unit/bootstrap-phantom.js
  126. +93 −0 jam/bootstrap/js/tests/unit/bootstrap-popover.js
  127. +31 −0 jam/bootstrap/js/tests/unit/bootstrap-scrollspy.js
  128. +61 −0 jam/bootstrap/js/tests/unit/bootstrap-tab.js
  129. +155 −0 jam/bootstrap/js/tests/unit/bootstrap-tooltip.js
  130. +13 −0 jam/bootstrap/js/tests/unit/bootstrap-transition.js
  131. +148 −0 jam/bootstrap/js/tests/unit/bootstrap-typeahead.js
  132. +9,252 −0 jam/bootstrap/js/tests/vendor/jquery.js
  133. +232 −0 jam/bootstrap/js/tests/vendor/qunit.css
  134. +1,510 −0 jam/bootstrap/js/tests/vendor/qunit.js
  135. +33 −0 jam/bootstrap/less/accordion.less
  136. +58 −0 jam/bootstrap/less/alerts.less
  137. +62 −0 jam/bootstrap/less/bootstrap.less
  138. +24 −0 jam/bootstrap/less/breadcrumbs.less
  139. +191 −0 jam/bootstrap/less/button-groups.less
  140. +191 −0 jam/bootstrap/less/buttons.less
  141. +121 −0 jam/bootstrap/less/carousel.less
  142. +29 −0 jam/bootstrap/less/close.less
  143. +57 −0 jam/bootstrap/less/code.less
  144. +20 −0 jam/bootstrap/less/component-animations.less
  145. +143 −0 jam/bootstrap/less/dropdowns.less
  146. +583 −0 jam/bootstrap/less/forms.less
  147. +5 −0 jam/bootstrap/less/grid.less
  148. +22 −0 jam/bootstrap/less/hero-unit.less
  149. +55 −0 jam/bootstrap/less/labels-badges.less
  150. +17 −0 jam/bootstrap/less/layouts.less
  151. +646 −0 jam/bootstrap/less/mixins.less
  152. +90 −0 jam/bootstrap/less/modals.less
  153. +358 −0 jam/bootstrap/less/navbar.less
  154. +363 −0 jam/bootstrap/less/navs.less
  155. +36 −0 jam/bootstrap/less/pager.less
  156. +56 −0 jam/bootstrap/less/pagination.less
  157. +49 −0 jam/bootstrap/less/popovers.less
  158. +117 −0 jam/bootstrap/less/progress-bars.less
  159. +131 −0 jam/bootstrap/less/reset.less
  160. +26 −0 jam/bootstrap/less/responsive-1200px-min.less
  161. +149 −0 jam/bootstrap/less/responsive-767px-max.less
  162. +17 −0 jam/bootstrap/less/responsive-768px-979px.less
  163. +153 −0 jam/bootstrap/less/responsive-navbar.less
  164. +41 −0 jam/bootstrap/less/responsive-utilities.less
  165. +48 −0 jam/bootstrap/less/responsive.less
  166. +29 −0 jam/bootstrap/less/scaffolding.less
  167. +191 −0 jam/bootstrap/less/sprites.less
  168. +176 −0 jam/bootstrap/less/tables.less
  169. +52 −0 jam/bootstrap/less/tests/css-tests.css
  170. +917 −0 jam/bootstrap/less/tests/css-tests.html
  171. +179 −0 jam/bootstrap/less/tests/forms.html
  172. +108 −0 jam/bootstrap/less/tests/navbar.html
  173. +47 −0 jam/bootstrap/less/thumbnails.less
  174. +35 −0 jam/bootstrap/less/tooltip.less
  175. +232 −0 jam/bootstrap/less/type.less
  176. +23 −0 jam/bootstrap/less/utilities.less
  177. +206 −0 jam/bootstrap/less/variables.less
  178. +27 −0 jam/bootstrap/less/wells.less
  179. +8 −0 jam/bootstrap/main.js
  180. +25 −0 jam/bootstrap/package.json
  181. +9 −0 jam/jam.json
  182. +9,227 −0 jam/jquery/jquery.js
  183. +34 −0 jam/jquery/package.json
  184. +36 −0 jam/require.config.js
  185. +2,067 −0 jam/require.js
  186. +7 −0 jam/underscore/package.json
  187. +1,070 −0 jam/underscore/underscore.js
  188. +41 −0 main.js
  189. +33 −0 manifest.json
  190. +27 −0 options-module.js
  191. +33 −0 package.js
  192. +41 −0 services/ExtensionService.js
  193. 0 views/extension-details.html
  194. +13 −0 views/extension-setup.html
  195. +2 −0 views/extension-view.html
  196. +5 −0 views/list.html
View
27 app.js
@@ -0,0 +1,27 @@
+/**
+ * @author btilford
+ * 8/20/12 11:30 PM
+ * @version 1.0.0
+ * @since
+ * @namespace
+ * @exports
+ * @requires
+ *
+ * @description
+ *
+ *
+ */
+'use-strict';
+
+define(
+ 'app'
+ ,[
+ 'options-module'
+
+ ,'angularjs'
+ ]
+ ,function appLoaded(module) {
+
+ angular.bootstrap(document, ['extension.manager.plus'])
+ }
+)
@@ -0,0 +1,42 @@
+/**
+ * @author btilford
+ * 8/20/12 9:43 PM
+ * @version 1.0.0
+ * @since
+ * @namespace
+ * @exports
+ * @requires
+ *
+ * @description
+ *
+ *
+ */
+'use-strict';
+
+define(
+ 'controllers/ListController'
+ ,[
+ 'options-module'
+
+ ,'services/ExtensionService'
+
+ ,'angularjs'
+ ]
+ , function listControllerLoaded(module) {
+
+ var Controller = function ListController($scope, extensionService) {
+ var handleList = function handleList(data) {
+ console.log(data)
+
+ $scope.extensions = data
+ }
+ extensionService.list(handleList)
+ }
+
+ Controller.$inject = ['$scope', 'ExtensionService']
+
+ module.controller('ListController', Controller)
+
+ return Controller
+ }
+)
View
@@ -0,0 +1,17 @@
+
+
+.extension {
+ display: block;
+ padding: 1em;
+ box-shadow: 1px 1px 2px rgba(20, 20, 20, .8);
+ border-radius: 6px;
+}
+
+.property {
+ display: inline-block;
+
+}
+
+.name {
+ font-weight: bold;
+}
View
121 hack.js
@@ -0,0 +1,121 @@
+/**
+ * @author btilford
+ * 8/20/12 11:33 PM
+ * @version 1.0.0
+ * @since
+ * @namespace
+ * @exports
+ * @requires
+ *
+ * @description
+ *
+ *
+ */
+'use-strict';
+
+
+(function init() {
+ var module = angular.module('extension.manager.plus', [])
+ ,ExtensionService
+ ,ListController
+ ,ExtensionWidget
+ ,CommandoService
+ ,OpenExtensionDirective
+ ,OpenAppDirective//chrome.management.launchApp(id, callback)
+
+
+ CommandoService = function CommandoService() {
+ var service = {}
+ ,profiles
+
+ (function init() {
+ var profilesJson = localStorage['profiles']
+ if(profilesJson) profiles = JSON.parse(profilesJson)
+ })()
+
+ service.Profile = {
+
+ list : function profiles() {
+ return profiles
+ }
+ ,get : function get(id) {
+ return profiles[id]
+ }
+ ,put : function put(profile) {
+ profiles[profile.id] = profile
+ localStorage['profiles'] = JSON.stringify(list)
+ }
+ }
+
+
+ return service
+ }
+ module.service('CommandoService', CommandoService)
+
+ /**
+ * Used to get available extension or extended info on an extension.
+ * @return {Object}
+ * @constructor
+ */
+ ExtensionService = function ExtensionService() {
+ var service = {
+ list : function list(callback) {
+ chrome.management.getAll(callback)
+ }
+ ,get : function get(callback) {
+ chrome.mangement.get(callback)
+ }
+ }
+
+ return service
+ }
+ module.service('ExtensionService', ExtensionService)
+
+ ListController = function ListController($scope, extensionService) {
+ var handleList = function handleList(extensions) {
+ $scope.extensions = extensions
+ $scope.$apply()//why??
+ }
+
+ $scope.extensions = []
+
+ extensionService.list(handleList)
+ }
+ ListController.$inject = ['$scope', 'ExtensionService']
+ module.controller('ListController', ListController)
+
+
+
+ ExtensionWidget = function ExtensionWidget() {
+ return {
+ restrict : 'E'
+ ,templateUrl : 'views/extension-setup.html'
+ }
+ }
+ module.directive('extension', ExtensionWidget)
+
+
+
+
+
+
+
+ module.config([
+ '$routeProvider'
+ ,function routing($routeProvider) {
+ $routeProvider.when(
+ '/list'
+ ,{templateUrl: 'views/list.html', controller: ListController}
+ )
+ $routeProvider.otherwise({redirectTo : '/list'})
+ }
+
+ ])
+
+
+})()
+
+var port = chrome.extension.connect('bfbameneiokkgbdmiekhjnmfkcnldhhm')
+port.postMessage(function() {
+
+})
View
@@ -0,0 +1,95 @@
+<!doctype html>
+<html lang="en" ng-csp>
+<head>
+ <meta charset="utf-8">
+ <style>
+ [ng-cloak] {
+ display: none;
+ }
+ </style>
+ <title>Extension Manager Plus</title>
+ <link rel="stylesheet" href="jam/bootstrap/css/bootstrap-responsive.css">
+ <link rel="stylesheet" href="css/app.css">
+ <!--<script src="jam/angularjs/angular.js"></script>-->
+
+</head>
+<body>
+ <header>
+ <h1>Extension Manager Plus</h1>
+
+ <!--<nav>-->
+ <!--<ul class="menu">-->
+ <!--<li><a href="#/stats">Stats</a></li>-->
+ <!--<li><a href="#/login">Login</a></li>-->
+ <!--<li><a href="#/register">Register</a></li>-->
+ <!--<li><a href="#/settings">Settings</a></li>-->
+ <!--</ul>-->
+ <!--</nav>-->
+ <!--<span>Logged in as <em>{{account}}</em></span>-->
+ </header>
+
+ <section ng-view></section>
+ <!--<section ng-controller="ListController">-->
+ <!--<h2>Extensions</h2>-->
+ <!--<div class="row-fluid extension" ng-repeat="extension in extensions" >-->
+ <!--<extension ng-model="extension"></extension>-->
+ <!--</div>-->
+ <!--</section>-->
+
+ <!--<footer>Fitness Tracker: v<span app-version></span></footer>-->
+
+
+
+
+ <!--<script src="jam/require.js"></script>
+ <script src="jam/angularjs/angular.js"></script>
+ <script src="jam/jquery/jquery.js"></script>
+ <script src="jam/underscore/underscore.js"></script>
+
+
+ <script src="services/ExtensionService.js"></script>
+ <script src="controllers/ListController.js"></script>
+ <script src="controllers/ListController.js"></script>
+ <script src="options-module.js"></script>
+ <script src="app.js"></script>
+ <script src="package.js"></script>
+ <script>
+ require(['main'])
+ </script>
+ -->
+
+
+ <script src="jam/require.js" data-main="main"></script>
+ <script src="jam/require.config.js"></script>
+
+
+ <!--<script src="jam/require.js"></script>-->
+ <!--<script>require(['main'])</script>-->
+
+<!--<script src="jam/angularjs/angular.js"></script>-->
+<!--<script src="hack.js"></script>-->
+
+
+ <!--<script type="text/ng-template" id="list.html">
+ <h2>Extensions</h2>
+ <div class="extension">
+ {{extensions}}
+ </div>
+ </script>
+
+ <script id="extension.html" type="text/ng-template">
+ <div class="row-fluid">
+ <span class="property name">{{extension.name}}</span>
+ </div>
+ <div class="row-fluid">
+ <span class="property version">{{extension.version}}</span>
+ <span class="property app">App? {{extension.isApp}}</span>
+ <a href="{{extension.optionsUrl}}" ng-hide="{{!extension.optionsUrl}}">options</a>
+ </div>
+ <div class="row-fluid">
+ <span class="property description">{{extension.description}}</span>
+
+ </div>
+ </script>-->
+</body>
+</html>
View
@@ -0,0 +1,29 @@
+AngularJS
+=========
+
+AngularJS lets you write client-side web applications as if you had a smarter browser. It lets use
+good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s
+syntax to express your application’s components clearly and succinctly. It automatically
+synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data
+binding. To help you structure your application better and make it easy to test AngularJS teaches
+the browser how to do dependency injection and inversion of control. Oh yeah and it also helps with
+server-side communication, taming async callbacks with promises and deferreds; and make client-side
+navigation and deeplinking with hashbang urls or HTML5 pushState a piece of cake. The most important
+of all: it makes development fun!
+
+* Web site: http://angularjs.org
+* Tutorial: http://docs.angularjs.org/tutorial
+* API Docs: http://docs.angularjs.org
+* Developer Guide: http://docs.angularjs.org/guide
+
+Compiling
+---------
+ rake compile
+
+Running Tests
+-------------
+ ./server.sh # start the server
+ open http://localhost:9876/capture # capture browser
+ ./test.sh # run all unit tests
+
+
Oops, something went wrong.

0 comments on commit 81e90e9

Please sign in to comment.