Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
e915d41
Events Pagination fix
bernardhanna Aug 13, 2024
56e07ab
Merge branch 'apple_events' into matrix-uat
jakubnewcity Oct 15, 2024
4d53b1c
Added multi-step form feature to event form
bernardhanna Dec 6, 2024
b7ac821
created edit event
bernardhanna Dec 20, 2024
115fd65
various imporvements based on feedback
bernardhanna Jan 9, 2025
a65df74
Merge branch 'new-events-form' into matrix-uat
bernardhanna Jan 9, 2025
1479380
Update login and register pages
stevanpo Feb 12, 2025
42f2a0e
Fixed Greek certificate template with proper language environment han…
bernardhanna Feb 13, 2025
e82676e
community page and latex
bernardhanna Feb 13, 2025
eeb5065
Merge branch 'matrix-uat' into temp
bernardhanna Feb 13, 2025
6e34c34
feat: built new digital girls page
stevanpo Feb 14, 2025
f288eb3
handle hero video
stevanpo Feb 17, 2025
6e9f257
update menu bar
stevanpo Feb 18, 2025
0f840d3
Merge pull request #2474 from codeeu/fix/update-menu-bar
stevanpo Feb 18, 2025
463485f
fix: feedback
stevanpo Feb 19, 2025
7220478
Merge branch 'dev' of stevan.github.com:codeeu/codeweek into feat/new…
stevanpo Feb 19, 2025
64c3f9a
Merge pull request #2476 from codeeu/feat/update-login-register-page
Siroumi Feb 19, 2025
ada005b
forget password page update
Siroumi Feb 19, 2025
9c1626a
Merge pull request #2477 from codeeu/feat/update-login-register-page
Siroumi Feb 19, 2025
9ff3877
password reset page update
Siroumi Feb 19, 2025
106f2f6
Merge pull request #2478 from codeeu/feat/update-login-register-page
Siroumi Feb 19, 2025
f11feb4
update the button colour
Siroumi Feb 19, 2025
ced8a73
Merge pull request #2479 from codeeu/feat/update-login-register-page
Siroumi Feb 19, 2025
844e9e2
Making design update to password page
Siroumi Feb 20, 2025
e52b03f
Merge pull request #2482 from codeeu/feat/update-login-register-page
Siroumi Feb 20, 2025
a7aeea4
Mobile fixes for mobile devices
Siroumi Feb 20, 2025
bd42df8
Merge pull request #2483 from codeeu/feat/update-login-register-page
Siroumi Feb 20, 2025
f33907b
syntax error fix
Siroumi Feb 20, 2025
8da490e
Merge pull request #2484 from codeeu/feat/update-login-register-page
Siroumi Feb 20, 2025
6dd061d
Merge pull request #2459 from codeeu/feat/update-login-register-page
Siroumi Feb 20, 2025
fa47386
Add community page images and view
bernardhanna Feb 21, 2025
45dd67a
Add community images and view
bernardhanna Feb 21, 2025
9cd5923
Merge pull request #2485 from codeeu/community
bernardhanna Feb 21, 2025
c23c534
fix: feedback
stevanpo Feb 21, 2025
ac1e21f
Update community view and Tailwind configuration
bernardhanna Feb 21, 2025
a3aeae4
Merge pull request #2486 from codeeu/community
bernardhanna Feb 21, 2025
5533c79
Update community view css and lorem ipsum
bernardhanna Feb 21, 2025
8f95973
Merge pull request #2487 from codeeu/community
bernardhanna Feb 21, 2025
7a1e60f
removed button
bernardhanna Feb 21, 2025
0c40ea0
Merge pull request #2488 from codeeu/community
bernardhanna Feb 21, 2025
71cbd56
fix: conflict
stevanpo Feb 21, 2025
5dc2660
Merge pull request #2471 from codeeu/feat/new-digital-girls-page
stevanpo Feb 21, 2025
96784aa
Build dreams jobs in digital page
stevanpo Feb 21, 2025
b3f6a9d
added sub text
bernardhanna Feb 21, 2025
864dbf8
added community text
bernardhanna Feb 21, 2025
abff329
Merge pull request #2490 from codeeu/community
bernardhanna Feb 21, 2025
0f54167
Merge pull request #2491 from codeeu/certs-update
bernardhanna Feb 21, 2025
2f3bd09
Fix Greek & Georgian encoding issues and add updated LaTeX templates
bernardhanna Feb 21, 2025
4f3f686
Merge pull request #2495 from codeeu/certs-update
bernardhanna Feb 21, 2025
22b6a9e
Merge pull request #2497 from codeeu/certs-encode-fix
bernardhanna Feb 21, 2025
229955b
fix: conflict
stevanpo Feb 24, 2025
23ef882
Merge branch 'feat/dreams-jobs-in-digital-page' of stevan.github.com:…
stevanpo Feb 24, 2025
734d9a0
fix: feedback
stevanpo Feb 25, 2025
344fd6a
Add girls-in-digital to menu
stevanpo Feb 25, 2025
121382b
Merge pull request #2489 from codeeu/feat/dreams-jobs-in-digital-page
stevanpo Feb 25, 2025
9d2660f
fix: title in girls-in-digital page
stevanpo Feb 25, 2025
3718ddd
update menu
stevanpo Feb 26, 2025
9425946
Eye Icon fixes
Siroumi Feb 26, 2025
673c2f0
Merge branch 'new-matrix-uat' into feat/update-login-register-page
Siroumi Feb 26, 2025
9caa3d6
Merge pull request #2501 from codeeu/feat/update-login-register-page
Siroumi Feb 26, 2025
32cb8c4
fixing add page layout
Siroumi Feb 26, 2025
7e06840
Merge branch 'feat/update-login-register-page' of https://github.com/…
Siroumi Feb 26, 2025
bd5abf8
Merge branch 'dev' into feat/update-login-register-page
Siroumi Feb 26, 2025
a0d0c49
reverting to old page
Siroumi Feb 26, 2025
a6f854c
Merge branch 'feat/update-login-register-page' of https://github.com/…
Siroumi Feb 26, 2025
431cb54
fixing add page
Siroumi Feb 26, 2025
4f28fa9
Merge pull request #2505 from codeeu/feat/update-login-register-page
Siroumi Feb 26, 2025
bf15b44
changes to forgot password page only
Siroumi Feb 27, 2025
8aba26b
Merge pull request #2507 from codeeu/feat/update-login-register-page
Siroumi Feb 27, 2025
a8e052d
style changes
Siroumi Feb 27, 2025
aa41890
Merge pull request #2509 from codeeu/feat/update-login-register-page
Siroumi Feb 27, 2025
454dd3d
syntax error due to conflict fix
Siroumi Feb 27, 2025
b5e4a36
Merge pull request #2512 from codeeu/feat/update-login-register-page
Siroumi Feb 27, 2025
15b5788
Fixing add event page
Siroumi Feb 27, 2025
7829812
Merge pull request #2513 from codeeu/feat/update-login-register-page
Siroumi Feb 27, 2025
28759cb
adding missing css code
Siroumi Feb 27, 2025
f62fa9f
Merge pull request #2517 from codeeu/feat/update-login-register-page
Siroumi Feb 27, 2025
6933d32
Login Password Register Page redesign
Siroumi Feb 27, 2025
ce4d10c
Merge branch 'new-matrix-uat' into login-register-page
Siroumi Feb 27, 2025
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
8 changes: 7 additions & 1 deletion app/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ class Event extends Model
'report_notifications_count',
'reported_at',
'name_for_certificate',
'participants_count',
'average_participant_age',
'participants_count',
'percentage_of_females',
'percentage_of_males',
'percentage_of_other',
'age_group',
'codeweek_for_all_participation_code',
'name_for_certificate',
'organizer_type',
Expand All @@ -67,6 +70,9 @@ class Event extends Model
'location_id',
'leading_teacher_tag',
'mass_added_for',
'extracurricular_activity',
'recurring_event',
'frequency',
];

