-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 45cf883
Showing
28 changed files
with
15,818 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/.wordpress-org | ||
/.git | ||
/.github | ||
/.husky | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
tabSize = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/* | ||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:jsx-a11y/recommended", | ||
"prettier" | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { "jsx": true }, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["react", "jsx-a11y", "prettier"], | ||
"rules": { | ||
"require-await": "error", | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"comma-dangle": ["error", "always-multiline"], | ||
"array-element-newline": ["error", "consistent"], | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"no-multi-spaces": ["error"], | ||
"semi": ["error", "never"], | ||
"space-in-parens": ["error", "never"], | ||
"key-spacing": ["error", { "afterColon": true }], | ||
"space-infix-ops": ["error"], | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
"anonymous": "always", | ||
"named": "never", | ||
"asyncArrow": "always" | ||
} | ||
], | ||
"react/react-in-jsx-scope": "off", | ||
"quote-props": ["error", "as-needed"], | ||
"no-multiple-empty-lines": ["error", { "max": 1 }], | ||
"lines-around-comment": [ | ||
"error", | ||
{ | ||
"beforeBlockComment": true, | ||
"allowBlockStart": true | ||
} | ||
] | ||
}, | ||
"settings": { "react": { "version": "detect" } } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# These are supported funding model platforms | ||
github: [kevinbatdorf] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build development zip file | ||
on: push | ||
jobs: | ||
build: | ||
name: Build zip file | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: npm install and build | ||
run: | | ||
npm ci | ||
npm run build | ||
env: | ||
CI: true | ||
|
||
- name: Package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wavy-divider | ||
retention-days: 5 | ||
path: | | ||
${{ github.workspace }}/ | ||
!${{ github.workspace }}/node_modules/ | ||
!${{ github.workspace }}/.git/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Deploy to WordPress.org | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
tag: | ||
name: Make release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: npm install and build | ||
run: | | ||
npm ci | ||
npm run build | ||
env: | ||
CI: true | ||
|
||
- name: WordPress Plugin Deploy | ||
id: deploy | ||
uses: 10up/action-wordpress-plugin-deploy@stable | ||
with: | ||
generate-zip: true | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: wavy-divider | ||
|
||
- name: Upload release asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ steps.deploy.outputs.zip-path }} | ||
asset_name: ${{ github.event.repository.name }}.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Plugin asset/readme update | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
trunk: | ||
name: Push to WordPress.org | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: WordPress.org plugin asset/readme update | ||
uses: 10up/action-wordpress-plugin-asset-update@stable | ||
continue-on-error: true | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: wavy-divider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
trailingComma: 'all', | ||
tabWidth: 4, | ||
semi: false, | ||
singleQuote: true, | ||
bracketSameLine: true, | ||
overrides: [ | ||
{ | ||
files: ['**/*.html'], | ||
options: { | ||
singleQuote: false, | ||
}, | ||
}, | ||
], | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Wavy Divider - A WordPress block | ||
|
||
A colorful, fun, lightweight divider block to energize your website with character and pizazz | ||
|
||
 | ||
|
||
This wavy SVG divider generator will let you add a simple wavy divider to anywhere on your page, giving you the ability to separate blocks of content with an impressive, professional-looking design element. | ||
|
||
= Features = | ||
- Color settings | ||
- Supports top or bottom shapes | ||
- Stack multiple dividers with group block (see below) | ||
- Gradients - easy to use (see below) | ||
|
||
= Gradients = | ||
|
||
To use a gradient, you need to wrap the Wavy divider in a group block and apply the gradient to your group block. After that, you create a wavy shape and apply a color that matches your content background (e.g. white) | ||
|
||
= Group Block = | ||
|
||
If nesting the wavy divider in a group block, you may want to remove the padding and margins so that the wavy divider will not have spacing around it. To handle this, select the group block, and under "Advanced" add these two classes: | ||
|
||
wavvy-divider-remove-margin | ||
wavvy-divider-remove-padding |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/block.json", | ||
"apiVersion": 2, | ||
"name": "wavy/wavy-divider", | ||
"version": "0.1.0", | ||
"title": "Wavy Divider", | ||
"category": "design", | ||
"attributes": { | ||
"path": { | ||
"type": "string", | ||
"default": "M 0,119.35212059460474 S 4,85.16571336505325 11,141.35683616138658, S 14,192.04456179374984 21,181.3599385574178, S 24,78.45356016565023 31,177.40802259902048, S 34,85.59356919060087 41,57.69293841042929, S 44,179.1166368575346 51,220.44227524613638, S 54,241.09972530754055 61,173.1681642777189, S 64,131.7494653131286 71,160.98512462466036, S 74,270.2457275188618 81,171.93163471852463, S 84,273.66613606102914 91,333.11691727207926, S 94,272.6528417908621 101,210.06832704680085 V 400 H 0 Z" | ||
}, | ||
"height": { | ||
"type": "number", | ||
"default": 400 | ||
}, | ||
"direction": { | ||
"type": "string", | ||
"default": "bottom" | ||
}, | ||
"fill": { | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"opacity": { | ||
"type": "number", | ||
"default": 1 | ||
}, | ||
"points": { | ||
"type": "number", | ||
"default": 7 | ||
}, | ||
"smoothness": { | ||
"type": "string", | ||
"default": "smooth" | ||
} | ||
}, | ||
"description": "A colorful, fun, lightweight divider block to energize your website with character and pizazz", | ||
"supports": { | ||
"html": false, | ||
"color": { | ||
"background": true, | ||
"gradients": false, | ||
"text": false | ||
} | ||
}, | ||
"textdomain": "ebb-separators", | ||
"editorScript": "file:./build/index.js", | ||
"editorStyle": "file:./build/index.css", | ||
"style": "file:./build/style-index.css" | ||
} |
Oops, something went wrong.