Skip to content

Commit

Permalink
add Gleap widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Feb 3, 2025
1 parent e7a8a7a commit 30f9ca7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@mdx-js/react": "^1.6.22",
"buffer": "^6.0.3",
"clsx": "^1.2.1",
"gleap": "^13.7.3",
"docusaurus-plugin-sass": "^0.2.2",
"prism-react-renderer": "^1.3.5",
"process": "^0.11.10",
Expand Down
6 changes: 3 additions & 3 deletions src/theme/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import React from 'react';
import useIsBrowser from '@docusaurus/useIsBrowser'; // https://docusaurus.io/docs/advanced/ssg#useisbrowser
// import Gleap from "gleap"; // See https://gleap.io/docs/javascript/ and https://app.gleap.io/projects/62697858a4f6850036ae2e6a/widget
import Gleap from "gleap"; // See https://gleap.io/docs/javascript/ and https://app.gleap.io/projects/62697858a4f6850036ae2e6a/widget

const GLEAP_API_KEY = '2cENujyLCLAV1I20Co6chNbgvZXN7ND7';
const GLEAP_API_KEY = 'IHPIXAH5KmDsReZtZUeb2BkfCjnh4JV5';

// Default implementation, that you can customize
export default function Root({ children }) {
const isBrowser = useIsBrowser();
if (isBrowser) {
// Gleap.initialize(GLEAP_API_KEY);
Gleap.initialize(GLEAP_API_KEY);
}
return <>{children}</>;
}
39 changes: 39 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,26 @@
dependencies:
tslib "^2.4.0"

"@floating-ui/core@^1.6.0":
version "1.6.9"
resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.6.9.tgz#64d1da251433019dafa091de9b2886ff35ec14e6"
integrity sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==
dependencies:
"@floating-ui/utils" "^0.2.9"

"@floating-ui/dom@^1.6.3":
version "1.6.13"
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.6.13.tgz#a8a938532aea27a95121ec16e667a7cbe8c59e34"
integrity sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==
dependencies:
"@floating-ui/core" "^1.6.0"
"@floating-ui/utils" "^0.2.9"

"@floating-ui/utils@^0.2.9":
version "0.2.9"
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.9.tgz#50dea3616bc8191fb8e112283b49eaff03e78429"
integrity sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==

"@hapi/hoek@^9.0.0":
version "9.3.0"
resolved "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz"
Expand Down Expand Up @@ -4164,6 +4184,15 @@ github-slugger@^1.4.0:
resolved "https://registry.npmjs.org/github-slugger/-/github-slugger-1.4.0.tgz"
integrity sha512-w0dzqw/nt51xMVmlaV1+JRzN+oCa1KfcgGEWhxUG16wbdA+Xnt/yoFO8Z8x/V82ZcZ0wy6ln9QDup5avbhiDhQ==

gleap@^13.7.3:
version "13.9.3"
resolved "https://registry.yarnpkg.com/gleap/-/gleap-13.9.3.tgz#8696d0cf607142d2496da0ffd73161ba1e1d6518"
integrity sha512-kI5/dixlwV4hmJiKKeyf4fL33rGtYR27GdUOTwk8brgOftX2pTGafOQl53zak8kYA2LAHd4FMW5j+V2eQWBRdg==
dependencies:
"@floating-ui/dom" "^1.6.3"
pick-dom-element "^0.2.3"
unique-selector "^0.5.0"

glob-parent@^5.1.2, glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
Expand Down Expand Up @@ -5691,6 +5720,11 @@ path-type@^4.0.0:
resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==

pick-dom-element@^0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/pick-dom-element/-/pick-dom-element-0.2.3.tgz#5754e686d2533cc94e75b27734475625d8c745b0"
integrity sha512-XBwCZMMnmZAU68lvizuAluOBpImiE3sgXEbrMjBBJ/SjUiHTeep38oiBL8wWMy9ZXxNk6JvmYRUmGiZnCOvUFw==

picocolors@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz"
Expand Down Expand Up @@ -7325,6 +7359,11 @@ unified@^9.2.2:
trough "^1.0.0"
vfile "^4.0.0"

unique-selector@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/unique-selector/-/unique-selector-0.5.0.tgz#b4e19472e390051a61011550b0cdc037432a8b15"
integrity sha512-2KCiRgM19ol67lO493tF7mnQPDuYzwRM7JXrVx336+BPXqT2ccCbUOQQpErFbSc8VIdifLf5x34x4lIeebk+YA==

unique-string@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz"
Expand Down

0 comments on commit 30f9ca7

Please sign in to comment.