Skip to content

Commit 275f6d9

Browse files
committed
Updated docs
1 parent 643c59a commit 275f6d9

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
5757

5858
### Enforcement
5959

60-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at `gaetan@hexadog.com`. All
60+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at `fabio23gt@gmail.com`. All
6161
complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
6262
Further details of specific enforcement policies may be posted separately.
6363

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/how-it-works.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Best way to create a new Theme is to use `theme:make` artisan command. See [here
4141
Note that `composer.json` file is **required** and must contains following data (here is an example for a theme named __maestro__):
4242
```json
4343
{
44-
"name": "prismalms/maestro",
45-
"description": "Hexadog default theme",
44+
"name": "codions/astra",
45+
"description": "Codions default theme",
4646
"type": "laravel-theme",
4747
"version": "1.0",
4848
"minimum-stability": "stable",
4949
"authors": [
5050
{
51-
"name": "Gaetan",
52-
"email": "gaetan@hexadog.com"
51+
"name": "Fábio Assunção",
52+
"email": "fabio23gt@gmail.com"
5353
}
5454
],
5555
"extra": {

docs/usage/artisan.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ php artisan theme:list
5555
+-----------+---------+---------+------------------------+-----------+---------+--------+
5656
| Name | Vendor | Version | Description | Extends | Default | Active |
5757
+-----------+---------+---------+------------------------+-----------+---------+--------+
58-
| theme-one | hexadog | 1.0 | Default frontend theme | | X | Yes |
59-
| theme-two | hexadog | 1.0 | New frontend theme | theme-one | | Yes |
58+
| theme-one | codions | 1.0 | Default frontend theme | | X | Yes |
59+
| theme-two | codions | 1.0 | New frontend theme | theme-one | | Yes |
6060
+-----------+---------+---------+------------------------+-----------+---------+--------+
6161
```
6262

6363
## Activate Theme
6464
Only active themes can be used at runtime.
6565
```shell
66-
php artisan theme:activate prismalms/default
66+
php artisan theme:activate codions/default
6767
```
6868

6969
## Deactivate Theme
7070
Deactivated theme to make it unavailable for usage.
7171
```shell
72-
php artisan theme:deactivate prismalms/default
72+
php artisan theme:deactivate codions/default
7373
```
7474

7575
## Clear cache

docs/usage/assets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Ask the **Themes Manager** to generate an asset URL:
1515

1616
This call will return the url of requested asset:
1717
```
18-
http://localhost/themes/prismalms/default/css/app.min.css
18+
http://localhost/themes/codions/default/css/app.min.css
1919
```
2020

2121
## Theme Style
@@ -29,7 +29,7 @@ Ask the **Themes Manager** to generate the stylesheet HTML tag:
2929

3030
This call will generate the following code:
3131
```html
32-
<link href="http://localhost/themes/prismalms/default/css/app.min.css">
32+
<link href="http://localhost/themes/codions/default/css/app.min.css">
3333
```
3434

3535
## Theme Script
@@ -43,7 +43,7 @@ Ask the **Themes Manager** to generate the script HTML tag:
4343

4444
This call will generate the following code:
4545
```html
46-
<script src="http://localhost/themes/prismalms/default/js/app.min.js"></script>
46+
<script src="http://localhost/themes/codions/default/js/app.min.js"></script>
4747
```
4848

4949
## Theme Image
@@ -56,7 +56,7 @@ Ask the **Themes Manager** to generate the image HTML tag:
5656
```
5757
This call will generate the following code:
5858
```html
59-
<img src="http://localhost/themes/prismalms/default/img/logo.png" alt="My Theme logo" />
59+
<img src="http://localhost/themes/codions/default/img/logo.png" alt="My Theme logo" />
6060
```
6161

6262
:::tip Customize public theme assets path

docs/usage/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MyController extends Controller
1818

1919
// Specify theme name with vendor
2020
// in case multiple themes with same name are provided by multiple vendor
21-
ThemesManager::set('prismalms/my-theme');
21+
ThemesManager::set('codions/my-theme');
2222
}
2323
}
2424
```

docs/usage/components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ Clean up you theme layouts with our integrated Blade Components.
1717

1818
## Theme Asset
1919
```html
20-
<x-theme-asset source="css/app.css"/> <!-- http://laravel.test/themes/prismalms/default/css/app.css -->
20+
<x-theme-asset source="css/app.css"/> <!-- http://laravel.test/themes/codions/default/css/app.css -->
2121
```
2222

2323
## Theme Image
2424
```html
25-
<x-theme-image source="img/logo.png"/> <!-- <img src="http://laravel.test/themes/prismalms/default/img/logo.png" /> -->
25+
<x-theme-image source="img/logo.png"/> <!-- <img src="http://laravel.test/themes/codions/default/img/logo.png" /> -->
2626

2727
<!-- Add any HTML attribute -->
28-
<x-theme-image source="img/logo.png" class="image" alt="Logo" /> <!-- <img src="themes/prismalms/default/img/logo.png" class="image" alt="logo" /> -->
28+
<x-theme-image source="img/logo.png" class="image" alt="Logo" /> <!-- <img src="themes/codions/default/img/logo.png" class="image" alt="logo" /> -->
2929
```
3030

3131
## Theme Script
3232
```html
33-
<x-theme-script source="css/app.css"/> <!-- http://laravel.test/themes/prismalms/default/css/app.css -->
33+
<x-theme-script source="css/app.css"/> <!-- http://laravel.test/themes/codions/default/css/app.css -->
3434
```
3535

3636
## Theme Style
3737
```html
38-
<x-theme-style source="css/app.css"/> <!-- <link src="http://laravel.test/themes/prismalms/default/css/app.css" rel="stylehseet"> -->
38+
<x-theme-style source="css/app.css"/> <!-- <link src="http://laravel.test/themes/codions/default/css/app.css" rel="stylehseet"> -->
3939

4040
<!-- Media -->
41-
<x-theme-style source="css/app.css" media="print"/> <!-- <link src="themes/prismalms/default/css/app.css" rel="stylehseet" media="print"> -->
41+
<x-theme-style source="css/app.css" media="print"/> <!-- <link src="themes/codions/default/css/app.css" rel="stylehseet" media="print"> -->
4242
```

docs/usage/middleware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ Here is an example of middleware which set a theme based on the request url. It
1111
namespace App\Http\Middleware;
1212

1313
use Closure;
14-
use Codions\ThemesManager\Http\Middleware\ThemeLoader as HexadogThemeLoader;
14+
use Codions\ThemesManager\Http\Middleware\ThemeLoader as CodionsThemeLoader;
1515

16-
class ThemeLoader extends HexadogThemeLoader
16+
class ThemeLoader extends CodionsThemeLoader
1717
{
1818
public function handle($request, Closure $next, $theme = null)
1919
{
2020
// Check if request url starts with admin prefix
2121
if ($request-segment(1) === 'admin') {
2222
// Set a specific theme for matching urls
23-
$theme = 'prismalms/admin';
23+
$theme = 'codions/admin';
2424
}
2525

2626
// Call parent Middleware handle method

src/ThemesManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function url(string $asset, bool $absolute = true): ?string
184184

185185
/**
186186
* Find a theme by given name and vendor (optional)
187-
* name can include vendor prefix (ie: prismalms/default)
187+
* name can include vendor prefix (ie: codions/default)
188188
* If no vendor provided and name not prefixed by vendor
189189
* the first theme with given name is returned.
190190
*/

0 commit comments

Comments
 (0)