Skip to content

Commit

Permalink
[devices-module] Refactored devices module frontend (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 16, 2024
1 parent 4c890f8 commit 34e7a12
Show file tree
Hide file tree
Showing 2,215 changed files with 41,340 additions and 6,221 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-PRSJMWNM-D9fK27oZ.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/assets/DocsRenderer-K4EAMTCU-C3JYsejL.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/WithTooltip-KJL26V4Q-BnKyymxw.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-BmBZOpIU.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/chunk-MZXVCX43-CM0pFb8Z.js

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit 34e7a12

Please sign in to comment.