1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-26 16:49:42 +02:00

dev-feature/analyze-bundle (#529)

* add bundle analyzer

* use svg icons - closes #522

* fix recent recipes icon

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-06-16 18:55:32 -08:00 committed by GitHub
parent d475818a9f
commit ee1a11ea57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 588 additions and 248 deletions

View file

@ -3,7 +3,7 @@
<input ref="uploader" class="d-none" type="file" @change="onFileChanged" />
<slot v-bind="{ isSelecting, onButtonClick }">
<v-btn :loading="isSelecting" @click="onButtonClick" :small="small" color="accent" :text="textBtn">
<v-icon left> {{ icon }}</v-icon>
<v-icon left> {{ effIcon }}</v-icon>
{{ text ? text : defaultText }}
</v-btn>
</slot>
@ -24,7 +24,7 @@ export default {
},
url: String,
text: String,
icon: { default: "mdi-cloud-upload" },
icon: { default: null },
fileName: { default: "archive" },
textBtn: {
default: true,
@ -36,6 +36,9 @@ export default {
}),
computed: {
effIcon() {
return this.icon ? this.icon : this.$globals.icons.upload;
},
defaultText() {
return this.$t("general.upload");
},