Last active
July 26, 2017 08:28
-
-
Save AndreaPaciolla/1702793c41bb108dc17834ed6a60304d to your computer and use it in GitHub Desktop.
jsonSchemaRealWorldExample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "dwx-widget-chat", | |
"version": "8.0.1", | |
"authors": [ | |
"Objectway" | |
], | |
"ignore": [], | |
"dependencies": { | |
"ofsui": "^6.x", | |
"typedefinitions": "^4.x", | |
"webrtcsupport": "https://github.com/Objectway/webrtcsupport.git", | |
"howler.js": "howler#^2.0.1", | |
"favico.js": "^0.3.10", | |
"kurento-client": "master", | |
"kurento-room": "^6.x", | |
"ua-parser-js": "~0.7.1", | |
"ng-embed": "2.1.0", | |
"dwx-chat-commons": "^0.x" | |
}, | |
"schema": { | |
"general": { | |
"type": "object", | |
"properties": { | |
"CHAT_INFO": { | |
"type": "object", | |
"properties": { | |
"firefoxScreensharingExtensionUrl":{ | |
"type": "string", | |
"default": "<default_firefox>" | |
}, | |
"firefoxScreensharingExtensionFingerprint": { | |
"type": "string", | |
"default": "<default_firefox_sha>" | |
}, | |
"chromeScreensharingExtensionUrl": { | |
"type": "string", | |
"default": "<default_chrome>" | |
} | |
} | |
}, | |
"FILE_CHAT": { | |
"type": "object", | |
"properties": { | |
"fileFormatsAllowed": { | |
"type": "string", | |
"default": "pdf,txt,doc,docx,xls,xlsx,ppt,pptx" | |
}, | |
"maxFileSizeAllowed": { | |
"type": "number", | |
"default": "5242880" | |
} | |
} | |
}, | |
"ABILITIES": { | |
"type": "object", | |
"properties": { | |
"screensharing": { | |
"type": "boolean" | |
}, | |
"audiocall": { | |
"type": "boolean" | |
}, | |
"videocall": { | |
"type": "boolean" | |
}, | |
"resolutionconfig": { | |
"type": "boolean" | |
}, | |
"filesharing": { | |
"type": "boolean" | |
} | |
} | |
}, | |
"TITLE": { | |
"description": "Chat title", | |
"type": "string", | |
"default": "default title" | |
}, | |
"CHAT_MESSAGE_EMBED_CONF": { | |
"type": "object", | |
"properties": { | |
"link":{ "type": "boolean", "default": true }, | |
"linkTarget": { "type": "string", "default": "_blank" }, | |
"pdf": { | |
"type": "object", | |
"properties": { | |
"embed": { | |
"type": "boolean", | |
"default": true | |
} | |
} | |
}, | |
"image": { | |
"type": "object", | |
"properties": { | |
"embed": { | |
"type": "boolean", | |
"default": false | |
} | |
} | |
}, | |
"audio": { | |
"type": "object", | |
"properties": { | |
"embed": { | |
"type": "boolean", | |
"default": true | |
} | |
} | |
}, | |
"code":{ | |
"type": "object", | |
"properties": { | |
"highlight": { | |
"type": "boolean", | |
"default": false | |
}, | |
"lineNumbers": { | |
"type": "boolean", | |
"default": false | |
} | |
} | |
}, | |
"basicVideo":{ "type": "boolean", "default": false }, | |
"gdevAuth": { "type": "string", "default": "AIzaSyAUqbVsXVtRSHh7r6iO7vrHml2frkBVEBc" }, | |
"video": { | |
"type": "object", | |
"properties": { | |
"embed": { | |
"type": "boolean", | |
"default": true | |
}, | |
"width": { | |
"type": "number", | |
"default": 320 | |
}, | |
"height": { | |
"type": "number", | |
"default": 175 | |
}, | |
"ytTheme": { | |
"type": "string", | |
"default": "dark" | |
}, | |
"details": { | |
"type": "boolean", | |
"default": false | |
}, | |
"autoPlay": { | |
"type": "boolean", | |
"default": false | |
} | |
} | |
}, | |
"tweetEmbed":{ "type": "boolean", "default": false }, | |
"tweetOptions":{ | |
"type": "object", | |
"properties": { | |
"maxWidth": { | |
"type": "number", | |
"default": 550 | |
}, | |
"hideMedia": { | |
"type": "boolean", | |
"default": false | |
}, | |
"hideThread": { | |
"type": "boolean", | |
"default": false | |
}, | |
"align": { | |
"type": "string", | |
"default": "none" | |
}, | |
"lang": { | |
"type": "string", | |
"default": "en" | |
} | |
} | |
}, | |
"twitchtvEmbed":{ "type": "boolean", "default": true }, | |
"dailymotionEmbed":{ "type": "boolean", "default": true }, | |
"tedEmbed":{ "type": "boolean", "default": true }, | |
"dotsubEmbed":{ "type": "boolean", "default": true }, | |
"liveleakEmbed":{ "type": "boolean", "default": true }, | |
"soundCloudEmbed":{ "type": "boolean", "default": true }, | |
"soundCloudOptions":{ | |
"type": "object", | |
"properties": { | |
"height": { | |
"type": "number", | |
"default": 160 | |
}, | |
"themeColor": { | |
"type": "string", | |
"default": "f50000" | |
}, | |
"autoPlay": { | |
"type": "boolean", | |
"default": false | |
}, | |
"hideRelated": { | |
"type": "boolean", | |
"default": false | |
}, | |
"showComments": { | |
"type": "boolean", | |
"default": true | |
}, | |
"showUser": { | |
"type": "boolean", | |
"default": true | |
}, | |
"showReposts": { | |
"type": "boolean", | |
"default": false | |
}, | |
"visual": { | |
"type": "boolean", | |
"default": false | |
}, | |
"download": { | |
"type": "boolean", | |
"default": false | |
} | |
} | |
}, | |
"spotifyEmbed": { "type": "boolean", "default": true }, | |
"codepenEmbed": { "type": "boolean", "default": true }, | |
"codepenHeight": { "type": "number", "default": 300 }, | |
"jsfiddleEmbed": { "type": "boolean", "default": true }, | |
"jsfiddleHeight": { "type": "number", "default": 300 }, | |
"jsbinEmbed": { "type": "boolean", "default": true }, | |
"jsbinHeight": { "type": "number", "default": 300 }, | |
"plunkerEmbed": { "type": "boolean", "default": true }, | |
"githubgistEmbed": { "type": "boolean", "default": true }, | |
"ideoneEmbed": { "type": "boolean", "default": true }, | |
"ideoneHeight": { "type": "number", "default": 300 } | |
} | |
} | |
}, | |
"required": ["TITLE"] | |
}, | |
"filters": { | |
"type": "object", | |
"properties": { | |
} | |
}, | |
"tables": { | |
"type": "object", | |
"properties": { | |
} | |
} | |
}, | |
"localization": [ | |
{ | |
"labelKey": "widget.chat.messages.text.usertyping" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.text.sendplaceholder" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.filesharing.sharedocuments" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.filesharing.maxfilesize" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.filesharing.uploadingfile" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.filesharing.abortupload" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.filesharing.shareddocument" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.statusbox.useroffline.title" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.statusbox.useroffline.description" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.statusbox.connectionerror.title" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.statusbox.connectionerror.description" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.statusbox.fileerror.title" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.meta.callclosed" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.meta.callrejected" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.meta.callaccepted" | |
}, | |
{ | |
"labelKey": "widget.chat.messages.loadmore" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.incoming.videocallfrom" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.incoming.audiocallfrom" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.incoming.screensharingfrom" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.incoming.accept" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.incoming.reject" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.incoming.hwnotfound" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.outgoing.title" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.outgoing.stop" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.extensionerror.title" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.extensionerror.description" | |
}, | |
{ | |
"labelKey": "widget.chat.modal.extensionerror.dismiss" | |
}, | |
{ | |
"labelKey": "widget.chat.usehere.text" | |
}, | |
{ | |
"labelKey": "widget.chat.usehere.button" | |
}, | |
{ | |
"labelKey": "widget.chat.contacts.searchplaceholder" | |
}, | |
{ | |
"labelKey": "widget.chat.contacts.nocontactsfound" | |
}, | |
{ | |
"labelKey": "widget.chat.settings.dontdisturb.title" | |
}, | |
{ | |
"labelKey": "widget.chat.settings.dontdisturb.description" | |
}, | |
{ | |
"labelKey": "widget.chat.settings.notifications.title" | |
}, | |
{ | |
"labelKey": "widget.chat.settings.notifications.description" | |
}, | |
{ | |
"labelKey": "widget.chat.settings.videoresolution.title" | |
}, | |
{ | |
"labelKey": "widget.chat.settings.videoresolution.description" | |
}, | |
{ | |
"labelKey": "widget.chat.stream.screensharing.alert" | |
}, | |
{ | |
"labelKey": "widget.chat.header.backtocontacts" | |
}, | |
{ | |
"labelKey": "widget.chat.header.settings" | |
}, | |
{ | |
"labelKey": "widget.chat.header.contacts" | |
}, | |
{ | |
"labelKey": "widget.chat.generic.chatunavailable" | |
}, | |
{ | |
"labelKey": "widget.chat.generic.maxsizenotallowed" | |
}, | |
{ | |
"labelKey": "widget.chat.generic.filetypenotallowed" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment