Skip to content

Commit 27650bb

Browse files
authored
Merge branch 'develop' into develop
2 parents 6e2afdb + c3bd42f commit 27650bb

22 files changed

+186
-4
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import About from './About';
2+
3+
export default {
4+
title: 'IDE/About',
5+
component: About
6+
};
7+
8+
export const Default = {};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import AssetPreview from './AssetPreview';
2+
3+
export default {
4+
title: 'IDE/AssetPreview',
5+
component: AssetPreview
6+
};
7+
8+
export const Default = {
9+
args: {
10+
url: 'https://p5js.org/assets/img/p5js.svg',
11+
name: 'P5 Logo'
12+
}
13+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import AssetSize from './AssetSize';
2+
3+
export default {
4+
title: 'IDE/AssetSize',
5+
component: AssetSize
6+
};
7+
8+
export const Default = {
9+
args: {
10+
totalSize: 123
11+
}
12+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Console from './Console';
2+
3+
export default {
4+
title: 'IDE/Console',
5+
component: Console
6+
};
7+
8+
export const Default = {};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import ConsoleInput from './ConsoleInput';
2+
3+
export default {
4+
title: 'IDE/ConsoleInput',
5+
component: ConsoleInput
6+
};
7+
8+
export const Default = {};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import CopyableInput from './CopyableInput';
2+
3+
export default {
4+
title: 'IDE/CopyableInput',
5+
component: CopyableInput
6+
};
7+
8+
export const Default = {
9+
args: {
10+
value: 'Lorem Ipsum'
11+
}
12+
};

client/modules/IDE/components/EditableInput.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ function EditableInput({
3131
inputRef.current?.focus();
3232
}
3333
}, [isEditing]);
34+
React.useEffect(() => {
35+
setCurrentValue(value);
36+
}, [value]);
3437

3538
function beginEditing() {
3639
setIsEditing(true);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import EditableInput from './EditableInput';
2+
3+
export default {
4+
title: 'IDE/EditableInput',
5+
component: EditableInput
6+
};
7+
8+
export const Default = {
9+
args: {
10+
11+
label: 'Example'
12+
}
13+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Feedback from './Feedback';
2+
3+
export default {
4+
title: 'IDE/Feedback',
5+
component: Feedback
6+
};
7+
8+
export const Default = {};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import FileUploader from './FileUploader';
2+
3+
export default {
4+
title: 'IDE/FileUploader',
5+
component: FileUploader
6+
};
7+
8+
export const Default = {};

0 commit comments

Comments
 (0)