Eslint fix vue

pull/15777/head
Jesús Arroyo Torrens 4 years ago
parent 07a577c23d
commit c863930edf

@ -165,7 +165,7 @@ export default {
if (this.isPublicWebsite) {
window.location.replace(this.getFormURL());
} else {
this.$store.dispatch('catalog/requestDataset', { user: this.$store.state.user, dataset: this.dataset })
this.$store.dispatch('catalog/requestDataset', { user: this.$store.state.user, dataset: this.dataset });
}
},
showModal (mode) {

@ -30,7 +30,7 @@ export default {
},
computed: {
...mapState({
filterMetadata: function(state) {
filterMetadata (state) {
return state.catalog.filtersAvailable[this.filterId];
}
}),

@ -186,12 +186,10 @@ export default {
},
activeSuggestedFilter (suggestedFilter) {
const newFilter = {};
const currentFilter = this.$store.state.catalog.filter.categories[
suggestedFilter.category
];
const currentFilter = this.$store.state.catalog.filter.categories[suggestedFilter.category];
newFilter[suggestedFilter.category] = [
...currentFilter,
{id:suggestedFilter.option.id, name:suggestedFilter.option.name}
{id: suggestedFilter.option.id, name: suggestedFilter.option.name}
];
this.$store.commit('catalog/setFilter', newFilter);
},

@ -43,10 +43,10 @@ export default {
},
computed: {
...mapState({
filter: state => state.catalog.filter,
filter: state => state.catalog.filter
}),
searchText () {
return this.filter.searchText
return this.filter.searchText;
}
},
methods: {
@ -61,7 +61,7 @@ export default {
watch: {
searchText: {
immediate: true,
handler(newValue) {
handler (newValue) {
this.filterText = newValue;
}
}

@ -1,5 +1,5 @@
<template>
<span
<span
class="title is-xsmall is-semibold typeBadge"
:class="{
'is-kuviz': isKuviz && !inCondensedCard,
@ -48,4 +48,4 @@ export default {
}
}
</style>
</style>

@ -62,4 +62,4 @@ export default {
height: 16px;
}
}
</style>
</style>

@ -8,7 +8,7 @@
export default {
name: 'Page'
}
};
</script>
<style scoped lang="scss">

@ -295,7 +295,7 @@ export default {
dataset: this.dataset
});
}
//GTM event trigger
// GTM event trigger
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: 'requestDataset' });
},

@ -86,18 +86,17 @@
import SectionTitle from 'new-dashboard/components/SectionTitle';
import { mapState } from 'vuex';
import Button from 'new-dashboard/components/Button';
import DatasetListItem from 'new-dashboard/components/Catalog/browser/DatasetListItem';
import FilterBox from 'new-dashboard/components/Catalog/browser/FilterBox';
import FilterSummary from 'new-dashboard/components/Catalog/browser/FilterSummary';
import LoadingBar from 'new-dashboard/components/Catalog/browser/LoadingBar';
import Pager from 'new-dashboard/components/Catalog/browser/Pager';
import SearchBox from 'new-dashboard/components/Catalog/browser/SearchBox';
import Button from 'new-dashboard/components/Button';
import DatasetListItem from 'new-dashboard/components/Catalog/browser/DatasetListItem';
import FilterBox from 'new-dashboard/components/Catalog/browser/FilterBox';
import FilterSummary from 'new-dashboard/components/Catalog/browser/FilterSummary';
import LoadingBar from 'new-dashboard/components/Catalog/browser/LoadingBar';
import Pager from 'new-dashboard/components/Catalog/browser/Pager';
import SearchBox from 'new-dashboard/components/Catalog/browser/SearchBox';
import { filtersMetadata } from 'new-dashboard/utils/catalog/constants';
import { toTitleCase } from 'new-dashboard/utils/catalog/string-to-title-case';
import icon_by_environment from 'new-dashboard/mixins/catalog/icon_by_environment';
export default {
name: 'CatalogPage',
mixins: [icon_by_environment],
@ -162,7 +161,7 @@ export default {
hideFilters () {
this.filterDetail = false;
},
getFilterLabel(filterId) {
getFilterLabel (filterId) {
return filtersMetadata[filterId]
? filtersMetadata[filterId].label
: toTitleCase(filterId);
@ -170,7 +169,7 @@ export default {
navigateToContact () {
window.open('https://carto.com/contact/', '_blank');
},
goToPage(pageNum) {
goToPage (pageNum) {
this.$store.dispatch('catalog/setPage', pageNum);
}
},
@ -312,4 +311,4 @@ input::-ms-clear {
opacity: 0;
}
</style>
</style>

@ -148,7 +148,7 @@ export default {
components: {
NotAvailable
},
data() {
data () {
return {
tooltip: {
visible: false,
@ -162,7 +162,7 @@ export default {
},
watch: {
dataset: {
handler: function(value) {
handler (value) {
if (value && value.category_name) {
sendCustomDimensions(
value.category_name,

@ -106,7 +106,7 @@ export default {
name: 'CatalogDatasetSummary',
watch: {
dataset: {
handler: function(value) {
handler (value) {
if (value && value.category_name) {
sendCustomDimensions(
value.category_name,

@ -38,8 +38,7 @@ export default {
return isAllowed(this.$route.params.filter);
},
showDataCatalog () {
return true;
// return !accounts.accountsWithDataCatalogLimits.includes(this.planAccountType);
return !accounts.accountsWithDataCatalogLimits.includes(this.planAccountType);
}
}
};

@ -136,7 +136,7 @@ export default {
},
watch: {
datasets: {
handler: function () {
handler () {
if (this.datasets && Object.values(this.datasets).length) {
if (this.datasetId && this.createVis) {
const selectedDataset = Object.values(this.datasets).find(elem => elem.name === this.datasetId);

@ -102,7 +102,7 @@
"copy-webpack-plugin": "^4.5.1",
"css-loader": "^0.28.11",
"csswring": "^3.0.5",
"eslint": "~4.8.0",
"eslint": "^4.8.0",
"eslint-config-semistandard": "~11.0.0",
"eslint-config-standard": "~10.2.1",
"eslint-plugin-import": "~2.7.0",
@ -217,9 +217,9 @@
"test:new_dashboard:ci": "jest --config lib/assets/test/spec/new-dashboard/unit/jest.conf.js",
"test:new_dashboard:update": "jest --config lib/assets/test/spec/new-dashboard/unit/jest.conf.js --updateSnapshot",
"test:editor": "grunt affected_editor_specs",
"lint": "eslint .",
"lint": "eslint . --ext .js,.vue",
"lint:fix": "eslint . --ext .js,.vue --fix",
"lint:css": "stylelint './app/assets/stylesheets/**/*.scss'",
"lint:fix": "eslint . --fix",
"bump": "npm --no-git-tag-version version prerelease --preid=assets",
"postversion": "git add package.json package-lock.json && git commit -m 'Bump assets version' && git push",
"update-internal-deps": "rm -rf node_modules && npm install",

Loading…
Cancel
Save