Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 2737-doc-links
- Loading branch information
Showing
153 changed files
with
9,785 additions
and
1,716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
<!-- | ||
@page contributing How to Contribute | ||
@parent guides 4 | ||
@body | ||
--> | ||
# Contributing to CanJS | ||
|
||
Thank you for contributing to CanJS! If you need any help setting up a CanJS development environment and fixing CanJS bugs, please reach out to us on the [canjs/canjs Gitter channel](https://gitter.im/canjs/canjs) or email (contact@bitovi.com). We will happily walk you through setting up your environment, creating a test, and submitting a pull request. Here is a video showing how to contribute to CanJS: | ||
|
||
<iframe width="662" height="372" src="https://www.youtube.com/embed/PRuueWqnpIw" frameborder="0" allowfullscreen></iframe> | ||
|
||
For more details we have the following more in-depth contribution guides: | ||
|
||
- [guides/contributing/bug-report Report a bug] | ||
- [guides/contributing/feature-suggestion Suggest a feature] | ||
- [guides/contributing/code Code changes] | ||
- [guides/contributing/documentation Documentation improvements] | ||
- [Create a plugin](https://donejs.com/plugin.html) | ||
- [guides/contributing/evangelism Evangelism - Blog, meetup and conference talks] | ||
- [guides/contributing/releases Releases - Maintaining CanJS] | ||
For more details, check out the [contribution guide on CanJS.com](https://canjs.com/doc/guides/contribute.html) for information on: | ||
|
||
- [Code of Conduct](https://canjs.com/doc/guides/contribute.html#CodeofConduct) | ||
- [Getting Help](https://canjs.com/doc/guides/contribute.html#GettingHelp) | ||
- [Project Organization](https://canjs.com/doc/guides/contributing/project-organization.html) | ||
- [Reporting Bugs](https://canjs.com/doc/guides/contributing/bug-report.html) | ||
- [Suggesting Features](https://canjs.com/doc/guides/contributing/feature-suggestion.html) | ||
- [Finding Ways to Contribute](https://canjs.com/doc/guides/contributing/finding-ways-to-contribute.html) | ||
- [Developing Locally](https://canjs.com/doc/guides/contributing/developing-locally.html) | ||
- [Changing the Code](https://canjs.com/doc/guides/contributing/code.html) | ||
- [Improving the Docs & Site](https://canjs.com/doc/guides/contributing/documentation.html) | ||
- [Making a New Package](https://canjs.com/doc/guides/contributing/adding-ecosystem-modules.html) | ||
- [API Design Guidelines](https://canjs.com/doc/guides/contributing/api-design-guidelines.html) | ||
- [Releasing CanJS](https://canjs.com/doc/guides/contributing/releases.html) | ||
- [Updating the Site](https://canjs.com/doc/guides/contributing/updating-the-site.html) | ||
- [Evangelism](https://canjs.com/doc/guides/contributing/evangelism.html) | ||
|
||
## 3.0 Changes | ||
|
||
In 3.0, nearly every module has its own repository. All code changes should go there. Issues can be submitted to `canjs/canjs`, but once we know the root of the issue, we will move it to a specific repository. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script src="../../node_modules/steal/steal.js" main="@empty" id="demo-source"> | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import Component from "react-view-model/component"; | ||
import DefineMap from "can-define/map/map"; | ||
|
||
class AppComponent extends Component { | ||
render() { | ||
return React.createElement('div', { | ||
onClick: this.viewModel.increment.bind(this.viewModel) | ||
}, 'Count: ', this.viewModel.count, ' (Click Me)'); | ||
// return ( | ||
// <div onClick={ this.viewModel.increment.bind(this.viewModel) }> | ||
// Count: {this.viewModel.count} (Click Me) | ||
// </div> | ||
// ); | ||
} | ||
} | ||
|
||
AppComponent.ViewModel = DefineMap.extend("AppVM", { | ||
count: { | ||
type: "number", | ||
value: 0 | ||
}, | ||
increment: function() { | ||
return this.count++; | ||
}, | ||
}); | ||
|
||
var div = document.createElement("div"); | ||
document.body.appendChild(div); | ||
ReactDOM.render(React.createElement(AppComponent), div); | ||
// ReactDOM.render(<AppComponent />, div); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script src="../../node_modules/steal/steal.js" main="@empty" id="demo-source"> | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import Component from "react-view-model/component"; | ||
import DefineMap from "can-define/map/map"; | ||
|
||
class AppComponent extends Component { | ||
render() { | ||
return React.createElement("div", null, this.viewModel.name); | ||
// return ( | ||
// <div>{this.viewModel.name}</div> | ||
// ); | ||
} | ||
} | ||
|
||
AppComponent.ViewModel = DefineMap.extend("AppVM", { | ||
first: { | ||
type: "string", | ||
value: "Christopher" | ||
}, | ||
last: { | ||
type: "string", | ||
value: "Baker" | ||
}, | ||
name: { | ||
get() { | ||
return this.first + " " + this.last; | ||
}, | ||
}, | ||
}); | ||
|
||
var div = document.createElement("div"); | ||
document.body.appendChild(div); | ||
ReactDOM.render(React.createElement(AppComponent), div); | ||
// ReactDOM.render(<AppComponent />, div); | ||
</script> |
Oops, something went wrong.