Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
c9b8af6e
Commit
c9b8af6e
authored
Jun 21, 2018
by
Vipul Basapati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Flash component in frontend app #219
parent
d8218f5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
app.js
resources/assets/js/backend/app.js
+1
-1
Flash.vue
resources/assets/js/components/Flash.vue
+9
-4
app.js
resources/assets/js/frontend/app.js
+1
-0
No files found.
resources/assets/js/backend/app.js
View file @
c9b8af6e
...
...
@@ -743,7 +743,7 @@ function _init() {
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue
.
component
(
'
flash
'
,
require
(
'
../components/
backend/
Flash.vue
'
));
Vue
.
component
(
'
flash
'
,
require
(
'
../components/Flash.vue
'
));
Vue
.
component
(
'
export-component
'
,
require
(
'
../components/backend/Export.vue
'
));
const
app
=
new
Vue
({
...
...
resources/assets/js/components/
backend/
Flash.vue
→
resources/assets/js/components/Flash.vue
View file @
c9b8af6e
...
...
@@ -29,11 +29,16 @@ export default {
methods
:
{
flash
(
message
,
type
)
{
this
.
body
=
message
;
this
.
typeClass
=
"
alert alert-
"
+
type
;
this
.
show
=
true
;
if
(
!
type
)
{
type
=
"
info
"
;
}
this
.
hide
();
this
.
body
=
message
;
this
.
typeClass
=
"
alert alert-
"
+
type
;
this
.
show
=
true
;
this
.
hide
();
},
hide
()
{
...
...
resources/assets/js/frontend/app.js
View file @
c9b8af6e
...
...
@@ -13,6 +13,7 @@ require('../bootstrap');
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue
.
component
(
'
flash
'
,
require
(
'
../components/Flash.vue
'
));
Vue
.
component
(
'
example
'
,
require
(
'
../components/frontend/Example.vue
'
));
const
app
=
new
Vue
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment