UNPKG

vuepress-theme-aurora

Version:

A vuepress-based animation blog theme, simple, beautiful, multi-color, multiple custom functions, providing article poster sharing, talk, photo album, comment and other features 一个基于vuepress的动漫类博客主题,简洁,漂亮,多色彩,多种自定义功能,提供文章海报分享,说说,相册,评论等特色功�?

108 lines (105 loc) 3.75 kB
import {withBase} from "@vuepress/client"; export default { setAnimeImg(state,imgUrl) { this.state.animeImg = imgUrl.imgUrl }, setHeroImg(state,heroImg) { this.state.heroImage = heroImg.heroImg }, setTagArr(state,tag) { this.state.tagArr = tag.tagArr }, setAllPageMap(state,allPageMap) { let arr = Array.from(allPageMap.allPageMap) this.state.allPageMap = arr }, setPageNum(state,page) { this.state.pageNum = page.page }, setTagStatus(state,isSuccess) { this.state.setTatStatus = isSuccess.isSuccess }, setFontColorStyle(state,fontColorStyle) { this.state.fontColorStyle = "--fontColor: "+ fontColorStyle.color + ";" }, setFontFamilyStyle(state,fontFamilyStyle) { this.state.fontFamilyStyle = "--fontFamily: " + fontFamilyStyle.fontFamily + ";" }, setIsFitter(state,isFitter) { this.state.isFitter = isFitter.isFitter }, setVarFilterBlur(state,filterBlur) { this.state.varFilterBlur = filterBlur.varFilterBlur this.state.filterBlurStyle = "--fitter-blue: " + filterBlur.varFilterBlur + "px;" }, setVarBorderRadius(state,varBorderRadius) { this.state.varBorderRadius = varBorderRadius.varBorderRadius this.state.borderRadiusStyle = "--borderRadius: " + varBorderRadius.varBorderRadius + "px;" }, setVarOpacity(state,varOpacity) { this.state.varOpacity = varOpacity.varOpacity this.state.opacityStyle = "--opacity: " + varOpacity.varOpacity +";" }, setWelcomeOpenTime(state,time) { this.state.welcomeOpenTime = time.time }, setWelcomeOpenStatus(state,status) { this.state.welcomeOpenStatus = status.status }, setCategories(state,categories) { this.state.categories = categories.categories }, setShowPosterShadow(state,showPosterShadow) { this.state.showPosterShadow = showPosterShadow.showPosterShadow }, setShowPostImg(state,showPostImg) { this.state.showPostImg = showPostImg.showPostImg }, setPostImgHref(state,postImgHref) { this.state.postImgHref = postImgHref.postImgHref }, setShowShadeLoad(state,showShadeLoad) { this.state.showShadeLoad = showShadeLoad.showShadeLoad }, setQrImgHref(state,qrImgHref) { this.state.qrImgHref = qrImgHref.qrImgHref }, setPicture(state,picture) { this.state.picture = picture.picture }, setPhotos(state,photo) { this.commit("setLoadingFinish",{ loadingFinish: true }) if (this.state.photos.length === 0) { this.state.photos = photo.photos } }, setLoadingFinish(state,loadingFinish) { this.state.loadingFinish = loadingFinish.loadingFinish }, setVerifyStatus(state,verifyStatus) { this.state.verifyStatus = verifyStatus.verifyStatus }, setEditMoods(state,editMoods) { this.state.editMoods = editMoods.editMoods }, setCurrentPageNum(state,currentPageNum) { this.state.currentPageNum = currentPageNum.currentPageNum }, setOpenMobileSidebar(state,openMobileSidebar) { this.state.openMobileSidebar = openMobileSidebar.openMobileSidebar }, setPosterData(state,posterData) { this.state.posterData = posterData.posterData }, setHomeWps(state,homeWps) { this.state.homeWps = homeWps.homeWps }, setCurrentCatalogObjectArr(state,currentCatalogObjectArr) { this.state.currentCatalogObjectArr = currentCatalogObjectArr.currentCatalogObjectArr }, setCurrentTagNum(state,currentTagNum) { this.state.currentTagNum = currentTagNum.currentTagNum } }