[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Delete the app component template
commit d8e04435e4f154466fa9354ce215fff2c7af77d9
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date: Mon Jul 18 19:19:24 2016 +0200
Delete the app component template
---
data/component-template/templ.component.js | 10 ----------
data/component-template/templ.controller.js | 5 -----
data/component-template/templ.css | 0
data/component-template/templ.html | 8 --------
data/component-template/templ.js | 19 -------------------
5 files changed, 42 deletions(-)
diff --git a/data/component-template/templ.component.js b/data/component-template/templ.component.js
deleted file mode 100644
index 10c3c88..0000000
--- a/data/component-template/templ.component.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var template = require("./{{name}}.html");
-var controller = require("./{{name}}.controller");
-require("./{{name}}.css");
-
-module.exports = {
- restrict: 'E',
- bindings: {},
- template: template,
- controller: controller
-};
diff --git a/data/component-template/templ.controller.js b/data/component-template/templ.controller.js
deleted file mode 100644
index aaf9110..0000000
--- a/data/component-template/templ.controller.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function {{nameUpper}}Controller() {
- this.example = "bar";
-}
-
-module.exports = {{nameUpper}}Controller;
diff --git a/data/component-template/templ.css b/data/component-template/templ.css
deleted file mode 100644
index e69de29..0000000
diff --git a/data/component-template/templ.html b/data/component-template/templ.html
deleted file mode 100644
index 6b047b9..0000000
--- a/data/component-template/templ.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<navbar></navbar>
-<header>
-</header>
-<main>
- <div>
- <h1>{{nameUpper}}</h1>
- </div>
-</main>
diff --git a/data/component-template/templ.js b/data/component-template/templ.js
deleted file mode 100644
index 75ee1cf..0000000
--- a/data/component-template/templ.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var angular = require("angular");
-var uiRouter = require("angular-ui-router");
-var {{name}}Component = require("./{{name}}.component");
-
-var {{name}}Module = angular.module("{{name}}", [
- uiRouter
-])
-.config(function($stateProvider, $urlRouterProvider){
-
- $stateProvider.state('{{name}}', {
- url: '/{{name}}',
- template: '<{{name}}></{{name}}>'
- });
-
-})
-.component("{{name}}", {{name}}Component)
-.name;
-
-module.exports = {{name}}Module;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits