Fix new eslint reported issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5eadbbaae9
commit
ed196d9b84
@ -117,7 +117,7 @@ export default class GroupActivityItem extends mixins(ActivityMixin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get details(): string[] {
|
get details(): string[] {
|
||||||
let details = [];
|
const details = [];
|
||||||
const changes = this.subjectParams.group_changes.split(",");
|
const changes = this.subjectParams.group_changes.split(",");
|
||||||
if (changes.includes("name") && this.subjectParams.old_group_name) {
|
if (changes.includes("name") && this.subjectParams.old_group_name) {
|
||||||
details.push("{old_group_name} was renamed to {group}.");
|
details.push("{old_group_name} was renamed to {group}.");
|
||||||
|
@ -150,7 +150,7 @@ export default class ResourceActivityItem extends mixins(ActivityMixin) {
|
|||||||
get path(): Location {
|
get path(): Location {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let path = this.parentPath(this.activity?.object?.path);
|
const path = this.parentPath(this.activity?.object?.path);
|
||||||
if (path === "") {
|
if (path === "") {
|
||||||
return {
|
return {
|
||||||
name: RouteName.RESOURCE_FOLDER_ROOT,
|
name: RouteName.RESOURCE_FOLDER_ROOT,
|
||||||
@ -179,7 +179,7 @@ export default class ResourceActivityItem extends mixins(ActivityMixin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parentPath(parent: string): string {
|
parentPath(parent: string): string {
|
||||||
let path = parent.split("/");
|
const path = parent.split("/");
|
||||||
path.pop();
|
path.pop();
|
||||||
return path.join("/").replace(/^\//, "");
|
return path.join("/").replace(/^\//, "");
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ const CustomImage = Image.extend({
|
|||||||
new Plugin({
|
new Plugin({
|
||||||
props: {
|
props: {
|
||||||
handleDOMEvents: {
|
handleDOMEvents: {
|
||||||
drop(view: EditorView<any>, event: Event) {
|
drop(view: EditorView, event: Event) {
|
||||||
const realEvent = event as DragEvent;
|
const realEvent = event as DragEvent;
|
||||||
if (
|
if (
|
||||||
!(
|
!(
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
:class="{ 'is-hidden-mobile': !inline }"
|
:class="{ 'is-hidden-mobile': !inline }"
|
||||||
v-if="resource.updatedAt || resource.publishedAt"
|
v-if="resource.updatedAt || resource.publishedAt"
|
||||||
>{{
|
>{{
|
||||||
(resource.updatedAt || resource.publishedAt)
|
(resource.updatedAt || resource.publishedAt) |
|
||||||
| formatDateTimeString
|
formatDateTimeString
|
||||||
}}</span
|
}}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@ -427,7 +427,7 @@ export default class MyEvents extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
monthParticipationsIds(elements: Eventable[]): string[] {
|
monthParticipationsIds(elements: Eventable[]): string[] {
|
||||||
let res = elements.filter((element: Eventable) => {
|
const res = elements.filter((element: Eventable) => {
|
||||||
return "role" in element;
|
return "role" in element;
|
||||||
}) as IParticipant[];
|
}) as IParticipant[];
|
||||||
return res.map(({ event }: { event: IEvent }) => {
|
return res.map(({ event }: { event: IEvent }) => {
|
||||||
|
@ -542,7 +542,7 @@ export default class Search extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set eventCategory(eventCategory: string | null) {
|
set eventCategory(eventCategory: string | null) {
|
||||||
let query = { ...this.$route.query, eventCategory };
|
const query = { ...this.$route.query, eventCategory };
|
||||||
if (query.eventCategory === null) {
|
if (query.eventCategory === null) {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user