Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/weekly-stats.yml

This file was deleted.

5 changes: 0 additions & 5 deletions packages/playground/src/getExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export const getExampleSourceCode = async (prefix: string, lang: string, example
code = code.split("\n").slice(1).join("\n").trim()
}

// @ts-ignore
window.appInsights &&
// @ts-ignore
window.appInsights.trackEvent({ name: "Read Playground Example", properties: { id: exampleID, lang } })

return {
example,
code,
Expand Down
2 changes: 0 additions & 2 deletions packages/playground/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ export const setupPlayground = (
// When any compiler flags are changed, trigger a potential change to the URL
sandbox.setDidUpdateCompilerSettings(async () => {
playgroundDebouncedMainFunction()
// @ts-ignore
window.appInsights && window.appInsights.trackEvent({ name: "Compiler Settings changed" })

const model = sandbox.editor.getModel()
const plugin = getCurrentPlugin()
Expand Down
8 changes: 0 additions & 8 deletions packages/playground/src/sidebar/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export const addCustomPlugin = (mod: string) => {
const newPlugins = customPlugins()
newPlugins.push(mod)
localStorage.setItem("custom-plugins-playground", JSON.stringify(newPlugins))
// @ts-ignore
window.appInsights &&
// @ts-ignore
window.appInsights.trackEvent({ name: "Added Custom Module", properties: { id: mod } })
}

const customPlugins = (): string[] => {
Expand Down Expand Up @@ -147,10 +143,6 @@ export const optionsPlugin: PluginFactory = (i, utils) => {
const ds = utils.createDesignSystem(div)
ds.declareRestartRequired(i)
if (input.checked) {
// @ts-ignore
window.appInsights &&
// @ts-ignore
window.appInsights.trackEvent({ name: "Added Registry Plugin", properties: { id: key } })
localStorage.setItem(key, "true")
} else {
localStorage.removeItem(key)
Expand Down
61 changes: 0 additions & 61 deletions packages/typescriptlang-org/gatsby-browser.js
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will have to be brought back for new analytics when we add it.

This file was deleted.

150 changes: 0 additions & 150 deletions packages/typescriptlang-org/scripts/makeMarkdownForAppInsights.js

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions packages/typescriptlang-org/src/components/index/AboveTheFold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ const Row = (props: { children: any, className?: string }) => <div className={[p
const Col = (props: { children: any, className?: string }) => <div className={[props.className, "col1"].join(" ")}>{props.children}</div>
const Col2 = (props: { children: any }) => <div className="col2">{props.children}</div>

const event = (name: string, options?: any) => {
// @ts-ignore
window.appInsights &&
// @ts-ignore
window.appInsights.trackEvent({ name }, options)
}

const FluidButton = (props: { href?: string, onClick?: any, title: string, subtitle?: string, icon: JSX.Element, className?: string }) => (
<a className={"fluid-button " + props.className || ""} href={props.href} onClick={props.onClick}>
<div>
Expand All @@ -36,7 +29,6 @@ export const AboveTheFold = () => {
const onclick = (e) => {
setShowCTALinks(true)
e.preventDefault()
event("Home Page CTA Started")
return false
}

Expand Down Expand Up @@ -76,7 +68,6 @@ export const AboveTheFold = () => {
title={i("index_2_cta_play")}
subtitle={i("index_2_cta_play_subtitle")}
href="/play"
onClick={() => event("Home Page CTA Exited", { link: "playground" })}
icon={
<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clipPath="url(#clip0)">
Expand All @@ -100,7 +91,6 @@ export const AboveTheFold = () => {
title={i("index_2_cta_download")}
subtitle={i("index_2_cta_download_subtitle")}
href="/download"
onClick={() => event("Home Page CTA Exited", { link: "download" })}
icon={
<svg width="15" height="27" viewBox="0 0 15 27" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.5 0.5V19M7.5 19L1 13M7.5 19L13 13" stroke="black" strokeWidth="1.5" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const Index: React.FC<Props> = (props) => {
title={i("cht_dl_title")}
subtitle={i("cht_dl_subtitle")}
href="/assets/typescript-cheat-sheets.zip"
onClick={() => event("Downloaded Cheat Sheet Zip", { link: "download" })}
icon={
<svg width="15" height="27" viewBox="0 0 15 27" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.5 0.5V19M7.5 19L1 13M7.5 19L13 13" stroke="black" strokeWidth="1.5" />
Expand All @@ -70,13 +69,6 @@ const Index: React.FC<Props> = (props) => {

export default (props: Props) => <Intl locale={props.pageContext.lang}><Index {...props} /></Intl>

const event = (name: string, options?: any) => {
// @ts-ignore
window.appInsights &&
// @ts-ignore
window.appInsights.trackEvent({ name }, options)
}

const FluidButton = (props: { href?: string, onClick?: any, title: string, subtitle?: string, icon: JSX.Element, className?: string }) => (
<a className={"fluid-button " + props.className || ""} href={props.href} onClick={props.onClick}>
<div>
Expand Down
Loading