feat: Add DSS infrastructure, remove legacy admin-ui code
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
- Remove legacy admin-ui/js/ vanilla JS components - Add .dss/ directory with core tokens, skins, themes - Add Storybook configuration and generated stories - Add DSS management scripts (dss-services, dss-init, dss-setup, dss-reset) - Add MCP command definitions for DSS plugin - Add Figma sync architecture and scripts - Update pre-commit hooks with documentation validation - Fix JSON trailing commas in skin files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
25
admin-ui/.storybook/main.js
Normal file
25
admin-ui/.storybook/main.js
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
/** @type { import('@storybook/html-vite').StorybookConfig } */
|
||||
const config = {
|
||||
"stories": [
|
||||
"../src/**/*.mdx",
|
||||
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
||||
],
|
||||
"addons": [
|
||||
"@chromatic-com/storybook",
|
||||
"@storybook/addon-vitest",
|
||||
"@storybook/addon-a11y",
|
||||
"@storybook/addon-docs"
|
||||
],
|
||||
"framework": "@storybook/html-vite",
|
||||
viteFinal: async (config) => {
|
||||
config.server = config.server || {};
|
||||
config.server.allowedHosts = [
|
||||
'localhost',
|
||||
'storybook.dss.overbits.luz.uy'
|
||||
];
|
||||
return config;
|
||||
}
|
||||
};
|
||||
export default config;
|
||||
23
admin-ui/.storybook/preview.js
Normal file
23
admin-ui/.storybook/preview.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// Import DSS design tokens
|
||||
import '../css/tokens.css';
|
||||
|
||||
/** @type { import('@storybook/html-vite').Preview } */
|
||||
const preview = {
|
||||
parameters: {
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/i,
|
||||
},
|
||||
},
|
||||
backgrounds: {
|
||||
default: 'light',
|
||||
values: [
|
||||
{ name: 'light', value: '#ffffff' },
|
||||
{ name: 'dark', value: '#1a1a1a' },
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default preview;
|
||||
Reference in New Issue
Block a user