This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'roots/10.0.0-dev' into 10.0.0-dev
* roots/10.0.0-dev: Update sponsors [ci skip] Bump stylelint from 13.2.1 to 13.3.0 (roots#2439) Bump roots/acorn from 1.0.3 to 1.0.4 (roots#2440) Bump roots/acorn from 1.0.2 to 1.0.3 (roots#2433) Sage 10 Chores (roots#2431) enhance(deps): Add `Requires PHP` and `Requires at least` to theme style headers. Bump WordPress requirement to v5.4 (roots#2409) Laravel 7.x (roots#2429) Sage 10 fixes/cleanup (roots#2413) Update sponsors [ci skip] update laravel-mix-wp-blocks (roots#2381) chore(deps): Bump dependencies (roots#2376) fix(stylelint): Fix broken tests (roots#2375) Keep hierarchical assets directory structure (roots#2372)
- Loading branch information
Showing
31 changed files
with
229 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ indent_size = 2 | |
|
||
[resources/views/**.php] | ||
indent_size = 2 | ||
|
||
[index.php] | ||
indent_size = 2 |
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,45 @@ | ||
<?php | ||
|
||
namespace App\View\Components; | ||
|
||
use Roots\Acorn\View\Component; | ||
|
||
class Alert extends Component | ||
{ | ||
/** | ||
* The alert type. | ||
* | ||
* @var string | ||
*/ | ||
public $type; | ||
|
||
/** | ||
* The alert message. | ||
* | ||
* @var string | ||
*/ | ||
public $message; | ||
|
||
/** | ||
* Create the component instance. | ||
* | ||
* @param string $type | ||
* @param string $message | ||
* @return void | ||
*/ | ||
public function __construct($type = 'primary', $message = null) | ||
{ | ||
$this->type = $type; | ||
$this->message = $message; | ||
} | ||
|
||
/** | ||
* Get the view / contents that represent the component. | ||
* | ||
* @return \Illuminate\View\View|string | ||
*/ | ||
public function render() | ||
{ | ||
return $this->view('components.alert'); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\Composers; | ||
namespace App\View\Composers; | ||
|
||
use Roots\Acorn\View\Composer; | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\Composers; | ||
namespace App\View\Composers; | ||
|
||
use Roots\Acorn\View\Composer; | ||
|
||
|
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
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.