Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Apr 25, 2020
2 parents 244ba61 + 2687029 commit 1f142da
Show file tree
Hide file tree
Showing 187 changed files with 26,188 additions and 16,920 deletions.
24 changes: 24 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true
}
]
],
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
[
"@babel/plugin-proposal-optional-chaining",
{
"loose": true
}
]
]
}
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
last 2 versions
ie >= 11
104 changes: 104 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"rules": {
"arrow-body-style": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"key-spacing": "off",
"no-bitwise": "off",
"no-else-return": "off",
"no-plusplus": "off",
"no-restricted-properties": "off",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"no-unused-expressions": "off",
"object-curly-newline": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"no-mixed-operators": "off",
"arrow-parens": [
"error",
"as-needed",
{
"requireForBlockBody": true
}
],
"max-len": [
"error",
150
],
"brace-style": [
"error",
"stroustrup"
],
"comma-dangle": [
"error",
{
"objects": "always-multiline",
"arrays": "always-multiline",
"functions": "never"
}
],
"padded-blocks": [
"error",
{
"classes": "always",
"blocks": "never",
"switches": "never"
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"object-shorthand": [
"error",
"consistent-as-needed"
],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true
}
],
"quote-props": [
"error",
"consistent-as-needed"
],
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"import/no-unresolved": [
"error",
{
"ignore": [
"^photo-sphere-viewer$",
"^photo-sphere-viewer\/plugins\/([a-z-]+)$"
]
}
]
}
}
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Any merge request should be created from and issued to the `dev` branch.
## Unit tests
There are very few unit tests because it's somehow difficult to setup, but please don't break them and create new ones if you can.

I won't merge any branch not passing the TravisCI build, including JShint/JSCS/SCSSlint compliance.
I won't merge any branch not passing the CI build.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Issues guidelines

- **Indicate your Photo-Sphere-Viewer, ThreeJS and web browser versions**
- **Indicate your Photo-Sphere-Viewer, three.js and web browser versions**
- Please search in the [documentation](http://photo-sphere-viewer.js.org) before asking.
- Any issue without enough details won't get any answer and will be closed.
- Help requests must be exhaustive, precise and come with some code explaining the need (use Markdown code highlight).
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: build
run: |
npm install
npm run compile
npm run test
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/node_modules
/bower_components
/.sass-cache
/.idea
/*.iml
/doc
/public
/package-lock.json
/yarn.lock
/yarn-error.log
/three-examples
31 changes: 0 additions & 31 deletions .jscsrc

This file was deleted.

43 changes: 13 additions & 30 deletions .jsdoc.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,23 @@
{
"source": {
"excludePattern": "PhotoSphereViewerCompat\\.js|data/constants\\.js"
},
"opts": {
"recurse": true,
"private": false,
"template": "node_modules/foodoc/template",
"readme": "build/jsdoc.md"
"template": "node_modules/@pixi/jsdoc-template",
"readme": "docs/jsdoc.md"
},
"plugins": [
"plugins/markdown"
"plugins/markdown",
"@pixi/jsdoc-template/plugins/es6-fix"
],
"templates": {
"systemName": "Photo Sphere Viewer API",
"systemSummary": "A JavaScript library to display Photo Sphere panoramas",
"favicon": "build/jsdoc.png",
"systemColor": "#1C9F72",
"copyright": "Licensed under MIT License, documentation under CC BY 3.0.",
"includeDate": false,
"inverseNav": false,
"cleverLinks": true,
"sort": "longname, version, since",
"analytics": {
"ua": "UA-28192323-3",
"domain": "auto"
"applicationName": "Photo Sphere Viewer",
"googleAnalytics": "UA-28192323-3",
"meta": {
"title": "Photo Sphere Viewer API Documentation"
},
"navMembers": [
{"kind": "class", "title": "Classes", "summary": "All documented classes."},
{"kind": "external", "title": "Externals", "summary": "All documented external members."},
{"kind": "global", "title": "Globals", "summary": "All documented globals."},
{"kind": "mixin", "title": "Mixins", "summary": "All documented mixins."},
{"kind": "interface", "title": "Interfaces", "summary": "All documented interfaces."},
{"kind": "module", "title": "Components", "summary": "All documented components."},
{"kind": "event", "title": "Events", "summary": "All documented events."},
{"kind": "namespace", "title": "Namespaces", "summary": "All documented namespaces."},
{"kind": "tutorial", "title": "Tutorials", "summary": "All available tutorials."}
],
"scripts": [
"https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.0.1/trianglify.min.js",
"js/custom.js"
]
"favicon": "docs/.vuepress/public/favicon.png"
}
}
4 changes: 0 additions & 4 deletions .jshintrc

This file was deleted.

8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

13 changes: 0 additions & 13 deletions .sass-lint.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"extends": [
"stylelint-config-standard"
],
"plugins": [
"stylelint-scss"
],
"rules": {
"number-leading-zero": "never",
"max-empty-lines": 2,
"max-nesting-depth": 4,
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"at-rule-empty-line-before": null,
"at-rule-name-space-after": "always",
"block-closing-brace-newline-after": [
"always",
{
"ignoreAtRules": [
"if",
"else"
]
}
],
"scss/at-else-closing-brace-newline-after": "always-last-in-chain",
"scss/at-else-closing-brace-space-after": "always-intermediate",
"scss/at-else-empty-line-before": "never",
"scss/at-if-closing-brace-newline-after": "always-last-in-chain",
"scss/at-if-closing-brace-space-after": "always-intermediate",
"scss/at-function-parentheses-space-before": "never",
"scss/at-import-no-partial-leading-underscore": true,
"scss/at-mixin-argumentless-call-parentheses": "always",
"scss/at-mixin-parentheses-space-before": "never",
"scss/dollar-variable-colon-space-after": "always",
"scss/dollar-variable-colon-space-before": "never",
"scss/dollar-variable-default": [
true,
{
"ignore": "local"
}
],
"scss/media-feature-value-dollar-variable": "always",
"scss/operator-no-newline-after": true,
"scss/operator-no-newline-before": true,
"scss/operator-no-unspaced": true,
"scss/no-duplicate-dollar-variables": true,
"scss/at-extend-no-missing-placeholder": true
}
}
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 1f142da

Please sign in to comment.