Added onos-ui-archetype as a partial archetype to bootstrap UI development.
Modified onos-cli-archetype to be a partial archetype.
Change-Id: I172bca5f67519f052bbb116486b3f1d7c51bc4bf
diff --git a/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.css b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.css
new file mode 100644
index 0000000..9e4e761
--- /dev/null
+++ b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.css
@@ -0,0 +1,16 @@
+/* css for sample app view */
+
+#ov-sample p {
+ margin: 0 30px;
+ padding: 10px;
+ border: 2px solid;
+}
+
+.light #ov-sample p {
+ color: darkblue;
+ border-color: #88c;
+}
+.dark #ov-sample p {
+ color: #aac;
+ border-color: #448;
+}
\ No newline at end of file
diff --git a/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.html b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.html
new file mode 100644
index 0000000..eec3de9
--- /dev/null
+++ b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.html
@@ -0,0 +1,7 @@
+
+<!-- partial HTML -->
+<div id="ov-sample">
+ <h2>Sample App View</h2>
+
+ <p> {{ctrl.msg}} </p>
+</div>
\ No newline at end of file
diff --git a/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.js b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.js
new file mode 100644
index 0000000..313236e
--- /dev/null
+++ b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/resources/app/view/sample/sample.js
@@ -0,0 +1,16 @@
+// js for sample app view
+(function () {
+ 'use strict';
+
+ angular.module('ovSample', [])
+ .controller('OvSampleCtrl',
+ ['$log', '$scope',
+
+ function ($log, $scope) {
+ var self = this;
+
+ self.msg = 'A message from our app...';
+
+ $log.log('OvSampleCtrl has been created');
+ }]);
+}());