Replace storybook with histoire (#5154)

This commit is contained in:
Michael Geers 2022-11-14 17:24:32 +01:00 • committed by GitHub
parent 7883c7f15c
commit ea2c3d53fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 3278 additions and 48475 deletions

View file

@ -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,
},
};

View file

@ -1,4 +0,0 @@
<script>
window.global = window;
</script>
<meta name="theme-color" content="#020318" />

View file

@ -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();