Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Unused codes removed & bundle size is reduced from 104Kb to 96Kb (~18Kb gzipped)
  • Loading branch information
Pooya Parsa committed Apr 7, 2017
1 parent cdefff4 commit e6cc7b7
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 392 deletions.
55 changes: 2 additions & 53 deletions examples/carousel/demo.html
Original file line number Diff line number Diff line change
@@ -1,65 +1,14 @@
<div id="app">
<!-- Simple -->
<h4>Simple</h4>
<b-carousel>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/ABABAB/-1/0" alt="" data-holder-rendered="true" />
</b-slide>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/E8117F/-1/0" alt="" data-holder-rendered="true" />
</b-slide>
</b-carousel>

<!-- Standard -->
<h4>Standard</h4>
<b-carousel controls :interval="3000" indicators>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/ABABAB/-1/0" alt="" data-holder-rendered="true" />
<div class="carousel-caption d-none d-md-block">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</b-slide>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/E8117F/-1/0" alt="" data-holder-rendered="true" />
<div class="carousel-caption d-none d-md-block">
<h3>Second slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</b-slide>
</b-carousel>

<!-- With no Controls -->
<h4>With no Controls</h4>
<b-carousel :controls="false" :interval="3000" indicators>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/ABABAB/-1/0" alt="" data-holder-rendered="true" />
<div class="carousel-caption d-none d-md-block">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</b-slide>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/E8117F/-1/0" alt="" data-holder-rendered="true" />
<div class="carousel-caption d-none d-md-block">
<h3>Second slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</b-slide>
</b-carousel>

<!-- With no indicators -->
<h4>With no indicators</h4>
<b-carousel :controls="false" :interval="3000" :indicators="false">
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/ABABAB/-1/0" alt="" data-holder-rendered="true" />
<img class="d-block img-fluid" src="http://placeskull.com/600/300/ABABAB/-1/0"/>
<div class="carousel-caption d-none d-md-block">
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</b-slide>
<b-slide>
<img class="d-block img-fluid" src="http://placeskull.com/200/200/E8117F/-1/0" alt="" data-holder-rendered="true" />
<img class="d-block img-fluid" src="http://placeskull.com/600/300/E8117F/-1/0"/>
<div class="carousel-caption d-none d-md-block">
<h3>Second slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
Expand Down
1 change: 0 additions & 1 deletion lib/components/badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<script>
export default {
replace: true,
computed: {
badgeVariant() {
return !this.variant || this.variant === `default` ? `badge-default` : `badge-${this.variant}`;
Expand Down
88 changes: 0 additions & 88 deletions lib/components/button-checkbox.vue

This file was deleted.

33 changes: 0 additions & 33 deletions lib/components/button-group.vue

This file was deleted.

77 changes: 0 additions & 77 deletions lib/components/button-radio.vue

This file was deleted.

10 changes: 4 additions & 6 deletions lib/components/carousel-slide.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<template>
<div class="carousel-item">
<slot></slot>
</div>
<div class="carousel-item">
<slot></slot>
</div>
</template>

<script>
export default {
replace: true
};
export default {};
</script>

0 comments on commit e6cc7b7

Please sign in to comment.