UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

68 lines (59 loc) 1.58 kB
var entities = require( '../wms/entities' ); var model = require( './models/WidgetConfiguration' ); var dbConfig = require( '../db.config.js' ); var mongoose = require( 'mongoose' ); mongoose.connect( dbConfig.connectionString ); model.create( entities, function( err, result ) { console.log( 'error' ); console.log( err ); console.log( result ); } ); /* * { entityType: "/Sales/Quote", icon: "<i class=\"fa fa-quote-right\"></i>", displayName: "Quote", displayNameWithArticle: "a quote", tabs: [], guid: "ccc65480-2d8c-12e6-98af-43f586d4a24c", widgets: [], suggestedSearchFilter: [], includeSuggestedSearches: false, created: ISODate("2016-06-08T15:22:23.560Z"), isDefault: true, __v: NumberLong("0") } ---- { _id: ObjectId("577e10eed8a0b64cc8c085be") entityType: "/Sales/Sale", icon: "<i class=\"fa fa-briefcase\"></i>", displayName: "Sale", displayNameWithArticle: "a sale", tabs: [], guid: "ccc65480-2d8c-13e6-98af-43f586d4a24c", widgets: [], suggestedSearchFilter: [], includeSuggestedSearches: false, created: ISODate("2016-06-08T15:22:23.560Z"), isDefault: true, __v: NumberLong("0") } ---- { _id: ObjectId("577e1197787aef2c4a837ae7"), entityType: "/SourceCode/Deployment", icon: "<i class=\"fa fa-ship\"></i>", displayName: "Deployment", displayNameWithArticle: "a deployment", tabs: [], guid: "ccc65480-2d8c-13e6-98af-43f586d4a24c", widgets: [], suggestedSearchFilter: [], includeSuggestedSearches: false, created: ISODate("2016-06-08T15:22:23.560Z"), isDefault: true, __v: NumberLong("0") } ---- * */