Skip to content

Commit

Permalink
Merge pull request #144 from idugan100/uvu_fixes
Browse files Browse the repository at this point in the history
Uvu fixes
  • Loading branch information
idugan100 authored Jul 25, 2024
2 parents 77cc7de + 98332f8 commit f635b64
Show file tree
Hide file tree
Showing 45 changed files with 184 additions and 1,991 deletions.
16 changes: 15 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

UNIVERSITY_NAME="salisbury university"
COURSICLE_TAG="uvu"


MAIN_BG="bg-green-300"
ACCENT_BG="bg-green-800"
MAIN_BORDER="border-green-300"
ACCENT_BORDER="border-green-800"
MAIN_TEXT_COLOR="text-green-300"
ACCENT_TEXT_COLOR="text-green-800"

CHART_MAIN="#86EFB3"
CHART_ACCENT="#166534"


LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
Expand All @@ -15,7 +30,6 @@ SERP_API_KEY=

DoE_API_KEY=

VITE_GPT_ENDPOINT=
# production/test stripe keys
TEST_CUSTOMER_STRIPE_ID=
STRIPE_KEY=
Expand Down
2 changes: 1 addition & 1 deletion app/Charts/EnrollmentOverTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function build($enrollment_by_semester_points): LarapexChart
->setTitle(' Enrollment Over Time at SU')
->setXAxis($semester_array)
->setHeight(350)
->setColors(['#8b0000']);
->setColors([env('CHART_MAIN')]);
}
}
2 changes: 1 addition & 1 deletion app/Charts/GpaOverTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function build($gpa_by_semester_points, ?string $department = 'All'): Lar
->setTitle(' Average GPA Over Time at SU')
->setXAxis($this->all_semesters)
->setHeight(350)
->setColors(['#8b0000', '#EAB308']);
->setColors([env('CHART_MAIN'), env('CHART_ACCENT')]);
}
}
2 changes: 1 addition & 1 deletion app/Charts/GradToUGradChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public function build(): LarapexChart
->setTitle('enrollment type')
->setSubtitle('12 month rolling enrollment')
->setLabels(['graduate', 'undergraduate'])->setHeight(200)
->setColors(['#8b0000', '#EAB308']);
->setColors([env('CHART_MAIN'), env('CHART_ACCENT')]);
}
}
2 changes: 1 addition & 1 deletion app/Charts/GradeDistribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public function build($distribution): LarapexChart
->setTitle('Grade Distribution')
->setXAxis($grade_array)
->setHeight(250)
->setColors(['#8b0000']);
->setColors([env('CHART_MAIN')]);
}
}
2 changes: 1 addition & 1 deletion app/Charts/ParentalEducationLevelChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public function build(): LarapexChart
->setTitle('highest level of parental education')
->setLabels(['middle school', 'high school', 'some college', 'college degree'])
->setHeight(200)
->setColors(['#000000', '#ABB0B8', '#EAB308', '#8b0000']);
->setColors(['#000000', '#ABB0B8', env('CHART_ACCENT'), env('CHART_MAIN')]);
}
}
2 changes: 1 addition & 1 deletion app/Charts/StudentEthnicityChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function build(): \ArielMejiaDev\LarapexCharts\LarapexChart
)
->setTitle('student ethnicity')
->setXAxis(['native american', 'pacific islander', 'asian', 'black', 'white', 'hispanic', 'two or more', 'unknown'])
->setColors(['#8b0000'])
->setColors([env('CHART_MAIN')])
->setHeight(300);
}
}
2 changes: 1 addition & 1 deletion app/Charts/StudentFamilyIncomesChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function build(): LarapexChart
)
->setTitle('income distribution of students\' families')
->setXAxis(['$0 - $30000', '$30001 - $48000', '$48001 - $75000', '$75001 - $110000', '$110001+'])
->setColors(['#8b0000'])
->setColors([env('CHART_MAIN')])
->setHeight(250);
}
}
2 changes: 1 addition & 1 deletion app/Charts/StudentGenderChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public function build(): LarapexChart
->setTitle('student gender makeup')
->setLabels(['male', 'non male'])
->setHeight(200)
->setColors(['#8b0000', '#EAB308']);
->setColors([env('CHART_MAIN'), env('CHART_ACCENT')]);
}
}
2 changes: 1 addition & 1 deletion app/Services/FinancialOutcomesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function import(): void
private function api_request(): void
{
$response = Http::get($this::$route, [
'school.name' => 'Salisbury',
'school.name' => env('UNIVERSITY_NAME'),
'api_key' => env('DoE_API_KEY'),
]);

Expand Down
2 changes: 1 addition & 1 deletion app/Services/RmpLinkPopulationSerpService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getLinks(Professor $professor): void
try {

$response = Http::get('https://serpapi.com/search', [
'q' => $professor->firstName.' '.$professor->lastName.' at Salisbury University Rate My professor',
'q' => $professor->firstName.' '.$professor->lastName.' at '.env('UNIVERSITY_NAME').' Rate My professor',
'engine' => 'google',
'api_key' => env('SERP_API_KEY'),
]);
Expand Down
2 changes: 1 addition & 1 deletion app/Services/StudentDemographicsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function import(): void
private function api_request(): void
{
$response = Http::get($this::$route, [
'school.name' => 'Salisbury',
'school.name' => env('UNIVERSITY_NAME'),
'api_key' => env('DoE_API_KEY'),
]);

Expand Down
Loading

0 comments on commit f635b64

Please sign in to comment.