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

[APP 705] add connect module, settings and notification component #112

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c5eeb17
Initial refactor commit
bainternet Oct 20, 2024
c641495
✅ Added build and tests CI/CD
bainternet Oct 22, 2024
c003cf7
update: add src for admin settings
nirbhayel Oct 25, 2024
21987b4
update: incorrect constant names
nirbhayel Oct 25, 2024
6333248
update: namespace
nirbhayel Oct 25, 2024
ebd2df1
add: accessibility settings
nirbhayel Oct 25, 2024
9e3bc10
update: webpack to output files inside a folder
nirbhayel Oct 28, 2024
9757cda
update: build output folders
nirbhayel Oct 29, 2024
b0dafef
update: removed commented code
nirbhayel Oct 29, 2024
2ceabd3
update: npm scripts
nirbhayel Oct 29, 2024
1a87560
add: webpack config
nirbhayel Oct 29, 2024
d0a1b8f
add: hooks
nirbhayel Oct 29, 2024
2566690
update: move admin setting to the module folder
nirbhayel Oct 29, 2024
96fec7c
update: assets loading logic
nirbhayel Oct 29, 2024
32a2057
update: add rule to move jsx props to multiline imporving readability
nirbhayel Oct 29, 2024
dcb1245
add: connect modal
nirbhayel Oct 29, 2024
a1f7b68
update: hooks import for better readability
nirbhayel Oct 29, 2024
d6d1ab6
update: replace functions with hooks
nirbhayel Oct 29, 2024
8810af3
add: connect module
nirbhayel Nov 1, 2024
d6c4efc
add: settings and get settings route
nirbhayel Nov 1, 2024
c87250b
add: hooks and contexts to get settings
nirbhayel Nov 1, 2024
7938003
add: hooks
nirbhayel Nov 1, 2024
06e8323
add: notification component
nirbhayel Nov 1, 2024
3c8845e
add: data api
nirbhayel Nov 1, 2024
b451dc5
add: settings provider and connect settings
nirbhayel Nov 1, 2024
d89b521
add: husky
nirbhayel Nov 1, 2024
3919686
Merge branch 'develop' into feature/APP-705-add-connect-module
nirbhayel Nov 7, 2024
879b72e
fix: formatting and text-domain
nirbhayel Nov 8, 2024
89e4927
update: filter names
nirbhayel Nov 8, 2024
a25f125
fix: hook import
nirbhayel Nov 8, 2024
87446dc
add: set function for settings
nirbhayel Nov 8, 2024
056464c
add: prop-types package
nirbhayel Nov 8, 2024
fc0f885
update: refactor notification component and context
nirbhayel Nov 10, 2024
e01148b
update: remove filter for authorize url
nirbhayel Nov 11, 2024
d0f8126
update: imports and exports of hooks
nirbhayel Nov 11, 2024
4b56535
update: plugin settings context filename and relevant imports
nirbhayel Nov 11, 2024
2a7602f
Merge branch 'develop' into feature/APP-705-add-connect-module
nirbhayel Nov 13, 2024
1e09a9e
Merge branch 'develop' into feature/APP-705-add-connect-module
nirbhayel Nov 13, 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
1 change: 1 addition & 0 deletions includes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ final class Manager {
public static function get_module_list(): array {
return [
'Legacy',
'Connect',
'Settings',
];
}
Expand Down
35 changes: 35 additions & 0 deletions modules/connect/classes/basic-enum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

namespace EA11y\Modules\Connect\Classes;

use ReflectionClass;
use ReflectionException;

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

abstract class Basic_Enum {
private static array $entries = [];

/**
* @throws ReflectionException
*/
public static function get_values(): array {
return array_values( self::get_entries() );
}

/**
* @throws ReflectionException
*/
protected static function get_entries(): array {
$caller = get_called_class();

if ( ! array_key_exists( $caller, self::$entries ) ) {
$reflect = new ReflectionClass( $caller );
self::$entries[ $caller ] = $reflect->getConstants();
}

return self::$entries[ $caller ];
}
}
22 changes: 22 additions & 0 deletions modules/connect/classes/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace EA11y\Modules\Connect\Classes;

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

/**
* Class Config
*/
class Config {
const APP_NAME = 'once-click-accessibility';
const APP_PREFIX = 'ea11y';
const APP_REST_NAMESPACE = 'ea11y';
const BASE_URL = 'https://my.elementor.com/connect';
const ADMIN_PAGE = 'accessibility-settings-2';
const APP_TYPE = 'app_mailer';
nirbhayel marked this conversation as resolved.
Show resolved Hide resolved
const SCOPES = 'openid offline_access';
const STATE_NONCE = 'ea11y_auth_nonce';
const CONNECT_MODE = 'site';
}
Loading
Loading