// protected $policies = [
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function edit(Event $event): View
->pluck('id')
->toArray();
$selected_audiences = implode(',', $selected_audiences);
$selected_country = $event->country()->first()->iso;
$selected_country = $event->country()->first()?->iso ?? '';
$selected_language = is_null($event->language)
? 'en'
: $event->language;
Expand Down
21 changes: 20 additions & 1 deletion app/Http/Requests/EventRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ public function rules(): array
'organizer_type' => 'required',
'privacy' => 'required',
'leading_teacher_tag' => 'nullable',

'participants_count' => 'required|integer|min:1',
'percentage_of_females' => 'nullable|integer|min:0',
'percentage_of_males' => 'nullable|integer|min:0',
'percentage_of_other' => 'nullable|integer|min:0',
'age_group' => 'nullable|string|in:0-5,6-18,19-25,Over 25',
'extracurricular_activity' => 'required|string|in:yes,no',
'recurring_event' => 'required|string|in:yes,no',
'frequency' => 'nullable|string|in:daily,weekly,monthly',
];
}

Expand All @@ -62,9 +69,21 @@ public function messages(): array
'event_url.url' => 'The activity\'s web page address should be a valid URL.',
'event_url.required' => 'The activity\'s web page is required for online activities.',
'user_email.required' => 'Please enter a valid email address.',
'participants_count.required' => 'Please enter the total number of participants.',
'participants_count.integer' => 'The number of participants must be a valid integer.',
'percentage_of_females.integer' => 'The number of female participants must be a valid integer.',
'percentage_of_males.integer' => 'The number of male participants must be a valid integer.',
'percentage_of_other.integer' => 'The number of participants with other genders must be a valid integer.',
'age_group.in' => 'Please select a valid age group.',
'extracurricular_activity.required' => 'Please specify if this is an extracurricular activity.',
'extracurricular_activity.in' => 'Please select a valid option for extracurricular activity.',
'recurring_event.required' => 'Please specify if the event is recurring.',
'recurring_event.in' => 'Please select a valid option for recurring event.',
'frequency.in' => 'Please select a valid frequency.',
];
}


