Skip to content

Commit

Permalink
Merge pull request #15 from openworm/development
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
tarelli authored May 13, 2019
2 parents 7a2127f + 17de580 commit 5e29e49
Show file tree
Hide file tree
Showing 497 changed files with 98,793 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*min.js
114 changes: 114 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/**
|--------------------------------------------------
| sudo npm install -g eslint babel-eslint
|--------------------------------------------------
*/
module.exports = {
extends: [
"eslint:recommended",
],
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
jquery: true,
amd: true,
mocha: true,
jasmine: true,
phantomjs: true,
worker: true,
jest: true
},
parser: "babel-eslint",
parserOptions: {
"sourceType": "module", // import export syntax
"ecmaVersion": 2017 // async await syntax
},
rules: { // 0: allow, 1: warning, 2: error
"no-tabs": 2, // no tabs in code
"no-empty": 0,
'no-console': 0,
"curly": 2,
"no-global-assign": 0, // allow global variables to be modified
"no-constant-condition": 0, // allow: while(true) { ... }
"no-control-regex": 0, // allow regex
"no-redeclare": 0, // allow redeclare a variable
"no-inner-declarations": 0, // allow define functions inside functions
"indent": ["error", 2, {
"ObjectExpression": "first",
"ArrayExpression": "first"
}], // 2 spaces for indentation and consistent alignment
"arrow-spacing": 2,
"no-unused-vars": 0,
"keyword-spacing": 2,
"no-useless-escape": 0,
"brace-style": 2, // enforce open bracket in same line
"multiline-comment-style": [2, "starred-block"], // enforce commented block style
"object-curly-newline": [2, { "multiline": true }], // enforce obj items identation
"operator-linebreak": [2, "before"], // break operator to new line
"space-infix-ops": 2,
"no-multi-spaces": 2,
"no-unneeded-ternary": 2,
"no-multiple-empty-lines": 2,
"spaced-comment": [2, "always"],
"arrow-parens": [2, "as-needed"],
"arrow-body-style": [2, "as-needed"],
"object-curly-spacing": [2, "always"],
"template-curly-spacing": [2, "never"],
"space-before-function-paren": [1, "always"]
},
globals: {
"G": true,
"root": true,
"casper": true,
"message": true,
"endpoint": true,
"GEPPETTO": true,
"gepetto-client": true,
"Project": true,
"Instances": true,
"IPython": true,
"GEPPETTO_CONFIGURATION": true,
"MozWebSocket": true,
"panelComponent": true,
"Detector": true,
"THREE": true,
"VARS": true,
"Stats": true,
"geometry": true,
"aabbMin": true,
"aabbMax": true,
"bb": true,
"ClipboardModal": true,
"Store": true,
"olark": true,
"google": true,
"path": true,
"CodeMirror": true,
"Connectivity": true,
"π": true,
"τ": true,
"halfπ": true,
"dr": true,
"Model": true,
"Plot1": true,
"PIXI": true,
"stackViewerRequest": true,
"_": true,
"labelsInTV": true,
"Backbone": true,
"registeredEvents": true,
"Handlebars": true,
"ActiveXObject": true,
"jstestdriver": true,
"TestCase": true,
"EMBEDDED": true,
"EMBEDDERURL": true,
"handleRequest": true,
"_gaq": true,
"Canvas1": true,
"clientX": true,
"clientY": true,
}
};
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
*.DS_Store
node_modules/
node/

# Editor byproducts
.idea/
.vscode/
*.swp
/target
/bin
.idea/
*.iml
*~
.imdone/
/.externalToolBuilders/

#WormSim specific stuff
*.css-e
*.less-e
js/components/dev/customrenderer/
js/components/dev/wormsimbuttonbar/
js/components/dev/wormsimlogo/
js/components/dev/wormsimsimulationcontrols/
js/components/dev/wormsimtutorialhandler/
js/components/wormsim.*

#other local directories that may get installed
org.geppetto.core/
org.geppetto.model/
org.geppetto.simulation/
/libjhdf5.jnilib

# redis cache files
*.rdb
2 changes: 2 additions & 0 deletions PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [ ] Add coverage for whatever new functionality, to a JUnit test if it's backend, to a Casper Test if it's frontend
- [ ] Make sure both push and pr travis builds are passing before asking for a review
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[![Build Status](https://travis-ci.org/openworm/org.geppetto.frontend.png?branch=master)](https://travis-ci.org/openworm/org.geppetto.frontend)

<p align="center">
<img src="https://github.com/tarelli/bucket/blob/master/geppetto%20logo.png?raw=true" alt="Geppetto logo"/>
</p>

# Geppetto Client

This is the client library of Geppetto which includes all the frontend components and widgets, the WebSocket API implementation to talk to the backend and all the infrastructure to manage the Geppetto Model in Javascript.

For information about how this fits into [Geppetto](http://www.geppetto.org/) refer to the umbrella project [org.geppetto](https://github.com/openworm/org.geppetto) on GitHub.
6 changes: 6 additions & 0 deletions js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/1.1.bundle.js
/2.2.bundle.js
/3.3.bundle.js
/admin.bundle.js
/main.bundle.js
/tests.bundle.js
Loading

0 comments on commit 5e29e49

Please sign in to comment.