valaxy-theme-hairy 0.2.2 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/client/index.ts +1 -0
- package/components/HairyBody.vue +15 -17
- package/components/HairyComment.vue +33 -0
- package/components/HairyContainer.vue +17 -0
- package/components/{HairyUserPopup.vue → HairyDrawer.vue} +16 -16
- package/components/HairyFooter.vue +12 -9
- package/components/HairyHeader.vue +10 -9
- package/components/HairyImage.vue +3 -2
- package/components/HairyImageGroup.vue +12 -16
- package/components/HairyNavbar.vue +56 -0
- package/components/HairyPageArchives.vue +59 -0
- package/components/HairyPageTags.vue +48 -0
- package/components/{HairyPostList.vue → HairyPosts.vue} +3 -3
- package/components/{HairyNavSearch.vue → HairySearch.vue} +23 -87
- package/components/{HairyUserCard.vue → HairySidebar.vue} +4 -4
- package/components/HairyTabbar.vue +56 -0
- package/components/PageTags.vue +48 -0
- package/components/ValaxyMain.vue +3 -3
- package/components/navbar/HairyNav.vue +16 -0
- package/components/navbar/HairyNavExpand.vue +12 -0
- package/components/navbar/HairyNavItem.vue +35 -0
- package/components/navbar/HairyNavbarBackground.vue +7 -0
- package/components/navbar/HairyNavbarSearch.vue +8 -0
- package/components/{HairyNavTitle.vue → navbar/HairyNavbarTitle.vue} +5 -3
- package/components/navbar/HairyNavbarToggleDark.vue +22 -0
- package/components/{HairyBreadcrumb.vue → parts/HairyBreadcrumb.vue} +2 -2
- package/components/{HairyBreadcrumbItem.vue → parts/HairyBreadcrumbItem.vue} +1 -4
- package/components/{lib/fish.js → parts/HairyFootFish.js} +5 -7
- package/components/parts/HairyFootFish.vue +38 -0
- package/components/{HairyPostTitle.vue → parts/HairyHeadHero.vue} +6 -5
- package/components/{HairyWaves.vue → parts/HairyHeadWaves.vue} +5 -5
- package/components/parts/HairyImageGlobal.vue +51 -0
- package/components/{HairyImageViewer.vue → parts/HairyImageViewer.vue} +5 -4
- package/components/parts/HairyLink.vue +21 -0
- package/components/{HairyMenu.vue → parts/HairyMenu.vue} +2 -1
- package/components/{HairyMenuItem.vue → parts/HairyMenuItem.vue} +11 -4
- package/components/parts/HairyOutline.vue +99 -0
- package/components/parts/HairyOutlineItem.vue +48 -0
- package/components/{HairySocialLinks.vue → parts/HairySocialLinks.vue} +2 -2
- package/components/{HairyTimelinePostItem.vue → parts/HairyTimelineContent.vue} +7 -8
- package/components/parts/HairyUserNav.vue +95 -0
- package/components/{article-layout → posts}/HairyArticleImage.vue +18 -19
- package/components/{article-layout → posts}/HairyArticleSeries.vue +8 -5
- package/components/{article-layout → posts}/HairyArticleText.vue +11 -4
- package/components/posts/HairyPostFooter.vue +15 -0
- package/components/{article-layout → posts}/HairyPostImageList.vue +4 -5
- package/components/{article-layout → posts}/HairyPostTextsList.vue +0 -1
- package/components/posts/HairyPostToggleLayout.vue +36 -0
- package/components/third/HairyAlgoliaSearch.vue +17 -0
- package/components/third/HairyFuseSearch.vue +10 -0
- package/components/third/HairyFuseSearchDialog.vue +32 -0
- package/components/third/HairyFuseSearchDropdown.vue +77 -0
- package/components/third/HairyFuseSearchFooter.vue +28 -0
- package/components/third/HairyFuseSearchHeader.vue +30 -0
- package/components/third/HairyFuseSearchHit.vue +52 -0
- package/components/third/HairySearchBtnDisplay.vue +29 -0
- package/components/third/HairySearchBtnInput.vue +20 -0
- package/components/third/HairySearchBtnKeys.vue +19 -0
- package/components/{HairyCarousel.vue → third/HairySwiperCarousel.vue} +6 -6
- package/{hooks/useYearArchives.ts → composables/archives.ts} +4 -3
- package/composables/category.ts +43 -0
- package/composables/config.ts +11 -0
- package/composables/dark.ts +13 -0
- package/composables/fuse.ts +60 -0
- package/composables/index.ts +8 -0
- package/composables/layout.ts +16 -0
- package/composables/outline.ts +49 -0
- package/composables/tags.ts +36 -0
- package/layouts/archive-month.vue +13 -0
- package/layouts/archive-year.vue +13 -0
- package/layouts/archives.vue +9 -9
- package/layouts/categories.vue +11 -4
- package/layouts/default.vue +9 -3
- package/layouts/home.vue +28 -18
- package/layouts/post.vue +42 -36
- package/layouts/tag.vue +8 -4
- package/layouts/tags.vue +12 -4
- package/{modules → library}/loading.ts +18 -6
- package/{modules → library}/scroll.ts +3 -2
- package/locales/zh-CN.yml +0 -2
- package/node/images/default.json +139 -0
- package/node/images/index.ts +46 -0
- package/node/index.ts +2 -0
- package/node/theme/index.ts +78 -0
- package/package.json +22 -28
- package/pages/archives/[year]/[month]/index.vue +15 -18
- package/pages/archives/[year]/index.vue +20 -20
- package/pages/archives/index.vue +1 -54
- package/pages/categories/{[...categories].vue → [...its].vue} +29 -36
- package/pages/index.vue +1 -1
- package/pages/page/[page].vue +2 -2
- package/pages/tags/[tag]/index.vue +38 -0
- package/pages/tags/index.vue +1 -36
- package/setup/main.ts +1 -1
- package/store/index.ts +1 -0
- package/store/modules/global.ts +12 -0
- package/styles/components/index.scss +4 -0
- package/styles/{markdown.scss → components/markdown.scss} +2 -1
- package/styles/components/nprogress.scss +16 -0
- package/styles/css-vars.scss +11 -0
- package/styles/element-plus/tabs.scss +1 -1
- package/styles/element-plus/timeline.scss +1 -1
- package/styles/global.scss +39 -0
- package/styles/index.scss +4 -73
- package/tsconfig.json +27 -0
- package/types/index.d.ts +163 -0
- package/unocss.config.ts +5 -1
- package/utils/index.ts +21 -39
- package/valaxy.config.ts +21 -24
- package/@types/markdown-it.d.ts +0 -1
- package/@types/markdown-toc.d.ts +0 -1
- package/@types/types.d.ts +0 -1
- package/@types/valaxy.d.ts +0 -10
- package/components/HairyAlgoliaSearchBox.vue +0 -118
- package/components/HairyBackToTop.vue +0 -72
- package/components/HairyDivider.vue +0 -0
- package/components/HairyFooterFish.vue +0 -29
- package/components/HairyLayout.vue +0 -28
- package/components/HairyLink.vue +0 -10
- package/components/HairyLinks.vue +0 -69
- package/components/HairyMeting.vue +0 -19
- package/components/HairyNav.vue +0 -42
- package/components/HairyNavBackground.vue +0 -7
- package/components/HairyNavMenu.vue +0 -11
- package/components/HairyNavToggleDark.vue +0 -16
- package/components/HairyPostToggleLayout.vue +0 -33
- package/components/HairyToc.vue +0 -135
- package/components/HairyUserNav.vue +0 -64
- package/components/HairyUserTab.vue +0 -40
- package/components/HairyWaline.vue +0 -44
- package/hooks/setupDefaultDark.ts +0 -11
- package/hooks/useCategory.ts +0 -18
- package/hooks/useCategoryPost.ts +0 -21
- package/hooks/useContext.ts +0 -13
- package/hooks/useHeaderHeight.ts +0 -9
- package/hooks/usePostLayout.ts +0 -16
- package/images.json +0 -140
- package/index.d.ts +0 -100
- package/layouts/hairy.vue +0 -36
- package/layouts/month.vue +0 -6
- package/layouts/year.vue +0 -6
- package/node/addon-hairy.ts +0 -36
- package/node/addon-images.ts +0 -61
- package/node/addon-meting.ts +0 -13
- package/node/addon-statistics.ts +0 -19
- package/node/addon-toc.ts +0 -20
- package/node/utils.ts +0 -20
- package/pages/tags/[tag].vue +0 -40
- package/utils/createContext.ts +0 -40
- package/utils/fonts.ts +0 -15
- /package/components/{HairyUserStats.vue → parts/HairyUserStats.vue} +0 -0
- /package/components/{article-layout → posts}/HairyArticleTop.vue +0 -0
- /package/{modules → library}/loading.scss +0 -0
- /package/{shims.d.ts → node/images/shims.d.ts} +0 -0
- /package/styles/{aplayer.scss → components/aplayer.scss} +0 -0
- /package/styles/{scrollbar.scss → components/scrollbar.scss} +0 -0
package/images.json
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
[
|
2
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/137081/6/32144/131304/63d630ecF4056dd1f/f65a2c5dc579d5c4.jpg",
|
3
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/112125/10/33225/345384/63d630eeF534b00c2/d95c811c46323c61.jpg",
|
4
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/177545/15/30796/140361/63d630efF51f83691/bdd4ff11552fc95a.jpg",
|
5
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/110202/16/30578/115437/63d630f1Fdcb4e8d1/83462ab45af94fe6.jpg",
|
6
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/141569/15/33680/196645/63d630c0F3d56e1cc/98ed00b92c988f22.jpg",
|
7
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/143703/38/33282/167246/63d630f3Fdfcd2642/8d208c19ece2f479.jpg",
|
8
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/203477/10/25784/173212/63d630f5Facf85677/9f6e0369dbe6a344.jpg",
|
9
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/180331/38/32597/183715/63d630c3F39552e5c/be907d046968b028.jpg",
|
10
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/94429/2/18730/350208/63d630f9Fa6a91c18/8edf277d03664a4a.jpg",
|
11
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/103018/7/34936/296122/63d630faFdf3b17f3/bdb64b8a0fc69a0a.jpg",
|
12
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/213091/31/25283/254789/63d630fbF1c7fc35e/f72df0d247f8b955.jpg",
|
13
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/136777/25/29797/249372/63d630fbFfd04bf5b/25235c83e49f09bd.jpg",
|
14
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/100025/21/21017/182015/63d630fdF8af8169a/679c35f69b4cbb6e.jpg",
|
15
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/135865/38/32964/447266/63d63101Fadabb4ae/17f984d47fba9654.jpg",
|
16
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/30624/34/20218/463869/63d63102Fad339ab8/939659289eae77cc.jpg",
|
17
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/87262/4/32298/166868/63d63104Fca7a3758/d8b56409b63f32b4.jpg",
|
18
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/177531/9/32618/276801/63d63104F712da8d4/8efbfff374052847.jpg",
|
19
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/95575/31/35028/197997/63d63108Fb2129028/a9010cd7a61ecd1a.jpg",
|
20
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/178613/15/32017/369138/63d63109F2668452f/8e97db8106def81d.jpg",
|
21
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/31147/26/19390/450033/63d63109Ff36c07c5/92e4a4d30ab91755.jpg",
|
22
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/207893/31/29907/306658/63d6310cFf925c7ae/74e246cbc5cfe7b9.jpg",
|
23
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/103502/31/35169/95092/63d63118F2f8b7277/da5cbf428a0b68ad.jpg",
|
24
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/8435/17/21121/2898762/63d6311dFc7a6234d/cdbe0f15ac6381a7.jpg",
|
25
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/178446/11/31939/348631/63d6311dF25b05f69/249cdbe88aa55c7d.jpg",
|
26
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/171459/10/33939/131747/63d63122F4225306e/68653dd4e6c3c295.jpg",
|
27
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/221336/33/22547/267537/63d6312aFa2fc2fbd/ce8258acd7177735.jpg",
|
28
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/140478/21/33124/238675/63d6312dF71c8db85/da6a8540407bba2e.jpg",
|
29
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/216738/1/21200/213086/63d6312fF6d4b59c8/80925395c7e58092.jpg",
|
30
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/115736/33/32020/361797/63d63131Fb0cd1d92/3bb9d698753905d2.jpg",
|
31
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/195283/5/32473/190475/63d63133Ff58c38fb/36ca70d73bb89fa5.jpg",
|
32
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/100124/17/35426/564887/63d6313dF6224b876/b51645eb6ac8dd24.jpg",
|
33
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/144117/25/33253/488978/63d63141F370678bf/f480d3f67017d970.jpg",
|
34
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/216316/40/22527/240219/63d63144Ff5b910ce/1227cfe3192020d1.jpg",
|
35
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/184137/24/33505/355673/63d63144F02872536/d23083b6955ed632.jpg",
|
36
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/95277/31/25860/460561/63d63146F7112a2fd/0419f98252fc6d4d.jpg",
|
37
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/214759/36/24863/304860/63d63148Fce26a282/aa280da693b6d42e.jpg",
|
38
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/102230/19/35726/196893/63d6314bF16b72c49/832529fc37d3b399.jpg",
|
39
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/101964/16/36940/475813/63d6314bFd8319028/d28b976b21bea527.jpg",
|
40
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/53889/7/22592/379046/63d63150Fbe0021f2/93eedcd0592ba3a2.jpg",
|
41
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/18622/28/20766/381866/63d63159F8c902c00/72ced9017b23803f.jpg",
|
42
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/56344/18/23409/194552/63d6315bF395b3a60/25c345816c731663.jpg",
|
43
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/192428/14/31797/388629/63d63159F0438f713/fd8a097affca1362.jpg",
|
44
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/144207/39/34001/278311/63d63165Fff7f7fe1/d288f807b8dd6dfb.jpg",
|
45
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/171327/2/34329/440391/63d63167F2500fadb/079774bd2aa13d80.jpg",
|
46
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/177053/30/32761/254046/63d6316cF351ae2ba/74500a4a8f42b1e9.jpg",
|
47
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/178782/20/31686/306533/63d6316dFc4c3ef51/4e9f3db915b95793.jpg",
|
48
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/144120/19/33118/167278/63d63171F83ce1a3c/bdf10018c4acbfa8.jpg",
|
49
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/117817/17/31499/301424/63d63174Fb6ed6ab2/88c6c5557baeaa6c.jpg",
|
50
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/124486/5/30855/226028/63d63177Fcec558c5/b53f1e6939d9c299.jpg",
|
51
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/171264/28/34368/105227/63d63178F6abfad92/edbce22640c58dd0.jpg",
|
52
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/93286/29/32310/155501/63d63186Fc8f42230/08b241071af88e15.jpg",
|
53
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/84962/28/34296/225202/63d63187Fa5353778/a2d88bb15e565f01.jpg",
|
54
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/190936/28/31626/223687/63d6318bF3252e992/f9116232f81b9d25.jpg",
|
55
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/105019/26/36982/290544/63d63194F09cf7ae8/51be1a7267fdf125.jpg",
|
56
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/102406/40/35060/377162/63d63194Ffc825c5f/92b4bac4b717d799.jpg",
|
57
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/83545/25/25395/292135/63d631a0F3ccca12f/320385579d5c09e0.jpg",
|
58
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/133544/31/33228/405867/63d631a4F4c1c44a1/cc4c97ce4895c947.jpg",
|
59
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/176244/39/33205/2130498/63d631a6Fe8b21ee6/c228158d853ff012.jpg",
|
60
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/95930/22/33237/2459672/63d631a7F8fb0cd28/62ccd010855f3731.jpg",
|
61
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/57616/23/22434/215169/63d631adFb5a9b41d/c10dcf1c803103d2.jpg",
|
62
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/106599/7/34873/2546471/63d631b0F9a0634b3/364845cf8f8b9e34.jpg",
|
63
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/47733/11/23334/440316/63d631b1Fd63a27d9/c0e3315495f670c5.jpg",
|
64
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/139076/12/33472/485700/63d631b4F9195d180/f2c91cee9240a025.jpg",
|
65
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/141997/16/32664/154238/63d631b6Fb01b05e6/9c2091edc73c294b.jpg",
|
66
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/190496/8/33263/2119880/63d631beF08e0478e/715df13eb87dcbc8.jpg",
|
67
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/108491/29/34762/247460/63d631f0Fead68c70/f6454aa7508e0afd.jpg",
|
68
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/130126/4/29287/514354/63d631f3Fa8f1b678/0fdee892fb26a36a.jpg",
|
69
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/130727/27/33953/194269/63d63203F6ef65154/72c10d061e094b27.jpg",
|
70
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/206923/24/29029/565655/63d63225F1cd44780/e81db807b90bc0d2.jpg",
|
71
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/93911/29/35130/364465/63d63228F149e502f/198e7607a0c32231.jpg",
|
72
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/194800/8/32278/454711/63d6322cFfce3080a/0866beff8c22bf52.jpg",
|
73
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/168294/14/31238/485591/63d63232F31314925/6ae966fb91b71f20.jpg",
|
74
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/48739/8/17470/384491/63d6323aF05d09be1/7211fcfc5d30a339.jpg",
|
75
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/216691/22/24962/289366/63d63241Fbe97bbbf/53f914ef966b561d.jpg",
|
76
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/158542/19/33851/516568/63d63263F9a05db04/c43657d2a9f08e11.jpg",
|
77
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/82893/24/18825/404194/63d63268F1e931037/c2b261add68f9a54.jpg",
|
78
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/91270/29/24834/163994/63d6326aF4eec1ea8/909d92b1d7359ddb.jpg",
|
79
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/48115/34/21154/367058/63d63272F158e1e77/1a90eb4a18c42bc2.jpg",
|
80
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/94232/7/35144/427062/63d6327aFe7b35ca8/9ac16f753ca72639.jpg",
|
81
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/110395/5/38088/283405/63d6327bF877df0a1/3e5b7a93f219e814.jpg",
|
82
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/81262/35/23270/169074/63d6328bFb88d86e9/809193f87b72a147.jpg",
|
83
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/40227/25/21100/315068/63d6328eF63650ded/7c17d61c88c5a3fb.jpg",
|
84
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/143835/1/33328/146757/63d63290Ff568864d/c991e63bb1ee994f.jpg",
|
85
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/137735/19/33610/445325/63d63297F8c302d0e/6abf6983b7687c9f.jpg",
|
86
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/195972/28/30513/283433/63d632a0Fa4e72fce/f2fa22ba4d90547c.jpg",
|
87
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/70008/16/21075/258632/63d632a2F3def9b47/613b33a6343bfbb1.jpg",
|
88
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/216786/26/22396/303449/63d632b6F1cfac510/6380abcdfc377862.jpg",
|
89
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/5489/1/18287/127543/63d632c8F00bcfbeb/21f3b039f7327409.jpg",
|
90
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/62522/20/23627/303501/63d63303Fd022ab51/bf1871dc802ad56e.jpg",
|
91
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/93876/26/34285/234202/63d6330cFbb000e7b/7d990e45cd5a7118.jpg",
|
92
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/138706/5/32763/336531/63d6330cFe5fb889f/59f56caaab9f26fa.jpg",
|
93
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/122681/20/29922/235612/63d63392F6c6e22c3/feccbfa0a76c6a17.jpg",
|
94
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/93827/11/24351/332690/63d63398Fa39e1ab0/d46c59c331d5f64b.jpg",
|
95
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/205600/3/29947/313889/63d6339aFf62e4fe6/d60864f5921d69b6.jpg",
|
96
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/82038/39/23532/180683/63d6339aF865113f0/aa0a70fd7c1d4683.jpg",
|
97
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/138493/27/33408/378575/63d633bcF2942da95/2a9745878385ebaf.jpg",
|
98
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/55794/11/22786/254123/63d633cbF3e4091dc/06a7adaea6df6be1.jpg",
|
99
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/9407/30/20614/185081/63d634b4Face6f1ef/2169033859883e2e.jpg",
|
100
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/161915/17/36755/2172028/63d634bbF46c3c491/f303c35b729ca87b.jpg",
|
101
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/68856/25/23176/538343/63d634bcF11333ad0/3386a9b7e8f8204e.jpg",
|
102
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/90960/13/35230/461943/63d634cdF6449d791/942a44d4bcca2b4b.jpg",
|
103
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/213694/33/25135/304380/63d634e1F77ef2a5d/ed7b9214fc42da10.jpg",
|
104
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/192437/21/32771/271782/63d634ecF0384cacc/d3fc0700bdecb2b8.jpg",
|
105
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/219981/30/22137/92097/63d634f5F00c36a1a/5f87fd976a780c47.jpg",
|
106
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/6228/20/17937/222254/63d634f6F1f2b7cf8/0c6c5e14331c972b.jpg",
|
107
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/199001/9/30289/133549/63d63500Ffd04aa07/fd16989e2c977ce8.jpg",
|
108
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/78869/20/23675/209993/63d63513F941e5f94/73240f00c335ff03.jpg",
|
109
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/6137/29/19068/288540/63d63529F834dd2ba/228dfdee4d5a53c7.jpg",
|
110
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/111440/23/35266/157289/63d63533F5207e37a/6f27a36145644098.jpg",
|
111
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/171407/25/34088/347076/63d6353bF89a117c7/f02ab4819085dc38.jpg",
|
112
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/2570/24/17450/474133/63d63541F09dacedb/72d2d74c113aba88.jpg",
|
113
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/127964/1/31838/375086/63d63549F45d6c144/a71498a8f17b686e.jpg",
|
114
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/119953/20/33856/381359/63d6354cF21c35bee/87dae7e855c48293.jpg",
|
115
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/187063/33/32480/203938/63d6354eF3ec77031/574d9b260749ac82.jpg",
|
116
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/120991/27/27778/110028/63d63558Ffd2bf474/599b3f418f1f9869.jpg",
|
117
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/148544/32/32848/222688/63d6355bF3eb37b33/324215fa4c3cd5d2.jpg",
|
118
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/129163/12/29836/535427/63d63562Fbd165c3c/bc0fecb517cac741.jpg",
|
119
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/208051/39/29158/268176/63d63563F89a06102/8993fe282edc9a11.jpg",
|
120
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/205682/8/30240/543639/63d6356cFf2e0b983/4a19d41068386a4d.jpg",
|
121
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/54416/26/22557/419996/63d63570F96081174/2dbd7f53da618f6c.jpg",
|
122
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/165473/26/28299/395435/63d6357fF10e9733b/3f403568171e0f0c.jpg",
|
123
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/172755/30/33435/675653/63d6358fF3a7b5d32/f689019ae51d8c2c.jpg",
|
124
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/109222/29/33684/195123/63d635a3Fc758c94d/835ae85b8591c542.jpg",
|
125
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/46489/39/17699/237173/63d635a2F241250f7/90c034834b3bf821.jpg",
|
126
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/91278/27/35035/411529/63d635aaF07f0526e/4ee804452969eb87.jpg",
|
127
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/54722/6/22554/223464/63d635afF9f871219/40acaed1c76b2e91.jpg",
|
128
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/168914/2/33960/167277/63d635b1F10fc7d28/2feae606d5b0f7e9.jpg",
|
129
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/223783/31/16071/155009/63d635b2Fe7cb3301/db2102e79161bc4a.jpg",
|
130
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/216201/15/22747/375519/63d635b6Fe37f101e/c5037d919d7008d4.jpg",
|
131
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/53406/33/23036/201082/63d635b9F3553bfcb/3eeb46ce2d8977ad.jpg",
|
132
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/204857/27/27754/557331/63d635e0Ff94354f4/134e47b3d340dea2.jpg",
|
133
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/6410/1/27446/264217/63d635fbF8239885a/7712375cc3a09a70.jpg",
|
134
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/119307/9/34230/318623/63d635fdF1219981c/5d8794ce077b793e.jpg",
|
135
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/114227/2/33593/313516/63d63603F0374979a/dbc7a01f85f4bfad.jpg",
|
136
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/162732/17/33827/290377/63d63657F5b0f245c/3e3c8ba89398d662.jpg",
|
137
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/24885/21/20530/309900/63d63659Ffab5dc33/6495d0c20870a202.jpg",
|
138
|
-
"https://kjimg10.360buyimg.com/ott/jfs/t1/71590/15/23888/589990/63d6365cFbd69f9de/94a60150a6e628d3.jpg"
|
139
|
-
]
|
140
|
-
|
package/index.d.ts
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
import type { ViteSSGContext } from 'vite-ssg'
|
2
|
-
|
3
|
-
export type HairyPostLayout = 'text' | 'markdown' | 'image' | 'image:slice' | 'image:slice:reverse'
|
4
|
-
|
5
|
-
export interface HairyTheme {
|
6
|
-
nav?: NavItem[];
|
7
|
-
mode?: 'dark'
|
8
|
-
home?: {
|
9
|
-
headline?: string
|
10
|
-
title?: string
|
11
|
-
description?: string
|
12
|
-
images?: string[]
|
13
|
-
}
|
14
|
-
user?: {
|
15
|
-
name?: string;
|
16
|
-
description?: string;
|
17
|
-
};
|
18
|
-
post?: {
|
19
|
-
layout?: HairyPostLayout
|
20
|
-
images?: string[]
|
21
|
-
}
|
22
|
-
categories?: {
|
23
|
-
layout?: 'timeline' | 'post'
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* meting options
|
27
|
-
* @see https://github.com/metowolf/MetingJS#option
|
28
|
-
*/
|
29
|
-
meting?: {
|
30
|
-
id?: string
|
31
|
-
server?: string
|
32
|
-
type?: string
|
33
|
-
auto?: string
|
34
|
-
fixed?: boolean
|
35
|
-
mini?: boolean
|
36
|
-
autoplay?: boolean
|
37
|
-
theme?: string
|
38
|
-
loop?: string
|
39
|
-
order?: string
|
40
|
-
preload?: string
|
41
|
-
volume?: number
|
42
|
-
work?: string
|
43
|
-
mutex?: boolean
|
44
|
-
start?: string
|
45
|
-
'lrc-type'?: number
|
46
|
-
'list-folded'?: boolean
|
47
|
-
'list-max-height'?: string
|
48
|
-
'storage-name'?: string
|
49
|
-
[key: string]: any
|
50
|
-
}
|
51
|
-
|
52
|
-
footer: Partial<{
|
53
|
-
/**
|
54
|
-
* 建站于
|
55
|
-
*/
|
56
|
-
since: number
|
57
|
-
|
58
|
-
/**
|
59
|
-
* Icon between year and copyright info.
|
60
|
-
*/
|
61
|
-
icon: {
|
62
|
-
/**
|
63
|
-
* icon name, i-xxx
|
64
|
-
*/
|
65
|
-
name: string
|
66
|
-
animated: boolean
|
67
|
-
color: string
|
68
|
-
url: string
|
69
|
-
title: string
|
70
|
-
}
|
71
|
-
|
72
|
-
/**
|
73
|
-
* Powered by valaxy & valaxy-theme-${name}, default is yun
|
74
|
-
*/
|
75
|
-
powered: boolean
|
76
|
-
|
77
|
-
/**
|
78
|
-
* Chinese Users | 中国用户
|
79
|
-
* 备案 ICP
|
80
|
-
* 国内用户需要在网站页脚展示备案 ICP 号
|
81
|
-
* https://beian.miit.gov.cn/
|
82
|
-
*/
|
83
|
-
beian: {
|
84
|
-
enable: boolean
|
85
|
-
/**
|
86
|
-
* 苏ICP备xxxxxxxx号
|
87
|
-
*/
|
88
|
-
icp: string
|
89
|
-
}
|
90
|
-
}>
|
91
|
-
}
|
92
|
-
export interface NavItem {
|
93
|
-
text: string;
|
94
|
-
icon?: string;
|
95
|
-
link?: string;
|
96
|
-
items?: NavItem[];
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
export type UserModule = (ctx: ViteSSGContext) => void
|
package/layouts/hairy.vue
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed, onMounted } from 'vue'
|
3
|
-
import { useRoute } from 'vue-router'
|
4
|
-
import { pageviewCount } from '@waline/client'
|
5
|
-
import { useConfig } from 'valaxy'
|
6
|
-
import { setupDefaultDark } from '../hooks/setupDefaultDark'
|
7
|
-
|
8
|
-
const route = useRoute()
|
9
|
-
const meta = computed(() => route.meta)
|
10
|
-
const type = computed(() => meta.value.type || '')
|
11
|
-
const config = useConfig()
|
12
|
-
|
13
|
-
onMounted(() => {
|
14
|
-
pageviewCount({
|
15
|
-
serverURL: config.value.comment.waline.serverURL,
|
16
|
-
path: window.location.pathname,
|
17
|
-
})
|
18
|
-
})
|
19
|
-
setupDefaultDark()
|
20
|
-
</script>
|
21
|
-
|
22
|
-
<template>
|
23
|
-
<HairyBackToTop />
|
24
|
-
<HairyMeting />
|
25
|
-
<HairyUserPopup />
|
26
|
-
<home v-if="type === 'home'" />
|
27
|
-
<post v-if="type === 'post'" />
|
28
|
-
<archives v-if="type === 'archives'" />
|
29
|
-
<categories v-if="type === 'categories'" />
|
30
|
-
<month v-if="type === 'month'" />
|
31
|
-
<tag v-if="type === 'tag'" />
|
32
|
-
<tags v-if="type === 'tags'" />
|
33
|
-
<year v-if="type === 'year'" />
|
34
|
-
<default v-if="type === 'default'" />
|
35
|
-
</template>
|
36
|
-
|
package/layouts/month.vue
DELETED
package/layouts/year.vue
DELETED
package/node/addon-hairy.ts
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
import type { ResolvedValaxyOptions, ValaxyExtendConfig } from 'valaxy'
|
2
|
-
import type { HairyTheme } from 'valaxy-theme-hairy'
|
3
|
-
|
4
|
-
function addonHairy(options: ResolvedValaxyOptions<HairyTheme>): ValaxyExtendConfig {
|
5
|
-
const safelist = options.config.themeConfig?.nav?.filter(v => v.icon)?.map(v => v.icon || '') || []
|
6
|
-
return {
|
7
|
-
extendMd(ctx) {
|
8
|
-
if (ctx.route.meta.excerpt)
|
9
|
-
ctx.route.meta.frontmatter.text = removeTags(ctx.route.meta.excerpt)
|
10
|
-
},
|
11
|
-
pages: {
|
12
|
-
extendRoute(route) {
|
13
|
-
// 改用 type, 由 theme 决定使用布局
|
14
|
-
if (!route.meta.type && route.meta.layout)
|
15
|
-
route.meta.type = route.meta.layout
|
16
|
-
|
17
|
-
if (!route.meta.type)
|
18
|
-
route.meta.type = 'default'
|
19
|
-
|
20
|
-
// 清除所有 layout, 使用统一入口 hairy.vue
|
21
|
-
route.meta.layout = 'hairy'
|
22
|
-
},
|
23
|
-
},
|
24
|
-
unocss: {
|
25
|
-
safelist,
|
26
|
-
},
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
export default addonHairy
|
31
|
-
|
32
|
-
function removeTags(str = '') {
|
33
|
-
let content = str.replace(/<\/?[^>]*>/g, '')// 去除标签
|
34
|
-
content = content.replace(/[|]*\n/, '')// 去除行尾空格
|
35
|
-
return content
|
36
|
-
}
|
package/node/addon-images.ts
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */
|
2
|
-
import type { ResolvedValaxyOptions, ValaxyExtendConfig } from 'valaxy'
|
3
|
-
import type { HairyTheme } from '..'
|
4
|
-
import defaultImages from '../images.json'
|
5
|
-
|
6
|
-
let count = 0
|
7
|
-
|
8
|
-
function addonImages(options: ResolvedValaxyOptions<HairyTheme>): ValaxyExtendConfig {
|
9
|
-
const hairyPrefix = '@hairy'
|
10
|
-
const postConfig = options.config.themeConfig?.post
|
11
|
-
const homeConfig = options.config.themeConfig?.home
|
12
|
-
|
13
|
-
const isEnough = (postConfig?.images?.length || 0) > 6
|
14
|
-
|
15
|
-
const inImages = isEnough ? postConfig?.images! : defaultImages
|
16
|
-
|
17
|
-
const filterInImages = (type: 'large' | 'mw690') => {
|
18
|
-
const inType = type === 'large' ? 'mw690' : 'large'
|
19
|
-
return inImages.filter((image) => {
|
20
|
-
if (image.includes('sinaimg.cn/'))
|
21
|
-
return image.replace(inType, type)
|
22
|
-
return image
|
23
|
-
})
|
24
|
-
}
|
25
|
-
|
26
|
-
const postImages = isEnough ? postConfig?.images! : filterInImages('mw690')
|
27
|
-
const homeImages = homeConfig?.images?.length ? homeConfig?.images : filterInImages('large')
|
28
|
-
|
29
|
-
return {
|
30
|
-
vite: {
|
31
|
-
plugins: [
|
32
|
-
{
|
33
|
-
name: 'vite-plugin-hairy:image',
|
34
|
-
resolveId(id) {
|
35
|
-
if (id.startsWith(hairyPrefix))
|
36
|
-
return id
|
37
|
-
return null
|
38
|
-
},
|
39
|
-
load(id) {
|
40
|
-
if (id === '@hairy:images:post')
|
41
|
-
return `export default ${JSON.stringify(postImages)}`
|
42
|
-
if (id === '@hairy:images:home')
|
43
|
-
return `export default ${JSON.stringify(homeImages)}`
|
44
|
-
},
|
45
|
-
},
|
46
|
-
],
|
47
|
-
},
|
48
|
-
extendMd(ctx) {
|
49
|
-
if (postImages.length >= 6) {
|
50
|
-
if (!ctx.route.meta.frontmatter.image)
|
51
|
-
ctx.route.meta.frontmatter.image = postImages[count]
|
52
|
-
if (count <= postImages.length)
|
53
|
-
count++
|
54
|
-
if (count >= postImages.length)
|
55
|
-
count = 0
|
56
|
-
}
|
57
|
-
},
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
export default addonImages
|
package/node/addon-meting.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { ResolvedValaxyOptions, ValaxyExtendConfig } from 'valaxy'
|
2
|
-
import type { HairyTheme } from 'valaxy-theme-hairy'
|
3
|
-
|
4
|
-
function addonMeting(options: ResolvedValaxyOptions<HairyTheme>): ValaxyExtendConfig {
|
5
|
-
return {
|
6
|
-
extendMd(ctx) {
|
7
|
-
if (options.config.themeConfig?.meting)
|
8
|
-
ctx.route.meta.frontmatter.aplayer = true
|
9
|
-
},
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
export default addonMeting
|
package/node/addon-statistics.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
2
|
-
import fs from 'fs'
|
3
|
-
import readingTime from 'reading-time'
|
4
|
-
import type { ValaxyExtendConfig } from 'valaxy'
|
5
|
-
|
6
|
-
function addonStatistics(): ValaxyExtendConfig {
|
7
|
-
return {
|
8
|
-
extendMd(ctx) {
|
9
|
-
const file = fs.readFileSync(ctx.path, 'utf-8')
|
10
|
-
const duration = readingTime(file)
|
11
|
-
// @ts-expect-error
|
12
|
-
delete duration.text
|
13
|
-
ctx.route.meta.frontmatter.durations = duration
|
14
|
-
ctx.route.meta.frontmatter.length = file.length
|
15
|
-
},
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
export default addonStatistics
|
package/node/addon-toc.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import fs from 'fs'
|
2
|
-
import type { ValaxyExtendConfig } from 'valaxy'
|
3
|
-
import toc from 'markdown-toc'
|
4
|
-
|
5
|
-
function addonToc(): ValaxyExtendConfig {
|
6
|
-
return {
|
7
|
-
extendMd(ctx) {
|
8
|
-
if (!ctx.route.path.startsWith('/posts/'))
|
9
|
-
return
|
10
|
-
const file = fs.readFileSync(ctx.path, 'utf-8')
|
11
|
-
ctx.route.meta.frontmatter['it-toc'] = toc(file).json.map((item: any) => ({
|
12
|
-
title: item.content,
|
13
|
-
level: item.lvl,
|
14
|
-
slug: item.slug,
|
15
|
-
}))
|
16
|
-
},
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
export default addonToc
|
package/node/utils.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { createDefu } from 'defu'
|
2
|
-
import { isFunction } from 'lodash-es'
|
3
|
-
import { mergeConfig as mergeViteConfig } from 'vite'
|
4
|
-
/**
|
5
|
-
* merge valaxy.config
|
6
|
-
* (source, default)
|
7
|
-
*/
|
8
|
-
export const mergeValaxyConfig = createDefu((obj: any, key, value) => {
|
9
|
-
if (isFunction(obj[key]) || isFunction(value)) {
|
10
|
-
obj[key] = function (...args: any[]) {
|
11
|
-
obj[key]?.call(this, ...args)
|
12
|
-
value?.call(this, ...args)
|
13
|
-
}
|
14
|
-
}
|
15
|
-
if (key === 'vite') {
|
16
|
-
// a deep copy and needs to be taken over
|
17
|
-
obj[key] = mergeViteConfig(obj[key], value)
|
18
|
-
return true
|
19
|
-
}
|
20
|
-
})
|
package/pages/tags/[tag].vue
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
<script lang="ts" setup>
|
2
|
-
import { computed, defineProps } from 'vue'
|
3
|
-
import { usePostList } from 'valaxy'
|
4
|
-
import { ElTimeline, ElTimelineItem } from 'element-plus/es/components/timeline/index'
|
5
|
-
import 'element-plus/es/components/timeline/style/index'
|
6
|
-
import 'element-plus/es/components/timeline-item/style/index'
|
7
|
-
const props = defineProps<{
|
8
|
-
tag: string
|
9
|
-
}>()
|
10
|
-
|
11
|
-
const posts = usePostList()
|
12
|
-
|
13
|
-
const tagPosts = computed<any[]>(() => posts.value.filter(post => post.tags?.includes(props.tag)))
|
14
|
-
</script>
|
15
|
-
|
16
|
-
<template>
|
17
|
-
<HairyBreadcrumb class="mb-5" size="large" after="标签">
|
18
|
-
<HairyBreadcrumbItem to="/">
|
19
|
-
首页
|
20
|
-
</HairyBreadcrumbItem>
|
21
|
-
<HairyBreadcrumbItem>
|
22
|
-
{{ tag }}
|
23
|
-
</HairyBreadcrumbItem>
|
24
|
-
</HairyBreadcrumb>
|
25
|
-
<el-timeline>
|
26
|
-
<el-timeline-item
|
27
|
-
v-for="(item, index) in tagPosts"
|
28
|
-
:key="index"
|
29
|
-
hollow
|
30
|
-
size="large"
|
31
|
-
>
|
32
|
-
<HairyTimelinePostItem :post="item" />
|
33
|
-
</el-timeline-item>
|
34
|
-
</el-timeline>
|
35
|
-
</template>
|
36
|
-
|
37
|
-
<route lang="yaml">
|
38
|
-
meta:
|
39
|
-
layout: tag
|
40
|
-
</route>
|
package/utils/createContext.ts
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: Mr'Mao https://github.com/TuiMao233
|
3
|
-
* @Date: 2022-02-09 10:56:30
|
4
|
-
* @LastEditors: Mr'Mao
|
5
|
-
* @LastEditTime: 2022-02-26 13:47:57
|
6
|
-
*/
|
7
|
-
|
8
|
-
import type { InjectionKey } from 'vue'
|
9
|
-
import { inject, provide } from 'vue'
|
10
|
-
|
11
|
-
/**
|
12
|
-
* 创建上下文
|
13
|
-
* @param key 控制器的 key
|
14
|
-
* @param callback 控制器注入的内容
|
15
|
-
* @returns
|
16
|
-
*/
|
17
|
-
export function createContext<T>(key: string, getter: () => T) {
|
18
|
-
const _key: InjectionKey<T> = Symbol(key)
|
19
|
-
|
20
|
-
const _provide = () => {
|
21
|
-
const controller = getter()
|
22
|
-
provide(_key, controller)
|
23
|
-
return controller
|
24
|
-
}
|
25
|
-
|
26
|
-
const _inject = () => {
|
27
|
-
const controller = inject(_key)
|
28
|
-
if (!controller)
|
29
|
-
throw new Error(`Please wrap the container in ${_key}`)
|
30
|
-
|
31
|
-
return controller
|
32
|
-
}
|
33
|
-
|
34
|
-
return {
|
35
|
-
key: _key,
|
36
|
-
provide: _provide,
|
37
|
-
inject: _inject,
|
38
|
-
getter,
|
39
|
-
}
|
40
|
-
}
|
package/utils/fonts.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import Seto from '../styles/fonts/Seto.ttf?url'
|
2
|
-
import { createPromise } from '.'
|
3
|
-
|
4
|
-
export const fontFacePromise = createPromise<void>()
|
5
|
-
|
6
|
-
async function loadFonts(fontFamily: string, url: string) {
|
7
|
-
const font = new FontFace(fontFamily, `url(${url})`)
|
8
|
-
await font.load()
|
9
|
-
;(document.fonts as any).add(font)
|
10
|
-
}
|
11
|
-
|
12
|
-
(async () => {
|
13
|
-
await loadFonts('Seto', Seto)
|
14
|
-
fontFacePromise.resolve()
|
15
|
-
})()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|