diff --git a/Gulpfile.js b/Gulpfile.js index 3778879..d01b295 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -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'}) diff --git a/src/content_script.js b/src/content_script.js deleted file mode 100644 index e109475..0000000 --- a/src/content_script.js +++ /dev/null @@ -1,4 +0,0 @@ -// used for chrome plugin - -@@include('content_script_include.js') - diff --git a/src/background.js b/src/plugin-specific/background.js similarity index 89% rename from src/background.js rename to src/plugin-specific/background.js index fd2588d..d73598f 100644 --- a/src/background.js +++ b/src/plugin-specific/background.js @@ -1,5 +1,7 @@ var pluginEnabled = true; +console.log('background page was started'); + function updateIcon () { var selectedIcon; if (pluginEnabled) { diff --git a/src/plugin-specific/content_script.js b/src/plugin-specific/content_script.js new file mode 100644 index 0000000..22ae438 --- /dev/null +++ b/src/plugin-specific/content_script.js @@ -0,0 +1,4 @@ +// used for chrome plugin + +@@include('../content_script_include.js') + diff --git a/src/icon128.png b/src/plugin-specific/icon128.png similarity index 100% rename from src/icon128.png rename to src/plugin-specific/icon128.png diff --git a/src/icon16.png b/src/plugin-specific/icon16.png similarity index 100% rename from src/icon16.png rename to src/plugin-specific/icon16.png diff --git a/src/icon48.png b/src/plugin-specific/icon48.png similarity index 100% rename from src/icon48.png rename to src/plugin-specific/icon48.png diff --git a/src/manifest.json b/src/plugin-specific/manifest.json similarity index 100% rename from src/manifest.json rename to src/plugin-specific/manifest.json diff --git a/src/plugin-specific/popup.html b/src/plugin-specific/popup.html new file mode 100644 index 0000000..77ac21d --- /dev/null +++ b/src/plugin-specific/popup.html @@ -0,0 +1,40 @@ + + + + Popup menu for TagIt plugin + + + + + + + + +
+

Tag you're it

+
+ + +
+

+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + \ No newline at end of file diff --git a/src/plugin-specific/popup.js b/src/plugin-specific/popup.js new file mode 100644 index 0000000..ce69a60 --- /dev/null +++ b/src/plugin-specific/popup.js @@ -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.'); +// } +// } \ No newline at end of file diff --git a/src/popup.html b/src/popup.html deleted file mode 100644 index 4fb4da6..0000000 --- a/src/popup.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - Popup menu for TagIt plugin - - - - - - - - -

Tag you're it

-
- - -
-

-
-
- - -
-
- - -
-
- - -
-
- - \ No newline at end of file