Animate Slider block module integrates the Animate Slider jquery Plugin with Drupal 8 block. Baisc animation has attached to the all elements for all slide items. Multiple instance of slider can be created for different pages which is a big creadit to Drupal 8 block system(A single slider block can be used multiple times with different configurations in same/different regions).
Installation
Copy the module in sites/all/module or modules directory and install it. Create different page/category in the taxonomy term page. Create the slide items in the add content section(node/add/slider). Now place the animate slider block in any header/feature regions.
Requirements
Download the Animate slider and Modernizr , rename the folder as 'animate-slider' and 'modernizr' respectively and place it under your libraries folder. So your file structure should look like this: [drupal_root]/libraries/animate-slider/js/jquery.animateSlider.js , [drupal_root]/libraries/animate-slider/css/jquery.animateSlider.css and [drupal_root]/libraries/modernizr/js/modernizr.js
Project Link:
https://www.drupal.org/sandbox/susanta1981/2727269
Projects Repok:
git clone --branch 8.x-1.x https://git.drupal.org/sandbox/susanta1981/2727269.git
Manual reviews of other projects:
[D7] https://www.drupal.org/node/2735081#comment-11246501
[D7] https://www.drupal.org/node/2708637#comment-11255663
[D7] https://www.drupal.org/node/2708919#comment-11255547
Comment | File | Size | Author |
---|---|---|---|
#29 | Error.png | 85.67 KB | poojasharmaece |
#17 | AutomatedTest.JPG | 85.28 KB | bapi_22 |
#5 | Selection_535.png | 57.7 KB | buenos |
slider.png | 29.26 KB | bapi_22 |
Comments
Comment #2
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxsusanta19812727269git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedI have gone through the automated test link, resolve the error and updated the code as with proper coding standard.
Please review.
Comment #4
asiby CreditAttribution: asiby as a volunteer and commentedYou need to perform some manual reviews of other projects in order to gain other reviewers' attention.
Comment #5
buenos CreditAttribution: buenos as a volunteer and at FFW commentedManual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
Comment #6
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi buenos,
Thank you so much for the review.
I have added below points as per your have suggestion
1. UUID values removed in the yml files
2. End of line character changes to "\n" instead of "\r\n"
3. Implements hook_help() for the better understanding of users about the module.
4. Updated README.txt file
Comment #7
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedChanged priority
Comment #8
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedAdded one review of other project
Comment #9
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #10
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #11
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #12
buenos CreditAttribution: buenos as a volunteer and at FFW commentedComment #13
ashwinshManual Review
5.2 Ensure the repository contains a detailed README.txt.
Comment #14
klausi@ashwin.shaharkar: look like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be "needs work"?
Comment #15
ashwinshComment #16
klausiReview of the 8.x-1.x branch (commit 66c6a0f):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Have to run now, will continue later.
Comment #17
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi klausi,
Thank you for review it again to minimize the issue. I have tested using the online version of Coder Sniffer, which passed all the issue.
Are you reviewing by the command line interface of Coder sniffer?
I am working on the suggested items and will commit soon.
Comment #18
klausiYes, I used the command line version of Coder which is slightly more up to date than pareview.sh
The block is vulnerable to XSS exploits. If I enter
<script>alert('XSS');</script>
as body field with a restricted text format on a slider item then the block will display a nasty javascript popup. You need to respect text formats and you must not use "| raw" in the twig template. Make sure to read https://www.drupal.org/node/28984 again. Instead you should use a render array in your block class with #type => 'processed_text' where you specify the content and the configured text format. See http://drupal.stackexchange.com/a/139107/5356 . And please don't remove the security tag, we keep that for statistics and to show examples of security problems.Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #19
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi klausi,
Can you please give an example, how to use dependency injection.
Many modules uses Url::fromRoute() function directly. For my case
public function __construct(Term $term, ImageStyle $style) {
$this->term = $term;
$this->style = $style;
}
but getting Error "Call to a member function loadMultiple() " when I use $this->term->loadMultiple($tids); instead of Term::loadMultiple($tids);
Comment #20
asiby CreditAttribution: asiby as a volunteer and commentedHello @bapi_22
Can you please use the code HTML tag to make the code more readable?
You can find an interesting introduction to this aspect of Drupal at https://www.drupal.org/node/2133171.
Comment #21
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #22
kamdanishit CreditAttribution: kamdanishit commentedHello @bapi_22
Code Review are as follows:
1. First of all your Block file name(/src/Plugin/Block/animateSliderBlock.php) is started with lowercase, It should be 'AnimateSliderBlock.php' which will match with your class name.
2. in 'animateSliderBlock.php' line.no 38 => instead of using
\Drupal::entityQuery('taxonomy_term');
, you can use the class based like shown in here3. in 'animateSliderBlock.php' line.no 41 => instead of using
Term::loadMultiple($tids);
,you can entityTypeManager for it. In line.no.67 , you used entityManager for getting node storage and then load nodes. same same step you have to use in order to load terms, use class based method for entityManager as shown in here4. and use EntityTypeManager, as EntityManager is going to deprecate
Comment #23
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #24
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedI have updated below points. Please review.
1. Direct t() function replaced by $this->t()
2. Changed Direct function call replaced with entity type manager.
3. renamed file name as per the Class name.
4. @file doc blocks has removed in namespaced classes
Comment #25
vivek.addweb CreditAttribution: vivek.addweb at AddWeb Solution Pvt. Ltd. commentedAutomated Review
There are many issues found by pareview.sh
https://pareview.sh/node/795
Please solve them before proceeding further
This review uses the Project Application Review Template.
Comment #26
naveenvalecha@vivek.addweb,
Automated reviews are not application blocker. Is there any other blocker that you found or it's RTBC?
// Naveen
Comment #27
vivek.addweb CreditAttribution: vivek.addweb at AddWeb Solution Pvt. Ltd. commentedAutomated Review
There are many issues found by pareview.sh
https://pareview.sh/node/795
Manual Review
It was complex for me to find why the next/prev arrows ('controls' fonts) are not displaying.
This review uses the Project Application Review Template.
Comment #28
visabhishek CreditAttribution: visabhishek as a volunteer and at Azri Solutions commentedPlease do not assign ticket yourself. See the workflow https://www.drupal.org/node/532400
Comment #29
poojasharmaece CreditAttribution: poojasharmaece as a volunteer and commented1: Module is not working for me . Please see the attached screenshot.
2: Dont use
\Drupal::l
in$node_link = \Drupal::l($this->t('Read more'), $node_uri);
Comment #30
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #31
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi poojasharmaece,
modernizr libraries should be install for the CSS3 animation/transition support.
I have added \Drupal\Core\Link::fromTextAndUrl() instead of the Drupal::l() function.
Please review.
Comment #32
SergDidenko CreditAttribution: SergDidenko commentedManual review
Individual user account
Yes: Follows guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
README.txt/README.md
Yes: Follows the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
1. Please resolve all errors .
2. Line 32, 62, 97 AnimateSliderBlock.php use dependency injection instead \Drupal.
3. Line 99 and lin 111 AnimateSliderBlock.php use $this->t() for 'Read more' and 'Animate slider'.
Comment #33
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi SergDidenko,
I have completed all the issues as per below. Please Review.
1. All static method call has converted to dependency injection.
2. static text "Read more" is replaced with $this->t("Read more")
3. Coding standard issue resolve.
Thanks,
Comment #34
Warped CreditAttribution: Warped as a volunteer commentedThank you for your contribution!
After 2017 March 7 everyone can promote a project to a full project. A full project has a short project name and a drupal.org/project URL. It can also have releases (like alpha1 or 1.0). Edit your sandbox project, and then choose the 'Promote' tab.
https://www.drupal.org/docs/8/understanding-drupal-version-numbers/drupa...
https://www.drupal.org/docs/8/choosing-a-drupal-version/what-do-version-...
https://www.drupal.org/docs/8/understanding-drupal-version-numbers/what-...
https://www.drupal.org/docs/8/choosing-a-drupal-version/release-stable-v...
If you'd like to opt into security coverage, please ensure your module is ready for a full release, and then set this issue back to 'needs review'
Immense apologies for how long it took to get to this review completed.
Comment #35
apadernoI am closing it for lack of replies. Please re-open it, if you still want to opt into security coverage.
I apologize for the long delay before an appropriate response.