Skip to content

Commit

Permalink
style: code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
selimdoyranli committed May 8, 2023
1 parent a4de217 commit 734250e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
56 changes: 28 additions & 28 deletions dev/vue2/cdn_usage.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="../../dist/vue2/v-lazy-component.global.min.js"></script>
</head>
<body>
<div id="app">
<h1>Scroll down</h1>
<div style="height: 150vh;"></div>

<lazy-component>
<h2>My Component</h2>

<template #placeholder>
<h2>Loading...</h2>
</template>
</lazy-component>
</div>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="../../dist/vue2/v-lazy-component.global.min.js"></script>
</head>
<body>
<div id="app">
<h1>Scroll down</h1>
<div style="height: 150vh"></div>

<script>
new Vue({
el: "#app"
});
<lazy-component>
<h2>My Component</h2>

Vue.use(LazyComponent);
</script>
</body>
<template #placeholder>
<h2>Loading...</h2>
</template>
</lazy-component>
</div>

<script>
new Vue({
el: '#app'
})

Vue.use(LazyComponent)
</script>
</body>
</html>
56 changes: 28 additions & 28 deletions dev/vue3/cdn_usage.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="../../dist/vue3/v-lazy-component.global.js"></script>
</head>
<body>
<div id="app">
<h1>Scroll down</h1>
<div style="height: 150vh;"></div>

<lazy-component>
<h2>My Component</h2>

<template #placeholder>
<h2>Loading...</h2>
</template>
</lazy-component>
</div>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="../../dist/vue3/v-lazy-component.global.js"></script>
</head>
<body>
<div id="app">
<h1>Scroll down</h1>
<div style="height: 150vh"></div>

<script>
const app = Vue.createApp({})

app.use(LazyComponent)
<lazy-component>
<h2>My Component</h2>

app.mount('#app')
</script>
</body>
<template #placeholder>
<h2>Loading...</h2>
</template>
</lazy-component>
</div>

<script>
const app = Vue.createApp({})

app.use(LazyComponent)

app.mount('#app')
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"lint:eslint:fix": "eslint --fix --ext .js,.ts,.json,.vue,.pug --ignore-path .gitignore --ignore-path .eslintignore .",
"lint:stylelint": "stylelint \"**/*.{css,sass,scss,less,stylus,vue}\" --ignore-path .stylelintignore",
"lint:stylelint:fix": "stylelint --fix \"**/*.{css,sass,scss,less,stylus,vue}\" --ignore-path .stylelintignore",
"prettier": "prettier --ext .js,.ts,.json,.css,.scss,.less,.stylus,.vue,.html,.pug --config ./.prettierrc.js --ignore-path ./.prettierignore --write --end-of-line crlf"
"prettier": "prettier --config ./.prettierrc.js --ignore-path ./.prettierignore --write \"**/*.{js,ts,json,css,scss,vue,html,pug}\" --end-of-line crlf"
},
"lint-staged": {
"*.{ts,js,vue}": [
Expand Down

0 comments on commit 734250e

Please sign in to comment.