Skip to content

Commit

Permalink
publishing extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Oros committed Jun 28, 2019
1 parent bc67bf6 commit d79df00
Show file tree
Hide file tree
Showing 139 changed files with 7,027 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 Chrome versions"]
},
"useBuiltIns": true,
"debug": false
}]
],
"ignore": ["node_modules"]
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CWD=`dirname $0:A`

alias mocli="${CWD}/mocli.sh"
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/node_modules/*
dist/*
packages/*

73 changes: 73 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/**
* Check http://eslint.org/docs/rules/ to see what rules are enabled due to 'eslint:recommended'
* and what rules can be auto-fixed
*/
{
"env": {
"es6": true,
"node": true,
"jasmine": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"curly": "error",
"camelcase": [
"error",
{
"properties": "never"
}
],
"no-else-return": "warn",
"keyword-spacing": "warn",
"comma-spacing": "warn",
"array-bracket-spacing": "warn",
"arrow-spacing": "warn",
"block-spacing": "warn",
"computed-property-spacing": "warn",
"generator-star-spacing": ["warn", { "before": true, "after": true }],
"key-spacing": "warn",
"no-console": "off",
"require-atomic-updates": 0,
"eqeqeq": ["off" /*,"smart"*/ ]
},
"plugins": [
"jasmine"
],
"globals": {
"_gaq": true,
"alert": true,
"angular": true,
"Blob": true,
"chrome": true,
"confirm": true,
"console": true,
"document": true,
"MCL": true,
"inject": true,
"window": true,
"XMLHttpRequest": true
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

.DS_Store
.idea
.vscode

node_modules
package-lock.json

dist
packages
coverage
app/scripts/common/config.js
app/config/local.json
app/config/dev.json
app/config/qa.json
app/config/prod.json
secrets.json

*.log
61 changes: 61 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Community Guidelines and Code of Conduct

We want to keep the OPSWAT communities awesome, and we need your help to keep it
that way. While we have specific guidelines for various tools (see links below),
in general, you should:

* **Be nice**: Be courteous, respectful and polite to fellow community members. No
offensive comments related to gender, gender identity or expression, sexual
orientation, disability, physical appearance, body size, race, religion; no
sexual images in public spaces, real or implied violence, intimidation,
oppression, stalking, following, harassing photography or recording, sustained
disruption of talks or other events, inappropriate physical contact, doxxing, or
unwelcome sexual attention will be tolerated. We like nice people way better
than mean ones!
* **Encourage diversity and participation**: Make everyone in our community feel
welcome, regardless of their background, and do everything possible to encourage
participation in our community.
* **Focus on constructive criticisms**: When offering suggestions, whether in online
discussions or as comments on a pull request, you should always use welcoming
and inclusive language. Be respectful of differing viewpoints and the fact that
others may not have the same experiences you do. Offer suggestions for
improvement, rather than focusing on mistakes. When others critique your work or
ideas, gracefully accept the criticisms and default to assuming good intentions.
* **Keep it legal**: Basically, don't get us in trouble. Share only content that you
own, do not share private or sensitive information, and don't break the law.
* **Stay on topic**: Keep conversation in a thread on topic, whether that's a pull
request or a Slack conversation or anything else. Make sure that you are posting
to the correct channel and remember that nobody likes spam.

## Guideline violations --- 3 strikes method

The point of this section is not to find opportunities to punish people, but we
do need a fair way to deal with people who do harm to our community. Extreme
violations of a threatening, abusive, destructive, or illegal nature will be
addressed immediately and are not subject to 3 strikes.

* First occurrence: We'll give you a friendly, but public, reminder that the
behavior is inappropriate according to our guidelines.
* Second occurrence: We'll send you a private message with a warning that any
additional violations will result in removal from the community.
* Third occurrence: Depending on the violation, we might need to delete or ban
your account.

Notes:

* Obvious spammers are banned on first occurrence. If we don't do this, we'll
have spam all over the place.
* Violations are forgiven after 6 months of good behavior, and we won't hold a grudge.
* People who are committing minor formatting / style infractions will get some
education, rather than hammering them in the 3 strikes process.

Contact [email protected] to report abuse or appeal violations.

## Credits

Credit to [01.org](https://01.org/community/participation-guidelines) and
[meego.com](http://wiki.meego.com/Community_guidelines), since they formed the
starting point for many of these guidelines.

The Event Code of Conduct is based on the [example policy from the Geek Feminism wiki](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment),
created by the Ada Initiative and other volunteers. The [PyCon Code of Conduct](https://github.com/python/pycon-code-of-conduct) also served as inspiration.
109 changes: 109 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# How to contribute

When contributing to our repositories, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

We want to keep it as easy as possible to contribute changes that
get things working in your environment. There are a few guidelines that we
need contributors to follow so that we can have a chance of keeping on
top of things.

## Getting Started

* Make sure you have a [GitHub account](https://github.com/signup/free).
* Make sure you have a [OPSWAT Portal account](https://my.opswat.com/hc/en-us/requests) when dealing with specific product integrations.
* Fork the repository on GitHub.
* For specific product questions contact the project maintainer or [support](https://my.opswat.com/hc/en-us/requests).

## Pull Request Process

1. Ensure any install or build dependencies are removed before the end of the layer when doing a
build.
2. Update the README.md with details of changes to the interface, this includes new environment
variables, exposed ports, useful file locations and container parameters.
3. Increase the version numbers in any examples files and the README.md to the new version that this
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.

## 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 [INSERT EMAIL ADDRESS]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and 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.

## Additional Resources

* [General GitHub documentation](https://help.github.com/)
* [GitHub pull request documentation](https://help.github.com/articles/creating-a-pull-request/)

### 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/
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM node:11-alpine

LABEL version="1.0"
LABEL description="Linux alpine with node:11 and chromium browser"

RUN set -x \
&& apk update \
&& apk upgrade \
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
&& echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
&& apk add --no-cache \
chromium@edge \
harfbuzz@edge \
nss@edge \
freetype@edge \
ttf-freefont@edge \
&& rm -rf /var/cache/* \
&& mkdir /var/cache/apk

WORKDIR /opt/mo

ENV CHROMIUM_BIN=/usr/bin/chromium-browser
Loading

0 comments on commit d79df00

Please sign in to comment.