Skip to content

Commit bf9b31c

Browse files
authored
Merge Vue 2 and 3 code blocks (#13142)
There are 2 separate code blocks which take up a lot of space on the page. This change combines them into one, with tabs.
1 parent 2bcbe3a commit bf9b31c

File tree

1 file changed

+3
-7
lines changed
  • docs/platforms/javascript/guides/vue

1 file changed

+3
-7
lines changed

docs/platforms/javascript/guides/vue/index.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
1818

1919
<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay"]} />
2020

21-
Sentry captures data by using an SDK within your applications runtime.
21+
Sentry captures data by using an SDK within your application's runtime.
2222

2323
```bash {tabTitle:npm}
2424
npm install @sentry/vue --save
@@ -38,9 +38,7 @@ Configuration should happen as early as possible in your application's lifecycle
3838

3939
To initialize Sentry in your Vue application, add the following code snippet to your `main.js`:
4040

41-
### Vue 3
42-
43-
```javascript {filename:main.js} {"onboardingOptions": {"performance": "16, 19-25", "session-replay": "17, 29-35"}}
41+
```javascript {tabTitle:Vue 3} {filename:main.js} {"onboardingOptions": {"performance": "16, 19-25", "session-replay": "17, 29-35"}}
4442
import { createApp } from "vue";
4543
import { createRouter } from "vue-router";
4644
import * as Sentry from "@sentry/vue";
@@ -82,9 +80,7 @@ app.use(router);
8280
app.mount("#app");
8381
```
8482

85-
### Vue 2
86-
87-
```javascript {filename:main.js} {"onboardingOptions": {"performance": "15, 18-24", "session-replay": "16, 28-34"}}
83+
```javascript {tabTitle:Vue 2} {filename:main.js} {"onboardingOptions": {"performance": "15, 18-24", "session-replay": "16, 28-34"}}
8884
import Vue from "vue";
8985
import Router from "vue-router";
9086
import * as Sentry from "@sentry/vue";

0 commit comments

Comments
 (0)