Skip to content

Commit

Permalink
Item15217: deprecate jquery themes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jan 12, 2024
1 parent 80ac7b7 commit cbc4a00
Show file tree
Hide file tree
Showing 27 changed files with 284 additions and 135 deletions.
1 change: 1 addition & 0 deletions JQueryPlugin/.gitignore
Expand Up @@ -74,6 +74,7 @@ pub/System/JQueryPlugin/plugins/fontawesome/git-fontawesome-animation/
/pub/System/JQueryPlugin/plugins/nifty/jquery.nifty.js
/pub/System/JQueryPlugin/plugins/nifty/jquery.rounded.css
/pub/System/JQueryPlugin/plugins/nifty/jquery.rounded.js
/pub/System/JQueryPlugin/plugins/observer/observer.js
/pub/System/JQueryPlugin/plugins/placeholder/jquery.placeholder.js
/pub/System/JQueryPlugin/plugins/pnotify/jquery.pnotify.default.css
/pub/System/JQueryPlugin/plugins/pnotify/jquery.pnotify.js
Expand Down
Expand Up @@ -7,25 +7,22 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Autocomplete}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
$reporter->WARN(<<'HERE');
Autocomplete has been deprecated. Please use the autocomplete plugin part of the jQuery-ui package.
The new plugin is not backwards compatible. See the JQueryPlugin documentation for further details.
HERE
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Bgiframe}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated.
HERE
$reporter->WARN("This plugin is deprecated.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Corner}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated.
HERE
$reporter->WARN("This plugin is deprecated.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2014-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2014-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Gradient}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. Please use CSS. See http://colorzilla.com/gradient-editor/.
HERE
$reporter->WARN("This plugin is deprecated.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{LiveQuery}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. Please use Observer.
HERE
$reporter->WARN("This plugin is deprecated. Please use Observer.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Media}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated.
HERE
$reporter->WARN("This plugin is deprecated.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Nifty}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. Use Corner instead
HERE
}
sub check_current_value {
my ( $this, $reporter ) = @_;

return $warnings;
if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Ntify}{Enabled} ) {
$reporter->WARN("This plugin is deprecated.");
}
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,21 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Placeholder}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
$reporter->WARN(<<'HERE');
This plugin is deprecated. All major browsers now support the placeholder attribute. See http://caniuse.com/#feat=input-placeholder
HERE
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,19 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Rating}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. Use Stars instead.
HERE
$reporter->WARN("This plugin is deprecated. Use Stars instead.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2014-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2014-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,21 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Shake}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. The shake effect is now part of the latest jQuery-ui package.
HERE
$reporter->WARN(
"This plugin is deprecated. The shake effect is now part of the latest jQuery-ui package."
);
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,21 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{SimpleModal}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. Please use ui::dialog, the jquery-ui dialog widget.
HERE
$reporter->WARN(
"This plugin is deprecated. Please use ui::dialog, the jquery-ui dialog widget."
);
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2014-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2014-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,21 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Supersub}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
Supersub has been deprecated. The latest Superfish supersedes it.
HERE
}
sub check_current_value {
my ( $this, $reporter ) = @_;

return $warnings;
if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Supersubs}{Enabled} ) {
$reporter->WARN(
"Supersub has been deprecated. The latest Superfish supersedes it."
);
}
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Expand Up @@ -7,24 +7,20 @@ use strict;
use Foswiki::Configure::Checker ();
our @ISA = qw( Foswiki::Configure::Checker );

sub check {
my $this = shift;
my $warnings;
sub check_current_value {
my ( $this, $reporter ) = @_;

if ( $Foswiki::cfg{JQueryPlugin}{Plugins}{Tmpl}{Enabled} ) {
$warnings .= $this->WARN(<<'HERE');
This plugin is deprecated. Consider using Render instead
HERE
$reporter->WARN(
"This plugin is deprecated. Consider using Render instead.");
}

return $warnings;
}

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2020 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2024 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit cbc4a00

Please sign in to comment.