-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stub in mock composables when module disabled
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { H3Event } from 'h3' | ||
|
||
// eslint-disable-next-line unused-imports/no-unused-vars | ||
export function getPathRobotConfig(e: H3Event, options?: { skipSiteIndexable?: boolean, path?: string }) { | ||
return { | ||
indexable: true, | ||
rule: '', | ||
} | ||
} | ||
|
||
// eslint-disable-next-line unused-imports/no-unused-vars | ||
export function getSiteRobotConfig(e: H3Event): { indexable: boolean, hints: string[] } { | ||
return { | ||
indexable: true, | ||
hints: [], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { MaybeRef } from 'vue' | ||
import { ref } from '#imports' | ||
|
||
// eslint-disable-next-line unused-imports/no-unused-vars | ||
export function defineRobotMeta(component?: boolean) {} | ||
|
||
// eslint-disable-next-line unused-imports/no-unused-vars | ||
export function useRobotsRule(rule?: MaybeRef<boolean | string>) { | ||
return ref('') | ||
} |