-
Notifications
You must be signed in to change notification settings - Fork 20
[WIP] Add tutorials describing basic features of the product #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vtymtsiv
wants to merge
28
commits into
master
Choose a base branch
from
feature/DF-shepherd
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
944d08d
Add Shepherd library. Add 'Services' tutorial.
cf77340
Create TutorialHandler service.
602afa2
Add 5 steps.
9ac66dd
Add 14 steps.
c15c989
Add last step.
be9fe6e
Add focus on steps with input.
aea9a1f
Add field validation.
bd05a0a
Add 'back' button.
4720f73
Clean up.
d9e8d2a
Refactoring.
05d1b2e
Extract steps to separate file.
f4336a3
Extract method to dfTutorial service.
63d330c
Extract scenario to separate file.
ef971e1
Extract logic to tour_builder. Remove dfServiceDirective.
0591ec4
Remove angular usage from create_service scenario.
0363758
Add function for buttons creating during ste creating.
f5cc28b
Replace with jQuery.
4e50aaf
Inline buttonActionSetter function.
20d9d4f
Rewrite step description.
6a09fe7
Remove INSTANCE_BASE_URL value.
0addeef
Remove sub-tabs in the Tutorials tab.
84ef713
Add Readme for 'Tutorials'.
fd2d6eb
#107 Improve texts
OlegLazaryev 488b8a8
#108 Add scripting scenario
OlegLazaryev 583080b
Merge pull request #108 from dreamfactorysoftware/feature/DF-tutorial…
OlegLazaryev 9293642
#107 Fix first step of database service tutorial
OlegLazaryev c3705f0
#107 Minor text improvement
OlegLazaryev 51f11fd
#107 Remove comments
OlegLazaryev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 'use strict'; | ||
|
|
||
| angular.module('dfTutorial') | ||
|
|
||
| .controller('TutorialController', ['$scope', function ($scope) { | ||
|
|
||
| $scope.$parent.title = 'Tutorials'; | ||
|
|
||
| $scope.startTutorial = function (scenarioName) { | ||
| FeatureTour.start(scenarioName); | ||
| }; | ||
|
|
||
| $scope.dfLargeHelp = { | ||
| manageSchema: { | ||
| title: 'Learn How To', | ||
| text: 'This section includes interactive tutorials. The below list covers basic ' + | ||
| 'workflows of DreamFactory. You can find here the information about how to start with DreamFactory.' | ||
| } | ||
| }; | ||
vtymtsiv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| }]); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| '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(); | ||
| }] | ||
| } | ||
| }); | ||
| }]); |
34 changes: 34 additions & 0 deletions
34
app/admin_components/adf-tutorial/views/main-tutorial.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <style> | ||
| .tutorials-index .start-service-link{ | ||
| font-size: 18px; | ||
| } | ||
|
|
||
| .tutorials-index ul li { | ||
| margin-bottom: 10px; | ||
| } | ||
| </style> | ||
|
|
||
| <div class="col-md-12 df-section tutorials-index" df-fs-height> | ||
| <df-large-help data-options="dfLargeHelp.manageSchema"></df-large-help> | ||
| <ul> | ||
| <li> | ||
| <a type="button" class="start-service-link" data-ng-click="startTutorial('createService')"> | ||
| <b>Create Service</b> | ||
| </a> | ||
| <br> | ||
| This is where you would want to start. Services are the building blocks of DreamFactory. They are the entrypoints for interaction with your application. | ||
| In this tutorial we will guide you through the service creation workflow. As a result you will end up with a simple database service for MySQL. | ||
| </li> | ||
| <li> | ||
| <a type="button" class="start-service-link" data-ng-click="startTutorial('scripting')"> | ||
| <b>Scripting</b> | ||
| </a> | ||
| <br> | ||
| Sometimes you would want to add the custom behavior to some of your endpoint. | ||
| To achieve that we have this feature called Scripting. | ||
| For example this interactive guide will show you how to add the custom PHP code to one of the standard system endpoints. | ||
| We have already prepared an example script so you won't do any coding this time. | ||
| Just start the tour and follow the instructions. | ||
| </li> | ||
| </ul> | ||
| </div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.