forked from JeremyHeleine/Photo-Sphere-Viewer
-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Showing
187 changed files
with
26,188 additions
and
16,920 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,24 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-proposal-class-properties", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
[ | ||
"@babel/plugin-proposal-optional-chaining", | ||
{ | ||
"loose": true | ||
} | ||
] | ||
] | ||
} |
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,2 @@ | ||
last 2 versions | ||
ie >= 11 |
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,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-]+)$" | ||
] | ||
} | ||
] | ||
} | ||
} |
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
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
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,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 |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/node_modules | ||
/bower_components | ||
/.sass-cache | ||
/.idea | ||
/*.iml | ||
/doc | ||
/public | ||
/package-lock.json | ||
/yarn.lock | ||
/yarn-error.log | ||
/three-examples |
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 |
---|---|---|
@@ -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" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.