-
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.
- Loading branch information
Showing
43 changed files
with
5,250 additions
and
910 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,18 +21,27 @@ jobs: | |
uses: icrawl/action-eslint@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
with: | ||
job-name: eslint | ||
|
||
test_php: | ||
runs-on: ubuntu-latest | ||
services: | ||
mysql: | ||
image: mariadb:10.4 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10 | ||
strategy: | ||
matrix: | ||
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: composer install | ||
- name: Run PHPCS | ||
|
@@ -42,3 +51,8 @@ jobs: | |
run: | | ||
composer run setup-local-tests | ||
composer test | ||
- name: Run WP Acceptance | ||
if: matrix.php-versions == '7.3' || matrix.php-versions == '7.2' | ||
run: | | ||
WP_SNAPSHOTS_DIR=${{ github.workspace }}/.wpsnapshots/ ./vendor/bin/wpsnapshots configure --aws_key=${{ secrets.AWS_ACCESS_KEY }} --aws_secret=${{ secrets.SECRET_ACCESS_KEY }} --user_name="wp-acceptance" [email protected] 10up | ||
./vendor/bin/wpacceptance run |
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,5 +1,6 @@ | ||
.DS_Store | ||
dist | ||
node_modules | ||
screenshots | ||
tests/coverage | ||
vendor |
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
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
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,79 @@ | ||
.autoshare-settings .brand { | ||
display: none; | ||
} | ||
|
||
.autoshare-settings .brand .logo img { | ||
width: 120px; | ||
max-width: 100%; | ||
} | ||
|
||
.autoshare-settings .brand nav a { | ||
display: block; | ||
text-decoration: none; | ||
} | ||
|
||
.autoshare-settings .brand nav a span { | ||
font-size: inherit; | ||
line-height: inherit; | ||
vertical-align: unset; | ||
} | ||
|
||
.autoshare-settings .general-settings:not(.connected), | ||
.autoshare-settings .general-settings:not(.connected) + table { | ||
display: none; | ||
} | ||
|
||
.autoshare-settings .enable-for td { | ||
padding-bottom: 5px; | ||
} | ||
|
||
.autoshare-settings .post-types td { | ||
padding-top: 0; | ||
padding-left: 40px; | ||
} | ||
|
||
.autoshare-settings .credentials-setup ul { | ||
list-style: disc; | ||
padding-left: 25px; | ||
} | ||
|
||
.autoshare-settings .credentials-actions a { | ||
text-decoration: none; | ||
} | ||
|
||
.autoshare-settings .credentials-actions span { | ||
font-size: inherit; | ||
line-height: 1.5; | ||
} | ||
|
||
.autoshare-settings .credentials-setup:not(.connected) .open { | ||
display: none; | ||
} | ||
|
||
.autoshare-settings .credentials-setup.connected .close, | ||
.autoshare-settings .credentials-setup.connected .credentials-instructions, | ||
.autoshare-settings .credentials-setup.connected + table { | ||
display: none; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
.autoshare-settings { | ||
display: flex; | ||
} | ||
|
||
.autoshare-settings form { | ||
width: 70%; | ||
margin-right: 50px; | ||
} | ||
|
||
.autoshare-settings .brand { | ||
display: block; | ||
} | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.autoshare-settings form { | ||
width: 60%; | ||
margin-right: 10%; | ||
} | ||
} |
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
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,29 @@ | ||
( function() { | ||
|
||
document.addEventListener( 'DOMContentLoaded', function() { | ||
var credSetup = document.querySelector( '.credentials-setup' ), | ||
openCredSettingsBtn = credSetup.querySelector( '.open' ), | ||
closeCredSettingsBtn = credSetup.querySelector( '.close' ), | ||
postTypesWrap = document.querySelector( '.post-types' ), | ||
postTypesCheckboxes = document.getElementsByName( 'autoshare-for-twitter[enable_for]' ); | ||
|
||
openCredSettingsBtn.addEventListener( 'click', function() { | ||
credSetup.classList.remove( 'connected' ); | ||
} ); | ||
|
||
closeCredSettingsBtn.addEventListener( 'click', function() { | ||
credSetup.classList.add( 'connected' ); | ||
} ); | ||
|
||
postTypesCheckboxes.forEach( function( item ) { | ||
item.addEventListener( 'change', function( event) { | ||
if ( event.target.value === 'all' ) | ||
return postTypesWrap.classList.add( 'hidden' ); | ||
return postTypesWrap.classList.remove( 'hidden' ); | ||
} ); | ||
} ); | ||
|
||
|
||
} ); | ||
|
||
} )(); |
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.