diff --git a/index.html b/index.html index 8d97a13..733aa3c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -vue-tribute
\ No newline at end of file +vue-tribute
\ No newline at end of file diff --git a/main.66a2a4fc.js b/main.66a2a4fc.js deleted file mode 100644 index 1f75eb4..0000000 --- a/main.66a2a4fc.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(s){function t(t){for(var e,n,r=t[0],o=t[1],i=t[2],u=0,a=[];u {\n this.tribute = new Tribute(this.options)\n this.tribute.attach($el)\n $el.tributeInstance = this.tribute\n }, 0)\n }\n }\n }\n },\n mounted() {\n if (typeof Tribute === \"undefined\") {\n throw new Error(\"[vue-tribute] cannot locate tributejs!\")\n }\n\n const $el = this.$slots.default[0].elm\n\n this.tribute = new Tribute(this.options)\n\n this.tribute.attach($el)\n\n $el.tributeInstance = this.tribute\n },\n beforeDestroy() {\n const $el = this.$slots.default[0].elm\n\n if (this.tribute) {\n this.tribute.detach($el)\n }\n },\n render(h) {\n return h(\n \"div\",\n {\n staticClass: \"v-tribute\"\n },\n this.$slots.default\n )\n }\n}\n\nif (typeof window !== \"undefined\" && window.Vue) {\n window.Vue.component(VueTribute.name, VueTribute)\n}\n\nexport default VueTribute\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--5-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--5-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=3e9b0919&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('h1',[_vm._v(\"vue-tribute Demo\")]),_vm._v(\" \"),_c('h3',[_vm._v(\"Simple text input\")]),_vm._v(\" \"),_c('vue-tribute',{attrs:{\"options\":_vm.options}},[_c('input',{ref:\"foo\",attrs:{\"type\":\"text\",\"placeholder\":\"@...\"},on:{\"tribute-no-match\":_vm.noMatchFound}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(\"Textarea\")]),_vm._v(\" \"),_c('vue-tribute',{attrs:{\"options\":_vm.options}},[_c('textarea',{attrs:{\"placeholder\":\"@...\"}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(\"contenteditable element\")]),_vm._v(\" \"),_c('vue-tribute',{attrs:{\"options\":_vm.options}},[_c('div',{staticClass:\"content-editable\",attrs:{\"contenteditable\":\"true\",\"placeholder\":\"@...\"}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.append}},[_vm._v(\"Append New Item\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue'\nimport App from './App'\n\nnew Vue({\n el: '#app',\n render(h) {\n return h(App)\n }\n})\n"],"sourceRoot":""} \ No newline at end of file diff --git a/main.e3e5c984.css b/main.e3e5c984.css new file mode 100644 index 0000000..d8aedb7 --- /dev/null +++ b/main.e3e5c984.css @@ -0,0 +1 @@ +*{box-sizing:border-box}body,html{height:100vh;width:100vw}body{background:linear-gradient(90deg,#fc466b,#3f5efb);display:flex;align-items:center;justify-content:center;color:#fff;font-family:Helvetica Neue,Arial,sans-serif}.scroll{width:100%;max-height:300px;overflow-y:auto;position:relative}.container{max-width:355px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 20px}.v-tribute{width:100%;position:relative}.content-editable,input[type=text]{appearance:none;border:none;background:#eee;padding:1rem;color:#666;width:100%;border-radius:.25rem;font-size:16px;outline:none}.content-editable:focus,input[type=text]:focus{background:#fff}.content-editable:empty:before{content:attr(placeholder);display:block;color:#666}textarea{appearance:none;border:none;background:#eee;padding:1rem;width:100%;border-radius:.25rem;font-size:16px;height:100px;outline:none}textarea:focus{background:#fff}.btn{appearance:none;border:none;cursor:pointer;margin:20px 0;background:#fc466b;color:#fff;font-size:16px;padding:8px 16px;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.18)}.btn:hover{background:#fc375f}.tribute-container{position:absolute;top:0;left:0;height:auto;max-height:300px;max-width:500px;overflow:auto;display:block;z-index:999999;border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.13)}.tribute-container ul{margin:0;margin-top:2px;padding:0;list-style:none;background:#fff;border-radius:4px;border:1px solid rgba(0,0,0,.13);background-clip:padding-box;overflow:hidden}.tribute-container li{color:#3f5efb;padding:5px 10px;cursor:pointer;font-size:14px}.tribute-container li.highlight,.tribute-container li:hover{background:#3f5efb;color:#fff}.tribute-container li span{font-weight:700}.tribute-container li.no-match{cursor:default}.tribute-container .menu-highlighted{font-weight:700} \ No newline at end of file diff --git a/main.e51285af.css b/main.e51285af.css deleted file mode 100644 index 5d67dfa..0000000 --- a/main.e51285af.css +++ /dev/null @@ -1 +0,0 @@ -*{box-sizing:border-box}body,html{height:100vh;width:100vw}body{background:linear-gradient(90deg,#fc466b,#3f5efb);display:flex;align-items:center;justify-content:center;color:#fff;font-family:Helvetica Neue,Arial,sans-serif}.scroll{width:100%;max-height:300px;overflow-y:auto;position:relative}.container{max-width:355px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 20px}.v-tribute{width:100%}.content-editable,input[type=text]{appearance:none;border:none;background:#eee;padding:1rem;color:#666;width:100%;border-radius:.25rem;font-size:16px;outline:none}.content-editable:focus,input[type=text]:focus{background:#fff}.content-editable:empty:before{content:attr(placeholder);display:block;color:#666}textarea{appearance:none;border:none;background:#eee;padding:1rem;width:100%;border-radius:.25rem;font-size:16px;height:100px;outline:none}textarea:focus{background:#fff}.btn{appearance:none;border:none;cursor:pointer;margin:20px 0;background:#fc466b;color:#fff;font-size:16px;padding:8px 16px;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.18)}.btn:hover{background:#fc375f}.tribute-container{position:absolute;top:0;left:0;height:auto;max-height:300px;max-width:500px;overflow:auto;display:block;z-index:999999;border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.13)}.tribute-container ul{margin:0;margin-top:2px;padding:0;list-style:none;background:#fff;border-radius:4px;border:1px solid rgba(0,0,0,.13);background-clip:padding-box;overflow:hidden}.tribute-container li{color:#3f5efb;padding:5px 10px;cursor:pointer;font-size:14px}.tribute-container li.highlight,.tribute-container li:hover{background:#3f5efb;color:#fff}.tribute-container li span{font-weight:700}.tribute-container li.no-match{cursor:default}.tribute-container .menu-highlighted{font-weight:700} \ No newline at end of file diff --git a/main.ecedd4b0.js b/main.ecedd4b0.js new file mode 100644 index 0000000..2f6818b --- /dev/null +++ b/main.ecedd4b0.js @@ -0,0 +1,2 @@ +!function(s){function t(t){for(var e,n,r=t[0],o=t[1],i=t[2],u=0,a=[];u {\n var $el = this.$slots.default[0].elm;\n this.tribute.detach($el);\n\n setTimeout( () => {\n $el = this.$slots.default[0].elm;\n this.tribute = new Tribute(this.options);\n this.tribute.attach($el);\n $el.tributeInstance = this.tribute;\n }, 0);\n }, 0);\n }\n }\n }\n },\n mounted() {\n if (typeof Tribute === \"undefined\") {\n throw new Error(\"[vue-tribute] cannot locate tributejs!\")\n }\n\n const $el = this.$slots.default[0].elm\n\n this.tribute = new Tribute(this.options)\n\n this.tribute.attach($el)\n\n $el.tributeInstance = this.tribute\n },\n beforeDestroy() {\n const $el = this.$slots.default[0].elm\n\n if (this.tribute) {\n this.tribute.detach($el)\n }\n },\n render(h) {\n return h(\n \"div\",\n {\n staticClass: \"v-tribute\"\n },\n this.$slots.default\n )\n }\n}\n\nif (typeof window !== \"undefined\" && window.Vue) {\n window.Vue.component(VueTribute.name, VueTribute)\n}\n\nexport default VueTribute\n","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--5-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--5-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=c85d2b7c&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('h1',[_vm._v(\"vue-tribute Demo\")]),_vm._v(\" \"),_c('h3',[_vm._v(\"Simple text input\")]),_vm._v(\" \"),_c('vue-tribute',{attrs:{\"options\":_vm.options}},[_c('input',{ref:\"foo\",attrs:{\"type\":\"text\",\"placeholder\":\"@...\"},on:{\"tribute-no-match\":_vm.noMatchFound}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(\"Textarea\")]),_vm._v(\" \"),_c('vue-tribute',{attrs:{\"options\":_vm.options}},[_c('textarea',{attrs:{\"placeholder\":\"@...\"}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('h3',[_vm._v(\"contenteditable element\")]),_vm._v(\" \"),_c('vue-tribute',{attrs:{\"options\":_vm.options}},[_c('div',{staticClass:\"content-editable\",attrs:{\"contenteditable\":\"true\",\"placeholder\":\"@...\"}})]),_vm._v(\" \"),_c('br'),_vm._v(\" \"),_c('button',{staticClass:\"btn\",on:{\"click\":_vm.append}},[_vm._v(\"Append New Item\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue'\nimport App from './App'\n\nnew Vue({\n el: '#app',\n render(h) {\n return h(App)\n }\n})\n"],"sourceRoot":""} \ No newline at end of file