Frontend: Actually use the correct build.
This commit is contained in:
parent
c313c15d73
commit
b9e333c307
36 changed files with 763 additions and 763 deletions
File diff suppressed because one or more lines are too long
1
priv/static/static/css/main.CF7uYwoC.css
Normal file
1
priv/static/static/css/main.CF7uYwoC.css
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
.async-component-error{display:-webkit-box;display:flex;height:100%;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}.async-component-error .btn{margin:.5em;padding:.5em 2em}.settings-modal{overflow:hidden}.settings-modal h4{margin-bottom:.5em}.settings-modal .setting-list,.settings-modal .option-list{list-style-type:none;padding-left:2em}.settings-modal .setting-list .btn:not(.dropdown-button),.settings-modal .option-list .btn:not(.dropdown-button){padding:0 2em}.settings-modal .setting-list li,.settings-modal .option-list li{margin-bottom:.5em}.settings-modal .setting-list .suboptions,.settings-modal .option-list .suboptions{margin-top:.3em}.settings-modal .setting-list.two-column,.settings-modal .option-list.two-column{-webkit-column-count:2;column-count:2}.settings-modal .setting-list.two-column>li,.settings-modal .option-list.two-column>li{-webkit-column-break-inside:avoid;break-inside:avoid}.settings-modal .setting-description{margin-top:.2em;margin-bottom:2em;font-size:70%}.settings-modal .settings-modal-panel{overflow:hidden;-webkit-transition:-webkit-transform;transition:-webkit-transform;transition:transform;transition:transform,-webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-duration:.3s;transition-duration:.3s;width:1000px;max-width:90vw;height:90vh}@media all and (width <= 800px){.settings-modal .settings-modal-panel{max-width:100vw;height:100%}}.settings-modal .settings-modal-panel>.panel-body{height:100%;overflow-y:hidden}.settings-modal .settings-modal-panel>.panel-body .btn{min-height:2em}.settings-modal .settings-footer{display:-webkit-box;display:flex;flex-wrap:wrap;line-height:2}.settings-modal .settings-footer>*{margin-right:.5em}.settings-modal .settings-footer .extra-content{display:-webkit-box;display:flex;-webkit-box-flex:1;flex-grow:1}.settings-modal.-mobile .setting-list,.settings-modal.-mobile .option-list{padding-left:.25em}.settings-modal.-mobile .setting-list>li,.settings-modal.-mobile .option-list>li{margin:1em 0;line-height:1.5em;vertical-align:middle}.settings-modal.-mobile .setting-list.two-column,.settings-modal.-mobile .option-list.two-column{-webkit-column-count:1;column-count:1}.settings-modal.peek .settings-modal-panel{-webkit-transform:translateY(calc((100vh - 100%)/2 + 100% - 50px));transform:translateY(calc((100vh - 100%)/2 + 100% - 50px))}@media all and (width <= 800px){.settings-modal.peek .settings-modal-panel{-webkit-transform:translateY(calc(100% - 50px));transform:translateY(calc(100% - 50px))}}
|
||||
1
priv/static/static/css/settings_modal.dQ5YFZGx.css
Normal file
1
priv/static/static/css/settings_modal.dQ5YFZGx.css
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
.AttachmentSetting .attachment{display:block;width:100%;height:15em;margin-bottom:.5em}.AttachmentSetting .attachment-input{margin-left:1em;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:20em}.AttachmentSetting.-compact .attachment-input{-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:end;align-items:flex-end}.AttachmentSetting.-compact .attachment{-webkit-box-flex:0;flex:0;-webkit-box-ordinal-group:1;order:0;display:block;min-width:4em;height:4em;align-self:center;margin-bottom:0}.AttachmentSetting.-compact .control-field{-webkit-box-ordinal-group:2;order:1;min-width:12em;margin-left:.5em}.AttachmentSetting.-compact .control-upload{-webkit-box-ordinal-group:3;order:2;min-width:12em;padding:0 .5em}.AttachmentSetting .controls{margin-bottom:.5em}.AttachmentSetting .controls input,.AttachmentSetting .controls button{width:100%}.frontends-tab .cards-list{padding:0}.frontends-tab .relative{position:relative}.frontends-tab .overlay{position:absolute;background:var(--bg);z-index:2;opacity:.9;top:0;right:0;bottom:0;left:0}.frontends-tab dd{text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;max-width:10em}.emoji-tab-edit-popover{padding-left:.5em;padding-right:.5em;padding-bottom:.5em}.emoji-tab-edit-popover .emoji-tab-popover-new-upload{margin-bottom:2em}.emoji-tab-edit-popover .emoji{width:2.3em;height:2.3em}.emoji-tab-edit-popover .Select{display:inline-block}.emoji-tab-edit-popover h4{margin-bottom:1em;margin-top:1em}.emoji-tab .btn-group .btn:not(:first-child){margin-left:.5em}.emoji-tab .pack-info-wrapper{margin-top:1em}.emoji-tab .emoji-info-input{width:100%}.emoji-tab .emoji-data-input{width:40%;margin-left:.5em;margin-right:.5em}.emoji-tab .emoji{width:32px;height:32px}.emoji-tab .emoji-unsaved{box-shadow:0 3px 5px var(--cBlue)}.emoji-tab .emoji-list{display:-webkit-box;display:flex;flex-wrap:wrap;gap:1em}.emoji-tab-popover-button:not(:first-child){margin-left:.5em}.emoji-tab-popover-input{margin-bottom:.5em}.emoji-tab-popover-input label{display:block;margin-bottom:.5em}.emoji-tab-popover-input input{width:20em}.emoji-tab-popover-input .emoji-tab-popover-file{padding-top:3px}.emoji-tab-popover-input .warning{color:var(--cOrange)}.settings_tab-switcher{height:100%}.settings_tab-switcher .setting-item{border-bottom:2px solid var(--border);margin:1em 1em 1.4em;padding-bottom:1.4em}.settings_tab-switcher .setting-item>div,.settings_tab-switcher .setting-item>label{display:block;margin-bottom:.5em}.settings_tab-switcher .setting-item>div:last-child,.settings_tab-switcher .setting-item>label:last-child{margin-bottom:0}.settings_tab-switcher .setting-item .select-multiple{margin-top:.5em;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.settings_tab-switcher .setting-item .select-multiple .option-list{margin:.5em 0 0;padding-left:.5em}.settings_tab-switcher .setting-item:last-child{border-bottom:none;padding-bottom:0;margin-bottom:1em}.settings_tab-switcher .setting-item textarea{width:100%;max-width:100%;height:100px}.settings_tab-switcher .setting-item .unavailable,.settings_tab-switcher .setting-item .unavailable svg{color:var(--cRed)}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
.ModifiedIndicator{display:inline-block;position:relative}.modified-tooltip{margin:.5em 1em;min-width:10em;text-align:center}.DraftButtons{display:inline-block;position:relative}.DraftButtons .button-default{margin-left:.5em}.draft-tooltip{margin:.5em 1em;min-width:10em;text-align:center}
|
||||
1
priv/static/static/css/string_setting.CtukauKH.css
Normal file
1
priv/static/static/css/string_setting.CtukauKH.css
Normal file
|
|
@ -0,0 +1 @@
|
|||
.vertical-tab-switcher{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;container-type:inline-size}.vertical-tab-switcher>.tabs{-webkit-box-flex:0;flex:0 0 15em;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;overflow:hidden auto;white-space:nowrap;text-overflow:ellipsis;width:15em;min-width:15em;border-right:1px solid;border-right-color:var(--border);box-sizing:border-box}.vertical-tab-switcher>.tabs>.menu-item{padding:.5em 1em}.vertical-tab-switcher>.tabs>.menu-item .tab-icon{vertical-align:middle;margin-right:.75em}.vertical-tab-switcher>.contents .tab-content-label{box-sizing:border-box;margin:0;border-bottom:1px solid var(--border);display:none}.vertical-tab-switcher>.contents .tab-content-label button{box-sizing:border-box;padding:.5em}.vertical-tab-switcher>.contents .tab-slot-wrapper{-webkit-box-flex:1;flex:1 1 auto;height:100%;overflow-y:auto;display:grid;grid-template-columns:minmax(1em,1fr) minmax(-webkit-min-content,45em) minmax(1em,1fr);grid-template-columns:minmax(1em,1fr) minmax(min-content,45em) minmax(1em,1fr);grid-template-areas:". content .";-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.vertical-tab-switcher>.contents .tab-slot-wrapper .tab-content{grid-area:content}.vertical-tab-switcher>.contents .tab-slot-wrapper .tab-content.-full-width{grid-column:1/4}.vertical-tab-switcher>.contents .tab-slot-wrapper .tab-content.-full-height>*{height:100%}.vertical-tab-switcher>.contents .tab-content-wrapper{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;height:100%;-webkit-box-flex:1;flex:1 1 auto}.vertical-tab-switcher>.contents .tab-content-wrapper.-hidden{display:none}.vertical-tab-switcher.-mobile>.contents .tab-content-label{display:block}.vertical-tab-switcher.-mobile.-nav-contents>.contents{display:block;-webkit-box-flex:1;flex-grow:1;flex-shrink:1}.vertical-tab-switcher.-mobile.-nav-contents>.tabs{display:none;-webkit-box-flex:0;flex-grow:0;flex-shrink:1}.vertical-tab-switcher.-mobile.-nav-tabs>.tabs{display:block;-webkit-box-flex:1;flex-grow:1}.vertical-tab-switcher.-mobile.-nav-tabs>.contents{display:none;-webkit-box-flex:0;flex-grow:0;flex-shrink:1}.vertical-tab-switcher.-mobile .tab-slot-wrapper{grid-template-columns:0 minmax(-webkit-min-content,45em) 0;grid-template-columns:0 minmax(min-content,45em) 0}@supports (container-type: inline-size){.vertical-tab-switcher.-nav-contents>.contents,.vertical-tab-switcher.-nav-tabs>.contents,.vertical-tab-switcher.-mobile.-nav-contents>.contents,.vertical-tab-switcher.-mobile.-nav-tabs>.contents{display:block;-webkit-box-flex:1;flex-grow:1}.vertical-tab-switcher.-nav-contents>.tabs,.vertical-tab-switcher.-nav-tabs>.tabs,.vertical-tab-switcher.-mobile.-nav-contents>.tabs,.vertical-tab-switcher.-mobile.-nav-tabs>.tabs{display:block;-webkit-box-flex:0;flex-grow:0}@container (width < 50em){.vertical-tab-switcher>.contents .tab-content-label{display:block}.vertical-tab-switcher.-mobile>.contents .tab-content-label{display:block}.vertical-tab-switcher.-nav-contents>.contents,.vertical-tab-switcher.-mobile.-nav-contents>.contents{display:block;-webkit-box-flex:1;flex-grow:1}.vertical-tab-switcher.-nav-contents>.tabs,.vertical-tab-switcher.-mobile.-nav-contents>.tabs{display:none;-webkit-box-flex:0;flex-grow:0;flex-shrink:1}.vertical-tab-switcher.-nav-tabs>.tabs,.vertical-tab-switcher.-mobile.-nav-tabs>.tabs{display:block;-webkit-box-flex:1;flex-grow:1}.vertical-tab-switcher.-nav-tabs>.contents,.vertical-tab-switcher.-mobile.-nav-tabs>.contents{display:none;-webkit-box-flex:0;flex-grow:0;flex-shrink:1}}}.ModifiedIndicator{display:inline-block;position:relative}.modified-tooltip{margin:.5em 1em;min-width:10em;text-align:center}.DraftButtons{display:-webkit-inline-box;display:inline-flex;position:relative;gap:.5em;margin-top:.5em}.draft-tooltip{margin:.5em 1em;min-width:10em;text-align:center}.-mobile .ChoiceSetting.setting-item{display:block}.-mobile .ChoiceSetting.setting-item .setting-label{display:block;margin-bottom:.5em}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
696
priv/static/static/js/main.qxCxIqDs.js
Normal file
696
priv/static/static/js/main.qxCxIqDs.js
Normal file
File diff suppressed because one or more lines are too long
1
priv/static/static/js/main.qxCxIqDs.js.map
Normal file
1
priv/static/static/js/main.qxCxIqDs.js.map
Normal file
File diff suppressed because one or more lines are too long
3
priv/static/static/js/settings_modal.B74APXc5.js
Normal file
3
priv/static/static/js/settings_modal.B74APXc5.js
Normal file
File diff suppressed because one or more lines are too long
1
priv/static/static/js/settings_modal.B74APXc5.js.map
Normal file
1
priv/static/static/js/settings_modal.B74APXc5.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,2 +1,2 @@
|
|||
import{H as m,I as u,_,B as f,c as t,o as s,x as w,w as b,J as h,K as p,z as $,a as g}from"./main.C6Sfh6Ik.js";const k={components:{TabSwitcher:m},data(){return{meta:{stickers:[]},path:""}},computed:{pack(){return this.$store.state.instance.stickers||[]}},methods:{clear(){this.meta={stickers:[]}},pick(a,r){const i=this.$store;fetch(a).then(c=>{c.blob().then(l=>{const d=new File([l],r,{mimetype:"image/png"}),o=new FormData;o.append("file",d),u.uploadMedia({store:i,formData:o}).then(e=>{this.$emit("uploaded",e),this.clear()},e=>{console.warn("Can't attach sticker"),console.warn(e),this.$emit("upload-failed","default")})})})}}},v={class:"sticker-picker"},C=["image-tooltip","image"],y=["onClick"],B=["src"];function x(a,r,i,c,l,d){const o=f("tab-switcher");return s(),t("div",v,[w(o,{class:"tab-switcher","render-only-focused":!0,"scrollable-tabs":""},{default:b(()=>[(s(!0),t(h,null,p(a.pack,e=>(s(),t("div",{key:e.path,"image-tooltip":e.meta.title,image:e.path+e.meta.tabIcon,class:"sticker-picker-content"},[(s(!0),t(h,null,p(e.meta.stickers,n=>(s(),t("div",{key:n,class:"sticker",onClick:$(F=>a.pick(e.path+n,e.meta.title),["stop","prevent"])},[g("img",{src:e.path+n},null,8,B)],8,y))),128))],8,C))),128))]),_:1})])}const D=_(k,[["render",x]]);export{D as default};
|
||||
//# sourceMappingURL=sticker_picker.CkQqZARF.js.map
|
||||
import{H as m,I as u,_,B as f,c as t,o as s,x as w,w as b,J as h,K as p,z as $,a as g}from"./main.qxCxIqDs.js";const k={components:{TabSwitcher:m},data(){return{meta:{stickers:[]},path:""}},computed:{pack(){return this.$store.state.instance.stickers||[]}},methods:{clear(){this.meta={stickers:[]}},pick(a,r){const i=this.$store;fetch(a).then(c=>{c.blob().then(l=>{const d=new File([l],r,{mimetype:"image/png"}),o=new FormData;o.append("file",d),u.uploadMedia({store:i,formData:o}).then(e=>{this.$emit("uploaded",e),this.clear()},e=>{console.warn("Can't attach sticker"),console.warn(e),this.$emit("upload-failed","default")})})})}}},v={class:"sticker-picker"},C=["image-tooltip","image"],y=["onClick"],B=["src"];function x(a,r,i,c,l,d){const o=f("tab-switcher");return s(),t("div",v,[w(o,{class:"tab-switcher","render-only-focused":!0,"scrollable-tabs":""},{default:b(()=>[(s(!0),t(h,null,p(a.pack,e=>(s(),t("div",{key:e.path,"image-tooltip":e.meta.title,image:e.path+e.meta.tabIcon,class:"sticker-picker-content"},[(s(!0),t(h,null,p(e.meta.stickers,n=>(s(),t("div",{key:n,class:"sticker",onClick:$(F=>a.pick(e.path+n,e.meta.title),["stop","prevent"])},[g("img",{src:e.path+n},null,8,B)],8,y))),128))],8,C))),128))]),_:1})])}const D=_(k,[["render",x]]);export{D as default};
|
||||
//# sourceMappingURL=sticker_picker.B0j2YsOB.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"sticker_picker.CkQqZARF.js","sources":["../../../src/components/sticker_picker/sticker_picker.js?vue&type=script&src=true&lang.js","../../../src/components/sticker_picker/sticker_picker.vue"],"sourcesContent":["/* eslint-env browser */\nimport statusPosterService from '../../services/status_poster/status_poster.service.js'\nimport TabSwitcher from '../tab_switcher/tab_switcher.jsx'\n\nconst StickerPicker = {\n components: {\n TabSwitcher\n },\n data () {\n return {\n meta: {\n stickers: []\n },\n path: ''\n }\n },\n computed: {\n pack () {\n return this.$store.state.instance.stickers || []\n }\n },\n methods: {\n clear () {\n this.meta = {\n stickers: []\n }\n },\n pick (sticker, name) {\n const store = this.$store\n // TODO remove this workaround by finding a way to bypass reuploads\n fetch(sticker)\n .then((res) => {\n res.blob().then((blob) => {\n const file = new File([blob], name, { mimetype: 'image/png' })\n const formData = new FormData()\n formData.append('file', file)\n statusPosterService.uploadMedia({ store, formData })\n .then((fileData) => {\n this.$emit('uploaded', fileData)\n this.clear()\n }, (error) => {\n console.warn(\"Can't attach sticker\")\n console.warn(error)\n this.$emit('upload-failed', 'default')\n })\n })\n })\n }\n }\n}\n\nexport default StickerPicker\n","<template>\n <div\n class=\"sticker-picker\"\n >\n <tab-switcher\n class=\"tab-switcher\"\n :render-only-focused=\"true\"\n scrollable-tabs\n >\n <div\n v-for=\"stickerpack in pack\"\n :key=\"stickerpack.path\"\n :image-tooltip=\"stickerpack.meta.title\"\n :image=\"stickerpack.path + stickerpack.meta.tabIcon\"\n class=\"sticker-picker-content\"\n >\n <div\n v-for=\"sticker in stickerpack.meta.stickers\"\n :key=\"sticker\"\n class=\"sticker\"\n @click.stop.prevent=\"pick(stickerpack.path + sticker, stickerpack.meta.title)\"\n >\n <img\n :src=\"stickerpack.path + sticker\"\n >\n </div>\n </div>\n </tab-switcher>\n </div>\n</template>\n\n<script src=\"./sticker_picker.js\"></script>\n\n<style lang=\"scss\">\n.sticker-picker {\n width: 100%;\n\n .contents {\n min-height: 250px;\n\n .sticker-picker-content {\n display: flex;\n flex-wrap: wrap;\n padding: 0 4px;\n\n .sticker {\n display: flex;\n flex: 1 1 auto;\n margin: 4px;\n width: 56px;\n height: 56px;\n\n img {\n height: 100%;\n\n &:hover {\n filter: drop-shadow(0 0 5px var(--accent));\n }\n }\n }\n }\n }\n}\n\n</style>\n"],"names":["StickerPicker","TabSwitcher","sticker","name","store","res","blob","file","formData","statusPosterService","fileData","error","_hoisted_1","_openBlock","_createElementBlock","_createVNode","_component_tab_switcher","_Fragment","_renderList","_ctx","stickerpack","_withModifiers","$event","_createElementVNode"],"mappings":"+GAIA,MAAMA,EAAgB,CACpB,WAAY,CACV,YAAAC,CACD,EACD,MAAQ,CACN,MAAO,CACL,KAAM,CACJ,SAAU,CAAA,CACX,EACD,KAAM,EACZ,CACG,EACD,SAAU,CACR,MAAQ,CACN,OAAO,KAAK,OAAO,MAAM,SAAS,UAAY,CAAA,CACpD,CACG,EACD,QAAS,CACP,OAAS,CACP,KAAK,KAAO,CACV,SAAU,CAAA,CAClB,CACK,EACD,KAAMC,EAASC,EAAM,CACnB,MAAMC,EAAQ,KAAK,OAEnB,MAAMF,CAAO,EACV,KAAMG,GAAQ,CACbA,EAAI,KAAI,EAAG,KAAMC,GAAS,CACxB,MAAMC,EAAO,IAAI,KAAK,CAACD,CAAI,EAAGH,EAAM,CAAE,SAAU,WAAa,CAAA,EACvDK,EAAW,IAAI,SACrBA,EAAS,OAAO,OAAQD,CAAI,EAC5BE,EAAoB,YAAY,CAAE,MAAAL,EAAO,SAAAI,CAAU,CAAA,EAChD,KAAME,GAAa,CAClB,KAAK,MAAM,WAAYA,CAAQ,EAC/B,KAAK,MAAK,CACX,EAAGC,GAAU,CACZ,QAAQ,KAAK,sBAAsB,EACnC,QAAQ,KAAKA,CAAK,EAClB,KAAK,MAAM,gBAAiB,SAAS,CACtC,CAAA,CACJ,CAAA,CACF,CAAA,CACT,CACA,CACA,EC/CIC,EAAA,CAAA,MAAM,gBAAgB,wGADxB,OAAAC,EAAA,EAAAC,EA2BM,MA3BNF,EA2BM,CAxBJG,EAuBeC,EAAA,CAtBb,MAAM,eACL,sBAAqB,GACtB,kBAAA,eAGE,IAA2B,QAD7BF,EAiBMG,EAAA,KAAAC,EAhBkBC,EAAI,KAAnBC,QADTN,EAiBM,MAAA,CAfH,IAAKM,EAAY,KACjB,gBAAeA,EAAY,KAAK,MAChC,MAAOA,EAAY,KAAOA,EAAY,KAAK,QAC5C,MAAM,4BAENP,EAAA,EAAA,EAAAC,EASMG,SARcG,EAAY,KAAK,SAA5BlB,QADTY,EASM,MAAA,CAPH,IAAKZ,EACN,MAAM,UACL,QAAoBmB,EAAAC,GAAAH,EAAA,KAAKC,EAAY,KAAOlB,EAASkB,EAAY,KAAK,KAAK,EAAA,CAAA,OAAA,SAAA,CAAA,IAE5EG,EAEC,MAAA,CADE,IAAKH,EAAY,KAAOlB"}
|
||||
{"version":3,"file":"sticker_picker.B0j2YsOB.js","sources":["../../../src/components/sticker_picker/sticker_picker.js?vue&type=script&src=true&lang.js","../../../src/components/sticker_picker/sticker_picker.vue"],"sourcesContent":["/* eslint-env browser */\nimport statusPosterService from '../../services/status_poster/status_poster.service.js'\nimport TabSwitcher from '../tab_switcher/tab_switcher.jsx'\n\nconst StickerPicker = {\n components: {\n TabSwitcher\n },\n data () {\n return {\n meta: {\n stickers: []\n },\n path: ''\n }\n },\n computed: {\n pack () {\n return this.$store.state.instance.stickers || []\n }\n },\n methods: {\n clear () {\n this.meta = {\n stickers: []\n }\n },\n pick (sticker, name) {\n const store = this.$store\n // TODO remove this workaround by finding a way to bypass reuploads\n fetch(sticker)\n .then((res) => {\n res.blob().then((blob) => {\n const file = new File([blob], name, { mimetype: 'image/png' })\n const formData = new FormData()\n formData.append('file', file)\n statusPosterService.uploadMedia({ store, formData })\n .then((fileData) => {\n this.$emit('uploaded', fileData)\n this.clear()\n }, (error) => {\n console.warn(\"Can't attach sticker\")\n console.warn(error)\n this.$emit('upload-failed', 'default')\n })\n })\n })\n }\n }\n}\n\nexport default StickerPicker\n","<template>\n <div\n class=\"sticker-picker\"\n >\n <tab-switcher\n class=\"tab-switcher\"\n :render-only-focused=\"true\"\n scrollable-tabs\n >\n <div\n v-for=\"stickerpack in pack\"\n :key=\"stickerpack.path\"\n :image-tooltip=\"stickerpack.meta.title\"\n :image=\"stickerpack.path + stickerpack.meta.tabIcon\"\n class=\"sticker-picker-content\"\n >\n <div\n v-for=\"sticker in stickerpack.meta.stickers\"\n :key=\"sticker\"\n class=\"sticker\"\n @click.stop.prevent=\"pick(stickerpack.path + sticker, stickerpack.meta.title)\"\n >\n <img\n :src=\"stickerpack.path + sticker\"\n >\n </div>\n </div>\n </tab-switcher>\n </div>\n</template>\n\n<script src=\"./sticker_picker.js\"></script>\n\n<style lang=\"scss\">\n.sticker-picker {\n width: 100%;\n\n .contents {\n min-height: 250px;\n\n .sticker-picker-content {\n display: flex;\n flex-wrap: wrap;\n padding: 0 4px;\n\n .sticker {\n display: flex;\n flex: 1 1 auto;\n margin: 4px;\n width: 56px;\n height: 56px;\n\n img {\n height: 100%;\n\n &:hover {\n filter: drop-shadow(0 0 5px var(--accent));\n }\n }\n }\n }\n }\n}\n\n</style>\n"],"names":["StickerPicker","TabSwitcher","sticker","name","store","res","blob","file","formData","statusPosterService","fileData","error","_hoisted_1","_openBlock","_createElementBlock","_createVNode","_component_tab_switcher","_Fragment","_renderList","_ctx","stickerpack","_withModifiers","$event","_createElementVNode"],"mappings":"+GAIA,MAAMA,EAAgB,CACpB,WAAY,CACV,YAAAC,CACD,EACD,MAAQ,CACN,MAAO,CACL,KAAM,CACJ,SAAU,CAAA,CACX,EACD,KAAM,EACZ,CACG,EACD,SAAU,CACR,MAAQ,CACN,OAAO,KAAK,OAAO,MAAM,SAAS,UAAY,CAAA,CACpD,CACG,EACD,QAAS,CACP,OAAS,CACP,KAAK,KAAO,CACV,SAAU,CAAA,CAClB,CACK,EACD,KAAMC,EAASC,EAAM,CACnB,MAAMC,EAAQ,KAAK,OAEnB,MAAMF,CAAO,EACV,KAAMG,GAAQ,CACbA,EAAI,KAAI,EAAG,KAAMC,GAAS,CACxB,MAAMC,EAAO,IAAI,KAAK,CAACD,CAAI,EAAGH,EAAM,CAAE,SAAU,WAAa,CAAA,EACvDK,EAAW,IAAI,SACrBA,EAAS,OAAO,OAAQD,CAAI,EAC5BE,EAAoB,YAAY,CAAE,MAAAL,EAAO,SAAAI,CAAU,CAAA,EAChD,KAAME,GAAa,CAClB,KAAK,MAAM,WAAYA,CAAQ,EAC/B,KAAK,MAAK,CACX,EAAGC,GAAU,CACZ,QAAQ,KAAK,sBAAsB,EACnC,QAAQ,KAAKA,CAAK,EAClB,KAAK,MAAM,gBAAiB,SAAS,CACtC,CAAA,CACJ,CAAA,CACF,CAAA,CACT,CACA,CACA,EC/CIC,EAAA,CAAA,MAAM,gBAAgB,wGADxB,OAAAC,EAAA,EAAAC,EA2BM,MA3BNF,EA2BM,CAxBJG,EAuBeC,EAAA,CAtBb,MAAM,eACL,sBAAqB,GACtB,kBAAA,eAGE,IAA2B,QAD7BF,EAiBMG,EAAA,KAAAC,EAhBkBC,EAAI,KAAnBC,QADTN,EAiBM,MAAA,CAfH,IAAKM,EAAY,KACjB,gBAAeA,EAAY,KAAK,MAChC,MAAOA,EAAY,KAAOA,EAAY,KAAK,QAC5C,MAAM,4BAENP,EAAA,EAAA,EAAAC,EASMG,SARcG,EAAY,KAAK,SAA5BlB,QADTY,EASM,MAAA,CAPH,IAAKZ,EACN,MAAM,UACL,QAAoBmB,EAAAC,GAAAH,EAAA,KAAKC,EAAY,KAAOlB,EAASkB,EAAY,KAAK,KAAK,EAAA,CAAA,OAAA,SAAA,CAAA,IAE5EG,EAEC,MAAA,CADE,IAAKH,EAAY,KAAOlB"}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
priv/static/static/js/string_setting.QmUmmIFY.js
Normal file
2
priv/static/static/js/string_setting.QmUmmIFY.js
Normal file
File diff suppressed because one or more lines are too long
1
priv/static/static/js/string_setting.QmUmmIFY.js.map
Normal file
1
priv/static/static/js/string_setting.QmUmmIFY.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue