-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from scify/master
Project landing page button text color
- Loading branch information
Showing
37 changed files
with
1,042 additions
and
171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace App\BusinessLogicLayer\lkp; | ||
|
||
class QuestionnaireTypeLkp { | ||
public const MAIN_QUESTIONNAIRE = 1; | ||
public const FEEDBACK_QUESTIONNAIRE = 2; | ||
|
||
public static function GetAllTypeIds(): array { | ||
return [ | ||
self::MAIN_QUESTIONNAIRE, | ||
self::FEEDBACK_QUESTIONNAIRE, | ||
]; | ||
} | ||
} |
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
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
24 changes: 24 additions & 0 deletions
24
database/factories/CrowdSourcingProject/Problem/CrowdSourcingProjectProblemFactory.php
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,24 @@ | ||
<?php | ||
|
||
namespace Database\Factories\CrowdSourcingProject\Problem; | ||
|
||
use App\BusinessLogicLayer\lkp\CrowdSourcingProjectProblemStatusLkp; | ||
use App\Models\CrowdSourcingProject\Problem\CrowdSourcingProjectProblem; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class CrowdSourcingProjectProblemFactory extends Factory { | ||
protected $model = CrowdSourcingProjectProblem::class; | ||
|
||
public function definition() { | ||
return [ | ||
'project_id' => 1, | ||
'slug' => $this->faker->slug, | ||
'status_id' => CrowdSourcingProjectProblemStatusLkp::DRAFT, | ||
'created_at' => now(), | ||
'updated_at' => now(), | ||
'user_creator_id' => 1, | ||
'default_language_id' => 6, | ||
'img_url' => $this->faker->imageUrl(), | ||
]; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
.../factories/CrowdSourcingProject/Problem/CrowdSourcingProjectProblemTranslationFactory.php
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,19 @@ | ||
<?php | ||
|
||
namespace Database\Factories\CrowdSourcingProject\Problem; | ||
|
||
use App\Models\CrowdSourcingProject\Problem\CrowdSourcingProjectProblemTranslation; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class CrowdSourcingProjectProblemTranslationFactory extends Factory { | ||
protected $model = CrowdSourcingProjectProblemTranslation::class; | ||
|
||
public function definition() { | ||
return [ | ||
'problem_id' => 1, | ||
'language_id' => 6, | ||
'title' => $this->faker->sentence, | ||
'description' => $this->faker->paragraph, | ||
]; | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
...ations/2024_10_14_121805_add_user_creator_id_to_crowd_sourcing_project_problems_table.php
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,24 @@ | ||
<?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(): void { | ||
Schema::table('crowd_sourcing_project_problems', function (Blueprint $table) { | ||
$table->unsignedInteger('user_creator_id')->after('project_id')->nullable(true); | ||
$table->foreign('user_creator_id')->references('id')->on('users'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void { | ||
Schema::table('crowd_sourcing_project_problems', function (Blueprint $table) {}); | ||
} | ||
}; |
25 changes: 25 additions & 0 deletions
25
database/migrations/2024_10_15_102802_add_lp_btn_text_color_to_crowd_sourcing_projects.php
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,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(): void { | ||
Schema::table('crowd_sourcing_projects', function (Blueprint $table) { | ||
$table->string('lp_btn_text_color_theme')->after('lp_primary_color')->default('light')->nullable(false); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void { | ||
Schema::table('crowd_sourcing_projects', function (Blueprint $table) { | ||
// | ||
}); | ||
} | ||
}; |
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
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
Oops, something went wrong.