-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 955bbf9
Showing
94 changed files
with
20,872 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
doc/**/*.js | ||
doc/*.js | ||
node_modules/**/*.js | ||
test/* | ||
plugin-onion.js |
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,79 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"es6": true | ||
}, | ||
"globals": {}, | ||
"rules": { | ||
"no-bitwise": 0, | ||
"camelcase": 0, | ||
"curly": 2, | ||
"eqeqeq": 2, | ||
"no-extend-native": 2, | ||
"wrap-iife": [ | ||
2, | ||
"any" | ||
], | ||
"indent": [ | ||
2, | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"no-use-before-define": [ | ||
2, | ||
{ | ||
"functions": false | ||
} | ||
], | ||
"new-cap": 0, | ||
"no-caller": 2, | ||
"no-empty": 2, | ||
"no-new": 2, | ||
"quotes": [ | ||
2, | ||
"single" | ||
], | ||
"strict": [ | ||
2, | ||
"global" | ||
], | ||
"no-undef": 2, | ||
"no-unused-vars": 2, | ||
"max-params": [ | ||
2, | ||
4 | ||
], | ||
"max-statements": [ | ||
2, | ||
20 | ||
], | ||
"complexity": [ | ||
2, | ||
8 | ||
], | ||
"max-depth": [ | ||
2, | ||
3 | ||
], | ||
"max-len": [ | ||
2, | ||
{ | ||
"code": 80, | ||
"ignoreComments": true | ||
} | ||
], | ||
"no-multi-str": 2, | ||
"keyword-spacing": [2, { | ||
"after": true, | ||
"before": true, | ||
"overrides": { | ||
"function": { | ||
"after": false | ||
} | ||
} | ||
}], | ||
"brace-style": [2, "1tbs"] | ||
} | ||
} |
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 @@ | ||
node_modules |
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,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 [email protected]. 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/ |
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,48 @@ | ||
Contributing | ||
============ | ||
|
||
This document outlines general patterns and conventions for contributing | ||
to the project. **For in-depth documentation on Kadence, | ||
[read the documentation](doc).** | ||
|
||
Coding Style | ||
------------ | ||
|
||
Kadence adheres to | ||
[Felix's Node.js Style Guide](https://github.com/felixge/node-style-guide). | ||
|
||
Test Coverage | ||
------------- | ||
|
||
At the time of writing, Kad has near complete code coverage through | ||
its test suite. It is important to never decrease coverage, so be sure to | ||
include tests for any new code. | ||
|
||
You can run the coverage report with: | ||
|
||
``` | ||
npm run coverage | ||
``` | ||
|
||
Linting | ||
------- | ||
|
||
To help maintain consistent expectations for code quality and enforcing these | ||
conventions, there is an included `.eslintrc` file. Most editors support using | ||
this to alert you of offending code in real time but, if your editor does not, | ||
you can run the linter with: | ||
|
||
``` | ||
npm run linter | ||
``` | ||
|
||
Alternatively, the linter will run as part of the test suite as well, which can | ||
be executed with: | ||
|
||
``` | ||
npm test | ||
``` | ||
|
||
--- | ||
|
||
Have fun and be excellent! |
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,21 @@ | ||
FROM debian:buster | ||
LABEL maintainer "[email protected]" | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install wget apt-transport-https gnupg curl libssl-dev git python build-essential tor | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs | ||
ENV GRANAX_USE_SYSTEM_TOR="1" | ||
RUN git clone https://github.com/tactcicalchihuahua/kadence /root/kadence; \ | ||
cd /root/kadence; \ | ||
git fetch --tags; \ | ||
git checkout $(git describe --tags `git rev-list --tags --max-count=1`); \ | ||
cd /root/kadence && npm install --unsafe-perm --production | ||
VOLUME ["/root/.config/kadence"] | ||
EXPOSE 5274 | ||
EXPOSE 5275 | ||
ENV kadence_NodeListenAddress="0.0.0.0" | ||
ENV kadence_ControlSockEnabled="0" | ||
ENV kadence_ControlPortEnabled="1" | ||
ENTRYPOINT ["/root/kadence/bin/kadence.js"] | ||
CMD [] |
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,20 @@ | ||
FROM debian:buster | ||
LABEL maintainer "[email protected]" | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install wget apt-transport-https gnupg curl libssl-dev git python build-essential tor | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs | ||
ENV GRANAX_USE_SYSTEM_TOR="1" | ||
RUN git clone https://github.com/tacticalchihuahua/kadence /root/kadence; \ | ||
cd /root/kadence && npm install --unsafe-perm --production | ||
VOLUME ["/root/.config/kadence"] | ||
EXPOSE 5274 | ||
EXPOSE 5275 | ||
ENV kadence_NodeListenAddress="0.0.0.0" | ||
ENV kadence_ControlSockEnabled="0" | ||
ENV kadence_ControlPortEnabled="1" | ||
ENV kadence_TestNetworkEnabled="1" | ||
ENV kadence_DaemonPidFilePath="/tmp/kadence.pid" | ||
ENTRYPOINT ["/root/kadence/bin/kadence.js"] | ||
CMD [] |
Oops, something went wrong.