Skip to content

Commit

Permalink
Added icon for guide and set up functionality for guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladi Adenusi andela-ladenusi committed Nov 17, 2015
1 parent 2d85189 commit acab48f
Show file tree
Hide file tree
Showing 17 changed files with 305 additions and 130 deletions.
13 changes: 12 additions & 1 deletion lib/directive/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function initialiseEditor() {
langTools.setCompleters([{ getCompletions: getAutoComplete }]);
}

app.directive('editor', function ($rootScope, $controller, $compile) {
app.directive('editor', function ($rootScope, $controller, $compile, $routeParams, contentService) {
config = $rootScope.cfg;
/*
* Disable number handler on Pi version
Expand Down Expand Up @@ -90,6 +90,17 @@ app.directive('editor', function ($rootScope, $controller, $compile) {
scope.ngModel = scope.ngModel || editorElement.innerHTML;
// Select first docs category
scope.selectDocsCategory(scope.docs[0]);
// Set guide to an empty string
scope.guide = '';
// Set challengeId & worldId from the route params
scope.challengeId = $routeParams.id;
scope.worldId = $routeParams.world;
// Get the guide from a challenge
contentService.challenge.get(scope.worldId, scope.challengeId).then(function (challenge) {
if (challenge.guide) {
scope.guide = challenge.guide;
}
});
// Initialise docs tab scrollable pane
initScrollablePane();
// Initialise ACE editor
Expand Down
4 changes: 3 additions & 1 deletion resources/icon-set/Read Me.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.

To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts

You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.

You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu > Manage Projects) to retrieve your icon selection.
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu Manage Projects) to retrieve your icon selection.
Binary file modified resources/icon-set/fonts/icomoon.eot
Binary file not shown.
1 change: 1 addition & 0 deletions resources/icon-set/fonts/icomoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/icon-set/fonts/icomoon.ttf
Binary file not shown.
Binary file modified resources/icon-set/fonts/icomoon.woff
Binary file not shown.
Loading

0 comments on commit acab48f

Please sign in to comment.