Skip to content

Commit

Permalink
feat: add back gleap (#791)
Browse files Browse the repository at this point in the history
<!--
Pull requests are squashed and merged using:
- their title as the commit message
- their description as the commit body

Having a good title and description is important for the users to get
readable changelog.
-->

<!-- 1. Explain WHAT the change is about -->

- Gleap.io was removed a while back
- this adds it back so visitors can open ticket and suggest feedback
- internally, we will use this to fine tune the documentation
  • Loading branch information
zifeo authored Jul 15, 2024
1 parent aaa1b84 commit d3cc3b4
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .ghjk/lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -952,13 +952,13 @@
"ty": "denoFile@v1",
"key": "dev-gate2",
"desc": "Launch the typegate in sync mode.",
"envKey": "bciqjfazgnyxehqdfwztfmuymn25mgqm3uq5yelkqbpd5bcdkyyr5bdq"
"envKey": "bciqa6u77tafrjvgdwr5pimkex36f4ttdiba5mkj626kclhhcry2fnfq"
},
"dev-gate1": {
"ty": "denoFile@v1",
"key": "dev-gate1",
"desc": "Launch the typegate in single-instance mode.",
"envKey": "bciqmxq7fex7x2jkdb6dxzvyqcdjopabf6bhclywyvzclkhflp2vi6ci"
"envKey": "bciqdrqdemix3vxa5spb3syclbrv23eg3r5jdmakbto3e6ih2mannhia"
},
"dev-eg-tgraphs": {
"ty": "denoFile@v1",
Expand Down Expand Up @@ -1336,7 +1336,7 @@
}
]
},
"bciqmxq7fex7x2jkdb6dxzvyqcdjopabf6bhclywyvzclkhflp2vi6ci": {
"bciqdrqdemix3vxa5spb3syclbrv23eg3r5jdmakbto3e6ih2mannhia": {
"provides": [
{
"ty": "posix.envVar",
Expand Down Expand Up @@ -1393,13 +1393,18 @@
"key": "TG_PORT",
"val": "7891"
},
{
"ty": "posix.envVar",
"key": "TMP_DIR",
"val": "/Users/teostocco/Documents/triage/metatypedev/metatype/tmp"
},
{
"ty": "ghjk.ports.InstallSetRef",
"setId": "ghjkEnvProvInstSet____rust"
}
]
},
"bciqjfazgnyxehqdfwztfmuymn25mgqm3uq5yelkqbpd5bcdkyyr5bdq": {
"bciqa6u77tafrjvgdwr5pimkex36f4ttdiba5mkj626kclhhcry2fnfq": {
"provides": [
{
"ty": "posix.envVar",
Expand Down Expand Up @@ -1456,6 +1461,11 @@
"key": "TG_PORT",
"val": "7892"
},
{
"ty": "posix.envVar",
"key": "TMP_DIR",
"val": "/Users/teostocco/Documents/triage/metatypedev/metatype/tmp"
},
{
"ty": "posix.envVar",
"key": "SYNC_ENABLED",
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"autoprefixer": "^10.4.19",
"clsx": "^2.1.1",
"docusaurus-theme-frontmatter": "^1.3.0",
"gleap": "^13.7.9",
"graphiql": "3.3.2",
"graphql": "^16.9.0",
"graphql-tag": "^2.12.6",
Expand Down
5 changes: 3 additions & 2 deletions website/packages/code-loader-transform.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const deindent = require("de-indent");
const path = require("path");
const { spawn } = require("child_process");
//const { spawn } = require("child_process");

const projectDir = path.resolve(__dirname, "../..");

Expand All @@ -24,6 +24,7 @@ module.exports = async function (source) {
const ext = relPath.split(".").pop();
const prefix = commentsPrefix[ext];

/*
if (ext === "py") {
source = await new Promise((resolve, reject) => {
const child = spawn("ruff", ["format", "--line-length", "70", "-"]);
Expand All @@ -45,8 +46,8 @@ module.exports = async function (source) {
}
});
});
console.log(this.resourcePath, source);
}
*/

const ret = [];
let skipping = false;
Expand Down
31 changes: 31 additions & 0 deletions website/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions website/src/theme/Root.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React, { useEffect } from "react";
import Gleap from "gleap";

export default function Root({ children }) {
useEffect(() => {
Gleap.initialize("dyWs3yourDQZkNztYzV7yZgcyMcWGpaF");
}, []);

return <>{children}</>;
}

0 comments on commit d3cc3b4

Please sign in to comment.