Formatting fixes

This commit is contained in:
Ekaterina Vaartis 2025-08-07 10:43:46 +03:00 committed by vaartis
commit 24c0e0e497
2 changed files with 9 additions and 10 deletions

View file

@ -195,18 +195,18 @@ export default {
data () { data () {
return { return {
uploadFile: [], uploadFile: [],
uploadURL: "", uploadURL: '',
editedShortcode: this.shortcode, editedShortcode: this.shortcode,
editedFile: this.file, editedFile: this.file,
deleteModalVisible: false, deleteModalVisible: false,
copyToPack: "" copyToPack: ''
} }
}, },
computed: { computed: {
emojiPreview () { emojiPreview () {
if (this.newUpload && this.uploadFile.length > 0) { if (this.newUpload && this.uploadFile.length > 0) {
return URL.createObjectURL(this.uploadFile[0]) return URL.createObjectURL(this.uploadFile[0])
} else if (this.newUpload && this.uploadURL != "") { } else if (this.newUpload && this.uploadURL !== '') {
return this.uploadURL return this.uploadURL
} else if (!this.newUpload) { } else if (!this.newUpload) {
return this.emojiAddr(this.file) return this.emojiAddr(this.file)
@ -243,8 +243,9 @@ export default {
let packName = this.remote === undefined ? this.packName : this.copyToPack let packName = this.remote === undefined ? this.packName : this.copyToPack
this.$store.state.api.backendInteractor.addNewEmojiFile({ this.$store.state.api.backendInteractor.addNewEmojiFile({
packName: packName, packName: packName,
file: this.remote === undefined ? file: this.remote === undefined
(this.uploadURL !== "" ? this.uploadURL : this.uploadFile[0]) : this.emojiAddr(this.file), ? (this.uploadURL !== "" ? this.uploadURL : this.uploadFile[0])
: this.emojiAddr(this.file),
shortcode: this.editedShortcode, shortcode: this.editedShortcode,
filename: this.editedFile filename: this.editedFile
}).then(resp => resp.json()).then(resp => { }).then(resp => resp.json()).then(resp => {

View file

@ -58,7 +58,7 @@
<script> <script>
import { assign } from 'lodash' import { assign } from 'lodash'
import StillImage from "./still-image.vue" import StillImage from './still-image.vue'
import Popover from 'components/popover/popover.vue' import Popover from 'components/popover/popover.vue'
import SelectComponent from 'components/select/select.vue' import SelectComponent from 'components/select/select.vue'
import { useInterfaceStore } from 'src/stores/interface' import { useInterfaceStore } from 'src/stores/interface'
@ -95,8 +95,6 @@
}) })
}, },
copyToLocalPack() { copyToLocalPack() {
console.log(this.packName)
this.$store.state.api.backendInteractor.addNewEmojiFile({ this.$store.state.api.backendInteractor.addNewEmojiFile({
packName: this.packName, packName: this.packName,
file: this.$attrs.src, file: this.$attrs.src,
@ -171,8 +169,8 @@
text-align: center; text-align: center;
.emoji { .emoji {
width: 64px; width: 4.6em;
height: 64px; height: 4.6em;
} }
.emoji-popover-centered { .emoji-popover-centered {