Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBatdorf committed Jan 30, 2022
0 parents commit 45cf883
Show file tree
Hide file tree
Showing 28 changed files with 15,818 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.wordpress-org
/.git
/.github
/.husky
/node_modules
17 changes: 17 additions & 0 deletions .editorconfig
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/*
build/*
50 changes: 50 additions & 0 deletions .eslintrc
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" } }
}
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These are supported funding model platforms
github: [kevinbatdorf]
25 changes: 25 additions & 0 deletions .github/workflows/build-development-zip.yml
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/
38 changes: 38 additions & 0 deletions .github/workflows/release-to-wp-org.yml
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
18 changes: 18 additions & 0 deletions .github/workflows/update-wordpress-readme.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
15 changes: 15 additions & 0 deletions .prettierrc.js
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,
},
},
],
}
Binary file added .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions README.md
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

![alt text](assets/waves.gif "Title")

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
Binary file added assets/waves.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions block.json
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"
}
Loading

0 comments on commit 45cf883

Please sign in to comment.