Skip to content

Commit 485c3c3

Browse files
committed
initial commit
0 parents  commit 485c3c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+14027
-0
lines changed

.cc-metadata.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Whether this GitHub repo is engineering related
2+
engineering_project: true
3+
# Name of the repository/project in English
4+
english_name: WordPress OpenGlam theme
5+
# All technologies used
6+
technologies: PHP, WordPress
7+
# Whether this repository should be featured on the CC Open Source site
8+
featured: false
9+
# Slack channel name
10+
slack: "cc-dev-wordpress"

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Ignore composer files and folders
2+
vendor/
3+
vendor/*
4+
composer.phar
5+
6+
# ignore OS generated files
7+
ehthumbs.db
8+
Thumbs.db
9+
.DS_Store
10+
11+
# ignore all files that start with ~
12+
~*
13+
14+
#ignore node dependency folder
15+
node_modules/
16+
17+
# ignore log files and databases
18+
*.log
19+
*.sql
20+
*.sqlite
21+
22+
# ignore VSCode project files
23+
*.code-workspace

404.php

Whitespace-only changes.

CODE_OF_CONDUCT.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributor Code of Conduct
2+
3+
The Creative Commons team is committed to fostering a welcoming community. This project and all other Creative Commons open source projects are governed by our [Code of Conduct](https://creativecommons.github.io/community/code-of-conduct/). Please report unacceptable behavior to [conduct@creativecommons.org](mailto:conduct@creativecommons.org) per our [reporting guidelines](https://creativecommons.github.io/community/code-of-conduct/enforcement/).
4+
5+
For a history of updates, see the [page history here](https://github.com/creativecommons/creativecommons.github.io-source/commits/master/content/community/code-of-conduct/contents.lr).

CONTRIBUTING.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing to CC Open Source
2+
3+
Thank you for your interest in contributing to CC Open Source! This document is
4+
a set of guidelines to help you contribute to this project.
5+
6+
## Code of Conduct
7+
8+
By participating in this project, you are expected to uphold our [Code of
9+
Conduct][code_of_conduct].
10+
11+
[code_of_conduct]:https://opensource.creativecommons.org/community/code-of-conduct/
12+
13+
## Project Documentation
14+
15+
The `README` in the root of the repository should contain or link to
16+
project documentation. If you cannot find the documentation you're
17+
looking for, please file a GitHub issue with details of what
18+
you'd like to see documented.
19+
20+
## How to Contribute
21+
22+
Please follow the processes in our general [Contributing Code][contributing]
23+
guidelines on the Creative Common Open Source website.
24+
25+
[contributing]:https://opensource.creativecommons.org/contributing-code/
26+
27+
## Questions or Thoughts?
28+
29+
Talk to us on [one of our community forums][community].
30+
31+
[community]:https://opensource.creativecommons.org/community/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Creative Commons
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

assets/css/editor-styles.css

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* This changes the gutenberg editor width size
3+
*/
4+
5+
.wp-block {
6+
max-width: 720px;
7+
}
8+
9+
.wp-block[data-align="wide"] {
10+
max-width: 1280px;
11+
}

assets/css/styles.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/img/CC-logo-black.svg

+3
Loading

assets/img/openglam-logo.svg

+3
Loading

assets/img/top-img.jpg

241 KB
Loading

blocks/.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

