Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .codesandbox/project.json → .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"previews": {
"3000": {
"name": "Application",
"command": "yarn start:fast"
}
},
"tasks": {
"setup": {
"name": "Install Dependencies",
Expand All @@ -16,11 +10,13 @@
},
"app:fast": {
"name": "Application (fast)",
"command": "yarn start:fast"
"command": "yarn start:fast",
"runAtStart": true
},
"app:home:fast": {
"name": "Application home (fast)",
"command": "yarn start:home:fast"
"command": "yarn start:home:fast",
"runAtStart": true
}
},
"setupTasks": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Icon,
Link,
Tooltip,
Switch,
} from '@codesandbox/components';
import {
AuthType,
Expand Down Expand Up @@ -94,6 +95,9 @@ export const RegistryForm = ({
const [scopes, setScopes] = React.useState<string[]>(
registry?.enabledScopes || []
);
const [proxyEnabled, setProxyEnabled] = React.useState(
registry?.proxyEnabled
);

const addScope = () => {
setScopes(oldScopes => [...oldScopes, '']);
Expand All @@ -118,7 +122,7 @@ export const RegistryForm = ({
enabledScopes: scopes.filter(s => s !== ''),
registryAuthType: authenticationType,
registryUrl,
proxyEnabled: true,
proxyEnabled,
});

// We make sure to always show one input field
Expand Down Expand Up @@ -200,6 +204,26 @@ export const RegistryForm = ({
setAuthKey={setAuthKey}
disabled={disabled}
/>

<div>
<CustomFormField
direction="horizontal"
label="Use the server proxy to access registry"
>
<Switch
onChange={() => {
setProxyEnabled(s => !s);
}}
on={proxyEnabled}
disabled={disabled}
/>
</CustomFormField>
<Text size={3} variant="muted">
Disabling the proxy will allow you to use the registry behind
a VPN, but will expose the auth token to the browser and
require a CORS setup.
</Text>
</div>
</Stack>
<Stack
align="center"
Expand Down
10 changes: 6 additions & 4 deletions packages/homepage/content/docs/1-x-faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ the code from being automatically executed enabling you to edit your code to
resolve it. For example:
[https://codesandbox.io/s/new?runonclick=1](https://codesandbox.io/s/new?runonclick=1)

## How do I cancel my Pro or Patron plan?
## How do I cancel my Personal Pro, Team Pro or Patron plan?

For Pro users, you can cancel your subscription on the
[Pro page](https://codesandbox.io/pro). For legacy Patron users, you can cancel
your subscription on the [Patron page](https://codesandbox.io/patron).
For Team Pro & Personal Pro users, once you've logged in you can downgrade your plan on the
[Settings page](https://codesandbox.io/dashboard/settings).

If you're on one of our legacy Patron plans you can cancel
your subscription on the [Patron page](https://codesandbox.io/patron).