Skip to content

Commit

Permalink
Merge pull request #68 from morkro/release/1.5.1
Browse files Browse the repository at this point in the history
Release 1.5.1
  • Loading branch information
morkro authored Nov 10, 2018
2 parents f51a49d + 8598087 commit 2257b75
Show file tree
Hide file tree
Showing 12 changed files with 1,608 additions and 870 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented here.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.5.1] - 2018-11-10

### Added
- Added plant name to header when scrolling down.

### Changed
- Header height is now slightly reduced

### Fixed
- Login/Logout button size in settings menu.
- An info layer when the application is offline should now actually show up.

## [1.5.0] - 2018-10-31

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</h1>

<p align="center">
Current version: <code>1.5.0</code> <a href="CHANGELOG.md">(Changelog)</a>
Current version: <code>1.5.1</code> <a href="CHANGELOG.md">(Changelog)</a>
</p>

<p align="center">
Expand Down
2,391 changes: 1,556 additions & 835 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "happy-plants",
"version": "1.5.0",
"version": "1.5.1",
"private": true,
"scripts": {
"serve": "npm run svg && vue-cli-service serve",
Expand All @@ -12,8 +12,8 @@
},
"dependencies": {
"blob-util": "^2.0.2",
"firebase": "^5.5.5",
"localforage": "^1.7.2",
"firebase": "^5.5.7",
"localforage": "^1.7.3",
"localforage-startswith": "^1.4.0",
"lodash.throttle": "^4.1.1",
"normalize.css": "^8.0.0",
Expand All @@ -32,11 +32,11 @@
"devDependencies": {
"@ascendancyy/vue-cli-plugin-stylelint": "^1.1.0",
"@babel/core": "^7.1.2",
"@vue/cli-plugin-babel": "^3.0.5",
"@vue/cli-plugin-eslint": "^3.0.5",
"@vue/cli-plugin-pwa": "^3.0.5",
"@vue/cli-plugin-unit-jest": "^3.0.5",
"@vue/cli-service": "^3.0.5",
"@vue/cli-plugin-babel": "^3.1.1",
"@vue/cli-plugin-eslint": "^3.1.4",
"@vue/cli-plugin-pwa": "^3.1.1",
"@vue/cli-plugin-unit-jest": "^3.1.1",
"@vue/cli-service": "^3.1.2",
"@vue/eslint-config-standard": "^3.0.5",
"@vue/test-utils": "^1.0.0-beta.20",
"babel-core": "7.0.0-bridge.0",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"sizes": "576x576"
}
]
}
}
7 changes: 2 additions & 5 deletions src/app/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@
showIconBackdrop: state => state.appheader.showIconBackdrop
}),
canSeeOfflineNotification () {
return (
this.storageType === 'cloud' &&
this.authenticated
)
return this.storageType === 'cloud'
}
},
Expand Down Expand Up @@ -184,7 +181,7 @@
},
mounted () {
if (!this.applicationOnline && this.canSeeOfflineNotification) {
if (this.applicationOnline === false && this.canSeeOfflineNotification) {
this.showNotification({ message: 'You are currently offline.' })
}
window.addEventListener('online', this.setApplicationOnline)
Expand Down
14 changes: 3 additions & 11 deletions src/app/plant/Plant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
this.updateAppHeader({
transparent: show,
iconColor: this.headerInView ? 'white' : this.defaultIconColor,
title: this.headerInView ? false : this.plant.name,
showIconBackdrop: this.headerInView
})
},
Expand Down Expand Up @@ -268,29 +269,20 @@
}
},
created () {
mounted () {
this.updateAppHeader({
transparent: true,
title: false,
backBtn: true,
backBtnPath: '/',
settingsBtn: 'edit',
settingsBtnOnClick: this.openPlantEditModal,
iconColor: this.headerInView ? 'white' : this.defaultIconColor,
showIconBackdrop: true
})
},
mounted () {
this.loadPlantItem(this.$route.params.id)
},
updated () {
// this.updateAppHeader({
// iconColor: this.headerInView ? 'white' : this.defaultIconColor,
// showIconBackdrop: this.headerInView
// })
},
beforeDestroy () {
this.updateAppHeader({
transparent: false,
Expand Down
5 changes: 4 additions & 1 deletion src/app/settings/components/SettingsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@
.menu-user span {
font-size: var(--text-size-xsmall);
word-break: break-all;
padding-right: var(--base-gap);
@nest .menu-user > div > & {
padding-right: var(--base-gap);
}
& strong {
display: block;
Expand Down
17 changes: 13 additions & 4 deletions src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<slot name="custom-action-left" />
</div>

<div @click="scrollTop">
<div class="header-title" @click="scrollTop">
<slot name="title" />
</div>

Expand Down Expand Up @@ -129,8 +129,10 @@
& h1 {
text-transform: uppercase;
color: var(--text-color-base);
margin: 0 var(--base-gap);
padding: var(--base-gap) 0;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
&.transparent {
Expand Down Expand Up @@ -178,6 +180,12 @@
}
}
.app-header .header-title {
flex-shrink: 1;
overflow: hidden;
padding: 0 var(--base-gap);
}
.app-header .header-ctrl {
width: var(--app-header-size);
min-height: var(--app-header-size);
Expand All @@ -190,8 +198,8 @@
position: absolute;
top: 50%;
left: 50%;
width: calc(var(--icon-size-base) * 2.5);
height: calc(var(--icon-size-base) * 2.5);
width: calc(var(--icon-size-base) * 2);
height: calc(var(--icon-size-base) * 2);
transform: translate(-50%, -50%);
z-index: -1;
}
Expand All @@ -202,6 +210,7 @@
& a,
& button {
color: var(--text-color-base);
width: var(--app-header-size);
min-height: var(--app-header-size);
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/components/LazyImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img
:data-src="source"
:alt="alt"
:title="title">
:title="title || alt">
</figure>
</template>

Expand All @@ -20,7 +20,7 @@
props: {
source: { type: String, required: true },
alt: { type: String, required: true },
title: { type: String, required: true }
title: { type: String, default: '' }
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
--app-mobile-max-size: 600px;
--app-desktop-min-size: 1100px;
--app-desktop-max-width: 1000px;
--app-header-size: 60px;
--app-footer-size: calc(var(--app-header-size) / 1.2);
--app-header-size: 50px;
--app-footer-size: var(--app-header-size);

--border-radius: 6px;
--base-gap: 15px;
Expand Down
4 changes: 4 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ module.exports = {
stylelint: {
fix: false
}
},

pwa: {
name: 'HappyPlants'
}
}

0 comments on commit 2257b75

Please sign in to comment.