diff --git a/assets/index.ejs b/assets/index.ejs index 5488461f5..b6fc06c80 100644 --- a/assets/index.ejs +++ b/assets/index.ejs @@ -34,6 +34,12 @@
+ + <%= htmlWebpackPlugin.tags.bodyTags %> diff --git a/src/components/RecentActivity/index.tsx b/src/components/RecentActivity/index.tsx index d88713bde..990db1c06 100644 --- a/src/components/RecentActivity/index.tsx +++ b/src/components/RecentActivity/index.tsx @@ -11,8 +11,10 @@ import { isRecent, RecentActivityTable } from "./RecentActivityTable"; import * as s from "./styles"; import { EntrySpan, RecentActivityData } from "./types"; -const DOCUMENTATION_LINK = - "https://github.com/digma-ai/digma-vscode-plugin#%EF%B8%8F-extension-settings"; +const documentationURL = + typeof window.recentActivityDocumentationURL === "string" + ? window.recentActivityDocumentationURL + : null; const REFRESH_INTERVAL = typeof window.recentActivityRefreshInterval === "number" @@ -35,14 +37,21 @@ const renderNoData = () => { No Recent Activity - Check out our documentation to learn how to - - dig with digma - + {documentationURL && ( + <> + + Check out our documentation to learn how to + + + + dig with digma + + + )} ); }; diff --git a/src/globals.d.ts b/src/globals.d.ts index ee9755049..88406054b 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -17,5 +17,6 @@ declare global { theme?: Mode; recentActivityRefreshInterval?: number; recentActivityExpirationLimit?: number; + recentActivityDocumentationURL?: string; } } diff --git a/webpack.common.ts b/webpack.common.ts index 47c3e9abd..c243cf000 100644 --- a/webpack.common.ts +++ b/webpack.common.ts @@ -31,6 +31,7 @@ const config: WebpackConfiguration = { new HtmlWebpackPlugin({ template: path.resolve(__dirname, "./assets/index.ejs"), inject: false, + minify: false, scriptLoading: "blocking" }) ]