|
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 | | - getCrashReportModalConfigDescription, |
10 | | - getCrashReportModalIntroduction, |
11 | | - getCrashReportSDKInstallFirstBlocks, |
12 | | -} from 'sentry/components/onboarding/gettingStartedDoc/utils/feedbackOnboarding'; |
13 | | -import { |
14 | | - feedbackOnboardingJsLoader, |
15 | | - replayOnboardingJsLoader, |
16 | | -} from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader'; |
17 | 7 | import {t, tct} from 'sentry/locale'; |
18 | 8 | import {getPackageVersion} from 'sentry/utils/gettingStartedDocs/getPackageVersion'; |
19 | 9 |
|
20 | | -type Params = DocsParams; |
21 | | - |
22 | | -const getInstallSnippetPackageManager = (params: Params) => ` |
| 10 | +const getInstallSnippetPackageManager = (params: DocsParams) => ` |
23 | 11 | Install-Package Sentry.AspNet -Version ${getPackageVersion( |
24 | 12 | params, |
25 | 13 | 'sentry.dotnet.aspnet', |
26 | 14 | '3.34.0' |
27 | 15 | )}`; |
28 | 16 |
|
29 | | -const getInstallSnippetEntityFramework = (params: Params) => ` |
| 17 | +const getInstallSnippetEntityFramework = (params: DocsParams) => ` |
30 | 18 | Install-Package Sentry.EntityFramework -Version ${getPackageVersion( |
31 | 19 | params, |
32 | 20 | 'sentry.dotnet.aspnet', |
33 | 21 | '3.34.0' |
34 | 22 | )}`; |
35 | 23 |
|
36 | | -const getConfigureSnippet = (params: Params) => ` |
| 24 | +const getConfigureSnippet = (params: DocsParams) => ` |
37 | 25 | using System; |
38 | 26 | using System.Configuration; |
39 | 27 | using System.Web.Mvc; |
@@ -94,7 +82,7 @@ public class MvcApplication : HttpApplication |
94 | 82 | } |
95 | 83 | `; |
96 | 84 |
|
97 | | -const onboarding: OnboardingConfig = { |
| 85 | +export const onboarding: OnboardingConfig = { |
98 | 86 | install: params => [ |
99 | 87 | { |
100 | 88 | type: StepType.INSTALL, |
@@ -197,62 +185,3 @@ const onboarding: OnboardingConfig = { |
197 | 185 | }, |
198 | 186 | ], |
199 | 187 | }; |
200 | | - |
201 | | -const crashReportOnboarding: OnboardingConfig = { |
202 | | - introduction: () => getCrashReportModalIntroduction(), |
203 | | - install: (params: Params) => [ |
204 | | - { |
205 | | - type: StepType.INSTALL, |
206 | | - content: [ |
207 | | - ...getCrashReportSDKInstallFirstBlocks(params), |
208 | | - { |
209 | | - type: 'text', |
210 | | - text: tct( |
211 | | - 'If you are rendering the page from the server, for example on ASP.NET MVC, the [code:Error.cshtml] razor page can be:', |
212 | | - {code: <code />} |
213 | | - ), |
214 | | - }, |
215 | | - { |
216 | | - type: 'code', |
217 | | - tabs: [ |
218 | | - { |
219 | | - label: 'cshtml', |
220 | | - value: 'html', |
221 | | - language: 'html', |
222 | | - code: `@if (SentrySdk.LastEventId != SentryId.Empty) { |
223 | | - <script> |
224 | | - Sentry.init({ dsn: "${params.dsn.public}" }); |
225 | | - Sentry.showReportDialog({ eventId: "@SentrySdk.LastEventId" }); |
226 | | - </script> |
227 | | -}`, |
228 | | - }, |
229 | | - ], |
230 | | - }, |
231 | | - ], |
232 | | - }, |
233 | | - ], |
234 | | - configure: () => [ |
235 | | - { |
236 | | - type: StepType.CONFIGURE, |
237 | | - content: [ |
238 | | - { |
239 | | - type: 'text', |
240 | | - text: getCrashReportModalConfigDescription({ |
241 | | - link: 'https://docs.sentry.io/platforms/dotnet/guides/aspnet/user-feedback/configuration/#crash-report-modal', |
242 | | - }), |
243 | | - }, |
244 | | - ], |
245 | | - }, |
246 | | - ], |
247 | | - verify: () => [], |
248 | | - nextSteps: () => [], |
249 | | -}; |
250 | | - |
251 | | -const docs: Docs = { |
252 | | - onboarding, |
253 | | - replayOnboardingJsLoader, |
254 | | - crashReportOnboarding, |
255 | | - feedbackOnboardingJsLoader, |
256 | | -}; |
257 | | - |
258 | | -export default docs; |
0 commit comments