-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a50b9be
commit 90605ab
Showing
16 changed files
with
89 additions
and
8 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,5 @@ | ||
module.exports = function(...args) { | ||
return import('./module.mjs').then(m => m.default.call(this, ...args)) | ||
} | ||
const _meta = module.exports.meta = require('./module.json') | ||
module.exports.getMeta = () => Promise.resolve(_meta) |
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,13 @@ | ||
import * as _nuxt_schema from '@nuxt/schema'; | ||
|
||
type Explorer1Theme = 'defaultTheme' | 'ThemeInternal' | 'ThemeEdu'; | ||
interface ModuleOptions { | ||
theme: Explorer1Theme; | ||
includeStyles: boolean; | ||
includeComponents: boolean; | ||
includePageTemplates: boolean; | ||
includeStore: boolean; | ||
} | ||
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>; | ||
|
||
export { type ModuleOptions, _default as default }; |
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,13 @@ | ||
import * as _nuxt_schema from '@nuxt/schema'; | ||
|
||
type Explorer1Theme = 'defaultTheme' | 'ThemeInternal' | 'ThemeEdu'; | ||
interface ModuleOptions { | ||
theme: Explorer1Theme; | ||
includeStyles: boolean; | ||
includeComponents: boolean; | ||
includePageTemplates: boolean; | ||
includeStore: boolean; | ||
} | ||
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>; | ||
|
||
export { type ModuleOptions, _default as default }; |
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,9 @@ | ||
{ | ||
"name": "@explorer-1/nuxt", | ||
"configKey": "explorer1", | ||
"version": "0.0.0", | ||
"builder": { | ||
"@nuxt/module-builder": "0.7.0", | ||
"unbuild": "2.0.0" | ||
} | ||
} |
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,16 @@ | ||
|
||
import type { ModuleOptions } from './module.js' | ||
|
||
|
||
declare module '@nuxt/schema' { | ||
interface NuxtConfig { ['explorer1']?: Partial<ModuleOptions> } | ||
interface NuxtOptions { ['explorer1']?: ModuleOptions } | ||
} | ||
|
||
declare module 'nuxt/schema' { | ||
interface NuxtConfig { ['explorer1']?: Partial<ModuleOptions> } | ||
interface NuxtOptions { ['explorer1']?: ModuleOptions } | ||
} | ||
|
||
|
||
export type { ModuleOptions, default } from './module.js' |
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,16 @@ | ||
|
||
import type { ModuleOptions } from './module' | ||
|
||
|
||
declare module '@nuxt/schema' { | ||
interface NuxtConfig { ['explorer1']?: Partial<ModuleOptions> } | ||
interface NuxtOptions { ['explorer1']?: ModuleOptions } | ||
} | ||
|
||
declare module 'nuxt/schema' { | ||
interface NuxtConfig { ['explorer1']?: Partial<ModuleOptions> } | ||
interface NuxtOptions { ['explorer1']?: ModuleOptions } | ||
} | ||
|
||
|
||
export type { ModuleOptions, default } from './module' |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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