-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Google Analytics events for opening and closing the app, and opening …
…and closing projects (#9779) - Closes #9778 - Add `open_app`, `close_app`, `open_workflow`, and `close_workflow` events - Miscellaneous fixes for Google Analytics: - Fix `open_chat` and `close_chat` events firing even when chat is not visible - Add Google Analytics script to GUI2 entrypoint (i.e. the entrypoint used by the desktop app) Unrelated changes: - Add Nix development shell to allow Nix users to build GUI2 and the build script - Java dependencies have *not* been added in this PR to keep things simple # Important Notes None
- Loading branch information
1 parent
0d495ff
commit 3a53d47
Showing
19 changed files
with
352 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
strict_env | ||
|
||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then | ||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4=" | ||
fi | ||
|
||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,3 +162,9 @@ test-results | |
*.ir | ||
*.meta | ||
.enso/ | ||
|
||
################## | ||
## direnv cache ## | ||
################## | ||
|
||
.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** @file Utilities for loading resources. */ | ||
|
||
/** Add a script to the DOM. */ | ||
export function loadScript(url: string) { | ||
const script = document.createElement('script') | ||
script.crossOrigin = 'anonymous' | ||
script.src = url | ||
document.head.appendChild(script) | ||
return new Promise<HTMLScriptElement>((resolve, reject) => { | ||
script.onload = () => { | ||
resolve(script) | ||
} | ||
script.onerror = reject | ||
}) | ||
} | ||
|
||
/** Add a CSS stylesheet to the DOM. */ | ||
export function loadStyle(url: string) { | ||
const style = document.createElement('link') | ||
style.crossOrigin = 'anonymous' | ||
style.href = url | ||
style.rel = 'stylesheet' | ||
style.media = 'screen' | ||
style.type = 'text/css' | ||
document.head.appendChild(style) | ||
return new Promise<HTMLLinkElement>((resolve, reject) => { | ||
style.onload = () => { | ||
resolve(style) | ||
} | ||
style.onerror = reject | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.