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
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import TypeSelector from './config/TypeSelector.vue';
|
||||
import AspectRatioSelector from './config/AspectRatioSelector.vue';
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSwitch } from 'element-plus';
|
||||
import { QRART_DEFAULT_ADVANCED } from '@/constants';
|
||||
@@ -20,7 +20,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.advanced;
|
||||
},
|
||||
set(val) {
|
||||
set(val: boolean) {
|
||||
console.debug('set advanced', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { QRART_DEFAULT_ASPECT_RATIO } from '@/constants';
|
||||
|
||||
@@ -63,13 +63,13 @@ export default defineComponent({
|
||||
},
|
||||
computed: {
|
||||
active() {
|
||||
return this.options.findIndex((option) => option.value === this.value) || 0;
|
||||
return this.options.findIndex((option) => option.value === String(this.value)) || 0;
|
||||
},
|
||||
value: {
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.aspect_ratio;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set aspect ratio', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_ECL } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -45,7 +45,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.ecl;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set ecl', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_MARKER_SHAPE } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -57,7 +57,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.marker_shape;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set marker_shape', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_PADDING_LEVEL } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -53,7 +53,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.padding_level;
|
||||
},
|
||||
set(val) {
|
||||
set(val: number) {
|
||||
console.debug('set padding_level', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_PADDING_NOISE } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -49,7 +49,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.padding_noise;
|
||||
},
|
||||
set(val) {
|
||||
set(val: number) {
|
||||
console.debug('set padding_noise', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_PIXEL_STYLE } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -53,7 +53,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.pixel_style;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set pixel_style', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_POSITION } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -65,7 +65,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.position;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set position', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_PRESET } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -125,8 +125,8 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.preset;
|
||||
},
|
||||
set(val) {
|
||||
console.debug('set qrw', val);
|
||||
set(val: string) {
|
||||
console.debug('set qrart preset', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
preset: val
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_PRESET } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElImage } from 'element-plus';
|
||||
@@ -159,7 +159,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.preset;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set qrw', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElInput } from 'element-plus';
|
||||
|
||||
@@ -31,7 +31,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.prompt;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set prompt', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { ElSlider } from 'element-plus';
|
||||
import InfoIcon from '@/components/common/InfoIcon.vue';
|
||||
import { QRART_DEFAULT_QRW } from '@/constants';
|
||||
@@ -23,7 +23,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.qrw || QRART_DEFAULT_QRW;
|
||||
},
|
||||
set(val) {
|
||||
set(val: number) {
|
||||
console.debug('set qrw', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSwitch } from 'element-plus';
|
||||
import { QRART_DEFAULT_RAWURL } from '@/constants';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RawurlSelector',
|
||||
@@ -19,7 +20,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.rawurl;
|
||||
},
|
||||
set(val) {
|
||||
set(val: boolean) {
|
||||
console.debug('set rawurl', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_ROTATE } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -45,7 +45,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.rotate;
|
||||
},
|
||||
set(val) {
|
||||
set(val: number) {
|
||||
console.debug('set rotate', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElInput } from 'element-plus';
|
||||
|
||||
@@ -22,7 +22,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.seed;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set seed', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { ElSlider } from 'element-plus';
|
||||
import InfoIcon from '@/components/common/InfoIcon.vue';
|
||||
import { QRART_DEFAULT_STEPS } from '@/constants';
|
||||
@@ -23,7 +23,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.steps || QRART_DEFAULT_STEPS;
|
||||
},
|
||||
set(val) {
|
||||
set(val: number) {
|
||||
console.debug('set steps', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { QRART_DEFAULT_SUB_MARKER } from '@/constants';
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
@@ -49,7 +49,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.sub_marker;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set sub_marker', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElSelect, ElOption } from 'element-plus';
|
||||
import { QRART_DEFAULT_TYPE } from '@/constants';
|
||||
@@ -56,7 +56,7 @@ export default defineComponent({
|
||||
get() {
|
||||
return this.$store.state.qrart?.config?.type;
|
||||
},
|
||||
set(val) {
|
||||
set(val: string) {
|
||||
console.debug('set type', val);
|
||||
this.$store.commit('qrart/setConfig', {
|
||||
...this.$store.state.qrart?.config,
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
{{ task?.response?.image_width }} x {{ task?.response?.image_height }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="task?.created_at" :label="$t('qrart.name.createdAt')">
|
||||
{{ $dayjs.format('' + new Date(parseFloat(task?.created_at) * 1000)) }}
|
||||
{{ $dayjs.format('' + new Date(parseFloat(task?.created_at.toString()) * 1000)) }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :label="$t('qrart.name.seed')">
|
||||
{{ task?.request?.seed || task?.response?.seed }}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="bot">
|
||||
{{ $t('qrart.name.qrartBot') }}
|
||||
<span class="datetime">
|
||||
{{ $dayjs.format('' + new Date(parseFloat(modelValue?.created_at || '') * 1000)) }}
|
||||
{{ $dayjs.format('' + new Date(parseFloat((modelValue?.created_at || '').toString()) * 1000)) }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
|
||||
Reference in new issue
Block a user