Skip to content

Commit 0471dc9

Browse files
committed
Implementación de librerias
1 parent caed9e9 commit 0471dc9

File tree

349 files changed

+239794
-1552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+239794
-1552
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ in `composer.json`
4343

4444
## Usage
4545

46+
First publish the js libs `public/libs`
47+
48+
```
49+
php artisan vendor:publish --tag=tabler-libs
50+
```
51+
Second
4652
```
4753
// Generate basic scaffolding...
4854
php artisan ui tabler
@@ -55,15 +61,6 @@ php artisan ui tabler --auth
5561

5662
More use go to [Laravel Ui Official Documentation](https://github.com/laravel/ui).
5763

58-
If you want use Chinese language for authentication views, you can publish `zh_CN.json` to `resource/lang`:
59-
60-
```
61-
php artisan vendor:publish --tag=laravel-tabler-lang-cn
62-
```
63-
64-
## Preview
65-
66-
[OnLine preview](https://laravel-tabler-ui-preview.godruoyi.com/)
6764

6865
## Contributing
6966

src/.DS_Store

6 KB
Binary file not shown.

src/Tabler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Tabler
1616
/**
1717
* The version.
1818
*/
19-
const VERSION = '0.0.1';
19+
const VERSION = '0.0.3';
2020

2121
/**
2222
* Default theme for dashbarod.
@@ -84,7 +84,7 @@ protected static function viewInstall(LaravelAuthCommand $command)
8484
*/
8585
protected static function presetInstall(UiCommand $command)
8686
{
87-
Bootstrap::install();
87+
//Bootstrap::install();
8888
TablerPreset::install();
8989

9090
$command->info('Tabler scaffolding installed successfully.');

src/TablerPreset.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class TablerPreset extends BasePreset
1717
public static function install()
1818
{
1919
static::updatePackages();
20+
static::tabler();
2021
static::updateSass();
2122
static::updateBootstrapping();
2223
static::removeNodeModules();
@@ -31,7 +32,7 @@ public static function install()
3132
protected static function updatePackageArray(array $packages)
3233
{
3334
return [
34-
'@tabler/core' => '^1.0.0-beta10',
35+
'@tabler/core' => '^1.0.0-beta16',
3536
] + $packages;
3637
}
3738

@@ -54,4 +55,20 @@ protected static function updateBootstrapping()
5455
{
5556
copy(__DIR__.'/stubs/js/bootstrap.js', resource_path('js/bootstrap.js'));
5657
}
58+
/**
59+
* Update the tabler files.
60+
*
61+
* @return void
62+
*/
63+
protected static function tabler()
64+
{
65+
copy(__DIR__.'/stubs/css/demo.min.css', public_path('css/demo.min.css'));
66+
copy(__DIR__.'/stubs/css/tabler-flags.min.css', public_path('css/tabler-flags.min.css'));
67+
copy(__DIR__.'/stubs/css/tabler-payments.min.css', public_path('css/tabler-payments.min.css'));
68+
copy(__DIR__.'/stubs/css/tabler-vendors.min.css', public_path('css/tabler-vendors.min.css'));
69+
// copy(__DIR__.'\stubs\libs\apexcharts\dist\apexcharts.js', public_path('libs\apexcharts\dist\apexcharts.js'));
70+
// copy(__DIR__.'/stubs/libs/jsvectormap/dist/js/jsvectormap.min.js', public_path('libs/jsvectormap/dist/js/jsvectormap.min.js'));
71+
// copy(__DIR__.'/stubs/libs/jsvectormap/dist/maps/world.js', public_path('libs/jsvectormap/dist/maps/world.js'));
72+
// copy(__DIR__.'/stubs/libs/jsvectormap/dist/maps/world-merc.js', public_path('libs/jsvectormap/dist/maps/world-merc.js'));
73+
}
5774
}

src/TablerServiceProvider.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ public function register()
2121
AuthCommand::class,
2222
]);
2323

24+
// $this->publishes([
25+
// __DIR__.'/stubs/zh_CN.json' => resource_path('lang/zh_CN.json')
26+
// ], 'laravel-tabler-lang-cn');
27+
2428
$this->publishes([
25-
__DIR__.'/stubs/zh_CN.json' => resource_path('lang/zh_CN.json')
26-
], 'laravel-tabler-lang-cn');
29+
__DIR__.'/stubs/libs' => public_path('libs')
30+
], 'tabler-libs');
2731
}
2832
}
2933

src/stubs/.DS_Store

6 KB
Binary file not shown.

src/stubs/css/demo.min.css

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

0 commit comments

Comments
 (0)