Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame^] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | ce954e5 | 2015-11-04 11:31:05 +0100 | [diff] [blame] | 19 | <!-- browserSync --> |
Matteo Scandolo | e53ee05 | 2015-11-03 14:32:00 +0100 | [diff] [blame] | 20 | <!-- bower:css --> |
Matteo Scandolo | a3839e3 | 2016-04-28 16:20:53 -0700 | [diff] [blame] | 21 | <!-- endbower --> |
| 22 | <!-- endcss --> |
Matteo Scandolo | ba2af3d | 2015-11-06 10:35:20 +0100 | [diff] [blame] | 23 | <!-- inject:css --> |
| 24 | <!-- endinject --> |
Matteo Scandolo | e53ee05 | 2015-11-03 14:32:00 +0100 | [diff] [blame] | 25 | |
Matteo Scandolo | 1dc8f3f | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 26 | <div ng-app="xos.<%= name %>" id="xos<%= fileName %>" class="container-fluid"> |
Matteo Scandolo | a3839e3 | 2016-04-28 16:20:53 -0700 | [diff] [blame] | 27 | <div class="row"> |
| 28 | <div class="col-xs-12"> |
| 29 | <h1>Hi <%= user.firstname %>!</h1> |
| 30 | <h3>Welcome to you development environment.</h3> |
| 31 | <p> |
| 32 | We provided this environment to help you creating a custom view. |
| 33 | </p> |
| 34 | <p> |
| 35 | When the environment is running you will have an |
| 36 | <code>auto-reload</code> |
| 37 | feature enabled, so any time you update one of your files, the browser will be reloaded. |
| 38 | </p> |
| 39 | <p> <i>Note that is environment is already functional and that it is loading information from the XOS APIs and presenting them using the |
| 40 | <code>xos-table</code> |
| 41 | component.</i> |
| 42 | </p> |
| 43 | <h3>Development notes:</h3> |
| 44 | <p> |
| 45 | This views are designed using |
| 46 | <a href="https://angularjs.org/" target="_blank">Angular Js</a> |
| 47 | version 1.4.7 and |
| 48 | <a href="http://getbootstrap.com/" target="_blank">Bootstrap</a> |
| 49 | 3.3.6 is included. |
| 50 | </p> |
| 51 | <p> |
| 52 | We just want to remind you that this development environment provide you three helper command: |
| 53 | <ul> |
| 54 | <li> |
| 55 | <code>npm start</code> |
| 56 | - will start your setup (you should already be familiar with it) |
| 57 | </li> |
| 58 | <li> |
| 59 | <code>npm test</code> |
| 60 | - will execute your unit tests defined with |
| 61 | <a href="https://karma-runner.github.io/0.13/index.html" target="_blank">Karma</a> |
| 62 | and |
| 63 | <a href="jasmine.github.io" target="_blank">Jasmine</a> |
| 64 | . You can check the |
| 65 | <code>spec/</code> |
| 66 | folder to see an example of your first test. |
| 67 | </li> |
| 68 | <li> |
| 69 | <code>npm run build</code> |
| 70 | - will build your dashboard and make it available to XOS |
| 71 | </li> |
| 72 | </ul> |
| 73 | </p> |
| 74 | <h3>Helpers:</h3> |
| 75 | <p> |
| 76 | We provide a set of helpers that you can leverage in your dashboard: |
| 77 | <ul> |
| 78 | <li> |
| 79 | <code>xos.helpers</code> |
| 80 | - A set of |
| 81 | <a href="https://docs.angularjs.org/guide/services" target="_blank">Angular Services</a> |
| 82 | </li> |
| 83 | <li> |
| 84 | <code>xos.uiComponents</code> |
| 85 | - A set of |
| 86 | <a href="https://docs.angularjs.org/guide/directive" target="_blank">Angular Directives</a> |
| 87 | </li> |
| 88 | <li> |
| 89 | <code>xos.rest</code> |
| 90 | - A set of |
| 91 | <a href="https://docs.angularjs.org/api/ngResource/service/$resource" target="_blank">Angular $resources</a> |
| 92 | </li> |
| 93 | </ul> |
| 94 | To know more about this helpers you can naviate to |
| 95 | <code>/views/ngXosLib/</code> |
| 96 | and generate the documentation with |
| 97 | <code>npm run doc</code> |
| 98 | </p> |
| 99 | <h3>Example:</h3> |
| 100 | </div> |
| 101 | </div> |
| 102 | <div ui-view></div> |
Matteo Scandolo | e53ee05 | 2015-11-03 14:32:00 +0100 | [diff] [blame] | 103 | </div> |
| 104 | |
| 105 | <!-- bower:js --> |
Matteo Scandolo | a3839e3 | 2016-04-28 16:20:53 -0700 | [diff] [blame] | 106 | <!-- endbower --> |
| 107 | <!-- endjs --> |
Matteo Scandolo | e53ee05 | 2015-11-03 14:32:00 +0100 | [diff] [blame] | 108 | <!-- inject:js --> |
Matteo Scandolo | a3839e3 | 2016-04-28 16:20:53 -0700 | [diff] [blame] | 109 | <!-- endinject --> |