dmstr / yii2-adminlte-asset

AdminLTE Asset Bundle for Backend Theme in Yii2 Framework
1.14k stars 424 forks source link

AdminLTE 3 #183

Open Inkognitoo opened 5 years ago

Inkognitoo commented 5 years ago

Do you planning add AdminLTE 3 templates?

https://adminlte.io/themes/dev/AdminLTE/index3.html

schmunk42 commented 5 years ago

Basically yes, PRs welcome!

daniele-athome commented 5 years ago

Problem is it hasn't been released yet :-(

Inkognitoo commented 5 years ago

Somebody said, they use it in production

https://github.com/almasaeed2010/AdminLTE/issues/2046

developedsoftware commented 5 years ago

Looks like AdminLTE3 by almaseed2010 is soon to be released. Will this repo be updated to work with this change or should I spin up a branch to start working on it?

schmunk42 commented 5 years ago

Contributions are very welcome! We are currently not working on it.

CC: @githubjeka What's about you?

KaungZawHtet commented 5 years ago

Any progress?

schmunk42 commented 5 years ago

Is there a stable release from AdminLTE v3 yet?

KaungZawHtet commented 5 years ago

They are inactive in v3 project too. How about switching to sb admin 2. https://github.com/BlackrockDigital/startbootstrap-sb-admin-2

schmunk42 commented 5 years ago

We won't switch to SB Admin with this package.

daniele-athome commented 5 years ago

AdminLTE 3.0.0-rc1 was released a few days ago. Feeling like accepting a PR to make perhaps a beta version of your Yii plugin?

schmunk42 commented 5 years ago

@daniele-athome Sure, PRs are welcome!

daniele-athome commented 5 years ago

Oh my, Bootstrap 4... this is going to take some time (I'd like to port my web app too so I can test everything)

voinmerk commented 5 years ago

Бро, версия альфа ^3 стабильная? Могу заюзать?

papppeter commented 5 years ago

https://github.com/ColorlibHQ/AdminLTE/releases/tag/v3.0.0 is just released. Do you have any time to create a v3 version?

developedsoftware commented 5 years ago

+1

Gttma commented 4 years ago

+1

sahilr2050 commented 4 years ago

Hello Guys, Thanks for the best Admin theme ever.

I would like to know when can I expect this update. As I am looking for admin theme (Yii2 Framework) for new project.

Thank you.

schmunk42 commented 4 years ago

A very very rough commit: https://github.com/dmstr/yii2-adminlte-asset/commit/16fef79dd976e8d97c014883d34054b8f24c1379

Demo Pages not updated.

Further PRs highly welcome.

DesRodman commented 4 years ago

i tried to install with same compose.json and result

root@laptop:/var/www/smpp-gateway# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - roave/better-reflection 3.1.1 requires php >=7.1.0,<7.3.0 -> your PHP version (7.3.11) does not satisfy that requirement.
    - roave/better-reflection 3.1.0 requires php >=7.1.0,<7.3.0 -> your PHP version (7.3.11) does not satisfy that requirement.
    - roave/better-reflection 3.0.0 requires php >=7.1.0,<7.3.0 -> your PHP version (7.3.11) does not satisfy that requirement.
    - Installation request for composer/composer ^1.8 -> satisfiable by composer/composer[1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.9.0, 1.9.1, 1.9.2, 1.9.3].
    - Conclusion: remove nikic/php-parser v3.1.5
    - Conclusion: don't install symfony/console v2.8.38
    - Conclusion: remove phpstan/phpstan 0.7|install symfony/console v2.8.38
    - Installation request for phpstan/phpstan ^0.7 -> satisfiable by phpstan/phpstan[0.7].
    - Conclusion: don't install nikic/php-parser v3.1.5
    - Conclusion: don't install nikic/php-parser v3.1.4
    - Conclusion: don't install nikic/php-parser v3.1.3
    - Conclusion: don't install nikic/php-parser v3.1.2
    - Conclusion: don't install nikic/php-parser v3.1.1
    - Conclusion: don't install nikic/php-parser v3.1.0
    - Conclusion: don't install nikic/php-parser v3.0.6
    - Conclusion: don't install nikic/php-parser v3.0.5
    - Conclusion: don't install nikic/php-parser v3.0.4
    - Conclusion: don't install nikic/php-parser v3.0.3
    - Conclusion: don't install nikic/php-parser v3.0.2
    - roave/backward-compatibility-check 2.1.0 requires roave/better-reflection ^3.0 -> satisfiable by roave/better-reflection[3.0.0, 3.1.0, 3.1.1, 3.2.0, 3.3.0, 3.4.0, 3.5.0].
    - roave/backward-compatibility-check 2.0.0 requires roave/better-reflection ^3.0 -> satisfiable by roave/better-reflection[3.0.0, 3.1.0, 3.1.1, 3.2.0, 3.3.0, 3.4.0, 3.5.0].
    - roave/better-reflection 3.2.0 requires nikic/php-parser ^4.0.4 -> satisfiable by nikic/php-parser[v4.0.4, v4.1.0, v4.1.1, v4.2.0, v4.2.1, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.3.0].
    - roave/better-reflection 3.3.0 requires nikic/php-parser ^4.0.4 -> satisfiable by nikic/php-parser[v4.0.4, v4.1.0, v4.1.1, v4.2.0, v4.2.1, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.3.0].
    - roave/better-reflection 3.4.0 requires nikic/php-parser ^4.0.4 -> satisfiable by nikic/php-parser[v4.0.4, v4.1.0, v4.1.1, v4.2.0, v4.2.1, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.3.0].
    - roave/better-reflection 3.5.0 requires nikic/php-parser ^4.2.1 -> satisfiable by nikic/php-parser[v4.2.1, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.3.0].
    - Can only install one of: nikic/php-parser[v4.0.4, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.1.0, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.1.1, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.2.0, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.2.1, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.2.2, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.2.3, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.2.4, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.2.5, v2.1.0].
    - Can only install one of: nikic/php-parser[v4.3.0, v2.1.0].
    - phpstan/phpstan 0.7 requires nikic/php-parser ^2.1 || ^3.0.2 -> satisfiable by nikic/php-parser[v3.1.5, v2.1.0, v2.1.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4].
    - Conclusion: don't install nikic/php-parser v2.1.1
    - Installation request for roave/backward-compatibility-check ^2.0 -> satisfiable by roave/backward-compatibility-check[2.0.0, 2.1.0].
schmunk42 commented 4 years ago

@DesRodman Did you try to run composer install in this repo or did you require AdminLTE in a project?

sahilr2050 commented 4 years ago

Simply, downgrade your php to 7.2.xx this will help resolve most of errors. Also do not run composer command on Root access this may be cause a big issue anyday.

DesRodman commented 4 years ago

I have advanced yii2 project on my dev pc

i set

"require": {
        ....
        "yiisoft/yii2-bootstrap4": "~2.0.8",
        "almasaeed2010/adminlte": "^3.0.2"
    },
    "suggest": {
        "cebe/yii2-gravatar": "Display user icons",
        "rmrevin/yii2-fontawesome": "Font icons"
    },
     ...
    "require-dev": {
        "roave/backward-compatibility-check": "^2.0"
    }

and made "composer update"

PS: back to php7.2 - its bad idea.

schmunk42 commented 4 years ago

This is the package causing the problem, I think:

"roave/backward-compatibility-check": "^2.0"

or run

composer why -r nikic/php-parser

to see who is requiring this in another version.

mmasruhin28 commented 4 years ago

how to change menu with Menu::widget???

schmunk42 commented 4 years ago

how to change menu with Menu::widget???

see https://github.com/dmstr/yii2-adminlte-asset/blob/master/example-views/yiisoft/yii2-app/layouts/left.php#L29 for an example

DesRodman commented 4 years ago

This is the package causing the problem, I think:

"roave/backward-compatibility-check": "^2.0"

or run

composer why -r nikic/php-parser

to see who is requiring this in another version.

user@laptop:/var/www/gateway# composer why -r nikic/php-parser
yiisoft/yii2-app-advanced  dev-master  requires (for development)  phpstan/phpstan (^0.7)             
phpstan/phpstan            0.7         requires                    nikic/php-parser (^2.1 || ^3.0.2) 

trully such debug i never used... but can give you response for checking

schmunk42 commented 4 years ago

Why do you have...

   "require-dev": {
       "roave/backward-compatibility-check": "^2.0"
   }

in your app?

It's a dev-package for this lib.

DesRodman commented 4 years ago

Currently i dont have it in my project, i think i added it from your examples, which i saw in your commit

Can you please tell me what necessary extensions i need anyway?!

schmunk42 commented 4 years ago

Currently i dont have it in my project, i think i added it from your examples, which i saw in your commit

Can you please tell me what necessary extensions i need anyway?!

composer require dmstr/yii2-adminlte-asset dev-master

hoaaah commented 4 years ago

Happy to see this repository support AdminLTE 3. Try to see if I could help in some way...

They are inactive in v3 project too. How about switching to sb admin 2. https://github.com/BlackrockDigital/startbootstrap-sb-admin-2

If you want to use SBAdmin-2 try this repo https://github.com/hoaaah/yii2-startbootstrap-sb-admin-2-asset

haifahrul commented 4 years ago

Any progress?

schmunk42 commented 4 years ago

@haifahrul Please have a look at dev-master there was some progress, but we have currently no resources to actively develop it.

DesRodman commented 4 years ago

I tryed... Install extension and set

     'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@vendor/dmstr/yii2-adminlte-asset/example-views/testing/app'
                ],
            ],
        ],

but now i have your menu and header... just my content current picture - https://prnt.sc/rjvhy5 How can i set my left.php, header.php, rightsidebar.php and so on?

schmunk42 commented 4 years ago

How can i set my left.php, header.php, rightsidebar.php and so on?

This asset bundle provides sample files for layout and view (see folder examples/), they are not meant to be customized directly in the vendor/ folder.

Therefore it is recommended to copy the views into your application and adjust them to your needs.

