Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue to sync playground-ready with newest PRs on main #129

Merged
merged 28 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
433d359
Prevent Recursion on certain Host name patterns (#69)
namithj Oct 29, 2024
828071a
Playground ready updating into main (#71)
asirota Oct 29, 2024
94e732e
`Add New Plugin`: Remove 'Featured' and 'Favorites' tabs when API rew…
costdev Nov 1, 2024
7336a51
`Add New Theme`: Remove 'Favorites' filter tab when API rewrite is en…
costdev Nov 1, 2024
74e2a58
Add PHPUnit. (#87)
costdev Nov 1, 2024
6d14131
`Plugins Screens`: Initialize in `Controller::__construct()`. (#89)
costdev Nov 1, 2024
802a269
`Workflows`: Fix PHP version and add more workflow triggers. (#92)
costdev Nov 1, 2024
bb0d77a
`Tests`: Ensure options are not set when tests run. (#95)
costdev Nov 2, 2024
c3ca998
Warning when debug-aspire-update.log doesnt exist (#109)
namithj Nov 3, 2024
ea11ffb
`Tests`: Add default coverage settings. (#97)
costdev Nov 3, 2024
8c201e8
Improve I18N Issues Based on version 0.5 (#104)
alexclassroom Nov 3, 2024
1629ad6
Fixes Settings not getting saved when rewrites were turned off (#108)
namithj Nov 3, 2024
c6b9acb
Add French Translation (#105)
sebastienserre Nov 3, 2024
1b30e71
I18n fr fr (#113)
sebastienserre Nov 4, 2024
c93691f
Translations loading fix112 (#114)
sebastienserre Nov 4, 2024
90222a5
#110 (#116)
namithj Nov 4, 2024
2d13623
Add nonce verification and sanitize `$_REQUEST/$_GET` values. (#115)
costdev Nov 4, 2024
b239880
Added German Translation (#111)
harikrishnanr994 Nov 4, 2024
f9ff7b8
Voltron has landed. (#117)
namithj Nov 4, 2024
02ec059
`Admin Settings`: Delete all settings when the plugin is uninstalled.…
costdev Nov 4, 2024
46cd8f1
add multisite support (#102)
afragen Nov 4, 2024
0951af0
accidentally deleted (#124)
afragen Nov 4, 2024
5de28a1
Add `.editorconfig`. (#123)
costdev Nov 4, 2024
a2f31b0
create zip with each new tagged release (#121)
afragen Nov 4, 2024
25fccad
Merge branch 'playground-ready' into main
asirota Nov 5, 2024
950d73c
Cleanup after `.editorconfig` was added to the repository. (#126)
costdev Nov 5, 2024
c8238ba
Add coding standard. (#127)
costdev Nov 5, 2024
072fcd1
Merge branch 'playground-ready' into main
asirota Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .cache/.gitkeep
Empty file.
85 changes: 85 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: PHP coding standards

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
# Runs the PHP coding standards checks.
#
# Violations are reported inline with annotations.
#
# Performs the following steps:
# - Checks out the repository.
# - Sets up PHP.
# - Configures caching for PHPCS scans.
# - Installs Composer dependencies.
# - Make Composer packages available globally.
# - Runs PHPCS on the full codebase (warnings excluded).
# - Generate a report for displaying issues as pull request annotations.
# - Runs PHPCS on the `tests` directory without (warnings included).
# - Generate a report for displaying `test` directory issues as pull request annotations.
# - Ensures version-controlled files are not modified or deleted.
phpcs:
name: Run coding standards checks
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 20

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

- name: Set up PHP
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
coverage: none
tools: cs2pr

# This date is used to ensure that the PHPCS cache is cleared at least once every week.
# http://man7.org/linux/man-pages/man1/date.1.html
- name: "Get last Monday's date"
id: get-date
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT

- name: Cache PHPCS scan cache
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: |
.cache/phpcs-src.json
.cache/phpcs-tests.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-php-${{ inputs.php-version }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}

- name: Install Composer dependencies
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0

- name: Make Composer packages available globally
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH

- name: Run PHPCS on all files
id: phpcs-files
if: ${{ ! inputs.old-branch }}
run: phpcs -n --report-full --cache=./.cache/phpcs-src.json --report-checkstyle=./.cache/phpcs-report.xml

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs-files.outcome == 'failure' }}
run: cs2pr ./.cache/phpcs-report.xml

- name: Check test suite files for warnings
id: phpcs-tests
run: phpcs tests --report-full --cache=./.cache/phpcs-tests.json --report-checkstyle=./.cache/phpcs-tests-report.xml

- name: Show test suite scan results in PR
if: ${{ always() && steps.phpcs-tests.outcome == 'failure' }}
run: cs2pr ./.cache/phpcs-tests-report.xml

- name: Ensure version-controlled files are not modified during the tests
run: git diff --exit-code
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
/tests/cache
/tests/coverage
.DS_Store

# Track placeholders so that empty directories stay in the repo.
!.gitkeep
127 changes: 64 additions & 63 deletions assets/css/aspire-update.css
Original file line number Diff line number Diff line change
@@ -1,63 +1,64 @@
@keyframes glow {
0% {
background-color: rgba(255, 223, 0, 0.1);
}

100% {
background-color: none;
}
}

.glow-reveal {
animation: glow 0.5s ease-in-out;
}

.aspireupdate-settings-field-hosts-wrapper .aspireupdate-settings-field-hosts-row {
margin: 0 0 10px;
}

#aspireupdate-generate-api-key {
display: inline-block;
width: 30px;
height: 30px;
background: url(../images/icon-key.svg) no-repeat center center / 24px 24px;
background-color: #cbcbcb;
border: 1px solid #8c8f94;
border-radius: 3px;
clip-path: inset(0 0 0 0);
color: transparent;
cursor: pointer;
transition: background-color 0.3s ease;
}

#aspireupdate-generate-api-key:hover {
background-color: #e3e3e3;
}

.aspireupdate-settings-field-wrapper p.error {
color: #bc3b3b;
display: none;
}

#voltron {
color: transparent;
font-size: 8px;
line-height: 6px;
display: inline-block;
cursor: default;
}

#voltron:hover {
animation: blink 1.8s ease-in-out infinite;
animation-delay: 5s;
}

@keyframes blink {
0%,
100% {
color: inherit;
}
50% {
color: transparent;
}
}

@keyframes glow {
0% {
background-color: rgba(255, 223, 0, 0.1);
}

100% {
background-color: none;
}
}

.glow-reveal {
animation: glow 0.5s ease-in-out;
}

.aspireupdate-settings-field-hosts-wrapper .aspireupdate-settings-field-hosts-row {
margin: 0 0 10px;
}

#aspireupdate-generate-api-key {
display: inline-block;
width: 30px;
height: 30px;
background: url(../images/icon-key.svg) no-repeat center center / 24px 24px;
background-color: #cbcbcb;
border: 1px solid #8c8f94;
border-radius: 3px;
clip-path: inset(0 0 0 0);
color: transparent;
cursor: pointer;
transition: background-color 0.3s ease;
}

#aspireupdate-generate-api-key:hover {
background-color: #e3e3e3;
}

.aspireupdate-settings-field-wrapper p.error {
color: #bc3b3b;
display: none;
}

#voltron {
color: transparent;
font-size: 8px;
line-height: 6px;
display: inline-block;
cursor: default;
}

#voltron:hover {
animation: blink 1.8s ease-in-out infinite;
animation-delay: 5s;
}

@keyframes blink {
0%,
100% {
color: inherit;
}
50% {
color: transparent;
}
}
Loading
Loading