Skip to content

Commit

Permalink
Apply automatic formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jun 12, 2024
1 parent a443621 commit 338b75e
Show file tree
Hide file tree
Showing 609 changed files with 5,149 additions and 4,355 deletions.
32 changes: 16 additions & 16 deletions kolibri/core/assets/src/api-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ export class Model {
reject(response);
// Clean up the reference to this promise
this.promises.splice(this.promises.indexOf(promise), 1);
}
},
);
}
},
reason => {
reject(reason);
}
},
);
});
this.promises.push(promise);
Expand Down Expand Up @@ -164,13 +164,13 @@ export class Model {
reject(response);
// Clean up the reference to this promise
this.promises.splice(this.promises.indexOf(promise), 1);
}
},
);
}
},
reason => {
reject(reason);
}
},
);
});
this.promises.push(promise);
Expand Down Expand Up @@ -214,13 +214,13 @@ export class Model {
reject(response);
// Clean up the reference to this promise
this.promises.splice(this.promises.indexOf(promise), 1);
}
},
);
}
},
reason => {
reject(reason);
}
},
);
});
this.promises.push(promise);
Expand Down Expand Up @@ -340,13 +340,13 @@ export class Collection {
reject(response);
// Clean up the reference to this promise
this.promises.splice(this.promises.indexOf(promise), 1);
}
},
);
}
},
reason => {
reject(reason);
}
},
);
});
this.promises.push(promise);
Expand Down Expand Up @@ -399,12 +399,12 @@ export class Collection {
reject(response);
// Clean up the reference to this promise
this.promises.splice(this.promises.indexOf(promise), 1);
}
},
);
},
reason => {
reject(reason);
}
},
);
});
this.promises.push(promise);
Expand Down Expand Up @@ -450,13 +450,13 @@ export class Collection {
reject(response);
// Clean up the reference to this promise
this.promises.splice(this.promises.indexOf(promise), 1);
}
},
);
}
},
reason => {
reject(reason);
}
},
);
});
this.promises.push(promise);
Expand Down Expand Up @@ -602,8 +602,8 @@ export class Resource {
.sort()
.map(paramKey => ({
[paramKey]: paramKey === this.idKey ? String(allParams[paramKey]) : allParams[paramKey],
}))
)
})),
),
);
}

Expand Down Expand Up @@ -926,7 +926,7 @@ export class Resource {

create(params = {}, multipart = false) {
return this.accessListEndpoint('post', 'list', params, multipart).then(
response => response.data
response => response.data,
);
}

Expand Down Expand Up @@ -1038,7 +1038,7 @@ export class Resource {
`%cRequest error: ${err.response.statusText}, ${
err.response.status
} for ${err.config.method.toUpperCase()} to ${err.config.url} - open for more info`,
'color: red'
'color: red',
);
console.log(`Error occured for ${this.name} resource on page ${window.location.href}`);
if (store?.state?.route) {
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/api-resources/contentNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default new Resource({
if (data[this.idKey]) {
this.cache[data[this.idKey]] = Object.assign(
this.cache[data[this.idKey]] || {},
cloneDeep(data)
cloneDeep(data),
);
if (data.children) {
this.cacheData(data.children);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const logging = logger.getLogger(__filename);
export default function useMinimumKolibriVersion(
majorVersion = 0,
minorVersion = 15,
revisionVersion = null
revisionVersion = null,
) {
const isMinimumKolibriVersion = useMemoize(version => {
if (!version) {
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/composables/useUserSyncStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function fetchUserSyncStatus(params) {
error => {
store.dispatch('handleApiError', { error });
return error;
}
},
);
}

Expand Down
Loading

0 comments on commit 338b75e

Please sign in to comment.