@factor/app
Advanced tools
Comparing version 1.8.11 to 1.8.15
16
index.ts
@@ -8,2 +8,4 @@ import { setting } from "@factor/api/settings" | ||
type FactorRouteConfig = RouteConfig & { priority?: number } | ||
const waitForMountApp = (): Promise<void> => { | ||
@@ -50,3 +52,3 @@ return new Promise((resolve) => onEvent("app-mounted", () => resolve())) | ||
key: "appRoutes", | ||
callback: (_: RouteConfig[]) => { | ||
callback: (_: FactorRouteConfig[]) => { | ||
const contentRoutes = applyFilters("content-routes", [ | ||
@@ -59,7 +61,9 @@ { | ||
}, | ||
]).filter((route: RouteConfig, index: number, self: RouteConfig[]) => { | ||
// remove duplicate paths | ||
const lastIndexOf = self.map((_) => _.path).lastIndexOf(route.path) | ||
return index === lastIndexOf | ||
}) | ||
]).filter( | ||
(route: FactorRouteConfig, index: number, self: FactorRouteConfig[]) => { | ||
// remove duplicate paths | ||
const lastIndexOf = self.map((_) => _.path).lastIndexOf(route.path) | ||
return index === lastIndexOf | ||
} | ||
) | ||
@@ -66,0 +70,0 @@ _.push({ |
{ | ||
"name": "@factor/app", | ||
"version": "1.8.11", | ||
"version": "1.8.15", | ||
"license": "GPL-2.0", | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "917af9bcf59285c64d8a0e7596183f79788f4f6e" | ||
"gitHead": "bc0b6752f48b98dac47aedeaf28eef351495c63d" | ||
} |
@@ -23,7 +23,1 @@ import Vue from "vue" | ||
} | ||
declare module "vue-router" { | ||
interface RouteConfig { | ||
priority?: number | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67444
851