@emulsify/core 0.0.0-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/init.js +168 -0
- package/.editorconfig +5 -0
- package/.eslintignore +2 -0
- package/.github/ISSUE_TEMPLATE/BUG_REPORT_TEMPLATE.md +18 -0
- package/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_TEMPLATE.md +11 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +19 -0
- package/.github/dependabot.yml +6 -0
- package/.github/workflows/addtoprojects.yml +21 -0
- package/.github/workflows/contributors.yml +23 -0
- package/.github/workflows/lint.yml +22 -0
- package/.github/workflows/semantic-release.yml +24 -0
- package/.history/.releaserc_20240607133550 +11 -0
- package/.history/.releaserc_20240607134831 +18 -0
- package/.history/.releaserc_20240607135005 +11 -0
- package/.history/package_20240607132936.json +121 -0
- package/.history/package_20240607135135.json +121 -0
- package/.history/package_20240607135150.json +121 -0
- package/.history/package_20240607135242.json +124 -0
- package/.history/package_20240607135251.json +124 -0
- package/.history/package_20240607135337.json +127 -0
- package/.history/package_20240607145546.json +135 -0
- package/.husky/commit-msg +4 -0
- package/.husky/pre-commit +4 -0
- package/.nvmrc +1 -0
- package/.prettierignore +4 -0
- package/.storybook/_drupal.js +27 -0
- package/.storybook/emulsifyTheme.js +38 -0
- package/.storybook/main.js +22 -0
- package/.storybook/manager-head.html +122 -0
- package/.storybook/manager.js +15 -0
- package/.storybook/preview.js +40 -0
- package/.storybook/setupTwig.js +59 -0
- package/.storybook/setupTwig.test.js +33 -0
- package/.storybook/webpack.config.js +67 -0
- package/CODE_OF_CONDUCT.md +56 -0
- package/LICENSE +674 -0
- package/README.md +72 -0
- package/assets/images/corner-bkg.png +0 -0
- package/assets/images/emulsify-logo-sb.svg +8 -0
- package/assets/images/logo.png +0 -0
- package/commitlint.config.js +3 -0
- package/config/.prettierrc.json +4 -0
- package/config/.stylelintrc.json +61 -0
- package/config/a11y.config.js +61 -0
- package/config/babel.config.js +18 -0
- package/config/eslintrc.config.json +68 -0
- package/config/jest.config.js +19 -0
- package/config/postcss.config.js +5 -0
- package/config/webpack/app.js +1 -0
- package/config/webpack/css/style.js +1 -0
- package/config/webpack/css.js +1 -0
- package/config/webpack/loaders.js +87 -0
- package/config/webpack/plugins.js +48 -0
- package/config/webpack/svgSprite.js +5 -0
- package/config/webpack/webpack.common.js +72 -0
- package/config/webpack/webpack.dev.js +7 -0
- package/config/webpack/webpack.prod.js +6 -0
- package/package.json +136 -0
- package/release.config.js +11 -0
- package/scripts/a11y.js +92 -0
- package/scripts/a11y.test.js +159 -0
- package/scripts/loadYaml.js +17 -0
- package/scripts/loadYaml.test.js +30 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Simple Drupal.behaviors usage for Storybook
|
|
2
|
+
|
|
3
|
+
window.Drupal = { behaviors: {} };
|
|
4
|
+
|
|
5
|
+
(function (Drupal, drupalSettings) {
|
|
6
|
+
Drupal.throwError = function (error) {
|
|
7
|
+
setTimeout(function () {
|
|
8
|
+
throw error;
|
|
9
|
+
}, 0);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
Drupal.attachBehaviors = function (context, settings) {
|
|
13
|
+
context = context || document;
|
|
14
|
+
settings = settings || drupalSettings;
|
|
15
|
+
const behaviors = Drupal.behaviors;
|
|
16
|
+
|
|
17
|
+
Object.keys(behaviors).forEach(function (i) {
|
|
18
|
+
if (typeof behaviors[i].attach === 'function') {
|
|
19
|
+
try {
|
|
20
|
+
behaviors[i].attach(context, settings);
|
|
21
|
+
} catch (e) {
|
|
22
|
+
Drupal.throwError(e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
})(Drupal, window.drupalSettings);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Documentation on theming Storybook: https://storybook.js.org/docs/configurations/theming/
|
|
2
|
+
|
|
3
|
+
import { create } from '@storybook/theming';
|
|
4
|
+
|
|
5
|
+
export default create({
|
|
6
|
+
base: 'dark',
|
|
7
|
+
|
|
8
|
+
// UI
|
|
9
|
+
appBg: '#00405B',
|
|
10
|
+
appContentBg: '#e6f5fc',
|
|
11
|
+
appBorderColor: '#99D9F4',
|
|
12
|
+
appBorderRadius: 4,
|
|
13
|
+
|
|
14
|
+
// Typography
|
|
15
|
+
fontBase: '"Mona Sans", sans-serif',
|
|
16
|
+
fontCode: 'monospace',
|
|
17
|
+
|
|
18
|
+
// Text colors
|
|
19
|
+
textColor: 'white',
|
|
20
|
+
textInverseColor: 'rgba(255,255,255,0.9)',
|
|
21
|
+
textMutedColor: '#E6F5FC',
|
|
22
|
+
|
|
23
|
+
// Toolbar default and active colors
|
|
24
|
+
barTextColor: '#005F89',
|
|
25
|
+
barSelectedColor: '#8B1E7E',
|
|
26
|
+
barBg: '#CCECFA',
|
|
27
|
+
|
|
28
|
+
// Form colors
|
|
29
|
+
inputBg: 'red',
|
|
30
|
+
inputBorder: 'silver',
|
|
31
|
+
inputTextColor: '#00202E',
|
|
32
|
+
inputBorderRadius: 4,
|
|
33
|
+
// Branding
|
|
34
|
+
brandTitle: 'Emulsify',
|
|
35
|
+
brandUrl: 'https://emulsify.info',
|
|
36
|
+
brandImage:
|
|
37
|
+
'https://raw.githubusercontent.com/fourkitchens/emulsify-core/main/assets/images/emulsify-logo-sb.svg?token=GHSAT0AAAAAACIEXLVC5R3KBCX6HGKGTBBSZNYFWMA',
|
|
38
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
stories: [
|
|
3
|
+
'../../../components/**/*.stories.@(js|jsx|ts|tsx)',
|
|
4
|
+
],
|
|
5
|
+
addons: [
|
|
6
|
+
'../../@storybook/addon-a11y',
|
|
7
|
+
'../../@storybook/addon-links',
|
|
8
|
+
'../../@storybook/addon-essentials',
|
|
9
|
+
'../../@storybook/addon-themes',
|
|
10
|
+
'../../@storybook/addon-styling-webpack'
|
|
11
|
+
],
|
|
12
|
+
core: {
|
|
13
|
+
builder: 'webpack5',
|
|
14
|
+
},
|
|
15
|
+
framework: {
|
|
16
|
+
name: '@storybook/html-webpack5',
|
|
17
|
+
options: {},
|
|
18
|
+
},
|
|
19
|
+
docs: {
|
|
20
|
+
autodocs: true,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
:root {
|
|
3
|
+
--colors-emulsify-blue-100: #e6f5fc;
|
|
4
|
+
--colors-emulsify-blue-200: #CCECFA;
|
|
5
|
+
--colors-emulsify-blue-300: #99D9F4;
|
|
6
|
+
--colors-emulsify-blue-400: #66c5ef;
|
|
7
|
+
--colors-emulsify-blue-500: #33b2e9;
|
|
8
|
+
--colors-emulsify-blue-600: #009fe4;
|
|
9
|
+
--colors-emulsify-blue-700: #007FB6;
|
|
10
|
+
--colors-emulsify-blue-800: #005f89;
|
|
11
|
+
--colors-emulsify-blue-900: #00405b;
|
|
12
|
+
--colors-emulsify-blue-1000: #00202e;
|
|
13
|
+
--colors-purple: #8B1E7E;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.sidebar-container {
|
|
17
|
+
background: url('https://raw.githubusercontent.com/fourkitchens/emulsify-core/main/assets/images/corner-bkg.png?token=GHSAT0AAAAAACIEXLVDMX56QK3ZIZWHWHTEZNYFYIA') no-repeat top left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sidebar-container .sidebar-subheading {
|
|
21
|
+
color: var(--colors-emulsify-blue-200);
|
|
22
|
+
font-size: 13px;
|
|
23
|
+
letter-spacing: 0.15em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sidebar-container .sidebar-subheading button:focus {
|
|
27
|
+
color: var(--colors-emulsify-blue-300);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Triangle icon **/
|
|
31
|
+
.sidebar-container .sidebar-subheading button span {
|
|
32
|
+
color: var(--colors-emulsify-blue-300);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.sidebar-container .search-field input {
|
|
36
|
+
border-color: var(--colors-emulsify-blue-700);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sidebar-container .search-field input:active {
|
|
40
|
+
border-color: var(--colors-emulsify-blue-700);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sidebar-container .search-result-recentlyOpened,
|
|
44
|
+
.sidebar-container .search-result-back,
|
|
45
|
+
.sidebar-container .search-result-clearHistory {
|
|
46
|
+
color: var(--colors-emulsify-blue-300) !important;
|
|
47
|
+
letter-spacing: 0.15em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sidebar-container .search-result-back span,
|
|
51
|
+
.sidebar-container .search-result-back svg,
|
|
52
|
+
.sidebar-container .search-result-clearHistory span,
|
|
53
|
+
.sidebar-container .search-result-clearHistory svg {
|
|
54
|
+
letter-spacing: normal;
|
|
55
|
+
color: white;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sidebar-container .sidebar-item svg {
|
|
59
|
+
margin-top: 1px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sidebar-container .sidebar-item span {
|
|
63
|
+
margin-top: 4px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sidebar-container .sidebar-subheading-action svg {
|
|
67
|
+
color: var(--colors-emulsify-blue-400);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sidebar-container .sidebar-subheading-action:hover svg {
|
|
71
|
+
color: var(--colors-emulsify-blue-300);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sidebar-header button[title="Shortcuts"] {
|
|
75
|
+
box-shadow: none;
|
|
76
|
+
border: 1px solid var(--colors-emulsify-blue-700);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sidebar-header button[title="Shortcuts"]:active {
|
|
80
|
+
border: 1px solid var(--colors-emulsify-blue-500);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.sidebar-header button[title="Shortcuts"]:focus {
|
|
84
|
+
background: transparent;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#shortcuts {
|
|
88
|
+
border-bottom-color: var(--colors-emulsify-blue-900) !important;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[role="main"]:not(:nth-child(3)) {
|
|
92
|
+
top: 1rem !important;
|
|
93
|
+
height: calc(100vh - 2rem) !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[role="main"] .os-host .os-content button:hover {
|
|
97
|
+
background: var(--colors-emulsify-blue-100);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[role="main"] .os-host .os-content button:hover svg {
|
|
101
|
+
color: var(--colors-emulsify-blue-900);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#panel-tab-content,
|
|
105
|
+
#panel-tab-content>* {
|
|
106
|
+
color: var(--colors-emulsify-blue-1000) !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#panel-tab-content a,
|
|
110
|
+
#panel-tab-content a span,
|
|
111
|
+
#panel-tab-content a span svg {
|
|
112
|
+
color: var(--colors-emulsify-blue-800);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
#panel-tab-content>div>div>div>div>div>div {
|
|
116
|
+
background: transparent;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#panel-tab-content>div>div>div>div>div>div>div {
|
|
120
|
+
color: var(--colors-emulsify-blue-1000) !important;
|
|
121
|
+
}
|
|
122
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { addons } from '@storybook/addons';
|
|
2
|
+
|
|
3
|
+
import emulsifyTheme from './emulsifyTheme';
|
|
4
|
+
|
|
5
|
+
import('../../../config/emulsify-core/storybook/theme')
|
|
6
|
+
.then((customTheme) => {
|
|
7
|
+
addons.setConfig({
|
|
8
|
+
theme: customTheme.default,
|
|
9
|
+
});
|
|
10
|
+
})
|
|
11
|
+
.catch(() => {
|
|
12
|
+
addons.setConfig({
|
|
13
|
+
theme: emulsifyTheme,
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useEffect } from '@storybook/client-api';
|
|
2
|
+
import Twig from 'twig';
|
|
3
|
+
import { setupTwig } from './setupTwig';
|
|
4
|
+
|
|
5
|
+
// GLOBAL CSS
|
|
6
|
+
(async () => {
|
|
7
|
+
let compiled;
|
|
8
|
+
try {
|
|
9
|
+
compiled = await import('../../../dist/css/style.css');
|
|
10
|
+
} catch (e) {}
|
|
11
|
+
})();
|
|
12
|
+
|
|
13
|
+
// Custom theme preview config if it exists.
|
|
14
|
+
(async () => {
|
|
15
|
+
let preview;
|
|
16
|
+
try {
|
|
17
|
+
preview = await import('../../../config/emulsify-core/storybook/preview');
|
|
18
|
+
} catch (e) {}
|
|
19
|
+
})();
|
|
20
|
+
|
|
21
|
+
// If in a Drupal project, it's recommended to import a symlinked version of drupal.js.
|
|
22
|
+
import './_drupal.js';
|
|
23
|
+
|
|
24
|
+
export const decorators = [
|
|
25
|
+
(Story, { args }) => {
|
|
26
|
+
const { renderAs } = args || {};
|
|
27
|
+
|
|
28
|
+
// Usual emulsify hack to add Drupal behaviors.
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
Drupal.attachBehaviors();
|
|
31
|
+
}, [args]);
|
|
32
|
+
return Story();
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
setupTwig(Twig);
|
|
37
|
+
|
|
38
|
+
export const parameters = {
|
|
39
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
40
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const { resolve } = require('path');
|
|
2
|
+
const twigDrupal = require('twig-drupal-filters');
|
|
3
|
+
const twigBEM = require('bem-twig-extension');
|
|
4
|
+
const twigAddAttributes = require('add-attributes-twig-extension');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Fetches project-based variant configuration. If no such configuration
|
|
8
|
+
* exists, returns default values.
|
|
9
|
+
*
|
|
10
|
+
* @returns project-based variant configuration, or default config.
|
|
11
|
+
*/
|
|
12
|
+
const fetchVariantConfig = () => {
|
|
13
|
+
try {
|
|
14
|
+
return require('../../../project.emulsify.json').variant.structureImplementations;
|
|
15
|
+
} catch (e) {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
name: 'base',
|
|
19
|
+
directory: '../../components/00-base',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'atoms',
|
|
23
|
+
directory: '../../components/01-atoms',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'molecules',
|
|
27
|
+
directory: '../../components/02-molecules',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'organisms',
|
|
31
|
+
directory: '../../components/03-organisms',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'templates',
|
|
35
|
+
directory: '../../components/04-templates',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
module.exports.namespaces = {};
|
|
42
|
+
for (const { name, directory } of fetchVariantConfig()) {
|
|
43
|
+
module.exports.namespaces[name] = resolve(__dirname, '../../../', directory);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Configures and extends a standard twig object.
|
|
48
|
+
*
|
|
49
|
+
* @param {Twig} twig - twig object that should be configured and extended.
|
|
50
|
+
*
|
|
51
|
+
* @returns {Twig} configured twig object.
|
|
52
|
+
*/
|
|
53
|
+
module.exports.setupTwig = function setupTwig(twig) {
|
|
54
|
+
twig.cache();
|
|
55
|
+
twigDrupal(twig);
|
|
56
|
+
twigBEM(twig);
|
|
57
|
+
twigAddAttributes(twig);
|
|
58
|
+
return twig;
|
|
59
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
jest.mock('path', () => ({
|
|
2
|
+
resolve: (...paths) => `${paths[1]}${paths[2]}`,
|
|
3
|
+
}));
|
|
4
|
+
jest.mock('twig-drupal-filters', () => jest.fn());
|
|
5
|
+
jest.mock('bem-twig-extension', () => jest.fn());
|
|
6
|
+
jest.mock('add-attributes-twig-extension', () => jest.fn());
|
|
7
|
+
|
|
8
|
+
import Twig from 'twig';
|
|
9
|
+
import twigDrupal from 'twig-drupal-filters';
|
|
10
|
+
import twigBEM from 'bem-twig-extension';
|
|
11
|
+
import twigAddAttributes from 'add-attributes-twig-extension';
|
|
12
|
+
|
|
13
|
+
import { namespaces, setupTwig } from './setupTwig';
|
|
14
|
+
|
|
15
|
+
describe('setupTwig', () => {
|
|
16
|
+
it('sets up a twig object with drupal, bem, and attribute decorations', () => {
|
|
17
|
+
expect.assertions(3);
|
|
18
|
+
setupTwig(Twig);
|
|
19
|
+
expect(twigDrupal).toHaveBeenCalledWith(Twig);
|
|
20
|
+
expect(twigBEM).toHaveBeenCalledWith(Twig);
|
|
21
|
+
expect(twigAddAttributes).toHaveBeenCalledWith(Twig);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it('exports emulsifys namespaces', () => {
|
|
25
|
+
expect(namespaces).toEqual({
|
|
26
|
+
base: '../../../components/00-base',
|
|
27
|
+
atoms: '../../../components/01-atoms',
|
|
28
|
+
molecules: '../../../components/02-molecules',
|
|
29
|
+
organisms: '../../../components/03-organisms',
|
|
30
|
+
templates: '../../../components/04-templates',
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const globImporter = require('node-sass-glob-importer');
|
|
3
|
+
const _StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
4
|
+
const { namespaces } = require('./setupTwig');
|
|
5
|
+
const ESLintPlugin = require('eslint-webpack-plugin');
|
|
6
|
+
|
|
7
|
+
module.exports = async ({ config }) => {
|
|
8
|
+
// Twig
|
|
9
|
+
config.module.rules.push({
|
|
10
|
+
test: /\.twig$/,
|
|
11
|
+
use: [
|
|
12
|
+
{
|
|
13
|
+
loader: 'twig-loader',
|
|
14
|
+
options: {
|
|
15
|
+
twigOptions: {
|
|
16
|
+
namespaces,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// SCSS
|
|
24
|
+
config.module.rules.push({
|
|
25
|
+
test: /\.s[ac]ss$/i,
|
|
26
|
+
use: [
|
|
27
|
+
'style-loader',
|
|
28
|
+
{
|
|
29
|
+
loader: 'css-loader',
|
|
30
|
+
options: {
|
|
31
|
+
sourceMap: true,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
loader: 'sass-loader',
|
|
36
|
+
options: {
|
|
37
|
+
sourceMap: true,
|
|
38
|
+
sassOptions: {
|
|
39
|
+
importer: globImporter(),
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
config.plugins.push(
|
|
47
|
+
new _StyleLintPlugin({
|
|
48
|
+
configFile: path.resolve(__dirname, '../', '.stylelintrc.json'),
|
|
49
|
+
context: path.resolve(__dirname, '../', 'components'),
|
|
50
|
+
files: '**/*.scss',
|
|
51
|
+
failOnError: false,
|
|
52
|
+
quiet: false,
|
|
53
|
+
}),
|
|
54
|
+
new ESLintPlugin({
|
|
55
|
+
context: path.resolve(__dirname, '../', 'components'),
|
|
56
|
+
extensions: ['js'],
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
// YAML
|
|
61
|
+
config.module.rules.push({
|
|
62
|
+
test: /\.ya?ml$/,
|
|
63
|
+
loader: 'js-yaml-loader',
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return config;
|
|
67
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
+
|
|
9
|
+
## Our Standards
|
|
10
|
+
|
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
+
|
|
13
|
+
- Demonstrating empathy and kindness toward other people
|
|
14
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
- Giving and gracefully accepting constructive feedback
|
|
16
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
+
|
|
19
|
+
Examples of unacceptable behavior include:
|
|
20
|
+
|
|
21
|
+
- The use of sexualized language or imagery, and sexual attention or
|
|
22
|
+
advances of any kind
|
|
23
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
24
|
+
- Public or private harassment
|
|
25
|
+
- Publishing others' private information, such as a physical or email
|
|
26
|
+
address, without their explicit permission
|
|
27
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
28
|
+
professional setting
|
|
29
|
+
|
|
30
|
+
## Enforcement Responsibilities
|
|
31
|
+
|
|
32
|
+
Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
33
|
+
|
|
34
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
35
|
+
|
|
36
|
+
## Scope
|
|
37
|
+
|
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
39
|
+
|
|
40
|
+
## Enforcement
|
|
41
|
+
|
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project maintainers responsible for enforcement at [howdy@fourkitchens.com](mailto:howdy@fourkitchens.com). All complaints will be reviewed and investigated promptly and fairly.
|
|
43
|
+
|
|
44
|
+
All project maintainers are obligated to respect the privacy and security of the reporter of any incident.
|
|
45
|
+
|
|
46
|
+
## Attribution
|
|
47
|
+
|
|
48
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
|
49
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
50
|
+
|
|
51
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
52
|
+
|
|
53
|
+
[homepage]: https://www.contributor-covenant.org
|
|
54
|
+
|
|
55
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
56
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|