Contribute
ππ First off, thanks for taking the time to contribute! ππ
Xplorer is currently under development. We are welcoming contributors to collaborate on Xplorer.
Get involved#
There are many ways to contribute to Xplorer, and many of them do not involve writing any code. Here are few ideas to get started:
- Start using Xplorer! Go trough the Tutorial guides. Does anything work as expected? If not, we're always looking for improvements. Let us know by opening an issue.
- Look through the Xplorer issues. If you find an issue you would like to fix, open a pull request. Issues tagged as good first issue are a good place to get started.
- Help us making the docs better. File an issue if you find anything that is confusing, any grammatical error, or can be improved.
- Take a look at the GitHub Discussion and give your opinion into a discussion or consider opening a pull request if you see something you want to work on.
Contributions are very welcome!
Our development process#
Xplorer uses GitHub as its source of truth. The core team will be working directly there. All changes will be public from the beginning.
Reporting new issues/bugs.#
When opening a new issue, always make sure to fill out the issue template. We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue.
- One issue, one bug: Please report a single bug per issue.
- Provide reproduction steps: List all the steps necessary to reproduce the issue. The person reading your bug report should be able to follow these steps to reproduce your issue with minimal effort.
Feature Request#
We use GitHub Discussion to track ideas from users. Suggest a new feature here! Great Feature Requests tend to have:
- A quick idea summary.
- What & why you wanted to add the specific feature.
- Additional references like images, links of resources about the feature, etc.
Working on Xplorer code#
Prerequisite#
- node js
- git
- yarn
- gcc compiler
- Code Editor, recommended vscode
Installation#
After cloning the repository, run
yarnin the root of the repository and runyarnin thedocsfolder (if you want to working on Xplorer Docs).To start Xplorer locally, run
yarn startin the root of the repository.To start a local development server serving the Docusaurus docs, go into
docsdirectory and runyarn start
Semantic commit messages#
See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
Example#
feat: allow overriding of webpack config^--^ ^------------^| || +-> Summary in present tense.|+-------> Type: chore, docs, feat, fix, refactor, style, or test.the various types of commits:
feat: new feature for the userfix: bug fix for the userdocs: changes to the documentationstyle: formatting, missing semi colons, etc.refactor: refactoring production code, eg. renaming a variabletest: adding missing tests, refactoring tests.chore: updating grunt tasks etc
Use lower case not title case!
Code Structure#
.βββ build // Web Assembly buildsβββ docs // Xplorer documentation sourceβββ icons // Icon sources for building xplorerβββ lib // Library needed for xplorer appβ βββ node-disk-info // Detect user's node diskβ βββ tilt // Tilt effect of cardβ βββ wasm // C/C++ programs for wasmβββ src // Source code of the Xplorerβ βββ Components // Components of Xplorerβ βββ config // JSON files of user preferencesβ βββ Functions // Functions that frequently being calledβ β βββ DOM // Functions that change DOM propertyβ β βββ Files // Functions to deal with fileβ β βββ Logs // Log messagesβ β βββ Math // Math functionsβ β βββ preview // Functions to show preview of a fileβ β βββ Tab // Functions to handle with tabβ β βββ Theme // Functions that change Xplorer themeβ βββ icon // Icon used inside Xplorerβ β βββ contextmenu // Icon for context menu's menuβ β βββ extension // Icon for an extension of a fileβ β βββ folder // Icon for a folderβ β βββ settings // Icon for settingsβ β βββ sidebar // Icon for the sidebarβ βββ Languages // Multilingual resources for Xplorerβ βββ public // Basic HTML and CSS filesβββ test // Testing codeWorking on Xplorer docs#
Xplorer documentation website is built using Docusaurus 2, and its code is located is located at docs folder.
Prerequisite#
Installation#
After cloning the repository, run yarn in the docs folder (you can go into the docs folder by running cd docs command).
Local development#
- Run
yarn startcommand in thedocsfolder. - Edit some markdown texts in the
docsfolder and the website will be hot reloaded.
Pull requests#
Your first pull request.#
So you have decided to contribute code back to upstream by opening a pull request. You've invested a good chunk of time, and we appreciate it. We will do our best to work with you and get the PR looked at.
Working on your first Pull Request? You can learn how from this free video series:
How to Contribute to an Open Source Project on GitHub
We have a list of beginner friendly issues to help you get your feet wet in the DXplorer codebase and familiar with our contribution process. This is a great place to get started.
Proposing a change#
If you would like to request a new feature or enchancement but are not yet thninking about opening a pull request, you can also open an discussion and others will code it!
If you intend to fixing a bug, please discuss it through Issues before submitting a pull request.
If you intend to add a new feature, please discuss it through GitHub Discussion to avoid multiple people working on a same feature request.
Sending a Pull Request#
make sure the PR does only one thing, otherwise please split it. It is recommended to follow this commit message style.
- Fork the repository and create your branch from
master. - Make changes and ensure your commit message is understandable.
- Open a PR and ensure to describe your pull request clearly.
Working on Xplorer resources#
Locales#
We host our locales on the crowdin. To translate it, please follow these steps:
- SIgn up on Crowdin and Join our project here.
- Make sure your locale exists there, if it does not exist, leave a comment in this discussion and I'll add the language option :)
- Get familiar with the Crowdin translation UI, as you will need to use it to translate JSON and Markdown files
- Translate the content!
Priority Files to translate on Crowdin#
src/Localesfilesdocs/docsfilesdocs/i18n/enfilesdocs/communityfiles
Production#
Once the files on src/Locales have been translated for more than 80%, we will add it into Xplorer app, and for the docs, we will add it into production once the translation looks good!
Please comment here if you have any questions!
Files Icon#
Files icons are available on src/icon. You can add an icon by doing these steps:
- Paste the new icon in
src/icon - Edit value of
src/config/icon.json
File Type library#
Files type library is available on src/config/type.json.
You can add type of a file extension by adding value on the file.