Skip to content

Commit

Permalink
Merge pull request #6 from ajanes93/release/v0.2.0
Browse files Browse the repository at this point in the history
Release/v0.2.0
  • Loading branch information
ajanes93 authored May 30, 2020
2 parents 736f080 + 6fbfe8b commit 446caff
Show file tree
Hide file tree
Showing 18 changed files with 15,758 additions and 288 deletions.
56 changes: 8 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,71 +17,31 @@ Vue.use(VuetifySnackbarQueue)
>Use in templates
```vue
<template>
<v-container grid-list-lg fluid>
<v-layout wrap>
<v-flex xs2>
<v-btn color="primary" @click="addItem">Add to Queue</v-btn>
</v-flex>
</v-layout>
<v-snackbar-queue
:items="items"
@remove="removeItem"
></v-snackbar-queue>
</v-container>
<v-snackbar-queue
:items="items"
@remove="() => {}"
></v-snackbar-queue>
</template>
<script>
export default {
data: () => ({
id: 0,
items: [],
colors: ['warning', 'error', 'info']
}),
methods: {
addItem () {
const vm = this
const index = vm.randomInt(0, 2)
vm.id++
vm.items.push({
id: vm.id,
color: vm.colors[index],
message: 'This is an example alert'
})
},
removeItem (id) {
const vm = this
const index = _.findIndex(vm.items, {id})
if (index !== -1) {
vm.items.splice(index, 1)
}
},
randomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
}
}
}
</script>
```


##Development Setup

### Project setup
```
yarn install
npm install
```

### Compiles and hot-reloads for development
```
yarn run serve
npm run serve
```

### Compiles and minifies for production
```
yarn run build
npm run build
```

### Lints and fixes files
```
yarn run lint
npm run lint
```
6 changes: 3 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
presets: [
'@vue/app'
]
}
344 changes: 344 additions & 0 deletions docs/build/bundle.7991323e.js

Large diffs are not rendered by default.

6,786 changes: 6,786 additions & 0 deletions docs/build/chunk-vendors.bb99bf55.js

Large diffs are not rendered by default.

4,747 changes: 4,747 additions & 0 deletions docs/build/compiler.38ee72f1.js

Large diffs are not rendered by default.

Binary file added docs/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Vuetify Snackbar Queue</title><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel="stylesheet"></head><body><div id="rsg-root"></div><script src="build/chunk-vendors.bb99bf55.js"></script><script src="build/bundle.7991323e.js"></script></body></html>
Loading

0 comments on commit 446caff

Please sign in to comment.