11import { ExternalLink } from 'sentry/components/core/link' ;
22import type {
3- Docs ,
43 DocsParams ,
54 OnboardingConfig ,
65} from 'sentry/components/onboarding/gettingStartedDoc/types' ;
76import { StepType } from 'sentry/components/onboarding/gettingStartedDoc/types' ;
8- import {
9- getCrashReportGenericInstallSteps ,
10- getCrashReportModalConfigDescription ,
11- getCrashReportModalIntroduction ,
12- } from 'sentry/components/onboarding/gettingStartedDoc/utils/feedbackOnboarding' ;
13- import { feedback } from 'sentry/gettingStartedDocs/dotnet/dotnet/feedback' ;
147import { t , tct } from 'sentry/locale' ;
158import { getPackageVersion } from 'sentry/utils/gettingStartedDocs/getPackageVersion' ;
169
17- type Params = DocsParams ;
18-
19- const getInstallSnippetPackageManager = ( params : Params ) => `
10+ const getInstallSnippetPackageManager = ( params : DocsParams ) => `
2011Install-Package Sentry.Google.Cloud.Functions -Version ${ getPackageVersion (
2112 params ,
2213 'sentry.dotnet.google-cloud-function' ,
2314 '3.34.0'
2415) } `;
2516
26- const getInstallSnippetCoreCli = ( params : Params ) => `
17+ const getInstallSnippetCoreCli = ( params : DocsParams ) => `
2718dotnet add package Sentry.Google.Cloud.Functions -v ${ getPackageVersion (
2819 params ,
2920 'sentry.dotnet.google-cloud-function' ,
3021 '3.34.0'
3122) } `;
3223
33- const getInstallSnippetManual = ( params : Params ) => `
24+ const getInstallSnippetManual = ( params : DocsParams ) => `
3425<ItemGroup>
3526 <PackageReference Include="Sentry.Google.Cloud.Functions" Version="${ getPackageVersion (
3627 params ,
@@ -51,7 +42,7 @@ public class Function : IHttpFunction
5142 }
5243}` ;
5344
54- const getConfigureJsonSnippet = ( params : Params ) => `
45+ const getConfigureJsonSnippet = ( params : DocsParams ) => `
5546{
5647 "Sentry": {
5748 "Dsn": "${ params . dsn . public } ",
@@ -81,7 +72,7 @@ public Task HandleAsync(HttpContext context)
8172 SentrySdk.CaptureMessage("Hello Sentry");
8273}` ;
8374
84- const onboarding : OnboardingConfig = {
75+ export const onboarding : OnboardingConfig = {
8576 install : params => [
8677 {
8778 type : StepType . INSTALL ,
@@ -207,31 +198,3 @@ const onboarding: OnboardingConfig = {
207198 } ,
208199 ] ,
209200} ;
210-
211- const crashReportOnboarding : OnboardingConfig = {
212- introduction : ( ) => getCrashReportModalIntroduction ( ) ,
213- install : ( params : Params ) => getCrashReportGenericInstallSteps ( params ) ,
214- configure : ( ) => [
215- {
216- type : StepType . CONFIGURE ,
217- content : [
218- {
219- type : 'text' ,
220- text : getCrashReportModalConfigDescription ( {
221- link : 'https://docs.sentry.io/platforms/dotnet/guides/google-cloud-functions/user-feedback/configuration/#crash-report-modal' ,
222- } ) ,
223- } ,
224- ] ,
225- } ,
226- ] ,
227- verify : ( ) => [ ] ,
228- nextSteps : ( ) => [ ] ,
229- } ;
230-
231- const docs : Docs = {
232- onboarding,
233- feedbackOnboardingCrashApi : feedback ,
234- crashReportOnboarding,
235- } ;
236-
237- export default docs ;
0 commit comments