Skip to content

Commit

Permalink
Close #38 Changed alpha warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dahrens committed Oct 29, 2017
1 parent 5a6f4f2 commit 14e9089
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "barf",
"version": "1.0.0-alpha.7",
"version": "1.0.0-RC1",
"description": "Create a barf plan for your dog(s).",
"author": "Dennis Ahrens <[email protected]>",
"license": "MIT",
Expand Down
21 changes: 7 additions & 14 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,25 @@
</div>
</div>
<router-view></router-view>
<section class="hero is-warning">
<section class="hero is-info">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column is-1">
<span class="icon is-large">
<fa size="4x" icon="exclamation-triangle" />
<fa size="4x" icon="info" />
</span>
</div>
<div class="column">
<h2 class="title">
Alpha Release
Release candidate 1
</h2>
<p class="subtitle">
The app is not ready for production use.
In worst case it might happen that your <strong>inserted data will not be compatible with future versions</strong>.
The app is nearly ready for production use. No new features will be added before the release of version 1.0.0 will take place.
</p>
<p>
If you find any bugs, please <a href="https://github.com/dahrens/barf/issues">report on github</a>
</p>
<p>If you were here before and encounter strange behavior - <a class="has-text-primary" v-on:click="resetApp()">reset all data</a> and reload the page. This removes all local data from the app and a fresh state is enforced.</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -149,14 +150,6 @@ export default {
settings () {
return this.$store.state.settings
}
},
methods: {
resetApp () {
localStorage.removeItem('barf')
},
notificationCount (page) {
return this.$store.getters.notifications(page).length
}
}
}
</script>
Expand Down
6 changes: 5 additions & 1 deletion src/store/migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export const versions = [
'1.0.0-alpha',
'1.0.0-alpha.5',
'1.0.0-alpha.6',
'1.0.0-alpha.7'
'1.0.0-alpha.7',
'1.0.0-RC1'
]

export const migrations = {
Expand Down Expand Up @@ -43,6 +44,9 @@ export const migrations = {
state.ingredients[idx].price = 0.0
state.ingredients[idx].subCategories = subCategoriesNew
}
},
'1.0.0-RC1': (state) => {
// nothing for now
}
}

Expand Down

0 comments on commit 14e9089

Please sign in to comment.