From b9361db3acc59ece335b4526312fd31164440cf9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 25 Nov 2020 10:46:13 -0500 Subject: [PATCH] Delete outdated/unused crmExample Angular module --- Civi/Angular/Manager.php | 1 - ang/crmExample.ang.php | 11 --------- ang/crmExample.js | 45 ------------------------------------- ang/crmExample/example.html | 42 ---------------------------------- 4 files changed, 99 deletions(-) delete mode 100644 ang/crmExample.ang.php delete mode 100644 ang/crmExample.js delete mode 100644 ang/crmExample/example.html diff --git a/Civi/Angular/Manager.php b/Civi/Angular/Manager.php index d19c8c328e..1223e3d851 100644 --- a/Civi/Angular/Manager.php +++ b/Civi/Angular/Manager.php @@ -105,7 +105,6 @@ class Manager { $angularModules['crmAttachment'] = include "$civicrm_root/ang/crmAttachment.ang.php"; $angularModules['crmAutosave'] = include "$civicrm_root/ang/crmAutosave.ang.php"; $angularModules['crmCxn'] = include "$civicrm_root/ang/crmCxn.ang.php"; - // $angularModules['crmExample'] = include "$civicrm_root/ang/crmExample.ang.php"; $angularModules['crmResource'] = include "$civicrm_root/ang/crmResource.ang.php"; $angularModules['crmRouteBinder'] = include "$civicrm_root/ang/crmRouteBinder.ang.php"; $angularModules['crmUi'] = include "$civicrm_root/ang/crmUi.ang.php"; diff --git a/ang/crmExample.ang.php b/ang/crmExample.ang.php deleted file mode 100644 index 763f1eaca2..0000000000 --- a/ang/crmExample.ang.php +++ /dev/null @@ -1,11 +0,0 @@ - 'civicrm', - 'js' => ['ang/crmExample.js'], - 'partials' => ['ang/crmExample'], - 'requires' => ['crmUtil', 'ngRoute', 'ui.utils', 'crmUi', 'crmResource'], -]; diff --git a/ang/crmExample.js b/ang/crmExample.js deleted file mode 100644 index 138ce8f12a..0000000000 --- a/ang/crmExample.js +++ /dev/null @@ -1,45 +0,0 @@ -(function(angular, $, _) { - - angular.module('crmExample', CRM.angRequires('crmExample')); - - angular.module('crmExample').config([ - '$routeProvider', - function($routeProvider) { - $routeProvider.when('/example', { - templateUrl: '~/crmExample/example.html', - controller: 'ExampleCtrl' - }); - } - ]); - - angular.module('crmExample').controller('ExampleCtrl', function ExampleCtrl($scope) { - $scope.ts = CRM.ts(null); - - //$scope.examples = { - // blank1: {value: '', required: false}, - // blank2: {value: '', required: true}, - // filled1: {value:'2014-01-02', required: false}, - // filled2: {value:'2014-02-03', required: true} - //}; - - //$scope.examples = { - // blank1: {value: '', required: false}, - // blank2: {value: '', required: true}, - // filled1: {value:'12:34', required: false}, - // filled2: {value:'10:09', required: true} - //}; - - $scope.examples = { - blank: {value: '', required: false}, - //blankReq: {value: '', required: true}, - filled: {value:'2014-01-02 03:04', required: false}, - //filledReq: {value:'2014-02-03 05:06', required: true}, - missingDate: {value:' 05:06', required: false}, - //missingDateReq: {value:' 05:06', required: true}, - missingTime: {value:'2014-03-04 ', required: false} - //missingTimeReq: {value:'2014-03-04 ', required: true} - }; - - }); - -})(angular, CRM.$, CRM._); diff --git a/ang/crmExample/example.html b/ang/crmExample/example.html deleted file mode 100644 index 458d4f85b4..0000000000 --- a/ang/crmExample/example.html +++ /dev/null @@ -1,42 +0,0 @@ -
- - - - - - - - - - - - - - - - - - - - -
NameValueInputngModel
{{exName}}{{example.value}} -
- -
-
- - -
-
- - - -
-
-
-
-
{{exampleForm[exName]|json}}
-
- -
-- 2.25.1