vuepress-plugin-blog2
Advanced tools
Comparing version 2.0.0-alpha.16 to 2.0.0-alpha.17
@@ -1,2 +0,2 @@ | ||
import{categoryMap as t}from"@temp/blog/category";import{useRouteLocale as e,usePageFrontmatter as o}from"@vuepress/client";import{ref as a,computed as r}from"vue";import{useRouter as p,useRoute as m}from"vue-router";import{isFunction as s,isString as n}from"@vuepress/shared";import{typeMap as u}from"@temp/blog/type";const h=(...t)=>{const e=p().resolve(...t),o=e.matched[e.matched.length-1];if(!o?.redirect)return e;const{redirect:a}=o,r=s(a)?a(e):a,m=n(r)?{path:r}:r;return h({hash:e.hash,query:e.query,params:e.params,...m})},i=a(t),c=(t="")=>{const a=p(),s=m(),n=e();return r((()=>{const e=t||o().value.blog?.key||"",r=a.getRoutes(),p=i.value[e][n.value],m={path:p.path,map:{}};for(const t in p.map){const e=p.map[t];m.map[t]={path:e.path,items:[]};for(const o of e.keys){const e=r.find((({name:t})=>t===o));if(e){const o=h(e.path);m.map[t].items.push({path:o.path,info:""===BLOG_META_SCOPE?o.meta:o.meta[BLOG_META_SCOPE]})}}s.path===e.path&&(m.currentItems=m.map[t].items)}return m}))};(import.meta.webpackHot||import.meta.hot)&&(__VUE_HMR_RUNTIME__.updateBlogCategory=t=>{i.value=t});const _=a(u),f=(t="")=>{const a=p(),m=e();return r((()=>{const e=t||o().value.blog?.key||"",r=a.getRoutes(),p=_.value[e][m.value],s={path:p.path,items:[]};for(const t of p.keys){const e=r.find((({name:e})=>e===t));if(e){const t=h(e.path);s.items.push({path:t.path,info:""===BLOG_META_SCOPE?t.meta:t.meta[BLOG_META_SCOPE]})}}return s}))};(import.meta.webpackHot||import.meta.hot)&&(__VUE_HMR_RUNTIME__.updateBlogType=t=>{_.value=t});export{i as blogCategoryMap,_ as blogTypeMap,c as useBlogCategory,f as useBlogType}; | ||
import{resolveRouteWithRedirect as t}from"@mr-hope/vuepress-shared/lib/client";import{categoryMap as e}from"@temp/blog/category";import{useRouteLocale as o,usePageFrontmatter as a}from"@vuepress/client";import{ref as p,computed as m}from"vue";import{useRouter as r,useRoute as s}from"vue-router";import{typeMap as n}from"@temp/blog/type";const i=p(e),u=(e="")=>{const p=r(),n=s(),u=o();return m((()=>{const o=e||a().value.blog?.key||"",m=p.getRoutes(),r=i.value[o][u.value],s={path:r.path,map:{}};for(const e in r.map){const o=r.map[e];s.map[e]={path:o.path,items:[]};for(const a of o.keys){const o=m.find((({name:t})=>t===a));if(o){const a=t(o.path);s.map[e].items.push({path:a.path,info:""===BLOG_META_SCOPE?a.meta:a.meta[BLOG_META_SCOPE]})}}n.path===o.path&&(s.currentItems=s.map[e].items)}return s}))};(import.meta.webpackHot||import.meta.hot)&&(__VUE_HMR_RUNTIME__.updateBlogCategory=t=>{i.value=t});const c=p(n),h=(e="")=>{const p=r(),s=o();return m((()=>{const o=e||a().value.blog?.key||"",m=p.getRoutes(),r=c.value[o][s.value],n={path:r.path,items:[]};for(const e of r.keys){const o=m.find((({name:t})=>t===e));if(o){const e=t(o.path);n.items.push({path:e.path,info:""===BLOG_META_SCOPE?e.meta:e.meta[BLOG_META_SCOPE]})}}return n}))};(import.meta.webpackHot||import.meta.hot)&&(__VUE_HMR_RUNTIME__.updateBlogType=t=>{c.value=t});export{i as blogCategoryMap,c as blogTypeMap,u as useBlogCategory,h as useBlogType}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "vuepress-plugin-blog2", | ||
"version": "2.0.0-alpha.16", | ||
"version": "2.0.0-alpha.17", | ||
"description": "Blog plugin for VuePress", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@mr-hope/vuepress-shared": "2.0.0-alpha.16", | ||
"@mr-hope/vuepress-shared": "2.0.0-alpha.17", | ||
"@vuepress/client": "2.0.0-beta.35", | ||
@@ -55,3 +55,3 @@ "@vuepress/core": "2.0.0-beta.35", | ||
}, | ||
"gitHead": "3991f9228b8fb267016db44036698d053926010e" | ||
"gitHead": "e80918094e9072e1570bc03b2bf02f4667140fee" | ||
} |
@@ -0,1 +1,2 @@ | ||
import { resolveRouteWithRedirect } from "@mr-hope/vuepress-shared/lib/client"; | ||
import { categoryMap } from "@temp/blog/category"; | ||
@@ -5,3 +6,2 @@ import { usePageFrontmatter, useRouteLocale } from "@vuepress/client"; | ||
import { useRouter, useRoute } from "vue-router"; | ||
import { resolveRouteWithRedirect } from "../utils"; | ||
@@ -8,0 +8,0 @@ import type { ComputedRef } from "vue"; |
@@ -0,1 +1,2 @@ | ||
import { resolveRouteWithRedirect } from "@mr-hope/vuepress-shared/lib/client"; | ||
import { typeMap } from "@temp/blog/type"; | ||
@@ -5,3 +6,2 @@ import { usePageFrontmatter, useRouteLocale } from "@vuepress/client"; | ||
import { useRouter } from "vue-router"; | ||
import { resolveRouteWithRedirect } from "../utils"; | ||
@@ -8,0 +8,0 @@ import type { ComputedRef } from "vue"; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46375
25
1012
+ Added@mr-hope/vuepress-shared@2.0.0-alpha.17(transitive)
- Removed@mr-hope/vuepress-shared@2.0.0-alpha.16(transitive)