Replace storybook with histoire (#5154)
This commit is contained in:
parent
7883c7f15c
commit
ea2c3d53fe
40 changed files with 3278 additions and 48475 deletions
|
|
@ -1,16 +0,0 @@
|
|||
module.exports = {
|
||||
stories: ["../assets/js/**/*.stories.js"],
|
||||
addons: [
|
||||
"@storybook/addon-links",
|
||||
"@storybook/addon-essentials",
|
||||
"@storybook/addon-interactions",
|
||||
],
|
||||
framework: "@storybook/vue3",
|
||||
core: {
|
||||
builder: "@storybook/builder-vite",
|
||||
},
|
||||
staticDirs: ["../assets"],
|
||||
features: {
|
||||
storyStoreV7: true,
|
||||
},
|
||||
};
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
<script>
|
||||
window.global = window;
|
||||
</script>
|
||||
<meta name="theme-color" content="#020318" />
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
import "bootstrap/dist/css/bootstrap.min.css";
|
||||
import "bootstrap";
|
||||
import smoothscroll from "smoothscroll-polyfill";
|
||||
import { app } from "@storybook/vue3";
|
||||
import VueNumber from "vue-number-animation";
|
||||
import i18n from "../assets/js/i18n";
|
||||
import "../assets/css/app.css";
|
||||
import { watchThemeChanges } from "../assets/js/theme";
|
||||
|
||||
smoothscroll.polyfill();
|
||||
app.use(i18n);
|
||||
app.use(VueNumber);
|
||||
|
||||
export const parameters = {
|
||||
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
backgrounds: {
|
||||
default: "background",
|
||||
values: [
|
||||
{
|
||||
name: "background",
|
||||
value: "var(--evcc-background)",
|
||||
},
|
||||
{
|
||||
name: "box",
|
||||
value: "var(--evcc-box)",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
watchThemeChanges();
|
||||
Loading…
Add table
Add a link
Reference in a new issue