Skip to content

Commit a911927

Browse files
authored
CodeSandbox 2.5 (#446)
* Prepared Cerebral and redux strangle strategy * Patron refactored * Prepared sandbox module and workspace * Fixed loading sandbox, code change and forking * Header refactored * Refactored Project * Prepared dependencies * working project refactor * Fixed updateSandboxInfo * Refactored Tags * File handling implemented * Tabs and code editor * Added signals for preview window * workspace, editor and preview running with mobx * Refactored Preferences (EditorSettings/Experiments/Badges/PaymentInfo/CodeFormatting) * Refactored Deployment * Refactored Monaco and Preview * Modals refactored * Moved from app to newStore * Removed shortcuts provider * Fixed user binding and other small stuff * Check devtools * Added provider * Added local storage for settings * Codemirror running * Refactored Zeit integration component * refactored ZenModeIntroduction * Refactored SignOutNotice * Refactored Navigation * Refactored UserMenu * Refactored SignInButton * CLI and git integration * Initial refactor of profile * Fixed bugs and modals * Fixed workspace bugs * Refactored code editors to support not using store * Embed running again, needs iterations * Fixed integrations * Detached redux, woop woop * Fixed ContextMenu * Removed containers * Refactored to use reactions for codeeditor and preview * Tabs by shortid to preserve state across sandboxes * Fixed updateModules to use current sandbox * Fixed is in project view * removed store folder, changed around some utils * Changed newStore to store * Refactored to new components pattern * Fixed #31 and cleaned up Devtools * Fixed quick actions * fixed moving and closing tabs * Fixed prettify * Fixed dependency changes in preview * Fixed github repo creation * Fixed deleting sandbox, new sandbox on other pages and and wrong signal payload to deploy * fixed zenmode * Fixed reacting to code editor changes * Fixed wrong preferences signal definition and badges * Fixed change sandbox showcase, delete sandbox and pagination on liked sandboxes * Fixed router, patron errors and patron feedback * Refactored and tested embed * Reimplemented prettierrc support due to merging issues * Fixed casing * Fixed git commit and pr * Fixed linting and test errors * Fixed #68 * Fix #71 * Fixed #70 * Removed unused React * fixed prompt when saving new sandbox * Fixed toggle devtools * fixed wrong signal payload to toggle workspace * Refactored and fixed keybinding manager * Refactored keybindings and fixed preferences * Fixed key binding errors * Optimistic file handling * Refactored structure * Optimistic dependencies, resources, renaming modules and directories * Handle fork and sandbox change * Start load sandbox sequence before mount and update * Fix codemirror setting for editor * Fixed handling no user * fixed #74 * Fixed #79 * Changed preferences to use id instead of index * Fixed #82 * Fixed #83 * Fixed #84 * Fixed #85 and other url options * Fix lint errors * Mark tab as not dirty when changing code * Make deployment modal less wide * Fix Alert modal styling * Fix badge visibility * Fix ZEIT sign out * Redesign * More preview hooks * Sidebar work * Add more workspace items * Deployment * Fix integrations * Git fixes * Change git fetching * Fix signing in and github commiting * Add tags, improve API * Update Zen Mode * Fix typo * Fix toggle * Fix dragging with scrolling preview * Remove the fix from devtools * Non-owned sandboxes design * Fix title overflow * Fix #87 * Refactored modals * Fix resizer height * Add social icons and fix minor styling * Cleanup of modals * Fix image viewer * Fixed patron loading and modals * Progress * Progress * Fixed issue related to code execution when changing modules * Parallel loading of user * UI Config * Push! * Fix sizes * Fixed embed bugs * Custom babel config * BabelRC * Babel plugins * Fixes * Fix types * Fix ATA in Editor * Sandbox config support and forking fixes * Configuration progress * add package.json * Configurations * Add yarn install to codesandbox-fs * Fix installing * Update package name * Prevent infinite loop * Add cache for codesandbox-fs * Remove hook * Deploy commit * Fix SSR problem with keybindings * Fix undefined template for homepage * Angular * Fixes * Fix homepage * Fix build script * Add tslint * Add fixtures * Add more fixtures * Mark dependency type fetching as done regardless of the outcome * Test UI * Fix describe block handling * Fix idle status * Another fix * Better work with files * Test progress * Test progress * Almost finish tests * Remove extra tests in sidebar * Process test feedback * Typings * Fix Stripe subscription loading * Logo * Fix jest errors * Fix a bunch of fork scenarios * Add Download back * Fix deleting sandboxes from profile * Fixes * More improvements * Test feedback by @gautamarora * Size changes * Process more feedback * Partly fix lint/tests * Force transpilation of test files to happen in the test runner * Snapshot testing * Fix describe blocks with snapshot testing * Fixes * Fix peerDependency problems * Fix dep conflict resolving * Add version safety * More safety * Schemas * Make integration tests sequential * Temporarily disable jest-lite tests * Fixes * Fix snapshot testing * Fix action spam * Fix transpilation of modules with missing dependencies * Fix tabSize * Fix dir renaming * Change checkout key for windows * Fix keybindings for windows * Update 'new' sandbox * Fix tab scrolling * Fix main module resolving * Fix showcase
1 parent 97c5883 commit a911927

File tree

1,211 files changed

+594956
-40703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,211 files changed

+594956
-40703
lines changed

.circleci/config.yml

+9
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,22 @@ jobs:
1212
- v3-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
1313
- v3-dependency-cache-{{ .Branch }}
1414
- v3-dependency-cache
15+
- restore_cache:
16+
keys:
17+
- v3-standalone-dependency-cache-{{ .Branch }}-{{ checksum "standalone-packages/codesandbox-browserfs/yarn.lock" }}
18+
- v3-standalone-dependency-cache-{{ .Branch }}
19+
- v3-standalone-dependency-cache
1520
- run:
1621
name: Install Dependencies
1722
command: yarn install
1823
- save_cache:
1924
key: v3-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
2025
paths:
2126
- node_modules
27+
- save_cache:
28+
key: v3-standalone-dependency-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
29+
paths:
30+
- standalone-packages/codesandbox-browserfs/node_modules
2231
- run:
2332
name: Build
2433
command: yarn build:dependents

.eslintrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616
"react/jsx-filename-extension": 0,
1717
"react/sort-comp": 0,
1818
"import/no-extraneous-dependencies": 0,
19+
"react/prop-types": 0,
1920
"arrow-parens": 0,
2021
"import/prefer-default-export": 0,
2122
"class-methods-use-this": 0,
2223
"no-console": ["error", { "allow": ["error"] }],
2324
"prefer-template": "off",
24-
"no-plusplus": 0
25+
"no-plusplus": 0,
26+
"no-underscore-dangle": "off",
27+
"no-nested-ternary": "warn",
28+
"react/require-default-props": "off"
2529
},
2630
"settings": {
2731
"import/resolver": "webpack"
File renamed without changes.
+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
// flow-typed signature: 80ca0349a05deb6505a71a2f5d15b733
2+
// flow-typed version: <<STUB>>/@cerebral/http_v^4.0.0/flow_v0.64.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@cerebral/http'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@cerebral/http' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@cerebral/http/lib/DEFAULT_OPTIONS' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module '@cerebral/http/lib/fileUpload' {
30+
declare module.exports: any;
31+
}
32+
33+
declare module '@cerebral/http/lib/HttpProviderError' {
34+
declare module.exports: any;
35+
}
36+
37+
declare module '@cerebral/http/lib/index' {
38+
declare module.exports: any;
39+
}
40+
41+
declare module '@cerebral/http/lib/operators/httpAbort' {
42+
declare module.exports: any;
43+
}
44+
45+
declare module '@cerebral/http/lib/operators/httpDelete' {
46+
declare module.exports: any;
47+
}
48+
49+
declare module '@cerebral/http/lib/operators/httpGet' {
50+
declare module.exports: any;
51+
}
52+
53+
declare module '@cerebral/http/lib/operators/httpPatch' {
54+
declare module.exports: any;
55+
}
56+
57+
declare module '@cerebral/http/lib/operators/httpPost' {
58+
declare module.exports: any;
59+
}
60+
61+
declare module '@cerebral/http/lib/operators/httpPut' {
62+
declare module.exports: any;
63+
}
64+
65+
declare module '@cerebral/http/lib/operators/httpUploadFile' {
66+
declare module.exports: any;
67+
}
68+
69+
declare module '@cerebral/http/lib/operators/index' {
70+
declare module.exports: any;
71+
}
72+
73+
declare module '@cerebral/http/lib/request' {
74+
declare module.exports: any;
75+
}
76+
77+
declare module '@cerebral/http/lib/utils' {
78+
declare module.exports: any;
79+
}
80+
81+
declare module '@cerebral/http/operators' {
82+
declare module.exports: any;
83+
}
84+
85+
// Filename aliases
86+
declare module '@cerebral/http/lib/DEFAULT_OPTIONS.js' {
87+
declare module.exports: $Exports<'@cerebral/http/lib/DEFAULT_OPTIONS'>;
88+
}
89+
declare module '@cerebral/http/lib/fileUpload.js' {
90+
declare module.exports: $Exports<'@cerebral/http/lib/fileUpload'>;
91+
}
92+
declare module '@cerebral/http/lib/HttpProviderError.js' {
93+
declare module.exports: $Exports<'@cerebral/http/lib/HttpProviderError'>;
94+
}
95+
declare module '@cerebral/http/lib/index.js' {
96+
declare module.exports: $Exports<'@cerebral/http/lib/index'>;
97+
}
98+
declare module '@cerebral/http/lib/operators/httpAbort.js' {
99+
declare module.exports: $Exports<'@cerebral/http/lib/operators/httpAbort'>;
100+
}
101+
declare module '@cerebral/http/lib/operators/httpDelete.js' {
102+
declare module.exports: $Exports<'@cerebral/http/lib/operators/httpDelete'>;
103+
}
104+
declare module '@cerebral/http/lib/operators/httpGet.js' {
105+
declare module.exports: $Exports<'@cerebral/http/lib/operators/httpGet'>;
106+
}
107+
declare module '@cerebral/http/lib/operators/httpPatch.js' {
108+
declare module.exports: $Exports<'@cerebral/http/lib/operators/httpPatch'>;
109+
}
110+
declare module '@cerebral/http/lib/operators/httpPost.js' {
111+
declare module.exports: $Exports<'@cerebral/http/lib/operators/httpPost'>;
112+
}
113+
declare module '@cerebral/http/lib/operators/httpPut.js' {
114+
declare module.exports: $Exports<'@cerebral/http/lib/operators/httpPut'>;
115+
}
116+
declare module '@cerebral/http/lib/operators/httpUploadFile.js' {
117+
declare module.exports: $Exports<
118+
'@cerebral/http/lib/operators/httpUploadFile'
119+
>;
120+
}
121+
declare module '@cerebral/http/lib/operators/index.js' {
122+
declare module.exports: $Exports<'@cerebral/http/lib/operators/index'>;
123+
}
124+
declare module '@cerebral/http/lib/request.js' {
125+
declare module.exports: $Exports<'@cerebral/http/lib/request'>;
126+
}
127+
declare module '@cerebral/http/lib/utils.js' {
128+
declare module.exports: $Exports<'@cerebral/http/lib/utils'>;
129+
}
130+
declare module '@cerebral/http/operators.js' {
131+
declare module.exports: $Exports<'@cerebral/http/operators'>;
132+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// flow-typed signature: 31b4a1766166d30db2d11f9b2ca89b5a
2+
// flow-typed version: <<STUB>>/@cerebral/mobx-state-tree_v^3.0.0/flow_v0.64.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@cerebral/mobx-state-tree'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@cerebral/mobx-state-tree' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@cerebral/mobx-state-tree/lib/index' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module '@cerebral/mobx-state-tree/lib/Model' {
30+
declare module.exports: any;
31+
}
32+
33+
// Filename aliases
34+
declare module '@cerebral/mobx-state-tree/index' {
35+
declare module.exports: $Exports<'@cerebral/mobx-state-tree'>;
36+
}
37+
declare module '@cerebral/mobx-state-tree/index.js' {
38+
declare module.exports: $Exports<'@cerebral/mobx-state-tree'>;
39+
}
40+
declare module '@cerebral/mobx-state-tree/lib/index.js' {
41+
declare module.exports: $Exports<'@cerebral/mobx-state-tree/lib/index'>;
42+
}
43+
declare module '@cerebral/mobx-state-tree/lib/Model.js' {
44+
declare module.exports: $Exports<'@cerebral/mobx-state-tree/lib/Model'>;
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// flow-typed signature: d32253b7734f6dfd8978fc093c2f3f83
2+
// flow-typed version: <<STUB>>/@emmetio/codemirror-plugin_v^0.3.5/flow_v0.64.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@emmetio/codemirror-plugin'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@emmetio/codemirror-plugin' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.cjs' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module '@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.es' {
30+
declare module.exports: any;
31+
}
32+
33+
declare module '@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin' {
34+
declare module.exports: any;
35+
}
36+
37+
// Filename aliases
38+
declare module '@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.cjs.js' {
39+
declare module.exports: $Exports<
40+
'@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.cjs'
41+
>;
42+
}
43+
declare module '@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.es.js' {
44+
declare module.exports: $Exports<
45+
'@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.es'
46+
>;
47+
}
48+
declare module '@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin.js' {
49+
declare module.exports: $Exports<
50+
'@emmetio/codemirror-plugin/dist/emmet-codemirror-plugin'
51+
>;
52+
}

0 commit comments

Comments
 (0)