-
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
Showing
51 changed files
with
1,406 additions
and
2,093 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "phpcs", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^<file name=\"(?:\\/github\\/workspace\\/)?(.*)\">$", | ||
"file": 1 | ||
}, | ||
{ | ||
"regexp": "<error line=\"(\\d*)\" column=\"(\\d*)\" severity=\"(error|warning)\" message=\"(.*)\" source=\"(.*)(\"\\/>+)$", | ||
"line": 1, | ||
"column": 2, | ||
"severity": 3, | ||
"message": 4, | ||
"code": 5, | ||
"loop": true | ||
} | ||
] | ||
} | ||
] | ||
} |
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,53 @@ | ||
name: NPM CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
env: | ||
token: ${{ secrets.CLOUD_DEVOPS_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.CLOUD_DEVOPS_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@elementor' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.CLOUD_DEVOPS_TOKEN }} | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Lint | ||
run: npm run lint:js | ||
|
||
# - name: Test | ||
# run: npm run test |
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,54 @@ | ||
name: PHP Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
PHP-Code-Standards: | ||
name: Lint PHP files | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip PHPCS]') || !contains(github.event.head_commit.message, '[skip CI]')" | ||
steps: | ||
- name: Check out source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@a36e1e52ff4a1c9e9c9be31551ee4712a6cb6bd0 # 2.27.1 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
tools: composer, cs2pr, phpcs | ||
env: | ||
fail-fast: 'true' | ||
|
||
- name: Log debug information | ||
run: | | ||
export PATH=$HOME/.composer/vendor/bin:$PATH | ||
php --version | ||
phpcs -i | ||
composer --version | ||
- name: Oauth Composer authentication | ||
run: composer config -g github-oauth.github.com ${{ secrets.DEVOPS_TOKEN }} | ||
|
||
- name: Install dependencies | ||
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # 2.2.0 | ||
|
||
- name: Add error matcher | ||
run: echo "::add-matcher::$(pwd)/.github/checkstyle-problem-matcher.json" | ||
|
||
- name: Run style check | ||
run: | | ||
export PATH=$HOME/.composer/vendor/bin:$PATH | ||
composer run lint -- --report=checkstyle |
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 @@ | ||
//npm.pkg.github.com/:_authToken=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 | ||
@elementor:registry=https://npm.pkg.github.com/elementor |
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,17 @@ | ||
{ | ||
"name": "elementor/hello-plus", | ||
"require": { | ||
"squizlabs/php_codesniffer": "^3.10.2", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", | ||
"wp-coding-standards/wpcs": "^3.1.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "vendor/bin/phpcs --standard=./phpcs.xml --ignore=node_modules,vendor,build .", | ||
"lint:fix": "vendor/bin/phpcbf --ignore=node_modules,vendor,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
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 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
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,23 @@ | ||
import Typography from '@elementor/ui/Typography'; | ||
import IconButton from '@elementor/ui/IconButton'; | ||
|
||
export const TopBarLink = ( { linkData } ) => { | ||
const { label, hrefStr, children, color, aria } = linkData; | ||
return ( | ||
<IconButton | ||
size="medium" | ||
edge="end" | ||
color={ color } | ||
aria-label={ aria } | ||
href={ hrefStr } | ||
> | ||
{ children } | ||
<Typography | ||
fontSize="medium" | ||
align="center" | ||
> | ||
{ label } | ||
</Typography> | ||
</IconButton> | ||
); | ||
}; |
21 changes: 0 additions & 21 deletions
21
modules/admin/assets/js/components/panels/dashboard/home/components/home-hero.js
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
modules/admin/assets/js/components/panels/dashboard/home/components/home-links-grid.js
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
modules/admin/assets/js/components/panels/dashboard/home/components/links-column.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.