Skip to content

Commit

Permalink
NPM package update
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp committed Oct 25, 2020
1 parent fe8453d commit 0338aa6
Show file tree
Hide file tree
Showing 13 changed files with 7,270 additions and 8,257 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
"extends": ["avidofood"],
};
extends: ['avidofood'],
};
2 changes: 1 addition & 1 deletion demo/public/js/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo/public/js/app.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.11
* (c) 2014-2019 Evan You
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
8 changes: 0 additions & 8 deletions dist/demo.html

This file was deleted.

349 changes: 200 additions & 149 deletions dist/index.common.js

Large diffs are not rendered by default.

349 changes: 200 additions & 149 deletions dist/index.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.umd.min.js

Large diffs are not rendered by default.

14,773 changes: 6,849 additions & 7,924 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-responsive-video-background-player",
"version": "1.1.2",
"version": "1.1.3",
"description": "Play your own videos in background responsively",
"main": "dist/index.common.js",
"unpkg": "dist/index.umd.min.js",
Expand Down Expand Up @@ -41,14 +41,14 @@
},
"license": "MIT",
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.3",
"@vue/cli-service": "^4.5.3",
"@vue/cli-plugin-babel": "^4.5.8",
"@vue/cli-service": "^4.5.8",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
"eslint-config-avidofood": "^1.1.0",
"laravel-mix": "^5.0.0",
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10"
"eslint": "^7.12.0",
"eslint-config-avidofood": "^2.0.2",
"laravel-mix": "^5.0.7",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12"
},
"dependencies": {}
}
10 changes: 3 additions & 7 deletions src/VideoBackground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
:poster="current.poster || poster"
/>


<video-player
ref="player"
:src="current.src"
Expand All @@ -24,7 +23,6 @@
@ended="$emit('ended')"
/>


<video-overlay
v-if="overlay"
:overlay="overlay"
Expand All @@ -36,12 +34,11 @@
</section>
</template>


<script>
import props from './core/props';
import VideoPlayer from './components/VideoPlayer';
import VideoPoster from './components/VideoPoster';
import VideoOverlay from './components/VideoOverlay';
import VideoPlayer from './components/VideoPlayer.vue';
import VideoPoster from './components/VideoPoster.vue';
import VideoOverlay from './components/VideoOverlay.vue';
import resize from './core/resize';
Expand All @@ -68,7 +65,6 @@ export default {
};
</script>


<style scoped>
.vue-responsive-videobg{
background: none;
Expand Down
5 changes: 2 additions & 3 deletions src/components/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
</transition>
</template>


<script>
import props from '../core/playerProps';
Expand Down Expand Up @@ -82,7 +81,8 @@ export default {
},
videoReady() {
// Unfortunately we have the iOS bug, that we need to set autoplay always to true.
// That means we need to first pause the video, and later check if we want to autoplay or not
// That means we need to first pause the video,
// and later check if we want to autoplay or not
this.pause();
this.$emit('ready');
},
Expand All @@ -107,7 +107,6 @@ export default {
};
</script>


<style scoped>
.video-wrapper{
display: flex;
Expand Down
1 change: 0 additions & 1 deletion src/core/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const containsProp = (array, propName) => {
return false;
};


const isObject = (obj) => obj != null && obj.constructor.name === 'Object';

const exists = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import component from './VideoBackground';
import component from './VideoBackground.vue';

export const Plugin = {
install(Vue) {
Vue.component('video-background', component);
Vue.component('VideoBackground', component);
},
};

Expand Down

0 comments on commit 0338aa6

Please sign in to comment.