Introduce group basic federation, event new page and notifications

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-02-18 08:57:00 +01:00
parent 300ef8f245
commit 4144e9ffd0
416 changed files with 32220 additions and 16750 deletions

17
js/src/mixins/resource.ts Normal file
View File

@@ -0,0 +1,17 @@
import { Component, Vue } from "vue-property-decorator";
import { IResource } from "@/types/resource";
@Component
export default class ResourceMixin extends Vue {
static resourcePath(resource: IResource): string {
const { path } = resource;
if (path && path[0] === "/") {
return path.slice(1);
}
return path || "";
}
static resourcePathArray(resource: IResource): string[] {
return ResourceMixin.resourcePath(resource).split("/");
}
}