--- client/views/pages/main/Camera.vue
+++ client/views/pages/main/Camera.vue
... | ... | @@ -5,20 +5,24 @@ |
5 | 5 |
<svg-icon type="mdi" :path="mdilChevronLeft" style="width: 50px; height: 50px;"></svg-icon> |
6 | 6 |
<p class="title"> 이전글</p> |
7 | 7 |
</button> |
8 |
- <button @click="goToPage('PhotoDesign')" ><img src="../../../resources/img/btn19_74s_normal.png" alt=""> |
|
8 |
+ <button @click="captureAndGoToPhotoDesign"> |
|
9 |
+ <img src="../../../resources/img/btn19_74s_normal.png" alt=""> |
|
9 | 10 |
</button> |
10 | 11 |
</div> |
11 |
- <div class="body "> |
|
12 |
-<img src="../../../resources/img/img140_747s.png" alt=""> |
|
12 |
+ <div class="body" ref="body"> |
|
13 |
+ <div id="container" ref="container"> |
|
14 |
+ <video v-if="!photoTaken" autoplay="true" ref="modalVideoElement" class="mirrored" |
|
15 |
+ @canplay="onVideoLoaded"></video> |
|
16 |
+ </div> |
|
13 | 17 |
</div> |
14 | 18 |
</div> |
15 | 19 |
</template> |
20 |
+ |
|
16 | 21 |
|
17 | 22 |
<script> |
18 | 23 |
import SvgIcon from '@jamescoyle/vue-icon'; |
19 | 24 |
import { mdiMagnify, mdiWindowClose } from '@mdi/js'; |
20 | 25 |
import { mdilChevronRight, mdilChevronLeft } from '@mdi/light-js'; |
21 |
- |
|
22 | 26 |
import axios from "axios"; |
23 | 27 |
|
24 | 28 |
export default { |
... | ... | @@ -31,26 +35,105 @@ |
31 | 35 |
mdilChevronLeft: mdilChevronLeft, |
32 | 36 |
showModal: false, |
33 | 37 |
searchOpen: false, |
38 |
+ photoTaken: false, |
|
39 |
+ stream: null, |
|
40 |
+ videoReady: false, |
|
34 | 41 |
} |
35 | 42 |
}, |
36 | 43 |
methods: { |
37 |
- |
|
38 | 44 |
goToPage(page) { |
39 | 45 |
this.$router.push({ name: page }); |
40 | 46 |
}, |
41 | 47 |
closeModal() { |
42 | 48 |
this.showModal = false; |
49 |
+ if (this.stream) { |
|
50 |
+ let tracks = this.stream.getTracks(); |
|
51 |
+ tracks.forEach(track => track.stop()); |
|
52 |
+ this.stream = null; |
|
53 |
+ } |
|
43 | 54 |
}, |
44 | 55 |
buttonSearch() { |
45 | 56 |
this.searchOpen = true; |
46 | 57 |
}, |
47 | 58 |
closeBtn() { |
48 | 59 |
this.searchOpen = false; |
49 |
- |
|
50 | 60 |
}, |
61 |
+ onVideoLoaded() { |
|
62 |
+ this.videoReady = true; |
|
63 |
+ this.adjustContainerSize(); |
|
64 |
+ }, |
|
65 |
+ adjustContainerSize() { |
|
66 |
+ const video = this.$refs.modalVideoElement; |
|
67 |
+ const container = this.$refs.container; |
|
68 |
+ const body = this.$refs.body; |
|
69 |
+ if (video && container) { |
|
70 |
+ container.style.width = `${video.videoWidth}px`; |
|
71 |
+ container.style.height = `${video.videoHeight}px`; |
|
72 |
+ body.style.height = `${video.videoHeight}px`; |
|
73 |
+ } |
|
74 |
+ }, |
|
75 |
+ captureAndGoToPhotoDesign() { |
|
76 |
+ const video = this.$refs.modalVideoElement; |
|
77 |
+ const canvas = document.createElement('canvas'); |
|
78 |
+ canvas.width = video.videoWidth; |
|
79 |
+ canvas.height = video.videoHeight; |
|
80 |
+ const ctx = canvas.getContext('2d'); |
|
81 |
+ |
|
82 |
+ // 좌우 반전 적용 |
|
83 |
+ ctx.translate(canvas.width, 0); |
|
84 |
+ ctx.scale(-1, 1); |
|
85 |
+ |
|
86 |
+ ctx.drawImage(video, 0, 0, canvas.width, canvas.height); |
|
87 |
+ const imageDataUrl = canvas.toDataURL('image/png'); |
|
88 |
+ this.$router.push({ name: 'PhotoDesign', query: { image: imageDataUrl } }); |
|
89 |
+ } |
|
90 |
+ }, |
|
91 |
+ mounted() { |
|
92 |
+ // Clear localStorage when the component is mounted |
|
93 |
+ localStorage.removeItem('capturedImage'); |
|
94 |
+ |
|
95 |
+ this.videoReady = false; |
|
96 |
+ navigator.mediaDevices.getUserMedia({ video: true }) |
|
97 |
+ .then(stream => { |
|
98 |
+ const modalVideo = this.$refs.modalVideoElement; |
|
99 |
+ modalVideo.srcObject = stream; |
|
100 |
+ this.stream = stream; |
|
101 |
+ modalVideo.addEventListener('loadedmetadata', this.adjustContainerSize); |
|
102 |
+ }) |
|
103 |
+ .catch(error => { |
|
104 |
+ console.log("error>>>>>>>>", error); |
|
105 |
+ }); |
|
51 | 106 |
}, |
52 | 107 |
components: { |
53 | 108 |
SvgIcon |
54 | 109 |
}, |
55 | 110 |
} |
56 | 111 |
</script> |
112 |
+ |
|
113 |
+ |
|
114 |
+<style> |
|
115 |
+.body { |
|
116 |
+ width: 1435px; |
|
117 |
+ height: auto; |
|
118 |
+ margin: 0 auto; |
|
119 |
+} |
|
120 |
+ |
|
121 |
+#container { |
|
122 |
+ position: relative; |
|
123 |
+ margin: auto; |
|
124 |
+ border: 10px #333 solid; |
|
125 |
+ display: flex; |
|
126 |
+ justify-content: center; |
|
127 |
+ align-items: center; |
|
128 |
+} |
|
129 |
+ |
|
130 |
+video { |
|
131 |
+ width: 100%; |
|
132 |
+ height: auto; |
|
133 |
+ background-color: #666; |
|
134 |
+} |
|
135 |
+ |
|
136 |
+.mirrored { |
|
137 |
+ transform: scaleX(-1); |
|
138 |
+} |
|
139 |
+</style> |
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -9,110 +9,263 @@ |
9 | 9 |
<div class="rabbit"><img src="../../../resources/img/img09_s.png" alt=""></div> |
10 | 10 |
<div class="rcon flex justify-end mb5"> |
11 | 11 |
<div class="race-btn" @click="goToPage('Chapter1')"> |
12 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="1"> |
|
13 |
- <img :src="item.imgSrc1" > |
|
14 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
15 |
- </button> |
|
12 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
13 |
+ data-num="1"> |
|
14 |
+ <img :src="item.imgSrc1"> |
|
15 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
16 |
+ </button> |
|
16 | 17 |
<p>지문1</p> |
17 | 18 |
</div> |
18 | 19 |
<div class="race-btn" @click="goToPage('Chapter2')"> |
19 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="2"> |
|
20 |
- <img :src="item.imgSrc1" > |
|
21 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
22 |
- </button> |
|
20 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
21 |
+ data-num="2"> |
|
22 |
+ <img :src="item.imgSrc1"> |
|
23 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
24 |
+ </button> |
|
23 | 25 |
<p>단어장</p> |
24 | 26 |
</div> |
25 | 27 |
</div> |
26 | 28 |
<div class="lcon flex justify-between mb5"> |
27 | 29 |
<div class="race-btn" @click="goToPage('Chapter7')"> |
28 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="7"> |
|
29 |
- <img :src="item.imgSrc1" > |
|
30 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
31 |
- </button> |
|
30 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
31 |
+ data-num="7"> |
|
32 |
+ <img :src="item.imgSrc1"> |
|
33 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
34 |
+ </button> |
|
32 | 35 |
<p>문제1</p> |
33 | 36 |
</div> |
34 | 37 |
<div class="race-btn" @click="goToPage('Chapter6')"> |
35 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="6"> |
|
36 |
- <img :src="item.imgSrc1" > |
|
37 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
38 |
- </button> |
|
38 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
39 |
+ data-num="6"> |
|
40 |
+ <img :src="item.imgSrc1"> |
|
41 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
42 |
+ </button> |
|
39 | 43 |
<p>단어장</p> |
40 | 44 |
</div> |
41 | 45 |
<div class="race-btn" @click="goToPage('Chapter5')"> |
42 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="5"> |
|
43 |
- <img :src="item.imgSrc1" > |
|
44 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
45 |
- </button> |
|
46 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
47 |
+ data-num="5"> |
|
48 |
+ <img :src="item.imgSrc1"> |
|
49 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
50 |
+ </button> |
|
46 | 51 |
<p>지문2</p> |
47 | 52 |
</div> |
48 | 53 |
<div class="race-btn" @click="goToPage('Chapter4')"> |
49 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="4"> |
|
50 |
- <img :src="item.imgSrc1" > |
|
51 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
52 |
- </button> |
|
54 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
55 |
+ data-num="4"> |
|
56 |
+ <img :src="item.imgSrc1"> |
|
57 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
58 |
+ </button> |
|
53 | 59 |
<p>문제2</p> |
54 | 60 |
</div> |
55 | 61 |
<div class="race-btn" @click="goToPage('Chapter3')"> |
56 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="3"> |
|
57 |
- <img :src="item.imgSrc1" > |
|
58 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
59 |
- </button> |
|
62 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
63 |
+ data-num="3"> |
|
64 |
+ <img :src="item.imgSrc1"> |
|
65 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
66 |
+ </button> |
|
60 | 67 |
<p>문제1</p> |
61 | 68 |
</div> |
62 | 69 |
</div> |
63 | 70 |
<div class="rcon flex"> |
64 | 71 |
<div class="race-btn" @click="goToPage('Chapter8')"> |
65 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="8"> |
|
66 |
- <img :src="item.imgSrc3" > |
|
67 |
- <img :src="item.imgSrc4" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
68 |
- </button> |
|
72 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
73 |
+ data-num="8"> |
|
74 |
+ <img :src="item.imgSrc3"> |
|
75 |
+ <img :src="item.imgSrc4" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
76 |
+ </button> |
|
69 | 77 |
<p class="long">중간 평가</p> |
70 | 78 |
</div> |
71 | 79 |
<div class="race-btn" @click="goToPage('Chapter9')"> |
72 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="9"> |
|
73 |
- <img :src="item.imgSrc1" > |
|
74 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
75 |
- </button> |
|
80 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
81 |
+ data-num="9"> |
|
82 |
+ <img :src="item.imgSrc1"> |
|
83 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
84 |
+ </button> |
|
76 | 85 |
<p>지문3</p> |
77 | 86 |
</div> |
78 | 87 |
<div class="race-btn" @click="goToPage('Chapter10')"> |
79 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="10"> |
|
80 |
- <img :src="item.imgSrc1" > |
|
81 |
- <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
82 |
- </button> |
|
88 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" |
|
89 |
+ data-num="10"> |
|
90 |
+ <img :src="item.imgSrc1"> |
|
91 |
+ <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
92 |
+ </button> |
|
83 | 93 |
<p>단어장</p> |
84 | 94 |
</div> |
85 |
- <div class="race-btn" > |
|
86 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)" data-num="11"> |
|
87 |
- <img :src="item.imgSrc3" > |
|
88 |
- <img :src="item.imgSrc4" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
89 |
- </button> |
|
90 |
- <p class="long">최종 평가</p> |
|
95 |
+ <div class="rcon flex"> |
|
96 |
+ <div class="race-btn"> |
|
97 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" |
|
98 |
+ @click="toggleImageAndShowPopup(index, '11')"> |
|
99 |
+ <img :src="item.imgSrc3"> |
|
100 |
+ <img :src="item.imgSrc4" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }"> |
|
101 |
+ </button> |
|
102 |
+ <p class="long">최종 평가</p> |
|
103 |
+ </div> |
|
91 | 104 |
</div> |
92 | 105 |
</div> |
93 | 106 |
</div> |
94 | 107 |
<!-- 팝업 --> |
95 |
- <div v-show="searchOpen" class="popup-wrap"> |
|
96 |
- <div class="popup-box "> |
|
97 |
- <div class=" mb30 text-ct"> |
|
98 |
- <p class="title1 mb20">1단원이 끝났습니다! </p> |
|
99 |
- <p class="title1"><em class="yellow">기념사진</em>을 촬영하러 가요 </p> |
|
108 |
+ <div v-show="searchOpen2" class="popup-wrap"> |
|
109 |
+ <div class="popup-box"> |
|
110 |
+ <button type="button" class="popup-close-btn" style="position:absolute; top:10px; right: 10px;" |
|
111 |
+ @click="closeModal"> |
|
112 |
+ <svg-icon type="mdi" :path="mdiWindowClose" class="close-btn"></svg-icon> |
|
113 |
+ </button> |
|
114 |
+ |
|
115 |
+ <div class="mb30 text-ct"> |
|
116 |
+ <p class="title1 mb20">1단원이 끝났습니다!</p> |
|
117 |
+ <p class="title1"><em class="yellow">기념사진</em>을 촬영하러 가요</p> |
|
100 | 118 |
</div> |
101 |
- <div class="flex justify-center "> |
|
102 |
- <button type="button" title="사진촬영" class="new-btn" @click="goToPage('Camera')"> |
|
103 |
- 사진촬영 |
|
119 |
+ <div class="flex justify-center"> |
|
120 |
+ <button type="button" title="사진촬영" class="new-btn" @click="openCameraModal"> |
|
121 |
+ 사진 촬영 |
|
104 | 122 |
</button> |
105 | 123 |
</div> |
106 | 124 |
</div> |
107 | 125 |
</div> |
126 |
+ |
|
127 |
+ <!-- 카메라 모달 --> |
|
128 |
+ <article v-show="showCameraModal" class="popup-wrap"> |
|
129 |
+ <div class="popup-box" style="top: 500px; left:500px"> |
|
130 |
+ <div class="flex mb10 justify-between"> |
|
131 |
+ <p class="popup-title">사진 촬영</p> |
|
132 |
+ <button type="button" class="popup-close-btn" @click="closeModal"> |
|
133 |
+ <svg-icon type="mdi" :path="mdiWindowClose" class="close-btn"></svg-icon> |
|
134 |
+ </button> |
|
135 |
+ </div> |
|
136 |
+ <div class="box"> |
|
137 |
+ <div style="width: 100%;"> |
|
138 |
+ <!-- 여기에 카메라 기능을 구현 --> |
|
139 |
+ <!-- <p>카메라 모듈이 여기에 위치합니다.</p> --> |
|
140 |
+ |
|
141 |
+ <div id="container" ref="container"> |
|
142 |
+ <video v-if="!photoTaken" autoplay="true" ref="modalVideoElement" class="mirrored" |
|
143 |
+ @canplay="onVideoLoaded"></video> |
|
144 |
+ </div> |
|
145 |
+ |
|
146 |
+ </div> |
|
147 |
+ </div> |
|
148 |
+ <div class="flex justify-center mt20"> |
|
149 |
+ <button type="button" class="new-btn" v-if="!photoTaken" @click="capturePhoto" |
|
150 |
+ :disabled="!videoReady"> |
|
151 |
+ 사진 촬영 |
|
152 |
+ </button> |
|
153 |
+ |
|
154 |
+ </div> |
|
155 |
+ </div> |
|
156 |
+ </article> |
|
157 |
+ |
|
158 |
+ <!-- 사진 모달 --> |
|
159 |
+ <article v-show="showPhotoModal" class="popup-wrap"> |
|
160 |
+ <div class="popup-box" style="top: 500px; left: auto"> |
|
161 |
+ <div class="flex mb10 justify-between"> |
|
162 |
+ <p class="popup-title">사진 꾸미기</p> |
|
163 |
+ <button type="button" class="popup-close-btn" @click="closePhotoModal"> |
|
164 |
+ <svg-icon type="mdi" :path="mdiWindowClose" class="close-btn"></svg-icon> |
|
165 |
+ </button> |
|
166 |
+ </div> |
|
167 |
+ <div class="flex justify-between align-center" style="gap: 40px;"> |
|
168 |
+ <div class="content" style="padding: 30px; min-width: 401px; min-height: 710px;"> |
|
169 |
+ <div class="tool"> |
|
170 |
+ <div class="flex justify-center mb20" style="gap: 20px;"> |
|
171 |
+ <button class="popTxt" style="width: 101px;" v-for="(item, index) in items_photo" |
|
172 |
+ :key="index" @click="updateContent(index)" |
|
173 |
+ :class="{ active: selectedIndex === index }"> |
|
174 |
+ <img :src="item.imgSrc1" style="display: block;"> |
|
175 |
+ <img :src="item.imgSrc2" v-if="selectedIndex === index" style="display: block;"> |
|
176 |
+ </button> |
|
177 |
+ </div> |
|
178 |
+ </div> |
|
179 |
+ |
|
180 |
+ <div class="stickers" v-show="!stickersVisible"> |
|
181 |
+ <div class="toolbar"> |
|
182 |
+ <label for="brushSize" style="font-size: 9px;">펜 굵기</label> |
|
183 |
+ <input type="color" v-model="color" /> |
|
184 |
+ <input type="range" id="brushSize" min="1" max="10" v-model="brushSize" |
|
185 |
+ @input="updateBrushSize" style="width: 100px; margin-left: 5px;" /> |
|
186 |
+ <button class="new-btn" style="font-size: 9px;" @click="setTool('draw')">펜</button> |
|
187 |
+ <button class="new-btn" style="font-size: 9px;" @click="setTool('eraser')">지우개</button> |
|
188 |
+ <button class="new-btn" style="font-size: 9px;" @click="clearAll">전체 지우개</button> |
|
189 |
+ </div> |
|
190 |
+ </div> |
|
191 |
+ |
|
192 |
+ <div class="stickers" v-show="stickersVisible"> |
|
193 |
+ <button><img src="../../../resources/img/img146_75s.png" alt=""></button> |
|
194 |
+ <button><img src="../../../resources/img/img147_75s.png" alt=""></button> |
|
195 |
+ <button><img src="../../../resources/img/img148_75s.png" alt=""></button> |
|
196 |
+ <button><img src="../../../resources/img/img149_75s.png" alt=""></button> |
|
197 |
+ <button><img src="../../../resources/img/img150_75s.png" alt=""></button> |
|
198 |
+ <button><img src="../../../resources/img/img151_75s.png" alt=""></button> |
|
199 |
+ <button><img src="../../../resources/img/img152_75s.png" alt=""></button> |
|
200 |
+ <button><img src="../../../resources/img/img153_75s.png" alt=""></button> |
|
201 |
+ <button><img src="../../../resources/img/img154_75s.png" alt=""></button> |
|
202 |
+ <button><img src="../../../resources/img/img155_75s.png" alt=""></button> |
|
203 |
+ <button><img src="../../../resources/img/img156_75s.png" alt=""></button> |
|
204 |
+ <button><img src="../../../resources/img/img157_75s.png" alt=""></button> |
|
205 |
+ <button><img src="../../../resources/img/img158_75s.png" alt=""></button> |
|
206 |
+ </div> |
|
207 |
+ </div> |
|
208 |
+ <div> |
|
209 |
+ <div class="content" style="height: 549px; |
|
210 |
+ position: relative; |
|
211 |
+ width: 973px; |
|
212 |
+ display: flex; |
|
213 |
+ justify-content: center; |
|
214 |
+ align-items: center;"> |
|
215 |
+ <canvas ref="canvas" style="position: absolute;"></canvas> |
|
216 |
+ </div> |
|
217 |
+ <div class="btn-wrap flex justify-center mt40" style="gap: 40px;"> |
|
218 |
+ <button class="login-btn" @click="openCameraModal"> |
|
219 |
+ <img src="../../../resources/img/btn07_s.png" alt=""> |
|
220 |
+ <p>재촬영</p> |
|
221 |
+ </button> |
|
222 |
+ |
|
223 |
+ <button class="login-btn" type="submit" @click="goToPage('PhotoEdit')"> |
|
224 |
+ <img src="../../../resources/img/btn07_s.png" alt=""> |
|
225 |
+ <p>완성</p> |
|
226 |
+ </button> |
|
227 |
+ </div> |
|
228 |
+ </div> |
|
229 |
+ <div class="content" style="padding: 30px; min-width: 401px; min-height: 710px;"> |
|
230 |
+ <div class="mb20"> |
|
231 |
+ <p class="popup-title" style="font-size: 32px">랜덤 단어</p> |
|
232 |
+ </div> |
|
233 |
+ <div class="flex-column" style="gap: 10px;"> |
|
234 |
+ <button class="login-btn"><img src="../../../resources/img/img141_75s.png" alt=""> |
|
235 |
+ <p class="title">a</p> |
|
236 |
+ </button> |
|
237 |
+ <button class="login-btn"><img src="../../../resources/img/img152_75s_01.png" alt=""> |
|
238 |
+ <p class="title">a</p> |
|
239 |
+ </button> |
|
240 |
+ <button class="login-btn"><img src="../../../resources/img/img144_75s.png" alt=""> |
|
241 |
+ <p class="title" style="color: #fff;">a</p> |
|
242 |
+ </button> |
|
243 |
+ <button class="login-btn"><img src="../../../resources/img/img145_75s.png" alt=""> |
|
244 |
+ <p class="title mt20" style="color: #fff;">a</p> |
|
245 |
+ </button> |
|
246 |
+ </div> |
|
247 |
+ </div> |
|
248 |
+ </div> |
|
249 |
+ <!-- <div class="box"> |
|
250 |
+ <div style="width: 100%;"> |
|
251 |
+ <div id="container"> |
|
252 |
+ <canvas ref="canvas"></canvas> |
|
253 |
+ </div> |
|
254 |
+ </div> |
|
255 |
+ </div> --> |
|
256 |
+ |
|
257 |
+ </div> |
|
258 |
+ </article> |
|
259 |
+ |
|
108 | 260 |
</div> |
109 | 261 |
<div class="complete-wrap mt90 myphoto"> |
110 | 262 |
<h2 class="mb40">이 단원을 끝낸 친구들</h2> |
111 | 263 |
<article class=" flex-column" style="gap: 5px;"> |
112 | 264 |
<div class="flex" style="gap: 5px;"> |
113 |
- <div @click="buttonSearch" class="photo" ><img src="../../../resources/img/img143_75s.png" alt=""></div> |
|
265 |
+ <div @click="buttonSearch" class="photo"><img src="../../../resources/img/img143_75s.png" alt=""></div> |
|
114 | 266 |
</div> |
115 | 267 |
</article> |
268 |
+ <!-- 팝업 --> |
|
116 | 269 |
<article class="popup-wrap" v-show="searchOpen"> |
117 | 270 |
<div class="popup-box "> |
118 | 271 |
<div class="flex mb10 justify-between"> |
... | ... | @@ -124,13 +277,16 @@ |
124 | 277 |
<div class="box"> |
125 | 278 |
<div style="width: 910px;"><img src="../../../resources/img/img140_747s.png" alt=""></div> |
126 | 279 |
</div> |
127 |
- <div class="flex justify-between mt20"> |
|
280 |
+ <div class="flex justify-between mt20"> |
|
128 | 281 |
<div class="text flex"> |
129 | 282 |
<p class="title2 date ml30">2024-08-06</p> |
130 | 283 |
<span class=" title1 ml30">1단원을 마친 <em class="yellow">가나다</em>친구</span> |
131 | 284 |
</div> |
132 |
- <div class="title2 flex align-center" style="gap: 10px;"><svg-icon type="mdi" :path="mdiHeart" style="color: #FFBA08;"></svg-icon><p><em class="yellow">1</em></p></div> |
|
133 |
- </div> |
|
285 |
+ <div class="title2 flex align-center" style="gap: 10px;"><svg-icon type="mdi" :path="mdiHeart" |
|
286 |
+ style="color: #FFBA08;"></svg-icon> |
|
287 |
+ <p><em class="yellow">1</em></p> |
|
288 |
+ </div> |
|
289 |
+ </div> |
|
134 | 290 |
</div> |
135 | 291 |
</article> |
136 | 292 |
</div> |
... | ... | @@ -141,41 +297,439 @@ |
141 | 297 |
<script> |
142 | 298 |
import SvgIcon from '@jamescoyle/vue-icon'; |
143 | 299 |
import { mdiMagnify, mdiHeart, mdiWindowClose } from '@mdi/js'; |
300 |
+ |
|
144 | 301 |
export default { |
145 | 302 |
data() { |
146 | 303 |
return { |
147 | 304 |
items: [ |
148 |
- { imgSrc1: 'client/resources/img/img11_1_s.png', imgSrc2: 'client/resources/img/img12_1_s.png', imgSrc3: 'client/resources/img/img11_2_s.png', imgSrc4: 'client/resources/img/img12_2_s.png', isSecondImageVisible: false }, |
|
149 |
- ], |
|
305 |
+ { |
|
306 |
+ imgSrc1: 'client/resources/img/img11_1_s.png', |
|
307 |
+ imgSrc2: 'client/resources/img/img12_1_s.png', |
|
308 |
+ imgSrc3: 'client/resources/img/img11_2_s.png', |
|
309 |
+ imgSrc4: 'client/resources/img/img12_2_s.png', |
|
310 |
+ isSecondImageVisible: false |
|
311 |
+ }, |
|
312 |
+ ], |
|
313 |
+ items_photo: [ |
|
314 |
+ { |
|
315 |
+ imgSrc1: 'client/resources/img/btn20_75s_normal.png', //펜 선택되지 않음 |
|
316 |
+ imgSrc2: 'client/resources/img/btn20_75s_click.png' //펜 선택됨 |
|
317 |
+ }, |
|
318 |
+ { |
|
319 |
+ imgSrc1: 'client/resources/img/btn21_75s_normal.png', //스티커 선택되지 않음 |
|
320 |
+ imgSrc2: 'client/resources/img/btn21_75s_click.png' //스티커 선택됨 |
|
321 |
+ }, |
|
322 |
+ ], |
|
150 | 323 |
mdiWindowClose: mdiWindowClose, |
151 | 324 |
mdiHeart: mdiHeart, |
152 | 325 |
showModal: false, |
153 |
- searchOpen: false, |
|
154 |
- searchOpen2: false, |
|
326 |
+ searchOpen: false, // 사진 상세보기 모달창 |
|
327 |
+ searchOpen2: false, // 단원 마친 후, 사진 촬영 여부 선택 모달창 |
|
328 |
+ showCameraModal: false, // 카메라 모달창 |
|
329 |
+ showPhotoModal: false, // 사진꾸미기 모달창 |
|
330 |
+ photoTaken: false, |
|
331 |
+ photo: null, //캡쳐 사진 |
|
332 |
+ videoReady: false, // 비디오 준비 상태를 나타내는 플래그 |
|
333 |
+ stream: null, |
|
334 |
+ canvasWidth: 0, |
|
335 |
+ canvasHeight: 0, |
|
336 |
+ selectedIndex: 0, //툴 선택 여부 인덱스 |
|
337 |
+ stickersVisible: false, // 스티커 표시 여부 |
|
338 |
+ |
|
339 |
+ //사진 꾸미기 관련 변수 |
|
340 |
+ drawHistory: [], //도형 기록 |
|
341 |
+ tempLines: [], //펜 기록 |
|
342 |
+ stickers: [], //스티커 파일 기록 |
|
343 |
+ draggingStickerIndex: null, //스티커 드래그 |
|
344 |
+ activeStickerIndex: null, // 현재 활성화된 스티커의 인덱스 |
|
345 |
+ nextLineId: 0, //획 아이디 |
|
346 |
+ tool: 'draw', //툴 결정 |
|
347 |
+ color: '#000000', //펜 기본 색상 |
|
348 |
+ isDrawing: false, //그리는 중인지 판단하는 변수 |
|
349 |
+ brushSize: 5, // 초기 펜 굵기 |
|
350 |
+ startX: 0, |
|
351 |
+ startY: 0, |
|
352 |
+ canvasRect: { |
|
353 |
+ topLeft: { x: 0, y: 0 }, |
|
354 |
+ bottomRight: { x: 0, y: 0 } |
|
355 |
+ } |
|
356 |
+ |
|
155 | 357 |
} |
156 | 358 |
}, |
157 | 359 |
methods: { |
158 | 360 |
toggleImage(index) { |
159 |
- this.items[index].isSecondImageVisible = !this.items[index].isSecondImageVisible; |
|
160 |
- }, |
|
361 |
+ this.items[index].isSecondImageVisible = !this.items[index].isSecondImageVisible; |
|
362 |
+ }, |
|
363 |
+ toggleImageAndShowPopup(index, dataNum) { |
|
364 |
+ this.toggleImage(index); |
|
365 |
+ if (dataNum === '11') { // 최종 평가 버튼 클릭 시 |
|
366 |
+ this.searchOpen2 = true; // 모달창 열기 |
|
367 |
+ } |
|
368 |
+ }, |
|
369 |
+ updateContent(index) { |
|
370 |
+ this.selectedIndex = index; |
|
371 |
+ |
|
372 |
+ // 선택된 버튼이 스티커 버튼(인덱스 1)인지 확인 |
|
373 |
+ if (index === 1) { |
|
374 |
+ this.stickersVisible = true; // 스티커 툴 보이기 |
|
375 |
+ } else { |
|
376 |
+ this.stickersVisible = false; // 스티커 툴 숨기기 |
|
377 |
+ } |
|
378 |
+ }, |
|
161 | 379 |
goToPage(page) { |
162 | 380 |
this.$router.push({ name: page }); |
163 | 381 |
}, |
164 |
- closeModal() { |
|
165 |
- this.showModal = false; |
|
382 |
+ openCameraModal() { |
|
383 |
+ this.closeModal(); |
|
384 |
+ this.closePhotoModal(); |
|
385 |
+ |
|
386 |
+ this.drawHistory = []; |
|
387 |
+ this.stickers = []; |
|
388 |
+ this.tempLines = []; |
|
389 |
+ this.videoReady = false; // 비디오 준비 상태 초기화 |
|
390 |
+ |
|
391 |
+ this.showCameraModal = true; |
|
392 |
+ navigator.mediaDevices.getUserMedia({ video: true }) |
|
393 |
+ .then(stream => { |
|
394 |
+ const modalVideo = this.$refs.modalVideoElement; |
|
395 |
+ modalVideo.srcObject = stream; |
|
396 |
+ this.stream = stream; |
|
397 |
+ modalVideo.addEventListener('loadedmetadata', this.adjustContainerSize); |
|
398 |
+ }) |
|
399 |
+ .catch(error => { |
|
400 |
+ console.log("error>>>>>>>>", error); |
|
401 |
+ }); |
|
166 | 402 |
}, |
403 |
+ closeModal() { //웹캠 팝업 닫기 |
|
404 |
+ // this.showModal = false; |
|
405 |
+ this.searchOpen2 = false; |
|
406 |
+ this.showCameraModal = false; |
|
407 |
+ this.photoTaken = false; |
|
408 |
+ this.photo = null; |
|
409 |
+ |
|
410 |
+ //스트림 종료 |
|
411 |
+ if (this.stream) { |
|
412 |
+ let tracks = this.stream.getTracks(); |
|
413 |
+ tracks.forEach(track => track.stop()); |
|
414 |
+ this.stream = null; |
|
415 |
+ } |
|
416 |
+ }, |
|
417 |
+ closePhotoModal() { //사진꾸미기 팝업 닫기 |
|
418 |
+ this.showPhotoModal = false; |
|
419 |
+ this.closeModal(); |
|
420 |
+ }, |
|
421 |
+ onVideoLoaded() { |
|
422 |
+ this.videoReady = true; |
|
423 |
+ this.adjustContainerSize(); |
|
424 |
+ }, |
|
425 |
+ adjustContainerSize() { |
|
426 |
+ const video = this.$refs.modalVideoElement; |
|
427 |
+ const container = this.$refs.container; |
|
428 |
+ const body = this.$refs.body; |
|
429 |
+ if (video && container) { |
|
430 |
+ container.style.width = `${video.videoWidth}px`; |
|
431 |
+ container.style.height = `${video.videoHeight}px`; |
|
432 |
+ body.style.height = `${video.videoHeight}px`; |
|
433 |
+ } |
|
434 |
+ }, |
|
435 |
+ |
|
167 | 436 |
buttonSearch() { |
168 | 437 |
this.searchOpen = true; |
169 | 438 |
}, |
170 | 439 |
closeBtn() { |
171 | 440 |
this.searchOpen = false; |
441 |
+ }, |
|
442 |
+ capturePhoto() { |
|
443 |
+ // 사진 촬영 기능 구현 |
|
444 |
+ console.log("cam on"); |
|
445 |
+ |
|
446 |
+ if (!this.videoReady) return; // 비디오가 준비되지 않았으면 사진을 찍지 않음 |
|
447 |
+ |
|
448 |
+ const video = this.$refs.modalVideoElement; |
|
449 |
+ const canvas = document.createElement('canvas'); |
|
450 |
+ |
|
451 |
+ canvas.width = video.videoWidth; |
|
452 |
+ canvas.height = video.videoHeight; |
|
453 |
+ this.canvasWidth = video.videoWidth; |
|
454 |
+ this.canvasHeight = video.videoHeight; |
|
455 |
+ const context = canvas.getContext('2d'); |
|
456 |
+ context.translate(canvas.width, 0); |
|
457 |
+ context.scale(-1, 1); |
|
458 |
+ context.drawImage(video, 0, 0, canvas.width, canvas.height); |
|
459 |
+ this.photo = canvas.toDataURL('image/png'); |
|
460 |
+ this.photoTaken = true; |
|
461 |
+ this.showPhotoModal = true; |
|
462 |
+ console.log("PhotoModal open"); |
|
463 |
+ this.$nextTick(() => { |
|
464 |
+ console.log("canvas setup"); |
|
465 |
+ // console.log("Photo data>>>>", this.photo); |
|
466 |
+ this.setupCanvas(); |
|
467 |
+ }); |
|
172 | 468 |
|
173 | 469 |
}, |
174 |
- }, |
|
175 |
- watch: { |
|
470 |
+ setupCanvas() { |
|
471 |
+ const canvas = this.$refs.canvas; |
|
472 |
+ // const container = this.$refs.container; |
|
473 |
+ if (!canvas) { |
|
474 |
+ console.error("Canvas reference not found"); |
|
475 |
+ resolve(); |
|
476 |
+ return; |
|
477 |
+ } |
|
478 |
+ const context = canvas.getContext('2d'); |
|
479 |
+ if (!context) { |
|
480 |
+ console.error("Canvas context not found"); |
|
481 |
+ return; |
|
482 |
+ } |
|
483 |
+ const image = new Image(); |
|
484 |
+ image.src = this.photo; |
|
485 |
+ // console.log("Photo data>>>>", image.src); |
|
486 |
+ image.onload = () => { |
|
487 |
+ console.log("Image loaded successfully"); |
|
488 |
+ // this.canvasWidth = image.width; |
|
489 |
+ // this.canvasHeight = image.height; |
|
490 |
+ //이미지 크기가 캔버스와 안맞으면 이미지 불러오는데에 에러 남 |
|
491 |
+ // container.style.width = this.canvasWidth; |
|
492 |
+ // container.style.height = this.canvasHeight; |
|
176 | 493 |
|
177 |
- }, |
|
178 |
- computed: { |
|
494 |
+ canvas.width = this.canvasWidth; |
|
495 |
+ canvas.height = this.canvasHeight; |
|
496 |
+ |
|
497 |
+ const rect = canvas.getBoundingClientRect(); |
|
498 |
+ // 좌측 상단 좌표 |
|
499 |
+ const topLeft = { |
|
500 |
+ x: rect.left, |
|
501 |
+ y: rect.top |
|
502 |
+ }; |
|
503 |
+ |
|
504 |
+ // 우측 하단 좌표 |
|
505 |
+ const bottomRight = { |
|
506 |
+ x: rect.right, |
|
507 |
+ y: rect.bottom |
|
508 |
+ }; |
|
509 |
+ |
|
510 |
+ // 캔버스 크기 초기화 |
|
511 |
+ this.updateCanvasRect(); |
|
512 |
+ |
|
513 |
+ // 윈도우 리사이즈 이벤트 리스너 추가 |
|
514 |
+ window.addEventListener('resize', this.updateCanvasRect); |
|
515 |
+ |
|
516 |
+ // 클릭 이벤트 핸들러 추가 |
|
517 |
+ this.$refs.canvas.addEventListener('click', this.handleCanvasClick); |
|
518 |
+ |
|
519 |
+ |
|
520 |
+ // canvas.width = canvas.clientWidth; |
|
521 |
+ // canvas.height = canvas.clientHeight; |
|
522 |
+ // this.canvasWidth = canvas.clientWidth; |
|
523 |
+ // this.canvasHeight = canvas.clientHeight; |
|
524 |
+ |
|
525 |
+ context.clearRect(0, 0, canvas.width, canvas.height); // 이전 이미지 있으면 초기화 |
|
526 |
+ context.drawImage(image, 0, 0, this.canvasWidth, this.canvasHeight); |
|
527 |
+ this.addCanvasEventListeners(); //추가해야함 |
|
528 |
+ }; |
|
529 |
+ image.onerror = (error) => { |
|
530 |
+ console.error("Error loading image: ", error); |
|
531 |
+ }; |
|
532 |
+ }, |
|
533 |
+ |
|
534 |
+ addCanvasEventListeners() { |
|
535 |
+ const canvas = this.$refs.canvas; |
|
536 |
+ canvas.addEventListener('mousedown', this.onMouseDown); |
|
537 |
+ canvas.addEventListener('mouseup', this.onMouseUp); |
|
538 |
+ canvas.addEventListener('mousemove', this.onMouseMove); |
|
539 |
+ canvas.addEventListener('click', this.onCanvasClick); |
|
540 |
+ }, |
|
541 |
+ setTool(tool) { |
|
542 |
+ this.tool = tool; |
|
543 |
+ }, |
|
544 |
+ updateBrushSize() { |
|
545 |
+ // 펜 굵기 변경 로직 |
|
546 |
+ if (this.tool === 'draw') { |
|
547 |
+ this.setBrushSize(this.brushSize); |
|
548 |
+ } |
|
549 |
+ }, |
|
550 |
+ setBrushSize(size) { |
|
551 |
+ this.brushSize = size; |
|
552 |
+ const context = this.$refs.canvas.getContext('2d'); |
|
553 |
+ context.lineWidth = size; |
|
554 |
+ }, |
|
555 |
+ // 캔버스 크기 갱신 함수 |
|
556 |
+ updateCanvasRect() { |
|
557 |
+ const rect = this.$refs.canvas.getBoundingClientRect(); |
|
558 |
+ this.canvasRect = { |
|
559 |
+ topLeft: { x: rect.left, y: rect.top }, |
|
560 |
+ bottomRight: { x: rect.right, y: rect.bottom } |
|
561 |
+ }; |
|
562 |
+ console.log(">>>>>>>>>2222", rect.left); |
|
563 |
+ }, |
|
564 |
+ getCanvasPosition(event) { |
|
565 |
+ |
|
566 |
+ const rect = this.canvasRect; |
|
567 |
+ console.log(">>>>>>>>>", this.canvasRect); |
|
568 |
+ this.updateCanvasRect(); |
|
569 |
+ |
|
570 |
+ // 윈도우 리사이즈 이벤트 리스너 추가 |
|
571 |
+ window.addEventListener('resize', this.updateCanvasRect); |
|
572 |
+ |
|
573 |
+ // 클릭 이벤트 핸들러 추가 |
|
574 |
+ this.$refs.canvas.addEventListener('click', this.handleCanvasClick); |
|
575 |
+ |
|
576 |
+ // // 좌측 상단 좌표 |
|
577 |
+ // const topLeft = { |
|
578 |
+ // x: rect.left, |
|
579 |
+ // y: rect.top |
|
580 |
+ // }; |
|
581 |
+ |
|
582 |
+ // // 우측 하단 좌표 |
|
583 |
+ // const bottomRight = { |
|
584 |
+ // x: rect.right, |
|
585 |
+ // y: rect.bottom |
|
586 |
+ // }; |
|
587 |
+ |
|
588 |
+ // console.log(this.scrollLeft) |
|
589 |
+ |
|
590 |
+ const x = event.clientX - rect.topLeft.x |
|
591 |
+ const y = event.clientY - rect.topLeft.y |
|
592 |
+ |
|
593 |
+ |
|
594 |
+ console.log(`클릭한 좌표: x=${event.clientX}, y=${event.clientY}`); |
|
595 |
+ console.log(`계산베이스 좌표: x=${rect.topLeft.x}, y=${rect.topLeft.y}`); |
|
596 |
+ console.log(`계산베이스 좌표: x=${rect.topLeft.x}, y=${rect.topLeft.y}`); |
|
597 |
+ console.log(`계산된 좌표: x=${x}, y=${y}`); |
|
598 |
+ return { |
|
599 |
+ x, y |
|
600 |
+ }; |
|
601 |
+ }, |
|
602 |
+ onMouseDown(event) { |
|
603 |
+ |
|
604 |
+ // 캔버스 크기 초기화 |
|
605 |
+ this.updateCanvasRect(); |
|
606 |
+ |
|
607 |
+ // 윈도우 리사이즈 이벤트 리스너 추가 |
|
608 |
+ window.addEventListener('resize', this.updateCanvasRect); |
|
609 |
+ |
|
610 |
+ // 클릭 이벤트 핸들러 추가 |
|
611 |
+ this.$refs.canvas.addEventListener('click', this.handleCanvasClick); |
|
612 |
+ |
|
613 |
+ const { x, y } = this.getCanvasPosition(event); |
|
614 |
+ this.startX = x; |
|
615 |
+ this.startY = y; |
|
616 |
+ const context = this.$refs.canvas.getContext('2d'); |
|
617 |
+ context.strokeStyle = this.color; |
|
618 |
+ context.lineWidth = this.brushSize; // 브러시 크기 설정 |
|
619 |
+ if (this.tool === 'draw') { |
|
620 |
+ context.beginPath(); |
|
621 |
+ context.moveTo(this.startX, this.startY); |
|
622 |
+ this.nextLineId++; |
|
623 |
+ } |
|
624 |
+ this.isDrawing = true; |
|
625 |
+ }, |
|
626 |
+ onMouseUp(event) { |
|
627 |
+ if (!this.isDrawing) return; |
|
628 |
+ const { x, y } = this.getCanvasPosition(event); |
|
629 |
+ const context = this.$refs.canvas.getContext('2d'); |
|
630 |
+ context.strokeStyle = this.color; |
|
631 |
+ context.lineWidth = this.brushSize; // 브러시 크기 설정 |
|
632 |
+ if (this.tool === 'rectangle') { |
|
633 |
+ context.strokeRect(this.startX, this.startY, x - this.startX, y - this.startY); |
|
634 |
+ this.drawHistory.push({ type: 'rectangle', startX: this.startX, startY: this.startY, endX: x, endY: y, color: this.color }); |
|
635 |
+ } else if (this.tool === 'circle') { |
|
636 |
+ context.beginPath(); |
|
637 |
+ const radius = Math.sqrt(Math.pow((x - this.startX), 2) + Math.pow((y - this.startY), 2)); |
|
638 |
+ context.arc(this.startX, this.startY, radius, 0, 2 * Math.PI); |
|
639 |
+ context.stroke(); |
|
640 |
+ this.drawHistory.push({ type: 'circle', startX: this.startX, startY: this.startY, radius, color: this.color }); |
|
641 |
+ } else if (this.tool === 'draw') { |
|
642 |
+ context.lineTo(x, y); |
|
643 |
+ context.stroke(); |
|
644 |
+ this.tempLines.push({ id: this.nextLineId, startX: this.startX, startY: this.startY, endX: x, endY: y, color: this.color }); |
|
645 |
+ } |
|
646 |
+ this.isDrawing = false; |
|
647 |
+ }, |
|
648 |
+ onMouseMove(event) { |
|
649 |
+ if (!this.isDrawing || this.tool !== 'draw') return; |
|
650 |
+ const { x, y } = this.getCanvasPosition(event); |
|
651 |
+ const context = this.$refs.canvas.getContext('2d'); |
|
652 |
+ context.strokeStyle = this.color; |
|
653 |
+ context.lineWidth = this.brushSize; // 브러시 크기 설정 |
|
654 |
+ context.lineTo(x, y); |
|
655 |
+ context.stroke(); |
|
656 |
+ this.tempLines.push({ id: this.nextLineId, startX: this.startX, startY: this.startY, endX: x, endY: y, color: this.color }); |
|
657 |
+ this.startX = x; |
|
658 |
+ this.startY = y; |
|
659 |
+ }, |
|
660 |
+ onCanvasClick(event) { |
|
661 |
+ if (this.tool === 'eraser') { |
|
662 |
+ const { x, y } = this.getCanvasPosition(event); |
|
663 |
+ this.eraseDrawing(x, y); |
|
664 |
+ } |
|
665 |
+ }, |
|
666 |
+ eraseDrawing(x, y) { |
|
667 |
+ const eraserRadius = 10; |
|
668 |
+ this.drawHistory = this.drawHistory.filter(item => { |
|
669 |
+ if (item.type === 'rectangle') { |
|
670 |
+ return !(x >= item.startX && x <= item.endX && y >= item.startY && y <= item.endY); |
|
671 |
+ } else if (item.type === 'circle') { |
|
672 |
+ const distance = Math.sqrt(Math.pow((x - item.startX), 2) + Math.pow((y - item.startY), 2)); |
|
673 |
+ return !(distance <= item.radius); |
|
674 |
+ } |
|
675 |
+ }); |
|
676 |
+ const linesToDelete = this.tempLines.filter(line => { |
|
677 |
+ const distanceToLine = this.distanceToLineSegment(line.startX, line.startY, line.endX, line.endY, x, y); |
|
678 |
+ return distanceToLine <= 10; |
|
679 |
+ }).map(line => line.id); |
|
680 |
+ this.tempLines = this.tempLines.filter(line => !linesToDelete.includes(line.id)); |
|
681 |
+ this.redraw(); |
|
682 |
+ }, |
|
683 |
+ distanceToLineSegment(x1, y1, x2, y2, px, py) { |
|
684 |
+ const lengthSquared = Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2); |
|
685 |
+ if (lengthSquared === 0) return Math.sqrt(Math.pow(px - x1, 2) + Math.pow(py - y1, 2)); |
|
686 |
+ const t = Math.max(0, Math.min(1, ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / lengthSquared)); |
|
687 |
+ const projX = x1 + t * (x2 - x1); |
|
688 |
+ const projY = y1 + t * (y2 - y1); |
|
689 |
+ return Math.sqrt(Math.pow(px - projX, 2) + Math.pow(py - projY, 2)); |
|
690 |
+ }, |
|
691 |
+ clearAll() { |
|
692 |
+ this.drawHistory = []; |
|
693 |
+ this.stickers = []; |
|
694 |
+ this.tempLines = []; |
|
695 |
+ this.redraw(); |
|
696 |
+ }, |
|
697 |
+ redraw() { |
|
698 |
+ const canvas = this.$refs.canvas; |
|
699 |
+ const context = canvas.getContext('2d'); |
|
700 |
+ const image = new Image(); |
|
701 |
+ image.src = this.photo; |
|
702 |
+ image.onload = () => { |
|
703 |
+ context.clearRect(0, 0, this.canvasWidth, this.canvasHeight); |
|
704 |
+ context.drawImage(image, 0, 0, this.canvasWidth, this.canvasHeight); |
|
705 |
+ this.drawHistory.forEach(item => { |
|
706 |
+ context.strokeStyle = item.color; |
|
707 |
+ if (item.type === 'draw') { |
|
708 |
+ context.beginPath(); |
|
709 |
+ context.moveTo(item.startX, item.startY); |
|
710 |
+ context.lineTo(item.endX, item.endY); |
|
711 |
+ context.stroke(); |
|
712 |
+ } else if (item.type === 'rectangle') { |
|
713 |
+ context.strokeRect(item.startX, item.startY, item.endX - item.startX, item.endY - item.startY); |
|
714 |
+ } else if (item.type === 'circle') { |
|
715 |
+ context.beginPath(); |
|
716 |
+ context.arc(item.startX, item.startY, item.radius, 0, 2 * Math.PI); |
|
717 |
+ context.stroke(); |
|
718 |
+ } |
|
719 |
+ }); |
|
720 |
+ this.tempLines.forEach(line => { |
|
721 |
+ context.strokeStyle = line.color; |
|
722 |
+ context.beginPath(); |
|
723 |
+ context.moveTo(line.startX, line.startY); |
|
724 |
+ context.lineTo(line.endX, line.endY); |
|
725 |
+ context.stroke(); |
|
726 |
+ }); |
|
727 |
+ this.stickers.forEach((sticker, index) => { |
|
728 |
+ context.drawImage(sticker.img, sticker.x, sticker.y, sticker.width, sticker.height); |
|
729 |
+ }); |
|
730 |
+ }; |
|
731 |
+ }, |
|
732 |
+ |
|
179 | 733 |
|
180 | 734 |
}, |
181 | 735 |
components: { |
... | ... | @@ -183,6 +737,104 @@ |
183 | 737 |
}, |
184 | 738 |
mounted() { |
185 | 739 |
console.log('main mounted'); |
740 |
+ |
|
741 |
+ |
|
742 |
+ }, |
|
743 |
+ computed() { |
|
744 |
+ |
|
745 |
+ }, |
|
746 |
+ beforeDestroy() { |
|
747 |
+ // 컴포넌트가 파괴되기 전에 리스너 제거 |
|
748 |
+ window.removeEventListener('resize', this.updateCanvasRect); |
|
749 |
+ this.$refs.canvas.removeEventListener('click', this.handleCanvasClick); |
|
186 | 750 |
} |
187 | 751 |
} |
188 |
-</script>(파일 끝에 줄바꿈 문자 없음) |
|
752 |
+</script> |
|
753 |
+ |
|
754 |
+<style> |
|
755 |
+.body { |
|
756 |
+ width: 1435px; |
|
757 |
+ height: auto; |
|
758 |
+ margin: 0 auto; |
|
759 |
+} |
|
760 |
+ |
|
761 |
+#container { |
|
762 |
+ position: relative; |
|
763 |
+ margin: auto; |
|
764 |
+ border: 10px #333 solid; |
|
765 |
+ display: flex; |
|
766 |
+ justify-content: center; |
|
767 |
+ align-items: center; |
|
768 |
+ z-index: 100; |
|
769 |
+} |
|
770 |
+ |
|
771 |
+ |
|
772 |
+video { |
|
773 |
+ width: 100%; |
|
774 |
+ height: auto; |
|
775 |
+ background-color: #666; |
|
776 |
+} |
|
777 |
+ |
|
778 |
+.mirrored { |
|
779 |
+ transform: scaleX(-1); |
|
780 |
+} |
|
781 |
+ |
|
782 |
+.new-btn:disabled { |
|
783 |
+ background-color: #FFF3D7; |
|
784 |
+ cursor: not-allowed; |
|
785 |
+} |
|
786 |
+ |
|
787 |
+/* button { |
|
788 |
+ margin: auto; |
|
789 |
+ padding: 5px 10px; |
|
790 |
+ font-size: 13px; |
|
791 |
+ cursor: pointer; |
|
792 |
+ display: flex; |
|
793 |
+ justify-content: center; |
|
794 |
+ text-align: center; |
|
795 |
+} */ |
|
796 |
+ |
|
797 |
+.sticker { |
|
798 |
+ position: absolute; |
|
799 |
+ cursor: move; |
|
800 |
+} |
|
801 |
+ |
|
802 |
+.sticker-handle { |
|
803 |
+ width: 15px; |
|
804 |
+ height: 15px; |
|
805 |
+ background: rgba(255, 255, 255, 0.521); |
|
806 |
+ position: absolute; |
|
807 |
+ bottom: 0; |
|
808 |
+ right: 0; |
|
809 |
+ cursor: nwse-resize; |
|
810 |
+ font-size: 13px; |
|
811 |
+ font-weight: bolder; |
|
812 |
+ color: rgb(63, 63, 63); |
|
813 |
+} |
|
814 |
+ |
|
815 |
+.sticker-delete { |
|
816 |
+ position: absolute; |
|
817 |
+ top: 0; |
|
818 |
+ right: 0; |
|
819 |
+ background: rgba(255, 0, 0, 0.425); |
|
820 |
+ color: white; |
|
821 |
+ padding: 5px; |
|
822 |
+ cursor: pointer; |
|
823 |
+} |
|
824 |
+ |
|
825 |
+.toolbar { |
|
826 |
+ display: flex; |
|
827 |
+ justify-content: center; |
|
828 |
+ margin-top: 10px; |
|
829 |
+} |
|
830 |
+ |
|
831 |
+.toolbar button { |
|
832 |
+ margin: 5px; |
|
833 |
+ padding: 5px 10px; |
|
834 |
+ cursor: pointer; |
|
835 |
+} |
|
836 |
+ |
|
837 |
+.toolbar input { |
|
838 |
+ margin: 5px; |
|
839 |
+} |
|
840 |
+</style>(파일 끝에 줄바꿈 문자 없음) |
--- client/views/pages/main/PhotoDesign.vue
+++ client/views/pages/main/PhotoDesign.vue
... | ... | @@ -5,13 +5,14 @@ |
5 | 5 |
<span class="title mr40">기념 사진을 꾸며봅시다.</span> |
6 | 6 |
</div> |
7 | 7 |
<div class="flex justify-between align-center" style="gap: 40px;"> |
8 |
- <div class="content " style="padding: 30px;"> |
|
8 |
+ <div class="content" style="padding: 30px;"> |
|
9 | 9 |
<div class="tool"> |
10 | 10 |
<div class="flex justify-center mb20" style="gap: 20px;"> |
11 |
- <button class="popTxt" v-for="(item, index) in items" :key="index" @click="updateContent(index)" :class="{ active: selectedIndex === index }"> |
|
12 |
- <img :src="item.imgSrc1" style="display: block;"> |
|
13 |
- <img :src="item.imgSrc2" v-if="selectedIndex === index" style="display: block;"> |
|
14 |
- </button> |
|
11 |
+ <button class="popTxt" v-for="(item, index) in items" :key="index" @click="updateContent(index)" |
|
12 |
+ :class="{ active: selectedIndex === index }"> |
|
13 |
+ <img :src="item.imgSrc1" style="display: block;"> |
|
14 |
+ <img :src="item.imgSrc2" v-if="selectedIndex === index" style="display: block;"> |
|
15 |
+ </button> |
|
15 | 16 |
</div> |
16 | 17 |
</div> |
17 | 18 |
<div class="stickers"> |
... | ... | @@ -31,8 +32,8 @@ |
31 | 32 |
</div> |
32 | 33 |
</div> |
33 | 34 |
<div> |
34 |
- <div class="content " style="height: 549px; width: 973px;"> |
|
35 |
- <button><img src="../../../resources/img/img143_75s.png" alt=""></button> |
|
35 |
+ <div class="content" style="height: 549px; width: 973px;"> |
|
36 |
+ <button><img class="captured-img" :src="capturedImage" alt="Captured Image"></button> |
|
36 | 37 |
</div> |
37 | 38 |
<div class="btn-wrap flex justify-center mt40" style="gap: 40px;"> |
38 | 39 |
<button class="login-btn" @click="goToPage('Camera')"> |
... | ... | @@ -40,8 +41,8 @@ |
40 | 41 |
<p>재촬영</p> |
41 | 42 |
</button> |
42 | 43 |
|
43 |
- <button class="login-btn" type="submit" @click="goToPage('PhotoEdit')"><img |
|
44 |
- src="../../../resources/img/btn07_s.png" alt=""> |
|
44 |
+ <button class="login-btn" type="submit" @click="goToPage('PhotoEdit')"> |
|
45 |
+ <img src="../../../resources/img/btn07_s.png" alt=""> |
|
45 | 46 |
<p>완성</p> |
46 | 47 |
</button> |
47 | 48 |
</div> |
... | ... | @@ -65,7 +66,6 @@ |
65 | 66 |
</button> |
66 | 67 |
</div> |
67 | 68 |
</div> |
68 |
- |
|
69 | 69 |
</div> |
70 | 70 |
</div> |
71 | 71 |
</template> |
... | ... | @@ -75,49 +75,49 @@ |
75 | 75 |
data() { |
76 | 76 |
return { |
77 | 77 |
items: [ |
78 |
- { imgSrc1: 'client/resources/img/btn20_75s_normal.png', imgSrc2: 'client/resources/img/btn20_75s_click.png', }, |
|
79 |
- { imgSrc1: 'client/resources/img/btn21_75s_normal.png', imgSrc2: 'client/resources/img/btn21_75s_click.png', }, |
|
78 |
+ { imgSrc1: 'client/resources/img/btn20_75s_normal.png', imgSrc2: 'client/resources/img/btn20_75s_click.png' }, |
|
79 |
+ { imgSrc1: 'client/resources/img/btn21_75s_normal.png', imgSrc2: 'client/resources/img/btn21_75s_click.png' }, |
|
80 | 80 |
], |
81 |
- timer: '00', |
|
82 | 81 |
selectedIndex: 0, |
82 |
+ }; |
|
83 |
+ }, |
|
84 |
+ computed: { |
|
85 |
+ capturedImage() { |
|
86 |
+ // Retrieve the captured image from route query parameters |
|
87 |
+ return this.$route.query.image || ''; // Return an empty string if no image is provided |
|
83 | 88 |
} |
84 | 89 |
}, |
85 | 90 |
methods: { |
86 | 91 |
updateContent(index) { |
87 |
- this.selectedIndex = index; |
|
88 |
- // this.currentCon = this.items[index].con; |
|
89 |
- }, |
|
92 |
+ this.selectedIndex = index; |
|
93 |
+ }, |
|
90 | 94 |
goToPage(page) { |
91 | 95 |
this.$router.push({ name: page }); |
92 | 96 |
}, |
93 |
- startTimer() { |
|
94 |
- if (this.intervalId) { |
|
95 |
- clearInterval(this.intervalId); |
|
96 |
- } |
|
97 |
- this.timer = 5; |
|
98 |
- this.intervalId = setInterval(() => { |
|
99 |
- if (this.timer > 0) { |
|
100 |
- this.timer--; |
|
101 |
- } else { |
|
102 |
- clearInterval(this.intervalId); |
|
103 |
- } |
|
104 |
- }, 1000); |
|
105 |
- } |
|
106 |
- }, |
|
107 |
- watch: { |
|
97 |
+ // captureAndGoToPhotoDesign() { |
|
98 |
+ // const video = this.$refs.modalVideoElement; |
|
99 |
+ // const canvas = document.createElement('canvas'); |
|
100 |
+ // canvas.width = video.videoWidth; |
|
101 |
+ // canvas.height = video.videoHeight; |
|
102 |
+ // const ctx = canvas.getContext('2d'); |
|
108 | 103 |
|
109 |
- }, |
|
110 |
- computed: { |
|
104 |
+ // // 좌우 반전 적용 |
|
105 |
+ // ctx.translate(canvas.width, 0); |
|
106 |
+ // ctx.scale(-1, 1); |
|
111 | 107 |
|
108 |
+ // ctx.drawImage(video, 0, 0, canvas.width, canvas.height); |
|
109 |
+ // const imageDataUrl = canvas.toDataURL('image/png'); |
|
110 |
+ // this.$router.push({ name: 'PhotoDesign', query: { image: imageDataUrl } }); |
|
111 |
+ // } |
|
112 | 112 |
}, |
113 |
- components: { |
|
114 |
- }, |
|
115 |
- mounted() { |
|
116 |
- |
|
117 |
- } |
|
118 | 113 |
} |
119 | 114 |
</script> |
115 |
+ |
|
120 | 116 |
<style scoped> |
117 |
+.captured-img { |
|
118 |
+ margin: auto auto; |
|
119 |
+} |
|
120 |
+ |
|
121 | 121 |
.imgGroup { |
122 | 122 |
width: fit-content; |
123 | 123 |
} |
... | ... | @@ -163,5 +163,8 @@ |
163 | 163 |
.pickGroup article>div>p { |
164 | 164 |
font-size: 64px; |
165 | 165 |
} |
166 |
-.popTxt{width: 101px;} |
|
167 |
-</style>(파일 끝에 줄바꿈 문자 없음) |
|
166 |
+ |
|
167 |
+.popTxt { |
|
168 |
+ width: 101px; |
|
169 |
+} |
|
170 |
+</style> |
--- package-lock.json
+++ package-lock.json
... | ... | @@ -12,6 +12,7 @@ |
12 | 12 |
"@mdi/light-js": "^0.2.63", |
13 | 13 |
"axios": "^1.7.3", |
14 | 14 |
"babel-loader": "8.2.5", |
15 |
+ "compress.js": "^2.1.2", |
|
15 | 16 |
"css-loader": "6.7.1", |
16 | 17 |
"express": "^4.18.1", |
17 | 18 |
"express-http-proxy": "^2.0.0", |
... | ... | @@ -25,9 +26,11 @@ |
25 | 26 |
"vue-router": "4.1.5", |
26 | 27 |
"vue-style-loader": "4.1.3", |
27 | 28 |
"vue3-sfc-loader": "^0.8.4", |
28 |
- "vuex": "^4.1.0", |
|
29 |
- "webpack": "5.74.0", |
|
30 |
- "webpack-cli": "4.10.0" |
|
29 |
+ "vuex": "^4.1.0" |
|
30 |
+ }, |
|
31 |
+ "devDependencies": { |
|
32 |
+ "webpack": "^5.93.0", |
|
33 |
+ "webpack-cli": "^5.1.4" |
|
31 | 34 |
} |
32 | 35 |
}, |
33 | 36 |
"node_modules/@ampproject/remapping": { |
... | ... | @@ -316,6 +319,7 @@ |
316 | 319 |
"version": "0.5.7", |
317 | 320 |
"resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", |
318 | 321 |
"integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", |
322 |
+ "dev": true, |
|
319 | 323 |
"license": "MIT", |
320 | 324 |
"engines": { |
321 | 325 |
"node": ">=10.0.0" |
... | ... | @@ -425,10 +429,9 @@ |
425 | 429 |
} |
426 | 430 |
}, |
427 | 431 |
"node_modules/@types/estree": { |
428 |
- "version": "0.0.51", |
|
429 |
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", |
|
430 |
- "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", |
|
431 |
- "license": "MIT" |
|
432 |
+ "version": "1.0.5", |
|
433 |
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", |
|
434 |
+ "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" |
|
432 | 435 |
}, |
433 | 436 |
"node_modules/@types/json-schema": { |
434 | 437 |
"version": "7.0.15", |
... | ... | @@ -564,180 +567,173 @@ |
564 | 567 |
"license": "MIT" |
565 | 568 |
}, |
566 | 569 |
"node_modules/@webassemblyjs/ast": { |
567 |
- "version": "1.11.1", |
|
568 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", |
|
569 |
- "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", |
|
570 |
- "license": "MIT", |
|
570 |
+ "version": "1.12.1", |
|
571 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", |
|
572 |
+ "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", |
|
571 | 573 |
"dependencies": { |
572 |
- "@webassemblyjs/helper-numbers": "1.11.1", |
|
573 |
- "@webassemblyjs/helper-wasm-bytecode": "1.11.1" |
|
574 |
+ "@webassemblyjs/helper-numbers": "1.11.6", |
|
575 |
+ "@webassemblyjs/helper-wasm-bytecode": "1.11.6" |
|
574 | 576 |
} |
575 | 577 |
}, |
576 | 578 |
"node_modules/@webassemblyjs/floating-point-hex-parser": { |
577 |
- "version": "1.11.1", |
|
578 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", |
|
579 |
- "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", |
|
580 |
- "license": "MIT" |
|
579 |
+ "version": "1.11.6", |
|
580 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", |
|
581 |
+ "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" |
|
581 | 582 |
}, |
582 | 583 |
"node_modules/@webassemblyjs/helper-api-error": { |
583 |
- "version": "1.11.1", |
|
584 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", |
|
585 |
- "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", |
|
586 |
- "license": "MIT" |
|
584 |
+ "version": "1.11.6", |
|
585 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", |
|
586 |
+ "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" |
|
587 | 587 |
}, |
588 | 588 |
"node_modules/@webassemblyjs/helper-buffer": { |
589 |
- "version": "1.11.1", |
|
590 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", |
|
591 |
- "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", |
|
592 |
- "license": "MIT" |
|
589 |
+ "version": "1.12.1", |
|
590 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", |
|
591 |
+ "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==" |
|
593 | 592 |
}, |
594 | 593 |
"node_modules/@webassemblyjs/helper-numbers": { |
595 |
- "version": "1.11.1", |
|
596 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", |
|
597 |
- "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", |
|
598 |
- "license": "MIT", |
|
594 |
+ "version": "1.11.6", |
|
595 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", |
|
596 |
+ "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", |
|
599 | 597 |
"dependencies": { |
600 |
- "@webassemblyjs/floating-point-hex-parser": "1.11.1", |
|
601 |
- "@webassemblyjs/helper-api-error": "1.11.1", |
|
598 |
+ "@webassemblyjs/floating-point-hex-parser": "1.11.6", |
|
599 |
+ "@webassemblyjs/helper-api-error": "1.11.6", |
|
602 | 600 |
"@xtuc/long": "4.2.2" |
603 | 601 |
} |
604 | 602 |
}, |
605 | 603 |
"node_modules/@webassemblyjs/helper-wasm-bytecode": { |
606 |
- "version": "1.11.1", |
|
607 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", |
|
608 |
- "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", |
|
609 |
- "license": "MIT" |
|
604 |
+ "version": "1.11.6", |
|
605 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", |
|
606 |
+ "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" |
|
610 | 607 |
}, |
611 | 608 |
"node_modules/@webassemblyjs/helper-wasm-section": { |
612 |
- "version": "1.11.1", |
|
613 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", |
|
614 |
- "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", |
|
615 |
- "license": "MIT", |
|
609 |
+ "version": "1.12.1", |
|
610 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", |
|
611 |
+ "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", |
|
616 | 612 |
"dependencies": { |
617 |
- "@webassemblyjs/ast": "1.11.1", |
|
618 |
- "@webassemblyjs/helper-buffer": "1.11.1", |
|
619 |
- "@webassemblyjs/helper-wasm-bytecode": "1.11.1", |
|
620 |
- "@webassemblyjs/wasm-gen": "1.11.1" |
|
613 |
+ "@webassemblyjs/ast": "1.12.1", |
|
614 |
+ "@webassemblyjs/helper-buffer": "1.12.1", |
|
615 |
+ "@webassemblyjs/helper-wasm-bytecode": "1.11.6", |
|
616 |
+ "@webassemblyjs/wasm-gen": "1.12.1" |
|
621 | 617 |
} |
622 | 618 |
}, |
623 | 619 |
"node_modules/@webassemblyjs/ieee754": { |
624 |
- "version": "1.11.1", |
|
625 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", |
|
626 |
- "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", |
|
627 |
- "license": "MIT", |
|
620 |
+ "version": "1.11.6", |
|
621 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", |
|
622 |
+ "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", |
|
628 | 623 |
"dependencies": { |
629 | 624 |
"@xtuc/ieee754": "^1.2.0" |
630 | 625 |
} |
631 | 626 |
}, |
632 | 627 |
"node_modules/@webassemblyjs/leb128": { |
633 |
- "version": "1.11.1", |
|
634 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", |
|
635 |
- "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", |
|
636 |
- "license": "Apache-2.0", |
|
628 |
+ "version": "1.11.6", |
|
629 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", |
|
630 |
+ "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", |
|
637 | 631 |
"dependencies": { |
638 | 632 |
"@xtuc/long": "4.2.2" |
639 | 633 |
} |
640 | 634 |
}, |
641 | 635 |
"node_modules/@webassemblyjs/utf8": { |
642 |
- "version": "1.11.1", |
|
643 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", |
|
644 |
- "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", |
|
645 |
- "license": "MIT" |
|
636 |
+ "version": "1.11.6", |
|
637 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", |
|
638 |
+ "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" |
|
646 | 639 |
}, |
647 | 640 |
"node_modules/@webassemblyjs/wasm-edit": { |
648 |
- "version": "1.11.1", |
|
649 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", |
|
650 |
- "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", |
|
651 |
- "license": "MIT", |
|
641 |
+ "version": "1.12.1", |
|
642 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz", |
|
643 |
+ "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==", |
|
652 | 644 |
"dependencies": { |
653 |
- "@webassemblyjs/ast": "1.11.1", |
|
654 |
- "@webassemblyjs/helper-buffer": "1.11.1", |
|
655 |
- "@webassemblyjs/helper-wasm-bytecode": "1.11.1", |
|
656 |
- "@webassemblyjs/helper-wasm-section": "1.11.1", |
|
657 |
- "@webassemblyjs/wasm-gen": "1.11.1", |
|
658 |
- "@webassemblyjs/wasm-opt": "1.11.1", |
|
659 |
- "@webassemblyjs/wasm-parser": "1.11.1", |
|
660 |
- "@webassemblyjs/wast-printer": "1.11.1" |
|
645 |
+ "@webassemblyjs/ast": "1.12.1", |
|
646 |
+ "@webassemblyjs/helper-buffer": "1.12.1", |
|
647 |
+ "@webassemblyjs/helper-wasm-bytecode": "1.11.6", |
|
648 |
+ "@webassemblyjs/helper-wasm-section": "1.12.1", |
|
649 |
+ "@webassemblyjs/wasm-gen": "1.12.1", |
|
650 |
+ "@webassemblyjs/wasm-opt": "1.12.1", |
|
651 |
+ "@webassemblyjs/wasm-parser": "1.12.1", |
|
652 |
+ "@webassemblyjs/wast-printer": "1.12.1" |
|
661 | 653 |
} |
662 | 654 |
}, |
663 | 655 |
"node_modules/@webassemblyjs/wasm-gen": { |
664 |
- "version": "1.11.1", |
|
665 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", |
|
666 |
- "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", |
|
667 |
- "license": "MIT", |
|
656 |
+ "version": "1.12.1", |
|
657 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz", |
|
658 |
+ "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==", |
|
668 | 659 |
"dependencies": { |
669 |
- "@webassemblyjs/ast": "1.11.1", |
|
670 |
- "@webassemblyjs/helper-wasm-bytecode": "1.11.1", |
|
671 |
- "@webassemblyjs/ieee754": "1.11.1", |
|
672 |
- "@webassemblyjs/leb128": "1.11.1", |
|
673 |
- "@webassemblyjs/utf8": "1.11.1" |
|
660 |
+ "@webassemblyjs/ast": "1.12.1", |
|
661 |
+ "@webassemblyjs/helper-wasm-bytecode": "1.11.6", |
|
662 |
+ "@webassemblyjs/ieee754": "1.11.6", |
|
663 |
+ "@webassemblyjs/leb128": "1.11.6", |
|
664 |
+ "@webassemblyjs/utf8": "1.11.6" |
|
674 | 665 |
} |
675 | 666 |
}, |
676 | 667 |
"node_modules/@webassemblyjs/wasm-opt": { |
677 |
- "version": "1.11.1", |
|
678 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", |
|
679 |
- "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", |
|
680 |
- "license": "MIT", |
|
668 |
+ "version": "1.12.1", |
|
669 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz", |
|
670 |
+ "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==", |
|
681 | 671 |
"dependencies": { |
682 |
- "@webassemblyjs/ast": "1.11.1", |
|
683 |
- "@webassemblyjs/helper-buffer": "1.11.1", |
|
684 |
- "@webassemblyjs/wasm-gen": "1.11.1", |
|
685 |
- "@webassemblyjs/wasm-parser": "1.11.1" |
|
672 |
+ "@webassemblyjs/ast": "1.12.1", |
|
673 |
+ "@webassemblyjs/helper-buffer": "1.12.1", |
|
674 |
+ "@webassemblyjs/wasm-gen": "1.12.1", |
|
675 |
+ "@webassemblyjs/wasm-parser": "1.12.1" |
|
686 | 676 |
} |
687 | 677 |
}, |
688 | 678 |
"node_modules/@webassemblyjs/wasm-parser": { |
689 |
- "version": "1.11.1", |
|
690 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", |
|
691 |
- "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", |
|
692 |
- "license": "MIT", |
|
679 |
+ "version": "1.12.1", |
|
680 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz", |
|
681 |
+ "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==", |
|
693 | 682 |
"dependencies": { |
694 |
- "@webassemblyjs/ast": "1.11.1", |
|
695 |
- "@webassemblyjs/helper-api-error": "1.11.1", |
|
696 |
- "@webassemblyjs/helper-wasm-bytecode": "1.11.1", |
|
697 |
- "@webassemblyjs/ieee754": "1.11.1", |
|
698 |
- "@webassemblyjs/leb128": "1.11.1", |
|
699 |
- "@webassemblyjs/utf8": "1.11.1" |
|
683 |
+ "@webassemblyjs/ast": "1.12.1", |
|
684 |
+ "@webassemblyjs/helper-api-error": "1.11.6", |
|
685 |
+ "@webassemblyjs/helper-wasm-bytecode": "1.11.6", |
|
686 |
+ "@webassemblyjs/ieee754": "1.11.6", |
|
687 |
+ "@webassemblyjs/leb128": "1.11.6", |
|
688 |
+ "@webassemblyjs/utf8": "1.11.6" |
|
700 | 689 |
} |
701 | 690 |
}, |
702 | 691 |
"node_modules/@webassemblyjs/wast-printer": { |
703 |
- "version": "1.11.1", |
|
704 |
- "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", |
|
705 |
- "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", |
|
706 |
- "license": "MIT", |
|
692 |
+ "version": "1.12.1", |
|
693 |
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz", |
|
694 |
+ "integrity": "sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==", |
|
707 | 695 |
"dependencies": { |
708 |
- "@webassemblyjs/ast": "1.11.1", |
|
696 |
+ "@webassemblyjs/ast": "1.12.1", |
|
709 | 697 |
"@xtuc/long": "4.2.2" |
710 | 698 |
} |
711 | 699 |
}, |
712 | 700 |
"node_modules/@webpack-cli/configtest": { |
713 |
- "version": "1.2.0", |
|
714 |
- "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", |
|
715 |
- "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", |
|
716 |
- "license": "MIT", |
|
701 |
+ "version": "2.1.1", |
|
702 |
+ "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", |
|
703 |
+ "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", |
|
704 |
+ "dev": true, |
|
705 |
+ "engines": { |
|
706 |
+ "node": ">=14.15.0" |
|
707 |
+ }, |
|
717 | 708 |
"peerDependencies": { |
718 |
- "webpack": "4.x.x || 5.x.x", |
|
719 |
- "webpack-cli": "4.x.x" |
|
709 |
+ "webpack": "5.x.x", |
|
710 |
+ "webpack-cli": "5.x.x" |
|
720 | 711 |
} |
721 | 712 |
}, |
722 | 713 |
"node_modules/@webpack-cli/info": { |
723 |
- "version": "1.5.0", |
|
724 |
- "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", |
|
725 |
- "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", |
|
726 |
- "license": "MIT", |
|
727 |
- "dependencies": { |
|
728 |
- "envinfo": "^7.7.3" |
|
714 |
+ "version": "2.0.2", |
|
715 |
+ "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", |
|
716 |
+ "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", |
|
717 |
+ "dev": true, |
|
718 |
+ "engines": { |
|
719 |
+ "node": ">=14.15.0" |
|
729 | 720 |
}, |
730 | 721 |
"peerDependencies": { |
731 |
- "webpack-cli": "4.x.x" |
|
722 |
+ "webpack": "5.x.x", |
|
723 |
+ "webpack-cli": "5.x.x" |
|
732 | 724 |
} |
733 | 725 |
}, |
734 | 726 |
"node_modules/@webpack-cli/serve": { |
735 |
- "version": "1.7.0", |
|
736 |
- "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", |
|
737 |
- "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", |
|
738 |
- "license": "MIT", |
|
727 |
+ "version": "2.0.5", |
|
728 |
+ "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", |
|
729 |
+ "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", |
|
730 |
+ "dev": true, |
|
731 |
+ "engines": { |
|
732 |
+ "node": ">=14.15.0" |
|
733 |
+ }, |
|
739 | 734 |
"peerDependencies": { |
740 |
- "webpack-cli": "4.x.x" |
|
735 |
+ "webpack": "5.x.x", |
|
736 |
+ "webpack-cli": "5.x.x" |
|
741 | 737 |
}, |
742 | 738 |
"peerDependenciesMeta": { |
743 | 739 |
"webpack-dev-server": { |
... | ... | @@ -748,14 +744,12 @@ |
748 | 744 |
"node_modules/@xtuc/ieee754": { |
749 | 745 |
"version": "1.2.0", |
750 | 746 |
"resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", |
751 |
- "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", |
|
752 |
- "license": "BSD-3-Clause" |
|
747 |
+ "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" |
|
753 | 748 |
}, |
754 | 749 |
"node_modules/@xtuc/long": { |
755 | 750 |
"version": "4.2.2", |
756 | 751 |
"resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", |
757 |
- "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", |
|
758 |
- "license": "Apache-2.0" |
|
752 |
+ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" |
|
759 | 753 |
}, |
760 | 754 |
"node_modules/accepts": { |
761 | 755 |
"version": "1.3.8", |
... | ... | @@ -782,11 +776,10 @@ |
782 | 776 |
"node": ">=0.4.0" |
783 | 777 |
} |
784 | 778 |
}, |
785 |
- "node_modules/acorn-import-assertions": { |
|
786 |
- "version": "1.9.0", |
|
787 |
- "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", |
|
788 |
- "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", |
|
789 |
- "license": "MIT", |
|
779 |
+ "node_modules/acorn-import-attributes": { |
|
780 |
+ "version": "1.9.5", |
|
781 |
+ "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", |
|
782 |
+ "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", |
|
790 | 783 |
"peerDependencies": { |
791 | 784 |
"acorn": "^8" |
792 | 785 |
} |
... | ... | @@ -1134,6 +1127,7 @@ |
1134 | 1127 |
"version": "4.0.1", |
1135 | 1128 |
"resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", |
1136 | 1129 |
"integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", |
1130 |
+ "dev": true, |
|
1137 | 1131 |
"license": "MIT", |
1138 | 1132 |
"dependencies": { |
1139 | 1133 |
"is-plain-object": "^2.0.4", |
... | ... | @@ -1163,6 +1157,7 @@ |
1163 | 1157 |
"version": "2.0.20", |
1164 | 1158 |
"resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", |
1165 | 1159 |
"integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", |
1160 |
+ "dev": true, |
|
1166 | 1161 |
"license": "MIT" |
1167 | 1162 |
}, |
1168 | 1163 |
"node_modules/combined-stream": { |
... | ... | @@ -1190,6 +1185,11 @@ |
1190 | 1185 |
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", |
1191 | 1186 |
"integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", |
1192 | 1187 |
"license": "MIT" |
1188 |
+ }, |
|
1189 |
+ "node_modules/compress.js": { |
|
1190 |
+ "version": "2.1.2", |
|
1191 |
+ "resolved": "https://registry.npmjs.org/compress.js/-/compress.js-2.1.2.tgz", |
|
1192 |
+ "integrity": "sha512-DBb6M4wwe0rRAPeiKQ8HJrWuocVppUw9Qte4rEXiDrc5X3TrzeRKLzpvSE9oZ0Nd4HTXSSFphj3/XWwuptkQqw==" |
|
1193 | 1193 |
}, |
1194 | 1194 |
"node_modules/concat-map": { |
1195 | 1195 |
"version": "0.0.1", |
... | ... | @@ -1243,6 +1243,7 @@ |
1243 | 1243 |
"version": "7.0.3", |
1244 | 1244 |
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", |
1245 | 1245 |
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", |
1246 |
+ "dev": true, |
|
1246 | 1247 |
"license": "MIT", |
1247 | 1248 |
"dependencies": { |
1248 | 1249 |
"path-key": "^3.1.0", |
... | ... | @@ -1417,7 +1418,7 @@ |
1417 | 1418 |
"version": "7.13.0", |
1418 | 1419 |
"resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.13.0.tgz", |
1419 | 1420 |
"integrity": "sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==", |
1420 |
- "license": "MIT", |
|
1421 |
+ "dev": true, |
|
1421 | 1422 |
"bin": { |
1422 | 1423 |
"envinfo": "dist/cli.js" |
1423 | 1424 |
}, |
... | ... | @@ -1447,10 +1448,9 @@ |
1447 | 1448 |
} |
1448 | 1449 |
}, |
1449 | 1450 |
"node_modules/es-module-lexer": { |
1450 |
- "version": "0.9.3", |
|
1451 |
- "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", |
|
1452 |
- "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", |
|
1453 |
- "license": "MIT" |
|
1451 |
+ "version": "1.5.4", |
|
1452 |
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.4.tgz", |
|
1453 |
+ "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==" |
|
1454 | 1454 |
}, |
1455 | 1455 |
"node_modules/es6-promise": { |
1456 | 1456 |
"version": "4.2.8", |
... | ... | @@ -1645,6 +1645,7 @@ |
1645 | 1645 |
"version": "1.0.16", |
1646 | 1646 |
"resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", |
1647 | 1647 |
"integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", |
1648 |
+ "dev": true, |
|
1648 | 1649 |
"license": "MIT", |
1649 | 1650 |
"engines": { |
1650 | 1651 |
"node": ">= 4.9.1" |
... | ... | @@ -1783,6 +1784,7 @@ |
1783 | 1784 |
"version": "5.0.2", |
1784 | 1785 |
"resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", |
1785 | 1786 |
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", |
1787 |
+ "dev": true, |
|
1786 | 1788 |
"license": "BSD-3-Clause", |
1787 | 1789 |
"bin": { |
1788 | 1790 |
"flat": "cli.js" |
... | ... | @@ -2081,6 +2083,7 @@ |
2081 | 2083 |
"version": "3.2.0", |
2082 | 2084 |
"resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", |
2083 | 2085 |
"integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", |
2086 |
+ "dev": true, |
|
2084 | 2087 |
"license": "MIT", |
2085 | 2088 |
"dependencies": { |
2086 | 2089 |
"pkg-dir": "^4.2.0", |
... | ... | @@ -2114,12 +2117,12 @@ |
2114 | 2117 |
"license": "ISC" |
2115 | 2118 |
}, |
2116 | 2119 |
"node_modules/interpret": { |
2117 |
- "version": "2.2.0", |
|
2118 |
- "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", |
|
2119 |
- "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", |
|
2120 |
- "license": "MIT", |
|
2120 |
+ "version": "3.1.1", |
|
2121 |
+ "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", |
|
2122 |
+ "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", |
|
2123 |
+ "dev": true, |
|
2121 | 2124 |
"engines": { |
2122 |
- "node": ">= 0.10" |
|
2125 |
+ "node": ">=10.13.0" |
|
2123 | 2126 |
} |
2124 | 2127 |
}, |
2125 | 2128 |
"node_modules/ipaddr.js": { |
... | ... | @@ -2148,7 +2151,7 @@ |
2148 | 2151 |
"version": "2.15.0", |
2149 | 2152 |
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz", |
2150 | 2153 |
"integrity": "sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==", |
2151 |
- "license": "MIT", |
|
2154 |
+ "dev": true, |
|
2152 | 2155 |
"dependencies": { |
2153 | 2156 |
"hasown": "^2.0.2" |
2154 | 2157 |
}, |
... | ... | @@ -2196,6 +2199,7 @@ |
2196 | 2199 |
"version": "2.0.4", |
2197 | 2200 |
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", |
2198 | 2201 |
"integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", |
2202 |
+ "dev": true, |
|
2199 | 2203 |
"license": "MIT", |
2200 | 2204 |
"dependencies": { |
2201 | 2205 |
"isobject": "^3.0.1" |
... | ... | @@ -2208,12 +2212,14 @@ |
2208 | 2212 |
"version": "2.0.0", |
2209 | 2213 |
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", |
2210 | 2214 |
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", |
2215 |
+ "dev": true, |
|
2211 | 2216 |
"license": "ISC" |
2212 | 2217 |
}, |
2213 | 2218 |
"node_modules/isobject": { |
2214 | 2219 |
"version": "3.0.1", |
2215 | 2220 |
"resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", |
2216 | 2221 |
"integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", |
2222 |
+ "dev": true, |
|
2217 | 2223 |
"license": "MIT", |
2218 | 2224 |
"engines": { |
2219 | 2225 |
"node": ">=0.10.0" |
... | ... | @@ -2303,6 +2309,7 @@ |
2303 | 2309 |
"version": "6.0.3", |
2304 | 2310 |
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", |
2305 | 2311 |
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", |
2312 |
+ "dev": true, |
|
2306 | 2313 |
"license": "MIT", |
2307 | 2314 |
"engines": { |
2308 | 2315 |
"node": ">=0.10.0" |
... | ... | @@ -2634,6 +2641,7 @@ |
2634 | 2641 |
"version": "3.1.1", |
2635 | 2642 |
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", |
2636 | 2643 |
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", |
2644 |
+ "dev": true, |
|
2637 | 2645 |
"license": "MIT", |
2638 | 2646 |
"engines": { |
2639 | 2647 |
"node": ">=8" |
... | ... | @@ -2643,7 +2651,7 @@ |
2643 | 2651 |
"version": "1.0.7", |
2644 | 2652 |
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", |
2645 | 2653 |
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", |
2646 |
- "license": "MIT" |
|
2654 |
+ "dev": true |
|
2647 | 2655 |
}, |
2648 | 2656 |
"node_modules/path-to-regexp": { |
2649 | 2657 |
"version": "0.1.7", |
... | ... | @@ -3006,22 +3014,22 @@ |
3006 | 3014 |
} |
3007 | 3015 |
}, |
3008 | 3016 |
"node_modules/rechoir": { |
3009 |
- "version": "0.7.1", |
|
3010 |
- "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", |
|
3011 |
- "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", |
|
3012 |
- "license": "MIT", |
|
3017 |
+ "version": "0.8.0", |
|
3018 |
+ "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", |
|
3019 |
+ "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", |
|
3020 |
+ "dev": true, |
|
3013 | 3021 |
"dependencies": { |
3014 |
- "resolve": "^1.9.0" |
|
3022 |
+ "resolve": "^1.20.0" |
|
3015 | 3023 |
}, |
3016 | 3024 |
"engines": { |
3017 |
- "node": ">= 0.10" |
|
3025 |
+ "node": ">= 10.13.0" |
|
3018 | 3026 |
} |
3019 | 3027 |
}, |
3020 | 3028 |
"node_modules/resolve": { |
3021 | 3029 |
"version": "1.22.8", |
3022 | 3030 |
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", |
3023 | 3031 |
"integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", |
3024 |
- "license": "MIT", |
|
3032 |
+ "dev": true, |
|
3025 | 3033 |
"dependencies": { |
3026 | 3034 |
"is-core-module": "^2.13.0", |
3027 | 3035 |
"path-parse": "^1.0.7", |
... | ... | @@ -3038,6 +3046,7 @@ |
3038 | 3046 |
"version": "3.0.0", |
3039 | 3047 |
"resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", |
3040 | 3048 |
"integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", |
3049 |
+ "dev": true, |
|
3041 | 3050 |
"license": "MIT", |
3042 | 3051 |
"dependencies": { |
3043 | 3052 |
"resolve-from": "^5.0.0" |
... | ... | @@ -3050,6 +3059,7 @@ |
3050 | 3059 |
"version": "5.0.0", |
3051 | 3060 |
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", |
3052 | 3061 |
"integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", |
3062 |
+ "dev": true, |
|
3053 | 3063 |
"license": "MIT", |
3054 | 3064 |
"engines": { |
3055 | 3065 |
"node": ">=8" |
... | ... | @@ -3204,6 +3214,7 @@ |
3204 | 3214 |
"version": "3.0.1", |
3205 | 3215 |
"resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", |
3206 | 3216 |
"integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", |
3217 |
+ "dev": true, |
|
3207 | 3218 |
"license": "MIT", |
3208 | 3219 |
"dependencies": { |
3209 | 3220 |
"kind-of": "^6.0.2" |
... | ... | @@ -3216,6 +3227,7 @@ |
3216 | 3227 |
"version": "2.0.0", |
3217 | 3228 |
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", |
3218 | 3229 |
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", |
3230 |
+ "dev": true, |
|
3219 | 3231 |
"license": "MIT", |
3220 | 3232 |
"dependencies": { |
3221 | 3233 |
"shebang-regex": "^3.0.0" |
... | ... | @@ -3228,6 +3240,7 @@ |
3228 | 3240 |
"version": "3.0.0", |
3229 | 3241 |
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", |
3230 | 3242 |
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", |
3243 |
+ "dev": true, |
|
3231 | 3244 |
"license": "MIT", |
3232 | 3245 |
"engines": { |
3233 | 3246 |
"node": ">=8" |
... | ... | @@ -3329,7 +3342,7 @@ |
3329 | 3342 |
"version": "1.0.0", |
3330 | 3343 |
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", |
3331 | 3344 |
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", |
3332 |
- "license": "MIT", |
|
3345 |
+ "dev": true, |
|
3333 | 3346 |
"engines": { |
3334 | 3347 |
"node": ">= 0.4" |
3335 | 3348 |
}, |
... | ... | @@ -3761,7 +3774,6 @@ |
3761 | 3774 |
"version": "4.1.0", |
3762 | 3775 |
"resolved": "https://registry.npmjs.org/vuex/-/vuex-4.1.0.tgz", |
3763 | 3776 |
"integrity": "sha512-hmV6UerDrPcgbSy9ORAtNXDr9M4wlNP4pEFKye4ujJF8oqgFFuxDCdOLS3eNoRTtq5O3hoBDh9Doj1bQMYHRbQ==", |
3764 |
- "license": "MIT", |
|
3765 | 3777 |
"dependencies": { |
3766 | 3778 |
"@vue/devtools-api": "^6.0.0-beta.11" |
3767 | 3779 |
}, |
... | ... | @@ -3783,34 +3795,33 @@ |
3783 | 3795 |
} |
3784 | 3796 |
}, |
3785 | 3797 |
"node_modules/webpack": { |
3786 |
- "version": "5.74.0", |
|
3787 |
- "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", |
|
3788 |
- "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", |
|
3789 |
- "license": "MIT", |
|
3798 |
+ "version": "5.93.0", |
|
3799 |
+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.93.0.tgz", |
|
3800 |
+ "integrity": "sha512-Y0m5oEY1LRuwly578VqluorkXbvXKh7U3rLoQCEO04M97ScRr44afGVkI0FQFsXzysk5OgFAxjZAb9rsGQVihA==", |
|
3790 | 3801 |
"dependencies": { |
3791 | 3802 |
"@types/eslint-scope": "^3.7.3", |
3792 |
- "@types/estree": "^0.0.51", |
|
3793 |
- "@webassemblyjs/ast": "1.11.1", |
|
3794 |
- "@webassemblyjs/wasm-edit": "1.11.1", |
|
3795 |
- "@webassemblyjs/wasm-parser": "1.11.1", |
|
3803 |
+ "@types/estree": "^1.0.5", |
|
3804 |
+ "@webassemblyjs/ast": "^1.12.1", |
|
3805 |
+ "@webassemblyjs/wasm-edit": "^1.12.1", |
|
3806 |
+ "@webassemblyjs/wasm-parser": "^1.12.1", |
|
3796 | 3807 |
"acorn": "^8.7.1", |
3797 |
- "acorn-import-assertions": "^1.7.6", |
|
3798 |
- "browserslist": "^4.14.5", |
|
3808 |
+ "acorn-import-attributes": "^1.9.5", |
|
3809 |
+ "browserslist": "^4.21.10", |
|
3799 | 3810 |
"chrome-trace-event": "^1.0.2", |
3800 |
- "enhanced-resolve": "^5.10.0", |
|
3801 |
- "es-module-lexer": "^0.9.0", |
|
3811 |
+ "enhanced-resolve": "^5.17.0", |
|
3812 |
+ "es-module-lexer": "^1.2.1", |
|
3802 | 3813 |
"eslint-scope": "5.1.1", |
3803 | 3814 |
"events": "^3.2.0", |
3804 | 3815 |
"glob-to-regexp": "^0.4.1", |
3805 |
- "graceful-fs": "^4.2.9", |
|
3816 |
+ "graceful-fs": "^4.2.11", |
|
3806 | 3817 |
"json-parse-even-better-errors": "^2.3.1", |
3807 | 3818 |
"loader-runner": "^4.2.0", |
3808 | 3819 |
"mime-types": "^2.1.27", |
3809 | 3820 |
"neo-async": "^2.6.2", |
3810 |
- "schema-utils": "^3.1.0", |
|
3821 |
+ "schema-utils": "^3.2.0", |
|
3811 | 3822 |
"tapable": "^2.1.1", |
3812 |
- "terser-webpack-plugin": "^5.1.3", |
|
3813 |
- "watchpack": "^2.4.0", |
|
3823 |
+ "terser-webpack-plugin": "^5.3.10", |
|
3824 |
+ "watchpack": "^2.4.1", |
|
3814 | 3825 |
"webpack-sources": "^3.2.3" |
3815 | 3826 |
}, |
3816 | 3827 |
"bin": { |
... | ... | @@ -3830,42 +3841,40 @@ |
3830 | 3841 |
} |
3831 | 3842 |
}, |
3832 | 3843 |
"node_modules/webpack-cli": { |
3833 |
- "version": "4.10.0", |
|
3834 |
- "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", |
|
3835 |
- "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", |
|
3836 |
- "license": "MIT", |
|
3844 |
+ "version": "5.1.4", |
|
3845 |
+ "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.4.tgz", |
|
3846 |
+ "integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==", |
|
3847 |
+ "dev": true, |
|
3837 | 3848 |
"dependencies": { |
3838 | 3849 |
"@discoveryjs/json-ext": "^0.5.0", |
3839 |
- "@webpack-cli/configtest": "^1.2.0", |
|
3840 |
- "@webpack-cli/info": "^1.5.0", |
|
3841 |
- "@webpack-cli/serve": "^1.7.0", |
|
3850 |
+ "@webpack-cli/configtest": "^2.1.1", |
|
3851 |
+ "@webpack-cli/info": "^2.0.2", |
|
3852 |
+ "@webpack-cli/serve": "^2.0.5", |
|
3842 | 3853 |
"colorette": "^2.0.14", |
3843 |
- "commander": "^7.0.0", |
|
3854 |
+ "commander": "^10.0.1", |
|
3844 | 3855 |
"cross-spawn": "^7.0.3", |
3856 |
+ "envinfo": "^7.7.3", |
|
3845 | 3857 |
"fastest-levenshtein": "^1.0.12", |
3846 | 3858 |
"import-local": "^3.0.2", |
3847 |
- "interpret": "^2.2.0", |
|
3848 |
- "rechoir": "^0.7.0", |
|
3859 |
+ "interpret": "^3.1.1", |
|
3860 |
+ "rechoir": "^0.8.0", |
|
3849 | 3861 |
"webpack-merge": "^5.7.3" |
3850 | 3862 |
}, |
3851 | 3863 |
"bin": { |
3852 | 3864 |
"webpack-cli": "bin/cli.js" |
3853 | 3865 |
}, |
3854 | 3866 |
"engines": { |
3855 |
- "node": ">=10.13.0" |
|
3867 |
+ "node": ">=14.15.0" |
|
3856 | 3868 |
}, |
3857 | 3869 |
"funding": { |
3858 | 3870 |
"type": "opencollective", |
3859 | 3871 |
"url": "https://opencollective.com/webpack" |
3860 | 3872 |
}, |
3861 | 3873 |
"peerDependencies": { |
3862 |
- "webpack": "4.x.x || 5.x.x" |
|
3874 |
+ "webpack": "5.x.x" |
|
3863 | 3875 |
}, |
3864 | 3876 |
"peerDependenciesMeta": { |
3865 | 3877 |
"@webpack-cli/generators": { |
3866 |
- "optional": true |
|
3867 |
- }, |
|
3868 |
- "@webpack-cli/migrate": { |
|
3869 | 3878 |
"optional": true |
3870 | 3879 |
}, |
3871 | 3880 |
"webpack-bundle-analyzer": { |
... | ... | @@ -3877,18 +3886,19 @@ |
3877 | 3886 |
} |
3878 | 3887 |
}, |
3879 | 3888 |
"node_modules/webpack-cli/node_modules/commander": { |
3880 |
- "version": "7.2.0", |
|
3881 |
- "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", |
|
3882 |
- "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", |
|
3883 |
- "license": "MIT", |
|
3889 |
+ "version": "10.0.1", |
|
3890 |
+ "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", |
|
3891 |
+ "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", |
|
3892 |
+ "dev": true, |
|
3884 | 3893 |
"engines": { |
3885 |
- "node": ">= 10" |
|
3894 |
+ "node": ">=14" |
|
3886 | 3895 |
} |
3887 | 3896 |
}, |
3888 | 3897 |
"node_modules/webpack-merge": { |
3889 | 3898 |
"version": "5.10.0", |
3890 | 3899 |
"resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", |
3891 | 3900 |
"integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", |
3901 |
+ "dev": true, |
|
3892 | 3902 |
"license": "MIT", |
3893 | 3903 |
"dependencies": { |
3894 | 3904 |
"clone-deep": "^4.0.1", |
... | ... | @@ -3930,6 +3940,7 @@ |
3930 | 3940 |
"version": "2.0.2", |
3931 | 3941 |
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", |
3932 | 3942 |
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", |
3943 |
+ "dev": true, |
|
3933 | 3944 |
"license": "ISC", |
3934 | 3945 |
"dependencies": { |
3935 | 3946 |
"isexe": "^2.0.0" |
... | ... | @@ -3945,6 +3956,7 @@ |
3945 | 3956 |
"version": "2.0.1", |
3946 | 3957 |
"resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", |
3947 | 3958 |
"integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", |
3959 |
+ "dev": true, |
|
3948 | 3960 |
"license": "MIT" |
3949 | 3961 |
}, |
3950 | 3962 |
"node_modules/wrappy": { |
--- package.json
+++ package.json
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 |
"@mdi/light-js": "^0.2.63", |
8 | 8 |
"axios": "^1.7.3", |
9 | 9 |
"babel-loader": "8.2.5", |
10 |
+ "compress.js": "^2.1.2", |
|
10 | 11 |
"css-loader": "6.7.1", |
11 | 12 |
"express": "^4.18.1", |
12 | 13 |
"express-http-proxy": "^2.0.0", |
... | ... | @@ -20,9 +21,7 @@ |
20 | 21 |
"vue-router": "4.1.5", |
21 | 22 |
"vue-style-loader": "4.1.3", |
22 | 23 |
"vue3-sfc-loader": "^0.8.4", |
23 |
- "vuex": "^4.1.0", |
|
24 |
- "webpack": "5.74.0", |
|
25 |
- "webpack-cli": "4.10.0" |
|
24 |
+ "vuex": "^4.1.0" |
|
26 | 25 |
}, |
27 | 26 |
"scripts": { |
28 | 27 |
"prod": "set NODE_ENV=production&&node ./server/modules/web/server.js", |
... | ... | @@ -33,5 +32,9 @@ |
33 | 32 |
"linux-dev": "export NODE_ENV=development&&node ./server/modules/web/server.js", |
34 | 33 |
"webpack-build": "webpack", |
35 | 34 |
"webpack-build-watch": "webpack --watch" |
35 |
+ }, |
|
36 |
+ "devDependencies": { |
|
37 |
+ "webpack": "^5.93.0", |
|
38 |
+ "webpack-cli": "^5.1.4" |
|
36 | 39 |
} |
37 | 40 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?