Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #513 from ergonode/release-v0.10.0
Browse files Browse the repository at this point in the history
Release v0.10.0
  • Loading branch information
bleto authored Sep 14, 2020
2 parents 102c789 + 8e14446 commit 5e6e187
Show file tree
Hide file tree
Showing 1,745 changed files with 69,416 additions and 48,751 deletions.
215 changes: 151 additions & 64 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,88 +26,175 @@ module.exports = {
'notice',
'cypress',
'markdown',
'simple-import-sort',
'import',
'modules-newline',
],
rules: {
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'import/no-mutable-exports': 'error',
'no-empty-pattern': 'off',
'modules-newline/import-declaration-newline': 'error',
'modules-newline/export-declaration-newline': 'error',
'newline-per-chained-call': 'error',
'object-property-newline': [
'error',
{
allowMultiplePropertiesPerLine: false,
},
],
'array-bracket-newline': [
'error',
{
minItems: 1,
},
],
'object-curly-newline': [
'error',
{
minProperties: 1,
},
],
'array-element-newline': [
'error',
'always',
],
'arrow-parens': [
'error',
'as-needed',
{
requireForBlockBody: true,
},
],
'func-names': 'off',
'simple-import-sort/sort': 'error',
'import/order': 'error',
'import/no-mutable-exports': 'error',
'import/first': 'error',
'import/no-duplicates': 'error',
'notice/notice': [
'error', {
'error',
{
templateFile: './config/.copyright',
messages: {
whenFailedToMatch: "Couldn't find 'License Header', are you sure you added it?",
},
},
],
'import/extensions': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['cypress/**/*.js', '**/**/*.test.js', '**/**/*.spec.js'] }],
'import/no-extraneous-dependencies': 'off',
'no-console': 'off',
'no-alert': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'import/no-unresolved': ['off'],
'import/prefer-default-export': ['off'],
'vue/html-indent': ['error', 4],
'vue/html-closing-bracket-newline': ['off'],
indent: ['error', 4],
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state',
],
}],
camelcase: ['off'],
'class-methods-use-this': ['off'],
'global-require': ['off'],
'import/no-dynamic-require': ['off'],
'import/no-unresolved': [
'off',
],
'import/prefer-default-export': [
'off',
],
'vue/html-indent': [
'error',
4,
],
'vue/html-closing-bracket-newline': [
'off',
],
indent: [
'error',
4,
],
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: [
'state',
],
},
],
camelcase: [
'off',
],
'class-methods-use-this': [
'off',
],
'global-require': [
'off',
],
'import/no-dynamic-require': [
'off',
],
'no-underscore-dangle': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: 'commit' }],
'max-len': ['error', {
code: 100,
ignoreTrailingComments: true,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
'vue/component-name-in-template-casing': ['error',
'no-unused-vars': [
'error',
{
argsIgnorePattern: 'commit',
},
],
'max-len': [
'error',
{
code: 100,
ignoreTrailingComments: true,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
],
'vue/order-in-components': ['error', {
order: [
'el',
'name',
'parent',
'functional',
['delimiters', 'comments'],
['components', 'directives', 'filters'],
'extends',
'mixins',
'beforeRouteEnter',
'beforeRouteUpdate',
'beforeRouteLeave',
'middleware',
'validate',
'inheritAttrs',
'model',
['props', 'propsData'],
'fetch',
'asyncData',
'data',
'computed',
'watch',
'watchQuery',
'LIFECYCLE_HOOKS',
'methods',
'head',
'layout',
['template', 'render'],
'renderError',
'transition',
'loading',
'scrollToTop',
],
}],
'vue/order-in-components': [
'error',
{
order: [
'el',
'name',
'parent',
'functional',
[
'delimiters',
'comments',
],
[
'components',
'directives',
'filters',
],
'extends',
'mixins',
'beforeRouteEnter',
'beforeRouteUpdate',
'beforeRouteLeave',
'middleware',
'validate',
'inheritAttrs',
'model',
[
'props',
'propsData',
],
'fetch',
'asyncData',
'data',
'computed',
'watch',
'watchQuery',
'LIFECYCLE_HOOKS',
'methods',
'head',
'layout',
[
'template',
'render',
],
'renderError',
'transition',
'loading',
'scrollToTop',
],
},
],
'jest/no-commented-out-tests': 'off',
'jest/expect-expect': 'off',
'jest/no-mocks-import': 'off',
Expand Down
40 changes: 20 additions & 20 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ module.exports = {
'@storybook/addon-knobs',
],
webpack: async config => {
config.resolve.alias = {
...config.resolve.alias,
['@Core']: path.resolve(__dirname, '../modules/@ergo/core'),
};
config.resolve.alias = {
...config.resolve.alias,
['@Core']: path.resolve(__dirname, '../modules/@ergonode/core/src'),
};

config.module.rules.push({
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader',
'sass-loader',
{
loader: 'sass-resources-loader',
options: {
resources: path.resolve(__dirname, '../modules/@ergo/core/assets/scss/main.scss')
}
}],
include: path.resolve(__dirname, '../'),
});
config.module.rules.push({
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader',
'sass-loader',
{
loader: 'sass-resources-loader',
options: {
resources: path.resolve(__dirname, '../modules/@ergonode/core/src/assets/scss/main.scss')
}
}],
include: path.resolve(__dirname, '../'),
});

const mdxRules = config.module.rules.filter(({ test }) => {
return String(test) === String(/\.mdx$/) || String(test) === String(/\.(stories|story).mdx$/)
Expand All @@ -54,6 +54,6 @@ module.exports = {
exclude: [path.resolve(__dirname, '../node_modules')]
});

return config
},
return config
},
};
7 changes: 6 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
*/
import '!style-loader!css-loader!sass-loader!./reset-storybook.scss';
import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks';
import { addParameters } from '@storybook/vue';
import {addDecorator, addParameters} from '@storybook/vue';

addDecorator(story => {
document.body.classList.add('app');
document.body.style.position = 'relative';
return story();
})
addParameters({
docs: {
container: DocsContainer,
Expand Down
2 changes: 2 additions & 0 deletions .storybook/reset-storybook.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ time, mark, audio, video {
border: 0;
padding: 0;
margin: 0;
outline: 0;
background: transparent;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
# CHANGELOG
This changelog references the relevant changes.

## CHANGELOG FOR v0.10.0
- feature [#474](https://github.com/ergonode/frontend/issues/474) Channels & exports
- feature [#411](https://github.com/ergonode/frontend/issues/411) Multimedia
- feature - dependencies update
- feature - thumbnails
- feature - user avatar
- feature - grid placeholders
- feature - Lerna implementation
- perf - JSONSchema style performance
- refactor - Global language code url
- refactor - vuex clean architecture
- refactor - e2e test
- refactor - clear module relations
- refactor - advanced filters improvement
- refactor - inputs unification
- refactor - range picker improve
- bugfix - language list crash
- bugfix - Preview grid column
- bugfix - navigation
- bugfix - workflow
- bugfix - select/multiselect filter selection, range filters


## CHANGELOG FOR v0.9.0
- feature [#384](https://github.com/ergonode/frontend/issues/384) Product variants
- feature [#418](https://github.com/ergonode/frontend/issues/418) GridCollectionLayout for product related Grid's
Expand Down
Loading

0 comments on commit 5e6e187

Please sign in to comment.