Skip to content

Commit f06d01f

Browse files
author
Ubuntu
committed
Polishing Touches
1 parent e745021 commit f06d01f

File tree

9 files changed

+44
-105229
lines changed

9 files changed

+44
-105229
lines changed

public/app.js

+1-67,500
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/dark.css

+2-18,922
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/light.css

+2-18,782
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
{
2-
<<<<<<< HEAD
3-
"/app.js": "/app.js?id=fdfd3afa70eeeac74e81",
4-
"/light.css": "/light.css?id=bcb03dbf596bfa351064",
5-
"/dark.css": "/dark.css?id=c655f9129824b8d032db",
6-
=======
7-
"/app.js": "/app.js?id=a1763873e1bd0b22663f",
8-
"/light.css": "/light.css?id=00726a847dc6b2cb132a",
9-
"/dark.css": "/dark.css?id=aa5f40a240d2b1df06e2",
10-
>>>>>>> upstream/master
2+
"/app.js": "/app.js?id=046923f5b38e64fc7dd8",
3+
"/light.css": "/light.css?id=d21f3947f53c6df3990a",
4+
"/dark.css": "/dark.css?id=2a6bef4dae7be9601f06",
115
"/favicon.png": "/favicon.png?id=b0b34b4095fcdbb8942d"
126
}

resources/js/components/CroppieModal.vue

+15-12
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22
import _ from 'lodash';
33
44
export default {
5-
props: ['file'],
5+
props: ['file','viewport', 'boundary'],
66
77
88
data() {
99
return {
1010
image: null,
1111
cropped: null,
12-
images: [
13-
'http://i.imgur.com/fHNtPXX.jpg',
14-
'http://i.imgur.com/ecMUngU.jpg',
15-
'http://i.imgur.com/7oO6zrh.jpg',
16-
'http://i.imgur.com/miVkBH2.jpg'
17-
],
1812
uploadProgress: 0,
1913
uploading: false
2014
}
@@ -30,11 +24,15 @@
3024
3125
3226
methods: {
27+
/**
28+
* This method will close() the modal.
29+
*/
3330
close() {
3431
this.$emit('cancelCroppie');
3532
},
3633
/**
37-
* This method closes croppie.
34+
* This method closes croppie and sends the
35+
* cropped image back in the event
3836
*/
3937
closeCroppie() {
4038
this.$emit('closeCroppie', {
@@ -57,7 +55,8 @@
5755
// and set the result to this.cropped which is being
5856
// used to display the result above.
5957
let options = {
60-
format: 'jpeg'
58+
format: 'png',
59+
quality: 1
6160
}
6261
this.$refs.croppieRef.result(options, (output) => {
6362
this.cropped = output;
@@ -115,11 +114,15 @@
115114

116115
<template>
117116
<modal @close="close">
118-
<div style="height: 300px;">
117+
<div :style="{'height':viewport}">
119118
<vue-croppie
120119
ref="croppieRef"
121-
:enableOrientation="true"></vue-croppie>
122-
</div>
120+
:enableOrientation="true"
121+
:viewport ="viewport"
122+
:boundary="boundary"
123+
:enableResize="true">
124+
</vue-croppie>
125+
</div>
123126

124127
<div class="mt-10">
125128
<button class="btn-sm ml-1 btn-light" @click="cancelCroppie()">Cancel</button>

resources/js/components/FullscreenModal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020

2121
<template>
2222
<transition name="modal">
23-
<slot/>
23+
<slot/>
2424
</transition>
2525
</template>

resources/js/components/ImagePicker.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
file: null,
1111
imageUrl: '',
1212
uploadProgress: 100,
13-
1413
selectedUnsplashImage: null,
15-
1614
unsplashSearchTerm: '',
1715
unsplashPage: 1,
1816
searchingUnsplash: false,
@@ -202,6 +200,8 @@
202200
</fullscreen-modal>
203201
<croppie-modal v-if="croppieModalShown"
204202
:file="file"
203+
:viewport ="{ width: 600, height: 400 }"
204+
:boundary="{ width: 600, height: 400 }"
205205
@closeCroppie="closeCroppieModal"
206206
@cancelCroppie="cancelCroppieModal"></croppie-modal>
207207
</div>

resources/js/screens/team/edit.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
</div>
321321
</div>
322322
</div>
323-
323+
324324

325325
<!-- SEO & Social Modal -->
326326
<seo-modal v-if="seoModalShown"
@@ -330,6 +330,8 @@
330330
<!-- Croppie Modal -->
331331
<croppie-modal v-if="croppieModalShown"
332332
:file="file"
333+
:viewport ="{ width: 200, height: 200 }"
334+
:boundary="{ width: 200, height: 200 }"
333335
@closeCroppie="closeCroppieModal"
334336
@cancelCroppie="cancelCroppieModal"></croppie-modal>
335337

resources/sass/modal.scss

+15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
/* Begin Croppie Modal Styles */
2+
13
.cr-image{
24
position: relative !important;
35
}
6+
7+
.cr-boundary {
8+
max-width: 600px;
9+
max-height: 400px;
10+
}
11+
12+
.cr-resizer {
13+
max-width: 600px;
14+
max-height: 400px;
15+
}
16+
17+
/* Begin Default Modal Styles */
18+
419
.modal-mask{
520
background: rgba(255, 255, 255, 0.86);
621
transition: opacity .3s ease;

0 commit comments

Comments
 (0)