Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RELEASE] AdminLTE v4 beta2 #3692

Open
danny007in opened this issue May 13, 2021 · 200 comments
Open

[RELEASE] AdminLTE v4 beta2 #3692

danny007in opened this issue May 13, 2021 · 200 comments

Comments

@danny007in
Copy link
Collaborator

danny007in commented May 13, 2021

(Beta)-Release is online, you can install it with npm install admin-lte@next or npm install [email protected].

Online https://adminlte-v4.netlify.app

Check https://github.com/ColorlibHQ/AdminLTE

Install npm i for this you need Node,js

to build npm run production

to run npm run dev
then open go to http://localhost:3000/

then give some idea, or contribute 👍🏼

@leonardodepaula

This comment has been minimized.

@danny007in

This comment was marked as outdated.

@danny007in

This comment has been minimized.

@tacman
Copy link
Contributor

tacman commented May 16, 2021

Wahoo! Very exciting.

Obviously, lots more to do (login pages, right hand sidebar, etc.), but great to see that this is starting.

It appears to me that the BS5 changes from BS4 are not as significant as the BS3 to BS4 changes, dropping jquery of course is a big one. And changes to the data attributes to include -bs.

Do you think that getting the demo to work is going to be mostly HTML to change to support bs5, or changes to the AdminLTE CSS and JS files?

@Root3287
Copy link

Do we have to compile using npm? Will there be compiled CSS/JS in the future?

@danny007in
Copy link
Collaborator Author

Do we have to compile using npm? Will there be compiled CSS/JS in the future?

Same as AdminLTE v3

@danny007in

This comment was marked as resolved.

@REJack

This comment was marked as resolved.

@danny007in

This comment was marked as outdated.

@REJack

This comment was marked as outdated.

@danny007in

This comment was marked as outdated.

@danny007in

This comment was marked as outdated.

@ZhangChengLin

This comment was marked as outdated.

@ZhangChengLin

This comment was marked as outdated.

@ZhangChengLin

This comment was marked as outdated.

@danny007in

This comment was marked as outdated.

@ZhangChengLin

This comment was marked as outdated.

@MGatner

This comment was marked as outdated.

@REJack

This comment was marked as outdated.

@MGatner
Copy link
Contributor

MGatner commented Jun 23, 2021

Thanks @REJack. I will build myself and see where I can hop in. Do you have any plans to make version 3 compatible with Bootstrap 5? Or is it 3.x => BS4, 4.x => BS5?

@REJack
Copy link
Collaborator

REJack commented Jun 23, 2021

v3 will stuck on BS4

@tacman
Copy link
Contributor

tacman commented Jun 23, 2021

v3 will stuck on BS4

Great, too messy, especially without jQuery.

@MGatner

This comment was marked as resolved.

@danny007in

This comment was marked as resolved.

@MGatner

This comment was marked as outdated.

@MGatner
Copy link
Contributor

MGatner commented Jun 24, 2021

In case it is helpful to anyone else I will be maintaining a distribution repo for version 4 until there is an official release: https://github.com/MGatner/adminlte4

@REJack

This comment was marked as outdated.

@jameslao
Copy link

Creating theme customizer 🎨 image

Any progress on the customizer?

@jameslao
Copy link

I'm working with downstream repos like django-jazzmin, so would really love to see AdminLTE 4 in a working condition. I'd be happy to contribute if there's a viable way.

@DPComp
Copy link

DPComp commented Apr 14, 2024

When this will be release as master?
Any upgrade from 3.2 to 4.0 manual, even for beta release?
It has been years from now since the bootstrap 5 release! Did you guys abandon the project, @danny007in ?

@danny007in
Copy link
Collaborator Author

Hey everyone! I'm back after a break and will be finishing up the release of AdminLTE v4 beta soon.

@carry0987
Copy link

Hey everyone! I'm back after a break and will be finishing up the release of AdminLTE v4 beta soon.

Thank you so much for the update! We're thrilled to hear that you're back and working on the AdminLTE v4 beta release. We're eagerly looking forward to exploring the new features and improvements you've worked on.

Excited for what's to come!

@danny007in
Copy link
Collaborator Author

AdminLTE beta1 released check out https://github.com/ColorlibHQ/AdminLTE/releases/tag/v4.0.0-beta1

@juniwalk
Copy link

@danny007in Is there v4 preview page?

@carry0987
Copy link

carry0987 commented May 29, 2024

@danny007in Is there v4 preview page?

@juniwalk
https://adminlte-v4.netlify.app

@E-zh
Copy link

E-zh commented Jun 17, 2024

Hi guys! Cane you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta.
How to init treeview in my vue component? This method not working:
$('[data-widget="treeview"]').Treeview('init')
And, AdminLTE 4 don't use jQuery.
Thanks

@wizhippo
Copy link

wizhippo commented Jun 17, 2024

Hi guys! Cane you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta. How to init treeview in my vue component? This method not working: $('[data-widget="treeview"]').Treeview('init') And, AdminLTE 4 don't use jQuery. Thanks

