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

Major refactor #213

Merged
merged 55 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2704021
Initial Refactoring
otrok7 Oct 29, 2024
22315b1
up and running
otrok7 Oct 29, 2024
c932f46
delint
otrok7 Oct 29, 2024
79390d9
changes to makefile
otrok7 Oct 29, 2024
07ae4f1
refactor management to headings to seperate class
otrok7 Nov 1, 2024
126c321
delint1
otrok7 Nov 1, 2024
5d565de
delint2
otrok7 Nov 1, 2024
76348e6
Documented some code.
otrok7 Nov 2, 2024
6628099
stub for unit tests and more documentation
otrok7 Nov 4, 2024
9ad4382
rename ASM to "Additional List" and some fixes
otrok7 Nov 4, 2024
ff0903c
lint
otrok7 Nov 4, 2024
117afe3
First real tests
otrok7 Nov 5, 2024
f0bef4f
test sub headings
otrok7 Nov 5, 2024
8c88b19
Adding Format Test
otrok7 Nov 6, 2024
80a3d13
getting tests to involve FormatMgr
otrok7 Nov 6, 2024
dc3becd
lint
otrok7 Nov 6, 2024
6df5cbd
bug fixes
otrok7 Nov 6, 2024
315b99a
font-size and line-height are not imts
otrok7 Nov 7, 2024
fdfeeea
add icon to admin menu
otrok7 Nov 7, 2024
55bae1d
Test no connection
otrok7 Nov 7, 2024
b4ab064
fixes
otrok7 Nov 7, 2024
8446579
First tests of formats manager
otrok7 Nov 12, 2024
b5e29be
lint
otrok7 Nov 12, 2024
f2ec3f5
Multi-Layer Admin Menu, Removed legacy ASM table, Cleanup
otrok7 Nov 14, 2024
5263f83
lint
otrok7 Nov 14, 2024
da1c9f3
small changes
otrok7 Nov 15, 2024
5939ff6
Remove Last-Page - Use Custom-Section instead.
otrok7 Nov 15, 2024
67aa8e9
Refactor Admin Menus
otrok7 Nov 15, 2024
b26c388
first working preview button
otrok7 Nov 16, 2024
79b2795
refactoring the JS/ tooltipstr
otrok7 Nov 19, 2024
a97eefd
lint
otrok7 Nov 19, 2024
9ef916c
Cleaned up time dialog
otrok7 Nov 19, 2024
ed32414
no more singletons
otrok7 Nov 20, 2024
6d83fef
Framework for wizard
otrok7 Nov 26, 2024
6948944
Some TinyMCE stuff
otrok7 Nov 26, 2024
e5c9206
Fix to additional list sort order and some templates
otrok7 Nov 26, 2024
8c2dcb3
generated first lists from wizard
otrok7 Nov 27, 2024
ea3c0ca
Added Meeting Options Step
otrok7 Nov 28, 2024
8fa1988
remove redundant variables
otrok7 Nov 29, 2024
d4885ad
UI Improvements
otrok7 Dec 1, 2024
07feebe
Add "go back" button
otrok7 Dec 1, 2024
ac91e76
Add page-layout options
otrok7 Dec 2, 2024
ec9f74e
First draft of wizard done
otrok7 Dec 3, 2024
c0c72cb
Version bump
otrok7 Dec 3, 2024
6e524b2
Added in export-meeting-list like nameetinglist.org wants
otrok7 Dec 3, 2024
e1c15f7
lint
otrok7 Dec 3, 2024
aead0f1
dumb fixes
otrok7 Dec 3, 2024
0b63d33
Correct Makefile
otrok7 Dec 3, 2024
7335830
Added Russian Translation
otrok7 Dec 7, 2024
72ce17e
small fixes
otrok7 Dec 8, 2024
da0a3b1
Added items to change log
otrok7 Dec 9, 2024
f8e7316
Some security stuff
otrok7 Dec 9, 2024
c70d4e8
Fix some build problems
otrok7 Dec 10, 2024
ca1acfb
lint
otrok7 Dec 10, 2024
d508a0a
security
otrok7 Dec 10, 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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.vscode/*
.DS_Store
.idea
.phpunit.result.cache
vendor/
logs/
build/
3 changes: 2 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
custom standard so you don't have to specify the
patterns on the command line.
-->
<exclude-pattern>mpdf/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>

<!--
You can add specific global ignores to different
Expand All @@ -50,6 +50,7 @@
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
</rule>
</ruleset>
77 changes: 0 additions & 77 deletions BreadOptions.php.bak

This file was deleted.

339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
COMMIT := $(shell git rev-parse --short=8 HEAD)
ZIP_FILENAME := $(or $(ZIP_FILENAME), $(shell echo "$${PWD\#\#*/}.zip"))
BUILD_DIR := $(or $(BUILD_DIR),build)
VENDOR_AUTOLOAD := mpdf/vendor/autoload.php
VENDOR_AUTOLOAD := vendor/autoload.php
ZIP_FILE := build/bread.zip

ifeq ($(PROD)x, x)
Expand All @@ -19,7 +19,7 @@ $(VENDOR_AUTOLOAD):
$(ZIP_FILE): $(VENDOR_AUTOLOAD)
git archive --format=zip --output=${ZIP_FILENAME} $(COMMIT)
$(shell ./simplify-mpdf.sh)
zip -r ${ZIP_FILENAME} mpdf/
zip -r ${ZIP_FILENAME} vendor/
mkdir -p ${BUILD_DIR} && mv ${ZIP_FILENAME} ${BUILD_DIR}/

.PHONY: build
Expand All @@ -34,8 +34,8 @@ composer: $(VENDOR_AUTOLOAD) ## Runs composer install

.PHONY: lint
lint: $(VENDOR_AUTOLOAD) ## PHP Lint
mpdf/vendor/squizlabs/php_codesniffer/bin/phpcs
vendor/squizlabs/php_codesniffer/bin/phpcs

.PHONY: lint-fix
lint-fix: $(VENDOR_AUTOLOAD) ## PHP Lint Fix
mpdf/vendor/squizlabs/php_codesniffer/bin/phpcbf
vendor/squizlabs/php_codesniffer/bin/phpcbf
50 changes: 50 additions & 0 deletions admin/class-bmltenabled-admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php

/**
* Creates the main item in the admin menu, where both bread and crouton admins can live.
*
* @package Bread
* @subpackage Bread/admin
* @author bmlt-enabled <[email protected]>
*/
class BmltEnabled_Admin
{
private bool $menu_created = false;
/**
* Initialize the class and set its properties.
*
* @since 2.8.0
* @param string $plugin_name The name of this plugin.
* @param string $version The version of this plugin.
*/
public function __construct()
{
}
public function createdMenu()
{
$this->menu_created = true;
}
function admin_menu_link()
{
if ($this->menu_created) {
return;
}
$cap = 'manage_options';
if (!current_user_can($cap)) {
$cap = 'manage_bread';
}
$slugs = apply_filters('BmltEnabled_Slugs', []);
$icon = apply_filters("BmltEnabled_IconSVG", 'dashicons-locations-alt');
$slug = $slugs[0];
add_menu_page(
'Meeting List',
'Meeting List',
$cap,
$slug,
'',
$icon,
null
);
do_action('BmltEnabled_Submenu', $slug);
}
}
Loading