-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update structure and use webpack #6
Conversation
- install dependencies | ||
|
||
```bash | ||
yarn add vue axios vue-ls vuemit vue-notif vue-clipboard2 vue-tippy vue-awesome |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the reason for keeping the dependencies external is so you can use the same package anywhere else without the need to reinstall it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to install any dependencies, only the dev need them
|
||
- for styling we use ***bulma*** | ||
|
||
> ***Or Use another Framework*** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why ppl get confused with this, but u r not the first one to fall into this quote trap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config/lingo.php
Outdated
'as' => 'lingo.', | ||
'middleware' => 'web', | ||
'theme' => env('LINGO_THEME','bulma'), | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do u need this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add ability for user to change
- the prefix (route)
- the theme from config file or .env (previously was MIX_LINGO_FRAMEWORK)
- custom middleware
"es6-promise": "^4.0.5", | ||
"laravel-mix": "^1.4.2" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again why do u need this ? other than restricting the packages versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You always need to restrict package version, from v1 to v2 can break things
and again this for the developer
public/css/app.css
Outdated
} | ||
|
||
|
||
/*# sourceMappingURL=data:application/json;charset=utf-8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B7XG4gIHRyYW5zaXRpb246IGFsbCAwLjRzO1xufVxuXG4uY29tcC1mYWRlLWVudGVyLFxuLmNvbXAtZmFkZS1sZWF2ZS10byB7XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMzBweCk7XG4gIG9wYWNpdHk6IDA7XG59XG5cbi5uZXN0ZWRLZXkge1xuICBjb2xvcjogd2hpdGU7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzNjM2MzY7XG59XG5cbnRoZWFkIHRoIHtcbiAgcG9zaXRpb246IHN0aWNreTtcbiAgei1pbmRleDogMTtcbiAgdG9wOiAzMHB4O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbn1cblxuXG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vYXBwLnNjc3MiXSwic291cmNlUm9vdCI6IiJ9*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about the bulma
override styles ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will only be able to access lingo in the local environment. The auth method accepts a callback which should return true or false, indicating whether the user should have access to the Lingo section Lingo::auth(function ($request) { // return true / false; });
I added some new updates like Lingo::Auth |
You will only be able to access lingo in the local environment. The auth method accepts a callback which should return true or false, indicating whether the user should have access to the Lingo section Lingo::auth(function ($request) { // return true / false; });
first thanx so much for all ur help
config should be used only when its needed, specially as atm laravel config folder is a big mess.
|
@KABBOUCHI why closed ? |
you declined all my updates, why you need it :) edit: all my updates does is for the end user benefits, if you don't want to maintain your product, it's okay no need to merge it |
how about this
|
Not sure what do you want, I added webpack to precompile css/js for dev purpose it's already there in a fresh laravel installer |
okay, thanx again |
user no longer need to add manually, install or add options
N.B: Not fully tested, please check if Controller need updates
Inspired by Laravel Horizon