laravel-frontend-presets / uikit3

Laravel 5.5+ Front-end preset for UIKit 3.
https://laravel-frontend-presets.github.io/uikit3
44 stars 11 forks source link

Home view missing logout link #8

Closed nille closed 7 years ago

nille commented 7 years ago

When I'm logged in and in the home view I can only see my name. There is no drop-down link (or other alternative) to logout.

Nice project btw!

nille commented 7 years ago

Not sure what that means?

nille commented 7 years ago

Never mind. Fixed it by adding a jquery include to app.blade.php.

nille commented 7 years ago

But perhaps there still is a problem? Looks to me like bootstrap.js includes jquery so I probably shouldn't have to link it manually?

OwenMelbz commented 7 years ago

@nille have you run mix to compile the assets?

nille commented 7 years ago

@OwenMelbz Yes, I have. Also, if I inspect the page in chromes console I see this error:

bootstrap.js:6 Uncaught Error: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.

Not sure why there is a reference to Bootstrap there.

OwenMelbz commented 7 years ago

Can you paste your bootstrap.js and your package.json? Ideally within the x3 ``` so it looks like

{ blah }
nille commented 7 years ago

I'm ashamed to admit it but the fault was (off course) my own. Apparently one of my chrome addons messed everything up as it has some sort of reference to bootstrap/jquery. (Here is the addon in case you are interested: https://chrome.google.com/webstore/detail/whatshisface/hdlljjddnhidfgllahkjhpfgommecolc?hl=en-GB)

Thanks!!

zymawy commented 6 years ago

You can just import the uikit in app.js

import UIkit from "uikit";
import Icons from "uikit/dist/js/uikit-icons";

// loads the Icon plugin
UIkit.use(Icons);

// components can be called from the imported UIkit reference
UIkit.notification("Hello world.");