JQuery is not used any more. Instead you would just use the attribute data-lte-toggle="treeview"

https://adminlte-v4.netlify.app/dist/pages/docs/javascript/treeview

@E-zh
Copy link

E-zh commented Jun 17, 2024

Hi guys! Can you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta. How to init treeview in my vue component? This method not working: $('[data-widget="treeview"]').Treeview('init') And, AdminLTE 4 don't use jQuery. Thanks

JQuery is not used any more. Instead you would just use the attribute data-lte-toggle="treeview"

https://adminlte-v4.netlify.app/dist/pages/docs/javascript/treeview

So I did. The problem is that after authorization and redirect to the admin panel, which uses Adminlte, the treeview does not work, the menu items are closed and do not expand. This happens specifically in the Vue component.
What other ideas might there be? Maybe you need to somehow initialize it in js?

@wizhippo
Copy link

Hi guys! Can you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta. How to init treeview in my vue component? This method not working: $('[data-widget="treeview"]').Treeview('init') And, AdminLTE 4 don't use jQuery. Thanks

JQuery is not used any more. Instead you would just use the attribute data-lte-toggle="treeview"
https://adminlte-v4.netlify.app/dist/pages/docs/javascript/treeview

So I did. The problem is that after authorization and redirect to the admin panel, which uses Adminlte, the treeview does not work, the menu items are closed and do not expand. This happens specifically in the Vue component. What other ideas might there be? Maybe you need to somehow initialize it in js?

I'm guessing the the elements don't exist at the time the default code runs to get all the elements with the data-lte-toggle attribute. You then should do so in your own code. You can look at

