-
-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: seperate storybook (#1455)
- Loading branch information
1 parent
f232ca7
commit ae18edb
Showing
39 changed files
with
226 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ packages: | |
- 'packages/plugins/*' | ||
- 'packages/integrations/*' | ||
- e2e | ||
- storybook |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
body { | ||
padding: 0; | ||
} | ||
|
||
.milkdown { | ||
@apply bg-slate-50 border rounded; | ||
} | ||
|
||
.milkdown:not(.crepe .milkdown) { | ||
@apply px-8 py-4 mx-5; | ||
} | ||
|
||
.editor { | ||
@apply mx-auto max-w-full; | ||
} | ||
|
||
input { | ||
border: 0; | ||
outline: none; | ||
} | ||
|
||
input:focus { | ||
border: 0; | ||
outline: none; | ||
box-shadow: none; | ||
} | ||
|
||
span[data-type='emoji'] { | ||
@apply inline-block; | ||
} | ||
|
||
span[data-type='emoji'] .emoji { | ||
@apply w-4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "@milkdown/storybook", | ||
"version": "7.4.0", | ||
"private": true, | ||
"files": [ | ||
"style" | ||
], | ||
"scripts": { | ||
"start": "storybook dev -p 6006", | ||
"build": "storybook build", | ||
"serve": "serve storybook-static" | ||
}, | ||
"dependencies": { | ||
"@codemirror/commands": "^6.3.3", | ||
"@codemirror/language-data": "^6.4.1", | ||
"@codemirror/state": "^6.4.1", | ||
"@codemirror/theme-one-dark": "^6.1.2", | ||
"@codemirror/view": "^6.26.0", | ||
"@milkdown/crepe": "workspace:*", | ||
"@milkdown/kit": "workspace:*", | ||
"@milkdown/theme-nord": "workspace:*", | ||
"@uiw/codemirror-theme-basic": "^4.22.1", | ||
"@uiw/codemirror-theme-nord": "^4.22.1", | ||
"atomico": "^1.75.1", | ||
"codemirror": "^6.0.1", | ||
"katex": "^0.16.0", | ||
"tslib": "^2.5.0" | ||
}, | ||
"nx": { | ||
"targets": { | ||
"build": { | ||
"outputs": [ | ||
"{projectRoot}/lib" | ||
], | ||
"dependsOn": [ | ||
"build" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
plugins: { | ||
'tailwindcss/nesting': {}, | ||
'tailwindcss': {}, | ||
'autoprefixer': {}, | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="vite/client" /> |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
e2e/stories/components/code-block.stories.ts → .../stories/components/code-block.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...stories/components/image-block.stories.ts → ...stories/components/image-block.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../components/inline-image-block.stories.ts → .../components/inline-image-block.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
14 changes: 7 additions & 7 deletions
14
...tories/components/link-tooltip.stories.ts → ...tories/components/link-tooltip.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ies/components/list-item-block.stories.ts → ...ies/components/list-item-block.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...stories/components/table-block.stories.ts → ...stories/components/table-block.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
e2e/stories/plugins/listener.stories.ts → ...ybook/stories/plugins/listener.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
e2e/stories/utils/shadow.ts → storybook/stories/utils/shadow.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ['**/*.tsx', '**/*.ts', '**/*.html'], | ||
darkMode: 'class', | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [ | ||
require('@tailwindcss/forms'), | ||
require('@tailwindcss/typography'), | ||
require('tailwind-nord'), | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"lib": ["dom"], | ||
"baseUrl": ".", | ||
"rootDir": ".", | ||
"sourceMap": false | ||
}, | ||
"ts-node": { | ||
"compilerOptions": { | ||
"module": "es2022", | ||
"moduleResolution": "node" | ||
} | ||
} | ||
} |
Oops, something went wrong.