moved plugin specific files into separate folder.
This commit is contained in:
parent
994475dfbd
commit
406b266dd9
11 changed files with 59 additions and 47 deletions
|
@ -46,11 +46,9 @@ gulp.task('dist', ['tmp'], function () {
|
|||
'!tmp/index.html',
|
||||
'!tmp/content_script_web.js'
|
||||
], {base: 'tmp'});
|
||||
var imageAssets = gulp.src('src/*.png').pipe($.flatten());
|
||||
var imageAssets = gulp.src('src/plugin-specific/*.png').pipe($.flatten());
|
||||
var chromePluginResources = gulp.src([
|
||||
'src/content_script.js',
|
||||
'src/background.js',
|
||||
'src/manifest.json',
|
||||
'src/plugin-specific/**/*',
|
||||
])
|
||||
.pipe($.flatten())
|
||||
.pipe($.fileInclude({
|
||||
|
@ -65,7 +63,6 @@ gulp.task('dist', ['tmp'], function () {
|
|||
gulp.task('dist-node-modules', function () {
|
||||
return gulp.src([
|
||||
'node_modules/bootstrap/**/*',
|
||||
'node_modules/material-design-lite/**/*',
|
||||
'node_modules/angular/**/*',
|
||||
'node_modules/jquery/**/*'
|
||||
], {base: 'node_modules'})
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
// used for chrome plugin
|
||||
|
||||
@@include('content_script_include.js')
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
var pluginEnabled = true;
|
||||
|
||||
console.log('background page was started');
|
||||
|
||||
function updateIcon () {
|
||||
var selectedIcon;
|
||||
if (pluginEnabled) {
|
4
src/plugin-specific/content_script.js
Normal file
4
src/plugin-specific/content_script.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
// used for chrome plugin
|
||||
|
||||
@@include('../content_script_include.js')
|
||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
40
src/plugin-specific/popup.html
Normal file
40
src/plugin-specific/popup.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Popup menu for TagIt plugin</title>
|
||||
|
||||
<script src="popup.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/dist/css/bootstrap.min.css">
|
||||
<style type="text/css">
|
||||
.container {
|
||||
width: 250px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body id="tagit-popup" class="container" ng-app="tagItPopUpMenu">
|
||||
<div ng-controller="popUpCtrl">
|
||||
<h1>Tag you're it</h1>
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
<button ng-click="vm.openMenu()" type="button" class="btn btn-default">Open</button>
|
||||
<button type="button" class="btn btn-default">Close</button>
|
||||
</div>
|
||||
<p></p>
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="backend-server-query-url">Backend: Url to query:</label>
|
||||
<input type="text" class="form-control" id="backend-server-query-url" placeholder="backend query url">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="backend-server-store-url">Backend: Url to store information on:</label>
|
||||
<input type="text" class="form-control" id="backend-server-store-url" placeholder="backend storage url">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="user-email">User email to associate tagging information with:</label>
|
||||
<input type="email" class="form-control" id="user-email" placeholder="user email">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
11
src/plugin-specific/popup.js
Normal file
11
src/plugin-specific/popup.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
console.log('popUpCtrl was loaded');
|
||||
|
||||
// angular.module('tagItPopUpMenu', [])
|
||||
// .controller('popUpCtrl', popUpCtrl);
|
||||
|
||||
// function popUpCtrl ($scope, $log) {
|
||||
// $scope.vm = this;
|
||||
// $scope.vm.openMenu = function () {
|
||||
// $log.debug('open menu was clicked.');
|
||||
// }
|
||||
// }
|
|
@ -1,38 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Popup menu for TagIt plugin</title>
|
||||
|
||||
<script src="vendor/angular/angular.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/dist/css/bootstrap.min.css">
|
||||
|
||||
<style type="text/css">
|
||||
.container {
|
||||
width: 250px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body class="container">
|
||||
<h1>Tag you're it</h1>
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-default">Open</button>
|
||||
<button type="button" class="btn btn-default">Close</button>
|
||||
</div>
|
||||
<p></p>
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="backend-server-query-url">Backend: Url to query:</label>
|
||||
<input type="text" class="form-control" id="backend-server-query-url" placeholder="backend query url">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="backend-server-store-url">Backend: Url to store information on:</label>
|
||||
<input type="text" class="form-control" id="backend-server-store-url" placeholder="backend storage url">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="user-email">User email to associate tagging information with:</label>
|
||||
<input type="email" class="form-control" id="user-email" placeholder="user email">
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue