Upgrade build libs and fixed lints (#235)
This commit is contained in:
1 parent
8bf60b4b05
commit
03244e096f
197 files changed
+3924
-3714
No files matched your search
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElButton } from 'element-plus';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
import { FLUX_DEFAULT_MODEL } from '@/constants';
|
||||
@@ -64,7 +64,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.flux?.config?.model;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
this.$store.commit('flux/setConfig', {
|
||||
...this.$store.state.flux.config,
|
||||
model: val
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElInput } from 'element-plus';
|
||||
import InfoIcon from '@/components/common/InfoIcon.vue';
|
||||
@@ -34,7 +34,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.flux?.config?.prompt;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set prompt', val);
|
||||
this.$store.commit('flux/setConfig', {
|
||||
...this.$store.state.flux?.config,
|
||||
@@ -44,8 +44,8 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.value) {
|
||||
this.value = DEFAULT_PROMPT;
|
||||
if (!this.prompt) {
|
||||
this.prompt = DEFAULT_PROMPT;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSlider, ElInputNumber } from 'element-plus';
|
||||
import InfoIcon from '@/components/common/InfoIcon.vue';
|
||||
@@ -31,9 +31,9 @@ export default defineComponent({
|
||||
computed: {
|
||||
value: {
|
||||
get() {
|
||||
return this.$store.state.flux.config.quality;
|
||||
return this.$store.state.flux.config?.quality;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set quality', val);
|
||||
this.$store.commit('flux/setConfig', {
|
||||
...this.$store.state.flux.config,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { FLUX_DEFAULT_ASPECT_RATIO } from '@/constants';
|
||||
|
||||
@@ -81,7 +81,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.flux?.config?.aspect_ratio;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set ratio', val);
|
||||
this.$store.commit('flux/setConfig', {
|
||||
...this.$store.state.flux.config,
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElImage, ElAlert, ElButton, ElTooltip } from 'element-plus';
|
||||
import { ElImage, ElAlert } from 'element-plus';
|
||||
import { IFluxTask, IFluxImage } from '@/models';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
Reference in new issue
Block a user