vue-code-highlight
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -768,5 +768,5 @@ /* eslint-disable */ | ||
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=" pre[class*=\"language-\"][data-v-23ac0a9e] { display: inline-block; padding-right: 10em; padding-top: 3rem; border-radius: 6px; background-image: url(\"./assets/window-controls.svg\"); background-repeat: no-repeat; background-position: 16px 16px; box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75); } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })(); | ||
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=" pre[class*=\"language-\"][data-v-9d5e6bde] { display: inline-block; padding-right: 10em; padding-top: 3rem; border-radius: 6px; background-image: url(\"./assets/window-controls.svg\"); background-repeat: no-repeat; background-position: 16px 16px; box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75); } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })(); | ||
var vueHighlight = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',{ref:"code",class:_vm.languageClass},[_vm._v(" "),_c('code',[_vm._v("\n "),_vm._t("default"),_vm._v("\n ")],2),_vm._v("\n")])},staticRenderFns: [],_scopeId: 'data-v-23ac0a9e', | ||
var vueHighlight = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',{ref:"code",class:_vm.languageClass},[_vm._v(" "),_c('code',[_vm._v("\n "),_vm._t("default"),_vm._v("\n ")],2),_vm._v("\n")])},staticRenderFns: [],_scopeId: 'data-v-9d5e6bde', | ||
name: 'code-highlight', | ||
@@ -799,3 +799,2 @@ props: { | ||
function install(Vue) { | ||
console.log('Install'); | ||
if (install.installed) { return; } | ||
@@ -823,3 +822,3 @@ install.installed = true; | ||
export default vueHighlight; | ||
export { install }; | ||
export default install; | ||
export { vueHighlight }; |
@@ -771,5 +771,5 @@ var vueCodeHighlight = (function (exports) { | ||
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=" pre[class*=\"language-\"][data-v-23ac0a9e] { display: inline-block; padding-right: 10em; padding-top: 3rem; border-radius: 6px; background-image: url(\"./assets/window-controls.svg\"); background-repeat: no-repeat; background-position: 16px 16px; box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75); } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })(); | ||
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=" pre[class*=\"language-\"][data-v-9d5e6bde] { display: inline-block; padding-right: 10em; padding-top: 3rem; border-radius: 6px; background-image: url(\"./assets/window-controls.svg\"); background-repeat: no-repeat; background-position: 16px 16px; box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75); } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })(); | ||
var vueHighlight = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',{ref:"code",class:_vm.languageClass},[_vm._v(" "),_c('code',[_vm._v("\n "),_vm._t("default"),_vm._v("\n ")],2),_vm._v("\n")])},staticRenderFns: [],_scopeId: 'data-v-23ac0a9e', | ||
var vueHighlight = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',{ref:"code",class:_vm.languageClass},[_vm._v(" "),_c('code',[_vm._v("\n "),_vm._t("default"),_vm._v("\n ")],2),_vm._v("\n")])},staticRenderFns: [],_scopeId: 'data-v-9d5e6bde', | ||
name: 'code-highlight', | ||
@@ -802,3 +802,2 @@ props: { | ||
function install(Vue) { | ||
console.log('Install'); | ||
if (install.installed) { return; } | ||
@@ -826,4 +825,4 @@ install.installed = true; | ||
exports.install = install; | ||
exports.default = vueHighlight; | ||
exports.default = install; | ||
exports.vueHighlight = vueHighlight; | ||
@@ -830,0 +829,0 @@ return exports; |
@@ -774,5 +774,5 @@ (function (global, factory) { | ||
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=" pre[class*=\"language-\"][data-v-23ac0a9e] { display: inline-block; padding-right: 10em; padding-top: 3rem; border-radius: 6px; background-image: url(\"./assets/window-controls.svg\"); background-repeat: no-repeat; background-position: 16px 16px; box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75); } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })(); | ||
(function(){ if(typeof document !== 'undefined'){ var head=document.head||document.getElementsByTagName('head')[0], style=document.createElement('style'), css=" pre[class*=\"language-\"][data-v-9d5e6bde] { display: inline-block; padding-right: 10em; padding-top: 3rem; border-radius: 6px; background-image: url(\"./assets/window-controls.svg\"); background-repeat: no-repeat; background-position: 16px 16px; box-shadow: 5px 5px 15px 0px rgba(50, 50, 50, 0.75); } "; style.type='text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); } })(); | ||
var vueHighlight = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',{ref:"code",class:_vm.languageClass},[_vm._v(" "),_c('code',[_vm._v("\n "),_vm._t("default"),_vm._v("\n ")],2),_vm._v("\n")])},staticRenderFns: [],_scopeId: 'data-v-23ac0a9e', | ||
var vueHighlight = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('pre',{ref:"code",class:_vm.languageClass},[_vm._v(" "),_c('code',[_vm._v("\n "),_vm._t("default"),_vm._v("\n ")],2),_vm._v("\n")])},staticRenderFns: [],_scopeId: 'data-v-9d5e6bde', | ||
name: 'code-highlight', | ||
@@ -805,3 +805,2 @@ props: { | ||
function install(Vue) { | ||
console.log('Install'); | ||
if (install.installed) { return; } | ||
@@ -829,4 +828,4 @@ install.installed = true; | ||
exports.install = install; | ||
exports.default = vueHighlight; | ||
exports.default = install; | ||
exports.vueHighlight = vueHighlight; | ||
@@ -833,0 +832,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "vue-code-highlight", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"author": "Jan Bílek", | ||
@@ -5,0 +5,0 @@ "email": "honza@elision.design", |
// Import vue component | ||
import vueHighlight from './CodeHighlight.vue'; | ||
import component from './CodeHighlight.vue'; | ||
import registerDirective from './registerDirective'; | ||
// Declare install function executed by Vue.use() | ||
function install(Vue) { | ||
export default function install(Vue) { | ||
if (install.installed) return; | ||
install.installed = true; | ||
Vue.component('VueCodeHighlight', vueHighlight); | ||
Vue.component('VueCodeHighlight', component); | ||
Vue.directive('highlight', registerDirective); | ||
@@ -30,2 +30,2 @@ } | ||
// To allow use as module (npm/webpack/etc.) export component | ||
export default vueHighlight; | ||
export { component }; |
Sorry, the diff of this file is not supported yet
715450
4837