@focus-teach/ui 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/index.js +47 -6
- package/package.json +1 -3
- package/style/icon/demo.html +16 -16
- package/style/icon/fonts/icomoon.eot +0 -0
- package/style/icon/fonts/icomoon.svg +2 -2
- package/style/icon/fonts/icomoon.ttf +0 -0
- package/style/icon/fonts/icomoon.woff +0 -0
- package/style/icon/selection.json +1 -1
- package/style/icon/style.css +11 -9
- package/.history/package_20230625121458.json +0 -45
- package/.history/package_20230626100440.json +0 -45
- package/.history/package_20230626100445.json +0 -45
- package/.history/package_20230626100447.json +0 -45
- package/.history/package_20230626100636.json +0 -45
- package/.history/package_20230626100801.json +0 -45
- package/.history/package_20230626100803.json +0 -45
- package/.history/package_20230626100838.json +0 -45
- package/.history/package_20230626103314.json +0 -45
- package/.history/package_20230626103317.json +0 -45
- package/.history/package_20230626112515.json +0 -45
- package/.history/package_20230626112519.json +0 -45
- package/.history/package_20230626113741.json +0 -48
- package/.history/package_20230626113743.json +0 -48
- package/.history/package_20230626113745.json +0 -48
- package/.history/package_20230626113750.json +0 -48
- package/.history/package_20230626113754.json +0 -48
- package/.history/package_20230626113756.json +0 -48
- package/.history/package_20230626113758.json +0 -48
- package/.history/package_20230626113759.json +0 -48
- package/.history/package_20230626113808.json +0 -48
- package/.history/package_20230626113839.json +0 -45
- package/.history/package_20230626113841.json +0 -45
- package/.history/package_20230626115037.json +0 -45
- package/.history/package_20230626115243.json +0 -45
- package/.history/package_20230626115245.json +0 -45
- package/.history/package_20230626115259.json +0 -45
- package/.history/package_20230626120806.json +0 -45
- package/.history/package_20230626120808.json +0 -46
- package/.history/package_20230626120809.json +0 -45
- package/.history/package_20230626133910.json +0 -46
- package/.history/package_20230626133912.json +0 -46
- package/.history/package_20230626133915.json +0 -46
- package/.history/package_20230626133917.json +0 -46
- package/.history/package_20230626133923.json +0 -46
- package/.history/package_20230626133927.json +0 -46
- package/.history/package_20230626134037.json +0 -46
- package/.history/package_20230626134121.json +0 -46
- package/.history/package_20230626134122.json +0 -46
- package/.history/package_20230626134126.json +0 -45
- package/.history/packages/assets/css/reset-element_20230605134721.scss +0 -167
- package/.history/packages/assets/css/reset-element_20230614205652.scss +0 -173
- package/.history/packages/assets/css/reset-element_20230614205654.scss +0 -173
- package/.history/packages/assets/css/reset-element_20230614211242.scss +0 -169
- package/.history/packages/assets/css/reset-element_20230614211245.scss +0 -167
- package/.history/packages/exam-detail/src/index_20230607220441.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115618.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115623.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115629.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115631.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115640.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115651.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115659.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115750.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115806.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115811.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613115815.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613120250.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613120252.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613120257.vue +0 -547
- package/.history/packages/exam-detail/src/index_20230613120323.vue +0 -547
- package/.history/packages/exam-detail/src/index_20230613120327.vue +0 -547
- package/.history/packages/exam-detail/src/index_20230613120328.vue +0 -547
- package/.history/packages/exam-detail/src/index_20230613120915.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613120917.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613120922.vue +0 -549
- package/.history/packages/exam-detail/src/index_20230613120924.vue +0 -549
- package/.history/packages/exam-detail/src/index_20230613120928.vue +0 -550
- package/.history/packages/exam-detail/src/index_20230613120930.vue +0 -550
- package/.history/packages/exam-detail/src/index_20230613120936.vue +0 -549
- package/.history/packages/exam-detail/src/index_20230613120938.vue +0 -550
- package/.history/packages/exam-detail/src/index_20230613120942.vue +0 -550
- package/.history/packages/exam-detail/src/index_20230613120944.vue +0 -550
- package/.history/packages/exam-detail/src/index_20230613121331.vue +0 -549
- package/.history/packages/exam-detail/src/index_20230613121333.vue +0 -548
- package/.history/packages/exam-detail/src/index_20230613121335.vue +0 -547
- package/.history/packages/exam-detail/src/index_20230613121341.vue +0 -547
- package/.history/packages/exam-detail/src/index_20230613121344.vue +0 -546
- package/.history/packages/exam-detail/src/index_20230613153022.vue +0 -546
- package/.history/packages/exam-detail/src/index_20230613153027.vue +0 -546
- package/.history/packages/exam-detail/src/index_20230613153620.vue +0 -546
- package/.history/packages/exam-detail/src/index_20230613164734.vue +0 -546
- package/.history/packages/exam-detail/src/index_20230613164746.vue +0 -546
- package/.history/packages/exam-detail/src/index_20230613164756.vue +0 -546
- package/.history/packages/exam-drawer/src/index_20230607103301.vue +0 -1470
- package/.history/packages/exam-drawer/src/index_20230613090746.vue +0 -1469
- package/.history/packages/exam-drawer/src/index_20230613090759.vue +0 -1469
- package/.history/packages/exam-drawer/src/index_20230613090802.vue +0 -1469
- package/.history/packages/exam-drawer/src/index_20230613090809.vue +0 -1469
- package/.history/packages/exam-drawer/src/index_20230613090850.vue +0 -1470
- package/.history/packages/exam-drawer/src/index_20230613090919.vue +0 -1487
- package/.history/packages/exam-drawer/src/index_20230613090930.vue +0 -1486
- package/.history/packages/exam-drawer/src/index_20230613090935.vue +0 -1485
- package/.history/packages/exam-drawer/src/index_20230613091124.vue +0 -1488
- package/.history/packages/exam-drawer/src/index_20230613091140.vue +0 -1488
- package/.history/packages/exam-drawer/src/index_20230613091141.vue +0 -1488
- package/.history/packages/exam-drawer/src/index_20230613092108.vue +0 -1489
- package/.history/packages/exam-drawer/src/index_20230613092111.vue +0 -1489
- package/.history/packages/exam-drawer/src/index_20230613093130.vue +0 -1490
- package/.history/packages/exam-drawer/src/index_20230613093135.vue +0 -1489
- package/.history/packages/exam-drawer/src/index_20230613093149.vue +0 -1488
- package/.history/packages/exam-drawer/src/index_20230613093156.vue +0 -1487
- package/.history/packages/exam-drawer/src/index_20230613093159.vue +0 -1486
- package/.history/packages/exam-drawer/src/index_20230613093202.vue +0 -1485
- package/.history/packages/exam-drawer/src/index_20230613093204.vue +0 -1484
- package/.history/packages/exam-drawer/src/index_20230613093207.vue +0 -1483
- package/.history/packages/exam-drawer/src/index_20230613093209.vue +0 -1482
- package/.history/packages/exam-drawer/src/index_20230613093212.vue +0 -1483
- package/.history/packages/exam-drawer/src/index_20230613093217.vue +0 -1483
- package/.history/packages/exam-drawer/src/index_20230613093228.vue +0 -1483
- package/.history/packages/exam-drawer/src/index_20230613093229.vue +0 -1483
- package/.history/packages/exam-drawer/src/index_20230613093843.vue +0 -1482
- package/.history/packages/exam-drawer/src/index_20230613093847.vue +0 -1481
- package/.history/packages/exam-drawer/src/index_20230613093851.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613115708.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613115823.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613115825.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613115827.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613120908.vue +0 -1481
- package/.history/packages/exam-drawer/src/index_20230613120910.vue +0 -1481
- package/.history/packages/exam-drawer/src/index_20230613121320.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613121326.vue +0 -1480
- package/.history/packages/exam-drawer/src/index_20230613144244.vue +0 -1479
- package/.history/packages/exam-drawer/src/index_20230613144246.vue +0 -1478
- package/.history/packages/exam-drawer/src/index_20230613144248.vue +0 -1477
- package/.history/packages/exam-drawer/src/index_20230613144251.vue +0 -1476
- package/.history/packages/exam-drawer/src/index_20230613152608.vue +0 -1476
- package/.history/packages/header/src/index_20230605134719.vue +0 -59
- package/.history/packages/header/src/index_20230613115723.vue +0 -59
- package/.history/packages/header/src/index_20230613115727.vue +0 -59
- package/.history/packages/header/src/index_20230613115733.vue +0 -59
- package/.history/packages/header/src/index_20230613115736.vue +0 -59
- package/.history/packages/header/src/index_20230613120901.vue +0 -60
- package/.history/packages/header/src/index_20230613120903.vue +0 -60
- package/.history/packages/header/src/index_20230613121316.vue +0 -59
- package/.history/packages/question-drawer/src/index_20230607160653.vue +0 -1735
- package/.history/packages/question-drawer/src/index_20230607160720.scss +0 -265
- package/.history/packages/question-drawer/src/index_20230613090910.vue +0 -1735
- package/.history/packages/question-drawer/src/index_20230613090928.vue +0 -1734
- package/.history/packages/question-drawer/src/index_20230613090937.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115842.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115844.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115848.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115902.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115911.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115914.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613115922.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613120356.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613120359.vue +0 -1732
- package/.history/packages/question-drawer/src/index_20230613120710.vue +0 -1731
- package/.history/packages/question-drawer/src/index_20230613120839.vue +0 -1732
- package/.history/packages/question-drawer/src/index_20230613120841.vue +0 -1732
- package/.history/packages/question-drawer/src/index_20230613120844.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613120846.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613120850.vue +0 -1734
- package/.history/packages/question-drawer/src/index_20230613120852.vue +0 -1734
- package/.history/packages/question-drawer/src/index_20230613120856.vue +0 -1735
- package/.history/packages/question-drawer/src/index_20230613120858.vue +0 -1735
- package/.history/packages/question-drawer/src/index_20230613121150.vue +0 -1735
- package/.history/packages/question-drawer/src/index_20230613121238.vue +0 -1734
- package/.history/packages/question-drawer/src/index_20230613121252.vue +0 -1734
- package/.history/packages/question-drawer/src/index_20230613121256.vue +0 -1734
- package/.history/packages/question-drawer/src/index_20230613121258.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613121303.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613121307.vue +0 -1733
- package/.history/packages/question-drawer/src/index_20230613121310.vue +0 -1732
- package/.history/packages/question-drawer/src/index_20230613121313.vue +0 -1731
- package/.history/packages/question-drawer/src/index_20230613121549.vue +0 -1731
- package/.history/packages/question-drawer/src/index_20230613121623.vue +0 -1731
- package/.history/packages/question-drawer/src/index_20230613151515.vue +0 -1730
- package/.history/packages/question-drawer/src/index_20230613151517.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230613151612.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230613151618.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230613151928.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230613151929.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230613152233.vue +0 -1728
- package/.history/packages/question-drawer/src/index_20230613152235.vue +0 -1727
- package/.history/packages/question-drawer/src/index_20230613152237.vue +0 -1726
- package/.history/packages/question-drawer/src/index_20230613152239.vue +0 -1726
- package/.history/packages/question-drawer/src/index_20230613152243.vue +0 -1725
- package/.history/packages/question-drawer/src/index_20230613152245.vue +0 -1724
- package/.history/packages/question-drawer/src/index_20230613152247.vue +0 -1723
- package/.history/packages/question-drawer/src/index_20230613152248.vue +0 -1723
- package/.history/packages/question-drawer/src/index_20230613152543.vue +0 -1723
- package/.history/packages/question-drawer/src/index_20230613152613.vue +0 -1723
- package/.history/packages/question-drawer/src/index_20230614203619.vue +0 -1725
- package/.history/packages/question-drawer/src/index_20230614203633.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230614203637.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230614203912.vue +0 -1729
- package/.history/packages/question-drawer/src/index_20230614211516.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212057.scss +0 -265
- package/.history/packages/question-drawer/src/index_20230614212140.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212146.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212158.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212613.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212615.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212841.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614212939.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614213141.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614213255.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614213349.scss +0 -265
- package/.history/packages/question-drawer/src/index_20230614213350.scss +0 -265
- package/.history/packages/question-drawer/src/index_20230614213400.scss +0 -265
- package/.history/packages/question-drawer/src/index_20230614213401.scss +0 -270
- package/.history/packages/question-drawer/src/index_20230614213431.scss +0 -265
- package/.history/packages/question-drawer/src/index_20230615100944.vue +0 -1730
- package/.history/packages/question-drawer/src/index_20230615100946.vue +0 -1730
- package/.history/packages/question-drawer/src/index_20230615100952.vue +0 -1730
- package/.history/packages/question-drawer/src/index_20230615100957.vue +0 -1730
- package/.history/packages/question-drawer/src/index_20230615104839.vue +0 -1730
- package/.history/packages/tabs/src/index_20230607165331.scss +0 -60
- package/.history/packages/tabs/src/index_20230614211226.scss +0 -60
- package/.history/packages/tabs/src/index_20230614211227.scss +0 -61
- package/.history/packages/tabs/src/index_20230614211253.scss +0 -65
- package/.history/packages/tabs/src/index_20230614211332.scss +0 -60
- package/.history/packages/wrong-detail/src/index_20230607221202.vue +0 -570
- package/.history/packages/wrong-detail/src/index_20230613120416.vue +0 -570
- package/.history/packages/wrong-detail/src/index_20230613120418.vue +0 -569
- package/.history/packages/wrong-detail/src/index_20230613120738.vue +0 -568
- package/.history/packages/wrong-detail/src/index_20230613120800.vue +0 -568
- package/.history/packages/wrong-detail/src/index_20230613120803.vue +0 -568
- package/.history/packages/wrong-detail/src/index_20230613120825.vue +0 -568
- package/.history/packages/wrong-detail/src/index_20230613120834.vue +0 -569
- package/.history/packages/wrong-detail/src/index_20230613121246.vue +0 -568
- package/.history/packages/wrong-detail/src/index_20230613155421.vue +0 -574
- package/.history/packages/wrong-detail/src/index_20230613155423.vue +0 -574
- package/.history/packages/wrong-detail/src/index_20230613155426.vue +0 -574
- package/.history/packages/wrong-drawer/src/index_20230607213124.vue +0 -450
- package/.history/packages/wrong-drawer/src/index_20230613104307.vue +0 -450
- package/.history/packages/wrong-drawer/src/index_20230613104315.vue +0 -451
- package/.history/packages/wrong-drawer/src/index_20230613104317.vue +0 -451
- package/.history/packages/wrong-drawer/src/index_20230613104334.vue +0 -451
- package/.history/packages/wrong-drawer/src/index_20230613104403.vue +0 -450
- package/.history/packages/wrong-drawer/src/index_20230613104405.vue +0 -449
- package/.history/packages/wrong-drawer/src/index_20230613104621.vue +0 -458
- package/.history/packages/wrong-drawer/src/index_20230613104626.vue +0 -459
- package/.history/packages/wrong-drawer/src/index_20230613104629.vue +0 -457
- package/.history/packages/wrong-drawer/src/index_20230613104630.vue +0 -457
- package/.history/packages/wrong-drawer/src/index_20230613104747.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613104749.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613104753.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613111237.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613111314.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613114319.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613114322.vue +0 -464
- package/.history/packages/wrong-drawer/src/index_20230613114901.vue +0 -463
- package/.history/packages/wrong-drawer/src/index_20230613114903.vue +0 -462
- package/.history/packages/wrong-drawer/src/index_20230613114904.vue +0 -462
- package/.history/packages/wrong-drawer/src/index_20230613114909.vue +0 -462
- package/.history/packages/wrong-drawer/src/index_20230613114936.vue +0 -463
- package/.history/packages/wrong-drawer/src/index_20230613114940.vue +0 -463
- package/.history/packages/wrong-drawer/src/index_20230613114942.vue +0 -463
- package/.history/packages/wrong-drawer/src/index_20230613115348.vue +0 -487
- package/.history/packages/wrong-drawer/src/index_20230613115352.vue +0 -487
- package/.history/packages/wrong-drawer/src/index_20230613115356.vue +0 -487
- package/.history/packages/wrong-drawer/src/index_20230613115408.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613115411.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613115414.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613144213.vue +0 -499
- package/.history/packages/wrong-drawer/src/index_20230613144215.vue +0 -498
- package/.history/packages/wrong-drawer/src/index_20230613144218.vue +0 -497
- package/.history/packages/wrong-drawer/src/index_20230613144223.vue +0 -497
- package/.history/packages/wrong-drawer/src/index_20230613144225.vue +0 -497
- package/.history/packages/wrong-drawer/src/index_20230613144229.vue +0 -498
- package/.history/packages/wrong-drawer/src/index_20230613144232.vue +0 -498
- package/.history/packages/wrong-drawer/src/index_20230613144316.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613144345.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613144346.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613145546.vue +0 -498
- package/.history/packages/wrong-drawer/src/index_20230613145548.vue +0 -501
- package/.history/packages/wrong-drawer/src/index_20230613145550.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613145602.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613145611.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613145625.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613145634.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613150805.vue +0 -500
- package/.history/packages/wrong-drawer/src/index_20230613150806.vue +0 -501
- package/.history/packages/wrong-drawer/src/index_20230613150809.vue +0 -501
- package/.history/packages/wrong-drawer/src/index_20230613150810.vue +0 -501
- package/.history/vue.config_20230606223920.js +0 -126
- package/.history/vue.config_20230626104338.js +0 -133
- package/.history/vue.config_20230626104344.js +0 -129
- package/.history/vue.config_20230626104347.js +0 -129
- package/.history/vue.config_20230626104410.js +0 -129
- package/.history/vue.config_20230626104446.js +0 -129
- package/.history/vue.config_20230626104448.js +0 -129
- package/.history/vue.config_20230626104552.js +0 -130
- package/.history/vue.config_20230626104554.js +0 -130
- package/.history/vue.config_20230626104556.js +0 -130
- package/.history/vue.config_20230626104559.js +0 -132
- package/.history/vue.config_20230626104600.js +0 -132
- package/.history/vue.config_20230626104603.js +0 -132
- package/.history/vue.config_20230626104608.js +0 -129
- package/.history/vue.config_20230626104646.js +0 -123
- package/.history/vue.config_20230626104824.js +0 -124
- package/.history/vue.config_20230626104825.js +0 -124
- package/.history/vue.config_20230626104829.js +0 -124
- package/.history/vue.config_20230626104832.js +0 -124
- package/.history/vue.config_20230626104836.js +0 -121
- package/.history/vue.config_20230626105637.js +0 -122
- package/.history/vue.config_20230626105642.js +0 -123
- package/.history/vue.config_20230626105834.js +0 -124
- package/.history/vue.config_20230626105920.js +0 -124
- package/.history/vue.config_20230626105938.js +0 -123
- package/.history/vue.config_20230626110142.js +0 -124
- package/.history/vue.config_20230626110147.js +0 -124
- package/.history/vue.config_20230626110154.js +0 -124
- package/.history/vue.config_20230626110156.js +0 -124
- package/.history/vue.config_20230626110206.js +0 -124
- package/.history/vue.config_20230626110207.js +0 -124
- package/.history/vue.config_20230626110209.js +0 -124
- package/.history/vue.config_20230626110235.js +0 -123
- package/.history/vue.config_20230626110237.js +0 -123
- package/.history/vue.config_20230626110257.js +0 -123
- package/.history/vue.config_20230626110300.js +0 -123
- package/.history/vue.config_20230626110316.js +0 -123
- package/.history/vue.config_20230626110621.js +0 -123
- package/.history/vue.config_20230626110703.js +0 -124
- package/.history/vue.config_20230626110708.js +0 -125
- package/.history/vue.config_20230626110710.js +0 -126
- package/.history/vue.config_20230626110712.js +0 -127
- package/.history/vue.config_20230626110715.js +0 -126
- package/.history/vue.config_20230626110716.js +0 -127
- package/.history/vue.config_20230626110721.js +0 -128
- package/.history/vue.config_20230626110741.js +0 -128
- package/.history/vue.config_20230626110746.js +0 -128
- package/.history/vue.config_20230626110751.js +0 -128
- package/.history/vue.config_20230626110754.js +0 -128
- package/.history/vue.config_20230626110757.js +0 -128
- package/.history/vue.config_20230626110811.js +0 -128
- package/.history/vue.config_20230626110815.js +0 -128
- package/.history/vue.config_20230626110820.js +0 -128
- package/.history/vue.config_20230626110823.js +0 -128
- package/.history/vue.config_20230626110949.js +0 -129
- package/.history/vue.config_20230626110951.js +0 -129
- package/.history/vue.config_20230626110953.js +0 -130
- package/.history/vue.config_20230626110956.js +0 -130
- package/.history/vue.config_20230626110958.js +0 -131
- package/.history/vue.config_20230626111207.js +0 -131
- package/.history/vue.config_20230626111211.js +0 -131
- package/.history/vue.config_20230626111216.js +0 -131
- package/.history/vue.config_20230626111217.js +0 -131
- package/.history/vue.config_20230626111332.js +0 -131
- package/.history/vue.config_20230626111338.js +0 -131
- package/.history/vue.config_20230626111342.js +0 -131
- package/.history/vue.config_20230626111359.js +0 -131
- package/.history/vue.config_20230626111402.js +0 -131
- package/.history/vue.config_20230626111404.js +0 -131
- package/.history/vue.config_20230626111442.js +0 -131
- package/.history/vue.config_20230626111443.js +0 -131
- package/.history/vue.config_20230626111448.js +0 -131
- package/.history/vue.config_20230626111450.js +0 -131
- package/.history/vue.config_20230626111528.js +0 -131
- package/.history/vue.config_20230626111529.js +0 -131
- package/.history/vue.config_20230626112153.js +0 -132
- package/.history/vue.config_20230626112156.js +0 -133
- package/.history/vue.config_20230626112158.js +0 -132
- package/.history/vue.config_20230626112201.js +0 -132
- package/.history/vue.config_20230626112254.js +0 -132
- package/.history/vue.config_20230626112400.js +0 -132
- package/.history/vue.config_20230626112402.js +0 -132
- package/.history/vue.config_20230626112452.js +0 -132
- package/.history/vue.config_20230626113026.js +0 -133
- package/.history/vue.config_20230626113032.js +0 -133
- package/.history/vue.config_20230626113034.js +0 -134
- package/.history/vue.config_20230626113036.js +0 -135
- package/.history/vue.config_20230626113040.js +0 -136
- package/.history/vue.config_20230626113041.js +0 -137
- package/.history/vue.config_20230626113042.js +0 -138
- package/.history/vue.config_20230626113044.js +0 -139
- package/.history/vue.config_20230626113049.js +0 -140
- package/.history/vue.config_20230626113052.js +0 -141
- package/.history/vue.config_20230626113056.js +0 -142
- package/.history/vue.config_20230626113058.js +0 -143
- package/.history/vue.config_20230626113101.js +0 -144
- package/.history/vue.config_20230626113105.js +0 -144
- package/.history/vue.config_20230626113110.js +0 -145
- package/.history/vue.config_20230626113112.js +0 -145
- package/.history/vue.config_20230626113129.js +0 -145
- package/.history/vue.config_20230626113131.js +0 -146
- package/.history/vue.config_20230626113133.js +0 -145
- package/.history/vue.config_20230626113142.js +0 -144
- package/.history/vue.config_20230626113145.js +0 -137
- package/.history/vue.config_20230626113147.js +0 -144
- package/.history/vue.config_20230626113154.js +0 -143
- package/.history/vue.config_20230626113202.js +0 -144
- package/.history/vue.config_20230626113204.js +0 -144
- package/.history/vue.config_20230626113207.js +0 -144
- package/.history/vue.config_20230626113216.js +0 -144
- package/.history/vue.config_20230626113223.js +0 -144
- package/.history/vue.config_20230626113224.js +0 -144
- package/.history/vue.config_20230626113227.js +0 -144
- package/.history/vue.config_20230626113230.js +0 -144
- package/.history/vue.config_20230626113237.js +0 -144
- package/.history/vue.config_20230626113239.js +0 -144
- package/.history/vue.config_20230626113244.js +0 -144
- package/.history/vue.config_20230626113245.js +0 -144
- package/.history/vue.config_20230626113248.js +0 -142
- package/.history/vue.config_20230626113250.js +0 -142
- package/.history/vue.config_20230626113255.js +0 -142
- package/.history/vue.config_20230626113303.js +0 -142
- package/.history/vue.config_20230626113305.js +0 -142
- package/.history/vue.config_20230626113309.js +0 -142
- package/.history/vue.config_20230626113347.js +0 -142
- package/.history/vue.config_20230626113404.js +0 -139
- package/.history/vue.config_20230626113406.js +0 -138
- package/.history/vue.config_20230626113418.js +0 -134
- package/.history/vue.config_20230626113511.js +0 -129
- package/.history/vue.config_20230626113656.js +0 -129
- package/.history/vue.config_20230626114206.js +0 -134
- package/.history/vue.config_20230626114210.js +0 -138
- package/.history/vue.config_20230626114358.js +0 -137
- package/.history/vue.config_20230626114603.js +0 -137
- package/.history/vue.config_20230626114605.js +0 -137
- package/.history/vue.config_20230626114657.js +0 -137
- package/.history/vue.config_20230626114745.js +0 -137
- package/.history/vue.config_20230626114821.js +0 -137
- package/.history/vue.config_20230626114832.js +0 -139
- package/.history/vue.config_20230626114836.js +0 -132
- package/.history/vue.config_20230626114847.js +0 -132
- package/.history/vue.config_20230626114850.js +0 -132
- package/.history/vue.config_20230626131835.js +0 -132
- package/.history/vue.config_20230626132308.js +0 -132
- package/.history/vue.config_20230626132415.js +0 -132
- package/.history/vue.config_20230626132534.js +0 -132
- package/.history/vue.config_20230626132823.js +0 -133
- package/.history/vue.config_20230626132826.js +0 -133
- package/.history/vue.config_20230626132829.js +0 -133
- package/.history/vue.config_20230626132832.js +0 -133
- package/.history/vue.config_20230626132836.js +0 -132
- package/.history/vue.config_20230626132838.js +0 -132
- package/.history/vue.config_20230626132940.js +0 -132
- package/.history/vue.config_20230626133032.js +0 -131
- package/.history/vue.config_20230626133106.js +0 -132
- package/.history/vue.config_20230626133113.js +0 -132
- package/.history/vue.config_20230626133122.js +0 -132
- package/.history/vue.config_20230626133252.js +0 -132
- package/.history/vue.config_20230626133258.js +0 -133
- package/.history/vue.config_20230626133300.js +0 -133
- package/.history/vue.config_20230626133302.js +0 -133
- package/.history/vue.config_20230626133303.js +0 -133
- package/.history/vue.config_20230626133305.js +0 -133
- package/.history/vue.config_20230626133312.js +0 -132
- package/.history/vue.config_20230626133314.js +0 -132
- package/.history/vue.config_20230626133316.js +0 -133
- package/.history/vue.config_20230626133319.js +0 -132
- package/.history/vue.config_20230626133326.js +0 -132
- package/.history/vue.config_20230626133336.js +0 -132
- package/.history/vue.config_20230626133428.js +0 -132
- package/.history/vue.config_20230626133623.js +0 -132
- package/.history/vue.config_20230626133736.js +0 -132
- package/fonts/icomoon.356dc15f.woff +0 -0
- package/fonts/icomoon.71d64f31.woff +0 -0
- package/fonts/icomoon.7c9a60d9.eot +0 -0
- package/fonts/icomoon.ba18ad87.eot +0 -0
- package/fonts/icomoon.de76432e.ttf +0 -0
- package/fonts/icomoon.ec37e716.ttf +0 -0
- package/img/cloud_txt_24.87b9d2ae.svg +0 -1
- package/img/icomoon.428f3063.svg +0 -346
- package/img/icomoon.532b3795.svg +0 -345
- package/img/icon_question.e931b16c.svg +0 -14
- package/lib/demo.html +0 -10
- package/lib/fonts/icomoon.356dc15f.woff +0 -0
- package/lib/fonts/icomoon.71d64f31.woff +0 -0
- package/lib/fonts/icomoon.7c9a60d9.eot +0 -0
- package/lib/fonts/icomoon.ba18ad87.eot +0 -0
- package/lib/fonts/icomoon.de76432e.ttf +0 -0
- package/lib/fonts/icomoon.ec37e716.ttf +0 -0
- package/lib/img/cloud_txt_24.87b9d2ae.svg +0 -1
- package/lib/img/icomoon.428f3063.svg +0 -346
- package/lib/img/icomoon.532b3795.svg +0 -345
- package/lib/img/icon_question.e931b16c.svg +0 -14
- package/lib/ui.common.js +0 -93058
- package/lib/ui.css +0 -1
- package/lib/ui.umd.js +0 -93068
- package/lib/ui.umd.min.js +0 -25
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
// const PrerenderSpaPlugin = require("prerender-spa-plugin");
|
|
3
|
-
const MarkdownItContainer = require("markdown-it-container");
|
|
4
|
-
|
|
5
|
-
const cheerio = require('cheerio');
|
|
6
|
-
const striptags = (str, tags) => {
|
|
7
|
-
const $ = cheerio.load(str, { decodeEntities: false })
|
|
8
|
-
|
|
9
|
-
if (!tags || tags.length === 0) {
|
|
10
|
-
return str
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
tags = !Array.isArray(tags) ? [tags] : tags;
|
|
14
|
-
let len = tags.length;
|
|
15
|
-
|
|
16
|
-
while (len--) {
|
|
17
|
-
$(tags[len]).remove()
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return $.html()
|
|
21
|
-
};
|
|
22
|
-
const convertHtml = function (str) {
|
|
23
|
-
return str.replace(/(&#x)(\w{4});/gi, $0 => String.fromCharCode(parseInt(encodeURIComponent($0).replace(/(%26%23x)(\w{4})(%3B)/g, '$2'), 16)))
|
|
24
|
-
};
|
|
25
|
-
const wrapCustomClass = function (render) {
|
|
26
|
-
return function (...args) {
|
|
27
|
-
return render(...args)
|
|
28
|
-
.replace('<code class="', '<code class="hljs ')
|
|
29
|
-
.replace('<code>', '<code class="hljs">')
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const vueMarkdown = {
|
|
33
|
-
raw: true,
|
|
34
|
-
preprocess: (MarkdownIt, source) => {
|
|
35
|
-
MarkdownIt.renderer.rules.table_open = function () {
|
|
36
|
-
return '<table class="table">'
|
|
37
|
-
};
|
|
38
|
-
MarkdownIt.renderer.rules.fence = wrapCustomClass(MarkdownIt.renderer.rules.fence);
|
|
39
|
-
|
|
40
|
-
// ```code`` 给这种样式加个class code_inline
|
|
41
|
-
const code_inline = MarkdownIt.renderer.rules.code_inline;
|
|
42
|
-
MarkdownIt.renderer.rules.code_inline = function(...args){
|
|
43
|
-
args[0][args[1]].attrJoin('class', 'code_inline');
|
|
44
|
-
return code_inline(...args)
|
|
45
|
-
};
|
|
46
|
-
return source
|
|
47
|
-
},
|
|
48
|
-
use: [
|
|
49
|
-
[MarkdownItContainer, 'demo', {
|
|
50
|
-
validate: params => params.trim().match(/^demo\s*(.*)$/),
|
|
51
|
-
render: function(tokens, idx) {
|
|
52
|
-
if (tokens[idx].nesting === 1) {
|
|
53
|
-
const html = convertHtml(striptags(tokens[idx + 1].content, 'script'));
|
|
54
|
-
// 移除描述,防止被添加到代码块
|
|
55
|
-
tokens[idx + 2].children = [];
|
|
56
|
-
|
|
57
|
-
return `<demo-block>
|
|
58
|
-
<div slot="desc">${html}</div>
|
|
59
|
-
<div slot="highlight">`;
|
|
60
|
-
}
|
|
61
|
-
return '</div></demo-block>\n';
|
|
62
|
-
}
|
|
63
|
-
}]
|
|
64
|
-
]
|
|
65
|
-
};
|
|
66
|
-
const resolve = dir => path.join(__dirname, dir);
|
|
67
|
-
const packagesDir = resolve('packages');
|
|
68
|
-
module.exports = {
|
|
69
|
-
runtimeCompiler: true,
|
|
70
|
-
devServer: {
|
|
71
|
-
proxy: {
|
|
72
|
-
'/backend': {
|
|
73
|
-
target: 'http://10.10.14.64:8085',
|
|
74
|
-
changeOrigin: true,
|
|
75
|
-
pathRewrite: {
|
|
76
|
-
'^/backend': '/'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
pages: {
|
|
82
|
-
index: {
|
|
83
|
-
entry: "examples/main.js",
|
|
84
|
-
template: "public/index.html",
|
|
85
|
-
filename: "index.html"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
publicPath: process.env.NODE_ENV === 'production' ? '/vue-ui-demo/' : '/',
|
|
89
|
-
chainWebpack: config => {
|
|
90
|
-
config.resolve.alias
|
|
91
|
-
.set("@", path.resolve("examples"))
|
|
92
|
-
.set("~", path.resolve("packages"));
|
|
93
|
-
config.module
|
|
94
|
-
.rule("js")
|
|
95
|
-
.include.add("/packages")
|
|
96
|
-
.end()
|
|
97
|
-
.include.add("/examples")
|
|
98
|
-
.end()
|
|
99
|
-
.include.add("/api")
|
|
100
|
-
.end()
|
|
101
|
-
.use("babel")
|
|
102
|
-
.loader("babel-loader")
|
|
103
|
-
.end()
|
|
104
|
-
.use("vue-loader")
|
|
105
|
-
.loader("vue-loader")
|
|
106
|
-
.end()
|
|
107
|
-
config.module.rule("md")
|
|
108
|
-
.test(/\.md/)
|
|
109
|
-
.use("vue-loader")
|
|
110
|
-
.loader("vue-loader")
|
|
111
|
-
.end()
|
|
112
|
-
.use("vue-markdown-loader")
|
|
113
|
-
.loader("vue-markdown-loader/lib/markdown-compiler")
|
|
114
|
-
.options(vueMarkdown);
|
|
115
|
-
config.module.rule("vue")
|
|
116
|
-
.test(/\.vue/)
|
|
117
|
-
.use("vue-loader")
|
|
118
|
-
.loader("vue-loader")
|
|
119
|
-
},
|
|
120
|
-
outputDir:path.resolve(__dirname, 'lib'),
|
|
121
|
-
assetsDir: '',
|
|
122
|
-
configureWebpack: {
|
|
123
|
-
entry: {
|
|
124
|
-
index: path.resolve(packagesDir, 'index.js'),
|
|
125
|
-
exam: path.resolve(packagesDir, 'exam/index.js'),
|
|
126
|
-
'exam-drawer': path.resolve(packagesDir, 'exam-drawer/index.js'),
|
|
127
|
-
},
|
|
128
|
-
output: {
|
|
129
|
-
filename: 'packages/[name]/[name].js',
|
|
130
|
-
},
|
|
131
|
-
output: { l
|
|
132
|
-
ibraryExport: 'default',
|
|
133
|
-
library: {
|
|
134
|
-
root: 'MyLibrary',
|
|
135
|
-
|
|
136
|
-
amd: '@focus-teach/my-library',
|
|
137
|
-
|
|
138
|
-
commonjs: '@focus-teach/my-library'
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, chainWebpack: config => { config.externals([ /^@focus-teach\/.*/ ]) }
|
|
143
|
-
}
|
|
144
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
// const PrerenderSpaPlugin = require("prerender-spa-plugin");
|
|
3
|
-
const MarkdownItContainer = require("markdown-it-container");
|
|
4
|
-
|
|
5
|
-
const cheerio = require('cheerio');
|
|
6
|
-
const striptags = (str, tags) => {
|
|
7
|
-
const $ = cheerio.load(str, { decodeEntities: false })
|
|
8
|
-
|
|
9
|
-
if (!tags || tags.length === 0) {
|
|
10
|
-
return str
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
tags = !Array.isArray(tags) ? [tags] : tags;
|
|
14
|
-
let len = tags.length;
|
|
15
|
-
|
|
16
|
-
while (len--) {
|
|
17
|
-
$(tags[len]).remove()
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return $.html()
|
|
21
|
-
};
|
|
22
|
-
const convertHtml = function (str) {
|
|
23
|
-
return str.replace(/(&#x)(\w{4});/gi, $0 => String.fromCharCode(parseInt(encodeURIComponent($0).replace(/(%26%23x)(\w{4})(%3B)/g, '$2'), 16)))
|
|
24
|
-
};
|
|
25
|
-
const wrapCustomClass = function (render) {
|
|
26
|
-
return function (...args) {
|
|
27
|
-
return render(...args)
|
|
28
|
-
.replace('<code class="', '<code class="hljs ')
|
|
29
|
-
.replace('<code>', '<code class="hljs">')
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const vueMarkdown = {
|
|
33
|
-
raw: true,
|
|
34
|
-
preprocess: (MarkdownIt, source) => {
|
|
35
|
-
MarkdownIt.renderer.rules.table_open = function () {
|
|
36
|
-
return '<table class="table">'
|
|
37
|
-
};
|
|
38
|
-
MarkdownIt.renderer.rules.fence = wrapCustomClass(MarkdownIt.renderer.rules.fence);
|
|
39
|
-
|
|
40
|
-
// ```code`` 给这种样式加个class code_inline
|
|
41
|
-
const code_inline = MarkdownIt.renderer.rules.code_inline;
|
|
42
|
-
MarkdownIt.renderer.rules.code_inline = function(...args){
|
|
43
|
-
args[0][args[1]].attrJoin('class', 'code_inline');
|
|
44
|
-
return code_inline(...args)
|
|
45
|
-
};
|
|
46
|
-
return source
|
|
47
|
-
},
|
|
48
|
-
use: [
|
|
49
|
-
[MarkdownItContainer, 'demo', {
|
|
50
|
-
validate: params => params.trim().match(/^demo\s*(.*)$/),
|
|
51
|
-
render: function(tokens, idx) {
|
|
52
|
-
if (tokens[idx].nesting === 1) {
|
|
53
|
-
const html = convertHtml(striptags(tokens[idx + 1].content, 'script'));
|
|
54
|
-
// 移除描述,防止被添加到代码块
|
|
55
|
-
tokens[idx + 2].children = [];
|
|
56
|
-
|
|
57
|
-
return `<demo-block>
|
|
58
|
-
<div slot="desc">${html}</div>
|
|
59
|
-
<div slot="highlight">`;
|
|
60
|
-
}
|
|
61
|
-
return '</div></demo-block>\n';
|
|
62
|
-
}
|
|
63
|
-
}]
|
|
64
|
-
]
|
|
65
|
-
};
|
|
66
|
-
const resolve = dir => path.join(__dirname, dir);
|
|
67
|
-
const packagesDir = resolve('packages');
|
|
68
|
-
module.exports = {
|
|
69
|
-
runtimeCompiler: true,
|
|
70
|
-
devServer: {
|
|
71
|
-
proxy: {
|
|
72
|
-
'/backend': {
|
|
73
|
-
target: 'http://10.10.14.64:8085',
|
|
74
|
-
changeOrigin: true,
|
|
75
|
-
pathRewrite: {
|
|
76
|
-
'^/backend': '/'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
pages: {
|
|
82
|
-
index: {
|
|
83
|
-
entry: "examples/main.js",
|
|
84
|
-
template: "public/index.html",
|
|
85
|
-
filename: "index.html"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
publicPath: process.env.NODE_ENV === 'production' ? '/vue-ui-demo/' : '/',
|
|
89
|
-
chainWebpack: config => {
|
|
90
|
-
config.resolve.alias
|
|
91
|
-
.set("@", path.resolve("examples"))
|
|
92
|
-
.set("~", path.resolve("packages"));
|
|
93
|
-
config.module
|
|
94
|
-
.rule("js")
|
|
95
|
-
.include.add("/packages")
|
|
96
|
-
.end()
|
|
97
|
-
.include.add("/examples")
|
|
98
|
-
.end()
|
|
99
|
-
.include.add("/api")
|
|
100
|
-
.end()
|
|
101
|
-
.use("babel")
|
|
102
|
-
.loader("babel-loader")
|
|
103
|
-
.end()
|
|
104
|
-
.use("vue-loader")
|
|
105
|
-
.loader("vue-loader")
|
|
106
|
-
.end()
|
|
107
|
-
config.module.rule("md")
|
|
108
|
-
.test(/\.md/)
|
|
109
|
-
.use("vue-loader")
|
|
110
|
-
.loader("vue-loader")
|
|
111
|
-
.end()
|
|
112
|
-
.use("vue-markdown-loader")
|
|
113
|
-
.loader("vue-markdown-loader/lib/markdown-compiler")
|
|
114
|
-
.options(vueMarkdown);
|
|
115
|
-
config.module.rule("vue")
|
|
116
|
-
.test(/\.vue/)
|
|
117
|
-
.use("vue-loader")
|
|
118
|
-
.loader("vue-loader")
|
|
119
|
-
},
|
|
120
|
-
outputDir:path.resolve(__dirname, 'lib'),
|
|
121
|
-
assetsDir: '',
|
|
122
|
-
configureWebpack: {
|
|
123
|
-
entry: {
|
|
124
|
-
index: path.resolve(packagesDir, 'index.js'),
|
|
125
|
-
exam: path.resolve(packagesDir, 'exam/index.js'),
|
|
126
|
-
'exam-drawer': path.resolve(packagesDir, 'exam-drawer/index.js'),
|
|
127
|
-
},
|
|
128
|
-
output: {
|
|
129
|
-
filename: 'packages/[name]/[name].js',
|
|
130
|
-
},
|
|
131
|
-
output: { l
|
|
132
|
-
libraryExport: 'default',
|
|
133
|
-
library: {
|
|
134
|
-
root: 'MyLibrary',
|
|
135
|
-
|
|
136
|
-
amd: '@focus-teach/my-library',
|
|
137
|
-
|
|
138
|
-
commonjs: '@focus-teach/my-library'
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, chainWebpack: config => { config.externals([ /^@focus-teach\/.*/ ]) }
|
|
143
|
-
}
|
|
144
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
// const PrerenderSpaPlugin = require("prerender-spa-plugin");
|
|
3
|
-
const MarkdownItContainer = require("markdown-it-container");
|
|
4
|
-
|
|
5
|
-
const cheerio = require('cheerio');
|
|
6
|
-
const striptags = (str, tags) => {
|
|
7
|
-
const $ = cheerio.load(str, { decodeEntities: false })
|
|
8
|
-
|
|
9
|
-
if (!tags || tags.length === 0) {
|
|
10
|
-
return str
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
tags = !Array.isArray(tags) ? [tags] : tags;
|
|
14
|
-
let len = tags.length;
|
|
15
|
-
|
|
16
|
-
while (len--) {
|
|
17
|
-
$(tags[len]).remove()
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return $.html()
|
|
21
|
-
};
|
|
22
|
-
const convertHtml = function (str) {
|
|
23
|
-
return str.replace(/(&#x)(\w{4});/gi, $0 => String.fromCharCode(parseInt(encodeURIComponent($0).replace(/(%26%23x)(\w{4})(%3B)/g, '$2'), 16)))
|
|
24
|
-
};
|
|
25
|
-
const wrapCustomClass = function (render) {
|
|
26
|
-
return function (...args) {
|
|
27
|
-
return render(...args)
|
|
28
|
-
.replace('<code class="', '<code class="hljs ')
|
|
29
|
-
.replace('<code>', '<code class="hljs">')
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const vueMarkdown = {
|
|
33
|
-
raw: true,
|
|
34
|
-
preprocess: (MarkdownIt, source) => {
|
|
35
|
-
MarkdownIt.renderer.rules.table_open = function () {
|
|
36
|
-
return '<table class="table">'
|
|
37
|
-
};
|
|
38
|
-
MarkdownIt.renderer.rules.fence = wrapCustomClass(MarkdownIt.renderer.rules.fence);
|
|
39
|
-
|
|
40
|
-
// ```code`` 给这种样式加个class code_inline
|
|
41
|
-
const code_inline = MarkdownIt.renderer.rules.code_inline;
|
|
42
|
-
MarkdownIt.renderer.rules.code_inline = function(...args){
|
|
43
|
-
args[0][args[1]].attrJoin('class', 'code_inline');
|
|
44
|
-
return code_inline(...args)
|
|
45
|
-
};
|
|
46
|
-
return source
|
|
47
|
-
},
|
|
48
|
-
use: [
|
|
49
|
-
[MarkdownItContainer, 'demo', {
|
|
50
|
-
validate: params => params.trim().match(/^demo\s*(.*)$/),
|
|
51
|
-
render: function(tokens, idx) {
|
|
52
|
-
if (tokens[idx].nesting === 1) {
|
|
53
|
-
const html = convertHtml(striptags(tokens[idx + 1].content, 'script'));
|
|
54
|
-
// 移除描述,防止被添加到代码块
|
|
55
|
-
tokens[idx + 2].children = [];
|
|
56
|
-
|
|
57
|
-
return `<demo-block>
|
|
58
|
-
<div slot="desc">${html}</div>
|
|
59
|
-
<div slot="highlight">`;
|
|
60
|
-
}
|
|
61
|
-
return '</div></demo-block>\n';
|
|
62
|
-
}
|
|
63
|
-
}]
|
|
64
|
-
]
|
|
65
|
-
};
|
|
66
|
-
const resolve = dir => path.join(__dirname, dir);
|
|
67
|
-
const packagesDir = resolve('packages');
|
|
68
|
-
module.exports = {
|
|
69
|
-
runtimeCompiler: true,
|
|
70
|
-
devServer: {
|
|
71
|
-
proxy: {
|
|
72
|
-
'/backend': {
|
|
73
|
-
target: 'http://10.10.14.64:8085',
|
|
74
|
-
changeOrigin: true,
|
|
75
|
-
pathRewrite: {
|
|
76
|
-
'^/backend': '/'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
pages: {
|
|
82
|
-
index: {
|
|
83
|
-
entry: "examples/main.js",
|
|
84
|
-
template: "public/index.html",
|
|
85
|
-
filename: "index.html"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
publicPath: process.env.NODE_ENV === 'production' ? '/vue-ui-demo/' : '/',
|
|
89
|
-
chainWebpack: config => {
|
|
90
|
-
config.resolve.alias
|
|
91
|
-
.set("@", path.resolve("examples"))
|
|
92
|
-
.set("~", path.resolve("packages"));
|
|
93
|
-
config.module
|
|
94
|
-
.rule("js")
|
|
95
|
-
.include.add("/packages")
|
|
96
|
-
.end()
|
|
97
|
-
.include.add("/examples")
|
|
98
|
-
.end()
|
|
99
|
-
.include.add("/api")
|
|
100
|
-
.end()
|
|
101
|
-
.use("babel")
|
|
102
|
-
.loader("babel-loader")
|
|
103
|
-
.end()
|
|
104
|
-
.use("vue-loader")
|
|
105
|
-
.loader("vue-loader")
|
|
106
|
-
.end()
|
|
107
|
-
config.module.rule("md")
|
|
108
|
-
.test(/\.md/)
|
|
109
|
-
.use("vue-loader")
|
|
110
|
-
.loader("vue-loader")
|
|
111
|
-
.end()
|
|
112
|
-
.use("vue-markdown-loader")
|
|
113
|
-
.loader("vue-markdown-loader/lib/markdown-compiler")
|
|
114
|
-
.options(vueMarkdown);
|
|
115
|
-
config.module.rule("vue")
|
|
116
|
-
.test(/\.vue/)
|
|
117
|
-
.use("vue-loader")
|
|
118
|
-
.loader("vue-loader")
|
|
119
|
-
},
|
|
120
|
-
outputDir:path.resolve(__dirname, 'lib'),
|
|
121
|
-
assetsDir: '',
|
|
122
|
-
configureWebpack: {
|
|
123
|
-
entry: {
|
|
124
|
-
index: path.resolve(packagesDir, 'index.js'),
|
|
125
|
-
exam: path.resolve(packagesDir, 'exam/index.js'),
|
|
126
|
-
'exam-drawer': path.resolve(packagesDir, 'exam-drawer/index.js'),
|
|
127
|
-
},
|
|
128
|
-
output: {
|
|
129
|
-
filename: 'packages/[name]/[name].js',
|
|
130
|
-
},
|
|
131
|
-
output: { l
|
|
132
|
-
|
|
133
|
-
libraryExport: 'default',
|
|
134
|
-
library: {
|
|
135
|
-
root: 'MyLibrary',
|
|
136
|
-
|
|
137
|
-
amd: '@focus-teach/my-library',
|
|
138
|
-
|
|
139
|
-
commonjs: '@focus-teach/my-library'
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}, chainWebpack: config => { config.externals([ /^@focus-teach\/.*/ ]) }
|
|
144
|
-
}
|
|
145
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
// const PrerenderSpaPlugin = require("prerender-spa-plugin");
|
|
3
|
-
const MarkdownItContainer = require("markdown-it-container");
|
|
4
|
-
|
|
5
|
-
const cheerio = require('cheerio');
|
|
6
|
-
const striptags = (str, tags) => {
|
|
7
|
-
const $ = cheerio.load(str, { decodeEntities: false })
|
|
8
|
-
|
|
9
|
-
if (!tags || tags.length === 0) {
|
|
10
|
-
return str
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
tags = !Array.isArray(tags) ? [tags] : tags;
|
|
14
|
-
let len = tags.length;
|
|
15
|
-
|
|
16
|
-
while (len--) {
|
|
17
|
-
$(tags[len]).remove()
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return $.html()
|
|
21
|
-
};
|
|
22
|
-
const convertHtml = function (str) {
|
|
23
|
-
return str.replace(/(&#x)(\w{4});/gi, $0 => String.fromCharCode(parseInt(encodeURIComponent($0).replace(/(%26%23x)(\w{4})(%3B)/g, '$2'), 16)))
|
|
24
|
-
};
|
|
25
|
-
const wrapCustomClass = function (render) {
|
|
26
|
-
return function (...args) {
|
|
27
|
-
return render(...args)
|
|
28
|
-
.replace('<code class="', '<code class="hljs ')
|
|
29
|
-
.replace('<code>', '<code class="hljs">')
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const vueMarkdown = {
|
|
33
|
-
raw: true,
|
|
34
|
-
preprocess: (MarkdownIt, source) => {
|
|
35
|
-
MarkdownIt.renderer.rules.table_open = function () {
|
|
36
|
-
return '<table class="table">'
|
|
37
|
-
};
|
|
38
|
-
MarkdownIt.renderer.rules.fence = wrapCustomClass(MarkdownIt.renderer.rules.fence);
|
|
39
|
-
|
|
40
|
-
// ```code`` 给这种样式加个class code_inline
|
|
41
|
-
const code_inline = MarkdownIt.renderer.rules.code_inline;
|
|
42
|
-
MarkdownIt.renderer.rules.code_inline = function(...args){
|
|
43
|
-
args[0][args[1]].attrJoin('class', 'code_inline');
|
|
44
|
-
return code_inline(...args)
|
|
45
|
-
};
|
|
46
|
-
return source
|
|
47
|
-
},
|
|
48
|
-
use: [
|
|
49
|
-
[MarkdownItContainer, 'demo', {
|
|
50
|
-
validate: params => params.trim().match(/^demo\s*(.*)$/),
|
|
51
|
-
render: function(tokens, idx) {
|
|
52
|
-
if (tokens[idx].nesting === 1) {
|
|
53
|
-
const html = convertHtml(striptags(tokens[idx + 1].content, 'script'));
|
|
54
|
-
// 移除描述,防止被添加到代码块
|
|
55
|
-
tokens[idx + 2].children = [];
|
|
56
|
-
|
|
57
|
-
return `<demo-block>
|
|
58
|
-
<div slot="desc">${html}</div>
|
|
59
|
-
<div slot="highlight">`;
|
|
60
|
-
}
|
|
61
|
-
return '</div></demo-block>\n';
|
|
62
|
-
}
|
|
63
|
-
}]
|
|
64
|
-
]
|
|
65
|
-
};
|
|
66
|
-
const resolve = dir => path.join(__dirname, dir);
|
|
67
|
-
const packagesDir = resolve('packages');
|
|
68
|
-
module.exports = {
|
|
69
|
-
runtimeCompiler: true,
|
|
70
|
-
devServer: {
|
|
71
|
-
proxy: {
|
|
72
|
-
'/backend': {
|
|
73
|
-
target: 'http://10.10.14.64:8085',
|
|
74
|
-
changeOrigin: true,
|
|
75
|
-
pathRewrite: {
|
|
76
|
-
'^/backend': '/'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
pages: {
|
|
82
|
-
index: {
|
|
83
|
-
entry: "examples/main.js",
|
|
84
|
-
template: "public/index.html",
|
|
85
|
-
filename: "index.html"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
publicPath: process.env.NODE_ENV === 'production' ? '/vue-ui-demo/' : '/',
|
|
89
|
-
chainWebpack: config => {
|
|
90
|
-
config.resolve.alias
|
|
91
|
-
.set("@", path.resolve("examples"))
|
|
92
|
-
.set("~", path.resolve("packages"));
|
|
93
|
-
config.module
|
|
94
|
-
.rule("js")
|
|
95
|
-
.include.add("/packages")
|
|
96
|
-
.end()
|
|
97
|
-
.include.add("/examples")
|
|
98
|
-
.end()
|
|
99
|
-
.include.add("/api")
|
|
100
|
-
.end()
|
|
101
|
-
.use("babel")
|
|
102
|
-
.loader("babel-loader")
|
|
103
|
-
.end()
|
|
104
|
-
.use("vue-loader")
|
|
105
|
-
.loader("vue-loader")
|
|
106
|
-
.end()
|
|
107
|
-
config.module.rule("md")
|
|
108
|
-
.test(/\.md/)
|
|
109
|
-
.use("vue-loader")
|
|
110
|
-
.loader("vue-loader")
|
|
111
|
-
.end()
|
|
112
|
-
.use("vue-markdown-loader")
|
|
113
|
-
.loader("vue-markdown-loader/lib/markdown-compiler")
|
|
114
|
-
.options(vueMarkdown);
|
|
115
|
-
config.module.rule("vue")
|
|
116
|
-
.test(/\.vue/)
|
|
117
|
-
.use("vue-loader")
|
|
118
|
-
.loader("vue-loader")
|
|
119
|
-
},
|
|
120
|
-
outputDir:path.resolve(__dirname, 'lib'),
|
|
121
|
-
assetsDir: '',
|
|
122
|
-
configureWebpack: {
|
|
123
|
-
entry: {
|
|
124
|
-
index: path.resolve(packagesDir, 'index.js'),
|
|
125
|
-
exam: path.resolve(packagesDir, 'exam/index.js'),
|
|
126
|
-
'exam-drawer': path.resolve(packagesDir, 'exam-drawer/index.js'),
|
|
127
|
-
},
|
|
128
|
-
output: {
|
|
129
|
-
filename: 'packages/[name]/[name].js',
|
|
130
|
-
},
|
|
131
|
-
output: {
|
|
132
|
-
|
|
133
|
-
libraryExport: 'default',
|
|
134
|
-
library: {
|
|
135
|
-
root: 'MyLibrary',
|
|
136
|
-
|
|
137
|
-
amd: '@focus-teach/my-library',
|
|
138
|
-
|
|
139
|
-
commonjs: '@focus-teach/my-library'
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}, chainWebpack: config => { config.externals([ /^@focus-teach\/.*/ ]) }
|
|
144
|
-
}
|
|
145
|
-
};
|