@salesforcedevs/dw-components
Advanced tools
Comparing version 1.3.309 to 1.3.311
{ | ||
"name": "@salesforcedevs/dw-components", | ||
"version": "1.3.309", | ||
"version": "1.3.311", | ||
"description": "Lightning web components for https://developer.salesforce.com", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "7c8593290d3ce2df09137b939e9e58f64fe4f95b" | ||
"gitHead": "8fd492d08f22c6ce74ebed62b3c35772f6c6075f" | ||
} |
@@ -9,3 +9,2 @@ import qs from "query-string"; | ||
import altData from "./altData.js"; | ||
import { normalizePostLink } from "../languageSelector/languageSelector"; | ||
@@ -20,2 +19,14 @@ let postsController: AbortController | null = null; | ||
export const normalizePostLink = (post: { | ||
acf: { language: string }; | ||
link: string; | ||
}) => { | ||
switch (post.acf.language) { | ||
case "japanese": | ||
return post.link.replace("/blogs/", "/jpblogs/"); | ||
default: | ||
return post.link; | ||
} | ||
}; | ||
async function postsFetchHandler(url: string) { | ||
@@ -22,0 +33,0 @@ if (postsController) { |
import { track as trackClick } from "dxUtils/analytics"; | ||
import { api, LightningElement, track } from "lwc"; | ||
import { SelectOption } from "typings/custom"; | ||
import { normalizePostLink } from "../contentArchive/utils"; | ||
@@ -15,14 +16,2 @@ const ANALYTICS_INFO = { | ||
export const normalizePostLink = (post: { | ||
acf: { language: string }; | ||
link: string; | ||
}) => { | ||
switch (post.acf.language) { | ||
case "japanese": | ||
return post.link.replace("/blogs/", "/jpblogs/"); | ||
default: | ||
return post.link; | ||
} | ||
}; | ||
export default class LanguageSelector extends LightningElement { | ||
@@ -29,0 +18,0 @@ @track languages = [] as SelectOption[]; |
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
514765