forked from contrib-tracker/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONT-00: Issue contrib-tracker#12 by gkapoor121212: Added controller …
…for displaying statistics.
- Loading branch information
1 parent
70d870f
commit e2cb41f
Showing
12 changed files
with
68 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s/custom/contrib_tracker/css/ct-style.css → ...odules/custom/ct_reports/css/ct-style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: Contribution Tracker Reports | ||
type: module | ||
description: Provides functionality to generate reports based on contribution data. | ||
core_version_requirement: ^8.9 || ^9 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Module for contribution tracker reports module. | ||
*/ | ||
|
||
/** | ||
* Implements hook_theme(). | ||
*/ | ||
function ct_reports_theme($existing) { | ||
return [ | ||
'ct_reports_contribution_count' => [ | ||
'variables' => [ | ||
'totalContributions' => 0, | ||
'codeContributions' => 0, | ||
'totalContributors' => 0, | ||
], | ||
], | ||
]; | ||
} |
4 changes: 2 additions & 2 deletions
4
...ntrib_tracker/contrib_tracker.routing.yml → .../custom/ct_reports/ct_reports.routing.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
contrib_tracker.count: | ||
ct_reports.count: | ||
path: '/contribution-count' | ||
defaults: | ||
_controller: '\Drupal\contrib_tracker\Controller\ContributionCountController::content' | ||
_controller: '\Drupal\ct_reports\Controller\ContributionCountController::content' | ||
_title: 'Contribution Count' | ||
requirements: | ||
_permission: 'access content' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
services: | ||
ct_reports.statistics: | ||
class: Drupal\ct_reports\ContributionStatistics | ||
arguments: ['@entity_type.manager', '@database'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters