Skip to content

Commit 8a41699

Browse files
authored
Merge branch 'master' into A-B-Homepage
2 parents 644d1db + 52d28f3 commit 8a41699

File tree

215 files changed

+9784
-3169
lines changed

Some content is hidden

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

215 files changed

+9784
-3169
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,15 @@
15311531
"contributions": [
15321532
"code"
15331533
]
1534+
},
1535+
{
1536+
"login": "johansenja",
1537+
"name": "johansenja",
1538+
"avatar_url": "https://avatars1.githubusercontent.com/u/43235608?v=4",
1539+
"profile": "https://github.com/johansenja",
1540+
"contributions": [
1541+
"doc"
1542+
]
15341543
}
15351544
],
15361545
"contributorsPerLine": 7,

.circleci/config.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,13 @@ commands:
214214
JEST_JUNIT_OUTPUT: '/tmp/test-results/js-test-results.xml'
215215
- store_test_results: *store_test_results
216216
- store_artifacts: *store_artifacts
217-
test_visual_regressions:
218-
description: "Test Chromatic with 'yarn chromatic'"
219-
steps:
220-
- restore_cache: *restore_deps_cache
221-
- attach_workspace: *attach_deps_workspace
222-
- run:
223-
command: yarn chromatic
217+
# test_visual_regressions:
218+
# description: "Test Chromatic with 'yarn chromatic'"
219+
# steps:
220+
# - restore_cache: *restore_deps_cache
221+
# - attach_workspace: *attach_deps_workspace
222+
# - run:
223+
# command: yarn chromatic
224224
test_jest:
225225
description: 'Test with `yarn test`'
226226
steps:
@@ -298,11 +298,11 @@ jobs:
298298
steps:
299299
- checkout_with_cache
300300
- test_integrations
301-
test-visual-regressions:
302-
executor: node
303-
steps:
304-
- checkout_with_cache
305-
- test_visual_regressions
301+
# test-visual-regressions:
302+
# executor: node
303+
# steps:
304+
# - checkout_with_cache
305+
# - test_visual_regressions
306306
test-jest:
307307
executor: node
308308
steps:
@@ -363,9 +363,9 @@ workflows:
363363
- test-integrations:
364364
requires:
365365
- build-deps
366-
- test-visual-regressions:
367-
requires:
368-
- build-deps
366+
# - test-visual-regressions:
367+
# requires:
368+
# - build-deps
369369
- typecheck:
370370
requires:
371371
- build-deps
@@ -389,6 +389,7 @@ workflows:
389389
- typecheck
390390
- test-integrations
391391
- test-jest
392+
# - test-visual-regressions
392393
filters:
393394
branches:
394395
only:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ Thanks goes to these wonderful people
251251
<tr>
252252
<td align="center"><a href="http://mcmunder.de"><img src="https://avatars3.githubusercontent.com/u/5681686?v=4" width="100px;" alt=""/><br /><sub><b>Matthias Christoph Munder</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/issues?q=author%3Amcmunder" title="Bug reports">🐛</a> <a href="https://github.com/codesandbox/codesandbox-client/commits?author=mcmunder" title="Code">💻</a></td>
253253
<td align="center"><a href="http://anuraghazra.github.io"><img src="https://avatars3.githubusercontent.com/u/35374649?v=4" width="100px;" alt=""/><br /><sub><b>Anurag Hazra</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=anuraghazra" title="Code">💻</a></td>
254+
<td align="center"><a href="https://github.com/johansenja"><img src="https://avatars1.githubusercontent.com/u/43235608?v=4" width="100px;" alt=""/><br /><sub><b>johansenja</b></sub></a><br /><a href="https://github.com/codesandbox/codesandbox-client/commits?author=johansenja" title="Documentation">📖</a></td>
254255
</tr>
255256
</table>
256257

contributor-docs/adding-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ preset.
148148

149149
We call a template configuration for the bundler in CodeSandbox a 'Preset'. All
150150
currently installed presets are defined in the
151-
[index.ts](https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/sandbox/eval/index.js)
151+
[index.ts](https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/sandbox/eval/index.ts)
152152
file under `codesandbox-client/packages/app/src/sandbox/eval/presets`.
153153

154154
In order to understand how this configuration works, we recommend you to take a

packages/app/config/webpack.common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ module.exports = {
138138
path.join(paths.sandboxSrc, 'index.js'),
139139
],
140140
'sandbox-startup': path.join(paths.sandboxSrc, 'startup.js'),
141+
'watermark-button': path.join(paths.src, 'watermark-button.js'),
141142
embed: [
142143
require.resolve('./polyfills'),
143144
path.join(paths.embedSrc, 'index.js'),

packages/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
"subworkers": "^1.0.1",
223223
"svg-react-loader": "^0.4.4",
224224
"tern": "^0.21.0",
225+
"textextensions": "^3.3.0",
225226
"use-interval": "^1.2.1",
226227
"util": "0.11.1",
227228
"vue": "^2.5.2",

packages/app/public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
],
5151
"description": "An online editor tailored for web applications",
52-
"start_url": "/s/?utm_source=homescreen",
52+
"start_url": "/dashboard?utm_source=homescreen",
5353
"scope": "/s/",
5454
"display": "standalone",
5555
"background_color": "#1C2022",

packages/app/src/app/components/CodeEditor/VSCode/Configuration/index.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { ConfigurationFile } from '@codesandbox/common/lib/templates/configuration/types';
2+
import { withTheme } from 'styled-components';
3+
import { ThemeProvider } from '@codesandbox/components';
24
import getUI from '@codesandbox/common/lib/templates/configuration/ui';
35
import theme from '@codesandbox/common/lib/theme';
46
import { Module } from '@codesandbox/common/lib/types';
@@ -23,9 +25,10 @@ type Props = EditorProps & {
2325
onChangeVSCode: (val: string) => void;
2426
onDispose: (cb: () => void) => void;
2527
openText: () => void;
28+
theme: any;
2629
};
2730

28-
export class Configuration extends React.PureComponent<Props>
31+
export class ConfigurationComponent extends React.PureComponent<Props>
2932
implements Editor {
3033
disposeInitializer: Function;
3134
currentModule: Module;
@@ -147,13 +150,16 @@ export class Configuration extends React.PureComponent<Props>
147150
More info...
148151
</a>
149152
</Description>
150-
151-
<ConfigWizard
152-
sandbox={sandbox}
153-
updateFile={this.updateFile}
154-
file={this.props.getCode()}
155-
/>
153+
<ThemeProvider theme={this.props.theme.vscodeTheme}>
154+
<ConfigWizard
155+
sandbox={sandbox}
156+
updateFile={this.updateFile}
157+
file={this.props.getCode()}
158+
/>
159+
</ThemeProvider>
156160
</Container>
157161
);
158162
}
159163
}
164+
165+
export const Configuration = withTheme(ConfigurationComponent);

packages/app/src/app/components/CodeEditor/VSCode/workbench-theme.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,8 @@
234234
.context-view.monaco-menu-container {
235235
font-size: 0.75rem;
236236
}
237+
238+
/* Fixes https://github.com/codesandbox/codesandbox-client/issues/3882 */
239+
.monaco-editor .parameter-hints-widget {
240+
overflow-y: scroll;
241+
}

packages/app/src/app/components/CreateNewSandbox/CreateSandbox/Create/PersonalTemplates/FilteredTemplates.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const FilteredTemplates = ({
2525
threshold: 0.3,
2626
distance: 10,
2727
keys: [
28-
{ name: 'sandbox.title', weight: 0.5 },
29-
{ name: 'sandbox.description', weight: 0.5 },
28+
{ name: 'sandbox.title', weight: 0.3 },
29+
{ name: 'sandbox.description', weight: 0.25 },
3030
{ name: 'sandbox.alias', weight: 0.2 },
3131
{ name: 'sandbox.source.template', weight: 0.2 },
3232
{ name: 'sandbox.id', weight: 0.05 },

0 commit comments

Comments
 (0)