vue-match-media v1.0.3 (#930)

This commit is contained in:
nobody 2022-04-09 06:32:13 +02:00
parent 94513e839c
commit 00960db455
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
8 changed files with 23 additions and 0 deletions

View File

@ -1787,6 +1787,7 @@ https://cdn.jsdelivr.net/npm/videojs-seek-buttons@2.2.0/dist/videojs-seek-button
https://cdn.jsdelivr.net/npm/videojs-seek-buttons@2.2.0/dist/videojs-seek-buttons.min.js
https://cdn.jsdelivr.net/npm/vue@1.0.28/dist/vue.min.js
https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js
https://cdn.jsdelivr.net/npm/vue-match-media@1.0.3/dist/index.min.js
https://fonts.gstatic.com/s/materialicons/v126/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css
https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js

View File

@ -699,6 +699,8 @@ function create_url() {
url="$JSDELIVR/npm/$folder@$version/dist/css/$jfile"
elif [ "$folder" = "autocomplete.js" ] && [ "$version" != "0.38.1" ];then
url="$JSDELIVR/npm/@algolia/autocomplete-js@$version/dist/umd/index.production.min.js"
elif [ "$folder" = "vue-match-media" ];then
url="$JSDELIVR/npm/vue-match-media@$version/dist/index.min.js"
# --------------------------------------------------------------------------
else
if [ "$subfile" = "$jfile" ]; then

View File

@ -644,6 +644,7 @@ mappings.cdn = {
'videojs-seek-buttons/dist/videojs-seek-buttons.min.css': resources.videojsSeekButtonsCSS,
'videojs-seek-buttons/dist/videojs-seek-buttons.js': resources.videojsSeekButtonsJS,
'videojs-seek-buttons/dist/videojs-seek-buttons.min.js': resources.videojsSeekButtonsJS,
'vue-match-media@{version}/dist/index.': resources.vueMatchMedia,
'vue-resource@{version}/dist/vue-resource.': resources.vueResource,
'vue@{version}/dist/vue.min.js': resources.vueJs,
'vue@{version}/dist/vue.js': resources.vueJs,

View File

@ -1041,6 +1041,10 @@ var resources = {
'vueI18N': {
'path': 'resources/vue-i18n/{version}/vue-i18n.min.jsm'
},
// vue-match-media
'vueMatchMedia': {
'path': 'resources/vue-match-media/{version}/vue-match-media.min.jsm'
},
// vue-resource
'vueResource': {
'path': 'resources/vue-resource/{version}/vue-resource.min.jsm'

View File

@ -419,6 +419,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/vue/3.')) return '3.2.31';
if (type.startsWith('/vue-i18n/8.')) return '8.27.1';
if (type.startsWith('/vue-i18n/9.')) return '9.1.9';
if (type.startsWith('/vue-match-media/1.')) return '1.0.3';
if (type.startsWith('/vue-resource/1.')) return '1.5.3';
if (type.startsWith('/vuex/3.')) return '3.6.2';
if (type.startsWith('/vuex/4.')) return '4.0.2';
@ -438,6 +439,7 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'vue-match-media.min.jsm': 'vue-match-media',
'typeahead.bundle.min.jsm': 'corejs-typeahead',
'lightbox.min.jsm': 'Lightbox2',
'iziModal.min.jsm': 'iziModal',

View File

@ -36,6 +36,7 @@
<p>Added</p>
<ul>
<li>corejs-typeahead v1.3.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/923">#923</a>)</li>
<li>vue-match-media v1.0.3 (<a href="https://codeberg.org/nobody/LocalCDN/issues/930">#930</a>)</li>
</ul>
<p>Fixed</p>
<ul>

View File

@ -0,0 +1,4 @@
In this directory the file was renamed.
Original: index.min.js
Now: vue-match-media.min.jsm

View File

@ -0,0 +1,8 @@
/**
* Minified by jsDelivr using UglifyJS v3.4.4.
* Original file: /npm/vue-match-media@1.0.3/dist/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):t(e.Vue)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var h="VUE-MATCH-MEDIA-MQ",l="VUE-MATCH-MEDIA-MQUERIES";e.use(function(d,e){Object.defineProperty(d.prototype,"$mq",{get:function(){return this[h]}}),d.mixin({beforeCreate:function(){var r=this,e=this.$options.mq&&this.$options.mq.config&&this.$options.mq.config.isolated,t=this===this.$root,o=this.$parent&&this.$parent[l],n=e||t||!o?[]:Object.keys(o);if(this.$options.mq){this[l]={};var i=new Set(n.concat(Object.keys(this.$options.mq).filter(function(e){return"config"!==e}))),a=Array.from(i).reduce(function(t,n){var e=r.$options.mq[n],i=e?window.matchMedia(e):o[n];return i.addListener(function(e){t[n]=e.matches}),t[n]=i.matches,r[l][n]=i,t},{});Object.defineProperty(a,"all",{enumerable:!0,configurable:!0,get:function(){var t=this;return Object.keys(this).filter(function(e){return"all"!==e}).filter(function(e){return t[e]})}}),d.util.defineReactive(this,h,a)}else o&&(this[l]=o,d.util.defineReactive(this,h,this.$parent[h]))}}),d.directive("onmedia",{bind:function(e,t,n){var i=t.value,r=t.expression,o=t.arg,a=t.modifiers,s=n.context,f=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(a))),u=!f.length||a.any,c=o;if(i instanceof Function){if(c){if(u)return void d.util.warn('Error binding v-onmedia: a ":not" argument was passed without any modifiers',s);if("not"!==c)return void d.util.warn('Error binding v-onmedia: unknown argument "'+o+'" was passed',s)}Object.keys(s[l]).filter(function(t){return u||f.find(function(e){return c?e!==t:e===t})}).forEach(function(n){s.$watch("$mq."+n,function(e,t){i.call(s,n,e)}),s[h][n]&&i.call(s,n,!0,!0)})}else d.util.warn('Error binding v-onmedia: expression "'+r+"\" doesn't resolve to\n a component method, so there's nothing to call back on change",s)}})})});
//# sourceMappingURL=/sm/d00acccaefc18d73b6972481820eb5a86dd8604fbc1c279067e434f4fa66d154.map