UNPKG

unserver-unify

Version:

503 lines 23.6 kB
angular.module('bamboo').constant('AppConfig', { // Application Metadata VERSION: '0.0.1', MODE: 'DEVELOPMENT', // External Services Config // SHOST: '//edushare.s3-website-ap-southeast-1.amazonaws.com', awsKey: 'AKIAIJUEHZ236NPHUBXQ', awsSecret: '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', // Languages LANGUAGE: [{ displayName: 'English', code: 'en-us' }], Claimer: 'THE SERVICE OFFERINGS ARE PROVIDED “AS IS.” WE AND OUR AFFILIATES AND LICENSORS MAKE NO REPRESENTATIONS OR WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, STATUTORY OR OTHERWISE REGARDING THE SERVICE OFFERINGS OR THE THIRD PARTY CONTENT, INCLUDING ANY WARRANTY THAT THE SERVICE OFFERINGS OR THIRD PARTY CONTENT WILL BE UNINTERRUPTED, ERROR FREE OR FREE OF HARMFUL COMPONENTS, OR THAT ANY CONTENT, INCLUDING YOUR CONTENT OR THE THIRD PARTY CONTENT, WILL BE SECURE OR NOT OTHERWISE LOST OR DAMAGED. EXCEPT TO THE EXTENT PROHIBITED BY LAW, WE AND OUR AFFILIATES AND LICENSORS DISCLAIM ALL WARRANTIES, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR QUIET ENJOYMENT, AND ANY WARRANTIES ARISING OUT OF ANY COURSE OF DEALING OR USAGE OF TRADE.', FAQ_CN: [{ title: '什么是九竹教育云平台?', content: '九竹教育云平台是一个简单易用、完全开放的面向未来学习的在线教育平台。九竹教育云平台采用当今最新的云软件服务架构设计理念(Cloud SAAS,软件即服务),应用参考了大量国内外在线教育平台系统的诸多优点。技术实现上采用了大量目前互联网应用的最新前后台开发技术,并增加了大量的面向商业在线教育系统要求的功能。' }, { title: '九竹教育云平台有哪些主要功能?', content: '九竹教育云平台的主要功能包括:课程创建、管理和发布,在线考试,数据记录和分析,进度追踪,用户管理,移动应用,视频会议等。' }, { title: '九竹教育云容易使用么?', content: '非常容易。九竹教育云平台去掉了许多不必要的操作,为用户使用扫清了障碍。用户登录后可以立即创建课程,上传视频、Flash、演示文档等多种形式的文件,还能在网上发布相关信息。' }, { title: '需要在使用在线学习平台前注册么?', content: '是的。用户需要首先注册才能登录。' }, { title: '如果我忘记了登录密码,我能够重新获取密码进行登录么?', content: '可以。用户可以通过登录界面重置密码。' }, { title: '需要在使用前安装应用程序么?', content: '不需要。用户不需要在电脑或者移动设备上安装任何软件。 九竹教育云平台可以通过浏览器直接使用。' }, { title: '九竹教育云平台对浏览器有特别要求么?', content: '有。为了更好的使用效果,建议使用Chrome 或者 Firefox 浏览器。' }, { title: '视频会议系统需要怎样的网络环境?', content: '视频会议的效果很大程度上取决于网络环境。为了保证流畅和稳定的视频效果,建议在视频会议过程中保持网络畅通。' }], FAQ_EN: [{ title: 'What is BambooCloud?', content: 'BambooCloud is an easy-to-use, open online learning platform to reshape the future of learning. It adopts the latest cloud software service, Cloud SAAS, and integrate with many advantages of domestic and international online education platform. It uses the latest techniques of Internet application and insert various functions which meet the needs of the business online education system.' }, { title: 'What is the main function of BambooCloud?', content: 'The functions include course creation, management and publication, online tests and exams, record and data analysis, progress tracking, user management, mobile application, video conference, etc.' }, { title: 'How easy is it to be productive with it?', content: 'Really easy. We have removed all major obstacles from your path. You can start working with BambooCloud immediately and you can create your courses by reusing your material (Videos, Flash, Presentations, Documents etc) or any other publicly available information on the Internet.' }, { title: 'Do I need to register to access the online learning system?', content: 'Yes, you need to register first before accessing the learning contents.' }, { title: 'I forgot the log in password, can I get back my password and log in again?', content: 'Yes, you can reset your password via the login dialog window.' }, { title: 'Do I need to install any application software?', content: 'No. You don’t need to install any software in your PC or laptop. Our learning system is browser based, you only need browser to access our online learning system.' }, { title: 'Is there any special requirement for the browser?', content: 'Yes. It is recommended that you use the Chrome or Firefox for best performance result.' }, { title: 'The network condition recommendation for our video conference system?', content: 'The video communication performance depends on much extent on the network condition. To ensure the smooth and stable performance, it is recommended a stable network communication during the video conference.' }], Market_CN: [{ title: '我需要注册吗 ?', content: '是的,只有注册用户才可以使用全部功能!' }, { title: '我忘记密码该怎么办 ?', content: '用户可以在登陆对话框上点击重置密码来取回密码。' }, { title: '视频相关功能的使用对浏览器有特殊需求吗? 需要安装什么软件吗??', content: '是的。 为了更好地使用我们的网站以及网络课堂,请大家使用我们指定的Chrome浏览。http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html' }, { title: '网络应用以及网络课堂的使用对网络的要求', content: '答案:使用WIFI连接时会出现网络不稳定现象。所以,建议在允许的情况下,为了保证网络应用以及网络课堂的顺畅使用,请使用有线连接。如果使用的是WIFI连接,也请尽量能靠近无线路由器,保障信号的稳定。' }, { title: '有测试工具来测试我的网络兼容性吗 ?', content: '是的,我们有一个帮助页面,可以用来做网络兼容性测试。' }, { title: '使用网络应用以及网络课堂时,视频无法正常工作。', content: '首先,请确保使用的电脑支持并配有摄像头。在进入网络课堂时,请按照网站提示打开摄像头。如果摄像头已经打开,但仍无法看到正常工作,请联系技术支持。' }], Market_EN: [{ title: 'Do I need to register to access the online learning system ?', content: 'Yes, you need to register first before accessing the learning contents.' }, { title: 'I forgot the log in password, can I get back my password and log in again ?', content: 'Yes, you can reset your password via the login dialog window.' }, { title: 'Do I need to install any application software ?', content: 'No. you don’t need to install any software in your PC or laptop. Our learning system is browser based, you only need browser to access our online learning system.' }, { title: 'Is there any special requirement for the browser ?', content: 'Yes, it is recommended that you use the Chrome or Firefox for best performance result. You can download it at relevant website : https://www.google.com/chrome/browser/desktop/ or https://www.mozilla.org/en-US/firefox/new/' }, { title: 'The network condition recommendation for our video conference system', content: 'The video communication performance depends on much extent on the network condition. To ensure the smooth and stable performance, it is recommended a stable network communication during the video conference. If possible the LAN cable connection is used.' }, { title: 'Is there any tool that I can use to test my network connection condition ?', content: 'Yes, we have one test tool for you to use to test the network connection condition. You can find the tool in the website help page.' }, { title: 'I used the Wifi connection, but sometimes the video conference is also poor. What should I do ?', content: 'Sometimes the computer is far away from the router and wifi signal is too weak, it may affect the communication performance as well. If the Wifi signal strength is weak, you may need to keep the computer closer to the router.' }, { title: 'After I joined the conference, I cannot see the video of myself. What is the possible root cause ?', content: 'Most likely you did not turn on your local camera. Make sure that you turn on the camera when the browser pop up widow prompt you to switch on your camera. If you turn on the camera and still cannot see the video pls contact the technical support team for further investigation. If you don’t see the browser pop up window you can refresh the browser again to see if the pop up window will show.' }, { title: 'I am using the company internal network and why sometimes I cannot see the video of other party ?', content: 'Most likely it is due to the company firewall issue. Company network admin sometimes blocks some communication port. Pls check with your network admin to clarify the port being blocked.' }], Stec_CN: [{ title: 'What is STECS eLearning Hub?', content: 'STECS eLearning Hub is an internal learning, knowledge sharing and communications platform to achieve our goals and expand employees’ capabilities.' }, { title: 'Do I need to register to access the online learning system?', content: 'No. All the employees already create an account. Please contact alson_tan@stecs.com.sg if you can’t access the online learning system.' }, { title: 'I forgot the log in password, can I get back my password and log in again?', content: 'Yes, you can reset your password via the login dialog window.' }, { title: 'Do I need to install any application software?', content: 'No. You don’t need to install any software in your PC or laptop. The Learning system is browser based, you only need browser to access our online learning system.' }, { title: 'How to use STECS eLearning Hub?', content: 'Please refer to STECS eLearning Hub Guide. ' }], Stec_EN: [{ title: 'What is STECS eLearning Hub?', content: 'STECS eLearning Hub is an internal learning, knowledge sharing and communications platform to achieve our goals and expand employees’ capabilities.' }, { title: 'Do I need to register to access the online learning system?', content: 'No. All the employees already create an account. Please contact alson_tan@stecs.com.sg if you can’t access the online learning system.' }, { title: 'I forgot the log in password, can I get back my password and log in again?', content: 'Yes, you can reset your password via the login dialog window.' }, { title: 'Do I need to install any application software?', content: 'No. You don’t need to install any software in your PC or laptop. The Learning system is browser based, you only need browser to access our online learning system.' }, { title: 'How to use STECS eLearning Hub?', content: 'Please refer to STECS eLearning Hub Guide. ' }], STEP_CN: [{ title: '系统环境测试,确保你的机器可以支持视频,语音和兼容性', content: '在菜单中点击帮助 , 点击环境测试, 测试并等待结果' }, { title: '请确保你的计算机至少有声音输入输出', content: '右键点击系统栏的声音图标,里面有声音的输入输出选项,请确保声音功能的支持。' }], STEP_EN: [{ title: 'Simple test to make sure your PC is ready for video service - Conduct Environment Test', content: 'Click the Help on top of the menu , and click and go to the Environment test, click the "Test" button and wait for result' }, { title: 'Make sure your pc do have audio capability - Audio Test', content: 'Right Click speaker icon on the windows task bar, there are 2 options available : playback device and recording device. you can check your audio setting here' }], // Error ERRORS: { default: { title: 'Not a HTTP error', description: 'The problem is, the error doesn\'t exists on our site. Are you playing around? :p' }, 401: { title: 'Not authorized', description: 'You may choose to login first to access the resource' }, 404: { title: 'File not Found', description: 'The resource that you have requested does not exists' }, 502: { title: 'Bad Gateway', description: 'You may report a bug on this issue' }, 503: { title: 'Service Timeout', description: 'You may report a bug on this issue' }, 504: { title: 'Gateway Timeout', description: 'You may report a bug on this issue' } }, ErrorSignUp: { 1001: { en: 'Info incompleted', cn: '信息不完整' }, 1002: { en: 'Username need 5 characters at least.', cn: '登录名不得少于5个字符' }, 1003: { en: 'Illegal user name', cn: '用户名格式不正确' }, 1004: { en: 'Invalid email address', cn: 'Email格式不正确' }, 1005: { en: 'Reserved User Name.', cn: '用户名不可使用' }, 1007: { en: 'UserName used', cn: '用户名已经注册' }, 1008: { en: 'Email used', cn: 'Email已经使用' }, 1009: { en: 'Domain used', cn: '域名已经使用' }, 1010: { en: 'Verification info failed', cn: '验证失败' }, 1011: { en: 'Password mismatch', cn: '密码不匹配' }, 1012: { en: 'Invalid SubDomain', cn: '域名不正确' }, 2001: { en: 'School not found!', cn: '网站不存在' }, 2002: { en: 'Exceed user limits!', cn: '已经超过用户数限制' }, }, LOGINERROR: "LoginError", // copy from admin RoleTranslate: { admin: 'Admin', teacher: 'Teacher', sysmanager: 'SysManager', iadmin: 'IAdmin', teachadmin: 'TD', sysinspector: 'Inspector', dinspector: 'DepInspector', dadmin: 'DepAdmin', comadmin: 'ComAdmin', }, RoleInfos: { Teacher: { type: 'basic', title: 'Teacher', cntitle: '教师', en: 'courseEdit courseView', cn: '课程浏览,课程编辑', default: ['examDeletion'], }, TD: { type: 'basic', title: 'TD', cntitle: 'TD', en: 'Teaching Manager', cn: '课程浏览,课程编辑', default: ['examDeletion', 'courseManagement', 'eventManagement', 'courseRecommand', 'newsManagement', 'classManagement', 'surveyManagement'], }, SysManager: { type: 'basic', title: 'System Manager', cntitle: '系统控制员', en: 'All Function Except Site Admin and Site Super Configruation', cn: '除了站点设置以外的全部权限', default: ['examDeletion', 'courseManagement', 'eventManagement', 'courseRecommand', 'newsManagement', 'classManagement', 'surveyManagement'], }, Admin: { type: 'basic', title: 'System Administrator', cntitle: '系统管理员', en: 'All Function Except Super Site Configruation', cn: '全部权限', default: ['examDeletion', 'courseManagement', 'eventManagement', 'courseRecommand', 'roleManagement', 'newsManagement', 'deptManagement', 'classManagement', 'surveyManagement'], }, Super: { type: 'basic', title: 'Super Administrator', cntitle: '超级管理员', en: 'All Function', cn: '全部权限', default: ['examDeletion', 'courseManagement', 'eventManagement', 'courseRecommand', 'roleManagement', 'newsManagement', 'deptManagement', 'classManagement', 'surveyManagement'], }, DepAdmin: { type: 'basic', title: 'Department Administrator', cntitle: '部门管理员', en: 'Department related Administrative Features', cn: '部门相关管理功能', default: ['examDeletion', 'courseManagement'], }, ComAdmin: { type: 'basic', title: 'Company Administrator', cntitle: '机构管理员', en: 'Company related Administrative Features', cn: '机构相关管理功能', default: ['examDeletion', 'courseManagement'], }, Inspector: { type: 'basic', title: 'System Inspector', cntitle: '观察员', en: 'viewing all course Information', cn: '观察全部课程信息', default: ['examDeletion'], }, DepInspector: { type: 'basic', title: 'Department Inspector', cntitle: '部门管理员', en: 'viewing all department course Information', cn: '观察部门课程信息', default: ['examDeletion'], }, IAdmin: { type: 'basic', title: 'IT Administrator', cntitle: 'IT管理员', en: 'Security and Role control', cn: '安全可角色控制', default: ['roleManagement'], }, NewsAdmin: { type: 'additional', title: 'News Administrator', cntitle: '新闻管理员', en: 'News / Annoucement Editing and Management', cn: '新闻类信息编辑及管理', default: ['newsManagement'], }, BlogAdmin: { type: 'additional', title: 'Blogs Administrator', cntitle: '博客管理员', en: 'Blog Editing and Management', cn: '博客编辑及管理', default: [], }, BbsAdmin: { type: 'additional', title: 'BBS Administrator', cntitle: 'BBS管理员', en: 'BBS Editing and Management', cn: 'BBS 编辑及管理', default: [], }, ForumAdmin: { type: 'additional', title: 'Forum Administrator', cntitle: '论坛管理员', en: 'Forum Editing and Management', cn: '论坛编辑及管理', default: [], }, SiteAdmin: { type: 'additional', title: 'Site Administrator', cntitle: '网站管理员', en: 'Site/System Editing and Management', cn: '网站系统设置 ', default: [], }, AssetAdmin: { type: 'additional', title: 'Asset Administrator', cntitle: '资产管理员', en: 'Asset (building, room and etc) Editing and Management', cn: '资产管理', default: [], }, EventAdmin: { type: 'additional', title: 'Event Administrator', cntitle: '活动管理员', en: 'Event Editing and Management', cn: '活动创建,编辑等管理', default: [], }, SecurityAdmin: { type: 'additional', title: 'Security Administrator', cntitle: '安全管理员', en: 'Security Editing and Management', cn: '安全相关权限设置', default: [], }, RolesAdmin: { type: 'additional', title: 'Roles Administrator', cntitle: '角色管理员', en: 'Role Type Editing and Management', cn: '角色相关权限设置', default: ['roleManagement'], }, Viewer: { type: 'basic', title: 'Viewer', cntitle: '观察员', en: 'Course and System info viewing', cn: '课程及系统信息观察', default: ['courseResult', 'courseReport'], }, }, Permissions: ['courseManagement', 'examDeletion', 'eventManagement', 'courseReport', 'surveyManagement', 'newsManagement', 'courseRecommand', 'roleManagement', 'deptManagement', 'classManagement'], // Log levels LOG_LEVELS: { debug: 4, log: 3, info: 2, warn: 1, error: 0 }, CHARTOPTIONS: { // Sets the chart to be responsive responsive: true, ///Boolean - Whether grid lines are shown across the chart scaleShowGridLines: true, //String - Colour of the grid lines scaleGridLineColor: "rgba(0,0,0,.05)", //Number - Width of the grid lines scaleGridLineWidth: 1, //Boolean - Whether the line is curved between points bezierCurve: false, //Boolean - Whether to show a dot for each point pointDot: true, //Number - Radius of each point dot in pixels pointDotRadius: 4, //Number - Pixel width of point dot stroke pointDotStrokeWidth: 1, //Number - amount extra to add to the radius to cater for hit detection outside the drawn point pointHitDetectionRadius: 4, //Boolean - Whether to show a stroke for datasets datasetStroke: true, //Number - Pixel width of dataset stroke datasetStrokeWidth: 2, //Boolean - Whether to fill the dataset with a colour datasetFill: false, // Function - on animation progress onAnimationProgress: function() {}, // Function - on animation complete onAnimationComplete: function() {}, //String - A legend template legendTemplate: '<ul class="tc-chart-js-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>' }, ResouceIcons: { html: "fa fa-html5", html5: "fa fa-object-group", lms: "fa fa-newspaper-o", lms2004: "fa fa-newspaper-o", ppt: "fa fa-file-powerpoint-o", ppts: "fa fa-file-powerpoint-o", mp4: 'fa fa-video-camera', youtube: 'fa fa-youtube-play', poetry: 'fa fa-book', youku: 'fa fa-chevron-circle-right', flash: 'fa fa-line-chart', test: 'fa fa-pencil-square', pdf: 'fa fa-file-pdf-o', doc: 'fa fa-file-word-o', word: 'fa fa-gamepad', eword: 'fa fa-cubes', audioexp: 'fa fa-headphones', docs: 'fa fa-file-word-o', docx: 'fa fa-file-word-o', xls: 'fa fa-file-excel-o', xlsx: 'fa fa-file-excel-o', reading: 'fa fa-volume-up', mp3: 'fa fa-music', mp3ppt: 'fa fa-file-audio-o', chapterexam: 'fa fa-pencil-square-o', exam: 'fa fa-pencil-square-o', chooseans: 'fa fa-pencil-square-o', quiz: 'fa fa-question', article: 'fa fa-file-text-o', assignment: 'fa fa-list', vimeo: 'fa fa-vimeo', mp4ppt: 'fa fa-file-video-o', ebook: 'fa fa-book', img: 'fa fa-picture-o', mp4quiz: 'fa fa-question fa-video-camera', onlinequizvimeo: 'fa fa-question fa-vimeo', onlinequizyoutube: 'fa fa-question fa-youtube-play', msoffice: 'fa fa-windows', openoffice: 'fa fa-file', bishun: "fa fa-strikethrough", idiom: "fa fa-commenting-o", dragfill: "fa fa-pencil-square-o", fillblank: "fa fa-pencil-square-o", coursesurvey: "fa fa-check-square-o fa-fw" }, /* constant for videogular theme file */ videogular_theme: 'assets/libs/videogular-themes-default/videogular.min.css' });