Skip to content

Commit

Permalink
[general] Remove unnecessary dependencies (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 26, 2024
1 parent c4eeb6b commit fad843c
Show file tree
Hide file tree
Showing 142 changed files with 2,331 additions and 68,283 deletions.
20 changes: 20 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/node_modules
/storybook-static
yarn.lock
tsconfig.tsbuildinfo

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
pnpm-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
43 changes: 43 additions & 0 deletions docs/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import remarkGfm from 'remark-gfm';

import type { StorybookConfig } from '@storybook/vue3-vite';

const config: StorybookConfig = {
stories: [
'../src/components/**/*.mdx',
'../src/stories/**/*.mdx',
'../src/components/**/*.stories.@(js|jsx|mjs|ts|tsx)',
'../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
],
addons: [
'@chromatic-com/storybook',
'@storybook/addon-a11y',
'@storybook/addon-actions',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-links',
'@storybook/manager-api',
'storybook-dark-mode',
{
name: '@storybook/addon-docs',
options: {
mdxPluginOptions: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
},
},
},
},
],
framework: {
name: '@storybook/vue3-vite',
options: {
/*docgen: 'vue-component-meta'*/
},
},
docs: {
autodocs: 'tag',
},
};

export default config;
20 changes: 20 additions & 0 deletions docs/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { addons } from '@storybook/manager-api';
import { create } from '@storybook/theming/create';

import logo from './../src/assets/fastybird_row.svg';

const theme = create({
brandImage: `${logo}`,
brandTitle: 'FastyBird UI - Storybook',
});

addons.setConfig({
theme,
sidebar: {
filters: {
patterns: (item) => {
return !(item.tags ?? []).includes('hideInSidebar');
},
},
},
});
9 changes: 9 additions & 0 deletions docs/.storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<style>
html {
font-size: 10px;
}

* {
box-sizing: border-box;
}
</style>
22 changes: 22 additions & 0 deletions docs/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import "@fastybird/web-ui-theme-chalk/src/index.scss";

import "./storybook-styles.css";

export const parameters = {
viewMode: "docs",
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
backgrounds: {
disable: true,
},
darkMode: {
darkClass: "dark",
lightClass: "light",
stylePreview: true,
classTarget: "html",
},
};
29 changes: 29 additions & 0 deletions docs/.storybook/storybook-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.brand-color {
fill: #d9230f;
}

.default-color {
fill: #474949;
}

.dark-mode .default-color {
fill: #ddd;
}

#storybook-docs {
table {
width: 100%;
}

.sbdocs.sbdocs-preview {
background-color: transparent;
}
}

.dark .docs-story {
background: rgba(51, 51, 51);
}

div[class*='css-'] {
transform: none;
}
1 change: 0 additions & 1 deletion docs/assets/Color-F6OSRLHC-DaDEe61I.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/assets/DocsRenderer-CFRXHY34-BEalvho_.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/_commonjsHelpers-Cpj98o6Y.js

This file was deleted.

30 changes: 0 additions & 30 deletions docs/assets/axe-CLy4M_1P.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/chunk-D5ZWXAHU-CGElDDNX.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/colors-DhpNBxb_.css

This file was deleted.

29 changes: 0 additions & 29 deletions docs/assets/colors.stories-wS_iBoOy.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/entry-preview-DjLflWCt.js

This file was deleted.

Loading

0 comments on commit fad843c

Please sign in to comment.