Introduce new UI design; upgrade to Vue 3 tech stack

This commit is contained in:
Michael Geers 2022-05-01 21:24:45 +02:00 • committed by GitHub
parent 6a6aac16ae
commit 63b7ffd7e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
117 changed files with 13824 additions and 31353 deletions

View file

@ -1,4 +1,23 @@
const { loadConfigFromFile } = require("vite");
const path = require("path");
module.exports = {
stories: ["../assets/js/**/*.stories.mdx", "../assets/js/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-postcss"],
framework: "@storybook/vue3",
core: {
builder: "storybook-builder-vite",
},
staticDirs: ["../assets"],
async viteFinal(config, b) {
const { config: userConfig } = await loadConfigFromFile(
path.resolve(__dirname, "../vite.config.ts")
);
const vuePlugin = userConfig.plugins.find((p) => p.name === "vite:vue");
const vuePluginIndex = config.plugins.findIndex((p) => p.name === "vite:vue");
config.plugins[vuePluginIndex] = vuePlugin;
return config;
},
};

View file

@ -1,4 +0,0 @@
<link href="/css/bootstrap.min.css" rel="stylesheet" />
<script src="/js/bootstrap.min.js" async></script>
<link href="/css/app.css" rel="stylesheet" />

View file

@ -1,4 +1,26 @@
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap";
import smoothscroll from "smoothscroll-polyfill";
import { app } from "@storybook/vue3";
import i18n from "../assets/js/i18n";
import "../assets/css/app.css";
smoothscroll.polyfill();
app.use(i18n);
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
backgrounds: {
default: "dark",
values: [
{
name: "light",
value: "#ffffff",
},
{
name: "dark",
value: "#28293e",
},
],
},
};