diff --git a/app/admin_components/adf-tutorial/app-tutorial.directive.js b/app/admin_components/adf-tutorial/app-tutorial.directive.js new file mode 100644 index 00000000..9a57dae3 --- /dev/null +++ b/app/admin_components/adf-tutorial/app-tutorial.directive.js @@ -0,0 +1,18 @@ +'use strict'; + +angular.module('dfTutorial') + + + .directive('dfAppTutorial', ['MOD_TUTORIALS_ASSET_PATH', function (MOD_TUTORIALS_ASSET_PATH) { + + return { + restrict: 'E', + scope: { + apiData: '=?' + }, + templateUrl: MOD_TUTORIALS_ASSET_PATH + 'views/app-tutorial.html', + link: function (scope, elem, attrs) { + + } + }; + }]); \ No newline at end of file diff --git a/app/admin_components/adf-tutorial/service-tutorial.directive.js b/app/admin_components/adf-tutorial/service-tutorial.directive.js new file mode 100644 index 00000000..2744280f --- /dev/null +++ b/app/admin_components/adf-tutorial/service-tutorial.directive.js @@ -0,0 +1,116 @@ +'use strict'; + +angular.module('dfTutorial') + + .directive('dfServiceTutorial', ['MOD_TUTORIALS_ASSET_PATH', 'ngIntroService', function (MOD_TUTORIALS_ASSET_PATH, ngIntroService) { + + return { + restrict: 'E', + scope: { + apiData: '=?' + }, + templateUrl: MOD_TUTORIALS_ASSET_PATH + 'views/service-tutorial.html', + link: function (scope, elem, attrs) { + + scope.IntroOptions = { + steps: [ + { + element: document.querySelector('.tutorial-step-Services'), + intro: "Open the 'Services' tab." + }, + { + element: '#step2', + intro: 'Here is hello 2' + } + ], + showStepNumbers: true, + showBullets: false, + exitOnOverlayClick: false, + exitOnEsc: true, + nextLabel: 'next', + prevLabel: 'Previous', + skipLabel: 'Exit', + doneLabel: 'Thanks' + }; + + + // $scope.CompletedEvent = function () { + // console.log('[directive] completed Event') + // } + // $scope.ExitEvent = function () { + // console.log('[directive] exit Event') + // } + // $scope.ChangeEvent = function (element) { + // console.log('[directive] change Event') + // console.info(element); + // } + // $scope.BeforeChangeEvent = function (element) { + // console.log('[directive] beforeChange Event') + // console.info(element); + // } + // $scope.AfterChangeEvent = function (element) { + // console.log('[directive] after change Event') + // console.info(element); + // } + // $scope.clearAndStartNewIntro = function () { + // $scope.IntroOptions = { + // steps: [ + // { + // element: document.querySelector('#step1'), + // intro: "After being cleared, step 1" + // }, + // { + // element: '#step2', + // intro: 'Setup and details :)', + // position: 'right' + // }, + // { + // element: '.jumbotron', + // intro: 'We added a small feature, adding
ng-intro-disable-button
your buttons will be disabled when introJs is open :)

if you\'re using anchor tags, you should prevent ng-click manually.

click here for more details.

' + // } + // ], + // showStepNumbers: true, + // showBullets: true, + // exitOnOverlayClick: false, + // exitOnEsc: false, + // nextLabel: 'Next!', + // prevLabel: 'Previous', + // skipLabel: 'Skip', + // doneLabel: 'Done' + // }; + // + // + // ngIntroService.clear(); + // ngIntroService.setOptions($scope.IntroOptions); + // + // // ngIntroService.onComplete(function () { + // // console.log('update some cookie or localstorage.') + // // console.log(arguments) + // // }) + // // + // // ngIntroService.onExit(function () { + // // console.log("[service] exit"); + // // }) + // // + // // ngIntroService.onBeforeChange(function (element) { + // // console.log("[service] before change"); + // // console.info(element); + // // }) + // // + // // ngIntroService.onChange(function (element) { + // // console.log("[service] on change"); + // // console.info(element); + // // + // // }) + // // + // // ngIntroService.onAfterChange(function (element) { + // // console.log("[service] after Change"); + // // console.info(element); + // // }) + // + // ngIntroService.start(); + // } + + } + }; + }]) \ No newline at end of file diff --git a/app/admin_components/adf-tutorial/tutorial.controller.js b/app/admin_components/adf-tutorial/tutorial.controller.js new file mode 100644 index 00000000..7c7e86b4 --- /dev/null +++ b/app/admin_components/adf-tutorial/tutorial.controller.js @@ -0,0 +1,23 @@ +'use strict'; + +angular.module('dfTutorial') + + .controller('TutorialController', ['$scope', function ($scope) { + + $scope.$parent.title = 'Tutorials'; + + $scope.links = [ + { + name: 'service', + label: 'Service', + path: 'service-tutorial' + }, + { + name: 'app', + label: 'App', + path: 'app-tutorial' + } + ]; + }]) + + diff --git a/app/admin_components/adf-tutorial/tutorial.module.js b/app/admin_components/adf-tutorial/tutorial.module.js new file mode 100644 index 00000000..0e3f8f3b --- /dev/null +++ b/app/admin_components/adf-tutorial/tutorial.module.js @@ -0,0 +1,22 @@ +'use strict'; + +angular.module('dfTutorial', []) + .constant('MOD_TUTORIALS_ROUTER_PATH', '/tutorials') + .constant('MOD_TUTORIALS_ASSET_PATH', 'admin_components/adf-tutorial/') + .config(['$routeProvider', 'MOD_TUTORIALS_ROUTER_PATH', 'MOD_TUTORIALS_ASSET_PATH', + function ($routeProvider, MOD_TUTORIALS_ROUTER_PATH, MOD_TUTORIALS_ASSET_PATH) { + $routeProvider + .when(MOD_TUTORIALS_ROUTER_PATH, { + templateUrl: MOD_TUTORIALS_ASSET_PATH + 'views/main-tutorial.html', + controller: 'TutorialController', + resolve: { + checkUser: ['checkUserService', function (checkUserService) { + return checkUserService.checkUser(); + }] + } + }); + }]) + + .run([function () { + + }]) \ No newline at end of file diff --git a/app/admin_components/adf-tutorial/views/app-tutorial.html b/app/admin_components/adf-tutorial/views/app-tutorial.html new file mode 100644 index 00000000..a80dc88a --- /dev/null +++ b/app/admin_components/adf-tutorial/views/app-tutorial.html @@ -0,0 +1,4 @@ + + + +

Will be soon :)

\ No newline at end of file diff --git a/app/admin_components/adf-tutorial/views/main-tutorial.html b/app/admin_components/adf-tutorial/views/main-tutorial.html new file mode 100644 index 00000000..b5c9ab1d --- /dev/null +++ b/app/admin_components/adf-tutorial/views/main-tutorial.html @@ -0,0 +1,9 @@ +
+
+ +
+
+ + +
+
diff --git a/app/admin_components/adf-tutorial/views/service-tutorial.html b/app/admin_components/adf-tutorial/views/service-tutorial.html new file mode 100644 index 00000000..07261fb0 --- /dev/null +++ b/app/admin_components/adf-tutorial/views/service-tutorial.html @@ -0,0 +1,10 @@ + + +
+

Services are where you set up REST API connections to databases, file storage, email, remote web services, and more. + +

+ diff --git a/app/admin_components/adf-utility/views/df-component-nav.html b/app/admin_components/adf-utility/views/df-component-nav.html index 041039cb..fd3c0473 100644 --- a/app/admin_components/adf-utility/views/df-component-nav.html +++ b/app/admin_components/adf-utility/views/df-component-nav.html @@ -1,6 +1,6 @@
-