Skip to content

Commit

Permalink
tallui-web-icons W-I-P
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Jun 8, 2022
1 parent 318eb94 commit 4b1a4a3
Show file tree
Hide file tree
Showing 12 changed files with 34,408 additions and 87 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,8 @@ jobs:
source: "tui-release.json"
target: "prop-path/package/tui-release.json"

# TODO - name: push changes

# TODO needs the matrix too, should also matrix over folders
- name: split repos
id: split_repos
Expand All @@ -692,8 +694,8 @@ jobs:
repository_organization: 'usetall'
repository_name: '${{ matrix.package }}'

user_name: "adrolli"
user_email: "[email protected]"
user_name: "tallui-bot"
user_email: "[email protected]"

- name: Create the release
id: create_release
Expand Down Expand Up @@ -837,6 +839,7 @@ jobs:

## Builder:

- Builder has own release files but how to build the release files again...?
- Builder does not register sp, why? Seems to work
- Fix problem with asset loading, mix error, see https://blade-ui-kit.com/docs/0.x/installation (Production) ... test with blade-ui-kit, when unsure if it works mixing 3rd party assets.
- How to include all assets as original sources? Better than 3rd party CDN?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<h1>Hello <b>TALL</b>UI</h1>
<p>
This is the Livewire component of Tall<b>UI</b> Web Components.
This is the Livewire demo component of Tall<b>UI</b> Web Components.
</p>
</div>
19 changes: 10 additions & 9 deletions _icons/tallui-web-icons/composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"name": "blade-organization/blade-heroicons",
"description": "A package to easily make use of Heroicons in your Laravel Blade views.",
"keywords": ["Blade", "Heroicons", "Laravel"],
"homepage": "https://github.com/blade-organization/blade-heroicons",
"name": "usetall/tallui-web-icons",
"description": "A package with different styles of social icons, file icons and brand icons.",
"keywords": ["Blade", "TallUI", "Laravel", "Social-Icons", "File-Icons", "Brand-Icons"],
"homepage": "https://github.com/usetall/tallui-web-icons",
"license": "MIT",
"authors": [
{
"name": "Blade Developer"
"name": "TallUI Developers",
"email": "[email protected]"
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^7.4|^8.0|^8.1",
"blade-ui-kit/blade-icons": "^1.1",
"illuminate/support": "^8.0"
"illuminate/support": "^8.0|^9.0"
},
"require-dev": {
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.0"
},
"autoload": {
"psr-4": {
"BladeUI\\Heroicons\\": "src"
"Usetall\\TalluiWebIcons\\": "src"
}
},
"autoload-dev": {
Expand All @@ -31,7 +32,7 @@
"extra": {
"laravel": {
"providers": [
"BladeUI\\Heroicons\\BladeHeroiconsServiceProvider"
"Usetall\\TalluiWebIcons\\TalluiWebIconsServiceProvider"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
*/

'prefix' => 'heroicon',
'prefix' => 'icon',

/*
|-----------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,40 @@

declare(strict_types=1);

namespace BladeUI\Heroicons;
namespace Usetall\TalluiWebIcons;

use BladeUI\Icons\Factory;
use Illuminate\Contracts\Container\Container;
use Illuminate\Support\ServiceProvider;

final class BladeHeroiconsServiceProvider extends ServiceProvider
final class TalluiWebIconsServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->registerConfig();

$this->callAfterResolving(Factory::class, function (Factory $factory, Container $container) {
$config = $container->make('config')->get('blade-heroicons', []);
$config = $container->make('config')->get('tallui-web-icons', []);

$factory->add('heroicons', array_merge(['path' => __DIR__.'/../resources/svg'], $config));
$factory->add('webicons', array_merge(['path' => __DIR__.'/../resources/svg/black'], $config));
});
}

private function registerConfig(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/blade-heroicons.php', 'blade-heroicons');
$this->mergeConfigFrom(__DIR__.'/../config/tallui-web-icons.php', 'tallui-web-icons');
}

public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../resources/svg' => public_path('vendor/blade-heroicons'),
], 'blade-heroicons');
__DIR__.'/../resources/svg' => public_path('vendor/tallui-web-icons'),
], 'tallui-web-icons');

$this->publishes([
__DIR__.'/../config/blade-heroicons.php' => $this->app->configPath('blade-heroicons.php'),
], 'blade-heroicons-config');
__DIR__.'/../config/tallui-web-icons.php' => $this->app->configPath('tallui-web-icons.php'),
], 'tallui-web-icons-config');
}
}
}
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
{
"type": "path",
"url": "./_components/tallui-app-components"
},
{
"type": "path",
"url": "./_icons/tallui-web-icons"
}
],
"require": {
Expand All @@ -34,7 +38,8 @@
"usetall/tallui-core": "dev-main",
"usetall/tallui-web-components": "dev-main",
"usetall/tallui-form-components": "dev-main",
"usetall/tallui-app-components": "dev-main"
"usetall/tallui-app-components": "dev-main",
"usetall/tallui-web-icons": "dev-main"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
Expand Down
Loading

0 comments on commit 4b1a4a3

Please sign in to comment.