-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into release/1.0.0
# Conflicts: # autotweet.php # readme.txt
- Loading branch information
Showing
40 changed files
with
8,969 additions
and
8,051 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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"presets": ["@babel/env", "@babel/preset-react"] | ||
"presets": ["@babel/env", "@babel/preset-react"], | ||
"plugins": [ | ||
[ | ||
"@wordpress/babel-plugin-makepot", | ||
{ | ||
"output": "languages/autotweet.pot", | ||
} | ||
], | ||
] | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
assets | ||
dist | ||
webpack.config.js | ||
node_modules | ||
vendor |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"globals": { | ||
"adminAutotweet": "readonly", | ||
"jQuery": "readonly", | ||
"wp": "readonly" | ||
}, | ||
"extends": "@10up/eslint-config" | ||
"extends": "plugin:@wordpress/eslint-plugin/recommended" | ||
} |
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,44 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
eslint: | ||
name: eslint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: install node v12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: npm install | ||
run: npm install | ||
- name: eslint | ||
uses: icrawl/action-eslint@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
job-name: eslint | ||
|
||
test_php: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Install dependencies | ||
run: composer install | ||
- name: Run PHPCS | ||
if: matrix.php-versions == '7.3' | ||
run: composer run lint | ||
- name: Run PHPUnit | ||
run: | | ||
composer run setup-local-tests | ||
composer test |
This file was deleted.
Oops, something went wrong.
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,104 @@ | ||
#autotweet_metabox p::before { | ||
display: inline-block; | ||
margin-left: -1px; | ||
padding-right: 3px; | ||
vertical-align: top; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
#autotweet_metabox pre { | ||
font-size: 11px; | ||
white-space: normal; | ||
} | ||
|
||
.autotweet-prepublish__checkbox .components-base-control__field, .autotweet-prepublish__checkbox-label { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.autotweet-prepublish__checkbox .components-base-control__field { | ||
margin-top: 0.5rem; | ||
} | ||
|
||
.autotweet-prepublish__checkbox-label svg { | ||
margin-right: 0.5rem; | ||
} | ||
|
||
.autotweet-prepublish__message-label { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.autotweet-prepublish__checkbox-row input[type=checkbox].components-checkbox-control__input { | ||
margin-right: 0.5rem; | ||
} | ||
|
||
.autotweet-prepublish__override-row { | ||
padding: 0.5rem 0; | ||
} | ||
|
||
.autotweet-prepublish__override-row .components-button { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.autotweet-post-status { | ||
font-style: italic; | ||
} | ||
|
||
.autotweet-post-status svg { | ||
transform: translate3d(0, 3px, 0); | ||
margin-right: 5px; | ||
} | ||
|
||
#autotweet-icon.pending, | ||
.autotweet-prepublish__checkbox-row .dashicons-twitter.pending { | ||
animation: fadeIn 1s infinite alternate; | ||
color: #00aced; | ||
} | ||
|
||
#autotweet-icon.enabled, | ||
.autotweet-prepublish__checkbox-row .dashicons-twitter.enabled { | ||
color: #00aced; | ||
} | ||
|
||
#autotweet-icon.disabled, | ||
.autotweet-prepublish__checkbox-row .dashicons-twitter.disabled { | ||
color: #72777c; | ||
} | ||
|
||
@keyframes fadeIn { | ||
from { | ||
opacity: 0; | ||
color: #72777c; | ||
} | ||
} | ||
|
||
a#autotweet-edit { | ||
color: #0073aa; | ||
text-decoration: underline; | ||
transition-property: border, background, color; | ||
transition-duration: .05s; | ||
transition-timing-function: ease-in-out | ||
} | ||
|
||
#autotweet-override-body { | ||
margin: 4px 0; | ||
} | ||
|
||
textarea#autotweet-text { | ||
margin: 4px 0 0; | ||
width: 100% | ||
} | ||
span#autotweet-counter-wrap { | ||
background: rgba(0, 0, 0, 0.07); | ||
font-family: Consolas, Monaco, monospace; | ||
} | ||
|
||
span.near-limit { | ||
color: darkorange; | ||
} | ||
|
||
span.over-limit { | ||
color: red; | ||
} |
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
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
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
Oops, something went wrong.