How to use title method in istanbul

Best JavaScript code snippet using istanbul

menu.js

Source:menu.js Github

copy

Full Screen

1export function systemMenuList() {2 return [3 { id: 'zdfx', title: '终端分析系统', icon: 'icon-kefu', href: '' },4 // {5 // id: "qyhj",6 // title: "企业函件管理",7 // icon: "icon-peoplelist",8 // href: ""9 // },10 // { id: "gdxt", title: "工单管理系统", icon: "icon-mail", href: "" },11 { id: 'wxgl', title: '维修管理系统', icon: 'icon-label', href: '' },12 { id: 'dldd', title: '运力调度管理', icon: 'icon-find', href: '' },13 { id: 'fwpt', title: '服务平台管理', icon: 'icon-monitor', href: '' },14 { id: 'hyyx', title: '行业运行情况', icon: 'icon-taxi', href: '' },15 { id: 'sjdj', title: '运政数据接入', icon: 'icon-report', href: '' },16 { id: 'zffw', title: '支付服务', icon: 'icon-form', href: '' }17 // {id:'swxc', title:'导航屏升级', icon: 'icon-consultation', href: ''}18 ]19}20export function childrenMenuList() {21 return {22 zdfx: [23 { id: 'zjgz', title: '主机故障', icon: 'icon-gzxx', href: '/zdfx/zjgz' },24 {25 id: 'zdyc',26 title: '终端异常告警',27 icon: 'icon-zdxx',28 href: '/zdfx/zdyc'29 },30 {31 id: 'whltj',32 title: '完好率统计',33 icon: 'icon-tjxx',34 href: '/zdfx/whltj'35 },36 {37 id: 'clgl',38 title: '车辆管理',39 icon: 'icon-manage',40 fullPath: '/zdfx/clgl',41 children: [42 {43 id: 'zxcltj',44 title: '在线车辆统计',45 icon: 'icon-tjxx',46 href: '/zdfx/clgl/zxcltj'47 },48 {49 id: 'wsxclcx',50 title: '未上线车辆查询',51 icon: 'icon-cxxx',52 href: '/zdfx/clgl/wsxclcx'53 },54 {55 id: 'wyysjcl',56 title: '无营运数据车辆',57 icon: 'icon-cxxx',58 href: '/zdfx/clgl/wyysjcl'59 },60 {61 id: 'wqdqt',62 title: '无签到签退',63 icon: 'icon-cxxx',64 href: '/zdfx/clgl/wqdqt'65 }66 ]67 },68 {69 id: 'gsglysjhgl',70 title: '公司管理员手机号管理',71 icon: 'icon-wxxx',72 href: '/zdfx/gsglysjhgl'73 },74 // {75 // id: "spyc",76 // title: "视频异常",77 // icon: "icon-ycxx",78 // href: "/zdfx/spyc"79 // },80 {81 id: 'spyw',82 title: '视频异常巡检',83 icon: 'icon-xcxx',84 href: '/zdfx/spyw'85 },86 {87 id: 'wxgdcx',88 title: '维修工单',89 icon: 'icon-wxxx',90 href: '/zdfx/wxgdcx'91 },92 {93 id: 'zjgzlsjl',94 title: '主机故障历史记录',95 icon: 'icon-lsxx',96 href: '/zdfx/zjgzlsjl'97 },98 {99 id: 'ofdxcl',100 title: '偶发掉线车辆',101 icon: 'icon-manage',102 fullPath: '/zdfx/ofdxcl',103 children: [104 {105 id: 'ofdxclcx',106 title: '偶发掉线车辆查询',107 icon: 'icon-cxxx',108 href: '/zdfx/ofdxcl/ofdxclcx'109 },110 {111 id: 'ofdxcltj',112 title: '偶发掉线车辆统计',113 icon: 'icon-tjxx',114 href: '/zdfx/ofdxcl/ofdxcltj'115 }116 ]117 },118 {119 id: 'zdqy',120 title: '重点区域',121 icon: 'icon-manage',122 fullPath: '/zdfx/zdqy',123 children: [124 {125 id: 'zdqygl',126 title: '重点区域管理',127 icon: 'icon-manage',128 href: '/zdfx/zdqy/zdqygl'129 },130 {131 id: 'zdqyclslssfx',132 title: '区域车辆数量实时分析',133 icon: 'icon-cxxx',134 href: '/zdfx/zdqy/zdqyclslssfx'135 },136 {137 id: 'zdqyclslybb',138 title: '区域车辆数量月报表',139 icon: 'icon-cxxx',140 href: '/zdfx/zdqy/zdqyclslybb'141 },142 {143 id: 'zdqyclslbnbb',144 title: '区域车辆数量半年报表',145 icon: 'icon-cxxx',146 href: '/zdfx/zdqy/zdqyclslbnbb'147 },148 {149 id: 'zdqyclslnbb',150 title: '区域车辆数量年报表',151 icon: 'icon-cxxx',152 href: '/zdfx/zdqy/zdqyclslnbb'153 },154 {155 id: 'zdjkqyczcslyj',156 title: '监控区域出租车数量预警',157 icon: 'icon-manage',158 href: '/zdfx/zdqy/zdjkqyczcslyj'159 },160 {161 id: 'ycczgctjcl',162 title: '异常处置过程添加处理',163 icon: 'icon-manage',164 href: '/zdfx/zdqy/ycczgctjcl'165 },166 {167 id: 'ycczbg',168 title: '异常处置报告',169 icon: 'icon-manage',170 href: '/zdfx/zdqy/ycczbg'171 }172 ]173 },174 {175 id: 'ycfx',176 title: '异常分析',177 icon: 'icon-manage',178 fullPath: '/zdfx/ycfx',179 children: [180 {181 id: 'ycsjbj',182 title: '异常数据查询',183 icon: 'icon-cxxx',184 href: '/zdfx/ycfx/ycsjbj'185 },186 {187 id: 'nczcbylfx',188 title: '年出租车保有量分析',189 icon: 'icon-cxxx',190 href: '/zdfx/ycfx/nczcbylfx'191 },192 {193 id: 'jjqycyyfx',194 title: '计价器异常营运分析',195 icon: 'icon-cxxx',196 href: '/zdfx/ycfx/jjqycyyfx'197 },198 {199 id: 'yylcycfx',200 title: '营运里程异常分析',201 icon: 'icon-cxxx',202 href: '/zdfx/ycfx/yylcycfx'203 },204 {205 id: 'yydcycfx',206 title: '营运单次异常分析',207 icon: 'icon-cxxx',208 href: '/zdfx/ycfx/yydcycfx'209 },210 {211 id: 'ystp',212 title: '疑似套牌',213 icon: 'icon-cxxx',214 href: '/zdfx/ycfx/ystp'215 },216 {217 id: 'yshc',218 title: '疑似黑车',219 icon: 'icon-cxxx',220 href: '/zdfx/ycfx/yshc'221 },222 {223 id: 'zdclyywzsjts',224 title: '车辆营运违章数据推送',225 icon: 'icon-cxxx',226 href: '/zdfx/ycfx/zdclyywzsjts'227 },228 {229 id: 'sjycgd',230 title: '数据异常工单',231 icon: 'icon-cxxx',232 href: '/zdfx/ycfx/sjycgd'233 },234 {235 id: 'zdclyywzjc',236 title: '重点车辆营运违章稽查',237 icon: 'icon-manage',238 href: '/zdfx/ycfx/zdclyywzjc'239 }240 ]241 },242 {243 id: 'sjzl',244 title: '数据质量',245 icon: 'icon-manage',246 fullPath: '/zdfx/sjzl',247 children: [248 {249 id: 'ycsjbjzgbb',250 title: '异常数据报警整改报表',251 icon: 'icon-cxxx',252 href: '/zdfx/sjzl/ycsjbjzgbb'253 },254 {255 id: 'sjzlzb',256 title: '数据质量周报',257 icon: 'icon-tjxx',258 href: '/zdfx/sjzl/sjzlzb'259 },260 {261 id: 'sjzlyb',262 title: '数据质量月报',263 icon: 'icon-tjxx',264 href: '/zdfx/sjzl/sjzlyb'265 },266 {267 id: 'sjzlbnb',268 title: '数据质量半年报',269 icon: 'icon-tjxx',270 href: '/zdfx/sjzl/sjzlbnb'271 },272 {273 id: 'sjzlnb',274 title: '数据质量年报',275 icon: 'icon-tjxx',276 href: '/zdfx/sjzl/sjzlnb'277 }278 ]279 }280 ],281 qyhj: [282 {283 id: 'hjtj',284 title: '函件添加',285 icon: 'el-icon-plus',286 href: '/qyhj/hjtj'287 },288 { id: 'hjfs', title: '函件发送', icon: 'icon-fsxx', href: '/qyhj/hjfs' },289 { id: 'hjcx', title: '函件查询', icon: 'icon-cxxx', href: '/qyhj/hjcx' },290 { id: 'hjsh', title: '函件审核', icon: 'icon-shxx', href: '/qyhj/hjsh' },291 { id: 'hjfw', title: '函件服务', icon: 'icon-kefu', href: '/qyhj/hjfw' },292 {293 id: 'hjfwtj',294 title: '函件服务统计',295 icon: 'icon-tjxx',296 href: '/qyhj/hjfwtj'297 },298 {299 id: 'btclgl',300 title: '报停车辆管理',301 icon: 'icon-manage',302 href: '/qyhj/btclgl'303 },304 {305 id: 'btcltj',306 title: '报停车辆统计',307 icon: 'icon-tjxx',308 href: '/qyhj/btcltj'309 }310 ],311 gdxt: [312 { id: 'gdpf', title: '工单派发', icon: 'icon-pfxx', href: '/gdxt/gdpf' },313 {314 id: 'gdgl',315 title: '工单管理',316 icon: 'icon-manage',317 href: '/gdxt/gdgl'318 },319 { id: 'gdtj', title: '工单统计', icon: 'icon-tjxx', href: '/gdxt/gdtj' }320 ],321 wxgl: [322 {323 id: 'wxzlbg',324 title: '维修质量报告',325 icon: 'icon-form',326 href: '/wxgl/wxzlbg'327 },328 {329 id: 'wxjlcx',330 title: '维修记录查询',331 icon: 'icon-cxxx',332 href: '/wxgl/wxjlcx'333 },334 {335 id: 'wxjltj',336 title: '维修记录统计',337 icon: 'icon-tjxx',338 href: '/wxgl/wxjltj'339 }340 ],341 dldd: [342 {343 id: 'dlddcx',344 title: '运力调度查询',345 icon: 'icon-cxxx',346 href: '/dldd/dlddcx'347 },348 {349 id: 'dlddtj',350 title: '运力调度统计',351 icon: 'icon-tjxx',352 href: '/dldd/dlddtj'353 }354 ],355 fwpt: [356 {357 id: 'qyfzxcx',358 title: '企业分中心查询',359 icon: 'icon-cxxx',360 href: '/fwpt/qyfzxcx'361 },362 {363 id: 'qyfzxtj',364 title: '企业分中心统计',365 icon: 'icon-tjxx',366 href: '/fwpt/qyfzxtj'367 },368 {369 id: 'scfzxcx',370 title: '手持分中心查询',371 icon: 'icon-cxxx',372 href: '/fwpt/scfzxcx'373 },374 {375 id: 'scfzxtj',376 title: '手持分中心统计',377 icon: 'icon-tjxx',378 href: '/fwpt/scfzxtj'379 },380 {381 id: 'wxglcx',382 title: '维修管理查询',383 icon: 'icon-cxxx',384 href: '/fwpt/wxglcx'385 },386 {387 id: 'wxgltj',388 title: '维修管理统计',389 icon: 'icon-tjxx',390 href: '/fwpt/wxgltj'391 },392 {393 id: 'wazcx',394 title: '终端未安装查询',395 icon: 'icon-cxxx',396 href: '/fwpt/wazcx'397 },398 {399 id: 'aztj',400 title: '安装情况统计',401 icon: 'icon-tjxx',402 href: '/fwpt/aztj'403 },404 {405 id: 'ydaz',406 title: '月度安装分析',407 icon: 'icon-fxxx',408 href: '/fwpt/ydaz'409 },410 {411 id: 'spgl',412 title: '审批管理',413 icon: 'icon-manage',414 fullPath: '/fwpt/spgl',415 children: [416 {417 id: 'clzrsp',418 title: '车辆转入审批',419 icon: 'icon-shxx',420 href: '/fwpt/spgl/clzrsp'421 },422 {423 id: 'cpbgsp',424 title: '车牌号变更审批',425 icon: 'icon-shxx',426 href: '/fwpt/spgl/cpbgsp'427 },428 {429 id: 'cpbtsp',430 title: '车辆报停审批',431 icon: 'icon-shxx',432 href: '/fwpt/spgl/cpbtsp'433 },434 {435 id: 'clzcsp',436 title: '车辆转出审批',437 icon: 'icon-shxx',438 href: '/fwpt/spgl/clzcsp'439 },440 {441 id: 'sjjrsp',442 title: '数据接入审批',443 icon: 'icon-shxx',444 href: '/fwpt/spgl/sjjrsp'445 },446 {447 id: 'axywycjlsp',448 title: '爱心业务用车记录审批',449 icon: 'icon-shxx',450 href: '/fwpt/spgl/axywycjlsp'451 },452 {453 id: 'tyxcsp',454 title: '停运协查审批',455 icon: 'icon-shxx',456 href: '/fwpt/spgl/tyxcsp'457 },458 {459 id: 'clzrtj',460 title: '车辆转入统计',461 icon: 'icon-tjxx',462 href: '/fwpt/spgl/clzrtj'463 },464 {465 id: 'cphbgtj',466 title: '车牌号变更统计',467 icon: 'icon-tjxx',468 href: '/fwpt/spgl/cphbgtj'469 },470 {471 id: 'btcltj',472 title: '报停车辆统计',473 icon: 'icon-tjxx',474 href: '/fwpt/spgl/btcltj'475 },476 {477 id: 'clzctj',478 title: '车辆转出统计',479 icon: 'icon-tjxx',480 href: '/fwpt/spgl/clzctj'481 }482 ]483 },484 {485 id: 'hcgl',486 title: '回场管理',487 icon: 'icon-manage',488 fullPath: '/fwpt/hcgl',489 children: [490 {491 id: 'hcclcx',492 title: '回场车辆查询',493 icon: 'icon-cxxx',494 href: '/fwpt/hcgl/hcclcx'495 },496 {497 id: 'hcbbtj',498 title: '回场报表统计',499 icon: 'icon-tjxx',500 href: '/fwpt/hcgl/hcbbtj'501 },502 {503 id: 'washcclcx',504 title: '未按时回场车辆查询',505 icon: 'icon-cxxx',506 href: '/fwpt/hcgl/washcclcx'507 },508 {509 id: 'hcgssz',510 title: '回场公司设置',511 icon: 'icon-wxxx',512 href: '/fwpt/hcgl/hcgssz'513 },514 {515 id: 'hcqysz',516 title: '回场区域设置',517 icon: 'icon-wxxx',518 href: '/fwpt/hcgl/hcqysz'519 }520 ]521 }522 ],523 hyyx: [524 {525 id: 'dcyyqk',526 title: '单车营运情况',527 icon: 'icon-qkxx',528 href: '/hyyx/dcyyqk'529 },530 {531 id: 'hyyyqk',532 title: '行业营运情况',533 icon: 'icon-qkxx',534 href: '/hyyx/hyyyqk'535 },536 {537 id: 'hypjyxqk',538 title: '行业平均运行情况',539 icon: 'icon-qkxx',540 href: '/hyyx/hypjyxqk'541 },542 {543 id: 'qyclyyqk',544 title: '企业车辆营运情况',545 icon: 'icon-qkxx',546 href: '/hyyx/qyclyyqk'547 },548 {549 id: 'jsysrqk',550 title: '驾驶员收入情况',551 icon: 'icon-qkxx',552 href: '/hyyx/jsysrqk'553 },554 {555 id: 'clyxph',556 title: '车辆运行排行',557 icon: 'icon-phxx',558 href: '/hyyx/clyxph'559 },560 {561 id: 'ylxqrd',562 title: '运力需求热点',563 icon: 'icon-rdxx',564 href: '/hyyx/ylxqrd'565 },566 {567 id: 'dcrdod',568 title: '打车热点OD分析',569 icon: 'icon-fxxx',570 fullPath: '/hyyx/dcrdod',571 children: [572 {573 id: 'odyysj',574 title: 'OD营运数据分析',575 icon: 'icon-fxxx',576 href: '/hyyx/dcrdod/odyysj'577 },578 {579 id: 'odlxtj',580 title: 'OD流向统计',581 icon: 'icon-tjxx',582 href: '/hyyx/dcrdod/odlxtj'583 },584 {585 id: 'odlxt',586 title: 'OD流向图',587 icon: 'icon-kefu',588 href: '/hyyx/dcrdod/odlxt'589 }590 ]591 },592 {593 id: 'yjtfwz',594 title: '夜间停放位置分析',595 icon: 'icon-fxxx',596 href: '/hyyx/yjtfwz'597 },598 {599 id: 'dcxqrdwz',600 title: '打车需求热点位置分析',601 icon: 'icon-fxxx',602 href: '/hyyx/dcxqrdwz'603 },604 {605 id: 'cllxwz',606 title: '车辆流向位置分析',607 icon: 'icon-fxxx',608 href: '/hyyx/cllxwz'609 },610 {611 id: 'jsywftj',612 title: '驾驶员违法统计',613 icon: 'icon-tjxx',614 href: '/hyyx/jsywftj'615 },616 { id: 'tscx', title: '投诉查询', icon: 'icon-cxxx', href: '/hyyx/tscx' },617 {618 id: 'yxzbzxcl',619 title: '运行中不在线车辆',620 icon: 'icon-cxxx',621 href: '/hyyx/yxzbzxcl'622 },623 {624 id: 'yxzbzxcltj',625 title: '运行中不在线车辆统计',626 icon: 'icon-tjxx',627 href: '/hyyx/yxzbzxcltj'628 },629 {630 id: 'sjqdqtcx',631 title: '司机签到签退查询',632 icon: 'icon-cxxx',633 href: '/hyyx/sjqdqtcx'634 },635 {636 id: 'zpsj',637 title: '抓拍数据',638 icon: 'icon-sjxx',639 fullPath: '/hyyx/zpsj',640 children: [641 {642 id: 'zpsjcx',643 title: '抓拍数据查询',644 icon: 'icon-cxxx',645 href: '/hyyx/zpsj/zpsjcx'646 },647 {648 id: 'calltj',649 title: '场站流量统计',650 icon: 'icon-tjxx',651 href: '/hyyx/zpsj/calltj'652 },653 {654 id: 'rlltj',655 title: '日流量统计',656 icon: 'icon-tjxx',657 href: '/hyyx/zpsj/rlltj'658 },659 {660 id: 'fdlltj',661 title: '分段流量统计',662 icon: 'icon-tjxx',663 href: '/hyyx/zpsj/fdlltj'664 }665 ]666 }667 ],668 sjdj: [669 { id: 'clxx', title: '车辆信息', icon: 'icon-taxi', href: '/sjdj/clxx' },670 {671 id: 'jsyxx',672 title: '驾驶员信息',673 icon: 'icon-user',674 href: '/sjdj/jsyxx'675 },676 { id: 'gsxx', title: '公司信息', icon: 'icon-gsxx', href: '/sjdj/gsxx' },677 { id: 'jbxx', title: '交班信息', icon: 'icon-jbxx', href: '/sjdj/jbxx' },678 {679 id: 'fwzlpt',680 title: '服务质量平台',681 icon: 'icon-kefu',682 href: '/sjdj/fwzlpt'683 }684 ],685 zffw: [686 {687 id: 'zfmxcx',688 title: '支付明细查询',689 icon: 'icon-cxxx',690 href: '/zffw/zfmxcx'691 },692 {693 id: 'zfzdtf',694 title: '支付账单统计',695 icon: 'icon-tjxx',696 href: '/zffw/zfzdtf'697 }698 ]699 }...

Full Screen

Full Screen

sites.js

Source:sites.js Github

copy

Full Screen

1const sites = [2 {3 key: 'subo',4 name: '速播资源站',5 url: 'https://www.subo988.com',6 new: 'https://www.subo988.com/?m=vod-index-pg-{page}.html',7 view: 'https://www.subo988.com/?m=vod-type-id-{id}-pg-{page}.html',8 search: 'https://www.subo988.com/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',9 type: 0,10 tags: [11 {12 title: '最新',13 id: 0,14 children: []15 },16 {17 title: '电影',18 id: 1,19 children: [20 {21 title: '动作片',22 id: 523 },24 {25 title: '喜剧片',26 id: 627 },28 {29 title: '爱情片',30 id: 731 },32 {33 title: '科幻片',34 id: 835 },36 {37 title: '恐怖片',38 id: 939 },40 {41 title: '剧情片',42 id: 1043 },44 {45 title: '战争片',46 id: 1147 },48 {49 title: '伦理片',50 id: 1651 }52 ]53 },54 {55 title: '连续剧',56 id: 2,57 children: [58 {59 title: '国产剧',60 id: 1261 },62 {63 title: '香港剧',64 id: 1365 },66 {67 title: '日本剧',68 id: 1469 },70 {71 title: '欧美剧',72 id: 1573 },74 {75 title: '台湾剧',76 id: 1777 },78 {79 title: '韩国剧',80 id: 1881 },82 {83 title: '海外剧',84 id: 1985 }86 ]87 },88 {89 title: '综艺',90 id: 3,91 children: []92 },93 {94 title: '动漫',95 id: 4,96 children: []97 },98 {99 title: '音乐MV',100 id: 20,101 children: []102 }103 ]104 },105 {106 key: 'zuixinzy',107 name: '最新资源网',108 url: 'http://www.zuixinzy.net',109 new: 'http://www.zuixinzy.net/?m=vod-index-pg-{page}.html',110 view: 'http://www.zuixinzy.net/?m=vod-type-id-{id}-pg-{page}.html',111 search: 'http://www.zuixinzy.net/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',112 type: 0,113 tags: [114 {115 title: '最新',116 id: 0,117 children: []118 },119 {120 title: '电影',121 id: 1,122 children: [123 {124 title: '动作片',125 id: 5126 },127 {128 title: '喜剧片',129 id: 6130 },131 {132 title: '爱情片',133 id: 7134 },135 {136 title: '科幻片',137 id: 8138 },139 {140 title: '恐怖片',141 id: 9142 },143 {144 title: '剧情片',145 id: 10146 },147 {148 title: '战争片',149 id: 11150 },151 {152 title: '传记片',153 id: 27154 },155 {156 title: '纪录片',157 id: 19158 },159 {160 title: '伦理片',161 id: 21162 },163 {164 title: '犯罪片',165 id: 22166 },167 {168 title: '情色片',169 id: 23170 },171 {172 title: '奇幻片',173 id: 24174 },175 {176 title: '惊悚片',177 id: 25178 },179 {180 title: '悬疑片',181 id: 28182 }183 ]184 },185 {186 title: '连续剧',187 id: 2,188 children: [189 {190 title: '国产剧',191 id: 12192 },193 {194 title: '香港剧',195 id: 13196 },197 {198 title: '韩国剧',199 id: 14200 },201 {202 title: '欧美剧',203 id: 15204 },205 {206 title: '台湾剧',207 id: 16208 },209 {210 title: '日本剧',211 id: 17212 },213 {214 title: '海外剧',215 id: 18216 }217 ]218 },219 {220 title: '综艺片',221 id: 3,222 children: []223 },224 {225 title: '动漫片',226 id: 4,227 children: []228 },229 {230 title: '福利片',231 id: 30,232 children: []233 },234 {235 title: '解说',236 id: 34,237 children: []238 }239 ]240 },241 {242 key: '123ku',243 name: '123资源网',244 url: 'https://www.123ku.com',245 new: 'https://www.123ku.com/?m=vod-index-pg-{page}.html',246 view: 'https://www.123ku.com/?m=vod-type-id-{id}-pg-{page}.html',247 search: 'https://www.123ku.com/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',248 type: 0,249 tags: [250 {251 title: '最新',252 id: 0,253 children: []254 },255 {256 title: '电影',257 id: 1,258 children: [259 {260 title: '动作片',261 id: 5262 },263 {264 title: '喜剧片',265 id: 6266 },267 {268 title: '爱情片',269 id: 7270 },271 {272 title: '科幻片',273 id: 8274 },275 {276 title: '恐怖片',277 id: 9278 },279 {280 title: '剧情片',281 id: 10282 },283 {284 title: '战争片',285 id: 11286 },287 {288 title: '伦理片',289 id: 16290 }291 ]292 },293 {294 title: '电视剧',295 id: 2,296 children: [297 {298 title: '国产剧',299 id: 12300 },301 {302 title: '香港剧',303 id: 13304 },305 {306 title: '韩国剧',307 id: 14308 },309 {310 title: '美国剧',311 id: 15312 },313 {314 title: '海外剧',315 id: 17316 },317 {318 title: '台湾剧',319 id: 18320 },321 {322 title: '日本剧',323 id: 19324 },325 {326 title: '泰国剧',327 id: 21328 }329 ]330 },331 {332 title: '综艺',333 id: 3,334 children: []335 },336 {337 title: '动漫',338 id: 4,339 children: []340 }341 ]342 },343 {344 key: '209zy',345 name: '209资源网',346 url: 'http://www.209zy.com',347 new: 'http://www.209zy.com/?m=vod-index-pg-{page}.html',348 view: 'http://www.209zy.com/?m=vod-type-id-{id}-pg-{page}.html',349 search: 'http://www.209zy.com/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',350 type: 0,351 tags: [352 {353 title: '最新',354 id: 0,355 children: []356 },357 {358 title: '电影',359 id: 1,360 children: [361 {362 title: '动作片',363 id: 5364 },365 {366 title: '喜剧片',367 id: 6368 },369 {370 title: '爱情片',371 id: 7372 },373 {374 title: '科幻片',375 id: 8376 },377 {378 title: '恐怖片',379 id: 9380 },381 {382 title: '剧情片',383 id: 10384 },385 {386 title: '战争片',387 id: 11388 },389 {390 title: '伦理片',391 id: 16392 },393 {394 title: '纪录片',395 id: 25396 },397 {398 title: '奇幻片',399 id: 26400 }401 ]402 },403 {404 title: '连续剧',405 id: 2,406 children: [407 {408 title: '国产剧',409 id: 12410 },411 {412 title: '港剧',413 id: 13414 },415 {416 title: '韩剧',417 id: 14418 },419 {420 title: '欧美剧',421 id: 15422 },423 {424 title: '日剧',425 id: 20426 },427 {428 title: '台剧',429 id: 21430 },431 {432 title: '泰剧',433 id: 22434 },435 {436 title: '越南剧',437 id: 23438 }439 ]440 },441 {442 title: '综艺',443 id: 3,444 children: []445 },446 {447 title: '动漫',448 id: 4,449 children: []450 }451 ]452 },453 {454 key: '265zy',455 name: '超快资源网',456 url: 'http://265zy.cc',457 new: 'http://265zy.cc/?m=vod-index-pg-{page}.html',458 view: 'http://265zy.cc/?m=vod-type-id-{id}-pg-{page}.html',459 search: 'http://265zy.cc/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',460 type: 0,461 tags: [462 {463 title: '最新',464 id: 0,465 children: []466 },467 {468 title: '电影',469 id: 1,470 children: [471 {472 title: '动作片',473 id: 5474 },475 {476 title: '喜剧片',477 id: 6478 },479 {480 title: '爱情片',481 id: 7482 },483 {484 title: '科幻片',485 id: 8486 },487 {488 title: '恐怖片',489 id: 9490 },491 {492 title: '剧情片',493 id: 10494 },495 {496 title: '战争片',497 id: 11498 },499 {500 title: '动画片',501 id: 20502 },503 {504 title: '伦理片',505 id: 21506 },507 {508 title: '纪录片',509 id: 22510 },511 {512 title: '写真片',513 id: 26514 },515 {516 title: '粤语片',517 id: 28518 },519 {520 title: '奇幻片',521 id: 30522 },523 {524 title: '悬疑片',525 id: 31526 },527 {528 title: '犯罪片',529 id: 32530 },531 {532 title: '惊悚片',533 id: 33534 }535 ]536 },537 {538 title: '连续剧',539 id: 2,540 children: [541 {542 title: '国产剧',543 id: 12544 },545 {546 title: '港剧',547 id: 13548 },549 {550 title: '韩剧',551 id: 14552 },553 {554 title: '美剧',555 id: 15556 },557 {558 title: '台剧',559 id: 16560 },561 {562 title: '日剧',563 id: 17564 },565 {566 title: '泰剧',567 id: 18568 },569 {570 title: '海外剧',571 id: 23572 }573 ]574 },575 {576 title: '综艺',577 id: 3,578 children: []579 },580 {581 title: '动漫',582 id: 4,583 children: []584 },585 {586 title: '微电影',587 id: 29,588 children: []589 }590 ]591 },592 {593 key: '666zy',594 name: '哈酷资源网',595 url: 'http://www.666zy.com',596 new: 'http://www.666zy.com/?m=vod-index-pg-{page}.html',597 view: 'http://www.666zy.com/?m=vod-type-id-{id}-pg-{page}.html',598 search: 'http://www.666zy.com/index.php?m=vod-search-pg-{page}-wd-{keywords}.html',599 type: 0,600 tags: [601 {602 title: '最新',603 id: 0,604 children: []605 },606 {607 title: '电影',608 id: 1,609 children: [610 {611 title: '动作片',612 id: 5613 },614 {615 title: '喜剧片',616 id: 6617 },618 {619 title: '爱情片',620 id: 7621 },622 {623 title: '科幻片',624 id: 8625 },626 {627 title: '恐怖片',628 id: 9629 },630 {631 title: '剧情片',632 id: 10633 },634 {635 title: '战争片',636 id: 11637 },638 {639 title: '动画片',640 id: 20641 },642 {643 title: '伦理片',644 id: 21645 },646 {647 title: '写真片',648 id: 26649 },650 {651 title: '粤语片',652 id: 28653 }654 ]655 },656 {657 title: '连续剧',658 id: 2,659 children: [660 {661 title: '国产剧',662 id: 12663 },664 {665 title: '港剧',666 id: 13667 },668 {669 title: '韩剧',670 id: 14671 },672 {673 title: '美剧',674 id: 15675 },676 {677 title: '台剧',678 id: 16679 },680 {681 title: '日剧',682 id: 17683 },684 {685 title: '泰剧',686 id: 19687 },688 {689 title: '海外剧',690 id: 23691 }692 ]693 },694 {695 title: '综艺',696 id: 3,697 children: [698 {699 title: '大陆综艺',700 id: 30701 },702 {703 title: '港台综艺',704 id: 31705 },706 {707 title: '欧美综艺',708 id: 32709 },710 {711 title: '日韩综艺',712 id: 33713 }714 ]715 },716 {717 title: '动漫',718 id: 4,719 children: [720 {721 title: '国产动漫',722 id: 34723 },724 {725 title: '日本动漫',726 id: 35727 },728 {729 title: '港台动漫',730 id: 36731 },732 {733 title: '欧美动漫',734 id: 37735 }736 ]737 },738 {739 title: '纪录',740 id: 22,741 children: []742 },743 {744 title: '游戏解说',745 id: 27,746 children: []747 },748 {749 title: '微电影',750 id: 29,751 children: []752 }753 ]754 },755 {756 key: 'wolongzy',757 name: '卧龙资源网',758 url: 'https://wolongzy.net',759 new: 'https://wolongzy.net/?page={page}',760 view: 'https://wolongzy.net/type/{id}.html?page={page}',761 search: 'https://wolongzy.net/search.html?searchword={keywords}',762 type: 1,763 tags: [764 {765 title: '最新',766 id: 0,767 children: []768 },769 {770 title: '电影',771 id: 1,772 children: [773 {774 title: '动作片',775 id: 5776 },777 {778 title: '喜剧片',779 id: 6780 },781 {782 title: '爱情片',783 id: 7784 },785 {786 title: '科幻片',787 id: 8788 },789 {790 title: '恐怖片',791 id: 9792 },793 {794 title: '剧情片',795 id: 10796 },797 {798 title: '战争片',799 id: 11800 },801 {802 title: '纪录片',803 id: 19804 },805 {806 title: '微电影',807 id: 20808 }809 ]810 },811 {812 title: '连续剧',813 id: 2,814 children: [815 {816 title: '国产剧',817 id: 12818 },819 {820 title: '香港剧',821 id: 13822 },823 {824 title: '韩国剧',825 id: 14826 },827 {828 title: '欧美剧',829 id: 15830 },831 {832 title: '台湾剧',833 id: 16834 },835 {836 title: '日本剧',837 id: 17838 },839 {840 title: '海外剧',841 id: 18842 }843 ]844 },845 {846 title: '综艺',847 id: 3,848 children: []849 },850 {851 title: '动漫',852 id: 4,853 children: []854 },855 {856 title: '伦理片',857 id: 21,858 children: []859 },860 {861 title: '福利',862 id: 22,863 children: []864 }865 ]866 },867 {868 key: 'gaoqingzy',869 name: '高清资源网',870 url: 'http://cj.gaoqingzyw.com',871 new: 'http://cj.gaoqingzyw.com/?m=vod-index-pg-{page}.html',872 view: 'http://cj.gaoqingzyw.com/?m=vod-type-id-{id}-pg-{page}.html',873 search: '',874 type: 2,875 tags: [876 {877 title: '最新',878 id: 0,879 children: []880 },881 {882 title: '电影',883 id: 21,884 children: [885 {886 title: '动作片',887 id: 5888 },889 {890 title: '喜剧片',891 id: 6892 },893 {894 title: '爱情片',895 id: 7896 },897 {898 title: '科幻片',899 id: 8900 },901 {902 title: '恐怖片',903 id: 9904 },905 {906 title: '剧情片',907 id: 10908 },909 {910 title: '战争片',911 id: 11912 },913 {914 title: '动画片',915 id: 16916 },917 {918 title: '奇幻片',919 id: 17920 },921 {922 title: '伦理片',923 id: 18924 }925 ]926 },927 {928 title: '连续剧',929 id: 19,930 children: [931 {932 title: '国产剧',933 id: 31934 },935 {936 title: '港剧',937 id: 22938 },939 {940 title: '台剧',941 id: 23942 },943 {944 title: '韩剧',945 id: 24946 },947 {948 title: '日剧',949 id: 25950 },951 {952 title: '欧美剧',953 id: 26954 },955 {956 title: '泰剧',957 id: 27958 }959 ]960 },961 {962 title: '综艺',963 id: 28,964 children: []965 },966 {967 title: '动漫',968 id: 16,969 children: []970 }971 ]972 }973]974const getSite = (e) => {975 for (const i of sites) {976 if (e === i.key) {977 return i978 }979 }980}981export {982 sites,983 getSite...

Full Screen

Full Screen

components.js

Source:components.js Github

copy

Full Screen

1var components = {2 "core": {3 "meta": {4 "path": "components/prism-core.js",5 "option": "mandatory"6 },7 "core": "Core"8 },9 "themes": {10 "meta": {11 "path": "themes/{id}.css",12 "link": "index.html?theme={id}",13 "exclusive": true14 },15 "prism": {16 "title": "Default",17 "option": "default"18 },19 "prism-dark": "Dark",20 "prism-funky": "Funky",21 "prism-okaidia": {22 "title": "Okaidia",23 "owner": "ocodia"24 },25 "prism-twilight": {26 "title": "Twilight",27 "owner": "remybach"28 },29 "prism-coy": {30 "title": "Coy",31 "owner": "tshedor"32 },33 "prism-solarizedlight": {34 "title": "Solarized Light",35 "owner": "hectormatos2011 "36 },37 "prism-tomorrow": {38 "title": "Tomorrow Night",39 "owner": "Rosey"40 }41 },42 "languages": {43 "meta": {44 "path": "components/prism-{id}",45 "noCSS": true,46 "examplesPath": "examples/prism-{id}",47 "addCheckAll": true48 },49 "markup": {50 "title": "Markup",51 "alias": ["html", "xml", "svg", "mathml"],52 "aliasTitles": {53 "html": "HTML",54 "xml": "XML",55 "svg": "SVG",56 "mathml": "MathML"57 },58 "option": "default"59 },60 "css": {61 "title": "CSS",62 "option": "default",63 "peerDependencies": "markup"64 },65 "clike": {66 "title": "C-like",67 "option": "default",68 "overrideExampleHeader": true69 },70 "javascript": {71 "title": "JavaScript",72 "require": "clike",73 "peerDependencies": "markup",74 "alias": "js",75 "option": "default"76 },77 "abap": {78 "title": "ABAP",79 "owner": "dellagustin"80 },81 "actionscript": {82 "title": "ActionScript",83 "require": "javascript",84 "peerDependencies": "markup",85 "owner": "Golmote"86 },87 "ada": {88 "title": "Ada",89 "owner": "Lucretia"90 },91 "apacheconf": {92 "title": "Apache Configuration",93 "owner": "GuiTeK"94 },95 "apl": {96 "title": "APL",97 "owner": "ngn"98 },99 "applescript": {100 "title": "AppleScript",101 "owner": "Golmote"102 },103 "arduino": {104 "title": "Arduino",105 "require": "cpp",106 "owner": "eisbehr-"107 },108 "arff": {109 "title": "ARFF",110 "owner": "Golmote"111 },112 "asciidoc": {113 "title": "AsciiDoc",114 "owner": "Golmote"115 },116 "asm6502": {117 "title": "6502 Assembly",118 "owner": "kzurawel"119 },120 "aspnet": {121 "title": "ASP.NET (C#)",122 "require": ["markup", "csharp"],123 "owner": "nauzilus"124 },125 "autohotkey": {126 "title": "AutoHotkey",127 "owner": "aviaryan"128 },129 "autoit": {130 "title": "AutoIt",131 "owner": "Golmote"132 },133 "bash": {134 "title": "Bash",135 "owner": "zeitgeist87"136 },137 "basic": {138 "title": "BASIC",139 "owner": "Golmote"140 },141 "batch": {142 "title": "Batch",143 "alias": "shell",144 "owner": "Golmote"145 },146 "bison": {147 "title": "Bison",148 "require": "c",149 "owner": "Golmote"150 },151 "brainfuck": {152 "title": "Brainfuck",153 "owner": "Golmote"154 },155 "bro": {156 "title": "Bro",157 "owner": "wayward710"158 },159 "c": {160 "title": "C",161 "require": "clike",162 "owner": "zeitgeist87"163 },164 "csharp": {165 "title": "C#",166 "require": "clike",167 "alias": "dotnet",168 "owner": "mvalipour"169 },170 "cpp": {171 "title": "C++",172 "require": "c",173 "owner": "zeitgeist87"174 },175 "coffeescript": {176 "title": "CoffeeScript",177 "require": "javascript",178 "owner": "R-osey"179 },180 "clojure": {181 "title": "Clojure",182 "owner": "troglotit"183 },184 "crystal": {185 "title": "Crystal",186 "require": "ruby",187 "owner": "MakeNowJust"188 },189 "csp": {190 "title": "Content-Security-Policy",191 "owner": "ScottHelme"192 },193 "css-extras": {194 "title": "CSS Extras",195 "require": "css",196 "owner": "milesj"197 },198 "d": {199 "title": "D",200 "require": "clike",201 "owner": "Golmote"202 },203 "dart": {204 "title": "Dart",205 "require": "clike",206 "owner": "Golmote"207 },208 "diff": {209 "title": "Diff",210 "owner": "uranusjr"211 },212 "django": {213 "title": "Django/Jinja2",214 "require": "markup",215 "peerDependencies": ["css", "javascript"],216 "alias": "jinja2",217 "owner": "romanvm"218 },219 "docker": {220 "title": "Docker",221 "owner": "JustinBeckwith"222 },223 "eiffel": {224 "title": "Eiffel",225 "owner": "Conaclos"226 },227 "elixir": {228 "title": "Elixir",229 "owner": "Golmote"230 },231 "elm": {232 "title": "Elm",233 "owner": "zwilias"234 },235 "erb": {236 "title": "ERB",237 "require": ["ruby", "markup-templating"],238 "owner": "Golmote"239 },240 "erlang": {241 "title": "Erlang",242 "owner": "Golmote"243 },244 "fsharp": {245 "title": "F#",246 "require": "clike",247 "owner": "simonreynolds7"248 },249 "flow": {250 "title": "Flow",251 "require": "javascript",252 "owner": "Golmote"253 },254 "fortran": {255 "title": "Fortran",256 "owner": "Golmote"257 },258 "gedcom": {259 "title": "GEDCOM",260 "owner": "Golmote"261 },262 "gherkin": {263 "title": "Gherkin",264 "owner": "hason"265 },266 "git": {267 "title": "Git",268 "owner": "lgiraudel"269 },270 "glsl": {271 "title": "GLSL",272 "require": "clike",273 "owner": "Golmote"274 },275 "go": {276 "title": "Go",277 "require": "clike",278 "owner": "arnehormann"279 },280 "graphql": {281 "title": "GraphQL",282 "owner": "Golmote"283 },284 "groovy": {285 "title": "Groovy",286 "require": "clike",287 "owner": "robfletcher"288 },289 "haml": {290 "title": "Haml",291 "require": "ruby",292 "peerDependencies": ["css", "coffeescript", "erb", "javascript", "less", "markdown", "ruby", "scss", "textile"],293 "owner": "Golmote"294 },295 "handlebars": {296 "title": "Handlebars",297 "require": "markup-templating",298 "owner": "Golmote"299 },300 "haskell": {301 "title": "Haskell",302 "owner": "bholst"303 },304 "haxe": {305 "title": "Haxe",306 "require": "clike",307 "owner": "Golmote"308 },309 "http": {310 "title": "HTTP",311 "peerDependencies": ["javascript", "markup"],312 "owner": "danielgtaylor"313 },314 "hpkp": {315 "title": "HTTP Public-Key-Pins",316 "owner": "ScottHelme"317 },318 "hsts": {319 "title": "HTTP Strict-Transport-Security",320 "owner": "ScottHelme"321 },322 "ichigojam": {323 "title": "IchigoJam",324 "owner": "BlueCocoa"325 },326 "icon": {327 "title": "Icon",328 "owner": "Golmote"329 },330 "inform7": {331 "title": "Inform 7",332 "owner": "Golmote"333 },334 "ini": {335 "title": "Ini",336 "owner": "aviaryan"337 },338 "io": {339 "title": "Io",340 "owner": "AlesTsurko"341 },342 "j": {343 "title": "J",344 "owner": "Golmote"345 },346 "java": {347 "title": "Java",348 "require": "clike",349 "owner": "sherblot"350 },351 "jolie": {352 "title": "Jolie",353 "require": "clike",354 "owner": "thesave"355 },356 "json": {357 "title": "JSON",358 "owner": "CupOfTea696"359 },360 "julia": {361 "title": "Julia",362 "owner": "cdagnino"363 },364 "keyman": {365 "title": "Keyman",366 "owner": "mcdurdin"367 },368 "kotlin": {369 "title": "Kotlin",370 "require": "clike",371 "owner": "Golmote"372 },373 "latex": {374 "title": "LaTeX",375 "owner": "japborst"376 },377 "less": {378 "title": "Less",379 "require": "css",380 "owner": "Golmote"381 },382 "liquid": {383 "title": "Liquid",384 "owner": "cinhtau"385 },386 "lisp": {387 "title": "Lisp",388 "owner": "JuanCaicedo",389 "alias": ["emacs", "elisp", "emacs-lisp"]390 },391 "livescript": {392 "title": "LiveScript",393 "owner": "Golmote"394 },395 "lolcode": {396 "title": "LOLCODE",397 "owner": "Golmote"398 },399 "lua": {400 "title": "Lua",401 "owner": "Golmote"402 },403 "makefile": {404 "title": "Makefile",405 "owner": "Golmote"406 },407 "markdown": {408 "title": "Markdown",409 "require": "markup",410 "owner": "Golmote"411 },412 "markup-templating": {413 "title": "Markup templating",414 "require": "markup",415 "owner": "Golmote"416 },417 "matlab": {418 "title": "MATLAB",419 "owner": "Golmote"420 },421 "mel": {422 "title": "MEL",423 "owner": "Golmote"424 },425 "mizar": {426 "title": "Mizar",427 "owner": "Golmote"428 },429 "monkey": {430 "title": "Monkey",431 "owner": "Golmote"432 },433 "n4js": {434 "title": "N4JS",435 "require": "javascript",436 "owner": "bsmith-n4"437 },438 "nasm": {439 "title": "NASM",440 "owner": "rbmj"441 },442 "nginx": {443 "title": "nginx",444 "owner": "westonganger",445 "require": "clike"446 },447 "nim": {448 "title": "Nim",449 "owner": "Golmote"450 },451 "nix": {452 "title": "Nix",453 "owner": "Golmote"454 },455 "nsis": {456 "title": "NSIS",457 "owner": "idleberg"458 },459 "objectivec": {460 "title": "Objective-C",461 "require": "c",462 "owner": "uranusjr"463 },464 "ocaml": {465 "title": "OCaml",466 "owner": "Golmote"467 },468 "opencl": {469 "title": "OpenCL",470 "require": "cpp",471 "peerDependencies": ["c", "cpp"],472 "overrideExampleHeader": true,473 "owner": "Milania1"474 },475 "oz": {476 "title": "Oz",477 "owner": "Golmote"478 },479 "parigp": {480 "title": "PARI/GP",481 "owner": "Golmote"482 },483 "parser": {484 "title": "Parser",485 "require": "markup",486 "owner": "Golmote"487 },488 "pascal": {489 "title": "Pascal",490 "alias": "objectpascal",491 "aliasTitles": {492 "objectpascal": "Object Pascal"493 },494 "owner": "Golmote"495 },496 "perl": {497 "title": "Perl",498 "owner": "Golmote"499 },500 "php": {501 "title": "PHP",502 "require": ["clike", "markup-templating"],503 "owner": "milesj"504 },505 "php-extras": {506 "title": "PHP Extras",507 "require": "php",508 "owner": "milesj"509 },510 "plsql": {511 "title": "PL/SQL",512 "require": "sql",513 "owner": "Golmote"514 },515 "powershell": {516 "title": "PowerShell",517 "owner": "nauzilus"518 },519 "processing": {520 "title": "Processing",521 "require": "clike",522 "owner": "Golmote"523 },524 "prolog": {525 "title": "Prolog",526 "owner": "Golmote"527 },528 "properties": {529 "title": ".properties",530 "owner": "Golmote"531 },532 "protobuf": {533 "title": "Protocol Buffers",534 "require": "clike",535 "owner": "just-boris"536 },537 "pug": {538 "title": "Pug",539 "require": "javascript",540 "peerDependencies": ["coffeescript", "ejs", "handlebars", "hogan", "less", "livescript", "markdown", "mustache", "plates", "scss", "stylus", "swig"],541 "owner": "Golmote"542 },543 "puppet": {544 "title": "Puppet",545 "owner": "Golmote"546 },547 "pure": {548 "title": "Pure",549 "peerDependencies": ["c", "cpp", "fortran", "ats", "dsp"],550 "owner": "Golmote"551 },552 "python": {553 "title": "Python",554 "owner": "multipetros"555 },556 "q": {557 "title": "Q (kdb+ database)",558 "owner": "Golmote"559 },560 "qore": {561 "title": "Qore",562 "require": "clike",563 "owner": "temnroegg"564 },565 "r": {566 "title": "R",567 "owner": "Golmote"568 },569 "jsx": {570 "title": "React JSX",571 "require": ["markup", "javascript"],572 "owner": "vkbansal"573 },574 "tsx": {575 "title": "React TSX",576 "require": ["jsx", "typescript"]577 },578 "renpy": {579 "title": "Ren'py",580 "owner": "HyuchiaDiego"581 },582 "reason": {583 "title": "Reason",584 "require": "clike",585 "owner": "Golmote"586 },587 "rest": {588 "title": "reST (reStructuredText)",589 "owner": "Golmote"590 },591 "rip": {592 "title": "Rip",593 "owner": "ravinggenius"594 },595 "roboconf": {596 "title": "Roboconf",597 "owner": "Golmote"598 },599 "ruby": {600 "title": "Ruby",601 "require": "clike",602 "owner": "samflores"603 },604 "rust": {605 "title": "Rust",606 "owner": "Golmote"607 },608 "sas": {609 "title": "SAS",610 "owner": "Golmote"611 },612 "sass": {613 "title": "Sass (Sass)",614 "require": "css",615 "owner": "Golmote"616 },617 "scss": {618 "title": "Sass (Scss)",619 "require": "css",620 "owner": "MoOx"621 },622 "scala": {623 "title": "Scala",624 "require": "java",625 "owner": "jozic"626 },627 "scheme": {628 "title": "Scheme",629 "owner": "bacchus123"630 },631 "smalltalk": {632 "title": "Smalltalk",633 "owner": "Golmote"634 },635 "smarty": {636 "title": "Smarty",637 "require": "markup-templating",638 "owner": "Golmote"639 },640 "sql": {641 "title": "SQL",642 "owner": "multipetros"643 },644 "soy": {645 "title": "Soy (Closure Template)",646 "require": "markup-templating",647 "owner": "Golmote"648 },649 "stylus": {650 "title": "Stylus",651 "owner": "vkbansal"652 },653 "swift": {654 "title": "Swift",655 "require": "clike",656 "owner": "chrischares"657 },658 "tap": {659 "title": "TAP",660 "owner": "isaacs",661 "require": "yaml"662 },663 "tcl": {664 "title": "Tcl",665 "owner": "PeterChaplin"666 },667 "textile": {668 "title": "Textile",669 "require": "markup",670 "peerDependencies": "css",671 "owner": "Golmote"672 },673 "tt2": {674 "title": "Template Toolkit 2",675 "require": ["clike", "markup-templating"],676 "owner": "gflohr"677 },678 "twig": {679 "title": "Twig",680 "require": "markup",681 "owner": "brandonkelly"682 },683 "typescript": {684 "title": "TypeScript",685 "require": "javascript",686 "alias": "ts",687 "owner": "vkbansal"688 },689 "vbnet": {690 "title": "VB.Net",691 "require": "basic",692 "owner": "Bigsby"693 },694 "velocity": {695 "title": "Velocity",696 "require": "markup",697 "owner": "Golmote"698 },699 "verilog": {700 "title": "Verilog",701 "owner": "a-rey"702 },703 "vhdl": {704 "title": "VHDL",705 "owner": "a-rey"706 },707 "vim": {708 "title": "vim",709 "owner": "westonganger"710 },711 "visual-basic": {712 "title": "Visual Basic",713 "owner": "Golmote",714 "alias": "vb"715 },716 "wasm": {717 "title": "WebAssembly",718 "owner": "Golmote"719 },720 "wiki": {721 "title": "Wiki markup",722 "require": "markup",723 "owner": "Golmote"724 },725 "xeora": {726 "title": "Xeora",727 "require": "markup",728 "owner": "freakmaxi"729 },730 "xojo": {731 "title": "Xojo (REALbasic)",732 "owner": "Golmote"733 },734 "xquery": {735 "title": "XQuery",736 "require": "markup",737 "owner": "Golmote"738 },739 "yaml": {740 "title": "YAML",741 "owner": "hason"742 }743 },744 "plugins": {745 "meta": {746 "path": "plugins/{id}/prism-{id}",747 "link": "plugins/{id}/"748 },749 "line-highlight": "Line Highlight",750 "line-numbers": {751 "title": "Line Numbers",752 "owner": "kuba-kubula"753 },754 "show-invisibles": "Show Invisibles",755 "autolinker": "Autolinker",756 "wpd": "WebPlatform Docs",757 "custom-class": {758 "title": "Custom Class",759 "owner": "dvkndn",760 "noCSS": true761 },762 "file-highlight": {763 "title": "File Highlight",764 "noCSS": true765 },766 "show-language": {767 "title": "Show Language",768 "owner": "nauzilus",769 "noCSS": true,770 "require": "toolbar"771 },772 "jsonp-highlight": {773 "title": "JSONP Highlight",774 "noCSS": true,775 "owner": "nauzilus"776 },777 "highlight-keywords": {778 "title": "Highlight Keywords",779 "owner": "vkbansal",780 "noCSS": true781 },782 "remove-initial-line-feed": {783 "title": "Remove initial line feed",784 "owner": "Golmote",785 "noCSS": true786 },787 "previewers": {788 "title": "Previewers",789 "owner": "Golmote"790 },791 "autoloader": {792 "title": "Autoloader",793 "owner": "Golmote",794 "noCSS": true795 },796 "keep-markup": {797 "title": "Keep Markup",798 "owner": "Golmote",799 "after": "normalize-whitespace",800 "noCSS": true801 },802 "command-line": {803 "title": "Command Line",804 "owner": "chriswells0"805 },806 "unescaped-markup": "Unescaped Markup",807 "normalize-whitespace": {808 "title": "Normalize Whitespace",809 "owner": "zeitgeist87",810 "after": "unescaped-markup",811 "noCSS": true812 },813 "data-uri-highlight": {814 "title": "Data-URI Highlight",815 "owner": "Golmote",816 "noCSS": true817 },818 "toolbar": {819 "title": "Toolbar",820 "owner": "mAAdhaTTah"821 },822 "copy-to-clipboard": {823 "title": "Copy to Clipboard Button",824 "owner": "mAAdhaTTah",825 "require": "toolbar",826 "noCSS": true827 }828 }829};830if (typeof module !== 'undefined' && module.exports) {831 module.exports = components;...

Full Screen

Full Screen

skills.js

Source:skills.js Github

copy

Full Screen

1const mapSkills = (skills) => {2 let dict = {}3 skills.forEach(skill => {4 const title = skill.title.split(' ').join('_')5 dict[`${title}`] = skill6 })7 return dict8}9const skillList = [{10 'title': 'kubernetes',11 'template': true12}, {13 'title': 'uxpin',14 'template': true15}, {16 'title': 'neural_network',17 'template': true18}, {19 'title': 'wordpress',20 'template': true21}, {22 'title': 'xcode',23 'template': true24}, {25 'title': 'spring',26 'template': true27}, {28 'title': 'vb.net',29 'template': true30}, {31 'title': 'windows',32 'template': true33}, {34 'title': 'eclipse',35 'template': true36}, {37 'title': 'html5',38 'template': true39}, {40 'title': 'multithreading',41 'template': true42}, {43 'title': 'git',44 'template': true45}, {46 'title': 'bash',47 'template': true48}, {49 'title': 'oracle',50 'template': true51}, {52 'title': 'mongodb',53 'template': true54}, {55 'title': 'vba',56 'template': true57}, {58 'title': 'bootstrap',59 'template': true60}, {61 'title': 'facebook',62 'template': true63}, {64 'title': 'osx',65 'template': true66}, {67 'title': 'algorithm',68 'template': true69}, {70 'title': 'winforms',71 'template': true72}, {73 'title': 'apache',74 'template': true75}, {76 'title': 'matlab',77 'template': true78}, {79 'title': 'postgresql',80 'template': true81}, {82 'title': 'performance',83 'template': true84}, {85 'title': 'visual-studio',86 'template': true87}, {88 'title': 'scala',89 'template': true90}, {91 'title': 'entity-framework',92 'template': true93}, {94 'title': 'python',95 'template': true96}, {97 'title': 'laravel',98 'template': true99}, {100 'title': 'angular',101 'template': true102}, {103 'title': 'swing',104 'template': true105}, {106 'title': 'list',107 'template': true108}, {109 'title': 'css3',110 'template': true111}, {112 'title': 'excel-vba',113 'template': true114}, {115 'title': 'hibernate',116 'template': true117}, {118 'title': 'linq',119 'template': true120}, {121 'title': 'qt',122 'template': true123}, {124 'title': '.htaccess',125 'template': true126}, {127 'title': 'shell',128 'template': true129}, {130 'title': 'perl',131 'template': true132}, {133 'title': 'sqlite',134 'template': true135}, {136 'title': 'rest',137 'template': true138}, {139 'title': 'rails',140 'template': true141}, {142 'title': 'codeigniter',143 'template': true144}, {145 'title': 'maven',146 'template': true147}, {148 'title': 'react',149 'template': true150}, {151 'title': 'google maps',152 'template': true153}, {154 'title': 'cordova',155 'template': true156}, {157 'title': 'symfony',158 'template': true159}, {160 'title': 'unit testing',161 'template': true162}, {163 'title': 'sql server',164 'template': true165}, {166 'title': 'pandas',167 'template': true168}, {169 'title': 'sockets',170 'template': true171}, {172 'title': 'powershell',173 'template': true174}, {175 'title': 'wcf',176 'template': true177}, {178 'title': 'csv',179 'template': true180}, {181 'title': 'sorting',182 'template': true183}, {184 'title': 'tsql',185 'template': true186}, {187 'title': 'xaml',188 'template': true189}, {190 'title': 'javascript',191 'template': true192}, {193 'title': 'java',194 'template': true195}, {196 'title': 'c#',197 'template': true198}, {199 'title': 'php',200 'template': true201}, {202 'title': 'android',203 'template': true204}, {205 'title': 'jquery',206 'template': true207}, {208 'title': 'python',209 'template': true210}, {211 'title': 'html',212 'template': true213}, {214 'title': 'c++',215 'template': true216}, {217 'title': 'iOS',218 'template': true219}, {220 'title': 'mysql',221 'template': true222}, {223 'title': 'c',224 'template': true225}, {226 'title': '.net',227 'template': true228}, {229 'title': 'angular',230 'template': true231}, {232 'title': 'vue',233 'template': true234}, {235 'title': 'polymer',236 'template': true237}, {238 'title': 'material design',239 'template': true240}, {241 'title': 'foundation',242 'template': true243}, {244 'title': 'ajax',245 'template': true246}, {247 'title': 'json',248 'template': true249}, {250 'title': 'R',251 'template': true252}, {253 'title': 'node',254 'template': true255}, {256 'title': 'ruby',257 'template': true258}, {259 'title': 'regex',260 'template': true261}, {262 'title': 'xml',263 'template': true264}, {265 'title': 'svg',266 'template': true267}, {268 'title': 'swift',269 'template': true270}, {271 'title': 'django',272 'template': true273}, {274 'title': 'linux',275 'template': true276}, {277 'title': 'apache',278 'template': true279}, {280 'title': 'asp.net',281 'template': true282}, {283 'title': 'wpf',284 'template': true285}, {286 'title': 'postgresql',287 'template': true288}, {289 'title': 'scala',290 'template': true291}, {292 'title': 'entity',293 'template': true294}, {295 'title': 'elm',296 'template': true297}, {298 'title': 'selenium',299 'template': true300}, {301 'title': 'mocha',302 'template': true303}, {304 'title': 'chai',305 'template': true306}, {307 'title': 'security',308 'template': true309}, {310 'title': 'object oriented programming',311 'template': true312}, {313 'title': 'functional programming',314 'template': true315}, {316 'title': 'dynamic programming',317 'template': true318}, {319 'title': 'actionscript',320 'template': true321}, {322 'title': 'user interface',323 'template': true324}, {325 'title': 'interaction design',326 'template': true327}, {328 'title': 'parsing',329 'template': true330}, {331 'title': 'google app engine',332 'template': true333}, {334 'title': 'google cloud functions',335 'template': true336}, {337 'title': 'firebase',338 'template': true339}, {340 'title': 'digital ocean',341 'template': true342}, {343 'title': 'delphi',344 'template': true345}, {346 'title': 'numpy',347 'template': true348}, {349 'title': 'ubuntu',350 'template': true351}, {352 'title': 'cocoa',353 'template': true354}, {355 'title': 'coffeescript',356 'template': true357}, {358 'title': 'typescript',359 'template': true360}, {361 'title': 'haskell',362 'template': true363}, {364 'title': 'sessions',365 'template': true366}, {367 'title': 'oauth2',368 'template': true369}, {370 'title': 'magento',371 'template': true372}, {373 'title': 'shopify',374 'template': true375}, {376 'title': 'unix',377 'template': true378}, {379 'title': 'edge',380 'template': true381}, {382 'title': 'chrome',383 'template': true384}, {385 'title': 'cross-browser testing',386 'template': true387}, {388 'title': 'ms access',389 'template': true390}, {391 'title': 'hadoop',392 'template': true393}, {394 'title': 'machine learning',395 'template': true396}, {397 'title': 'artificial intelligence',398 'template': true399}, {400 'title': 'ai',401 'template': true402}, {403 'title': 'express',404 'template': true405}, {406 'title': 'sequelize',407 'template': true408}, {409 'title': 'sql',410 'template': true411}, {412 'title': 'jsx',413 'template': true414}, {415 'title': 'ecmascript 2015',416 'template': true417}, {418 'title': 'es6',419 'template': true420}, {421 'title': 'es7',422 'template': true423}, {424 'title': 'es8',425 'template': true426}, {427 'title': 'firefox',428 'template': true429}, {430 'title': 'ssl',431 'template': true432}, {433 'title': 'tsl',434 'template': true435}, {436 'title': 'animation',437 'template': true438}, {439 'title': 'greensock',440 'template': true441}, {442 'title': 'apache spark',443 'template': true444}, {445 'title': 'lucene',446 'template': true447}, {448 'title': 'elasticsearch',449 'template': true450}, {451 'title': 'v8',452 'template': true453}, {454 'title': 'winapi',455 'template': true456}, {457 'title': 'opengl',458 'template': true459}, {460 'title': 'webgl',461 'template': true462}, {463 'title': 'canvas',464 'template': true465}, {466 'title': 'threejs',467 'template': true468}, {469 'title': 'd3',470 'template': true471}, {472 'title': 'unity',473 'template': true474}, {475 'title': 'cake php',476 'template': true477}, {478 'title': 'cucumber',479 'template': true480}, {481 'title': 'gunicorn',482 'template': true483}, {484 'title': 'nginx',485 'template': true486}, {487 'title': 'redux',488 'template': true489}, {490 'title': 'nextjs',491 'template': true492}, {493 'title': 'nuxt',494 'template': true495}, {496 'title': 'twitter',497 'template': true498}, {499 'title': 'social media',500 'template': true501}, {502 'title': 'mod rewrite',503 'template': true504}, {505 'title': 'curl',506 'template': true507}, {508 'title': 'pwa',509 'template': true510}, {511 'title': 'progressive web app',512 'template': true513}, {514 'title': 'web workers',515 'template': true516}, {517 'title': 'service workers',518 'template': true519}, {520 'title': 'dom',521 'template': true522}, {523 'title': 'silverlight',524 'template': true525}, {526 'title': 'caching',527 'template': true528}, {529 'title': 'docker',530 'template': true531}, {532 'title': 'grails',533 'template': true534}, {535 'title': 'jvm',536 'template': true537}, {538 'title': 'meteor',539 'template': true540}, {541 'title': 'image processing',542 'template': true543}, {544 'title': 'networking',545 'template': true546}, {547 'title': 'streams',548 'template': true549}, {550 'title': 'git',551 'template': true552}, {553 'title': 'github',554 'template': true555}, {556 'title': 'bitbucket',557 'template': true558}, {559 'title': 'heroku',560 'template': true561}, {562 'title': 'aws',563 'template': true564}, {565 'title': 'xamarin',566 'template': true567}, {568 'title': 'jenkins',569 'template': true570}, {571 'title': 'jest',572 'template': true573}, {574 'title': 'enzyme',575 'template': true576}, {577 'title': 'flexbox',578 'template': true579}, {580 'title': 'ionic',581 'template': true582}, {583 'title': 'javafx',584 'template': true585}, {586 'title': 'ember',587 'template': true588}, {589 'title': 'vim',590 'template': true591}, {592 'title': 'emacs',593 'template': true594}, {595 'title': 'backbonejs',596 'template': true597}, {598 'title': 'jwt',599 'template': true600}, {601 'title': 'zend',602 'template': true603}, {604 'title': 'amazon web services',605 'template': true606}, {607 'title': 'amazon s3',608 'template': true609}, {610 'title': 'groovy',611 'template': true612}, {613 'title': 'react native',614 'template': true615}, {616 'title': 'drupal',617 'template': true618}, {619 'title': 'joomla',620 'template': true621}, {622 'title': 'flask',623 'template': true624}, {625 'title': 'ssh',626 'template': true627}, {628 'title': 'graphql',629 'template': true630}, {631 'title': 'mongoose',632 'template': true633}, {634 'title': 'cli',635 'template': true636}, {637 'title': 'devops',638 'template': true639}, {640 'title': 'frontend',641 'template': true642}, {643 'title': 'backend',644 'template': true645}, {646 'title': 'security',647 'template': true648}, {649 'title': 'continuous deployment',650 'template': true651}, {652 'title': 'travis ci',653 'template': true654}, {655 'title': 'angular 1.5',656 'template': true657}, {658 'title': 'angular 2',659 'template': true660}, {661 'title': 'solr',662 'template': true663}, {664 'title': 'tcp',665 'template': true666}, {667 'title': 'http2',668 'template': true669}, {670 'title': 'tensorflow',671 'template': true672}, {673 'title': 'lisnr',674 'template': true675}, {676 'title': 'lisp',677 'template': true678}, {679 'title': 'npm',680 'template': true681}, {682 'title': 'rspec',683 'template': true684}, {685 'title': 'concurrency',686 'template': true687}, {688 'title': 'orm',689 'template': true690}, {691 'title': 'neo4j',692 'template': true693}, {694 'title': 'clojure',695 'template': true696}, {697 'title': 'webpack',698 'template': true699}, {700 'title': 'webpack 2',701 'template': true702}, {703 'title': 'websockets',704 'template': true705}, {706 'title': 'kendo',707 'template': true708}, {709 'title': 'lua',710 'template': true711}, {712 'title': 'cassandra',713 'template': true714}, {715 'title': 'sass',716 'template': true717}, {718 'title': 'scss',719 'template': true720}, {721 'title': 'less',722 'template': true723}, {724 'title': 'coldfusion',725 'template': true726}, {727 'title': 'f#',728 'template': true729}, {730 'title': 'hive',731 'template': true732}, {733 'title': 'socket.io',734 'template': true735}, {736 'title': 'linux kernal',737 'template': true738}, {739 'title': 'mapreduce',740 'template': true741}, {742 'title': 'gulp',743 'template': true744}, {745 'title': 'grunt',746 'template': true747}, {748 'title': 'internationalization',749 'template': true750}, {751 'title': 'neural networks',752 'template': true753}, {754 'title': 'erlang',755 'template': true756}, {757 'title': 'mercurial',758 'template': true759}, {760 'title': 'cors',761 'template': true762}, {763 'title': 'jasper',764 'template': true765}, {766 'title': 'rabbitmq',767 'template': true768}, {769 'title': 'pip',770 'template': true771}, {772 'title': 'g++',773 'template': true774}, {775 'title': 'dns',776 'template': true777}, {778 'title': 'log4j',779 'template': true780}, {781 'title': 'sonarqube',782 'template': true783}, {784 'title': 'ansible',785 'template': true786}, {787 'title': 'redis',788 'template': true789}, {790 'title': 'mariadb',791 'template': true792}, {793 'title': 'pascal',794 'template': true795}, {796 'title': 'handlebars',797 'template': true798}, {799 'title': 'markdown',800 'template': true801}, {802 'title': 'ethereum',803 'template': true804}, {805 'title': 'adobe cc',806 'template': true807}, {808 'title': 'sketch',809 'template': true810}, {811 'title': 'balsamiq',812 'template': true813}, {814 'title': 'ux',815 'template': true816}, {817 'title': 'ui',818 'template': true819}, {820 'title': 'cx',821 'template': true822}, {823 'title': 'gzip',824 'template': true825}, {826 'title': 'accessibility',827 'template': true828}, {829 'title': 'game design',830 'template': true831}, {832 'title': 'game logic',833 'template': true834}, {835 'title': 'bemcss',836 'template': true837}, {838 'title': 'smacss',839 'template': true840}, {841 'title': 'robotics',842 'template': true843}, {844 'title': 'bots',845 'template': true846}, {847 'title': 'bitcoin',848 'template': true849}, {850 'title': 'blockchain',851 'template': true852}, {853 'title': 'continuous integration',854 'template': true855}, {856 'title': 'objective c',857 'template': true858}, {859 'title': 'C',860 'template': true861}, {862 'title': 'windows',863 'template': true864},865{866 'title': 'user research',867 'template': true868}]869const skillDictionary = mapSkills(skillList)...

Full Screen

Full Screen

plugin.title.tests.js

Source:plugin.title.tests.js Github

copy

Full Screen

1// Test the rectangle element2describe('Title block tests', function() {3 it('Should be constructed', function() {4 var title = new Chart.Title({});5 expect(title).not.toBe(undefined);6 });7 it('Should have the correct default config', function() {8 expect(Chart.defaults.global.title).toEqual({9 display: false,10 position: 'top',11 fullWidth: true,12 weight: 2000,13 fontStyle: 'bold',14 lineHeight: 1.2,15 padding: 10,16 text: ''17 });18 });19 it('should update correctly', function() {20 var chart = {};21 var options = Chart.helpers.clone(Chart.defaults.global.title);22 options.text = 'My title';23 var title = new Chart.Title({24 chart: chart,25 options: options26 });27 var minSize = title.update(400, 200);28 expect(minSize).toEqual({29 width: 400,30 height: 031 });32 // Now we have a height since we display33 title.options.display = true;34 minSize = title.update(400, 200);35 expect(minSize).toEqual({36 width: 400,37 height: 34.438 });39 });40 it('should update correctly when vertical', function() {41 var chart = {};42 var options = Chart.helpers.clone(Chart.defaults.global.title);43 options.text = 'My title';44 options.position = 'left';45 var title = new Chart.Title({46 chart: chart,47 options: options48 });49 var minSize = title.update(200, 400);50 expect(minSize).toEqual({51 width: 0,52 height: 40053 });54 // Now we have a height since we display55 title.options.display = true;56 minSize = title.update(200, 400);57 expect(minSize).toEqual({58 width: 34.4,59 height: 40060 });61 });62 it('should have the correct size when there are multiple lines of text', function() {63 var chart = {};64 var options = Chart.helpers.clone(Chart.defaults.global.title);65 options.text = ['line1', 'line2'];66 options.position = 'left';67 options.display = true;68 options.lineHeight = 1.5;69 var title = new Chart.Title({70 chart: chart,71 options: options72 });73 var minSize = title.update(200, 400);74 expect(minSize).toEqual({75 width: 56,76 height: 40077 });78 });79 it('should draw correctly horizontally', function() {80 var chart = {};81 var context = window.createMockContext();82 var options = Chart.helpers.clone(Chart.defaults.global.title);83 options.text = 'My title';84 var title = new Chart.Title({85 chart: chart,86 options: options,87 ctx: context88 });89 title.update(400, 200);90 title.draw();91 expect(context.getCalls()).toEqual([]);92 // Now we have a height since we display93 title.options.display = true;94 var minSize = title.update(400, 200);95 title.top = 50;96 title.left = 100;97 title.bottom = title.top + minSize.height;98 title.right = title.left + minSize.width;99 title.draw();100 expect(context.getCalls()).toEqual([{101 name: 'setFillStyle',102 args: ['#666']103 }, {104 name: 'save',105 args: []106 }, {107 name: 'translate',108 args: [300, 67.2]109 }, {110 name: 'rotate',111 args: [0]112 }, {113 name: 'fillText',114 args: ['My title', 0, 0, 400]115 }, {116 name: 'restore',117 args: []118 }]);119 });120 it ('should draw correctly vertically', function() {121 var chart = {};122 var context = window.createMockContext();123 var options = Chart.helpers.clone(Chart.defaults.global.title);124 options.text = 'My title';125 options.position = 'left';126 var title = new Chart.Title({127 chart: chart,128 options: options,129 ctx: context130 });131 title.update(200, 400);132 title.draw();133 expect(context.getCalls()).toEqual([]);134 // Now we have a height since we display135 title.options.display = true;136 var minSize = title.update(200, 400);137 title.top = 50;138 title.left = 100;139 title.bottom = title.top + minSize.height;140 title.right = title.left + minSize.width;141 title.draw();142 expect(context.getCalls()).toEqual([{143 name: 'setFillStyle',144 args: ['#666']145 }, {146 name: 'save',147 args: []148 }, {149 name: 'translate',150 args: [117.2, 250]151 }, {152 name: 'rotate',153 args: [-0.5 * Math.PI]154 }, {155 name: 'fillText',156 args: ['My title', 0, 0, 400]157 }, {158 name: 'restore',159 args: []160 }]);161 // Rotation is other way on right side162 title.options.position = 'right';163 // Reset call tracker164 context.resetCalls();165 minSize = title.update(200, 400);166 title.top = 50;167 title.left = 100;168 title.bottom = title.top + minSize.height;169 title.right = title.left + minSize.width;170 title.draw();171 expect(context.getCalls()).toEqual([{172 name: 'setFillStyle',173 args: ['#666']174 }, {175 name: 'save',176 args: []177 }, {178 name: 'translate',179 args: [117.2, 250]180 }, {181 name: 'rotate',182 args: [0.5 * Math.PI]183 }, {184 name: 'fillText',185 args: ['My title', 0, 0, 400]186 }, {187 name: 'restore',188 args: []189 }]);190 });191 describe('config update', function() {192 it ('should update the options', function() {193 var chart = acquireChart({194 type: 'line',195 data: {196 labels: ['A', 'B', 'C', 'D'],197 datasets: [{198 data: [10, 20, 30, 100]199 }]200 },201 options: {202 title: {203 display: true204 }205 }206 });207 expect(chart.titleBlock.options.display).toBe(true);208 chart.options.title.display = false;209 chart.update();210 expect(chart.titleBlock.options.display).toBe(false);211 });212 it ('should update the associated layout item', function() {213 var chart = acquireChart({214 type: 'line',215 data: {},216 options: {217 title: {218 fullWidth: true,219 position: 'top',220 weight: 150221 }222 }223 });224 expect(chart.titleBlock.fullWidth).toBe(true);225 expect(chart.titleBlock.position).toBe('top');226 expect(chart.titleBlock.weight).toBe(150);227 chart.options.title.fullWidth = false;228 chart.options.title.position = 'left';229 chart.options.title.weight = 42;230 chart.update();231 expect(chart.titleBlock.fullWidth).toBe(false);232 expect(chart.titleBlock.position).toBe('left');233 expect(chart.titleBlock.weight).toBe(42);234 });235 it ('should remove the title if the new options are false', function() {236 var chart = acquireChart({237 type: 'line',238 data: {239 labels: ['A', 'B', 'C', 'D'],240 datasets: [{241 data: [10, 20, 30, 100]242 }]243 }244 });245 expect(chart.titleBlock).not.toBe(undefined);246 chart.options.title = false;247 chart.update();248 expect(chart.titleBlock).toBe(undefined);249 });250 it ('should create the title if the title options are changed to exist', function() {251 var chart = acquireChart({252 type: 'line',253 data: {254 labels: ['A', 'B', 'C', 'D'],255 datasets: [{256 data: [10, 20, 30, 100]257 }]258 },259 options: {260 title: false261 }262 });263 expect(chart.titleBlock).toBe(undefined);264 chart.options.title = {};265 chart.update();266 expect(chart.titleBlock).not.toBe(undefined);267 expect(chart.titleBlock.options).toEqual(jasmine.objectContaining(Chart.defaults.global.title));268 });269 });...

Full Screen

Full Screen

tests.js

Source:tests.js Github

copy

Full Screen

1provide([2 [3 {"title": "Editor tests", "tests": [4 {"title": "Core API", "url": "api.html"},5 {"title": "Basic functionality", "url": "basic.html"},6 {"title": "Remove", "url": "remove.html", "jsrobot": true},7 {"title": "Undo", "url": "undo.html", "jsrobot": true}8 //{"title": "Asynchronous Loading", "url": "async.html"}9 ]},10 {"title": "Plugins tests", "tests": [11 {"title": "Media plugin", "url": "media.html"},12 {"title": "Noneditable plugin", "url": "noneditable.html"},13 {"title": "Paste plugin", "url": "paste.html"},14 {"title": "Table plugin", "url": "table.html", "jsrobot": true},15 {"title": "jQuery plugin", "url": "jquery_plugin.html"},16 {"title": "Autolink plugin", "url": "autolink.html", "jsrobot": true},17 {"title": "Wordcount plugin", "url": "wordcount.html"},18 {"title": "Fullpage plugin", "url": "fullpage.html"},19 {"title": "Legacyoutput plugin", "url": "legacyoutput.html"},20 {"title": "Plugin Dependencies", "url": "plugin_dependency_simple.html"},21 {"title": "Plugin Dependency Chain", "url": "plugin_dependency_chain.html"},22 {"title": "Plugin Dependency Chain Legacy", "url": "plugin_dependency_chain_legacy.html"},23 {"title": "Dependency Chain Init Call Order", "url": "plugin_dependency_init_call_order.html"},24 {"title": "Dependency With Specific Location", "url": "plugin_dependency_specific_location.html"}25 ]},26 {"title": "tinymce.dom", "tests": [27 {"title": "Selection", "url": "tinymce.dom.Selection.html"},28 {"title": "TridentSelection (IE)", "url": "tinymce.dom.TridentSelection.html"},29 {"title": "Range (IE/Native)", "url": "tinymce.dom.Range.html"},30 {"title": "Serializer", "url": "tinymce.dom.Serializer.html"},31 {"title": "DOMUtils", "url": "tinymce.dom.DOMUtils.html"},32 {"title": "DOMUtils (jQuery)", "url": "tinymce.dom.DOMUtils_jquery.html"},33 {"title": "EventUtils", "url": "tinymce.dom.EventUtils.html"}34 ]},35 {"title": "tinymce", "tests": [36 {"title": "UndoManager", "url": "tinymce.UndoManager.html"},37 {"title": "EditorCommands", "url": "tinymce.EditorCommands.html"},38 {"title": "ForceBlocks", "url": "tinymce.ForceBlocks.html"},39 {"title": "EnterKey", "url": "tinymce.EnterKey.html"}40 ]}41 ], [42 {"title": "tinymce.html", "tests": [43 {"title": "Entities", "url": "tinymce.html.Entities.html"},44 {"title": "Styles", "url": "tinymce.html.Styles.html"},45 {"title": "Schema", "url": "tinymce.html.Schema.html"},46 {"title": "SaxParser", "url": "tinymce.html.SaxParser.html"},47 {"title": "Node", "url": "tinymce.html.Node.html"},48 {"title": "DomParser", "url": "tinymce.html.DomParser.html"},49 {"title": "Writer", "url": "tinymce.html.Writer.html"},50 {"title": "Serializer", "url": "tinymce.html.Serializer.html"}51 ]},52 {"title": "tinymce.Formatter", "tests": [53 {"title": "Apply formatting", "url": "tinymce.Formatter_apply.html"},54 {"title": "Remove formatting", "url": "tinymce.Formatter_remove.html"},55 {"title": "Check formatting", "url": "tinymce.Formatter_check.html"},56 {"title": "Formatting jsrobot tests", "url": "format.robot.html", "jsrobot":true}57 ]},58 {"title": "tinymce.util", "tests": [59 {"title": "URI", "url": "tinymce.util.URI.html"},60 {"title": "Dispatcher", "url": "tinymce.util.Dispatcher.html"},61 {"title": "Cookie", "url": "tinymce.util.Cookie.html"},62 {"title": "JSON", "url": "tinymce.util.JSON.html"},63 {"title": "XHR", "url": "tinymce.util.XHR.html"},64 {"title": "JSONRequest", "url": "tinymce.util.JSONRequest.html"}65 ]},66 {"title": "List tests", "tests": [67 {"title": "Applying lists", "url": "lists_applying.html", "jsrobot": true},68 {"title": "Indenting lists", "url": "lists_indenting.html", "jsrobot": true},69 {"title": "Forced BRs", "url": "lists_forced_brs.html", "jsrobot": true},70 {"title": "General", "url": "lists_general.html", "jsrobot": true}71 ]},72 {"title": "Quirks", "tests": [73 {"title": "All browser types", "url": "quirk_all.html", "jsrobot": true},74 {"title": "Firefox", "url": "quirk_firefox.html", "jsrobot": true},75 {"title": "Internet Explorer 8", "url": "quirk_ie8.html", "jsrobot": true},76 {"title": "Webkit", "url": "quirk_webkit.html", "jsrobot": true}77 ]}78 ]...

Full Screen

Full Screen

samples.js

Source:samples.js Github

copy

Full Screen

1(function(global) {2 var Samples = global.Samples || (global.Samples = {});3 Samples.items = [{4 title: 'Bar charts',5 items: [{6 title: 'Vertical',7 path: 'charts/bar/vertical.html'8 }, {9 title: 'Horizontal',10 path: 'charts/bar/horizontal.html'11 }, {12 title: 'Multi axis',13 path: 'charts/bar/multi-axis.html'14 }, {15 title: 'Stacked',16 path: 'charts/bar/stacked.html'17 }, {18 title: 'Stacked groups',19 path: 'charts/bar/stacked-group.html'20 }]21 }, {22 title: 'Line charts',23 items: [{24 title: 'Basic',25 path: 'charts/line/basic.html'26 }, {27 title: 'Multi axis',28 path: 'charts/line/multi-axis.html'29 }, {30 title: 'Stepped',31 path: 'charts/line/stepped.html'32 }, {33 title: 'Interpolation',34 path: 'charts/line/interpolation-modes.html'35 }, {36 title: 'Line styles',37 path: 'charts/line/line-styles.html'38 }, {39 title: 'Point styles',40 path: 'charts/line/point-styles.html'41 }, {42 title: 'Point sizes',43 path: 'charts/line/point-sizes.html'44 }]45 }, {46 title: 'Area charts',47 items: [{48 title: 'Boundaries (line)',49 path: 'charts/area/line-boundaries.html'50 }, {51 title: 'Datasets (line)',52 path: 'charts/area/line-datasets.html'53 }, {54 title: 'Stacked (line)',55 path: 'charts/area/line-stacked.html'56 }, {57 title: 'Radar',58 path: 'charts/area/radar.html'59 }]60 }, {61 title: 'Other charts',62 items: [{63 title: 'Scatter',64 path: 'charts/scatter/basic.html'65 }, {66 title: 'Scatter - Multi axis',67 path: 'charts/scatter/multi-axis.html'68 }, {69 title: 'Doughnut',70 path: 'charts/doughnut.html'71 }, {72 title: 'Pie',73 path: 'charts/pie.html'74 }, {75 title: 'Polar area',76 path: 'charts/polar-area.html'77 }, {78 title: 'Radar',79 path: 'charts/radar.html'80 }, {81 title: 'Combo bar/line',82 path: 'charts/combo-bar-line.html'83 }]84 }, {85 title: 'Linear scale',86 items: [{87 title: 'Step size',88 path: 'scales/linear/step-size.html'89 }, {90 title: 'Min & max',91 path: 'scales/linear/min-max.html'92 }, {93 title: 'Min & max (suggested)',94 path: 'scales/linear/min-max-suggested.html'95 }]96 }, {97 title: 'Logarithmic scale',98 items: [{99 title: 'Line',100 path: 'scales/logarithmic/line.html'101 }, {102 title: 'Scatter',103 path: 'scales/logarithmic/scatter.html'104 }]105 }, {106 title: 'Time scale',107 items: [{108 title: 'Line',109 path: 'scales/time/line.html'110 }, {111 title: 'Line (point data)',112 path: 'scales/time/line-point-data.html'113 }, {114 title: 'Time Series',115 path: 'scales/time/financial.html'116 }, {117 title: 'Combo',118 path: 'scales/time/combo.html'119 }]120 }, {121 title: 'Scale options',122 items: [{123 title: 'Grid lines display',124 path: 'scales/gridlines-display.html'125 }, {126 title: 'Grid lines style',127 path: 'scales/gridlines-style.html'128 }, {129 title: 'Multiline labels',130 path: 'scales/multiline-labels.html'131 }, {132 title: 'Filtering Labels',133 path: 'scales/filtering-labels.html'134 }, {135 title: 'Non numeric Y Axis',136 path: 'scales/non-numeric-y.html'137 }]138 }, {139 title: 'Legend',140 items: [{141 title: 'Positioning',142 path: 'legend/positioning.html'143 }, {144 title: 'Point style',145 path: 'legend/point-style.html'146 }]147 }, {148 title: 'Tooltip',149 items: [{150 title: 'Positioning',151 path: 'tooltips/positioning.html'152 }, {153 title: 'Interactions',154 path: 'tooltips/interactions.html'155 }, {156 title: 'Callbacks',157 path: 'tooltips/callbacks.html'158 }, {159 title: 'Border',160 path: 'tooltips/border.html'161 }, {162 title: 'HTML tooltips (line)',163 path: 'tooltips/custom-line.html'164 }, {165 title: 'HTML tooltips (pie)',166 path: 'tooltips/custom-pie.html'167 }, {168 title: 'HTML tooltips (points)',169 path: 'tooltips/custom-points.html'170 }]171 }, {172 title: 'Scriptable',173 items: [{174 title: 'Bubble Chart',175 path: 'scriptable/bubble.html'176 }]177 }, {178 title: 'Advanced',179 items: [{180 title: 'Progress bar',181 path: 'advanced/progress-bar.html'182 }, {183 title: 'Data labelling (plugin)',184 path: 'advanced/data-labelling.html'185 }]186 }];...

Full Screen

Full Screen

Title-dbg.js

Source:Title-dbg.js Github

copy

Full Screen

1/*!2 * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)3 * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.4 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.5 */6// Provides control sap.m.Title.7sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', 'sap/ui/Device', './library'],8 function(jQuery, Control, Device, library) {9 "use strict";10 /**11 * Constructor for a new Title Text Control.12 *13 * @param {string} [sId] id for the new control, generated automatically if no id is given14 * @param {object} [mSettings] initial settings for the new control15 *16 * @class17 * Title control is used for header texts and title.18 * @extends sap.ui.core.Control19 * @implements sap.ui.core.IShrinkable20 *21 * @author SAP SE22 * @version 1.28.1123 * @since 1.27.024 *25 * @constructor26 * @public27 * @alias sap.m.Title28 * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel29 */30 var Title = Control.extend("sap.m.Title", /** @lends sap.m.Title.prototype */ { metadata : {31 library : "sap.m",32 interfaces : [33 "sap.ui.core.IShrinkable"34 ],35 properties : {36 /**37 * Title Text to be displayed38 */39 text : {type : "string", group : "Appearance", defaultValue : null},40 /**41 * Defines the semantic level of the title. Using 'Auto' no explicit level information is written.42 */43 level : {type : "sap.ui.core.TitleLevel", group : "Appearance", defaultValue : sap.ui.core.TitleLevel.Auto},44 /**45 * Sets the style of the Title. Using 'Auto' the style is automatically set based on the current position of the title and the current theming.46 */47 titleStyle : {type : "sap.ui.core.TitleLevel", group : "Appearance", defaultValue : sap.ui.core.TitleLevel.Auto},48 /**49 * Defines the width of the Title.50 */51 width : {type : "sap.ui.core.CSSSize", group : "Dimension", defaultValue : null},52 /**53 * Available alignment settings are "Begin", "Center", "End", "Left", and "Right".54 */55 textAlign : {type : "sap.ui.core.TextAlign", group : "Appearance", defaultValue : sap.ui.core.TextAlign.Initial}56 },57 associations : {58 /**59 * Association to a generic title description.60 * If such a title element is associated the properties text, level and tooltip (text only) of this element are consumed.61 * The corresponding properties of the title control are ignored.62 */63 title : {type : "sap.ui.core.Title", multiple : false}64 }65 }});66 // Returns the instance of the associated sap.ui.core.Title if exists67 Title.prototype._getTitle = function(){68 var sTitle = this.getTitle();69 if (sTitle) {70 var oTitle = sap.ui.getCore().byId(sTitle);71 if (oTitle && oTitle instanceof sap.ui.core.Title) {72 return oTitle;73 }74 }75 return null;76 };77 Title.prototype._onTitleChanged = function(){78 this.invalidate();79 };80 Title.prototype.setTitle = function(vTitle){81 var that = this;82 var oOldTitle = this._getTitle();83 if (oOldTitle) {84 oOldTitle.invalidate = oOldTitle.__sapui5_title_originvalidate;85 oOldTitle.exit = oOldTitle.__sapui5_title_origexit;86 delete oOldTitle.__sapui5_title_origexit;87 delete oOldTitle.__sapui5_title_originvalidate;88 }89 this.setAssociation("title", vTitle);90 var oNewTitle = this._getTitle();91 if (oNewTitle) {92 oNewTitle.__sapui5_title_originvalidate = oNewTitle.invalidate;93 oNewTitle.__sapui5_title_origexit = oNewTitle.exit;94 oNewTitle.exit = function() {95 that._onTitleChanged();96 if (this.__sapui5_title_origexit) {97 this.__sapui5_title_origexit.apply(this, arguments);98 }99 };100 oNewTitle.invalidate = function() {101 that._onTitleChanged();102 this.__sapui5_title_originvalidate.apply(this, arguments);103 };104 }105 return this;106 };107 return Title;...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var title = require('../lib/title.js');2var expect = require('chai').expect;3describe('title', function() {4 it('should return a title case version of a string', function() {5 var input = 'the great mouse detective';6 var output = title(input);7 var expected = 'The Great Mouse Detective';8 expect(output).to.equal(expected);9 });10});11var title = function(str) {12 var words = str.split(' ');13 var caps = words.map(function(word) {14 return word[0].toUpperCase() + word.slice(1);15 });16 return caps.join(' ');17};18module.exports = title;19{20 "scripts": {21 },22 "dependencies": {23 },24 "devDependencies": {25 }26}

Full Screen

Using AI Code Generation

copy

Full Screen

1var title = require('title');2title('I love Istanbul');3var title = require('title');4title('I love Istanbul');5var title = require('title');6title('I love Istanbul');7var title = require('title');8title('I love Istanbul');9var title = require('title');10title('I love Istanbul');11var title = require('title');12title('I love Istanbul');13var title = require('title');14title('I love Istanbul');15var title = require('title');16title('I love Istanbul');

Full Screen

Using AI Code Generation

copy

Full Screen

1var title = require('./title.js');2console.log(title('istanbul'));3module.exports = function (str) {4 return str.toUpperCase();5};6{7 "scripts": {8 },9 "devDependencies": {10 }11}

Full Screen

Using AI Code Generation

copy

Full Screen

1var title = require('./title.js');2title('My Application');3var istanbul = require('istanbul');4var instrumenter = new istanbul.Instrumenter();5var fs = require('fs');6module.exports = function(title) {7 var file = fs.readFileSync('./app.js', 'utf8');8 var instrumentedCode = instrumenter.instrumentSync(file, './app.js');9 fs.writeFileSync('./instrumented/app.js', instrumentedCode);10 console.log('Instrumented file written to disk');11};12var express = require('express');13var app = express();14app.get('/', function(req, res) {15 res.send('Hello World');16});17app.listen(3000);18var title = require('./title.js');19title('My Application');20var istanbul = require('istanbul');21var instrumenter = new istanbul.Instrumenter();22var fs = require('fs');23module.exports = function(title) {24 var file = fs.readFileSync('./app.js', 'utf8');25 var instrumentedCode = instrumenter.instrumentSync(file, './app.js');26 fs.writeFileSync('./instrumented/app.js', instrumentedCode);27 console.log('Instrumented file written to disk');28};29var express = require('express');30var app = express();31app.get('/', function(req, res) {32 res.send('Hello World');33});34app.listen(3000);35var title = require('./title.js');36title('My Application');37var istanbul = require('istanbul');38var instrumenter = new istanbul.Instrumenter();39var fs = require('fs');40module.exports = function(title) {41 var file = fs.readFileSync('./app.js', 'utf8');42 var instrumentedCode = instrumenter.instrumentSync(file, './app.js');43 fs.writeFileSync('./instrumented/app.js', instrumentedCode);44 console.log('Instrumented file written to disk');45};46var express = require('express');

Full Screen

Using AI Code Generation

copy

Full Screen

1var title = require('./title');2title('test');3module.exports = function (str) {4 return str.toUpperCase();5};6var title = require('./title');7title('test');8module.exports = function (str) {9 return str.toUpperCase();10};11var title = require('./title');12title('test');13module.exports = function (str) {14 return str.toUpperCase();15};16var title = require('./title');17title('test');18module.exports = function (str) {19 return str.toUpperCase();20};21var title = require('./title');22title('test');23module.exports = function (str) {24 return str.toUpperCase();25};26var title = require('./title');27title('test');28module.exports = function (str) {29 return str.toUpperCase();30};31var title = require('./title');32title('test');33module.exports = function (str) {34 return str.toUpperCase();35};36var title = require('./title');37title('test');38module.exports = function (str) {39 return str.toUpperCase();40};41var title = require('./title');42title('test');43module.exports = function (str)

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run istanbul automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful