infyomlabs / adminlte-templates Goto Github PK
View Code? Open in Web Editor NEWAdminLTE V3 templates for InfyOm Laravel Generator
Home Page: https://infyom.com/open-source/laravelgenerator/docs/8.0/adminlte-templates
License: MIT License
AdminLTE V3 templates for InfyOm Laravel Generator
Home Page: https://infyom.com/open-source/laravelgenerator/docs/8.0/adminlte-templates
License: MIT License
When the localized is set to true, running commands like infyom:api_scaffold
, infyom.publish:layout --localized
will show an error that the stub file is missing.
copy(~/laravel/vendor/infyomlabs/adminlte-templates/templates/scaffold/layouts/app_locale.stub): Failed to open stream: No such file or directory
at vendor/infyomlabs/laravel-generator/src/Commands/Publish/PublishBaseCommand.php:20
16▕ if (file_exists($destinationFile) && !$this->confirmOverwrite($destinationFile)) {
17▕ return;
18▕ }
19▕
➜ 20▕ copy($sourceFile, $destinationFile);
21▕
22▕ $this->comment($fileName.' published');
23▕ $this->info($destinationFile);
24▕ }
*** routes added.
ErrorException
file_get_contents(~/laravel/vendor/infyomlabs/adminlte-templates/templates/scaffold/layouts/menu_template_locale.stub): Failed to open stream: No such file or directory
at vendor/infyomlabs/laravel-generator/src/helpers.php:138
134▕ function get_template($templateName, $templateType)
135▕ {
136▕ $path = get_template_file_path($templateName, $templateType);
137▕
➜ 138▕ return file_get_contents($path);
139▕ }
140▕ }
composer.json:
"php": "^8.0.2",
"doctrine/dbal": "^3.3",
"guzzlehttp/guzzle": "^7.2",
"infyomlabs/adminlte-templates": "^4.0",
"infyomlabs/laravel-generator": "^4.0",
"laravel/framework": "^9.2",
"laravel/sanctum": "^2.14.1",
"laravel/tinker": "^2.7",
"laravel/ui": "^3.4",
macOS 12.3
php v8.1.3
Laravel v9.3.1
infyomlabs/adminlte-templates v4.0.0
infyomlabs/laravel-generator v4.0.0
infyomlabs/laravel-generator-helpers v4.0.0
infyomlabs/laravel-ui-adminlte v4.0.0
I have field date. When i try to choose date, always reset. I just want to pick date, not date picker and i want format DD/MM/YYYY. How resolve this problem?
@section('scripts') <script type="text/javascript"> $('#tgl_lahir').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss', useCurrent: false }) </script> @endsection
Thx
pagination is missing by default. You should to add "$PAGINATE$" to /scaffold/index.stub
Hey,
Version 4.0.0 with support for laravel 9 in file [adminlte-templates]/[templates]/[scaffold]/[views]/datatable_body.stub present includes of layouts.datatables_css and layouts.datatables_js which is not present neither in adminlte-templates repository no in laravel-ui-adminlte.
Should that be fixed?
windows 10
php v8.1
Laravel v9.3.1
infyomlabs/adminlte-templates v4.0.0
infyomlabs/laravel-generator v4.0.0
infyomlabs/laravel-generator-helpers v4.0.0
infyomlabs/laravel-ui-adminlte v4.0.0
I followed the doc to install adminteltemplate but get an error
http://labs.infyom.com/laravelgenerator/docs/templates/adminlte
php artisan infyom.publish:layout
PHP Fatal error: Class 'InfyOm\AdminLTETemplates\AdminLTETemplatesServiceProvider' not found in /home/wwwroot/f1.aicxy.com/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'InfyOm\AdminLTETemplates\AdminLTETemplatesServiceProvider' not found
what's wrong? thanks
As the datatables doc tells, you don't have to include standard and bootstrap css in adminlte-templates/templates/scaffold/layouts/datatables_css.stub
:
<!-- DataTable Bootstrap -->
<link href="//cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/buttons/1.2.2/css/buttons.bootstrap.min.css">
Including both css results in overlapping icons and glitchs on the datatable, so jquery.dataTables.min.css should be removed.
Sidebar menu is not expanding and sidebar toggle not working.
Please fix the "_locale.stub" files because their html parts are not up-to-date.
e.g. "menu_template.stub" was updated some month ago, but "menu-template_locale.stub" was not. But it is the same for all localized template files I guess.
Thank you
I've noticed that by default data from DB is not escaped inside show_field.stub#L4.
Wouldn't it be better/safer to always escape the data and let developers change it only if needed?
adminlte-templates/templates/scaffold/views/show.stub line 12 have hardcoded route:
<a class="btn btn-default float-right"
href="{{ route('posts.index') }}">
Back
</a>
this seems to work great for almost everything for quickly building core API requirements, but did notice that using this it is not generating the seeders for the table as appears can be done from the command line. can this be added to the process, and if so how?
There is some reason to include Ionicons twice in "app.stub"?
There are two includes :
<!-- Ionicons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
...
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
Besides that this two versions are different, and the css differs.
The cdnjs.cloudflare.com version really seems to be "v2.0.0" and the ionicframework.com one is "2.0.1"
Hi, I'm confused about this two files, it seems that only id
is added to the blade_table_body.
What's the intention of having two different stub file to make a table if difference is just id
on the attribute?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.