blob: b45e4c446c214e08610edc3cb9e4bdd09a8a6015 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandoloce954e52015-11-04 11:31:05 +010019<!-- browserSync -->
Matteo Scandoloe53ee052015-11-03 14:32:00 +010020<!-- bower:css -->
Matteo Scandoloa3839e32016-04-28 16:20:53 -070021<!-- endbower -->
22<!-- endcss -->
Matteo Scandoloba2af3d2015-11-06 10:35:20 +010023<!-- inject:css -->
24<!-- endinject -->
Matteo Scandoloe53ee052015-11-03 14:32:00 +010025
Matteo Scandolo1dc8f3f2016-04-13 10:19:55 -070026<div ng-app="xos.<%= name %>" id="xos<%= fileName %>" class="container-fluid">
Matteo Scandoloa3839e32016-04-28 16:20:53 -070027 <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 Scandoloe53ee052015-11-03 14:32:00 +0100103</div>
104
105<!-- bower:js -->
Matteo Scandoloa3839e32016-04-28 16:20:53 -0700106<!-- endbower -->
107<!-- endjs -->
Matteo Scandoloe53ee052015-11-03 14:32:00 +0100108<!-- inject:js -->
Matteo Scandoloa3839e32016-04-28 16:20:53 -0700109<!-- endinject -->