Skip to content

Commit e72cca4

Browse files
MichaelDeBoeyCompuIves
authored andcommitted
Move to codesandbox org (codesandbox#1856)
* Move to codesandbox org * Add @MichaelDeBoey as a contributor
1 parent edde5ff commit e72cca4

File tree

20 files changed

+71
-61
lines changed

20 files changed

+71
-61
lines changed

.all-contributorsrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projectName": "codesandbox-client",
3-
"projectOwner": "CompuIves",
3+
"projectOwner": "codesandbox",
44
"files": [
55
"README.md"
66
],
@@ -1176,6 +1176,16 @@
11761176
"contributions": [
11771177
"code"
11781178
]
1179+
},
1180+
{
1181+
"login": "MichaelDeBoey",
1182+
"name": "Michaël De Boey",
1183+
"avatar_url": "https://avatars3.githubusercontent.com/u/6643991?v=4",
1184+
"profile": "https://michaeldeboey.be",
1185+
"contributions": [
1186+
"code",
1187+
"doc"
1188+
]
11791189
}
11801190
],
11811191
"repoType": "github",

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Code of Conduct
1212

13-
We have a code of conduct you can find [here](https://github.com/CompuIves/codesandbox-client/blob/master/CODE_OF_CONDUCT.md) and every contributor is expected to obey the rules therein. Any issues or PRs that don't abide by the code of conduct may be closed.
13+
We have a code of conduct you can find [here](https://github.com/codesandbox/codesandbox-client/blob/master/CODE_OF_CONDUCT.md) and every contributor is expected to obey the rules therein. Any issues or PRs that don't abide by the code of conduct may be closed.
1414

1515
## Code Organization
1616

@@ -20,7 +20,7 @@ The CodeSandbox client is currently divided in to 5 parts. We use `lerna` to sha
2020
- `homepage`: The Gatsby website of the homepage.
2121
- `common`: All common parts between these packages, reusable JS.
2222
- `codesandbox-api`: The npm package that's responsible for communication between the sandbox and the editor.
23-
- `codesandbox-browserfs`: An in-browser file system that emulates the Node JS file system API and supports storing and retrieving files from various backends. Forked from [https://github.com/jvilk/BrowserFS](https://github.com/jvilk/BrowserFS), with an additional [CodeSandbox backend](https://github.com/CompuIves/codesandbox-client/blob/master/standalone-packages/codesandbox-browserfs/src/backend/CodeSandboxFS.ts).
23+
- `codesandbox-browserfs`: An in-browser file system that emulates the Node JS file system API and supports storing and retrieving files from various backends. Forked from [https://github.com/jvilk/BrowserFS](https://github.com/jvilk/BrowserFS), with an additional [CodeSandbox backend](https://github.com/codesandbox/codesandbox-client/blob/master/standalone-packages/codesandbox-browserfs/src/backend/CodeSandboxFS.ts).
2424

2525
This version of CodeSandbox is using the production server as source of truth, this is specified by the environment variable `LOCAL_SERVER`. If you're working on a feature that needs you to be logged in, you can login on [https://codesandbox.io/](https://codesandbox.io/) and copy the contents of the `jwt` local storage key over to your development environment on [http://localhost:3000/](http://localhost:3000/). **Be very careful with how you handle the token**, as anyone who knows it can login as you and have read/write access to all your CodeSandbox content!
2626

@@ -50,7 +50,7 @@ To install the project you need to have `yarn` and `node`
5050
> pull requests from branches on your fork. To do this, run:
5151
>
5252
> ```
53-
> git remote add upstream https://github.com/CompuIves/codesandbox-client.git
53+
> git remote add upstream https://github.com/codesandbox/codesandbox-client.git
5454
> git fetch upstream
5555
> git branch --set-upstream-to=upstream/master master
5656
> ```

README.md

Lines changed: 22 additions & 22 deletions
Large diffs are not rendered by default.

contributor-docs/adding-template.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To contribute with a CodeSandbox template, you need to complete multiple steps a
44

55
We realise that the process of submitting a template is not straightforward and we hope that this guide will help you along the way. We are working on a system that will make it easier.
66

7-
If you think that we missed something in this guide or believe we could explain something better, please let us know by submitting an [issue](https://github.com/CompuIves/codesandbox-client/issues/new/choose) with your feedback.
7+
If you think that we missed something in this guide or believe we could explain something better, please let us know by submitting an [issue](https://github.com/codesandbox/codesandbox-client/issues/new/choose) with your feedback.
88

99
## What is a template?
1010

@@ -42,20 +42,20 @@ We encourage everyone to first evaluate whether the template works as a sandbox,
4242

4343
In order to add a new template, you need to go through a set of steps. Some of these steps you have to do, others depend on the type of template you want to add (**sandbox** vs. **container**).
4444

45-
To get started, you should first follow the steps in our contribution guidelines in order to [set up CodeSandbox locally](https://github.com/CompuIves/codesandbox-client/blob/master/CONTRIBUTING.md#setting-up-the-project-locally).
45+
To get started, you should first follow the steps in our contribution guidelines in order to [set up CodeSandbox locally](https://github.com/codesandbox/codesandbox-client/blob/master/CONTRIBUTING.md#setting-up-the-project-locally).
4646

4747
### 1. Add template logo
4848

49-
Add the logo for your template in the [logos directory](https://github.com/CompuIves/codesandbox-client/tree/master/packages/common/src/components/logos) (`codesandbox-client/packages/common/src/components/logos`). How you do this depends on the file format of your logo.
49+
Add the logo for your template in the [logos directory](https://github.com/codesandbox/codesandbox-client/tree/master/packages/common/src/components/logos) (`codesandbox-client/packages/common/src/components/logos`). How you do this depends on the file format of your logo.
5050

5151
#### SVG logos
5252

5353
Create a `.tsx` file in the `/logos` directory with the appropirate name and content. If your template's name is "Banana", name your logo file "Banana".
5454

5555
Examples:
5656

57-
- [Vue logo](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/components/logos/Vue.tsx)
58-
- [React logo](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/components/logos/React.tsx)
57+
- [Vue logo](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/components/logos/Vue.tsx)
58+
- [React logo](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/components/logos/React.tsx)
5959

6060
#### PNG/JPEG logos
6161

@@ -74,18 +74,18 @@ Replace `filename` with your logo name. The image file name should be all lowerc
7474

7575
Example:
7676

77-
- [Parcel](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/components/logos/Parcel.tsx)
77+
- [Parcel](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/components/logos/Parcel.tsx)
7878

7979
### 2. Add template definition
8080

81-
In order for CodeSandbox to recognise your template, you need to add a new definition of it in the `codesandbox-client/packages/common/src/templates` [directory](https://github.com/CompuIves/codesandbox-client/tree/master/packages/common/src/templates). You do this by creating a new `.ts` file with the name of your template.
81+
In order for CodeSandbox to recognise your template, you need to add a new definition of it in the `codesandbox-client/packages/common/src/templates` [directory](https://github.com/codesandbox/codesandbox-client/tree/master/packages/common/src/templates). You do this by creating a new `.ts` file with the name of your template.
8282

8383
Examples:
8484

85-
- [Parcel](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/templates/parcel.ts)
86-
- [Gatsby](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/templates/gatsby.ts)
85+
- [Parcel](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/templates/parcel.ts)
86+
- [Gatsby](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/templates/gatsby.ts)
8787

88-
The template definition can have various options, which you can find more information about in [template.ts](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/templates/template.ts).
88+
The template definition can have various options, which you can find more information about in [template.ts](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/templates/template.ts).
8989

9090
We encourage you to improve the user experience of your templates by taking advantage of the options you have available while writing your template definition.
9191

@@ -96,23 +96,23 @@ Examples:
9696

9797
<!-- TODO: Add more examples -->
9898

99-
After writing your template definition, you also need to add it to the [index.js](https://github.com/CompuIves/codesandbox-client/blob/master/packages/common/src/templates/index.ts) file in the same directory (`codesandbox-client/packages/common/src/templates`) in order for CodeSandbox to be able to retrieve your template.
99+
After writing your template definition, you also need to add it to the [index.js](https://github.com/codesandbox/codesandbox-client/blob/master/packages/common/src/templates/index.ts) file in the same directory (`codesandbox-client/packages/common/src/templates`) in order for CodeSandbox to be able to retrieve your template.
100100

101101
### 3. Define transpilers for sandbox
102102

103103
*If you are adding a template for a **container** sandbox, you can skip this step and proceed to step 4.*
104104

105105
For the sandboxes that run in the browser we need to define what transpilers need to be run. A template will not work in the bundler if it does not have a preset.
106106

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

109109
In order to understand how this configuration works, we recommend you to take a look at templates that have already been implemented and their presets.
110110

111111
Examples:
112112

113-
- [create-react-app-typescript](https://github.com/CompuIves/codesandbox-client/blob/master/packages/app/src/sandbox/eval/presets/create-react-app-typescript/index.js) (most basic one)
114-
- [CxJS](https://github.com/CompuIves/codesandbox-client/blob/master/packages/app/src/sandbox/eval/presets/cxjs/index.js)
115-
- [vue-cli](https://github.com/CompuIves/codesandbox-client/blob/master/packages/app/src/sandbox/eval/presets/vue-cli/index.js)
113+
- [create-react-app-typescript](https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/sandbox/eval/presets/create-react-app-typescript/index.js) (most basic one)
114+
- [CxJS](https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/sandbox/eval/presets/cxjs/index.js)
115+
- [vue-cli](https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/sandbox/eval/presets/vue-cli/index.js)
116116

117117
### 4. Add the importer
118118

@@ -122,7 +122,7 @@ This means you that you also have to add your template in another file in the `c
122122

123123
When you create your Pull Request in `codesanbox-client`, you also need to create a Pull Request in `codesandbox-importer` and reference it in your Pull Request for `codesandbox-client`. Example:
124124

125-
- [Add VuePress](https://github.com/CompuIves/codesandbox-client/pull/1652) in [codesandbox-client](https://github.com/CompuIves/codesandbox-client)
125+
- [Add VuePress](https://github.com/codesandbox/codesandbox-client/pull/1652) in [codesandbox-client](https://github.com/codesandbox/codesandbox-client)
126126
- [Add VuePress support](https://github.com/codesandbox/codesandbox-importers/pull/30) in [codesandbox-importer](https://github.com/codesandbox/codesandbox-importers)
127127

128128
### 5. Test the template
@@ -131,7 +131,7 @@ You can test your new sandbox template, however you cannot preview the functiona
131131

132132
#### Sandbox template
133133

134-
To test your new template, you need to create a mock response from the API and force the new template specification. To do this, you uncomment [this line](https://github.com/CompuIves/codesandbox-client/blob/master/packages/app/src/app/store/actions.js#L17) and change `'custom'` to the id/name of your template:
134+
To test your new template, you need to create a mock response from the API and force the new template specification. To do this, you uncomment [this line](https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/app/store/actions.js#L17) and change `'custom'` to the id/name of your template:
135135

136136
```diff
137137
.then(data => {

packages/app/integration-tests/tests/sandboxes.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const SANDBOXES = [
3636
'31kn7voz4q', // cxjs
3737
'zw9zjy0683', // aurelia
3838
'zx22owojr3', // vue v-slot test
39-
'4888omqqz7', // material-ui https://github.com/CompuIves/codesandbox-client/issues/1741
39+
'4888omqqz7', // material-ui https://github.com/codesandbox/codesandbox-client/issues/1741
4040
];
4141

4242
function pageLoaded(page) {

packages/app/src/app/components/SocialInfo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default ({ ...props }) => (
1414
<TwitterIcon />
1515
</Icon>
1616
<Icon
17-
href="https://github.com/CompuIves/codesandbox-client"
17+
href="https://github.com/codesandbox/codesandbox-client"
1818
target="_blank"
1919
rel="noopener noreferrer"
2020
>

packages/app/src/app/store/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export function createPackageJSON({ props }) {
398398
export function getContributors({ state }) {
399399
return window
400400
.fetch(
401-
'https://raw.githubusercontent.com/CompuIves/codesandbox-client/master/.all-contributorsrc'
401+
'https://raw.githubusercontent.com/codesandbox/codesandbox-client/master/.all-contributorsrc'
402402
)
403403
.then(x => x.json())
404404
.then(x => x.contributors.map(u => u.login))

packages/app/src/app/vscode/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ class VSCodeManager {
201201
addBrowserNavigationCommand(
202202
'codesandbox.help.open-issue',
203203
'Open Issue on GitHub',
204-
'https://github.com/CompuIves/codesandbox-client/issues'
204+
'https://github.com/codesandbox/codesandbox-client/issues'
205205
);
206206
addBrowserNavigationCommand(
207207
'codesandbox.help.github',
208208
'Open Our GitHub Repository',
209-
'https://github.com/CompuIves/codesandbox-client'
209+
'https://github.com/codesandbox/codesandbox-client'
210210
);
211211
addBrowserNavigationCommand(
212212
'codesandbox.help.twitter',

packages/common/src/components/ContributorsBadge/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class ContributorsBadge extends React.Component<Props, State> {
4646
e.stopPropagation();
4747
}}
4848
href={
49-
'https://github.com/CompuIves/codesandbox-client/commits?author=' +
49+
'https://github.com/codesandbox/codesandbox-client/commits?author=' +
5050
username
5151
}
5252
>

packages/common/src/components/ContributorsBadge/is-contributor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function isContributor(username: string) {
66
await (fetchPromise ||
77
(fetchPromise = window
88
.fetch(
9-
'https://raw.githubusercontent.com/CompuIves/codesandbox-client/master/.all-contributorsrc'
9+
'https://raw.githubusercontent.com/codesandbox/codesandbox-client/master/.all-contributorsrc'
1010
)
1111
.then(x => x.json())
1212
.then(x => x.contributors.map(u => u.login))

0 commit comments

Comments
 (0)