1+ import tabsPlugin from '@snippetors/vuepress-plugin-tabs'
2+ import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
13import { pwaPlugin } from '@vuepress/plugin-pwa'
24import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
5+ import { defaultTheme } from '@vuepress/theme-default'
36import {
47 defineUserConfig ,
58 HeadAttrsConfig ,
@@ -10,11 +13,6 @@ import {
1013 type HeadTagEmpty
1114} from 'vuepress'
1215
13- import { defaultTheme } from '@vuepress/theme-default'
14-
15- import tabsPlugin from '@snippetors/vuepress-plugin-tabs'
16- import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
17-
1816const GA_MEASUREMENT_ID = 'UA-82107035-1'
1917const GOOGLE_SITE_VERIFICATION = '4nm40QLVcDJmEJSAbrMfZ7fpBJZIXL1oSngBAYrZopY'
2018//const GOOGLE_AD_CLIENT_ID = 'ca-pub-3734944050099256'
@@ -111,7 +109,7 @@ function getHead(): HeadConfig[] {
111109 '144x144' ,
112110 '152x152' ,
113111 '180x180'
114- ] . flatMap < [ HeadTagEmpty , HeadAttrsConfig ] > ( ( size ) => [
112+ ] . map < [ HeadTagEmpty , HeadAttrsConfig ] > ( ( size ) => [
115113 'link' ,
116114 { rel : 'apple-touch-icon' , size, href : `/icons/apple-icon-${ size } .png` }
117115 ] )
@@ -124,7 +122,7 @@ function getHead(): HeadConfig[] {
124122 { size : '32x32' , href : 'favicon-32x32.png' } ,
125123 { size : '96x96' , href : 'favicon-96x96.png' } ,
126124 { size : '16x16' , href : 'favicon-16x16.png' }
127- ] . flatMap < [ HeadTagEmpty , HeadAttrsConfig ] > ( ( { size, href } ) => [
125+ ] . map < [ HeadTagEmpty , HeadAttrsConfig ] > ( ( { size, href } ) => [
128126 'link' ,
129127 { rel : 'icon' , type : 'image/png' , size, href : `/icons/${ href } ` }
130128 ] )
@@ -137,7 +135,7 @@ function getHead(): HeadConfig[] {
137135 name : 'google-site-verification' ,
138136 content : GOOGLE_SITE_VERIFICATION
139137 }
140- ] . flatMap < [ HeadTagEmpty , HeadAttrsConfig ] > ( ( { name, content } ) => [
138+ ] . map < [ HeadTagEmpty , HeadAttrsConfig ] > ( ( { name, content } ) => [
141139 'meta' ,
142140 { name, content }
143141 ] )
@@ -152,7 +150,7 @@ function getHead(): HeadConfig[] {
152150 (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa_optimize);
153151 })();
154152 `
155- ] . flatMap < [ HeadTagNonEmpty , HeadAttrsConfig , string ] > ( ( content ) => [
153+ ] . map < [ HeadTagNonEmpty , HeadAttrsConfig , string ] > ( ( content ) => [
156154 'script' ,
157155 { } ,
158156 content
0 commit comments