-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ryan Wang <[email protected]>
- Loading branch information
Showing
10 changed files
with
2,589 additions
and
280 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
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,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Search Widget Preview</title> | ||
<script type="module" src="/src/index.ts"></script> | ||
|
||
<style> | ||
body { | ||
margin: 0 auto; | ||
max-width: 1024px; | ||
padding: 2rem; | ||
} | ||
|
||
:root { | ||
<!-- color-scheme: dark; --> | ||
} | ||
|
||
body > * { | ||
margin: 1rem 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<search-modal open></search-modal> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { defineConfig, presetUno, transformerDirectives } from 'unocss'; | ||
export default defineConfig({ | ||
presets: [presetUno()], | ||
transformers: [transformerDirectives()], | ||
}); |
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,19 @@ | ||
import UnoCSS from 'unocss/vite'; | ||
import { defineConfig, Plugin } from 'vite'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
UnoCSS({ | ||
mode: 'shadow-dom', | ||
configFile: './uno.config.ts', | ||
}) as Plugin, | ||
], | ||
server: { | ||
proxy: { | ||
'/apis': { | ||
target: 'http://localhost:8090', | ||
changeOrigin: true, | ||
}, | ||
}, | ||
}, | ||
}); |
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,27 @@ | ||
import UnoCSS from 'unocss/vite'; | ||
import { defineConfig, Plugin } from 'vite'; | ||
import dts from 'vite-plugin-dts'; | ||
|
||
export default defineConfig({ | ||
build: { | ||
lib: { | ||
entry: 'src/index.ts', | ||
name: 'search-widget', | ||
fileName: 'index', | ||
formats: ['es'], | ||
}, | ||
emptyOutDir: true, | ||
rollupOptions: { | ||
output: { | ||
extend: true, | ||
}, | ||
}, | ||
}, | ||
plugins: [ | ||
UnoCSS({ | ||
mode: 'shadow-dom', | ||
configFile: './uno.config.ts', | ||
}) as Plugin, | ||
dts() as Plugin, | ||
], | ||
}); |
Oops, something went wrong.