This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 2
2
import { findPageByKey } from '@app/util'
3
3
// @ts -ignore
4
4
import frontmatterClassifiedMap from '@dynamic/vuepress_blog/frontmatterClassified'
5
- import { VuePressPage } from '../types /VuePress'
5
+ import { VuePressPage } from '../interface /VuePress'
6
6
7
7
class Classifiable {
8
8
private _metaMap : any
@@ -76,7 +76,7 @@ export default ({ Vue }) => {
76
76
return map
77
77
} , { } )
78
78
79
- computed . $frontmatterKey = function ( ) {
79
+ computed . $frontmatterKey = function ( ) {
80
80
// @ts -ignore
81
81
const target = this [ `$${ this . $route . meta . id } ` ]
82
82
if ( target ) {
Original file line number Diff line number Diff line change
1
+ import Vue from "vue" ;
2
+ export interface VuePressPage {
3
+ key : string ;
4
+ regularPath : string ;
5
+ frontmatter : Record < string , string > ;
6
+ }
7
+ export interface VuePressContext {
8
+ pages : VuePressPage [ ] ;
9
+ themeAPI : {
10
+ layoutComponentMap : Record < string , Vue > ;
11
+ } ;
12
+ addPage : any ;
13
+ sourceDir : string ;
14
+ }
Original file line number Diff line number Diff line change 1
1
import {
2
2
VuePressContext as BaseContext ,
3
3
VuePressPage as BasePage ,
4
- } from '../../types /VuePress'
4
+ } from '../../interface /VuePress'
5
5
import { FrontmatterClassificationPage } from './Frontmatter'
6
6
import { SerializedPagination } from './Pagination'
7
7
@@ -13,4 +13,4 @@ export interface VuePressContext extends BaseContext {
13
13
getLayout : ( name ?: string , fallback ?: string ) => string | undefined ;
14
14
}
15
15
16
- export interface VuePressPage extends BasePage { }
16
+ export interface VuePressPage extends BasePage { }
You can’t perform that action at this time.
0 commit comments