Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Sep 15, 2023
1 parent a31b229 commit ab330e3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 25 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ module.exports = {
// watchman: true,
transform: {
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor',
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
Expand Down
8 changes: 8 additions & 0 deletions src/components/account/account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export default {
break
}
return d.toISOString()
} else {
return ''
}
}
},
Expand All @@ -64,6 +66,8 @@ export default {
if ( this.$route.path.search( 'building' ) > 0 || this.$route.path.search( 'compare' ) > 0 ) {
let d = new Date()
return d.toISOString()
} else {
return ''
}
}
},
Expand All @@ -80,6 +84,8 @@ export default {
default:
return 'minute'
}
} else {
return ''
}
}
},
Expand All @@ -96,6 +102,8 @@ export default {
default:
return 15
}
} else {
return ''
}
}
}
Expand Down
18 changes: 3 additions & 15 deletions src/components/account/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@

<script>
import chartController from '@/components/charts/chartController'
import featureController from '@/components/account/featureController'
import { mapGetters } from 'vuex'
export default {
name: 'card',
props: ['block', 'featured'],
components: {
chartController,
featureController
chartController
},
data () {
return {
Expand Down Expand Up @@ -79,6 +76,8 @@ export default {
return 4
} else if ( this.interval === 1 && this.interval_unit === 'month' ) {
return 5
} else {
return ''
}
},
set: function ( v ) {
Expand Down Expand Up @@ -110,17 +109,6 @@ export default {
methods: {
cardSave: async function () {
this.editcard = false
let charts = await this.$refs.featureController.saveCharts()
let block = {
name: this.tempName,
index: this.index,
date_interval: this.interval,
interval_unit: this.interval_unit,
date_start: this.date_start,
date_end: this.date_end,
graph_type: this.graphtype,
charts: charts
}
// this.$store.dispatch('block', block).then(() => {
// this.$refs.chartController.parse()
// })
Expand Down
1 change: 0 additions & 1 deletion src/components/account/featured.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
<script>
import card from '@/components/account/card'
import featureController from '@/components/account/featureController'
import { mapGetters } from 'vuex'
export default {
name: 'featured',
Expand Down
4 changes: 0 additions & 4 deletions src/components/account/storyCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@
</template>

<script>
import mediapicker from '@/components/account/mediapicker.vue'
export default {
name: 'storyCard',
props: ['name', 'description', 'selected', 'media', 'story_id', 'index', 'notools', 'plus', 'group'],
components: {
mediapicker
},
mounted () {
if ( this.media ) {
this.$refs.card.style.background =
Expand Down
4 changes: 0 additions & 4 deletions src/components/admin/campaigns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
@Last modified time: 2019-02-11T10:30:35-08:00
-->

<template></template>

<script>
export default {
name: 'campaigns',
Expand All @@ -23,8 +21,6 @@ export default {

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.meterControl {
}
.meterGroup {
padding-bottom: 1em;
}
Expand Down

0 comments on commit ab330e3

Please sign in to comment.