-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
105 additions
and
20 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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
|
||
declare module 'virtual:files-loader' { | ||
const demos: Record<string, import('./src/types').DemoItem[]> | ||
declare module 'virtual:files-loader*' { | ||
const demos: Record<string, import('./src/types').FilesLoaderItem[]> | ||
|
||
export default demos | ||
} | ||
|
||
declare module 'virtual:files-loader/*' { | ||
const demos: Record<string, import('./src/types').DemoItem[]> | ||
|
||
export default demos | ||
} |
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,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import './style.css' | ||
import DEMOS from 'virtual:files-loader' | ||
import DEMOS from 'virtual:files-loader' // => /demos/.. | ||
import BUTTON_DEMOS from 'virtual:files-loader/button' // => /demos/button/src/.. | ||
import BUTTON_BASIC_DEMOS from 'virtual:files-loader/button/basic' // => /demos/button/src/basic/.. | ||
|
||
const app = document.getElementById('app')! | ||
|
||
const settled = DEMOS | ||
const settled = JSON.stringify(DEMOS, null, 2) | ||
+ '\n' + JSON.stringify(BUTTON_DEMOS, null, 2) | ||
+ '\n' + JSON.stringify(BUTTON_BASIC_DEMOS, null, 2) | ||
|
||
app.textContent = JSON.stringify(settled, null, 2) | ||
app.textContent = settled |
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