Fix layout init issue (#245)
This commit is contained in:
1 parent
901d39a502
commit
bc19c78444
12 files changed
+170
-132
No files matched your search
+15
-13
@@ -25,7 +25,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/flux';
|
||||
interface IData {
|
||||
task: IFluxTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -35,12 +34,11 @@ export default defineComponent({
|
||||
Layout,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -70,22 +68,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
+14
-10
@@ -25,7 +25,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/hailuo';
|
||||
interface IData {
|
||||
task: IHailuoTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -35,6 +34,7 @@ export default defineComponent({
|
||||
Layout,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
@@ -70,22 +70,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
@@ -37,7 +37,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/headshots';
|
||||
interface IData {
|
||||
task: IHeadshotsTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -48,12 +47,11 @@ export default defineComponent({
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -95,22 +93,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
+15
-13
@@ -25,7 +25,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/kling';
|
||||
interface IData {
|
||||
task: IKlingTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -35,12 +34,11 @@ export default defineComponent({
|
||||
Layout,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -67,22 +65,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
+16
-13
@@ -25,7 +25,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/luma';
|
||||
interface IData {
|
||||
task: ILumaTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -35,12 +34,11 @@ export default defineComponent({
|
||||
Layout,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -70,22 +68,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
@@ -106,6 +108,7 @@ export default defineComponent({
|
||||
await this.onGetTasks();
|
||||
},
|
||||
async onScrollDown() {
|
||||
console.debug('scrolling down');
|
||||
setTimeout(() => {
|
||||
const el = document.querySelector('.tasks');
|
||||
if (el) {
|
||||
|
||||
@@ -31,7 +31,6 @@ import {
|
||||
interface IData {
|
||||
operating: boolean;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
const CALLBACK_URL = 'https://webhook.acedata.cloud/midjourney';
|
||||
@@ -43,12 +42,11 @@ export default defineComponent({
|
||||
TaskList,
|
||||
Layout
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
operating: false,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -150,22 +148,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
+15
-13
@@ -25,7 +25,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/pika';
|
||||
interface IData {
|
||||
task: IPikaTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -35,12 +34,11 @@ export default defineComponent({
|
||||
Layout,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -82,22 +80,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
@@ -25,7 +25,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/pixverse';
|
||||
interface IData {
|
||||
task: IPixverseTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -35,12 +34,11 @@ export default defineComponent({
|
||||
Layout,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -67,22 +65,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
+15
-13
@@ -36,7 +36,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/qrart';
|
||||
interface IData {
|
||||
task: IQrartTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -47,12 +46,11 @@ export default defineComponent({
|
||||
ApplicationStatus,
|
||||
RecentPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -94,22 +92,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
+15
-13
@@ -29,7 +29,6 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/suno';
|
||||
interface IData {
|
||||
task: ISunoTask | undefined;
|
||||
job: number;
|
||||
timer: any;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
@@ -40,12 +39,11 @@ export default defineComponent({
|
||||
RecentPanel,
|
||||
PreviewPanel
|
||||
},
|
||||
inject: ['initialized'],
|
||||
data(): IData {
|
||||
return {
|
||||
task: undefined,
|
||||
job: 0,
|
||||
// @ts-ignore
|
||||
timer: undefined
|
||||
job: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -87,22 +85,26 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
initialized: {
|
||||
async handler(newValue) {
|
||||
if (newValue) {
|
||||
console.debug('layout initialized');
|
||||
await this.onGetTasks();
|
||||
await this.onScrollDown();
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await this.onGetService();
|
||||
await this.onGetApplication();
|
||||
await this.onScrollDown();
|
||||
await this.onGetTasks();
|
||||
// await this.onScrollDown();
|
||||
// @ts-ignore
|
||||
this.job = setInterval(() => {
|
||||
this.onGetTasks();
|
||||
}, 5000);
|
||||
},
|
||||
async unmounted() {
|
||||
clearInterval(this.job);
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
methods: {
|
||||
async onReachTop() {
|
||||
|
||||
Reference in new issue
Block a user