From 213a91b7d25e9abe64c4d0df99376bcce5f458bf Mon Sep 17 00:00:00 2001 From: AlexandrRazhev Date: Thu, 18 Aug 2022 18:35:29 +0300 Subject: [PATCH 1/6] added stories --- src/react/helpers/bulk/Bulk.stories.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/react/helpers/bulk/Bulk.stories.mdx diff --git a/src/react/helpers/bulk/Bulk.stories.mdx b/src/react/helpers/bulk/Bulk.stories.mdx new file mode 100644 index 00000000..0450475e --- /dev/null +++ b/src/react/helpers/bulk/Bulk.stories.mdx @@ -0,0 +1,15 @@ +import { Canvas, Meta, Story } from '@storybook/addon-docs' + + + +# Bulk + +--- + +## Bulk Usage + + + +
Bulk
+
+
From 58650490e75709c2ae88d067e451928282b75bfd Mon Sep 17 00:00:00 2001 From: AlexandrRazhev Date: Thu, 18 Aug 2022 19:47:17 +0300 Subject: [PATCH 2/6] bulk added --- src/react/helpers/bulk/Bulk.stories.mdx | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/react/helpers/bulk/Bulk.stories.mdx b/src/react/helpers/bulk/Bulk.stories.mdx index 0450475e..d613afa8 100644 --- a/src/react/helpers/bulk/Bulk.stories.mdx +++ b/src/react/helpers/bulk/Bulk.stories.mdx @@ -1,15 +1,24 @@ import { Canvas, Meta, Story } from '@storybook/addon-docs' +import { bulk } from './bulk.ts' + # Bulk ---- - -## Bulk Usage - - -
Bulk
+ + {() => { + let str = '' + let func = () => str + ' ' + 'func' + let func1 = () => str + ' ' + 'func1' + let func2 = () => str + ' ' + 'func2' + bulk(func, func1, funk2) + return ( + <> +
{str}
+ + ) + }}
From adc1132c816e9410872c033b252f9c538f537bb1 Mon Sep 17 00:00:00 2001 From: AlexandrRazhev Date: Fri, 19 Aug 2022 12:29:32 +0300 Subject: [PATCH 3/6] stories fixed --- src/react/helpers/bulk/Bulk.stories.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/react/helpers/bulk/Bulk.stories.mdx b/src/react/helpers/bulk/Bulk.stories.mdx index d613afa8..5d2c54f5 100644 --- a/src/react/helpers/bulk/Bulk.stories.mdx +++ b/src/react/helpers/bulk/Bulk.stories.mdx @@ -6,14 +6,16 @@ import { bulk } from './bulk.ts' # Bulk + + - + {() => { let str = '' - let func = () => str + ' ' + 'func' - let func1 = () => str + ' ' + 'func1' - let func2 = () => str + ' ' + 'func2' - bulk(func, func1, funk2) + let func = () => (str = str + 'one') + let func1 = () => (str = str + ' ' + 'two') + let func2 = () => (str = str + ' ' + 'three') + bulk(func, func1, func2) return ( <>
{str}
From 8c6d9679401d77f3c36d0b72cd579b09fcf9bfc3 Mon Sep 17 00:00:00 2001 From: AleksandrRazhev Date: Wed, 31 Aug 2022 19:53:24 +0300 Subject: [PATCH 4/6] doc with text added --- src/react/helpers/bulk/Bulk.stories.mdx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/react/helpers/bulk/Bulk.stories.mdx b/src/react/helpers/bulk/Bulk.stories.mdx index 5d2c54f5..61b00bb9 100644 --- a/src/react/helpers/bulk/Bulk.stories.mdx +++ b/src/react/helpers/bulk/Bulk.stories.mdx @@ -17,9 +17,14 @@ import { bulk } from './bulk.ts' let func2 = () => (str = str + ' ' + 'three') bulk(func, func1, func2) return ( - <> -
{str}
- +
+

let str = ''

+

let func = () => (str = str + 'one')

+

let func1 = () => (str = str + ' ' + 'two')

+

let func2 = () => (str = str + ' ' + 'three')

+

bulk(func, func1, func2)

+

// str = '{str}'

+
) }}
From 276c51eee7dc40f7a2561fa04f2938bfce261a7c Mon Sep 17 00:00:00 2001 From: AleksandrRazhev Date: Wed, 31 Aug 2022 20:00:53 +0300 Subject: [PATCH 5/6] colors changed --- src/react/helpers/bulk/Bulk.stories.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/helpers/bulk/Bulk.stories.mdx b/src/react/helpers/bulk/Bulk.stories.mdx index 61b00bb9..1d62f42f 100644 --- a/src/react/helpers/bulk/Bulk.stories.mdx +++ b/src/react/helpers/bulk/Bulk.stories.mdx @@ -23,7 +23,7 @@ import { bulk } from './bulk.ts'

let func1 = () => (str = str + ' ' + 'two')

let func2 = () => (str = str + ' ' + 'three')

bulk(func, func1, func2)

-

// str = '{str}'

+

// str = '{str}'

) }} From e89ce238e98c591b8b0c28759408062619efeee6 Mon Sep 17 00:00:00 2001 From: AleksandrRazhev Date: Fri, 2 Sep 2022 11:50:02 +0300 Subject: [PATCH 6/6] docs edited --- src/react/helpers/bulk/Bulk.stories.mdx | 64 +++++++++++++++++++------ 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/src/react/helpers/bulk/Bulk.stories.mdx b/src/react/helpers/bulk/Bulk.stories.mdx index 1d62f42f..73e1de91 100644 --- a/src/react/helpers/bulk/Bulk.stories.mdx +++ b/src/react/helpers/bulk/Bulk.stories.mdx @@ -4,27 +4,61 @@ import { bulk } from './bulk.ts' -# Bulk - - - {() => { let str = '' - let func = () => (str = str + 'one') - let func1 = () => (str = str + ' ' + 'two') - let func2 = () => (str = str + ' ' + 'three') + const func = () => { + str += 'one' + } + const func1 = () => { + str += ' ' + 'two' + } + const func2 = () => { + str += ' ' + 'three' + } bulk(func, func1, func2) return ( -
-

let str = ''

-

let func = () => (str = str + 'one')

-

let func1 = () => (str = str + ' ' + 'two')

-

let func2 = () => (str = str + ' ' + 'three')

-

bulk(func, func1, func2)

-

// str = '{str}'

-
+ <> +
+ Description +

+ the function sequentially runs the functions passed to it +

+
+
+ Arguments +

+ function : one or + more functions +

+
+
+ Returns +

+ void +

+
+ Example +
+
+              
+                {`let str = ""
+const func = () => {
+  str += 'one'
+}
+const func1 = () => {
+  str += ' ' + 'two'
+}
+const func2 = () => {
+  str += ' ' + 'three'
+}
+bulk(func, func1, func2)`}
+              
+            
+

// str = "{str}"

+
+ ) }}