UNPKG

@mikezimm/fps-core-v7

Version:

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

27 lines 2.02 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 { AmIOnDFW, 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 = AmIOnDFW !== true ? '/sites/FPTWebAlytics' : '/sites/qaMike/SPFx/Testing'; export const SecureCDNalyticsWeb = AmIOnDFW !== true ? '/sites/SecureCDNalytics' : '/sites/qaMike/SPFx/Testing'; export const SecureCDNalyticsWebAbsolute = `${CurrentOrigin}${SecureCDNalyticsWeb}`; export const GeneralErrorLog = `GeneralErrorLog`; 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