UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

26 lines 1.86 kB
// window.location properties // host: "tenant.sharepoint.com" // hostname: "tenant.sharepoint.com" // href: "https://tenant.sharepoint.com/sites/WebPartDev/SitePages/ECStorage.aspx?debug=true&noredir=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&allowOtherSites=true&scenario=dev" // origin: "https://tenant.sharepoint.com" // pathname: "/sites/WebPartDev/SitePages/ECStorage.aspx" // protocol: "https:" // search: "?debug=true&noredir=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&allowOtherSites=true&scenario=dev" import { TrickyTenantA } from "../../../banner/features/Tricky/constants"; import { ecrptMe } from "../../../banner/features/Tricky/logfun"; import { decrpt, encrpt } from "../../../banner/features/Tricky/verify"; import { CurrentOrigin, CurrentTenant } from "../../../components/molecules/source-props/WindowLocationConstants"; // import { CurrentOrigin, CurrentTenant } from "../../../logic/Strings/getSiteCollectionUrlFromLink"; export const AnalyticsWebLeg = '/sites/Templates/Analytics'; export const AnalyticsWebNew = '/sites/FPTWebAlytics'; export const SecureCDNalyticsWeb = '/sites/SecureCDNalytics'; export const SecureCDNalyticsWebAbsolute = `${CurrentOrigin}${SecureCDNalyticsWeb}`; const useNew = ecrptMe(CurrentTenant, encrpt, decrpt) === TrickyTenantA ? false : true; // @mikezimm/fps-library-v2/lib/pnpjs/Logging/Interfaces/constants export const AnalyticsWeb = useNew === true ? AnalyticsWebNew : AnalyticsWebLeg; export const AnalyticsWebAbsolute = `${CurrentOrigin}${AnalyticsWeb}`; export const RequestListSite = '/sites/SharePointAssist'; export const RequestListList = 'Assists'; export const PatternsWeb = '/sites/Patterns/'; export const ErrorLog = 'ErrorLog'; //strings.analyticsListErrors //# sourceMappingURL=constants.js.map