blocks/.eslintignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**/*.min.js
2+
**/*.build.js
3+
**/node_modules/**
4+
**/vendor/**
5+
build
6+
coverage
7+
cypress
8+
node_modules
9+
vendor

blocks/.eslintrc.json

+192
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
{
2+
"root": true,
3+
"parser": "babel-eslint",
4+
"extends": [
5+
"wordpress",
6+
"plugin:react/recommended",
7+
"plugin:jsx-a11y/recommended",
8+
"plugin:jest/recommended"
9+
],
10+
"env": {
11+
"browser": false,
12+
"es6": true,
13+
"node": true,
14+
"mocha": true,
15+
"jest/globals": true
16+
},
17+
"parserOptions": {
18+
"sourceType": "module",
19+
"ecmaFeatures": {
20+
"jsx": true
21+
}
22+
},
23+
"globals": {
24+
"wp": true,
25+
"wpApiSettings": true,
26+
"window": true,
27+
"document": true
28+
},
29+
"plugins": ["react", "jsx-a11y", "jest"],
30+
"settings": {
31+
"react": {
32+
"pragma": "wp"
33+
}
34+
},
35+
"rules": {
36+
"array-bracket-spacing": ["error", "always"],
37+
"brace-style": ["error", "1tbs"],
38+
"camelcase": ["error", { "properties": "never" }],
39+
"comma-dangle": ["error", "always-multiline"],
40+
"comma-spacing": "error",
41+
"comma-style": "error",
42+
"computed-property-spacing": ["error", "always"],
43+
"constructor-super": "error",
44+
"dot-notation": "error",
45+
"eol-last": "error",
46+
"eqeqeq": "error",
47+
"func-call-spacing": "error",
48+
"indent": ["error", "tab", { "SwitchCase": 1 }],
49+
"jsx-a11y/label-has-for": [
50+
"error",
51+
{
52+
"required": "id"
53+
}
54+
],
55+
"jsx-a11y/media-has-caption": "off",
56+
"jsx-a11y/no-noninteractive-tabindex": "off",
57+
"jsx-a11y/role-has-required-aria-props": "off",
58+
"jsx-quotes": "error",
59+
"key-spacing": "error",
60+
"keyword-spacing": "error",
61+
"lines-around-comment": "off",
62+
"no-alert": "error",
63+
"no-bitwise": "error",
64+
"no-caller": "error",
65+
"no-console": "error",
66+
"no-const-assign": "error",
67+
"no-debugger": "error",
68+
"no-dupe-args": "error",
69+
"no-dupe-class-members": "error",
70+
"no-dupe-keys": "error",
71+
"no-duplicate-case": "error",
72+
"no-duplicate-imports": "error",
73+
"no-else-return": "error",
74+
"no-eval": "error",
75+
"no-extra-semi": "error",
76+
"no-fallthrough": "error",
77+
"no-lonely-if": "error",
78+
"no-mixed-operators": "error",
79+
"no-mixed-spaces-and-tabs": "error",
80+
"no-multiple-empty-lines": ["error", { "max": 1 }],
81+
"no-multi-spaces": "error",
82+
"no-multi-str": "off",
83+
"no-negated-in-lhs": "error",
84+
"no-nested-ternary": "error",
85+
"no-redeclare": "error",
86+
"no-restricted-syntax": [
87+
"error",
88+
{
89+
"selector":
90+
"ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
91+
"message": "Path access on WordPress dependencies is not allowed."
92+
},
93+
{
94+
"selector": "ImportDeclaration[source.value=/^blocks$/]",
95+
"message": "Use @wordpress/blocks as import path instead."
96+
},
97+
{
98+
"selector": "ImportDeclaration[source.value=/^components$/]",
99+
"message": "Use @wordpress/components as import path instead."
100+
},
101+
{
102+
"selector": "ImportDeclaration[source.value=/^date$/]",
103+
"message": "Use @wordpress/date as import path instead."
104+
},
105+
{
106+
"selector": "ImportDeclaration[source.value=/^editor$/]",
107+
"message": "Use @wordpress/editor as import path instead."
108+
},
109+
{
110+
"selector": "ImportDeclaration[source.value=/^element$/]",
111+
"message": "Use @wordpress/element as import path instead."
112+
},
113+
{
114+
"selector": "ImportDeclaration[source.value=/^i18n$/]",
115+
"message": "Use @wordpress/i18n as import path instead."
116+
},
117+
{
118+
"selector": "ImportDeclaration[source.value=/^data$/]",
119+
"message": "Use @wordpress/data as import path instead."
120+
},
121+
{
122+
"selector": "ImportDeclaration[source.value=/^utils$/]",
123+
"message": "Use @wordpress/utils as import path instead."
124+
},
125+
{
126+
"selector":
127+
"CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
128+
"message": "Translate function arguments must be string literals."
129+
},
130+
{
131+
"selector":
132+
"CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
133+
"message": "Translate function arguments must be string literals."
134+
},
135+
{
136+
"selector":
137+
"CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
138+
"message": "Translate function arguments must be string literals."
139+
}
140+
],
141+
"no-shadow": "error",
142+
"no-undef": "error",
143+
"no-undef-init": "error",
144+
"no-unreachable": "error",
145+
"no-unsafe-negation": "error",
146+
"no-unused-expressions": "error",
147+
"no-unused-vars": "error",
148+
"no-useless-computed-key": "error",
149+
"no-useless-constructor": "error",
150+
"no-useless-return": "error",
151+
"no-var": "error",
152+
"no-whitespace-before-property": "error",
153+
"object-curly-spacing": ["error", "always"],
154+
"padded-blocks": ["error", "never"],
155+
"prefer-const": "error",
156+
"quote-props": ["error", "as-needed"],
157+
"react/display-name": "off",
158+
"react/jsx-curly-spacing": [
159+
"error",
160+
{
161+
"when": "always",
162+
"children": true
163+
}
164+
],
165+
"react/jsx-equals-spacing": "error",
166+
"react/jsx-indent": ["error", "tab"],
167+
"react/jsx-indent-props": ["error", "tab"],
168+
"react/jsx-key": "error",
169+
"react/jsx-tag-spacing": "error",
170+
"react/no-children-prop": "off",
171+
"react/no-find-dom-node": "warn",
172+
"react/prop-types": "off",
173+
"semi": "error",
174+
"semi-spacing": "error",
175+
"space-before-blocks": ["error", "always"],
176+
"space-before-function-paren": ["error", "never"],
177+
"space-in-parens": ["error", "always"],
178+
"space-infix-ops": ["error", { "int32Hint": false }],
179+
"space-unary-ops": [
180+
"error",
181+
{
182+
"overrides": {
183+
"!": true
184+
}
185+
}
186+
],
187+
"template-curly-spacing": ["error", "always"],
188+
"valid-jsdoc": ["error", { "requireReturn": false }],
189+
"valid-typeof": "error",
190+
"yoda": "off"
191+
}
192+
}

blocks/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
3+
## Uncomment line below if you prefer to
4+
## keep compiled files out of version control
5+
# dist/

0 commit comments

Comments
 (0)