@cnamts/vue-cli-plugin-vue-dash
Advanced tools
Comparing version 2.0.0-beta.5 to 2.0.0-beta.6
@@ -42,5 +42,5 @@ const { devDependencies } = require('../../package.json'); | ||
'axios': '^0.21.1', | ||
'core-js': '^3.8.2', | ||
'core-js': '^3.8.3', | ||
'custom-event-polyfill': '^1.0.7', | ||
'dayjs': '^1.10.3', | ||
'dayjs': '^1.10.4', | ||
'languages': '^0.1.3', | ||
@@ -50,35 +50,35 @@ 'vue': '^2.6.12', | ||
'vue-meta': '^2.4.0', | ||
'vue-router': '^3.4.9', | ||
'vuetify': '^2.4.2' | ||
'vue-router': '^3.5.1', | ||
'vuetify': '^2.4.4' | ||
}, | ||
devDependencies: { | ||
'@babel/core': '^7.12.10', | ||
'@babel/core': '^7.12.16', | ||
'@mdi/js': '^5.9.55', | ||
'@types/jest': '^26.0.20', | ||
'@types/webfontloader': '^1.6.32', | ||
'@typescript-eslint/eslint-plugin': '^4.13.0', | ||
'@typescript-eslint/parser': '^4.13.0', | ||
'@vue/cli-plugin-babel': '~4.5.10', | ||
'@vue/cli-plugin-eslint': '~4.5.10', | ||
'@vue/cli-plugin-router': '~4.5.10', | ||
'@vue/cli-plugin-typescript': '~4.5.10', | ||
'@vue/cli-plugin-unit-jest': '~4.5.10', | ||
'@vue/cli-plugin-vuex': '~4.5.10', | ||
'@vue/cli-service': '~4.5.10', | ||
'@typescript-eslint/eslint-plugin': '^4.15.1', | ||
'@typescript-eslint/parser': '^4.15.1', | ||
'@vue/cli-plugin-babel': '~4.5.11', | ||
'@vue/cli-plugin-eslint': '~4.5.11', | ||
'@vue/cli-plugin-router': '~4.5.11', | ||
'@vue/cli-plugin-typescript': '~4.5.11', | ||
'@vue/cli-plugin-unit-jest': '~4.5.11', | ||
'@vue/cli-plugin-vuex': '~4.5.11', | ||
'@vue/cli-service': '~4.5.11', | ||
'@vue/eslint-config-standard': '^6.0.0', | ||
'@vue/eslint-config-typescript': '^7.0.0', | ||
'@vue/test-utils': '^1.1.2', | ||
'eslint': '^7.18.0', | ||
'@vue/test-utils': '^1.1.3', | ||
'eslint': '^7.20.0', | ||
'eslint-plugin-import': '^2.22.1', | ||
'eslint-plugin-node': '^11.1.0', | ||
'eslint-plugin-promise': '^4.2.1', | ||
'eslint-plugin-vue': '^7.4.1', | ||
'eslint-plugin-promise': '^4.3.1', | ||
'eslint-plugin-vue': '^7.6.0', | ||
'jest-serializer-vue': '^2.0.2', | ||
'sass': '^1.32.4', | ||
'sass': '^1.32.7', | ||
'sass-loader': '^10.1.1', | ||
'typescript': '~4.1.3', | ||
'typescript': '~4.1.5', | ||
'vue-class-component': '^7.2.6', | ||
'vue-cli-plugin-vuetify': '^2.0.9', | ||
'vue-cli-plugin-vuetify': '^2.1.0', | ||
'vue-template-compiler': '^2.6.12', | ||
'vuetify-loader': '^1.6.0', | ||
'vuetify-loader': '^1.7.2', | ||
'webfontloader': '^1.6.28', | ||
@@ -89,4 +89,8 @@ 'webpack': '^4.46.0' | ||
'jest': '^26.6.3', | ||
'ts-jest': '^26.4.4', | ||
'ts-jest': '^26.5.1', | ||
'babel-jest': '^26.6.3' | ||
}, | ||
engines: { | ||
'node': '^12 || ^14', | ||
'yarn': '^1.12' | ||
} | ||
@@ -111,3 +115,3 @@ }; | ||
if (options.cypress) { | ||
newPackageProperties.devDependencies['@vue/cli-plugin-e2e-cypress'] = '~4.5.10'; | ||
newPackageProperties.devDependencies['@vue/cli-plugin-e2e-cypress'] = '~4.5.11'; | ||
@@ -118,3 +122,3 @@ newPackageProperties.scripts = {}; | ||
newPackageProperties.resolutions['cypress'] = '^6.2.1'; | ||
newPackageProperties.resolutions['cypress'] = '^6.5.0'; | ||
} | ||
@@ -121,0 +125,0 @@ |
@@ -5,3 +5,2 @@ import axios, { AxiosError, AxiosResponse } from 'axios'; | ||
import { mdiAlert as errorIcon } from '@mdi/js'; | ||
<% if (i18n) { %> | ||
@@ -39,6 +38,5 @@ import common from '@/translations/fr/common'; | ||
// Send notification error | ||
store.dispatch('notification/notify', { | ||
store.dispatch('notification/add', { | ||
type: 'error', | ||
message: errorMessage, | ||
icon: errorIcon | ||
message: errorMessage | ||
}); | ||
@@ -45,0 +43,0 @@ } |
@@ -27,3 +27,3 @@ import Vue from 'vue'; | ||
// Remove notification | ||
store.dispatch('notification/rmNotif'); | ||
store.dispatch('notification/clear'); | ||
<% if (i18n) { %> | ||
@@ -30,0 +30,0 @@ const lang = i18n.locale; |
@@ -10,3 +10,3 @@ import dayjs from 'dayjs'; | ||
*/ | ||
export default function formatDate(date: string | undefined, format = 'DD/MM/YYYY'): string { | ||
export function formatDate(date: string | undefined, format = 'DD/MM/YYYY'): string { | ||
// If no date is provided, return empty string | ||
@@ -13,0 +13,0 @@ // else, format the date |
@@ -1,10 +0,10 @@ | ||
/* | ||
Here are a example service to illustrate | ||
how to do requests with Axios in a service | ||
/** | ||
* Example service to illustrate | ||
* how to do requests with Axios in a service | ||
* | ||
* - The function getAll shows how to do a GET request | ||
* - The function updateStatus shows how to do a POST request with a parameter | ||
* in the URL and a payload | ||
*/ | ||
- The function getAll shows how to do a GET request | ||
- The function updateStatus shows how to do a POST request with a parameter | ||
in the URL and a payload | ||
*/ | ||
import { axios, AxiosResponse } from '@/plugins/axios'; | ||
@@ -11,0 +11,0 @@ |
@@ -12,5 +12,5 @@ /* eslint-disable @typescript-eslint/no-empty-interface */ | ||
// modules/notification | ||
notify: (notification: NotificationObj) => void; | ||
rmNotif: () => void; | ||
addNotification: (notification: NotificationObj) => void; | ||
clearNotification: () => void; | ||
notification: NotificationObj | null; | ||
} |
@@ -14,3 +14,3 @@ export default { | ||
}, | ||
notify: 'Envoyer une notification (exemple)' | ||
sendNotification: 'Envoyer une notification (exemple)' | ||
}; |
@@ -6,4 +6,4 @@ describe('Home page', () => { | ||
it('displays a notification when notify button is pressed', () => { | ||
cy.dataCy('notify').click(); | ||
it('displays a notification when send notification button is pressed', () => { | ||
cy.dataCy('sendNotification').click(); | ||
cy.dataCy('notificationBar').should('have.class', 'v-snack--active'); | ||
@@ -10,0 +10,0 @@ }); |
@@ -7,4 +7,4 @@ describe('NotFound page', () => { | ||
it('contains title and description', () => { | ||
cy.dataCy('errorPage').find('h2').should('exist');; | ||
cy.dataCy('errorPage').find('p').should('exist');; | ||
cy.dataCy('errorPage').find('h2').should('exist'); | ||
cy.dataCy('errorPage').find('p').should('exist'); | ||
}); | ||
@@ -11,0 +11,0 @@ |
{ | ||
"name": "@cnamts/vue-cli-plugin-vue-dash", | ||
"version": "2.0.0-beta.5", | ||
"version": "2.0.0-beta.6", | ||
"description": "Vue CLI plugin to scaffold front-end projects", | ||
@@ -33,4 +33,4 @@ "keywords": [ | ||
"@cnamts/design-tokens": "^2.0.0-beta.4", | ||
"@cnamts/form-builder": "^2.0.0-beta.5", | ||
"@cnamts/vue-dot": "^2.0.0-beta.5" | ||
"@cnamts/form-builder": "^2.0.0-beta.6", | ||
"@cnamts/vue-dot": "^2.0.0-beta.6" | ||
}, | ||
@@ -40,3 +40,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "53616ebefbee1fd464fb7143c85cf783fa9e26ce" | ||
"gitHead": "460ae6e662238a1731ef1c49fd21d7927618af30" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1927
182791