private function in($array): string
{
return 'in:'.implode(',', $array);
Expand Down
9 changes: 5 additions & 4 deletions app/Queries/EventsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ public static function store(Request $request)
}
}

foreach ($request['theme'] as $theme) {

$theme = Theme::where('id', $theme)->first();
$event->themes()->save($theme);
foreach ($request['theme'] as $themeId) {
$theme = Theme::where('id', $themeId)->first();
if ($theme) {
$event->themes()->save($theme);
}
}

foreach ($request['audience'] as $audience) {
Expand Down
2 changes: 1 addition & 1 deletion config/geoip.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
|
*/

'cache_tags' => ['torann-geoip-location'],
'cache_tags' => null,

/*
|--------------------------------------------------------------------------
Expand Down
27 changes: 14 additions & 13 deletions database/migrations/2017_07_07_122759_create_countries_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@
*/
public function up(): void
{
Schema::create('countries', function (Blueprint $table) {

$table->string('iso');
$table->string('name');
$table->integer('population')->nullable();
$table->string('continent');
$table->string('facebook');
$table->string('website');
$table->string('longitude');
$table->string('latitude');
$table->string('parent')->nullable();
$table->timestamps();
});
if (!Schema::hasTable('countries')) {
Schema::create('countries', function (Blueprint $table) {
$table->string('iso')->primary();
$table->string('name');
$table->integer('population')->nullable();
$table->string('continent');
$table->string('facebook');
$table->string('website');
$table->string('longitude');
$table->string('latitude');
$table->string('parent')->nullable();
$table->timestamps();
});
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,32 @@
*/
public function up(): void
{
Schema::create('bayern_r_s_s_items', function (Blueprint $table) {
$table->id();
$table->integer('uid')->unique();
$table->string('title');
$table->longText('description');
$table->string('organizer');
$table->string('photo')->nullable();
$table->dateTime('eventEndDate');
$table->dateTime('eventStartDate');
$table->float('latitude', 12, 6);
$table->float('longitude', 12, 6);
$table->string('location');
$table->string('user_company');
$table->string('user_email');
$table->string('user_publicEmail');
$table->string('user_type');
$table->string('user_website');
$table->string('activity_type');
$table->dateTime('imported_at')->nullable();
$table->string('audience')->nullable();
$table->string('themes')->nullable();
$table->string('tags')->nullable();
$table->timestamps();
});
if (!Schema::hasTable('bayern_r_s_s_items')) {
Schema::create('bayern_r_s_s_items', function (Blueprint $table) {
$table->id();
$table->integer('uid');
$table->string('title');
$table->longText('description');
$table->string('organizer');
$table->string('photo')->nullable();
$table->dateTime('eventEndDate');
$table->dateTime('eventStartDate');
$table->float('latitude', 12, 8);
$table->float('longitude', 12, 8);
$table->string('location');
$table->string('user_company');
$table->string('user_email');
$table->string('user_publicEmail');
$table->string('user_type');
$table->string('user_website');
$table->string('activity_type');
$table->dateTime('imported_at')->nullable();
$table->string('audience')->nullable();
$table->string('themes')->nullable();
$table->string('tags')->nullable();
$table->timestamps();
});
}

}

Expand Down
14 changes: 7 additions & 7 deletions database/migrations/2024_08_05_093711_add_uuid_failed_jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
/**
* Run the migrations.
*/
public function up(): void
public function up()
{
if (Schema::hasTable('failed_jobs')) {
Schema::table('failed_jobs', function (Blueprint $table) {
$table->string('uuid')->after('id')->nullable()->unique();
});
}
Schema::table('failed_jobs', function (Blueprint $table) {
if (!Schema::hasColumn('failed_jobs', 'uuid')) {
$table->uuid('uuid')->after('id')->nullable(false)->unique();
}
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
if (Schema::hasTable('failed_jobs')) {
if (Schema::hasTable('failed_jobs') && Schema::hasColumn('failed_jobs', 'uuid')) {
Schema::table('failed_jobs', function (Blueprint $table) {
$table->dropColumn('uuid');
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('events', function (Blueprint $table) {
if (!Schema::hasColumn('events', 'percentage_of_females')) {
$table->integer('percentage_of_females')->nullable();
}
if (!Schema::hasColumn('events', 'percentage_of_males')) {
$table->integer('percentage_of_males')->nullable();
}
if (!Schema::hasColumn('events', 'percentage_of_other')) {
$table->integer('percentage_of_other')->nullable();
}
});
}


public function down()
{
Schema::table('events', function (Blueprint $table) {
$table->dropColumn(['percentage_of_females', 'percentage_of_males', 'percentage_of_other']);
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('events', function (Blueprint $table) {
$table->string('age_group')->nullable(); // Age group as a nullable string
});
}

/**
* Reverse the migrations.
*/
public function down()
{
Schema::table('events', function (Blueprint $table) {
$table->dropColumn('age_group');
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('events', function (Blueprint $table) {
$table->string('extracurricular_activity')->nullable();
});
}

public function down()
{
Schema::table('events', function (Blueprint $table) {
$table->dropColumn('extracurricular_activity');
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up()
{
Schema::table('events', function (Blueprint $table) {
$table->string('recurring_event')->default('no'); // 'yes' or 'no'
$table->string('frequency')->nullable(); // 'daily', 'weekly', 'monthly'
});
}

public function down()
{
Schema::table('events', function (Blueprint $table) {
$table->dropColumn(['recurring_event', 'frequency']);
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->timestamp('consent_given_at')->nullable();
$table->timestamp('future_consent_given_at')->nullable();
});
}

public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['consent_given_at', 'future_consent_given_at']);
});
}
};
Loading
Loading