|
1 | 1 | import {ExternalLink} from 'sentry/components/core/link'; |
2 | 2 | import type { |
3 | | - Docs, |
4 | 3 | DocsParams, |
5 | 4 | OnboardingConfig, |
6 | 5 | } from 'sentry/components/onboarding/gettingStartedDoc/types'; |
7 | 6 | import {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'; |
14 | 7 | import {t, tct} from 'sentry/locale'; |
15 | 8 | import {getPackageVersion} from 'sentry/utils/gettingStartedDocs/getPackageVersion'; |
16 | 9 |
|
17 | | -type Params = DocsParams; |
18 | | - |
19 | | -const getInstallSnippetPackageManager = (params: Params) => ` |
| 10 | +const getInstallSnippetPackageManager = (params: DocsParams) => ` |
20 | 11 | Install-Package Sentry.AspNetCore -Version ${getPackageVersion( |
21 | 12 | params, |
22 | 13 | 'sentry.dotnet.aspnetcore', |
23 | 14 | '3.34.0' |
24 | 15 | )}`; |
25 | 16 |
|
26 | | -const getInstallSnippetCoreCli = (params: Params) => ` |
| 17 | +const getInstallSnippetCoreCli = (params: DocsParams) => ` |
27 | 18 | dotnet add package Sentry.AspNetCore -v ${getPackageVersion( |
28 | 19 | params, |
29 | 20 | 'sentry.dotnet.aspnetcore', |
30 | 21 | '3.34.0' |
31 | 22 | )}`; |
32 | 23 |
|
33 | | -const getConfigureSnippet = (params: Params) => ` |
| 24 | +const getConfigureSnippet = (params: DocsParams) => ` |
34 | 25 | public class LambdaEntryPoint : Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction |
35 | 26 | { |
36 | 27 | protected override void Init(IWebHostBuilder builder) |
@@ -64,7 +55,7 @@ public class BadController |
64 | 55 | public string Get() => throw null; |
65 | 56 | }`; |
66 | 57 |
|
67 | | -const onboarding: OnboardingConfig = { |
| 58 | +export const onboarding: OnboardingConfig = { |
68 | 59 | introduction: () => |
69 | 60 | tct( |
70 | 61 | 'Sentry provides an integration with AWS Lambda ASP.NET Core Server through the Sentry.AspNetCore NuGet package.', |
@@ -172,31 +163,3 @@ const onboarding: OnboardingConfig = { |
172 | 163 | }, |
173 | 164 | ], |
174 | 165 | }; |
175 | | - |
176 | | -const crashReportOnboarding: OnboardingConfig = { |
177 | | - introduction: () => getCrashReportModalIntroduction(), |
178 | | - install: (params: Params) => getCrashReportGenericInstallSteps(params), |
179 | | - configure: () => [ |
180 | | - { |
181 | | - type: StepType.CONFIGURE, |
182 | | - content: [ |
183 | | - { |
184 | | - type: 'text', |
185 | | - text: getCrashReportModalConfigDescription({ |
186 | | - link: 'https://docs.sentry.io/platforms/dotnet/guides/aws-lambda/user-feedback/configuration/#crash-report-modal', |
187 | | - }), |
188 | | - }, |
189 | | - ], |
190 | | - }, |
191 | | - ], |
192 | | - verify: () => [], |
193 | | - nextSteps: () => [], |
194 | | -}; |
195 | | - |
196 | | -const docs: Docs = { |
197 | | - onboarding, |
198 | | - feedbackOnboardingCrashApi: feedback, |
199 | | - crashReportOnboarding, |
200 | | -}; |
201 | | - |
202 | | -export default docs; |
0 commit comments