Skip to content

Commit 50bf377

Browse files
author
ahmadhussnain
committed
webpack.mix.js config has been updated
* Update compile js file immediately. * Update compile css file immediately.
1 parent 389a857 commit 50bf377

File tree

3 files changed

+92
-15
lines changed

3 files changed

+92
-15
lines changed

resources/css/app.css

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,92 @@ footer {
1818
background-color: #fff;
1919
z-index: 1029;
2020
}
21+
22+
.api {
23+
position: relative;
24+
width: 100px;
25+
height: 100px;
26+
display: flex;
27+
align-items: center;
28+
}
29+
30+
.api:hover .api__overlay {
31+
32+
}
33+
34+
.api__overlay {
35+
position: absolute;
36+
top: 0;
37+
right: 0;
38+
bottom: 0;
39+
left: 0;
40+
padding: 8px;
41+
background-color: rgba(0,0,0,.8);
42+
}
43+
44+
.api--opacity .api__overlay {
45+
opacity: 0;
46+
transition: opacity .3s ease-in-out;
47+
}
48+
49+
.api--opacity:hover .api__overlay {
50+
opacity: 1;
51+
}
52+
53+
54+
/* Custom Image upload */
55+
.api-file {
56+
position: relative;
57+
display: flex;
58+
justify-content: center;
59+
align-items: center;
60+
height: 100%;
61+
user-select: none;
62+
}
63+
64+
/* This is the main label file where user will click to upload items. */
65+
.api-file__label {
66+
position: relative;
67+
align-items: stretch;
68+
display: flex;
69+
cursor: pointer;
70+
justify-content: flex-start;
71+
overflow: hidden;
72+
margin: 0;
73+
}
74+
75+
.api-file__input {
76+
height: 100%;
77+
left: 0;
78+
opacity: 0;
79+
outline: none;
80+
position: absolute;
81+
top: 0;
82+
width: 100%;
83+
}
84+
85+
.api-file__btn {
86+
/* Very very important property. */
87+
position: relative;
88+
color: #fff;
89+
background-color: #007bff;
90+
display: inline-block;
91+
font-weight: 400;
92+
text-align: center;
93+
vertical-align: middle;
94+
user-select: none;
95+
border: 1px solid #007bff;
96+
padding: 6px 12px;
97+
font-size: 1rem;
98+
line-height: 1.5;
99+
border-radius: .25rem;
100+
}
101+
102+
.api-file__text {
103+
align-items: stretch;
104+
display: flex;
105+
cursor: pointer;
106+
justify-content: flex-start;
107+
overflow: hidden;
108+
position: relative;
109+
}

resources/js/app.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1+
require('./bootstrap');
12
import Vue from 'vue';
2-
import axios from 'axios';
3-
import _ from 'lodash';
4-
5-
/**
6-
* We'll load the axios HTTP library which allows us to easily issue requests
7-
* to our Laravel back-end. This library automatically handles sending the
8-
* CSRF token as a header based on the value of the "XSRF" token cookie.
9-
*/
10-
11-
window.axios = axios;
12-
13-
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
14-
153

164
window.Vue = Vue;
175
// Do `Vue.prototype._` = _ to use lodash as _ in templates. But I recommend you to define

webpack.mix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const mix = require('laravel-mix');
1111
|
1212
*/
1313

14-
mix.js('resources/js/app.js', 'public/js').vue()
14+
mix.js('resources/js/app.js', 'public/js').version().vue()
1515
.postCss('resources/css/app.css', 'public/css', [
1616
//
17-
]);
17+
]).version();

0 commit comments

Comments
 (0)