https://github.com/dmstr/yii2-adminlte-asset#quick-start

lexizz commented 4 years ago

+1 when will version 3 be available?

schmunk42 commented 4 years ago

+1 when will version 3 be available?

@lexizz Can you give us some feedback on (just tagged) 3.0.0-beta1?

KaungZawHtet commented 3 years ago

Is adminlte 3 stable now ?

harwoodev commented 3 years ago

any updates?

raimon-segura commented 3 years ago

@lexizz Can you give us some feedback on (just tagged) 3.0.0-beta1?

I've just migrated from adminlte2 to 3 in yii2 using "3.0.0-beta1" tag ( "dmstr/yii2-adminlte-asset": "dev-master#3.0.0-beta1", )... seems all right but my views and few scripts(PHP, js) needs some fixes, basically for html & css & colors. Also, I've installed fontawesome package: "rmrevin/yii2-fontawesome": "~3.5",

I've followed the first two links: https://adminlte.io/docs/3.0/upgrade-guide.html https://github.com/ColorlibHQ/AdminLTE/issues/1896#issuecomment-405054309 https://getbootstrap.com/docs/4.3/migration/

@schmunk42 Will you create a new branch or a new repository for Bootstrap4 support?

Thanks!

schmunk42 commented 3 years ago

Will you create a new branch or a new repository for Bootstrap4 support?

Master is already on BS4, https://github.com/dmstr/yii2-adminlte-asset/blob/daa3cb27113db7858564d3c525d217982fc22a6b/composer.json#L19

raimon-segura commented 3 years ago

Will you create a new branch or a new repository for Bootstrap4 support?

Master is already on BS4,

https://github.com/dmstr/yii2-adminlte-asset/blob/daa3cb27113db7858564d3c525d217982fc22a6b/composer.json#L19

I guess because its still in beta, I cannot use 3.0 tag in composer.json, right? ....

Using "3.0.0-beta1" tag ( "dmstr/yii2-adminlte-asset": "dev-master#3.0.0-beta1", ) all works. Also, I've installed fontawesome package: "rmrevin/yii2-fontawesome": "~3.5",

with "dmstr/yii2-adminlte-asset": "^3.0", composer says:

Your requirements could not be resolved to an installable set of packages. Problem 1

  • Root composer.json requires dmstr/yii2-adminlte-asset ^3.0, found dmstr/yii2-adminlte-asset[dev-master, 3.0.0-alpha1, 3.0.0-beta1, 3.x-dev (alias of dev-master)] but it does not match your minimum-stability.

by the way, "dmstr/yii2-adminlte-asset": "^2.1", that I guess is the old version , composer says:

Your requirements could not be resolved to an installable set of packages. Problem 1

  • dmstr/yii2-adminlte-asset[2.1.0, ..., 2.6.2] require rmrevin/yii2-fontawesome ~2.9 -> found rmrevin/yii2-fontawesome[2.9.0, ..., 2.17.1] but it conflicts with your root composer.json require (~3.5).
  • Root composer.json requires dmstr/yii2-adminlte-asset ^2.1 -> satisfiable by dmstr/yii2-adminlte-asset[2.1.0, ..., 2.6.2]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Thanks!

schmunk42 commented 3 years ago

I guess because its still in beta, I cannot use 3.0 tag in composer.json, right? ....

You need to use the beta either with minimumStability or by adding @beta. See composer docs.

Did you update with -W like the message suggests?

raimon-segura commented 3 years ago

I guess because its still in beta, I cannot use 3.0 tag in composer.json, right? .... You need to use the beta either with minimumStability or by adding @beta. See composer docs.

It make sense, for now I will stay with dev-master#3.0.0-beta1 :D

Did you update with -W like the message suggests?

I'm using version 3.5 in my composer.json ( "rmrevin/yii2-fontawesome": "~3.5", ) ... I'm prefer to not use "-w" option, just to lock package version and upgrade manually if needed.

Thanks!

TylerByte666 commented 3 years ago

Until we can use the bootstrap 4.2.1 or above we cannot go into production 😢

CVE-2018-14042

This would solve this all ❤️ thanks for all the work already done, I can see it is at least a WIP still?

sihar commented 1 year ago

what can I help with regarding the release 3.0.0-beta1 to 3.0.0 stable version?

schmunk42 commented 1 year ago

To be honest, I think a new asset bundle (github repo) would be the best option.

sihar commented 1 year ago

To be honest, I think a new asset bundle (github repo) would be the best option.

Do you mean new repo? why do we not add it to this repo?

schmunk42 commented 1 year ago

Do you mean new repo?

Yes.

why do we not add it to this repo?

Because it might be really problematic with composer if you are forced to install only one version of the theme, regarding upgrading existing applications. Basically the same reason why Yii itself created https://github.com/yiisoft/yii2-bootstrap4 and https://github.com/yiisoft/yii2-bootstrap5

sihar commented 1 year ago

Thanks for the explanation. If for new repo and the version is adminlte3, I think the repo is already there in this url https://github.com/hail812/yii2-adminlte3.