onDOMContentLoaded(() => {
as an example and in your vue code do the same when the elemets do exisit.

@E-zh
Copy link

E-zh commented Jun 19, 2024

Hi guys! Can you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta. How to init treeview in my vue component? This method not working: $('[data-widget="treeview"]').Treeview('init') And, AdminLTE 4 don't use jQuery. Thanks

JQuery is not used any more. Instead you would just use the attribute data-lte-toggle="treeview"
https://adminlte-v4.netlify.app/dist/pages/docs/javascript/treeview

So I did. The problem is that after authorization and redirect to the admin panel, which uses Adminlte, the treeview does not work, the menu items are closed and do not expand. This happens specifically in the Vue component. What other ideas might there be? Maybe you need to somehow initialize it in js?

I'm guessing the the elements don't exist at the time the default code runs to get all the elements with the data-lte-toggle attribute. You then should do so in your own code. You can look at

onDOMContentLoaded(() => {

as an example and in your vue code do the same when the elemets do exisit.

i get error: TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
I'm not quite sure how exactly to use this call, in the layout component? Or in the app.js of the project?

@E-zh
Copy link

E-zh commented Jun 19, 2024

My app.js file:

import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/vue3';
//import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { ZiggyVue } from '../../vendor/tightenco/ziggy';
import '@popperjs/core';
import 'bootstrap';
import 'admin-lte';

const appName = import.meta.env.VITE_APP_NAME || 'Laravel';

createInertiaApp({
    title: (title) => `${title} - ${appName}`,
    //resolve: (name) => resolvePageComponent(`./V1/Pages/**/${name}.vue`, import.meta.glob('./V1/Pages/**/*.vue')),
    resolve: name => {
        const pages = import.meta.glob('./V1/Pages/**/*.vue', { eager: true })
        let page;
        if (name.startsWith('Admin')) {
            page = pages[`./V1/Pages/Admin/${name}.vue`]
        } else {
            page = pages[`./V1/Pages/Site/${name}.vue`]
        }
        return page
    },
    setup({ el, App, props, plugin }) {
        return createApp({ render: () => h(App, props) })
            .use(plugin)
            .use(ZiggyVue)
            .mount(el);
    },
    progress: {
        color: '#4B5563',
    },
});

@wizhippo
Copy link

Hi guys! Can you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta. How to init treeview in my vue component? This method not working: $('[data-widget="treeview"]').Treeview('init') And, AdminLTE 4 don't use jQuery. Thanks

JQuery is not used any more. Instead you would just use the attribute data-lte-toggle="treeview"
https://adminlte-v4.netlify.app/dist/pages/docs/javascript/treeview

So I did. The problem is that after authorization and redirect to the admin panel, which uses Adminlte, the treeview does not work, the menu items are closed and do not expand. This happens specifically in the Vue component. What other ideas might there be? Maybe you need to somehow initialize it in js?

I'm guessing the the elements don't exist at the time the default code runs to get all the elements with the data-lte-toggle attribute. You then should do so in your own code. You can look at

onDOMContentLoaded(() => {

as an example and in your vue code do the same when the elemets do exisit.

i get error: TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded') I'm not quite sure how exactly to use this call, in the layout component? Or in the app.js of the project?

You don't. You use it as an example and update your code that makes the menu and adds an event listener/treeview to the items.

@E-zh
Copy link

E-zh commented Jul 1, 2024

Hi guys! Can you help me? I'm use Laravel 11 + Inertia + Vue 3 + AdminLTE 4-beta. How to init treeview in my vue component? This method not working: $('[data-widget="treeview"]').Treeview('init') And, AdminLTE 4 don't use jQuery. Thanks

JQuery is not used any more. Instead you would just use the attribute data-lte-toggle="treeview"
https://adminlte-v4.netlify.app/dist/pages/docs/javascript/treeview

So I did. The problem is that after authorization and redirect to the admin panel, which uses Adminlte, the treeview does not work, the menu items are closed and do not expand. This happens specifically in the Vue component. What other ideas might there be? Maybe you need to somehow initialize it in js?

I'm guessing the the elements don't exist at the time the default code runs to get all the elements with the data-lte-toggle attribute. You then should do so in your own code. You can look at

onDOMContentLoaded(() => {

as an example and in your vue code do the same when the elemets do exisit.

i get error: TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded') I'm not quite sure how exactly to use this call, in the layout component? Or in the app.js of the project?

You don't. You use it as an example and update your code that makes the menu and adds an event listener/treeview to the items.

It's working in vue component:

export default {
    mounted() {
        this.initAdminLTE();
    },
    methods: {
        initAdminLTE() {
            const script = document.createElement('script');
            script.src = '/admin-lte/adminlte.min.js';
            script.onload = () => {
                window.AdminLTE && window.AdminLTE.Treeview();
            };
            document.head.appendChild(script);
        }
    }
}

@ajiho
Copy link

ajiho commented Jul 9, 2024

I'm also grateful for your work but I have to voice my concerns.

  • Bootstrap 4 support has ended and we don't know if we're going to get security updates in the future
  • Bootstrap 6 might appear soon and in the worst case situation the only supported version of Bootstrap is 6.x and AdminLTE is still lacking version that supports Bootstrap 5.x

I'm going to be brutally honest here. I don't think this project will last if this trend continues. I'm most likely going to drop AdminLTE in my projects because it hasn't been able to keep up with Bootstrap.

That's right. Bootstrap 6 may arrive, but it will take a long time,This is an open source project, and if we want Adminlte to keep up with Bootstrap, I think we should need more people to participate and contribute. If we just keep asking, I don't think there will be much progress

@ajiho
Copy link

ajiho commented Jul 9, 2024

Do we have to compile using npm? Will there be compiled CSS/JS in the future?

Same as AdminLTE v3

Regarding this point, for Composer users, it seems that they can only obtain the source code because I observed that adminlte ignored the dist directory . Composer is different from NPM. When NPM releases, it can only publish the dist directory, while Composer seems to only download the content of the tag tag, so it can only obtain the source code? What do you think about this? If you don't want to break the status quo, you may need to explain this in the document

@carry0987
Copy link

That's right. Bootstrap 6 may arrive, but it will take a long time,This is an open source project, and if we want Adminlte to keep up with Bootstrap, I think we should need more people to participate and contribute. If we just keep asking, I don't think there will be much progress

This is the best reply I've seen. The spirit of collaboration is indeed the most important aspect of open-source projects.

@danny007in
Copy link
Collaborator Author

Just Released adminlte-4.0.0-beta2

@danny007in danny007in changed the title [RELEASE] AdminLTE v4 beta1 [RELEASE] AdminLTE v4 beta2 Sep 1, 2024
@danny007in
Copy link
Collaborator Author

in next release i have decided to release compiled dist folder also any suggestions

@dereuromark
Copy link

Is there any chance that layout-navbar-fixed and a fixed top navbar remains?
Coming from v3 this seems to be lost now.

@danny007in
Copy link
Collaborator Author

Is there any chance that layout-navbar-fixed and a fixed top navbar remains? Coming from v3 this seems to be lost now.

#5681 (comment)

@semanticfire
Copy link

First, delighted to see this moving!

I've started migrating one of my projects to 4.0.0-beta2 today, and I'm happy so far, good job!

I use my own theme colors and after some tweaking and updating I got this (#2687) method working on the new build system.
The documentation needs an update. This seems related to one of the tasks of #4885, how can I help with that?

@ErikThiart
Copy link

First, delighted to see this moving!

I've started migrating one of my projects to 4.0.0-beta2 today, and I'm happy so far, good job!

I use my own theme colors and after some tweaking and updating I got this (#2687) method working on the new build system. The documentation needs an update. This seems related to one of the tasks of #4885, how can I help with that?

Is there a CDN available?

@henry5059
Copy link

Hello, I am working with AdminLte 4.0.0-beta2 in vuejs 3.5. But I have a problem when loading the Adminlte scripts, since the sidebar toggle does not work, for example. Can you explain to me if I'm doing something wrong or what?

This would be the reference source code.
`import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap-icons/font/bootstrap-icons.css';
import 'admin-lte/dist/css/adminlte.min.css';

import 'bootstrap'
import 'admin-lte'

That is when installing the package: npm i admin-lte

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests