mirror of https://github.com/artf/grapesjs.git
committed by
GitHub
42 changed files with 1124 additions and 715 deletions
@ -0,0 +1,26 @@ |
|||
## WARNING |
|||
READ and FOLLOW next 5 steps, then REMOVE them before posting the issue |
|||
|
|||
1. Follow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.md |
|||
2. Use the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. `[Bug]: ....` |
|||
3. Do a quick SEARCH first, to see if someone else didn't open the same issue |
|||
4. DON'T ASK to create examples/code for you, read DOCS and APIs first, then you can post what you have tried (we'd like to see your code) and what you're unable to achieve |
|||
5. All relative statements/questions have to be filled/answered, otherwise, the issue might be CLOSED |
|||
|
|||
## You're submitting a BUG |
|||
1. Are you using the latest release (older versions are NOT supported)? |
|||
1. If you're not sure, type `grapesjs.version` in console and press ENTER |
|||
1. Are you facing the bug with your local copy of GrapesJS or with the current demo? |
|||
1. If a local copy |
|||
1. Indicate all informations about your OS, browser and GrapesJS version. |
|||
1. Are you able to reproduce the bug from the demo? |
|||
1. What is the expected behavior? |
|||
1. What happens instead? |
|||
1. If you're able to reproduce the bug indicate all the necessary steps |
|||
1. Attach screenshots (using KAP/LICEcap), screencasts or live demo |
|||
1. JSFiddle Starter template https://jsfiddle.net/szLp8h4n |
|||
1. CodeSandbox Starter template https://codesandbox.io/s/1r0w2pk1vl |
|||
|
|||
## You're submitting a FEATURE REQUEST |
|||
1. Be sure to work on the latest version, as the feature might be already there |
|||
1. Keep in mind that the feature should be considered valid to use for everyone, not only for your case |
|||
@ -0,0 +1,46 @@ |
|||
# Contributor Covenant Code of Conduct |
|||
|
|||
## Our Pledge |
|||
|
|||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. |
|||
|
|||
## Our Standards |
|||
|
|||
Examples of behavior that contributes to creating a positive environment include: |
|||
|
|||
* Using welcoming and inclusive language |
|||
* Being respectful of differing viewpoints and experiences |
|||
* Gracefully accepting constructive criticism |
|||
* Focusing on what is best for the community |
|||
* Showing empathy towards other community members |
|||
|
|||
Examples of unacceptable behavior by participants include: |
|||
|
|||
* The use of sexualized language or imagery and unwelcome sexual attention or advances |
|||
* Trolling, insulting/derogatory comments, and personal or political attacks |
|||
* Public or private harassment |
|||
* Publishing others' private information, such as a physical or electronic address, without explicit permission |
|||
* Other conduct which could reasonably be considered inappropriate in a professional setting |
|||
|
|||
## Our Responsibilities |
|||
|
|||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. |
|||
|
|||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. |
|||
|
|||
## Scope |
|||
|
|||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. |
|||
|
|||
## Enforcement |
|||
|
|||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at artur.catch@hotmail.it. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. |
|||
|
|||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. |
|||
|
|||
## Attribution |
|||
|
|||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] |
|||
|
|||
[homepage]: http://contributor-covenant.org |
|||
[version]: http://contributor-covenant.org/version/1/4/ |
|||
@ -0,0 +1,52 @@ |
|||
# Contribute |
|||
|
|||
## Introduction |
|||
|
|||
First of all, thank you for considering contributing to GrapesJS! |
|||
|
|||
We welcome any type of contribution, not only code. Like for example: |
|||
- **QA**: file bug reports, the more details you can give the better (e.g. screenshots with the console open) |
|||
- **Marketing**: writing blog posts, howto's, tutorials, etc. |
|||
- **Community**: presenting the project at meetups, organizing a dedicated meetup for the local community, etc. |
|||
- **Money**: We welcome financial contributions in full transparency on our [Open Collective]. |
|||
|
|||
|
|||
## Your First Contribution |
|||
|
|||
Working on your first Pull Request? You can learn how from this **free** series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github). |
|||
|
|||
|
|||
## Submitting code |
|||
|
|||
Any code change should be submitted as a pull request. Before start working on something make always a search in opened issues and pull requests, this might help you to avoid waisting time. |
|||
|
|||
A pull request could be a bug fix, new feature and much more, but in all cases, **open a new issue** and talk about what you want to do. Often happens to work on something already fixed (ready to release) or in progress. |
|||
|
|||
The title should be brief but comprehensive, the description contains a link to the opened issue and the proposed solution. The pull request should contain tests whenever possible. Keep in mind that the bigger is the pull request, the longer it will take to review and merge. Try to break down large pull requests in smaller chunks that are easier to review and merge. |
|||
|
|||
|
|||
## Styleguide |
|||
|
|||
The code is auto formatted with [prettier](https://github.com/prettier/prettier) on any commit, therefore you can write in any style you prefer |
|||
|
|||
|
|||
## Expenses |
|||
|
|||
Anyone can file an expense (code, marketing, etc.) via our [Open Collective]. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed. |
|||
|
|||
Before submitting an expense contact core contributors via the current active chat room ([Discord](https://discord.gg/QAbgGXq)) and explain your intents |
|||
|
|||
|
|||
## Questions |
|||
|
|||
If you have any questions, create an [issue](https://github.com/artf/grapesjs/issues) (protip: do a quick search first to see if someone else didn't ask the same question before!). |
|||
|
|||
|
|||
|
|||
## Credits |
|||
|
|||
Thank you to all the people who have already contributed to GrapesJS! |
|||
<a href="/artf/grapesjs/graphs/contributors"><img src="https://opencollective.com/grapesjs/contributors.svg?width=890" /></a> |
|||
|
|||
|
|||
[Open Collective]: <https://opencollective.com/grapesjs> |
|||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
@ -0,0 +1,12 @@ |
|||
module.exports = require('./CssRuleView').extend({ |
|||
_createElement: function(tagName) { |
|||
return document.createTextNode(''); |
|||
}, |
|||
|
|||
render() { |
|||
const model = this.model; |
|||
const important = model.get('important'); |
|||
this.el.textContent = model.getDeclaration({ important }); |
|||
return this; |
|||
} |
|||
}); |
|||
@ -1,3 +1 @@ |
|||
var Backbone = require('backbone'); |
|||
|
|||
module.exports = Backbone.View.extend({}); |
|||
module.exports = require('backbone').View.extend({}); |
|||
|
|||
Loading…
Reference in new issue