-
-
Notifications
You must be signed in to change notification settings - Fork 601
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 #2564 from Leantime/commentsComponent
Comments component
- Loading branch information
Showing
117 changed files
with
2,572 additions
and
1,083 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Leantime\Core\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class AuthException extends Exception | ||
{ | ||
/** | ||
* Construct the exception. Note: The message is NOT binary safe. | ||
* | ||
* @link https://php.net/manual/en/exception.construct.php | ||
* | ||
* @param string $message [optional] The Exception message to throw. | ||
* @param Throwable|null $previous [optional] The previous throwable used for the exception chaining. | ||
* @param int $code [optional] The Exception code. | ||
*/ | ||
public function __construct(string $message = '', int $code = 403) | ||
{ | ||
parent::__construct($message, $code); | ||
$this->message = "$message"; | ||
$this->code = $code; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Leantime\Core\Support; | ||
|
||
/** | ||
* Enum class FromFormat | ||
* | ||
* An enumeration class representing various formats for date and time values. | ||
*/ | ||
enum DateTimeInfoEnum { | ||
|
||
/** | ||
* Displays date with content: | ||
* Written On DATE at TIME | ||
*/ | ||
case WrittenOnAt; | ||
|
||
/** | ||
* Displays date with content: | ||
* Updated On DATE at TIME | ||
*/ | ||
case UpcatedOnAt; | ||
|
||
/** | ||
* Displays date with content: | ||
* XXX days/months ago | ||
*/ | ||
case HumanReadable; | ||
|
||
/** | ||
* Just displays DATE TIME | ||
*/ | ||
case Plain; | ||
|
||
} |
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,29 @@ | ||
<?php | ||
|
||
namespace Leantime\Core\Support; | ||
|
||
/** | ||
* Enum class FromFormat | ||
* | ||
* An enumeration class representing various formats for date and time values. | ||
*/ | ||
enum EditorTypeEnum: string | ||
{ | ||
|
||
/** | ||
* Shows a simplified editor used for comments | ||
*/ | ||
case Simple = "tinymceSimple"; | ||
|
||
/** | ||
* Shows a more complex editor for entity descriptions | ||
*/ | ||
case Complex = "tinymceComplex"; | ||
|
||
/** | ||
* Shows the full editor with all featuers | ||
*/ | ||
case Notes = "tinymceNotes"; | ||
|
||
|
||
} |
Oops, something went wrong.