Skip to content

Commit a39b783

Browse files
chore: edit screenshots to reduce file size (#1102)
1 parent 66731df commit a39b783

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed
-512 KB
Loading
-458 KB
Loading
-443 KB
Loading
Loading

src/.vuepress/public/images/sfc.png

-89.6 KB
Loading

src/cookbook/debugging-in-vscode.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ We're assuming the port to be `8080` here. If it's not the case (for instance, i
4141

4242
Click on the Debugging icon in the Activity Bar to bring up the Debug view, then click on the gear icon to configure a launch.json file, selecting **Chrome/Firefox: Launch** as the environment. Replace content of the generated launch.json with the corresponding configuration:
4343

44-
![Add Chrome Configuration](/images/config_add.png)
44+
<div style="padding: 10px 25px 30px"><img src="/images/config_add.png" alt="Add Chrome Configuration" style="width: 690px; border-radius: 3px; box-shadow: 0 10px 15px rgb(0 0 0 / 50%)"></div>
4545

4646
```json
4747
{
@@ -74,7 +74,8 @@ Click on the Debugging icon in the Activity Bar to bring up the Debug view, then
7474

7575
1. Set a breakpoint in **src/components/HelloWorld.vue** on `line 90` where the `data` function returns a string.
7676

77-
![Breakpoint Renderer](/images/breakpoint_set.png)
77+
<div style="padding: 10px 25px 30px"><img src="/images/breakpoint_set.png" alt="Breakpoint Renderer" style="width: 690px; border-radius: 3px; box-shadow: 0 10px 15px rgb(0 0 0 / 50%)"></div>
78+
7879

7980
2. Open your favorite terminal at the root folder and serve the app using Vue CLI:
8081

@@ -86,7 +87,7 @@ npm run serve
8687

8788
4. Your breakpoint should now be hit as a new browser instance opens `http://localhost:8080`.
8889

89-
![Breakpoint Hit](/images/breakpoint_hit.png)
90+
<div style="padding: 10px 25px 30px"><img src="/images/breakpoint_hit.png" alt="Breakpoint Hit" style="width: 690px; border-radius: 3px; box-shadow: 0 10px 15px rgb(0 0 0 / 50%)"></div>
9091

9192
## Alternative Patterns
9293

src/guide/single-file-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ All of these are solved by **single-file components** with a `.vue` extension, m
1515

1616
Here's an example of a file we'll call `Hello.vue`:
1717

18-
<a href="https://codepen.io/team/Vue/pen/3de13b5cd0133df4ecf307b6cf2c5f94" target="_blank" rel="noopener noreferrer"><img src="/images/sfc.png" width="403" alt="Single-file component example (click for code as text)" style="display: block; margin: 15px auto; max-width: 100%"></a>
18+
<div style="padding: 10px 0 30px"><a href="https://codepen.io/team/Vue/pen/3de13b5cd0133df4ecf307b6cf2c5f94" target="_blank" rel="noopener noreferrer" title="Click for code as text"><img src="/images/sfc.png" width="292" alt="Single-file component example (click for code as text)" style="border-radius: 5px; box-shadow: 0 13px 20px rgb(0 0 0 / 50%); margin: 0 auto; display: block;"></a></div>
1919

2020
Now we get:
2121

@@ -25,7 +25,7 @@ Now we get:
2525

2626
As promised, we can also use preprocessors such as Pug, Babel (with ES2015 modules), and Stylus for cleaner and more feature-rich components.
2727

28-
<a href="https://codesandbox.io/s/vue-single-file-component-with-pre-processors-mr3ik?file=/src/App.vue" target="_blank" rel="noopener noreferrer"><img src="/images/sfc-with-preprocessors.png" width="563" alt="Single-file component with pre-processors example (click for code as text)" style="display: block; margin: 15px auto; max-width: 100%"></a>
28+
<div style="padding: 10px 0 30px"><a href="https://codesandbox.io/s/vue-single-file-component-with-pre-processors-mr3ik?file=/src/App.vue" target="_blank" rel="noopener noreferrer" title="Click for code as text"><img src="/images/sfc-with-preprocessors.png" width="452" alt="Single-file component with pre-processors example (click for code as text)" style="border-radius: 5px; box-shadow: 0 13px 20px rgb(0 0 0 / 50%); margin: 0 auto; display: block;"></a></div>
2929

3030
These specific languages are only examples. You could as easily use TypeScript, SCSS, PostCSS, or whatever other preprocessors that help you be productive. If using Webpack with `vue-loader`, it also has first-class support for CSS Modules.
3131

0 commit comments

Comments
 (0)