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

V2 #73

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

V2 #73

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6cddbf1
pull v2
protibimbok Dec 2, 2024
12114c5
v2 fixes
protibimbok Dec 5, 2024
f55632a
Merge branch 'master' into v2-pre
protibimbok Dec 5, 2024
5bf98d5
replace gutenberg with new one
protibimbok Dec 6, 2024
8afb8f1
replace gutenberg with new one
protibimbok Dec 10, 2024
e23891d
Merge branch 'v2-pre' of https://github.com/DotCamp/wp-table-builder …
protibimbok Dec 10, 2024
e78004c
v2 rebuild
protibimbok Dec 10, 2024
59e52a5
v2 update
protibimbok Dec 11, 2024
b297c51
v2 rebuild
protibimbok Dec 11, 2024
262214e
v2 rebuild
protibimbok Dec 16, 2024
d9e6fb8
added v2 patterns
protibimbok Dec 16, 2024
ed69a43
Merge branch 'master' into v2-pre
protibimbok Jan 11, 2025
55d554e
new exporter with v2
protibimbok Jan 11, 2025
5858b36
v2 rebuild
protibimbok Jan 12, 2025
29f1453
v2 rebuild
protibimbok Jan 27, 2025
548d3fc
Merge branch 'master' into v2-pre
protibimbok Jan 27, 2025
5068caa
added switchability
protibimbok Jan 27, 2025
f8f741f
v2 rebuild
protibimbok Jan 28, 2025
fbf5f20
use new builder on old's gutenberg
protibimbok Jan 28, 2025
068105f
v2-rebuild
protibimbok Jan 28, 2025
93183af
Merge branch 'master' into v2-pre
protibimbok Jan 29, 2025
0d43675
fix: show account & addon page
protibimbok Jan 29, 2025
e6e78d9
v2 rebuild
protibimbok Jan 29, 2025
87ad258
v2-rebuild
protibimbok Jan 30, 2025
cb6ec3b
v2 rebuild
protibimbok Feb 1, 2025
f2bc74d
v2 rebuild
protibimbok Feb 5, 2025
756cb18
v2 rebuild
protibimbok Feb 7, 2025
a928880
Merge branch 'master' into v2-pre
protibimbok Feb 8, 2025
3d70108
added switch btn in the builder
protibimbok Feb 9, 2025
465e0ea
v2 rebuild
protibimbok Feb 9, 2025
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
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@ node_modules/
uploads
wp-table-builder.zip

vendor/php-stubs
vendor/php-stubs

# v2
v2/*
!v2/build
!v2/dist
!v2/inc
!v2/vendor
!v2/wp-table-builder.php
!v2/assets
v2/assets/icons

2 changes: 1 addition & 1 deletion export.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ output.on("close", () => {

archive.on("error", (err) => {
console.error("Error creating archive:", err);
});
});
11 changes: 11 additions & 0 deletions inc/admin/class-admin-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public function __construct()
add_filter('set-screen-option', function ($status, $option, $value) {
return ($option == 'tables_per_page') ? (int) $value : $status;
}, 10, 3);

add_action('admin_menu', array($this, 'register_menus'), 9);

add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
add_action('wp_ajax_create_table', array($this, 'create_table'));
add_action('wp_ajax_save_table', array($this, 'save_table'));
Expand Down Expand Up @@ -275,6 +277,11 @@ public function add_wp_admin_bar_new_table_create_page($wp_admin_bar)
public function register_menus()
{

if (!WPTB_LEGACY_BUILDER) {
\WPTableBuilder\WPTableBuilder::add_menu();
return;
}

global $builder_page, $tables_overview, $table_list, $builder_tool_page;
$menu_cap = Helpers::wptb_get_capability_manage_options();

Expand Down Expand Up @@ -373,6 +380,9 @@ public function remove_admin_notices()

public function enqueue_scripts($hook)
{
if (!WPTB_LEGACY_BUILDER) {
return;
}
/*
* This function is provided for demonstration purposes only.
*
Expand Down Expand Up @@ -416,6 +426,7 @@ public function enqueue_scripts($hook)
$admin_object = [
'ajaxurl' => admin_url('admin-ajax.php'),
'security_code' => wp_create_nonce('wptb-security-nonce'),
'general_nonce' => wp_create_nonce('wp_table_builder_settings'),
'strings' => $strings,
'store' => [
'tableId' => $table_id,
Expand Down
2 changes: 1 addition & 1 deletion inc/admin/css/admin.css

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions inc/admin/css/src/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,13 @@ body > img {
opacity: 0.4;
}

.wptb-switch {
height: 100%;
}

.wptb-embed-btn,
.wptb-preview-btn,
.wptb-switch-v2-btn,
.wptb-save-btn {
height: 100%;
display: flex;
Expand All @@ -234,8 +239,15 @@ body > img {
text-decoration: none;
}

.wptb-switch-v2-btn {
border: 0;
border-right: 1px solid var(--wptb-plugin-theme-sidebar-bg);
position: relative;
}

.wptb-embed,
.wptb-preview,
.wptb-switch-v2,
.wptb-save {
display: flex;
justify-content: center;
Expand Down Expand Up @@ -7630,3 +7642,14 @@ label.wptb-control-row {
#mce-modal-block {
z-index: 0 !important;
}


.wptb-v2-switch-to-new-builder {
padding: 10px 20px;
background: white;
color: black;
border-radius: 5px;
border: none;
cursor: pointer;
font-weight: bold;
}
2 changes: 1 addition & 1 deletion inc/admin/js/WPTB_Admin_Settings.css.map

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions inc/admin/js/WPTB_Admin_Settings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inc/admin/js/WPTB_Admin_Settings.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inc/admin/js/WPTB_Block_ExtraStyles.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inc/admin/js/WPTB_BuilderControls.css.map

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions inc/admin/js/WPTB_BuilderControls.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/admin/js/WPTB_BuilderControls.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inc/admin/js/WPTB_Generate.js.map

Large diffs are not rendered by default.

Loading