From fa9aeb9d5b6aba71f4fcb5ee775de823eb82cf19 Mon Sep 17 00:00:00 2001 From: Seshu-Kumar-M Date: Sat, 11 Feb 2017 03:03:11 +0530 Subject: Client framework usage guide Client framework usage guide. Issue-Id : CLIENT-153 Change-Id: Ifd6166810d0180adaa1d5cfcc703164fdc99f41b Signed-off-by: Seshu-Kumar-M --- .../src/main/webapp/usage guide/appserver/api.js | 311 -- .../usage guide/appserver/data/buttonsData.json | 30 - .../usage guide/appserver/data/checkboxData.json | 8 - .../usage guide/appserver/data/dropdownData.json | 18 - .../usage guide/appserver/data/functionalData.json | 6 - .../webapp/usage guide/appserver/data/input.json | 1 - .../webapp/usage guide/appserver/data/list.json | 76 - .../usage guide/appserver/data/radioData.json | 14 - .../usage guide/appserver/data/shortNote.json | 17 - .../appserver/node_modules/body-parser/index.js | 157 - .../appserver/node_modules/body-parser/lib/read.js | 188 - .../node_modules/body-parser/lib/types/json.js | 175 - .../node_modules/body-parser/lib/types/raw.js | 101 - .../body-parser/node_modules/bytes/index.js | 157 - .../body-parser/node_modules/bytes/package.json | 84 - .../body-parser/node_modules/content-type/index.js | 216 -- .../node_modules/content-type/package.json | 70 - .../body-parser/node_modules/debug/.jshintrc | 3 - .../body-parser/node_modules/debug/.npmignore | 6 - .../body-parser/node_modules/debug/History.md | 195 -- .../body-parser/node_modules/debug/Makefile | 36 - .../body-parser/node_modules/debug/Readme.md | 188 - .../body-parser/node_modules/debug/bower.json | 28 - .../body-parser/node_modules/debug/browser.js | 168 - .../body-parser/node_modules/debug/component.json | 19 - .../body-parser/node_modules/debug/debug.js | 197 -- .../body-parser/node_modules/debug/node.js | 209 -- .../node_modules/debug/node_modules/ms/.npmignore | 5 - .../node_modules/debug/node_modules/ms/History.md | 66 - .../main/webapp/usage guide/browser/css/RMain.css | 239 -- .../main/webapp/usage guide/browser/css/VMMain.css | 758 ---- .../webapp/usage guide/browser/css/open-ostyle.css | 952 ------ .../src/main/webapp/usage guide/browser/index.html | 53 - .../src/main/webapp/usage guide/browser/js/app.js | 1383 -------- .../src/main/webapp/usage guide/browser/js/rest.js | 150 - .../main/webapp/usage guide/browser/template.html | 44 - .../usage guide/browser/templateContainer.html | 79 - .../usage guide/browser/templateFunctional.html | 53 - .../usage guide/browser/templateNotification.html | 48 - .../webapp/usage guide/browser/templateWidget.html | 213 -- .../usage guide/browser/templates/accordion.html | 26 - .../usage guide/browser/templates/buttons.html | 38 - .../usage guide/browser/templates/checkBoxes.html | 25 - .../usage guide/browser/templates/courses.html | 32 - .../usage guide/browser/templates/dropdown.html | 42 - .../usage guide/browser/templates/functional.html | 32 - .../webapp/usage guide/browser/templates/home.html | 154 - .../webapp/usage guide/browser/templates/list.html | 47 - .../usage guide/browser/templates/login.html | 40 - .../usage guide/browser/templates/management.html | 130 - .../browser/templates/notification.html | 30 - .../browser/templates/radioButtons.html | 28 - .../usage guide/browser/templates/register.html | 47 - .../usage guide/browser/templates/table.html | 48 - .../webapp/usage guide/browser/templates/tabs.html | 27 - .../usage guide/browser/templates/textarea.html | 121 - .../webapp/usage guide/browser/templates/tree.html | 25 - .../usage guide/browser/templates/verticalTab.html | 28 - .../browser/thirdparty/css/bootstrap.min.css | 7 - .../browser/thirdparty/css/img/Thumbs.db | Bin 2560 -> 0 bytes .../browser/thirdparty/css/img/diy/1_close.png | Bin 601 -> 0 bytes .../browser/thirdparty/css/img/diy/1_open.png | Bin 580 -> 0 bytes .../browser/thirdparty/css/img/diy/2.png | Bin 570 -> 0 bytes .../browser/thirdparty/css/img/diy/3.png | Bin 762 -> 0 bytes .../browser/thirdparty/css/img/diy/4.png | Bin 399 -> 0 bytes .../browser/thirdparty/css/img/diy/5.png | Bin 710 -> 0 bytes .../browser/thirdparty/css/img/diy/6.png | Bin 432 -> 0 bytes .../browser/thirdparty/css/img/diy/7.png | Bin 534 -> 0 bytes .../browser/thirdparty/css/img/diy/8.png | Bin 529 -> 0 bytes .../browser/thirdparty/css/img/diy/9.png | Bin 467 -> 0 bytes .../browser/thirdparty/css/img/line_conn.gif | Bin 45 -> 0 bytes .../browser/thirdparty/css/img/loading.gif | Bin 381 -> 0 bytes .../browser/thirdparty/css/img/zTreeStandard.gif | Bin 5564 -> 0 bytes .../browser/thirdparty/css/img/zTreeStandard.png | Bin 11173 -> 0 bytes .../browser/thirdparty/css/magic-check.css | 123 - .../browser/thirdparty/css/zTreeStyle.css | 97 - .../fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes .../fonts/glyphicons-halflings-regular.svg | 288 -- .../fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes .../browser/thirdparty/images/collapse_arrow.png | Bin 1174 -> 0 bytes .../browser/thirdparty/images/expand_arrow.png | Bin 1182 -> 0 bytes .../browser/thirdparty/images/openo.png | Bin 49007 -> 0 bytes .../browser/thirdparty/images/searchicon.png | Bin 366 -> 0 bytes .../browser/thirdparty/js/angular-ui-router.min.js | 8 - .../browser/thirdparty/js/angular.min.js | 295 -- .../js/bootstrap-table-filter-control.min.js | 7 - .../browser/thirdparty/js/bootstrap-table.min.js | 8 - .../browser/thirdparty/js/bootstrap.min.js | 6 - .../browser/thirdparty/js/jquery.ztree.core-3.5.js | 70 - .../browser/thirdparty/js/jquery_1.12.4.min.js | 5 - .../usage guide/browser/thirdparty/js/mustache.js | 630 ---- .../browser/thirdparty/js/tree.jquery.js | 3616 -------------------- 94 files changed, 12801 deletions(-) delete mode 100644 common/src/main/webapp/usage guide/appserver/api.js delete mode 100644 common/src/main/webapp/usage guide/appserver/data/buttonsData.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/checkboxData.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/dropdownData.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/functionalData.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/input.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/list.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/radioData.json delete mode 100644 common/src/main/webapp/usage guide/appserver/data/shortNote.json delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/index.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/lib/read.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/lib/types/json.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/lib/types/raw.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/bytes/index.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/bytes/package.json delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/content-type/index.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/content-type/package.json delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/.jshintrc delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/.npmignore delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/History.md delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/Makefile delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/Readme.md delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/bower.json delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/browser.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/component.json delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/debug.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/node.js delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/node_modules/ms/.npmignore delete mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/node_modules/ms/History.md delete mode 100644 common/src/main/webapp/usage guide/browser/css/RMain.css delete mode 100644 common/src/main/webapp/usage guide/browser/css/VMMain.css delete mode 100644 common/src/main/webapp/usage guide/browser/css/open-ostyle.css delete mode 100644 common/src/main/webapp/usage guide/browser/index.html delete mode 100644 common/src/main/webapp/usage guide/browser/js/app.js delete mode 100644 common/src/main/webapp/usage guide/browser/js/rest.js delete mode 100644 common/src/main/webapp/usage guide/browser/template.html delete mode 100644 common/src/main/webapp/usage guide/browser/templateContainer.html delete mode 100644 common/src/main/webapp/usage guide/browser/templateFunctional.html delete mode 100644 common/src/main/webapp/usage guide/browser/templateNotification.html delete mode 100644 common/src/main/webapp/usage guide/browser/templateWidget.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/accordion.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/buttons.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/checkBoxes.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/courses.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/dropdown.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/functional.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/home.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/list.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/login.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/management.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/notification.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/radioButtons.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/register.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/table.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/tabs.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/textarea.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/tree.html delete mode 100644 common/src/main/webapp/usage guide/browser/templates/verticalTab.html delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/bootstrap.min.css delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/Thumbs.db delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/1_close.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/1_open.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/2.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/3.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/4.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/5.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/6.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/7.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/8.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/diy/9.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/line_conn.gif delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/loading.gif delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/zTreeStandard.gif delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/img/zTreeStandard.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/magic-check.css delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/css/zTreeStyle.css delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/fonts/glyphicons-halflings-regular.eot delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/fonts/glyphicons-halflings-regular.svg delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/fonts/glyphicons-halflings-regular.ttf delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/fonts/glyphicons-halflings-regular.woff delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/images/collapse_arrow.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/images/expand_arrow.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/images/openo.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/images/searchicon.png delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/angular-ui-router.min.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/angular.min.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/bootstrap-table-filter-control.min.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/bootstrap-table.min.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/bootstrap.min.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/jquery.ztree.core-3.5.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/jquery_1.12.4.min.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/mustache.js delete mode 100644 common/src/main/webapp/usage guide/browser/thirdparty/js/tree.jquery.js diff --git a/common/src/main/webapp/usage guide/appserver/api.js b/common/src/main/webapp/usage guide/appserver/api.js deleted file mode 100644 index d6517f11..00000000 --- a/common/src/main/webapp/usage guide/appserver/api.js +++ /dev/null @@ -1,311 +0,0 @@ -/* - - Copyright 2016-2017, Huawei Technologies Co., Ltd. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -var express = require('express'); -var router = express.Router(); -/*var js2xmlparser = require("js2xmlparser"); -var xml2js = require('xml2js');*/ -var fs = require('fs'); -var http = require('http'); -var bodyParser = require('body-parser'); -var path=require('path'); - -var MongoClient = require('mongodb').MongoClient; -var ObjectId = require('mongodb').ObjectId; - -var url = 'mongodb://localhost/rest_test'; - -/*var exists = require('file-exists');*/ - -// ############################################ Sign In code ################################################# -// Routes -router.post('/signin', function (req, res) { - console.log("signin"); - var obj = { - "name": req.body.name, - "pswd": req.body.pswd - }; - - var ObjLst =[] ; - var nameExist =0; - console.log(obj); - ObjLst = JSON.parse(fs.readFileSync('./data/input.json', 'utf8')); - for(var index = 0; index < ObjLst.length; index++) { - if (ObjLst[index].name === req.body.name && ObjLst[index].pswd === req.body.pswd) { - console.log("success"); - nameExist++; - res.statusCode=200; - res.statusMessage="Sucessfully loged in"; - break; - } - } - if (nameExist != 1) { - console.log("failed"); - res.statusCode=404; - res.statusMessage="failed to login"; - } - res.send(); -}); - -// ############################################ Sign Up Code ################################################# - -router.post('/signup', function (req, res) { - - console.log("in api.js"); - - var ObjLst =[] ; - var nameNotExist =0; - var obj = { - "name": req.body.name, - "pswd": req.body.pswd, - "email": req.body.email - }; - if(fs.existsSync("./data/input.json")) { - console.log("File Exist"); - ObjLst = JSON.parse(fs.readFileSync('./data/input.json', 'utf8')); - } - - for(var index = 0; index < ObjLst.length; index++) { - if (ObjLst[index].name === req.body.name && ObjLst[index].email === req.body.email) { - console.log("success"); - nameNotExist++; - break; - } - } - if (nameNotExist == 0) { - ObjLst.push(obj); - console.log(ObjLst); - fs.writeFile('./data/input.json', JSON.stringify(ObjLst), function(err) { - if (err) { - return console.error(err); - } - console.log("Data written successfully!"); - console.log("Let's read newly written data"); - res.statusCode=200; - res.statusMessage="Sucessfully signed up"; - }); - } - res.send(); -}); - -function getDataFrmProvince() { - var provinceData =[] ; - if(fs.existsSync("./data/provinceData.json")) { - console.log("File Exist"); - provinceData = JSON.parse(fs.readFileSync('./data/provinceData.json', 'utf8')); - } - return provinceData; -} - -function saveDataToProvince(provinceData) { - fs.writeFile('./data/provinceData.json', JSON.stringify(provinceData), function(err) { - var statueCode = 0; - if (err) { - console.error(err); - return statueCode = 404; - } - console.log("Data written successfully!"); - console.log("Let's read newly written data"); - return statueCode = 200; - }); -} - -function getIndexOfIdProvince(id) { - var provinceData = getDataFrmProvince(); - var returnIndx = -1; - for (var index = 0; index < provinceData.length; index++) { - if(provinceData[index].id == id) { - returnIndx = index; - break; - } - } - return returnIndx; -} - -function deleteIdFromProvince(idList) { - var provinceData = getDataFrmProvince(); - /*for (var index = 0; index < provinceData.length; index++) { - if(provinceData[index].id == id) { - console.log("Deleting id : " + index); - provinceData.splice(index, 1); - break; - } - }*/ - for(var i = 0; i < idList.length; i++) { - for (var index = 0; index < provinceData.length; index++) { - if(provinceData[index].id == idList[i]) { - console.log("Deleting id : " + index); - provinceData.splice(index, 1); - break; - } - } - } - return provinceData; -} - -router.get('/getAllProvinceData', function (req, res) { - var provinceData = getDataFrmProvince(); - if(provinceData) { - output = '{"provinceData" : ' + JSON.stringify(provinceData) + '}'; - - res.setHeader("Content-Type", "application/json"); - console.log("output : " + JSON.stringify(output)); - res.end(output); - } - /*MongoClient.connect(url, function(err, db) { - console.log("Connected... :-)"); - var cursor = db.collection('ProvinceData').find({},function(err, cursor) { - cursor.toArray(function (err, items) { - output = '{"provinceData" : ' + JSON.stringify(items) + '}'; - - res.setHeader("Content-Type", "application/json"); - //console.log("output : " + JSON.stringify(output)); - res.end(output); - }); - }); - db.close(function(){ - console.log("Connection Closed... :-)"); - }); - });*/ -}); - - -router.post('/addProvinceData', function(req, res) { - var provinceData = getDataFrmProvince(); - var gen_id = Math.floor(Math.random() * (9999 - 1000 + 1)) + 1000; - provinceData.push({ - "id": gen_id, - "province_name": req.body.province_name, - "ip": req.body.ip, - "port": req.body.port - }); - var statusCode = saveDataToProvince(provinceData); - res.statusCode=statusCode; - - if(statusCode == 200) { - res.statusMessage="Sucessfully signed up"; - } - else { - res.statusMessage="Error"; - } - - /*MongoClient.connect(url, function(err, db) { - db.collection('ProvinceData').insertOne({ - province_name: req.body.province_name, - ip: req.body.ip, - port: req.body.port - }); - db.close(); - });*/ - res.statusCode=200; - res.statusMessage="Sucessfully signed up"; - res.send(); -}); - -router.post('/deleteProvinceData', function (req, res) { - //var provinceData = getDataFrmProvince(); - console.log("IdList: "+ req.body.idList); - /*for(var i = req.body.idList.length - 1; i >= 0; i--) { - var index = getIndexOfIdProvince(req.body.idList[i]); - console.log("Deleting id : " + index); - if(index != -1) { - provinceData.splice(index, 1); - } - //deleteIdFromProvince(req.body.idList[i]); - };*/ - - var provinceData = deleteIdFromProvince(req.body.idList); - - saveDataToProvince(provinceData); - - /*MongoClient.connect(url, function(err, db) { - - console.log("Deleting Province Data... " + req.body.idList); - for(var i = 0; i < req.body.idList.length; i++) { - db.collection('ProvinceData').deleteOne({ "_id": ObjectId(req.body.idList[i])}); - } - /!*db.collection('ProvinceData').deleteOne({ "_id": ObjectId(req.body.idList)});*!/ - - db.close(function(){ - console.log("Connection Closed... :-)"); - }); - res.send(); - });*/ - res.statusCode=200; - res.statusMessage="Sucessfully signed up"; - res.send(); -}); - -router.post('/editProvinceData', function (req, res) { - var provinceData = getDataFrmProvince(); - var index = getIndexOfIdProvince(req.body.id); - console.log("Editing id : " + index); - if(index != -1) { - provinceData[index].province_name = req.body.province_name; - provinceData[index].ip = req.body.ip; - provinceData[index].port = req.body.port; - } - saveDataToProvince(provinceData); - - res.statusCode=200; - res.statusMessage="Sucessfully signed up"; - res.send(); - /*MongoClient.connect(url, function(err, db) { - - console.log("Editing Province Data... " + req.body._id); - db.collection('ProvinceData').updateOne( - { "_id": ObjectId(req.body._id)}, - { - $set: {'province_name': req.body.province_name, 'ip': req.body.ip, 'port': req.body.port} - } - ); - - db.close(function(){ - console.log("Connection Closed... :-)"); - }); - res.send(); - });*/ -}); - - -///////////////////////////////////////////////// To Read JSON data for all widgets ////////////////////////////////////////// - -function getDataFrmJSON(wdgtType) { - var jsonData =[] ; - if(fs.existsSync("./data/"+wdgtType+".json")) { - console.log("File Exist"); - jsonData = JSON.parse(fs.readFileSync('./data/'+wdgtType+'.json', 'utf8')); - } - return jsonData; -} - -router.post('/getAllJSONData', function (req, res) { - var jsonData = getDataFrmJSON(req.body.wdgtType); - if(jsonData) { - output = '{"data" : ' + JSON.stringify(jsonData) + '}'; - res.setHeader("Content-Type", "application/json"); - console.log("output : " + JSON.stringify(output)); - res.end(output); - } -}); - -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -// Return router -module.exports = router; - diff --git a/common/src/main/webapp/usage guide/appserver/data/buttonsData.json b/common/src/main/webapp/usage guide/appserver/data/buttonsData.json deleted file mode 100644 index 0176461c..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/buttonsData.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "default_btn_data" : { - "def_button" : {"title":"Default"}, - "def_print_button" : {"title":"Print", "type":"btn btn-default", "gType": "glyphicon-print", "iconPosition":"left"}, - "def_print_button_right" : {"title":"Search", "type":"btn btn-default", "gType": "glyphicon-search", "iconPosition":"right"} - }, - - "visual_btn_data" : { - "vis_pri_btn_data" : {"title":"Primary", "type":"primary"}, - "vis_sec_btn_data" : {"title":"Secondary", "type":"secondary"}, - "vis_succ_btn_data" : {"title":"Success", "type":"success"}, - "vis_inf_btn_data" : {"title":"Info", "type":"info"}, - "vis_warn_btn_data" : {"title":"Warning", "type":"warning"}, - "vis_dang_btn_data" : {"title":"Danger", "type":"danger"}, - "vis_link_btn_data" : {"title":"Link", "type":"link"} - }, - - "diffSize_btn_data" : { - "size_small_btn_data" : {"title": "Small Button", "type": "primary", "size": "btn-sm"}, - "size_large_btn_data" : {"title": "Large Button", "type": "primary", "size": "btn-lg"}, - "size_block_btn_data" : {"title": "Large Block Button", "type": "primary", "size": "btn-lg btn-block"} - }, - - "icon_btn_data" : { - "search_icon_btn_data" : {"title": "Search Icon", "type": "btn-default", "gType": "glyphicon-search"}, - "search_icon_styled_btn_data" : {"title": "Styled Search Icon", "type": "primary", "gType": "glyphicon-search"}, - "print_icon_btn_data" : {"title": "Print", "type": "primary btn-lg", "gType": "glyphicon-print"} - } - -} diff --git a/common/src/main/webapp/usage guide/appserver/data/checkboxData.json b/common/src/main/webapp/usage guide/appserver/data/checkboxData.json deleted file mode 100644 index f86d319d..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/checkboxData.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "checkbox_default_data" : {"id":1, "label":"Default check box", "type":"default", "checked":true}, - "checkbox_primary_data" : {"id":2, "label":"Primary check box", "type":"primary", "checked":false}, - "checkbox_success_data" : {"id":3, "label":"Success check box", "type":"success", "checked":true}, - "checkbox_danger_data" : {"id":4, "label":"Danger check box", "type":"danger", "checked":true}, - "checkbox_warn_data" : {"id":5, "label":"Warn check box", "type":"warning", "checked":false}, - "checkbox_info_data" : {"id":6, "label":"Info check box", "type":"info", "checked":true} -} \ No newline at end of file diff --git a/common/src/main/webapp/usage guide/appserver/data/dropdownData.json b/common/src/main/webapp/usage guide/appserver/data/dropdownData.json deleted file mode 100644 index a02e31c0..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/dropdownData.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "dropped_down_data" :{"title":"DropDown","position":"down", "items":[{"itemLabel": "Node JS"},{"itemLabel": "JS"}]}, - "dropped_up_data" : {"title":"DropUp","position":"up", "items":[{"itemLabel": "PHP"},{"itemLabel": "ASP"}]}, - "dropHeader_data" :{"title":"DropHeader","position":"down", - "items":[{"itemLabel": "Web UI", "isheader":true}, - {"itemLabel": "HTML", "isheader":false}, - {"itemLabel": "CSS", "isheader":false}, - {"itemLabel": "JS", "isheader":false}, - {"itemLabel": "Programming", "isheader":true}, - {"itemLabel": "C", "isheader":false}, - {"itemLabel": "C++", "isheader":false}] - }, - "dropSimple_data" : {"title":"Gadgets", - "items":[ - {"itemLabel": "Cameras"},{"itemLabel": "Mobile Phones"},{"itemLabel": "Computers"},{"itemLabel": "Monitors"},{"itemLabel": "Tablets"},{"itemLabel": "Others"} - ] - } -} \ No newline at end of file diff --git a/common/src/main/webapp/usage guide/appserver/data/functionalData.json b/common/src/main/webapp/usage guide/appserver/data/functionalData.json deleted file mode 100644 index 35b66f49..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/functionalData.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "create_data" : {"title":"Create", "labels":[{"text": "Username", "input_id":"username", "type":"text"},{"text": "Password", "input_id":"username", "type":"password"}], "showClose":"true","closeBtnTxt":"Cancel","msg":"This is Create dialog box", "buttons":[{"text": "Ok"}]}, - "modify_data" : {"title":"Modify", "labels":[{"text": "Username", "input_id":"username", "type":"text"},{"text": "Password", "input_id":"username", "type":"password"}], "showClose":"true","closeBtnTxt":"Cancel","msg":"This is Modify dialog box", "buttons":[{"text": "Ok"}]}, - "delete_data" : {"title":"Delete", "showClose":"true","closeBtnTxt":"Cancel","msg":"This is Delete dialog box", "buttons":[{"text": "Ok"}]}, - "workflow_data" : {"title":"Workflow","showClose":"true","closeBtnTxt":"Cancel","msg":"This is Workflow dialog box", "buttons":[{"text": "Ok"}]} -} diff --git a/common/src/main/webapp/usage guide/appserver/data/input.json b/common/src/main/webapp/usage guide/appserver/data/input.json deleted file mode 100644 index 7126e781..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/input.json +++ /dev/null @@ -1 +0,0 @@ -[{"name":"shahid","pswd":"shahid","email":"shahid@gmail.com"},{"name":"noor","pswd":"noor","email":"noor@lnt.com"}] \ No newline at end of file diff --git a/common/src/main/webapp/usage guide/appserver/data/list.json b/common/src/main/webapp/usage guide/appserver/data/list.json deleted file mode 100644 index 505bbcc2..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/list.json +++ /dev/null @@ -1,76 +0,0 @@ -[ - { - "id": "113", - "title": "Movies", - "subMenu": [ - { - "title":"Sci-fi", - "subsubMenu":[ - {"title":"Intersteller"}, - {"title":"Inception"}, - {"title":"The Arrival"}, - {"title":"The Paycheck"} - ] - }, - { - "title":"Animation", - "subsubMenu":[ - {"title":"Big Hero"}, - {"title":"Monster University"}, - {"title":"Frozen"}, - {"title":"Car"} - ] - }, - { - "title":"Action", - "subsubMenu":[ - {"title":"Mission Impossible"}, - {"title":"The Expendables"} - ] - }, - { - "title":"Horror", - "subsubMenu":[ - {"title":"Evil Dead"}, - {"title":"Anebelle"} - ] - }, - { - "title":"Comedy", - "subsubMenu":[ - {"title":"Superbad"}, - {"title":"Airplane"}, - {"title":"Clueless"} - ] - } - ] - }, - { - "id": "211", - "title": "Games", - "subMenu": [{"title":"Outdoor Games", "subsubMenu":[{"title":"Cricket"},{"title":"Football"}, {"title":"Volleyball"}, {"title":"Hockey"}]}, {"title":"Indoor Games", "subsubMenu":[{"title":"Carroms"},{"title":"Table Tennis"}]}, {"title":"Puzzles", "subsubMenu":[{"title":"Sudoku"},{"title":"Chess"}]}, {"title":"Card Games", "subsubMenu":[{"title":"UNO"},{"title":"RUMMY"}]}] - }, - { - "id": "037", - "title": "Animals", - "subMenu": [{"title":"Mammals", "subsubMenu":[{"title":"Monkey"},{"title":"Elephant"}]}, {"title":"Birds", "subsubMenu":[{"title":"Parrot"},{"title":"Ostrich"},{"title":"Eagle"}]}, {"title":"Reptiles", "subsubMenu":[{"title":"Snake"},{"title":"Lizard"},{"title":"Cameleon"}]}] - }, - { - "id": "127", - "title": "Vehicles", - "subMenu": [{"title":"Cars", "subsubMenu":[{"title":"Audi"},{"title":"Range Rover"}]}, {"title":"Bikes", "subsubMenu":[{"title":"Apache"},{"title":"Pulsar"},{"title":"FZ"},{"title":"Jupiter"},{"title":"Victor"},{"title":"Avengers"}]}, {"title":"Cycles", "subsubMenu":[{"title":"Hero"},{"title":"Lady Bird"},{"title":"Firefox"}]}] - }, - { - "id": "181", - "title": "Languages", - "subMenu": [{"title":"English"}, {"title":"French"}, {"title":"Chinese"}, {"title":"Hindi"}] - }, - { - "id": "210", - "title": "Continents", - "subMenu": [{"title":"Asia", "subsubMenu":[{"title":"India"},{"title":"China"}]}, {"title":"Africa", "subsubMenu":[{"title":"South Africa"},{"title":"Kenya"},{"title":"Zimbabwe"}]}] - } -] - - - diff --git a/common/src/main/webapp/usage guide/appserver/data/radioData.json b/common/src/main/webapp/usage guide/appserver/data/radioData.json deleted file mode 100644 index da0daa47..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/radioData.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "radio_btn_default_data" : {"id":1, "label":"Default Radio Btn", "type":"default", "checked":false}, - "radio_btn_primary_data" : {"id":2, "label":"Primary Radio Btn", "type":"primary", "checked":false}, - "radio_btn_success_data" : {"id":3, "label":"Success Radio Btn", "type":"success", "checked":true}, - "radio_btn_danger_data" : {"id":4, "label":"Danger Radio Btn", "type":"danger", "checked":false}, - "radio_btn_Warn_data" : {"id":5, "label":"Warn Radio Btn", "type":"warning", "checked":false}, - "radio_btn_info_data" : {"id":6, "label":"Info Radio Btn", "type":"info", "checked":false} -} - - - - - - diff --git a/common/src/main/webapp/usage guide/appserver/data/shortNote.json b/common/src/main/webapp/usage guide/appserver/data/shortNote.json deleted file mode 100644 index 6b2942a8..00000000 --- a/common/src/main/webapp/usage guide/appserver/data/shortNote.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "treeTip":"Ztree", - "accordionTip":"Use the data-parent attribute to make sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.", - "tabTip":"Tabs are created with