Skip to content

Commit 4034be5

Browse files
authored
Merge branch 'develop' into chore/legacy-mobile
2 parents 6b1cbc2 + e33f2de commit 4034be5

21 files changed

+184
-11
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+
};
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+
value: 'an@email.com',
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 = {};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import FloatingActionButton from './FloatingActionButton';
2+
3+
export default {
4+
title: 'IDE/FloatingActionButton',
5+
component: FloatingActionButton
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 KeyboardShortcutModal from './KeyboardShortcutModal';
2+
3+
export default {
4+
title: 'IDE/KeyboardShortcutModal',
5+
component: KeyboardShortcutModal
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 NewFileForm from './NewFileForm';
2+
3+
export default {
4+
title: 'IDE/NewFileForm',
5+
component: NewFileForm
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 NewFileModal from './NewFileModal';
2+
3+
export default {
4+
title: 'IDE/NewFileModal',
5+
component: NewFileModal
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 NewFolderForm from './NewFolderForm';
2+
3+
export default {
4+
title: 'IDE/NewFolderForm',
5+
component: NewFolderForm
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 NewFolderModal from './NewFolderModal';
2+
3+
export default {
4+
title: 'IDE/NewFolderModal',
5+
component: NewFolderModal
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 ShareModal from './ShareModal';
2+
3+
export default {
4+
title: 'IDE/ShareModal',
5+
component: ShareModal
6+
};
7+
8+
export const Default = {};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import SketchList from './SketchList';
2+
3+
export default {
4+
title: 'IDE/SketchList',
5+
component: SketchList
6+
};
7+
8+
export const Default = {
9+
args: {
10+
user: {
11+
username: 'Joe Blogs',
12+
authenticated: true
13+
},
14+
username: 'Joe Blogs',
15+
loading: false,
16+
sketches: [
17+
{
18+
id: '1',
19+
name: 'Play Sketch',
20+
createdAt: Date.now().toString(),
21+
updatedAt: Date.now().toString()
22+
}
23+
]
24+
}
25+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import UploadFileModal from './UploadFileModal';
2+
3+
export default {
4+
title: 'IDE/UploadFileModal',
5+
component: UploadFileModal
6+
};
7+
8+
export const Default = {};

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.9.1",
3+
"version": "2.9.2",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",

server/controllers/session.controller.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ export function getSession(req, res) {
3131
}
3232

3333
export function destroySession(req, res, next) {
34-
req.session.destroy((err) => {
34+
req.logout((err) => {
3535
if (err) {
3636
next(err);
3737
return;
3838
}
39-
req.logout((error) => {
40-
if (error) {
41-
next(error);
42-
return;
43-
}
44-
res.json({ success: true });
45-
});
39+
res.json({ success: true });
4640
});
4741
}

0 commit comments

Comments
 (0)