diff --git a/src/App.vue b/src/App.vue index 6ab2f95..46c207f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -41,7 +41,7 @@ export default { this.$store.dispatch('app/ping') // this.$store.dispatch('tiles/getApps') // this.$store.dispatch('tags/getTags') - this.$store.dispatch('tiles/getPossibleApps') + // this.$store.dispatch('tiles/getPossibleApps') this.$store.dispatch('app/getUsers') } } diff --git a/src/components/AppItem.vue b/src/components/AppItem.vue index ebff33c..a8b10ee 100644 --- a/src/components/AppItem.vue +++ b/src/components/AppItem.vue @@ -189,7 +189,7 @@ export default { this.possibletags = this.application.tags || [] } else { const needle = val.toLowerCase() - let tags = this.application.tags || [] + const tags = this.application.tags || [] this.possibletags = tags.filter( v => v.toLowerCase().indexOf(needle) > -1 ) diff --git a/src/components/EditTile.vue b/src/components/EditTile.vue index ebff33c..a8b10ee 100644 --- a/src/components/EditTile.vue +++ b/src/components/EditTile.vue @@ -189,7 +189,7 @@ export default { this.possibletags = this.application.tags || [] } else { const needle = val.toLowerCase() - let tags = this.application.tags || [] + const tags = this.application.tags || [] this.possibletags = tags.filter( v => v.toLowerCase().indexOf(needle) > -1 ) diff --git a/src/components/Tile.vue b/src/components/Tile.vue index 74c2a6c..0a2e1f6 100644 --- a/src/components/Tile.vue +++ b/src/components/Tile.vue @@ -22,16 +22,16 @@ export default { computed: { textColor () { - let bgColor = this.application.color - let lightColor = '#ffffff' - let darkColor = '#000000' - let color = (bgColor.charAt(0) === '#') ? bgColor.substring(1, 7) : bgColor - let alpha = (bgColor.charAt(0) === '#') ? bgColor.substring(7, 9) : bgColor.substring(6, 8) - let r = parseInt(color.substring(0, 2), 16) // hexToR - let g = parseInt(color.substring(2, 4), 16) // hexToG - let b = parseInt(color.substring(4, 6), 16) // hexToB - let a = parseFloat(parseInt((parseInt(alpha, 16) / 255) * 1000) / 1000) - let brightness = r * 0.299 + g * 0.587 + b * 0.114 + (1 - a) * 255 + const bgColor = this.application.color + const lightColor = '#ffffff' + const darkColor = '#000000' + const color = (bgColor.charAt(0) === '#') ? bgColor.substring(1, 7) : bgColor + const alpha = (bgColor.charAt(0) === '#') ? bgColor.substring(7, 9) : bgColor.substring(6, 8) + const r = parseInt(color.substring(0, 2), 16) // hexToR + const g = parseInt(color.substring(2, 4), 16) // hexToG + const b = parseInt(color.substring(4, 6), 16) // hexToB + const a = parseFloat(parseInt((parseInt(alpha, 16) / 255) * 1000) / 1000) + const brightness = r * 0.299 + g * 0.587 + b * 0.114 + (1 - a) * 255 return brightness > 186 ? darkColor : lightColor } }, diff --git a/src/layouts/Setup.vue b/src/layouts/Setup.vue index e8f873b..515fab7 100644 --- a/src/layouts/Setup.vue +++ b/src/layouts/Setup.vue @@ -86,7 +86,6 @@ - @@ -95,13 +94,10 @@ :title="this.$t('select_system_defaults')" icon="add_comment" > - Try out different ad text to see what brings in the most customers, and learn how to - enhance your ads using features like ad extensions. If you run into any problems with - your ads, find out how to tell if they're running and how to resolve approval issues. + Setup is complete! - - + @@ -167,10 +163,13 @@ export default { }, saveSettings () { this.$store.dispatch('app/setDefaults', { - language: this.language, - show_usernames: this.showusername + language: this.language.value, + show_usernames: this.showusername.value }) }, + finish () { + this.$store.dispatch('app/setupComplete') + }, saveUserSettings () { } } diff --git a/src/pages/Index.vue b/src/pages/Index.vue index 62078b3..6bf6f8f 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -1,6 +1,11 @@