Best JavaScript code snippet using playwright-internal
menu.js
Source:menu.js
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 }...
sites.js
Source:sites.js
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...
components.js
Source:components.js
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;...
skills.js
Source:skills.js
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)...
plugin.title.tests.js
Source:plugin.title.tests.js
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 });...
tests.js
Source:tests.js
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 ]...
samples.js
Source:samples.js
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 }];...
Title-dbg.js
Source:Title-dbg.js
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;...
Using AI Code Generation
1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch();4 const context = await browser.newContext();5 const page = await context.newPage();6 const title = await page.title();7 console.log(title);8 await browser.close();9})();10const { chromium } = require('playwright');11(async () => {12 const browser = await chromium.launch();13 const context = await browser.newContext();14 const page = await context.newPage();15 const title = await page.title();16 console.log(title);17 await browser.close();18})();19const { chromium } = require('playwright');20(async () => {21 const browser = await chromium.launch();22 const context = await browser.newContext();23 const page = await context.newPage();24 const title = await page.title();25 console.log(title);26 await browser.close();27})();28const { chromium } = require('playwright');29(async () => {30 const browser = await chromium.launch();31 const context = await browser.newContext();32 const page = await context.newPage();33 const title = await page.title();34 console.log(title);35 await browser.close();36})();37const { chromium } = require('playwright');38(async () => {39 const browser = await chromium.launch();40 const context = await browser.newContext();41 const page = await context.newPage();42 const title = await page.title();43 console.log(title);44 await browser.close();45})();46const { chromium } = require('playwright');47(async () => {48 const browser = await chromium.launch();49 const context = await browser.newContext();50 const page = await context.newPage();
Using AI Code Generation
1const { chromium } = require('playwright');2(async () => {3 const browser = await chromium.launch({ headless: false });4 const page = await browser.newPage();5 console.log(await page.title());6 await browser.close();7})();8const { chromium } = require('playwright');9(async () => {10 const browser = await chromium.launch({ headless: false });11 const page = await browser.newPage();12 console.log(await page.title());13 await browser.close();14})();15const { chromium } = require('playwright');16(async () => {17 const browser = await chromium.launch({ headless: false });18 const page = await browser.newPage();19 console.log(await page.title());20 await browser.close();21})();22const { chromium } = require('playwright');23(async () => {24 const browser = await chromium.launch({ headless: false });25 const page = await browser.newPage();26 console.log(await page.title());27 await browser.close();28})();29const { chromium } = require('playwright');30(async () => {31 const browser = await chromium.launch({ headless: false });32 const page = await browser.newPage();33 console.log(await page.title());34 await browser.close();35})();36const { chromium } = require('playwright');37(async () => {38 const browser = await chromium.launch({ headless: false });39 const page = await browser.newPage();40 console.log(await page.title());41 await browser.close();42})();43const { chromium } = require('playwright');44(async () => {45 const browser = await chromium.launch({
Using AI Code Generation
1const { title } = require('playwright');2console.log(title);3const playwright = require('playwright');4console.log(playwright.title);5const { chromium } = require('playwright');6console.log(chromium.title);7const { chromium, firefox } = require('playwright');8console.log(chromium.title);9console.log(firefox.title);10const { chromium, firefox, webkit } = require('playwright');11console.log(chromium.title);12console.log(firefox.title);13console.log(webkit.title);14const { chromium, firefox, webkit, devices } = require('playwright');15console.log(chromium.title);16console.log(firefox.title);17console.log(webkit.title);18console.log(devices.title);19const { chromium, firefox, webkit, devices, selectors } = require('playwright');20console.log(chromium.title);21console.log(firefox.title);22console.log(webkit.title);23console.log(devices.title);24console.log(selectors.title);25const { chromium, firefox, webkit, devices, selectors, errors } = require('playwright');26console.log(chromium.title);27console.log(firefox.title);28console.log(webkit.title);29console.log(devices.title);30console.log(selectors.title);31console.log(errors.title);32const { chromium, firefox, webkit, devices, selectors, errors, utils } = require('playwright');33console.log(chromium.title);34console.log(firefox.title);35console.log(webkit.title);36console.log(devices.title);37console.log(selectors.title);38console.log(errors.title);39console.log(utils.title);40const { chromium, firefox, webkit, devices, selectors, errors, utils, trace } = require('playwright');41console.log(chromium.title);42console.log(firefox.title);43console.log(webkit.title);44console.log(devices.title);45console.log(selectors.title);46console.log(errors.title);47console.log(utils.title);48console.log(trace.title);
Using AI Code Generation
1const page = await context.newPage();2console.log(page.title());3const page = await context.newPage();4console.log(page.title());5const page = await context.newPage();6console.log(page.title());7const page = await context.newPage();8console.log(page.title());9const page = await context.newPage();10console.log(page.title());11const page = await context.newPage();12console.log(page.title());
Using AI Code Generation
1let title = await page.title();2console.log(title);3let url = await page.url();4console.log(url);5let content = await page.content();6console.log(content);7let title = await page.title();8console.log(title);9let url = await page.url();10console.log(url);11let content = await page.content();12console.log(content);13let title = await page.title();14console.log(title);15let url = await page.url();16console.log(url);17let content = await page.content();18console.log(content);19let title = await page.title();20console.log(title);21let url = await page.url();22console.log(url);23let content = await page.content();24console.log(content);25let title = await page.title();26console.log(title);
LambdaTest’s Playwright tutorial will give you a broader idea about the Playwright automation framework, its unique features, and use cases with examples to exceed your understanding of Playwright testing. This tutorial will give A to Z guidance, from installing the Playwright framework to some best practices and advanced concepts.
Get 100 minutes of automation test minutes FREE!!