From 7ef818138f124f2a0e9dbfad28d8d2961505af97 Mon Sep 17 00:00:00 2001 From: Nicolas Florentin Date: Wed, 11 May 2016 10:07:44 +0200 Subject: [PATCH] extracting navi_gami from fab-manager repo --- .../assets/javascripts/navi_gami.coffee.erb | 48 ------------------- .../assets/stylesheets/navi_gami.scss | 3 -- .../assets/templates/navi_gami.html.erb | 1 - plugins/navi_gami/plugin.rb | 16 ------- 4 files changed, 68 deletions(-) delete mode 100644 plugins/navi_gami/assets/javascripts/navi_gami.coffee.erb delete mode 100644 plugins/navi_gami/assets/stylesheets/navi_gami.scss delete mode 100644 plugins/navi_gami/assets/templates/navi_gami.html.erb delete mode 100644 plugins/navi_gami/plugin.rb diff --git a/plugins/navi_gami/assets/javascripts/navi_gami.coffee.erb b/plugins/navi_gami/assets/javascripts/navi_gami.coffee.erb deleted file mode 100644 index cde8abae7..000000000 --- a/plugins/navi_gami/assets/javascripts/navi_gami.coffee.erb +++ /dev/null @@ -1,48 +0,0 @@ -plugin_name = 'navi gami' - -# get fabmanager main module -app = angular.module('application') - - -# initialize module and configure routing -angular.module('application.navi_gami', ['application']) - .config [ - '$stateProvider', - ($stateProvider) -> - $stateProvider - .state 'app.admin.navi_gami', - url: '/navinum_gamification' - views: - 'main@': - templateUrl: '<%= asset_path "templates/navi_gami.html" %>' - controller: -> - console.log 'ctrl navi_gami' - - ] - - - - - - - - - - - - - - - -# injects dependecy to main app module -app.requires.push('application.navi_gami') - - -window.Fablab.adminNavLinks = window.Fablab.adminNavLinks || [] -window.Fablab.adminNavLinks.push( - { - state: 'app.admin.navi_gami' - linkText: 'Gamification' - linkIcon: 'gamepad' - } -) diff --git a/plugins/navi_gami/assets/stylesheets/navi_gami.scss b/plugins/navi_gami/assets/stylesheets/navi_gami.scss deleted file mode 100644 index cb798b04c..000000000 --- a/plugins/navi_gami/assets/stylesheets/navi_gami.scss +++ /dev/null @@ -1,3 +0,0 @@ -#nav > section > section { - background: black; -} diff --git a/plugins/navi_gami/assets/templates/navi_gami.html.erb b/plugins/navi_gami/assets/templates/navi_gami.html.erb deleted file mode 100644 index 2a02d41ce..000000000 --- a/plugins/navi_gami/assets/templates/navi_gami.html.erb +++ /dev/null @@ -1 +0,0 @@ -TEST diff --git a/plugins/navi_gami/plugin.rb b/plugins/navi_gami/plugin.rb deleted file mode 100644 index 1b630914d..000000000 --- a/plugins/navi_gami/plugin.rb +++ /dev/null @@ -1,16 +0,0 @@ -register_asset "stylesheets/navi_gami.scss" -register_asset "javascripts/navi_gami.coffee.erb" - - -PLUGIN_NAME ||= "navi_gami".freeze - - -after_initialize do - module ::NaviGami - class Engine < ::Rails::Engine - engine_name PLUGIN_NAME - isolate_namespace NaviGami - end - end - -end