-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added new option to replace audio model instead of creating a n…
…ew one when backflling (#766)
- Loading branch information
Showing
16 changed files
with
257 additions
and
228 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
54 changes: 0 additions & 54 deletions
54
app/Concerns/Filament/Actions/Models/Wiki/Audio/AttachAudioToRelatedVideosActionTrait.php
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Enums\Actions\Models\Wiki\Video; | ||
|
||
use App\Concerns\Enums\LocalizesName; | ||
|
||
/** | ||
* Enum NotificationType. | ||
*/ | ||
enum NotificationType: string | ||
{ | ||
use LocalizesName; | ||
|
||
case ADDED = 'added'; | ||
case UPDATED = 'updated'; | ||
|
||
/** | ||
* Get the field key to use in the admin panel. | ||
* | ||
* @return string | ||
*/ | ||
public static function getFieldKey(): string | ||
{ | ||
return 'notification-type'; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
app/Enums/Actions/Models/Wiki/Video/ReplaceRelatedAudio.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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Enums\Actions\Models\Wiki\Video; | ||
|
||
use App\Concerns\Enums\LocalizesName; | ||
|
||
/** | ||
* Enum ReplaceRelatedAudio. | ||
*/ | ||
enum ReplaceRelatedAudio: int | ||
{ | ||
use LocalizesName; | ||
|
||
case NO = 0; | ||
case YES = 1; | ||
} |
18 changes: 18 additions & 0 deletions
18
app/Enums/Actions/Models/Wiki/Video/ShouldBackfillAudio.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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Enums\Actions\Models\Wiki\Video; | ||
|
||
use App\Concerns\Enums\LocalizesName; | ||
|
||
/** | ||
* Enum ShouldBackfillAudio. | ||
*/ | ||
enum ShouldBackfillAudio: int | ||
{ | ||
use LocalizesName; | ||
|
||
case NO = 0; | ||
case YES = 1; | ||
} |
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,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Enums\Actions\Models\Wiki\Video; | ||
|
||
use App\Concerns\Enums\LocalizesName; | ||
|
||
/** | ||
* Enum ShouldForceThread. | ||
*/ | ||
enum ShouldForceThread: int | ||
{ | ||
use LocalizesName; | ||
|
||
case NO = 0; | ||
case YES = 1; | ||
|
||
/** | ||
* Get the field key to use in the admin panel. | ||
* | ||
* @return string | ||
*/ | ||
public static function getFieldKey(): string | ||
{ | ||
return 'should-force-thread'; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
app/Enums/Actions/Models/Wiki/Video/ShouldSendNotification.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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Enums\Actions\Models\Wiki\Video; | ||
|
||
use App\Concerns\Enums\LocalizesName; | ||
|
||
/** | ||
* Enum ShouldSendNotification. | ||
*/ | ||
enum ShouldSendNotification: int | ||
{ | ||
use LocalizesName; | ||
|
||
case NO = 0; | ||
case YES = 1; | ||
} |
17 changes: 0 additions & 17 deletions
17
app/Filament/Actions/Models/Wiki/Audio/AttachAudioToRelatedVideosAction.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.