Junhyuyk Seo

Integrate server with apihandler

Showing 50 changed files with 1684 additions and 255 deletions
1 +node_modules
2 +npm-debug.log
...\ No newline at end of file ...\ No newline at end of file
1 +FROM node:14
2 +
3 +LABEL title="TFT-APIHandler"
4 +LABEL version="1.00"
5 +
6 +# set working directory
7 +WORKDIR /app
8 +
9 +# install modules and dependencies
10 +COPY package*.json ./
11 +RUN npm install
12 +
13 +# copy source codes
14 +COPY ./ ./
15 +
16 +#start application
17 +CMD [ "node", "server.js" ]
...\ No newline at end of file ...\ No newline at end of file
1 +exports.COORDINATES = {
2 + "서울특별시" : {
3 + "종로구" : [60, 127],
4 + "중구" : [60, 127],
5 + "용산구" : [60, 126],
6 + "성동구" : [61, 127],
7 + "광진구" : [62, 126],
8 + "동대문구" : [61, 127],
9 + "중랑구" : [62, 128],
10 + "성북구" : [61, 127],
11 + "강북구" : [61, 128],
12 + "도봉구" : [61, 129],
13 + "노원구" : [61, 129],
14 + "은평구" : [59, 127],
15 + "서대문구" : [59, 127],
16 + "마포구" : [59, 127],
17 + "양천구" : [58, 126],
18 + "강서구" : [58, 126],
19 + "구로구" : [58, 125],
20 + "금천구" : [59, 124],
21 + "영등포구" : [58, 126],
22 + "동작구" : [59, 125],
23 + "관악구" : [59, 125],
24 + "서초구" : [61, 125],
25 + "강남구" : [61, 126],
26 + "송파구" : [62, 126],
27 + "강동구" : [62, 126]
28 + },
29 + "부산광역시" : {
30 + "중구" : [97, 74],
31 + "서구" : [97, 74],
32 + "동구" : [98, 75],
33 + "영도구" : [98, 74],
34 + "부산진구" : [97, 75],
35 + "동래구" : [98, 76],
36 + "남구" : [98, 75],
37 + "북구" : [96, 76],
38 + "해운대구" : [99, 75],
39 + "사하구" : [96, 74],
40 + "금정구" : [98, 77],
41 + "강서구" : [96, 76],
42 + "연제구" : [98, 76],
43 + "수영구" : [99, 75],
44 + "사상구" : [96, 75],
45 + "기장군" : [100, 77]
46 + },
47 + "대구광역시" : {
48 + "중구" : [89, 90],
49 + "동구" : [90, 91],
50 + "서구" : [88, 90],
51 + "남구" : [89, 90],
52 + "북구" : [89, 91],
53 + "수성구" : [89, 90],
54 + "달서구" : [88, 90],
55 + "달성군" : [86, 88]
56 + },
57 + "인천광역시" : {
58 + "중구" : [54, 125],
59 + "동구" : [54, 125],
60 + "미추홀구" : [54, 124],
61 + "연수구" : [55, 123],
62 + "남동구" : [56, 124],
63 + "부평구" : [55, 125],
64 + "계양구" : [56, 126],
65 + "서구" : [55, 126],
66 + "강화군" : [51, 130],
67 + "옹진군" : [54, 124]
68 + },
69 + "광주광역시" : {
70 + "동구" : [60, 74],
71 + "서구" : [59, 74],
72 + "남구" : [59, 73],
73 + "북구" : [59, 75],
74 + "광산구" : [57, 74]
75 + },
76 + "대전광역시" : {
77 + "동구" : [68, 100],
78 + "중구" : [68, 100],
79 + "서구" : [67, 100],
80 + "유성구" : [67, 101],
81 + "대덕구" : [68, 100]
82 + },
83 + "울산광역시" : {
84 + "중구" : [102, 84],
85 + "남구" : [102, 84],
86 + "동구" : [104, 83],
87 + "북구" : [103, 85],
88 + "울주군" : [101, 84]
89 + },
90 + "세종특별자치시" : {
91 + "세종특별자치시": [66, 103]
92 + },
93 + "경기도" : {
94 + "수원시" : [61, 120],
95 + "성남시" : [63, 124],
96 + "의정부시" : [61, 130],
97 + "안양시" : [59, 123],
98 + "부천시" : [56, 125],
99 + "광명시" : [58, 125],
100 + "평택시" : [62, 114],
101 + "동두천시" : [61, 134],
102 + "안산시" : [58, 121],
103 + "고양시" : [57, 128],
104 + "과천시" : [60, 124],
105 + "구리시" : [62, 127],
106 + "남양주시" : [64, 128],
107 + "오산시" : [62, 118],
108 + "시흥시" : [57, 123],
109 + "군포시" : [59, 122],
110 + "의왕시" : [60, 122],
111 + "하남시" : [64, 126],
112 + "용인시" : [64, 119],
113 + "파주시" : [56, 131],
114 + "이천시" : [68, 121],
115 + "안성시" : [65, 115],
116 + "김포시" : [55, 128],
117 + "화성시" : [57, 119],
118 + "광주시" : [65, 123],
119 + "양주시" : [61, 131],
120 + "포천시" : [64, 134],
121 + "여주시" : [71, 121],
122 + "연천군" : [61, 138],
123 + "가평군" : [69, 133],
124 + "양평군" : [69, 125]
125 + },
126 + "강원도" : {
127 + "춘천시" : [73, 134],
128 + "원주시" : [76, 122],
129 + "강릉시" : [92, 131],
130 + "동해시" : [97, 127],
131 + "태백시" : [95, 119],
132 + "속초시" : [87, 141],
133 + "삼척시" : [98, 125],
134 + "홍천군" : [75, 130],
135 + "횡성군" : [77, 125],
136 + "영월군" : [86, 119],
137 + "평창군" : [84, 123],
138 + "정선군" : [89, 123],
139 + "철원군" : [65, 139],
140 + "화천군" : [72, 139],
141 + "양구군" : [77, 139],
142 + "인제군" : [80, 138],
143 + "고성군" : [85, 145],
144 + "양양군" : [88, 138]
145 + },
146 + "충청북도" : {
147 + "청주시" : [69, 106],
148 + "충주시" : [76, 114],
149 + "제천시" : [81, 118],
150 + "보은군" : [73, 103],
151 + "옥천군" : [71, 99],
152 + "영동군" : [74, 97],
153 + "증평군" : [71, 110],
154 + "진천군" : [68, 111],
155 + "괴산군" : [74, 111],
156 + "음성군" : [72, 113],
157 + "단양군" : [84, 115]
158 + },
159 + "충청남도" : {
160 + "천안시" : [63, 110],
161 + "공주시" : [63, 102],
162 + "보령시" : [54, 100],
163 + "아산시" : [60, 110],
164 + "서산시" : [51, 110],
165 + "논산시" : [62, 97],
166 + "계룡시" : [65, 99],
167 + "당진시" : [54, 112],
168 + "금산군" : [69, 95],
169 + "부여군" : [59, 99],
170 + "서천군" : [55, 94],
171 + "청양군" : [57, 103],
172 + "홍성군" : [55, 106],
173 + "예산군" : [58, 107],
174 + "태안군" : [48, 109]
175 + },
176 + "전라북도" : {
177 + "전주시" : [63, 89],
178 + "군산시" : [56, 92],
179 + "익산시" : [60, 91],
180 + "정읍시" : [58, 83],
181 + "남원시" : [68, 80],
182 + "김제시" : [59, 88],
183 + "완주군" : [63, 89],
184 + "진안군" : [68, 88],
185 + "무주군" : [72, 93],
186 + "장수군" : [70, 85],
187 + "임실군" : [66, 84],
188 + "순창군" : [63, 79],
189 + "고창군" : [56, 80],
190 + "부안군" : [56, 87]
191 + },
192 + "전라남도" : {
193 + "목포시" : [50, 67],
194 + "여수시" : [73, 66],
195 + "순천시" : [70, 70],
196 + "나주시" : [56, 71],
197 + "광양시" : [73, 70],
198 + "담양군" : [61, 78],
199 + "곡성군" : [66, 77],
200 + "구례군" : [69, 75],
201 + "고흥군" : [66, 62],
202 + "보성군" : [62, 66],
203 + "화순군" : [61, 72],
204 + "장흥군" : [59, 64],
205 + "강진군" : [57, 63],
206 + "해남군" : [54, 61],
207 + "영암군" : [56, 66],
208 + "무안군" : [52, 71],
209 + "함평군" : [52, 72],
210 + "영광군" : [52, 77],
211 + "장성군" : [57, 77],
212 + "완도군" : [57, 56],
213 + "진도군" : [48, 59],
214 + "신안군" : [50, 66]
215 + },
216 + "경상북도" : {
217 + "포항시" : [102, 94],
218 + "경주시" : [100, 91],
219 + "김천시" : [80, 96],
220 + "안동시" : [91, 106],
221 + "구미시" : [84, 96],
222 + "영주시" : [89, 111],
223 + "영천시" : [95, 93],
224 + "상주시" : [81, 102],
225 + "문경시" : [81, 106],
226 + "경산시" : [91, 90],
227 + "군위군" : [88, 99],
228 + "의성군" : [90, 101],
229 + "청송군" : [96, 103],
230 + "영양군" : [97, 108],
231 + "영덕군" : [102, 103],
232 + "청도군" : [91, 86],
233 + "고령군" : [83, 87],
234 + "성주군" : [83, 91],
235 + "칠곡군" : [85, 93],
236 + "예천군" : [86, 107],
237 + "봉화군" : [90, 113],
238 + "울진군" : [102, 115],
239 + "울릉군" : [127, 127]
240 + },
241 + "경상남도" : {
242 + "창원시" : [90, 77],
243 + "진주시" : [81, 75],
244 + "통영시" : [87, 68],
245 + "사천시" : [80, 71],
246 + "김해시" : [95, 77],
247 + "밀양시" : [92, 83],
248 + "거제시" : [90, 69],
249 + "양산시" : [97, 79],
250 + "의령군" : [83, 78],
251 + "함안군" : [86, 77],
252 + "창녕군" : [87, 83],
253 + "고성군" : [85, 71],
254 + "남해군" : [77, 68],
255 + "하동군" : [74, 73],
256 + "산청군" : [76, 80],
257 + "함양군" : [74, 82],
258 + "거창군" : [77, 86],
259 + "합천군" : [81, 84]
260 + },
261 + "제주특별자치도" : {
262 + "제주시" : [53, 38],
263 + "서귀포시" : [52, 33]
264 + }
265 +}
...\ No newline at end of file ...\ No newline at end of file
1 +const mongoose =require('mongoose');
2 +const { Schema } =mongoose;
3 +
4 +const festivalSchema = new Schema({
5 + title: String,
6 + addr: String,
7 + tel: String,
8 + contentid : Number,
9 + mapx : Number,
10 + mapy : Number,
11 + eventstartdate : String,
12 + eventenddate : String,
13 + overview : String,
14 + firstimage : String,
15 + homepage : String,
16 + weathers : String
17 + // weather : {
18 + // date1: { weather : String, temp : Number},
19 + // date2: { weather : String, temp : Number},
20 + // date3: { weather : String, temp : Number},
21 + // }
22 +},
23 +{
24 + versionKey: false
25 +});
26 +
27 +
28 +module.exports = mongoose.model('Festival',festivalSchema);
1 +{
2 + "name": "REST-API",
3 + "version": "1.0.0",
4 + "lockfileVersion": 1,
5 + "requires": true,
6 + "dependencies": {
7 + "@types/node": {
8 + "version": "16.11.9",
9 + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.9.tgz",
10 + "integrity": "sha512-MKmdASMf3LtPzwLyRrFjtFFZ48cMf8jmX5VRYrDQiJa8Ybu5VAmkqBWqKU8fdCwD8ysw4mQ9nrEHvzg6gunR7A=="
11 + },
12 + "@types/webidl-conversions": {
13 + "version": "6.1.1",
14 + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz",
15 + "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q=="
16 + },
17 + "@types/whatwg-url": {
18 + "version": "8.2.1",
19 + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz",
20 + "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==",
21 + "requires": {
22 + "@types/node": "*",
23 + "@types/webidl-conversions": "*"
24 + }
25 + },
26 + "ajv": {
27 + "version": "6.12.6",
28 + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
29 + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
30 + "requires": {
31 + "fast-deep-equal": "^3.1.1",
32 + "fast-json-stable-stringify": "^2.0.0",
33 + "json-schema-traverse": "^0.4.1",
34 + "uri-js": "^4.2.2"
35 + }
36 + },
37 + "asn1": {
38 + "version": "0.2.6",
39 + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",
40 + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",
41 + "requires": {
42 + "safer-buffer": "~2.1.0"
43 + }
44 + },
45 + "assert-plus": {
46 + "version": "1.0.0",
47 + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
48 + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
49 + },
50 + "asynckit": {
51 + "version": "0.4.0",
52 + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
53 + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
54 + },
55 + "aws-sign2": {
56 + "version": "0.7.0",
57 + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
58 + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
59 + },
60 + "aws4": {
61 + "version": "1.11.0",
62 + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz",
63 + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA=="
64 + },
65 + "base64-js": {
66 + "version": "1.5.1",
67 + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
68 + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
69 + },
70 + "bcrypt-pbkdf": {
71 + "version": "1.0.2",
72 + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
73 + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
74 + "requires": {
75 + "tweetnacl": "^0.14.3"
76 + }
77 + },
78 + "bson": {
79 + "version": "4.5.4",
80 + "resolved": "https://registry.npmjs.org/bson/-/bson-4.5.4.tgz",
81 + "integrity": "sha512-wIt0bPACnx8Ju9r6IsS2wVtGDHBr9Dxb+U29A1YED2pu8XOhS8aKjOnLZ8sxyXkPwanoK7iWWVhS1+coxde6xA==",
82 + "requires": {
83 + "buffer": "^5.6.0"
84 + }
85 + },
86 + "buffer": {
87 + "version": "5.7.1",
88 + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
89 + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
90 + "requires": {
91 + "base64-js": "^1.3.1",
92 + "ieee754": "^1.1.13"
93 + }
94 + },
95 + "caseless": {
96 + "version": "0.12.0",
97 + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
98 + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
99 + },
100 + "combined-stream": {
101 + "version": "1.0.8",
102 + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
103 + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
104 + "requires": {
105 + "delayed-stream": "~1.0.0"
106 + }
107 + },
108 + "core-util-is": {
109 + "version": "1.0.2",
110 + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
111 + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
112 + },
113 + "dashdash": {
114 + "version": "1.14.1",
115 + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
116 + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
117 + "requires": {
118 + "assert-plus": "^1.0.0"
119 + }
120 + },
121 + "delayed-stream": {
122 + "version": "1.0.0",
123 + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
124 + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
125 + },
126 + "denque": {
127 + "version": "2.0.1",
128 + "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz",
129 + "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ=="
130 + },
131 + "dotenv": {
132 + "version": "10.0.0",
133 + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz",
134 + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q=="
135 + },
136 + "ecc-jsbn": {
137 + "version": "0.1.2",
138 + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
139 + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
140 + "requires": {
141 + "jsbn": "~0.1.0",
142 + "safer-buffer": "^2.1.0"
143 + }
144 + },
145 + "extend": {
146 + "version": "3.0.2",
147 + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
148 + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
149 + },
150 + "extsprintf": {
151 + "version": "1.3.0",
152 + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
153 + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
154 + },
155 + "fast-deep-equal": {
156 + "version": "3.1.3",
157 + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
158 + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
159 + },
160 + "fast-json-stable-stringify": {
161 + "version": "2.1.0",
162 + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
163 + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
164 + },
165 + "forever-agent": {
166 + "version": "0.6.1",
167 + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
168 + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
169 + },
170 + "form-data": {
171 + "version": "2.3.3",
172 + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
173 + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
174 + "requires": {
175 + "asynckit": "^0.4.0",
176 + "combined-stream": "^1.0.6",
177 + "mime-types": "^2.1.12"
178 + }
179 + },
180 + "getpass": {
181 + "version": "0.1.7",
182 + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
183 + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
184 + "requires": {
185 + "assert-plus": "^1.0.0"
186 + }
187 + },
188 + "har-schema": {
189 + "version": "2.0.0",
190 + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
191 + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
192 + },
193 + "har-validator": {
194 + "version": "5.1.5",
195 + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
196 + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
197 + "requires": {
198 + "ajv": "^6.12.3",
199 + "har-schema": "^2.0.0"
200 + }
201 + },
202 + "http-signature": {
203 + "version": "1.2.0",
204 + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
205 + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
206 + "requires": {
207 + "assert-plus": "^1.0.0",
208 + "jsprim": "^1.2.2",
209 + "sshpk": "^1.7.0"
210 + }
211 + },
212 + "ieee754": {
213 + "version": "1.2.1",
214 + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
215 + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
216 + },
217 + "is-typedarray": {
218 + "version": "1.0.0",
219 + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
220 + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
221 + },
222 + "isstream": {
223 + "version": "0.1.2",
224 + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
225 + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
226 + },
227 + "jsbn": {
228 + "version": "0.1.1",
229 + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
230 + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
231 + },
232 + "json-schema": {
233 + "version": "0.2.3",
234 + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
235 + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
236 + },
237 + "json-schema-traverse": {
238 + "version": "0.4.1",
239 + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
240 + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
241 + },
242 + "json-stringify-safe": {
243 + "version": "5.0.1",
244 + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
245 + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
246 + },
247 + "jsprim": {
248 + "version": "1.4.1",
249 + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
250 + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
251 + "requires": {
252 + "assert-plus": "1.0.0",
253 + "extsprintf": "1.3.0",
254 + "json-schema": "0.2.3",
255 + "verror": "1.10.0"
256 + }
257 + },
258 + "kareem": {
259 + "version": "2.3.2",
260 + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz",
261 + "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ=="
262 + },
263 + "lodash": {
264 + "version": "4.17.21",
265 + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
266 + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
267 + },
268 + "memory-pager": {
269 + "version": "1.5.0",
270 + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
271 + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
272 + "optional": true
273 + },
274 + "mime-db": {
275 + "version": "1.51.0",
276 + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz",
277 + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g=="
278 + },
279 + "mime-types": {
280 + "version": "2.1.34",
281 + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz",
282 + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",
283 + "requires": {
284 + "mime-db": "1.51.0"
285 + }
286 + },
287 + "mongodb": {
288 + "version": "4.1.4",
289 + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.1.4.tgz",
290 + "integrity": "sha512-Cv/sk8on/tpvvqbEvR1h03mdyNdyvvO+WhtFlL4jrZ+DSsN/oSQHVqmJQI/sBCqqbOArFcYCAYDfyzqFwV4GSQ==",
291 + "requires": {
292 + "bson": "^4.5.4",
293 + "denque": "^2.0.1",
294 + "mongodb-connection-string-url": "^2.1.0",
295 + "saslprep": "^1.0.3"
296 + }
297 + },
298 + "mongodb-connection-string-url": {
299 + "version": "2.2.0",
300 + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.2.0.tgz",
301 + "integrity": "sha512-U0cDxLUrQrl7DZA828CA+o69EuWPWEJTwdMPozyd7cy/dbtncUZczMw7wRHcwMD7oKOn0NM2tF9jdf5FFVW9CA==",
302 + "requires": {
303 + "@types/whatwg-url": "^8.2.1",
304 + "whatwg-url": "^11.0.0"
305 + }
306 + },
307 + "mongoose": {
308 + "version": "6.0.13",
309 + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.13.tgz",
310 + "integrity": "sha512-/M/YKgx23fCX+j0lwObaHbCibXnMjyWeQrXZf0WaQeS/hL86wQVSmaOxh+kZXfyLOUr+vT2Hl44o50GZHUrKWw==",
311 + "requires": {
312 + "bson": "^4.2.2",
313 + "kareem": "2.3.2",
314 + "mongodb": "4.1.4",
315 + "mpath": "0.8.4",
316 + "mquery": "4.0.0",
317 + "ms": "2.1.2",
318 + "regexp-clone": "1.0.0",
319 + "sift": "13.5.2",
320 + "sliced": "1.0.1"
321 + },
322 + "dependencies": {
323 + "ms": {
324 + "version": "2.1.2",
325 + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
326 + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
327 + }
328 + }
329 + },
330 + "mpath": {
331 + "version": "0.8.4",
332 + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.4.tgz",
333 + "integrity": "sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g=="
334 + },
335 + "mquery": {
336 + "version": "4.0.0",
337 + "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.0.tgz",
338 + "integrity": "sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==",
339 + "requires": {
340 + "debug": "4.x",
341 + "regexp-clone": "^1.0.0",
342 + "sliced": "1.0.1"
343 + },
344 + "dependencies": {
345 + "debug": {
346 + "version": "4.3.2",
347 + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
348 + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
349 + "requires": {
350 + "ms": "2.1.2"
351 + }
352 + },
353 + "ms": {
354 + "version": "2.1.2",
355 + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
356 + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
357 + }
358 + }
359 + },
360 + "oauth-sign": {
361 + "version": "0.9.0",
362 + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
363 + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
364 + },
365 + "performance-now": {
366 + "version": "2.1.0",
367 + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
368 + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
369 + },
370 + "psl": {
371 + "version": "1.8.0",
372 + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
373 + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="
374 + },
375 + "punycode": {
376 + "version": "2.1.1",
377 + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
378 + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
379 + },
380 + "qs": {
381 + "version": "6.5.2",
382 + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
383 + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
384 + },
385 + "regexp-clone": {
386 + "version": "1.0.0",
387 + "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz",
388 + "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw=="
389 + },
390 + "request": {
391 + "version": "2.88.2",
392 + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
393 + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
394 + "requires": {
395 + "aws-sign2": "~0.7.0",
396 + "aws4": "^1.8.0",
397 + "caseless": "~0.12.0",
398 + "combined-stream": "~1.0.6",
399 + "extend": "~3.0.2",
400 + "forever-agent": "~0.6.1",
401 + "form-data": "~2.3.2",
402 + "har-validator": "~5.1.3",
403 + "http-signature": "~1.2.0",
404 + "is-typedarray": "~1.0.0",
405 + "isstream": "~0.1.2",
406 + "json-stringify-safe": "~5.0.1",
407 + "mime-types": "~2.1.19",
408 + "oauth-sign": "~0.9.0",
409 + "performance-now": "^2.1.0",
410 + "qs": "~6.5.2",
411 + "safe-buffer": "^5.1.2",
412 + "tough-cookie": "~2.5.0",
413 + "tunnel-agent": "^0.6.0",
414 + "uuid": "^3.3.2"
415 + }
416 + },
417 + "request-promise-core": {
418 + "version": "1.1.4",
419 + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz",
420 + "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==",
421 + "requires": {
422 + "lodash": "^4.17.19"
423 + }
424 + },
425 + "request-promise-native": {
426 + "version": "1.0.9",
427 + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz",
428 + "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==",
429 + "requires": {
430 + "request-promise-core": "1.1.4",
431 + "stealthy-require": "^1.1.1",
432 + "tough-cookie": "^2.3.3"
433 + }
434 + },
435 + "safe-buffer": {
436 + "version": "5.2.1",
437 + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
438 + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
439 + },
440 + "safer-buffer": {
441 + "version": "2.1.2",
442 + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
443 + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
444 + },
445 + "saslprep": {
446 + "version": "1.0.3",
447 + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
448 + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
449 + "optional": true,
450 + "requires": {
451 + "sparse-bitfield": "^3.0.3"
452 + }
453 + },
454 + "sift": {
455 + "version": "13.5.2",
456 + "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz",
457 + "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA=="
458 + },
459 + "sliced": {
460 + "version": "1.0.1",
461 + "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz",
462 + "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
463 + },
464 + "sparse-bitfield": {
465 + "version": "3.0.3",
466 + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
467 + "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=",
468 + "optional": true,
469 + "requires": {
470 + "memory-pager": "^1.0.2"
471 + }
472 + },
473 + "sshpk": {
474 + "version": "1.16.1",
475 + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
476 + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
477 + "requires": {
478 + "asn1": "~0.2.3",
479 + "assert-plus": "^1.0.0",
480 + "bcrypt-pbkdf": "^1.0.0",
481 + "dashdash": "^1.12.0",
482 + "ecc-jsbn": "~0.1.1",
483 + "getpass": "^0.1.1",
484 + "jsbn": "~0.1.0",
485 + "safer-buffer": "^2.0.2",
486 + "tweetnacl": "~0.14.0"
487 + }
488 + },
489 + "stealthy-require": {
490 + "version": "1.1.1",
491 + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz",
492 + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks="
493 + },
494 + "tough-cookie": {
495 + "version": "2.5.0",
496 + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
497 + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
498 + "requires": {
499 + "psl": "^1.1.28",
500 + "punycode": "^2.1.1"
501 + }
502 + },
503 + "tr46": {
504 + "version": "3.0.0",
505 + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
506 + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
507 + "requires": {
508 + "punycode": "^2.1.1"
509 + }
510 + },
511 + "tunnel-agent": {
512 + "version": "0.6.0",
513 + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
514 + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
515 + "requires": {
516 + "safe-buffer": "^5.0.1"
517 + }
518 + },
519 + "tweetnacl": {
520 + "version": "0.14.5",
521 + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
522 + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
523 + },
524 + "uri-js": {
525 + "version": "4.4.1",
526 + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
527 + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
528 + "requires": {
529 + "punycode": "^2.1.0"
530 + }
531 + },
532 + "uuid": {
533 + "version": "3.4.0",
534 + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
535 + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
536 + },
537 + "verror": {
538 + "version": "1.10.0",
539 + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
540 + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
541 + "requires": {
542 + "assert-plus": "^1.0.0",
543 + "core-util-is": "1.0.2",
544 + "extsprintf": "^1.2.0"
545 + }
546 + },
547 + "webidl-conversions": {
548 + "version": "7.0.0",
549 + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
550 + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="
551 + },
552 + "whatwg-url": {
553 + "version": "11.0.0",
554 + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
555 + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
556 + "requires": {
557 + "tr46": "^3.0.0",
558 + "webidl-conversions": "^7.0.0"
559 + }
560 + }
561 + }
562 +}
1 +{
2 + "name": "REST-API",
3 + "version": "1.0.0",
4 + "description": "",
5 + "main": "index.js",
6 + "scripts": {
7 + "test": "echo \"Error: no test specified\" && exit 1"
8 + },
9 + "keywords": [],
10 + "author": "",
11 + "license": "ISC",
12 + "dependencies": {
13 + "dotenv": "^10.0.0",
14 + "mongoose": "^6.0.13",
15 + "request": "^2.88.2",
16 + "request-promise-native": "^1.0.9"
17 + }
18 +}
1 +const mongoose = require('mongoose');
2 +// const db = require('mongodb');
3 +const Festival = require('./models/Festival');
4 +const request = require('request-promise-native');
5 +
6 +const url = 'mongodb://mongo:27017';
7 +
8 +const ServiceKey = '3zrQDvoNwUV9Se%2BHZv8DjCCNWRGJisQ7jjHP6LsbJqoRQ2cJpQKrHUGC4uslgXSVO9Dzb06BSC3kp9BunvIPSw%3D%3D';
9 +const ServiceKey2 ='%2FGjtI8kwZeJTzJm%2BxUxz%2Bjh15wnmV3rwFuRvrq3oRSqyklfiZfbUaqmsG0McVPJMdXSUYetGaCXl0ZkbfMI0BQ%3D%3D'
10 +const ServiceKey3 ='%2FsBWti235XX%2Fg1%2FqBZfiNQ6A%2BJmF3WL%2FboaNqJH4v3eWic59SiHc6W5vgZKU7Hjocj%2BAntIqHfhXOpmE5CpAFw%3D%3D'
11 +
12 +const WeatherServiceKey = '2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D';
13 +const COORDINATES = require('./coordinates')['COORDINATES'];
14 +const DISTRICT = [
15 + "서울특별시", "부산광역시", "울산광역시", "대구광역시", "대전광역시",
16 + "인천광역시", "광주광역시", "세종특별자치시", "제주특별자치도",
17 + "경기도", "강원도", "충청북도", "충청남도", "경상북도",
18 + "경상남도", "전라북도", "전라남도"
19 +]
20 +const WEATHERTYPE = [
21 + '맑음', '비', '비/눈', '눈', '소나기'
22 +];
23 +
24 +function parseDistrict(addr) {
25 + const words = addr.split(" ");
26 + if( DISTRICT.includes(words[0]) ) {
27 + return [words[0], words[1]];
28 + } else {
29 + return [];
30 + }
31 +}
32 +function leftPad(value) { if (value >= 10) { return value; } return `0${value}`; }
33 +
34 +writeDB()
35 +setInterval(() => {
36 + writeDB();
37 +}, 86400000);
38 +
39 +function writeDB() {
40 +
41 +var today = new Date();
42 +var yesterday = new Date();
43 +yesterday.setDate(yesterday.getDate() - 1);
44 +let todayString = "" + (today.getFullYear())+leftPad(today.getMonth()+1)+leftPad(today.getDate());
45 +let yesterdayString = "" + (yesterday.getFullYear())+leftPad(yesterday.getMonth()+1)+leftPad(yesterday.getDate()-1);
46 +var todayTime = leftPad(today.getHours()) + "00";
47 +
48 +mongoose.connect(url,(err)=>{
49 + if(err) {
50 + console.log(err);
51 + } else {
52 + mongoose.connection.db.dropCollection('festivals',function(err, result) {
53 + if(err) {
54 + console.log(err + "Reset Failed!");
55 + } else {
56 + console.log(result + "Reset Success!");
57 +
58 + for(let i = 1; i <= 5; i++) {
59 + let options = {
60 + 'method': 'GET',
61 + 'url' : 'http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList'
62 + + '?ServiceKey=' + ServiceKey2
63 + + '&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=C&numOfRows=12'
64 + + '&pageNo='+ i
65 + + '&_type=json',
66 +
67 + 'headers': {}
68 + };
69 +
70 + request(options, async function (error, response, body) {
71 + if (error) {
72 + throw new Error(error);
73 + }
74 + let info = JSON.parse(body);
75 +
76 + let items = info['response']['body']['items']['item'];
77 + for(item of items) {
78 + let Info = {
79 + 'public': {
80 + 'method': 'GET',
81 + 'url': 'http://api.visitkorea.or.kr/openapi/service/rest/KorService/detailCommon?'
82 + + 'ServiceKey=' + ServiceKey2
83 + + '&contentTypeId=' + '15'
84 + + '&contentId=' + item['contentid']
85 + + '&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&defaultYN=Y&firstImageYN=Y&areacodeYN=Y&catcodeYN=Y&addrinfoYN=Y&mapinfoYN=Y&overviewYN=Y&transGuideYN=Y&_type=json',
86 + 'headers': {}
87 + },
88 + 'detail': {
89 + 'method': 'GET',
90 + 'url': 'http://api.visitkorea.or.kr/openapi/service/rest/KorService/detailIntro?'
91 + + 'ServiceKey=' + ServiceKey2
92 + + '&contentTypeId=' + '15'
93 + + '&contentId=' + item['contentid']
94 + + '&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&introYN=Y&_type=json',
95 + 'headers': {}
96 + },
97 + 'weather': {
98 + 'method': 'GET',
99 + 'url': '',
100 + 'headers': {}
101 + }
102 + };
103 + await request(Info.public, async function (error, response, body) {
104 + if (error) {
105 + throw new Error(error);
106 + }
107 +
108 + let toSave = true;
109 + let pinfo = JSON.parse(body);
110 + let distriction = parseDistrict(pinfo['response']['body']['items']['item']['addr1']);
111 + if (distriction.length == 0) toSave = false;
112 +
113 + const newFestival = new Festival();
114 + newFestival.title = pinfo['response']['body']['items']['item']['title'];
115 + newFestival.contentid = pinfo['response']['body']['items']['item']['contentid'];
116 + newFestival.addr = pinfo['response']['body']['items']['item']['addr1'];
117 + newFestival.tel = pinfo['response']['body']['items']['item']['tel'];
118 + newFestival.mapx = pinfo['response']['body']['items']['item']['mapx'];
119 + newFestival.mapy = pinfo['response']['body']['items']['item']['mapy'];
120 + newFestival.overview= pinfo['response']['body']['items']['item']['overview'];
121 + newFestival.firstimage = pinfo['response']['body']['items']['item']['firstimage'];
122 + newFestival.homepage = pinfo ['response']['body']['items']['item']['homepage'];
123 +
124 +
125 + await request(Info.detail, function (error, response, body) {
126 + if (error) {
127 + throw new Error(error);
128 + }
129 + let dinfo = JSON.parse(body);
130 + newFestival.eventstartdate = dinfo['response']['body']['items']['item']['eventstartdate'];
131 + newFestival.eventenddate = dinfo['response']['body']['items']['item']['eventenddate'];
132 +
133 + if (newFestival.eventenddate < todayString) toSave = false;
134 + });
135 +
136 + let [nx, ny] = COORDINATES[distriction[0]][distriction[1]];
137 + let curDate = ('0500' < todayTime ? todayString : yesterdayString);
138 +
139 + Info.weather.url = 'http://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getVilageFcst?'
140 + + 'serviceKey=' + WeatherServiceKey
141 + + '&pageNo=' + '1'
142 + + '&numOfRows=' + '2000'
143 + + '&dataType=' + 'JSON'
144 + + '&base_date=' + curDate
145 + + '&base_time=' + '0500'
146 + + '&nx=' + nx
147 + + '&ny=' + ny;
148 +
149 + await request(Info.weather, function (error, response, body) {
150 + if (error) {
151 + throw new Error(error);
152 + }
153 + let winfo = JSON.parse(body);
154 +
155 + let weathers = {};
156 + for( let item of winfo['response']['body']['items']['item'] ) {
157 + if(item['fcstTime'] === '1200') { // 최고기온 + 날씨
158 + let fcstDate = item['fcstDate'];
159 + if(!weathers[fcstDate]) weathers[fcstDate] = {};
160 + if(item['category']=='TMP') {
161 + weathers[fcstDate]['temp'] = item['fcstValue'];
162 + } else if(item['category']=='PTY') {
163 + weathers[fcstDate]['weather'] = WEATHERTYPE[item['fcstValue']];
164 + }
165 + }
166 + }
167 + newFestival.weathers = JSON.stringify(weathers);
168 + });
169 +
170 + if (toSave)
171 + await newFestival.save().then((festival) => {
172 + console.log(festival, "Save success!");
173 + });
174 + })
175 + }
176 + });
177 + }
178 + }
179 + });
180 + }
181 + });
182 +}
1 +node_modules
2 +npm-debug.log
...\ No newline at end of file ...\ No newline at end of file
1 FROM node:14 1 FROM node:14
2 2
3 LABEL title="TFT-Webserver" 3 LABEL title="TFT-Webserver"
4 -LABEL version="1.01" 4 +LABEL version="1.00"
5 5
6 # set working directory 6 # set working directory
7 WORKDIR /app 7 WORKDIR /app
......
...@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ...@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 OTHER DEALINGS IN THE SOFTWARE. 22 OTHER DEALINGS IN THE SOFTWARE.
23 23
24 -For more information, please refer to <https://unlicense.org> 24 +For more information, please refer to <https://unlicense.org>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -42,6 +42,20 @@ ...@@ -42,6 +42,20 @@
42 "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz", 42 "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
43 "integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==" 43 "integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
44 }, 44 },
45 + "@types/webidl-conversions": {
46 + "version": "6.1.1",
47 + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz",
48 + "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q=="
49 + },
50 + "@types/whatwg-url": {
51 + "version": "8.2.1",
52 + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz",
53 + "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==",
54 + "requires": {
55 + "@types/node": "*",
56 + "@types/webidl-conversions": "*"
57 + }
58 + },
45 "@webassemblyjs/ast": { 59 "@webassemblyjs/ast": {
46 "version": "1.9.0", 60 "version": "1.9.0",
47 "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz", 61 "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
...@@ -505,8 +519,7 @@ ...@@ -505,8 +519,7 @@
505 "base64-js": { 519 "base64-js": {
506 "version": "1.3.1", 520 "version": "1.3.1",
507 "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", 521 "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
508 - "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", 522 + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
509 - "dev": true
510 }, 523 },
511 "base64id": { 524 "base64id": {
512 "version": "2.0.0", 525 "version": "2.0.0",
...@@ -776,6 +789,25 @@ ...@@ -776,6 +789,25 @@
776 "pako": "~1.0.5" 789 "pako": "~1.0.5"
777 } 790 }
778 }, 791 },
792 + "bson": {
793 + "version": "4.6.0",
794 + "resolved": "https://registry.npmjs.org/bson/-/bson-4.6.0.tgz",
795 + "integrity": "sha512-8jw1NU1hglS+Da1jDOUYuNcBJ4cNHCFIqzlwoFNnsTOg2R/ox0aTYcTiBN4dzRa9q7Cvy6XErh3L8ReTEb9AQQ==",
796 + "requires": {
797 + "buffer": "^5.6.0"
798 + },
799 + "dependencies": {
800 + "buffer": {
801 + "version": "5.7.1",
802 + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
803 + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
804 + "requires": {
805 + "base64-js": "^1.3.1",
806 + "ieee754": "^1.1.13"
807 + }
808 + }
809 + }
810 + },
779 "buffer": { 811 "buffer": {
780 "version": "4.9.2", 812 "version": "4.9.2",
781 "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", 813 "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz",
...@@ -1375,6 +1407,11 @@ ...@@ -1375,6 +1407,11 @@
1375 } 1407 }
1376 } 1408 }
1377 }, 1409 },
1410 + "denque": {
1411 + "version": "2.0.1",
1412 + "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz",
1413 + "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ=="
1414 + },
1378 "depd": { 1415 "depd": {
1379 "version": "1.1.2", 1416 "version": "1.1.2",
1380 "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 1417 "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
...@@ -2326,8 +2363,7 @@ ...@@ -2326,8 +2363,7 @@
2326 "ieee754": { 2363 "ieee754": {
2327 "version": "1.1.13", 2364 "version": "1.1.13",
2328 "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", 2365 "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz",
2329 - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", 2366 + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg=="
2330 - "dev": true
2331 }, 2367 },
2332 "iferr": { 2368 "iferr": {
2333 "version": "0.1.5", 2369 "version": "0.1.5",
...@@ -2796,6 +2832,12 @@ ...@@ -2796,6 +2832,12 @@
2796 "readable-stream": "^2.0.1" 2832 "readable-stream": "^2.0.1"
2797 } 2833 }
2798 }, 2834 },
2835 + "memory-pager": {
2836 + "version": "1.5.0",
2837 + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
2838 + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
2839 + "optional": true
2840 + },
2799 "merge-descriptors": { 2841 "merge-descriptors": {
2800 "version": "1.0.1", 2842 "version": "1.0.1",
2801 "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 2843 "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
...@@ -2939,6 +2981,26 @@ ...@@ -2939,6 +2981,26 @@
2939 "minimist": "^1.2.5" 2981 "minimist": "^1.2.5"
2940 } 2982 }
2941 }, 2983 },
2984 + "mongodb": {
2985 + "version": "4.2.0",
2986 + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.2.0.tgz",
2987 + "integrity": "sha512-lg3MJ9dAKxhogRnIB6/j63gfD7JryZwRC0nNzZ82RhENw4nCmscZVqRfOmNzTvSNndJx9ZhxZpm9JvnKuH/GTA==",
2988 + "requires": {
2989 + "bson": "^4.5.4",
2990 + "denque": "^2.0.1",
2991 + "mongodb-connection-string-url": "^2.2.0",
2992 + "saslprep": "^1.0.3"
2993 + }
2994 + },
2995 + "mongodb-connection-string-url": {
2996 + "version": "2.2.0",
2997 + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.2.0.tgz",
2998 + "integrity": "sha512-U0cDxLUrQrl7DZA828CA+o69EuWPWEJTwdMPozyd7cy/dbtncUZczMw7wRHcwMD7oKOn0NM2tF9jdf5FFVW9CA==",
2999 + "requires": {
3000 + "@types/whatwg-url": "^8.2.1",
3001 + "whatwg-url": "^11.0.0"
3002 + }
3003 + },
2942 "move-concurrently": { 3004 "move-concurrently": {
2943 "version": "1.0.1", 3005 "version": "1.0.1",
2944 "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", 3006 "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
...@@ -3557,8 +3619,7 @@ ...@@ -3557,8 +3619,7 @@
3557 "punycode": { 3619 "punycode": {
3558 "version": "2.1.1", 3620 "version": "2.1.1",
3559 "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 3621 "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
3560 - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 3622 + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
3561 - "dev": true
3562 }, 3623 },
3563 "pupa": { 3624 "pupa": {
3564 "version": "2.1.1", 3625 "version": "2.1.1",
...@@ -3816,6 +3877,15 @@ ...@@ -3816,6 +3877,15 @@
3816 "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 3877 "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
3817 "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 3878 "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
3818 }, 3879 },
3880 + "saslprep": {
3881 + "version": "1.0.3",
3882 + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
3883 + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
3884 + "optional": true,
3885 + "requires": {
3886 + "sparse-bitfield": "^3.0.3"
3887 + }
3888 + },
3819 "schema-utils": { 3889 "schema-utils": {
3820 "version": "2.6.5", 3890 "version": "2.6.5",
3821 "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.5.tgz", 3891 "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.5.tgz",
...@@ -4205,6 +4275,15 @@ ...@@ -4205,6 +4275,15 @@
4205 "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", 4275 "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
4206 "dev": true 4276 "dev": true
4207 }, 4277 },
4278 + "sparse-bitfield": {
4279 + "version": "3.0.3",
4280 + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
4281 + "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=",
4282 + "optional": true,
4283 + "requires": {
4284 + "memory-pager": "^1.0.2"
4285 + }
4286 + },
4208 "split-string": { 4287 "split-string": {
4209 "version": "3.1.0", 4288 "version": "3.1.0",
4210 "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", 4289 "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",
...@@ -4501,6 +4580,14 @@ ...@@ -4501,6 +4580,14 @@
4501 "nopt": "~1.0.10" 4580 "nopt": "~1.0.10"
4502 } 4581 }
4503 }, 4582 },
4583 + "tr46": {
4584 + "version": "3.0.0",
4585 + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
4586 + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
4587 + "requires": {
4588 + "punycode": "^2.1.1"
4589 + }
4590 + },
4504 "tslib": { 4591 "tslib": {
4505 "version": "1.11.1", 4592 "version": "1.11.1",
4506 "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", 4593 "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz",
...@@ -4940,6 +5027,11 @@ ...@@ -4940,6 +5027,11 @@
4940 } 5027 }
4941 } 5028 }
4942 }, 5029 },
5030 + "webidl-conversions": {
5031 + "version": "7.0.0",
5032 + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
5033 + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="
5034 + },
4943 "webpack": { 5035 "webpack": {
4944 "version": "4.42.1", 5036 "version": "4.42.1",
4945 "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.1.tgz", 5037 "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.1.tgz",
...@@ -5092,6 +5184,15 @@ ...@@ -5092,6 +5184,15 @@
5092 "source-map": "~0.6.1" 5184 "source-map": "~0.6.1"
5093 } 5185 }
5094 }, 5186 },
5187 + "whatwg-url": {
5188 + "version": "11.0.0",
5189 + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
5190 + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
5191 + "requires": {
5192 + "tr46": "^3.0.0",
5193 + "webidl-conversions": "^7.0.0"
5194 + }
5195 + },
5095 "which": { 5196 "which": {
5096 "version": "2.0.2", 5197 "version": "2.0.2",
5097 "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 5198 "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
23 "dependencies": { 23 "dependencies": {
24 "express": "^4.17.1", 24 "express": "^4.17.1",
25 "jquery": "^3.6.0", 25 "jquery": "^3.6.0",
26 + "mongodb": "^4.2.0",
26 "nodemon": "^2.0.15", 27 "nodemon": "^2.0.15",
27 "socket.io": "^4.3.2", 28 "socket.io": "^4.3.2",
28 "socket.io-client": "^4.3.2" 29 "socket.io-client": "^4.3.2"
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
97 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 97 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
98 exports = ___CSS_LOADER_API_IMPORT___(false); 98 exports = ___CSS_LOADER_API_IMPORT___(false);
99 // Module 99 // Module
100 -exports.push([module.i, "div.svelte-1rh62g1{text-align:left;box-sizing:border-box;display:block}body{padding:0;margin:0;align-items:center;align-content:center;text-align:center;justify-content:center}html{scroll-behavior:smooth}", ""]); 100 +exports.push([module.i, "div.svelte-1xd3gxl{text-align:left;box-sizing:border-box;display:block}body{padding:0;margin:0;align-items:center;align-content:center;text-align:center;justify-content:center}html{scroll-behavior:smooth}", ""]);
101 // Exports 101 // Exports
102 module.exports = exports; 102 module.exports = exports;
103 103
...@@ -115,7 +115,7 @@ module.exports = exports; ...@@ -115,7 +115,7 @@ module.exports = exports;
115 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 115 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
116 exports = ___CSS_LOADER_API_IMPORT___(false); 116 exports = ___CSS_LOADER_API_IMPORT___(false);
117 // Module 117 // Module
118 -exports.push([module.i, ".article.svelte-1q2xp92.svelte-1q2xp92{font-family:맑은고딕, Malgun Gothic, dotum, gulim, sans-serif;font-size:24pt;padding:10vw;text-align:center;display:flex}.wbg.svelte-1q2xp92.svelte-1q2xp92{background-color:#ffffff}.gbg.svelte-1q2xp92.svelte-1q2xp92{background-color:#edeff2}.article.svelte-1q2xp92 img.svelte-1q2xp92{display:inline-block;max-width:500px;width:20vw;margin-left:4vw;margin-right:4vw}.article.svelte-1q2xp92 .text.svelte-1q2xp92{display:inline-block;width:50vw}.contents.svelte-1q2xp92.svelte-1q2xp92{display:flex;align-items:center}", ""]); 118 +exports.push([module.i, ".article.svelte-90y9ti.svelte-90y9ti{font-family:맑은고딕, Malgun Gothic, dotum, gulim, sans-serif;font-size:24pt;padding:10vw;text-align:center;display:flex}.wbg.svelte-90y9ti.svelte-90y9ti{background-color:#ffffff}.gbg.svelte-90y9ti.svelte-90y9ti{background-color:#edeff2}.article.svelte-90y9ti img.svelte-90y9ti{display:inline-block;max-width:500px;width:20vw;margin-left:4vw;margin-right:4vw}.article.svelte-90y9ti .text.svelte-90y9ti{display:inline-block;width:50vw}.contents.svelte-90y9ti.svelte-90y9ti{display:flex;align-items:center}", ""]);
119 // Exports 119 // Exports
120 module.exports = exports; 120 module.exports = exports;
121 121
...@@ -133,7 +133,7 @@ module.exports = exports; ...@@ -133,7 +133,7 @@ module.exports = exports;
133 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 133 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
134 exports = ___CSS_LOADER_API_IMPORT___(false); 134 exports = ___CSS_LOADER_API_IMPORT___(false);
135 // Module 135 // Module
136 -exports.push([module.i, "#map_bg.svelte-9k0w06{box-sizing:border-box;justify-content:center;display:flex;height:100vh;background-color:#edeff2}#map.svelte-9k0w06{margin-top:50px;box-sizing:border-box;display:flex;height:80vh;width:60vw;background-color:#edeff2;border-radius:10px;border:1px solid black;box-shadow:0 10px 20px rgb(0 0 0 / 15%)}", ""]); 136 +exports.push([module.i, "#map_bg.svelte-d8mjr6{box-sizing:border-box;justify-content:center;display:flex;height:100vh;background-color:#edeff2}#map.svelte-d8mjr6{margin-top:50px;box-sizing:border-box;display:flex;height:80vh;width:60vw;background-color:#edeff2;border-radius:10px;border:1px solid black;box-shadow:0 10px 20px rgb(0 0 0 / 15%)}", ""]);
137 // Exports 137 // Exports
138 module.exports = exports; 138 module.exports = exports;
139 139
...@@ -151,7 +151,7 @@ module.exports = exports; ...@@ -151,7 +151,7 @@ module.exports = exports;
151 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 151 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
152 exports = ___CSS_LOADER_API_IMPORT___(false); 152 exports = ___CSS_LOADER_API_IMPORT___(false);
153 // Module 153 // Module
154 -exports.push([module.i, "nav.svelte-1yis6jl.svelte-1yis6jl{background-color:#edeff2;font-family:\"Helvetica Neue\", \"Helvetica\", \"Arial\", sans-serif;height:70px;top:0}.inner.svelte-1yis6jl.svelte-1yis6jl{max-width:700px;padding-left:10px;padding-right:10px;margin:auto;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:100%}.logo.svelte-1yis6jl img.svelte-1yis6jl{display:flex;width:120px;left:20px;top:15px;margin-right:400px}.navbar-list.svelte-1yis6jl.svelte-1yis6jl{display:flex;padding:0;width:100%;justify-content:space-between;margin:0}", ""]); 154 +exports.push([module.i, "nav.svelte-143b6al.svelte-143b6al{background-color:#edeff2;font-family:\"Helvetica Neue\", \"Helvetica\", \"Arial\", sans-serif;height:70px;top:0}.inner.svelte-143b6al.svelte-143b6al{max-width:700px;padding-left:10px;padding-right:10px;margin:auto;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:100%}.logo.svelte-143b6al img.svelte-143b6al{display:flex;width:120px;left:20px;top:15px;margin-right:400px}.navbar-list.svelte-143b6al.svelte-143b6al{display:flex;padding:0;width:100%;justify-content:space-between;margin:0}", ""]);
155 // Exports 155 // Exports
156 module.exports = exports; 156 module.exports = exports;
157 157
...@@ -169,7 +169,7 @@ module.exports = exports; ...@@ -169,7 +169,7 @@ module.exports = exports;
169 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 169 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
170 exports = ___CSS_LOADER_API_IMPORT___(false); 170 exports = ___CSS_LOADER_API_IMPORT___(false);
171 // Module 171 // Module
172 -exports.push([module.i, "li.svelte-1tp05za{display:flex;list-style-type:none;position:relative;margin-left:50px;height:45px;white-space:nowrap;align-items:center}li.svelte-1tp05za:before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px}a.svelte-1tp05za{color:#000000;text-decoration:none;display:inline-flex;padding:0 10px;font-size:20px}@media only screen and (max-width: 767px){a.svelte-1tp05za{display:none}}.onmouse.svelte-1tp05za{text-decoration:underline}", ""]); 172 +exports.push([module.i, "li.svelte-1nx14nx{display:flex;list-style-type:none;position:relative;margin-left:50px;height:45px;white-space:nowrap;align-items:center}li.svelte-1nx14nx:before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px}a.svelte-1nx14nx{color:#000000;text-decoration:none;display:inline-flex;padding:0 10px;font-size:20px}@media only screen and (max-width: 767px){a.svelte-1nx14nx{display:none}}.onmouse.svelte-1nx14nx{text-decoration:underline}", ""]);
173 // Exports 173 // Exports
174 module.exports = exports; 174 module.exports = exports;
175 175
...@@ -187,7 +187,7 @@ module.exports = exports; ...@@ -187,7 +187,7 @@ module.exports = exports;
187 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 187 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
188 exports = ___CSS_LOADER_API_IMPORT___(false); 188 exports = ___CSS_LOADER_API_IMPORT___(false);
189 // Module 189 // Module
190 -exports.push([module.i, ".sidebtn.svelte-1hm3zc2{border-radius:5px;border:0px;width:70px;height:70px;position:fixed;left:-20px;top:120px;padding-right:10px;text-align:right;background-color:#b71c1c;color:#ffffff;box-shadow:0 10px 20px rgb(0 0 0 / 15%)}.sidebtn.svelte-1hm3zc2:focus{background-color:#ef5350}.sidebtn.svelte-1hm3zc2:hover{background-color:#d32f2f}.areas.svelte-1hm3zc2{display:flex;border-bottom:#999999 solid 1px;width:100%;flex-wrap:wrap;justify-content:space-evenly}.areatitle.svelte-1hm3zc2{display:inline-block;text-align:center;width:200px}.district.svelte-1hm3zc2{display:inline-block;text-align:center;width:125px;margin:5px;border:1px solid black;border-radius:5px;padding-top:5px;padding-bottom:5px}.district.svelte-1hm3zc2:hover{background-color:#ffebee}.district.svelte-1hm3zc2:focus{background-color:#ffcdd2}.district.selected.svelte-1hm3zc2{background-color:#ffcdd2}.city.svelte-1hm3zc2{display:inline-block;text-align:center;width:125px;margin:5px;border:1px solid black;border-radius:5px;padding-top:5px;padding-bottom:5px}.city.svelte-1hm3zc2:hover{background-color:#ffebee}.city.svelte-1hm3zc2:focus{background-color:#ffcdd2}.city.selected.svelte-1hm3zc2{background-color:#ffcdd2}", ""]); 190 +exports.push([module.i, ".sidebtn.svelte-17bjrna{border-radius:5px;border:0px;width:70px;height:70px;position:fixed;left:-20px;top:120px;padding-right:10px;text-align:right;background-color:#b71c1c;color:#ffffff;box-shadow:0 10px 20px rgb(0 0 0 / 15%)}.sidebtn.svelte-17bjrna:focus{background-color:#ef5350}.sidebtn.svelte-17bjrna:hover{background-color:#d32f2f}.areas.svelte-17bjrna{display:flex;border-bottom:#999999 solid 1px;width:100%;flex-wrap:wrap;justify-content:space-evenly}.areatitle.svelte-17bjrna{display:inline-block;text-align:center;width:200px}.district.svelte-17bjrna{display:inline-block;text-align:center;width:125px;margin:5px;border:1px solid black;border-radius:5px;padding-top:5px;padding-bottom:5px}.district.svelte-17bjrna:hover{background-color:#ffebee}.district.svelte-17bjrna:focus{background-color:#ffcdd2}.district.selected.svelte-17bjrna{background-color:#ffcdd2}.city.svelte-17bjrna{display:inline-block;text-align:center;width:125px;margin:5px;border:1px solid black;border-radius:5px;padding-top:5px;padding-bottom:5px}.city.svelte-17bjrna:hover{background-color:#ffebee}.city.svelte-17bjrna:focus{background-color:#ffcdd2}.city.selected.svelte-17bjrna{background-color:#ffcdd2}", ""]);
191 // Exports 191 // Exports
192 module.exports = exports; 192 module.exports = exports;
193 193
...@@ -205,7 +205,7 @@ module.exports = exports; ...@@ -205,7 +205,7 @@ module.exports = exports;
205 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 205 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
206 exports = ___CSS_LOADER_API_IMPORT___(false); 206 exports = ___CSS_LOADER_API_IMPORT___(false);
207 // Module 207 // Module
208 -exports.push([module.i, "#backtotop.svelte-e1i8lo{border-radius:100%;width:50px;height:50px;position:fixed;right:4%;bottom:10%}", ""]); 208 +exports.push([module.i, "#backtotop.svelte-16na1oq{border-radius:100%;width:50px;height:50px;position:fixed;right:4%;bottom:10%}", ""]);
209 // Exports 209 // Exports
210 module.exports = exports; 210 module.exports = exports;
211 211
...@@ -223,7 +223,7 @@ module.exports = exports; ...@@ -223,7 +223,7 @@ module.exports = exports;
223 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 223 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
224 exports = ___CSS_LOADER_API_IMPORT___(false); 224 exports = ___CSS_LOADER_API_IMPORT___(false);
225 // Module 225 // Module
226 -exports.push([module.i, ".sidebtn.svelte-btrcxw.svelte-btrcxw{border-radius:5px;border:0px;width:70px;height:70px;position:fixed;left:-20px;top:200px;padding-right:10px;text-align:right;background-color:#e65100;color:#ffffff;box-shadow:0 10px 20px rgb(0 0 0 / 15%)}.sidebtn.svelte-btrcxw.svelte-btrcxw:focus{background-color:#f57c00}.sidebtn.svelte-btrcxw.svelte-btrcxw:hover{background-color:#ef6c00}.festa.svelte-btrcxw.svelte-btrcxw{border:1px solid #aaa;border-radius:2px;box-shadow:2px 2px 8px rgba(0,0,0,0.1);padding:2px;margin-bottom:5px}.festa.svelte-btrcxw.svelte-btrcxw:hover{background-color:#fff3e0}.festa.svelte-btrcxw.svelte-btrcxw:focus{background-color:#ffe0b2}.selected.svelte-btrcxw.svelte-btrcxw{background-color:#ffe0b2;border:1px solid #aaa;border-radius:2px;box-shadow:2px 2px 8px rgba(0,0,0,0.1);padding:2px;margin-bottom:5px}.title.svelte-btrcxw.svelte-btrcxw{font-weight:bold;border-bottom:2px solid #ff3e00}.addr.svelte-btrcxw.svelte-btrcxw{display:flex;align-items:center}.addr.svelte-btrcxw img.svelte-btrcxw{width:20px;height:20px}", ""]); 226 +exports.push([module.i, ".sidebtn.svelte-sfu5de.svelte-sfu5de{border-radius:5px;border:0px;width:70px;height:70px;position:fixed;left:-20px;top:200px;padding-right:10px;text-align:right;background-color:#e65100;color:#ffffff;box-shadow:0 10px 20px rgb(0 0 0 / 15%)}.sidebtn.svelte-sfu5de.svelte-sfu5de:focus{background-color:#f57c00}.sidebtn.svelte-sfu5de.svelte-sfu5de:hover{background-color:#ef6c00}.festa.svelte-sfu5de.svelte-sfu5de{border:1px solid #aaa;border-radius:2px;box-shadow:2px 2px 8px rgba(0,0,0,0.1);padding:2px;margin-bottom:5px}.festa.svelte-sfu5de.svelte-sfu5de:hover{background-color:#fff3e0}.festa.svelte-sfu5de.svelte-sfu5de:focus{background-color:#ffe0b2}.selected.svelte-sfu5de.svelte-sfu5de{background-color:#ffe0b2;border:1px solid #aaa;border-radius:2px;box-shadow:2px 2px 8px rgba(0,0,0,0.1);padding:2px;margin-bottom:5px}.title.svelte-sfu5de.svelte-sfu5de{font-weight:bold;border-bottom:2px solid #ff3e00}.addr.svelte-sfu5de.svelte-sfu5de{display:flex;align-items:center}.addr.svelte-sfu5de img.svelte-sfu5de{width:20px;height:20px}", ""]);
227 // Exports 227 // Exports
228 module.exports = exports; 228 module.exports = exports;
229 229
...@@ -241,7 +241,7 @@ module.exports = exports; ...@@ -241,7 +241,7 @@ module.exports = exports;
241 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 241 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
242 exports = ___CSS_LOADER_API_IMPORT___(false); 242 exports = ___CSS_LOADER_API_IMPORT___(false);
243 // Module 243 // Module
244 -exports.push([module.i, ".title.svelte-15ku9d2.svelte-15ku9d2{font-size:18pt;font-weight:bold;text-align:center}.content.svelte-15ku9d2.svelte-15ku9d2{padding:0.5rem 0.5rem 0.5rem;text-align:center}.info.svelte-15ku9d2 img.svelte-15ku9d2{max-height:20rem}", ""]); 244 +exports.push([module.i, ".info.svelte-1mnsbkj.svelte-1mnsbkj{display:flex;flex-direction:column;align-items:center}.title.svelte-1mnsbkj.svelte-1mnsbkj{font-size:18pt;font-weight:bold}.content.svelte-1mnsbkj.svelte-1mnsbkj{padding:0.5rem 0.5rem 0.5rem;text-align:left}.festaimg.svelte-1mnsbkj.svelte-1mnsbkj{max-width:560px}.locpin.svelte-1mnsbkj.svelte-1mnsbkj,.telpin.svelte-1mnsbkj.svelte-1mnsbkj,.calpin.svelte-1mnsbkj.svelte-1mnsbkj{width:20px;height:20px}.weather.svelte-1mnsbkj.svelte-1mnsbkj{border-collapse:collapse}.weather.svelte-1mnsbkj td.svelte-1mnsbkj{padding:0.3rem;border:1px solid #cccccc}.weatherimg.svelte-1mnsbkj.svelte-1mnsbkj{width:100px}", ""]);
245 // Exports 245 // Exports
246 module.exports = exports; 246 module.exports = exports;
247 247
...@@ -259,7 +259,7 @@ module.exports = exports; ...@@ -259,7 +259,7 @@ module.exports = exports;
259 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 259 var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
260 exports = ___CSS_LOADER_API_IMPORT___(false); 260 exports = ___CSS_LOADER_API_IMPORT___(false);
261 // Module 261 // Module
262 -exports.push([module.i, ".nav.svelte-8dqk19.svelte-8dqk19{overflow-y:auto;overflow-x:hidden}.left.svelte-8dqk19.svelte-8dqk19{position:fixed;top:0;left:0;height:100%;border-right:1px solid #aaa;background:#fff;overflow-y:auto;width:330px;z-index:900;white-space:pre-line}.right.svelte-8dqk19.svelte-8dqk19{position:fixed;top:0;right:0;height:100%;border-left:1px solid #aaa;background:#fff;overflow-y:auto;width:560px;z-index:900}.navtop.svelte-8dqk19.svelte-8dqk19{display:flex;width:100%;height:60px;background-color:white;font-size:30pt;color:#AAAAAA;justify-content:right;padding:5px 5px 5px;border-bottom:#999999 solid 1px}.bg.svelte-8dqk19.svelte-8dqk19{position:fixed;display:block;width:100vw;height:100vw;left:0;top:0;background-color:rgba(0, 0, 0, 10%);z-index:800}.navitems.svelte-8dqk19.svelte-8dqk19{display:flex;flex-direction:column\r\n }.left.svelte-8dqk19 .navitems.svelte-8dqk19{padding:2rem 1rem 0.6rem}", ""]); 262 +exports.push([module.i, ".nav.svelte-mr77hz.svelte-mr77hz{overflow-y:auto;overflow-x:hidden}.left.svelte-mr77hz.svelte-mr77hz{position:fixed;top:0;left:0;height:100%;border-right:1px solid #aaa;background:#fff;overflow-y:auto;width:330px;z-index:900;white-space:pre-line}.right.svelte-mr77hz.svelte-mr77hz{position:fixed;top:0;right:0;height:100%;border-left:1px solid #aaa;background:#fff;overflow-y:auto;width:560px;z-index:900}.navtop.svelte-mr77hz.svelte-mr77hz{display:flex;width:100%;height:60px;background-color:white;font-size:30pt;color:#AAAAAA;justify-content:right;padding:5px 5px 5px;border-bottom:#999999 solid 1px}.bg.svelte-mr77hz.svelte-mr77hz{position:fixed;display:block;width:100vw;height:100vw;left:0;top:0;background-color:rgba(0, 0, 0, 10%);z-index:800}.navitems.svelte-mr77hz.svelte-mr77hz{display:flex;flex-direction:column\n }.left.svelte-mr77hz .navitems.svelte-mr77hz{padding:2rem 1rem 0.6rem}", ""]);
263 // Exports 263 // Exports
264 module.exports = exports; 264 module.exports = exports;
265 265
...@@ -13620,31 +13620,31 @@ __webpack_require__.r(__webpack_exports__); ...@@ -13620,31 +13620,31 @@ __webpack_require__.r(__webpack_exports__);
13620 13620
13621 13621
13622 13622
13623 -/*! ***************************************************************************** 13623 +/*! *****************************************************************************
13624 -Copyright (c) Microsoft Corporation. All rights reserved. 13624 +Copyright (c) Microsoft Corporation. All rights reserved.
13625 -Licensed under the Apache License, Version 2.0 (the "License"); you may not use 13625 +Licensed under the Apache License, Version 2.0 (the "License"); you may not use
13626 -this file except in compliance with the License. You may obtain a copy of the 13626 +this file except in compliance with the License. You may obtain a copy of the
13627 -License at http://www.apache.org/licenses/LICENSE-2.0 13627 +License at http://www.apache.org/licenses/LICENSE-2.0
13628 - 13628 +
13629 -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 13629 +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13630 -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 13630 +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
13631 -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 13631 +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
13632 -MERCHANTABLITY OR NON-INFRINGEMENT. 13632 +MERCHANTABLITY OR NON-INFRINGEMENT.
13633 - 13633 +
13634 -See the Apache Version 2.0 License for specific language governing permissions 13634 +See the Apache Version 2.0 License for specific language governing permissions
13635 -and limitations under the License. 13635 +and limitations under the License.
13636 -***************************************************************************** */ 13636 +***************************************************************************** */
13637 - 13637 +
13638 -function __rest(s, e) { 13638 +function __rest(s, e) {
13639 - var t = {}; 13639 + var t = {};
13640 - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) 13640 + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13641 - t[p] = s[p]; 13641 + t[p] = s[p];
13642 - if (s != null && typeof Object.getOwnPropertySymbols === "function") 13642 + if (s != null && typeof Object.getOwnPropertySymbols === "function")
13643 - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { 13643 + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
13644 - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) 13644 + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
13645 - t[p[i]] = s[p[i]]; 13645 + t[p[i]] = s[p[i]];
13646 - } 13646 + }
13647 - return t; 13647 + return t;
13648 } 13648 }
13649 13649
13650 function blur(node, { delay = 0, duration = 400, easing = _easing__WEBPACK_IMPORTED_MODULE_0__["cubicInOut"], amount = 5, opacity = 0 }) { 13650 function blur(node, { delay = 0, duration = 400, easing = _easing__WEBPACK_IMPORTED_MODULE_0__["cubicInOut"], amount = 5, opacity = 0 }) {
...@@ -13816,11 +13816,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -13816,11 +13816,9 @@ __webpack_require__.r(__webpack_exports__);
13816 /* harmony import */ var _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stores/AllFestas */ "./src/Stores/AllFestas.js"); 13816 /* harmony import */ var _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stores/AllFestas */ "./src/Stores/AllFestas.js");
13817 /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js"); 13817 /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js");
13818 /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_6__); 13818 /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_6__);
13819 -/* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js"); 13819 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./src/App.svelte.css */ "./src/App.svelte.css");
13820 -/* harmony import */ var D_Library_TFT_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/App.svelte.css */ "./src/App.svelte.css"); 13820 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_7__);
13821 -/* harmony import */ var D_Library_TFT_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_8__); 13821 +/* src/App.svelte generated by Svelte v3.20.1 */
13822 -/* src\App.svelte generated by Svelte v3.20.1 */
13823 -
13824 13822
13825 13823
13826 13824
...@@ -13852,7 +13850,7 @@ function create_fragment(ctx) { ...@@ -13852,7 +13850,7 @@ function create_fragment(ctx) {
13852 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(backtotop.$$.fragment); 13850 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(backtotop.$$.fragment);
13853 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 13851 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
13854 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(article.$$.fragment); 13852 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(article.$$.fragment);
13855 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "svelte-1rh62g1"); 13853 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "svelte-1xd3gxl");
13856 }, 13854 },
13857 m(target, anchor, remount) { 13855 m(target, anchor, remount) {
13858 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor); 13856 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
...@@ -13895,12 +13893,13 @@ function create_fragment(ctx) { ...@@ -13895,12 +13893,13 @@ function create_fragment(ctx) {
13895 } 13893 }
13896 13894
13897 function LoadFestas() { 13895 function LoadFestas() {
13898 - let url = "http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList?ServiceKey=2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=A&numOfRows=12&pageNo=1&_type=json"; 13896 + let url = "/festivalList";
13899 13897
13900 jquery__WEBPACK_IMPORTED_MODULE_6___default.a.getJSON(url, json => { 13898 jquery__WEBPACK_IMPORTED_MODULE_6___default.a.getJSON(url, json => {
13901 - _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__["AllFestas"].set(json.response.body.items.item); 13899 + _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__["AllFestas"].set(json);
13902 - }); 13900 + }); // console.log(json);
13903 -} 13901 +} // let url = "http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList?ServiceKey=2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=A&numOfRows=12&pageNo=1&_type=json";
13902 +// jQuery.getJSON(url, (json) => {
13904 13903
13905 class App extends svelte_internal__WEBPACK_IMPORTED_MODULE_0__["SvelteComponent"] { 13904 class App extends svelte_internal__WEBPACK_IMPORTED_MODULE_0__["SvelteComponent"] {
13906 constructor(options) { 13905 constructor(options) {
...@@ -13960,9 +13959,9 @@ module.exports = exported; ...@@ -13960,9 +13959,9 @@ module.exports = exported;
13960 "use strict"; 13959 "use strict";
13961 __webpack_require__.r(__webpack_exports__); 13960 __webpack_require__.r(__webpack_exports__);
13962 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs"); 13961 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
13963 -/* harmony import */ var D_Library_TFT_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Articles.svelte.css */ "./src/Articles.svelte.css"); 13962 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Articles.svelte.css */ "./src/Articles.svelte.css");
13964 -/* harmony import */ var D_Library_TFT_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1__); 13963 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1__);
13965 -/* src\Articles.svelte generated by Svelte v3.20.1 */ 13964 +/* src/Articles.svelte generated by Svelte v3.20.1 */
13966 13965
13967 13966
13968 function create_fragment(ctx) { 13967 function create_fragment(ctx) {
...@@ -13978,8 +13977,8 @@ function create_fragment(ctx) { ...@@ -13978,8 +13977,8 @@ function create_fragment(ctx) {
13978 c() { 13977 c() {
13979 div2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 13978 div2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
13980 13979
13981 - div2.innerHTML = `<div class="contents svelte-1q2xp92"><img src="./public/TFTlogo.png" alt=":)" class="svelte-1q2xp92"> 13980 + div2.innerHTML = `<div class="contents svelte-90y9ti"><img src="./public/TFTlogo.png" alt=":)" class="svelte-90y9ti">
13982 - <div class="text svelte-1q2xp92"><h3>TFT에 오신 걸 환영합니다!</h3> 13981 + <div class="text svelte-90y9ti"><h3>TFT에 오신 걸 환영합니다!</h3>
13983 Travel &amp; Festival with Temperature<br> 13982 Travel &amp; Festival with Temperature<br>
13984 각종 행사 정보와 날씨 정보를 한눈에 알 수 있는 서비스입니다. 13983 각종 행사 정보와 날씨 정보를 한눈에 알 수 있는 서비스입니다.
13985 </div></div>`; 13984 </div></div>`;
...@@ -13987,17 +13986,17 @@ function create_fragment(ctx) { ...@@ -13987,17 +13986,17 @@ function create_fragment(ctx) {
13987 t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 13986 t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
13988 div5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 13987 div5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
13989 13988
13990 - div5.innerHTML = `<div class="contents svelte-1q2xp92"><div class="text svelte-1q2xp92"><h3>손쉬운 행사 탐색</h3> 13989 + div5.innerHTML = `<div class="contents svelte-90y9ti"><div class="text svelte-90y9ti"><h3>손쉬운 행사 탐색</h3>
13991 TFT를 통해 전국에서 개최중인 행사와 축제를<br> 13990 TFT를 통해 전국에서 개최중인 행사와 축제를<br>
13992 한 눈에 확인할 수 있습니다. 13991 한 눈에 확인할 수 있습니다.
13993 </div> 13992 </div>
13994 - <img src="./public/exploremap.png" alt=";(" class="svelte-1q2xp92"></div>`; 13993 + <img src="./public/exploremap.png" alt=";(" class="svelte-90y9ti"></div>`;
13995 13994
13996 t9 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 13995 t9 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
13997 div8 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 13996 div8 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
13998 13997
13999 - div8.innerHTML = `<div class="contents svelte-1q2xp92"><img src="./public/infofesta.png" alt=":)" class="svelte-1q2xp92"> 13998 + div8.innerHTML = `<div class="contents svelte-90y9ti"><img src="./public/infofesta.png" alt=":)" class="svelte-90y9ti">
14000 - <div class="text svelte-1q2xp92"><h3>행사 정보 확인</h3> 13999 + <div class="text svelte-90y9ti"><h3>행사 정보 확인</h3>
14001 지도에 표시된 마커를 클릭하여<br> 14000 지도에 표시된 마커를 클릭하여<br>
14002 행사 정보를 확인할 수 있습니다. 14001 행사 정보를 확인할 수 있습니다.
14003 </div></div>`; 14002 </div></div>`;
...@@ -14005,22 +14004,22 @@ function create_fragment(ctx) { ...@@ -14005,22 +14004,22 @@ function create_fragment(ctx) {
14005 t14 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 14004 t14 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
14006 div11 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 14005 div11 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
14007 14006
14008 - div11.innerHTML = `<div class="contents svelte-1q2xp92"><div class="text svelte-1q2xp92"> 14007 + div11.innerHTML = `<div class="contents svelte-90y9ti"><div class="text svelte-90y9ti">
14009 사용된 기술 스택은 다음과 같습니다.<br><br> 14008 사용된 기술 스택은 다음과 같습니다.<br><br>
14010 WEB : NodeJS / Express / Svelte<br> 14009 WEB : NodeJS / Express / Svelte<br>
14011 Database : MongoDB<br> 14010 Database : MongoDB<br>
14012 API Handler : NodeJS / RequestJS<br> 14011 API Handler : NodeJS / RequestJS<br>
14013 Docker 14012 Docker
14014 </div> 14013 </div>
14015 - <img src="./public/stacks.png" alt=";(" class="svelte-1q2xp92"></div>`; 14014 + <img src="./public/stacks.png" alt=";(" class="svelte-90y9ti"></div>`;
14016 14015
14017 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "article wbg svelte-1q2xp92"); 14016 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "article wbg svelte-90y9ti");
14018 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "id", "article1"); 14017 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "id", "article1");
14019 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "class", "article gbg svelte-1q2xp92"); 14018 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "class", "article gbg svelte-90y9ti");
14020 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "id", "article2"); 14019 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "id", "article2");
14021 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "class", "article wbg svelte-1q2xp92"); 14020 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "class", "article wbg svelte-90y9ti");
14022 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "id", "article3"); 14021 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "id", "article3");
14023 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "class", "article gbg svelte-1q2xp92"); 14022 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "class", "article gbg svelte-90y9ti");
14024 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "id", "article4"); 14023 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "id", "article4");
14025 }, 14024 },
14026 m(target, anchor) { 14025 m(target, anchor) {
...@@ -14482,9 +14481,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -14482,9 +14481,9 @@ __webpack_require__.r(__webpack_exports__);
14482 /* harmony import */ var _SideItems_Arealist_svelte__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SideItems/Arealist.svelte */ "./src/SideItems/Arealist.svelte"); 14481 /* harmony import */ var _SideItems_Arealist_svelte__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SideItems/Arealist.svelte */ "./src/SideItems/Arealist.svelte");
14483 /* harmony import */ var _Data_coordinates__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Data/coordinates */ "./src/Data/coordinates.js"); 14482 /* harmony import */ var _Data_coordinates__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Data/coordinates */ "./src/Data/coordinates.js");
14484 /* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js"); 14483 /* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js");
14485 -/* harmony import */ var D_Library_TFT_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/Map.svelte.css */ "./src/Map.svelte.css"); 14484 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/Map.svelte.css */ "./src/Map.svelte.css");
14486 -/* harmony import */ var D_Library_TFT_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6__); 14485 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6__);
14487 -/* src\Map.svelte generated by Svelte v3.20.1 */ 14486 +/* src/Map.svelte generated by Svelte v3.20.1 */
14488 14487
14489 14488
14490 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"]; 14489 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
...@@ -14563,9 +14562,9 @@ function create_fragment(ctx) { ...@@ -14563,9 +14562,9 @@ function create_fragment(ctx) {
14563 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(info.$$.fragment); 14562 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(info.$$.fragment);
14564 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 14563 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
14565 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 14564 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
14566 - div1.innerHTML = `<div id="map" class="svelte-9k0w06"></div>`; 14565 + div1.innerHTML = `<div id="map" class="svelte-d8mjr6"></div>`;
14567 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "id", "map_bg"); 14566 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "id", "map_bg");
14568 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "svelte-9k0w06"); 14567 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "svelte-d8mjr6");
14569 }, 14568 },
14570 m(target, anchor, remount) { 14569 m(target, anchor, remount) {
14571 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["mount_component"])(festalist, target, anchor); 14570 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["mount_component"])(festalist, target, anchor);
...@@ -14699,8 +14698,7 @@ function instance($$self, $$props, $$invalidate) { ...@@ -14699,8 +14698,7 @@ function instance($$self, $$props, $$invalidate) {
14699 return function () { 14698 return function () {
14700 $$invalidate(3, Festa = festa); 14699 $$invalidate(3, Festa = festa);
14701 $$invalidate(2, ShowInfo = true); 14700 $$invalidate(2, ShowInfo = true);
14702 - console.log(Festa); 14701 + }; // console.log(Festa);
14703 - };
14704 }; 14702 };
14705 14703
14706 kakao.maps.event.addListener(marker, "click", showInfo(data[i])); 14704 kakao.maps.event.addListener(marker, "click", showInfo(data[i]));
...@@ -14830,9 +14828,9 @@ module.exports = exported; ...@@ -14830,9 +14828,9 @@ module.exports = exported;
14830 __webpack_require__.r(__webpack_exports__); 14828 __webpack_require__.r(__webpack_exports__);
14831 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs"); 14829 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
14832 /* harmony import */ var _Menuitems_svelte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Menuitems.svelte */ "./src/Menuitems.svelte"); 14830 /* harmony import */ var _Menuitems_svelte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Menuitems.svelte */ "./src/Menuitems.svelte");
14833 -/* harmony import */ var D_Library_TFT_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/Menu.svelte.css */ "./src/Menu.svelte.css"); 14831 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/Menu.svelte.css */ "./src/Menu.svelte.css");
14834 -/* harmony import */ var D_Library_TFT_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2__); 14832 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2__);
14835 -/* src\Menu.svelte generated by Svelte v3.20.1 */ 14833 +/* src/Menu.svelte generated by Svelte v3.20.1 */
14836 14834
14837 14835
14838 14836
...@@ -14895,7 +14893,7 @@ function create_fragment(ctx) { ...@@ -14895,7 +14893,7 @@ function create_fragment(ctx) {
14895 nav = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("nav"); 14893 nav = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("nav");
14896 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 14894 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
14897 div0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 14895 div0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
14898 - div0.innerHTML = `<img alt="Logo" src="./public/TFTlogo.png" class="svelte-1yis6jl">`; 14896 + div0.innerHTML = `<img alt="Logo" src="./public/TFTlogo.png" class="svelte-143b6al">`;
14899 t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 14897 t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
14900 ul = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("ul"); 14898 ul = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("ul");
14901 14899
...@@ -14903,11 +14901,11 @@ function create_fragment(ctx) { ...@@ -14903,11 +14901,11 @@ function create_fragment(ctx) {
14903 each_blocks[i].c(); 14901 each_blocks[i].c();
14904 } 14902 }
14905 14903
14906 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "logo svelte-1yis6jl"); 14904 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "logo svelte-143b6al");
14907 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(ul, "class", "navbar-list svelte-1yis6jl"); 14905 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(ul, "class", "navbar-list svelte-143b6al");
14908 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "inner svelte-1yis6jl"); 14906 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "inner svelte-143b6al");
14909 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "id", "nav"); 14907 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "id", "nav");
14910 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", "svelte-1yis6jl"); 14908 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", "svelte-143b6al");
14911 }, 14909 },
14912 m(target, anchor) { 14910 m(target, anchor) {
14913 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, nav, anchor); 14911 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, nav, anchor);
...@@ -15044,9 +15042,9 @@ module.exports = exported; ...@@ -15044,9 +15042,9 @@ module.exports = exported;
15044 "use strict"; 15042 "use strict";
15045 __webpack_require__.r(__webpack_exports__); 15043 __webpack_require__.r(__webpack_exports__);
15046 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs"); 15044 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
15047 -/* harmony import */ var D_Library_TFT_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Menuitems.svelte.css */ "./src/Menuitems.svelte.css"); 15045 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Menuitems.svelte.css */ "./src/Menuitems.svelte.css");
15048 -/* harmony import */ var D_Library_TFT_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1__); 15046 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1__);
15049 -/* src\Menuitems.svelte generated by Svelte v3.20.1 */ 15047 +/* src/Menuitems.svelte generated by Svelte v3.20.1 */
15050 15048
15051 15049
15052 function create_fragment(ctx) { 15050 function create_fragment(ctx) {
...@@ -15063,9 +15061,9 @@ function create_fragment(ctx) { ...@@ -15063,9 +15061,9 @@ function create_fragment(ctx) {
15063 a = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("a"); 15061 a = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("a");
15064 t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t_value); 15062 t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t_value);
15065 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "href", a_href_value = /*item*/ ctx[0].href); 15063 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "href", a_href_value = /*item*/ ctx[0].href);
15066 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "class", "svelte-1tp05za"); 15064 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "class", "svelte-1nx14nx");
15067 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["toggle_class"])(a, "onmouse", /*onmouse*/ ctx[1]); 15065 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["toggle_class"])(a, "onmouse", /*onmouse*/ ctx[1]);
15068 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(li, "class", "svelte-1tp05za"); 15066 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(li, "class", "svelte-1nx14nx");
15069 }, 15067 },
15070 m(target, anchor, remount) { 15068 m(target, anchor, remount) {
15071 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, li, anchor); 15069 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, li, anchor);
...@@ -15179,9 +15177,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -15179,9 +15177,9 @@ __webpack_require__.r(__webpack_exports__);
15179 /* harmony import */ var _SideBar_svelte__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SideBar.svelte */ "./src/SideItems/SideBar.svelte"); 15177 /* harmony import */ var _SideBar_svelte__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SideBar.svelte */ "./src/SideItems/SideBar.svelte");
15180 /* harmony import */ var _Data_district__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Data/district */ "./src/Data/district.js"); 15178 /* harmony import */ var _Data_district__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Data/district */ "./src/Data/district.js");
15181 /* harmony import */ var _Stores_DistrictStore__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Stores/DistrictStore */ "./src/Stores/DistrictStore.js"); 15179 /* harmony import */ var _Stores_DistrictStore__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Stores/DistrictStore */ "./src/Stores/DistrictStore.js");
15182 -/* harmony import */ var D_Library_TFT_src_SideItems_Arealist_svelte_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/SideItems/Arealist.svelte.css */ "./src/SideItems/Arealist.svelte.css"); 15180 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Arealist_svelte_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/SideItems/Arealist.svelte.css */ "./src/SideItems/Arealist.svelte.css");
15183 -/* harmony import */ var D_Library_TFT_src_SideItems_Arealist_svelte_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_SideItems_Arealist_svelte_css__WEBPACK_IMPORTED_MODULE_5__); 15181 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Arealist_svelte_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Arealist_svelte_css__WEBPACK_IMPORTED_MODULE_5__);
15184 -/* src\SideItems\Arealist.svelte generated by Svelte v3.20.1 */ 15182 +/* src/SideItems/Arealist.svelte generated by Svelte v3.20.1 */
15185 15183
15186 15184
15187 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"]; 15185 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
...@@ -15217,7 +15215,7 @@ function create_if_block(ctx) { ...@@ -15217,7 +15215,7 @@ function create_if_block(ctx) {
15217 지역<br>선택 15215 지역<br>선택
15218 `; 15216 `;
15219 15217
15220 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-1hm3zc2"); 15218 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-17bjrna");
15221 }, 15219 },
15222 m(target, anchor, remount) { 15220 m(target, anchor, remount) {
15223 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor); 15221 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor);
...@@ -15272,7 +15270,7 @@ function create_each_block_1(ctx) { ...@@ -15272,7 +15270,7 @@ function create_each_block_1(ctx) {
15272 15270
15273 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(Object.keys(/*curDisrict*/ ctx[2])[0] == Object.keys(/*d*/ ctx[15])[0] 15271 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(Object.keys(/*curDisrict*/ ctx[2])[0] == Object.keys(/*d*/ ctx[15])[0]
15274 ? "district selected" 15272 ? "district selected"
15275 - : "district") + " svelte-1hm3zc2")); 15273 + : "district") + " svelte-17bjrna"));
15276 }, 15274 },
15277 m(target, anchor, remount) { 15275 m(target, anchor, remount) {
15278 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor); 15276 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
...@@ -15287,7 +15285,7 @@ function create_each_block_1(ctx) { ...@@ -15287,7 +15285,7 @@ function create_each_block_1(ctx) {
15287 15285
15288 if (dirty & /*curDisrict*/ 4 && div_class_value !== (div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(Object.keys(/*curDisrict*/ ctx[2])[0] == Object.keys(/*d*/ ctx[15])[0] 15286 if (dirty & /*curDisrict*/ 4 && div_class_value !== (div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(Object.keys(/*curDisrict*/ ctx[2])[0] == Object.keys(/*d*/ ctx[15])[0]
15289 ? "district selected" 15287 ? "district selected"
15290 - : "district") + " svelte-1hm3zc2"))) { 15288 + : "district") + " svelte-17bjrna"))) {
15291 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value); 15289 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value);
15292 } 15290 }
15293 }, 15291 },
...@@ -15322,7 +15320,7 @@ function create_each_block(ctx) { ...@@ -15322,7 +15320,7 @@ function create_each_block(ctx) {
15322 15320
15323 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*curCity*/ ctx[3] == /*c*/ ctx[12] 15321 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*curCity*/ ctx[3] == /*c*/ ctx[12]
15324 ? "city selected" 15322 ? "city selected"
15325 - : "city") + " svelte-1hm3zc2")); 15323 + : "city") + " svelte-17bjrna"));
15326 }, 15324 },
15327 m(target, anchor, remount) { 15325 m(target, anchor, remount) {
15328 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor); 15326 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
...@@ -15338,7 +15336,7 @@ function create_each_block(ctx) { ...@@ -15338,7 +15336,7 @@ function create_each_block(ctx) {
15338 15336
15339 if (dirty & /*curCity, curDisrict*/ 12 && div_class_value !== (div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*curCity*/ ctx[3] == /*c*/ ctx[12] 15337 if (dirty & /*curCity, curDisrict*/ 12 && div_class_value !== (div_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*curCity*/ ctx[3] == /*c*/ ctx[12]
15340 ? "city selected" 15338 ? "city selected"
15341 - : "city") + " svelte-1hm3zc2"))) { 15339 + : "city") + " svelte-17bjrna"))) {
15342 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value); 15340 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value);
15343 } 15341 }
15344 }, 15342 },
...@@ -15398,10 +15396,10 @@ function create_default_slot(ctx) { ...@@ -15398,10 +15396,10 @@ function create_default_slot(ctx) {
15398 each_blocks[i].c(); 15396 each_blocks[i].c();
15399 } 15397 }
15400 15398
15401 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "areatitle svelte-1hm3zc2"); 15399 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "areatitle svelte-17bjrna");
15402 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "areas svelte-1hm3zc2"); 15400 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "areas svelte-17bjrna");
15403 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "areatitle svelte-1hm3zc2"); 15401 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "areatitle svelte-17bjrna");
15404 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", "areas svelte-1hm3zc2"); 15402 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", "areas svelte-17bjrna");
15405 }, 15403 },
15406 m(target, anchor) { 15404 m(target, anchor) {
15407 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div1, anchor); 15405 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div1, anchor);
...@@ -15718,9 +15716,9 @@ module.exports = exported; ...@@ -15718,9 +15716,9 @@ module.exports = exported;
15718 __webpack_require__.r(__webpack_exports__); 15716 __webpack_require__.r(__webpack_exports__);
15719 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs"); 15717 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
15720 /* harmony import */ var svelte_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! svelte/transition */ "./node_modules/svelte/transition/index.mjs"); 15718 /* harmony import */ var svelte_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! svelte/transition */ "./node_modules/svelte/transition/index.mjs");
15721 -/* harmony import */ var D_Library_TFT_src_SideItems_Backtotop_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/SideItems/Backtotop.svelte.css */ "./src/SideItems/Backtotop.svelte.css"); 15719 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Backtotop_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/SideItems/Backtotop.svelte.css */ "./src/SideItems/Backtotop.svelte.css");
15722 -/* harmony import */ var D_Library_TFT_src_SideItems_Backtotop_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_SideItems_Backtotop_svelte_css__WEBPACK_IMPORTED_MODULE_2__); 15720 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Backtotop_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Backtotop_svelte_css__WEBPACK_IMPORTED_MODULE_2__);
15723 -/* src\SideItems\Backtotop.svelte generated by Svelte v3.20.1 */ 15721 +/* src/SideItems/Backtotop.svelte generated by Svelte v3.20.1 */
15724 15722
15725 15723
15726 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"]; 15724 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
...@@ -15737,7 +15735,7 @@ function create_if_block(ctx) { ...@@ -15737,7 +15735,7 @@ function create_if_block(ctx) {
15737 button = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("button"); 15735 button = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("button");
15738 button.textContent = "▲"; 15736 button.textContent = "▲";
15739 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "id", "backtotop"); 15737 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "id", "backtotop");
15740 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "svelte-e1i8lo"); 15738 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "svelte-16na1oq");
15741 }, 15739 },
15742 m(target, anchor, remount) { 15740 m(target, anchor, remount) {
15743 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor); 15741 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor);
...@@ -15906,9 +15904,9 @@ __webpack_require__.r(__webpack_exports__); ...@@ -15906,9 +15904,9 @@ __webpack_require__.r(__webpack_exports__);
15906 /* harmony import */ var _Stores_DistrictStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Stores/DistrictStore */ "./src/Stores/DistrictStore.js"); 15904 /* harmony import */ var _Stores_DistrictStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Stores/DistrictStore */ "./src/Stores/DistrictStore.js");
15907 /* harmony import */ var _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Stores/AllFestas */ "./src/Stores/AllFestas.js"); 15905 /* harmony import */ var _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Stores/AllFestas */ "./src/Stores/AllFestas.js");
15908 /* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js"); 15906 /* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js");
15909 -/* harmony import */ var D_Library_TFT_src_SideItems_Festalist_svelte_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/SideItems/Festalist.svelte.css */ "./src/SideItems/Festalist.svelte.css"); 15907 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Festalist_svelte_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/SideItems/Festalist.svelte.css */ "./src/SideItems/Festalist.svelte.css");
15910 -/* harmony import */ var D_Library_TFT_src_SideItems_Festalist_svelte_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_SideItems_Festalist_svelte_css__WEBPACK_IMPORTED_MODULE_6__); 15908 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Festalist_svelte_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Festalist_svelte_css__WEBPACK_IMPORTED_MODULE_6__);
15911 -/* src\SideItems\Festalist.svelte generated by Svelte v3.20.1 */ 15909 +/* src/SideItems/Festalist.svelte generated by Svelte v3.20.1 */
15912 15910
15913 15911
15914 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"]; 15912 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
...@@ -15939,7 +15937,7 @@ function create_if_block_1(ctx) { ...@@ -15939,7 +15937,7 @@ function create_if_block_1(ctx) {
15939 행사<br>목록 15937 행사<br>목록
15940 `; 15938 `;
15941 15939
15942 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-btrcxw"); 15940 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-sfu5de");
15943 }, 15941 },
15944 m(target, anchor, remount) { 15942 m(target, anchor, remount) {
15945 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor); 15943 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor);
...@@ -16056,7 +16054,7 @@ function create_each_block(ctx) { ...@@ -16056,7 +16054,7 @@ function create_each_block(ctx) {
16056 let img; 16054 let img;
16057 let img_src_value; 16055 let img_src_value;
16058 let div1; 16056 let div1;
16059 - let t2_value = /*festa*/ ctx[14].addr1 + ""; 16057 + let t2_value = /*festa*/ ctx[14].addr + "";
16060 let t2; 16058 let t2;
16061 let t3; 16059 let t3;
16062 let div3_class_value; 16060 let div3_class_value;
...@@ -16077,12 +16075,12 @@ function create_each_block(ctx) { ...@@ -16077,12 +16075,12 @@ function create_each_block(ctx) {
16077 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 16075 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
16078 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t2_value); 16076 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t2_value);
16079 t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 16077 t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16080 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-btrcxw"); 16078 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-sfu5de");
16081 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "pin"); 16079 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "pin");
16082 if (img.src !== (img_src_value = "/public/map-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value); 16080 if (img.src !== (img_src_value = "/public/map-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value);
16083 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "svelte-btrcxw"); 16081 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "svelte-sfu5de");
16084 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "addr svelte-btrcxw"); 16082 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "addr svelte-sfu5de");
16085 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", div3_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*festa*/ ctx[14].checked ? "selected" : "festa") + " svelte-btrcxw")); 16083 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", div3_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*festa*/ ctx[14].checked ? "selected" : "festa") + " svelte-sfu5de"));
16086 }, 16084 },
16087 m(target, anchor, remount) { 16085 m(target, anchor, remount) {
16088 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div3, anchor); 16086 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div3, anchor);
...@@ -16100,9 +16098,9 @@ function create_each_block(ctx) { ...@@ -16100,9 +16098,9 @@ function create_each_block(ctx) {
16100 p(new_ctx, dirty) { 16098 p(new_ctx, dirty) {
16101 ctx = new_ctx; 16099 ctx = new_ctx;
16102 if (dirty & /*festaParsed*/ 4 && t0_value !== (t0_value = /*festa*/ ctx[14].title + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t0, t0_value); 16100 if (dirty & /*festaParsed*/ 4 && t0_value !== (t0_value = /*festa*/ ctx[14].title + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t0, t0_value);
16103 - if (dirty & /*festaParsed*/ 4 && t2_value !== (t2_value = /*festa*/ ctx[14].addr1 + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t2, t2_value); 16101 + if (dirty & /*festaParsed*/ 4 && t2_value !== (t2_value = /*festa*/ ctx[14].addr + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t2, t2_value);
16104 16102
16105 - if (dirty & /*festaParsed*/ 4 && div3_class_value !== (div3_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*festa*/ ctx[14].checked ? "selected" : "festa") + " svelte-btrcxw"))) { 16103 + if (dirty & /*festaParsed*/ 4 && div3_class_value !== (div3_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])(/*festa*/ ctx[14].checked ? "selected" : "festa") + " svelte-sfu5de"))) {
16106 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", div3_class_value); 16104 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", div3_class_value);
16107 } 16105 }
16108 }, 16106 },
...@@ -16305,9 +16303,9 @@ function instance($$self, $$props, $$invalidate) { ...@@ -16305,9 +16303,9 @@ function instance($$self, $$props, $$invalidate) {
16305 $$self.$$.update = () => { 16303 $$self.$$.update = () => {
16306 if ($$self.$$.dirty & /*$AllFestas, $District, $City*/ 1792) { 16304 if ($$self.$$.dirty & /*$AllFestas, $District, $City*/ 1792) {
16307 $: $$invalidate(7, festaList = $AllFestas.filter(v => { 16305 $: $$invalidate(7, festaList = $AllFestas.filter(v => {
16308 - if (v.addr1) { 16306 + if (v.addr) {
16309 - let district = v.addr1.split(" ")[0]; 16307 + let district = v.addr.split(" ")[0];
16310 - let city = v.addr1.split(" ")[1]; 16308 + let city = v.addr.split(" ")[1];
16311 return ($District === "" || district === $District) && ($City === "" || city === $City); 16309 return ($District === "" || district === $District) && ($City === "" || city === $City);
16312 } else { 16310 } else {
16313 return false; 16311 return false;
...@@ -16320,7 +16318,7 @@ function instance($$self, $$props, $$invalidate) { ...@@ -16320,7 +16318,7 @@ function instance($$self, $$props, $$invalidate) {
16320 return { 16318 return {
16321 "id": i, 16319 "id": i,
16322 "title": v.title, 16320 "title": v.title,
16323 - "addr1": v.addr1, 16321 + "addr": v.addr,
16324 "contentid": v.contentid, 16322 "contentid": v.contentid,
16325 "checked": false 16323 "checked": false
16326 }; 16324 };
...@@ -16417,33 +16415,180 @@ module.exports = exported; ...@@ -16417,33 +16415,180 @@ module.exports = exported;
16417 __webpack_require__.r(__webpack_exports__); 16415 __webpack_require__.r(__webpack_exports__);
16418 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs"); 16416 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
16419 /* harmony import */ var _SideBar_svelte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SideBar.svelte */ "./src/SideItems/SideBar.svelte"); 16417 /* harmony import */ var _SideBar_svelte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SideBar.svelte */ "./src/SideItems/SideBar.svelte");
16420 -/* harmony import */ var D_Library_TFT_src_SideItems_Info_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/SideItems/Info.svelte.css */ "./src/SideItems/Info.svelte.css"); 16418 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Info_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/SideItems/Info.svelte.css */ "./src/SideItems/Info.svelte.css");
16421 -/* harmony import */ var D_Library_TFT_src_SideItems_Info_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_SideItems_Info_svelte_css__WEBPACK_IMPORTED_MODULE_2__); 16419 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Info_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_Info_svelte_css__WEBPACK_IMPORTED_MODULE_2__);
16422 -/* src\SideItems\Info.svelte generated by Svelte v3.20.1 */ 16420 +/* src/SideItems/Info.svelte generated by Svelte v3.20.1 */
16423 16421
16424 16422
16425 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"]; 16423 const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
16426 16424
16427 16425
16426 +function get_each_context(ctx, list, i) {
16427 + const child_ctx = ctx.slice();
16428 + child_ctx[7] = list[i];
16429 + return child_ctx;
16430 +}
16431 +
16432 +// (77:8) {#if weathers}
16433 +function create_if_block(ctx) {
16434 + let table;
16435 + let tr;
16436 + let each_value = /*weathers*/ ctx[2];
16437 + let each_blocks = [];
16438 +
16439 + for (let i = 0; i < each_value.length; i += 1) {
16440 + each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
16441 + }
16442 +
16443 + return {
16444 + c() {
16445 + table = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("table");
16446 + tr = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("tr");
16447 +
16448 + for (let i = 0; i < each_blocks.length; i += 1) {
16449 + each_blocks[i].c();
16450 + }
16451 +
16452 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(table, "class", "weather svelte-1mnsbkj");
16453 + },
16454 + m(target, anchor) {
16455 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, table, anchor);
16456 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(table, tr);
16457 +
16458 + for (let i = 0; i < each_blocks.length; i += 1) {
16459 + each_blocks[i].m(tr, null);
16460 + }
16461 + },
16462 + p(ctx, dirty) {
16463 + if (dirty & /*weathers, WEATHERIMG*/ 12) {
16464 + each_value = /*weathers*/ ctx[2];
16465 + let i;
16466 +
16467 + for (i = 0; i < each_value.length; i += 1) {
16468 + const child_ctx = get_each_context(ctx, each_value, i);
16469 +
16470 + if (each_blocks[i]) {
16471 + each_blocks[i].p(child_ctx, dirty);
16472 + } else {
16473 + each_blocks[i] = create_each_block(child_ctx);
16474 + each_blocks[i].c();
16475 + each_blocks[i].m(tr, null);
16476 + }
16477 + }
16478 +
16479 + for (; i < each_blocks.length; i += 1) {
16480 + each_blocks[i].d(1);
16481 + }
16482 +
16483 + each_blocks.length = each_value.length;
16484 + }
16485 + },
16486 + d(detaching) {
16487 + if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(table);
16488 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["destroy_each"])(each_blocks, detaching);
16489 + }
16490 + };
16491 +}
16492 +
16493 +// (79:16) {#each weathers as weather}
16494 +function create_each_block(ctx) {
16495 + let td;
16496 + let img;
16497 + let img_src_value;
16498 + let br0;
16499 + let t0;
16500 + let t1_value = /*weather*/ ctx[7].date.slice(0, 2) + "/" + /*weather*/ ctx[7].date.slice(2, 4) + "";
16501 + let t1;
16502 + let br1;
16503 + let t2;
16504 + let t3_value = /*weather*/ ctx[7].temp + "";
16505 + let t3;
16506 + let t4;
16507 + let br2;
16508 + let t5;
16509 +
16510 + return {
16511 + c() {
16512 + td = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("td");
16513 + img = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
16514 + br0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16515 + t0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16516 + t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t1_value);
16517 + br1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16518 + t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16519 + t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t3_value);
16520 + t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])("℃");
16521 + br2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16522 + t5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16523 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "weatherimg svelte-1mnsbkj");
16524 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "weather");
16525 + if (img.src !== (img_src_value = /*WEATHERIMG*/ ctx[3][/*weather*/ ctx[7].weather])) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value);
16526 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(td, "class", "weathercell svelte-1mnsbkj");
16527 + },
16528 + m(target, anchor) {
16529 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, td, anchor);
16530 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, img);
16531 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, br0);
16532 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t0);
16533 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t1);
16534 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, br1);
16535 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t2);
16536 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t3);
16537 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t4);
16538 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, br2);
16539 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t5);
16540 + },
16541 + p(ctx, dirty) {
16542 + if (dirty & /*weathers*/ 4 && img.src !== (img_src_value = /*WEATHERIMG*/ ctx[3][/*weather*/ ctx[7].weather])) {
16543 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value);
16544 + }
16545 +
16546 + if (dirty & /*weathers*/ 4 && t1_value !== (t1_value = /*weather*/ ctx[7].date.slice(0, 2) + "/" + /*weather*/ ctx[7].date.slice(2, 4) + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t1, t1_value);
16547 + if (dirty & /*weathers*/ 4 && t3_value !== (t3_value = /*weather*/ ctx[7].temp + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t3, t3_value);
16548 + },
16549 + d(detaching) {
16550 + if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(td);
16551 + }
16552 + };
16553 +}
16554 +
16555 +// (73:0) <SideBar bind:show={sidebar_show} {side}>
16428 function create_default_slot(ctx) { 16556 function create_default_slot(ctx) {
16429 let div2; 16557 let div2;
16430 let div0; 16558 let div0;
16431 let t0_value = /*festa*/ ctx[1].title + ""; 16559 let t0_value = /*festa*/ ctx[1].title + "";
16432 let t0; 16560 let t0;
16433 let t1; 16561 let t1;
16434 - let img; 16562 + let img0;
16435 - let img_src_value; 16563 + let img0_src_value;
16436 let br0; 16564 let br0;
16437 let t2; 16565 let t2;
16438 - let div1;
16439 let t3; 16566 let t3;
16440 - let t4_value = /*festa*/ ctx[1].addr1 + ""; 16567 + let div1;
16568 + let img1;
16569 + let img1_src_value;
16441 let t4; 16570 let t4;
16442 - let br1; 16571 + let t5_value = /*festa*/ ctx[1].addr + "";
16443 let t5; 16572 let t5;
16444 - let t6_value = /*festa*/ ctx[1].tel + ""; 16573 + let br1;
16445 let t6; 16574 let t6;
16575 + let img2;
16576 + let img2_src_value;
16577 + let t7;
16578 + let t8_value = /*festa*/ ctx[1].tel + "";
16579 + let t8;
16446 let br2; 16580 let br2;
16581 + let t9;
16582 + let img3;
16583 + let img3_src_value;
16584 + let t10;
16585 + let t11_value = /*festa*/ ctx[1].eventstartdate + "";
16586 + let t11;
16587 + let t12;
16588 + let t13_value = /*festa*/ ctx[1].eventenddate + "";
16589 + let t13;
16590 + let br3;
16591 + let if_block = /*weathers*/ ctx[2] && create_if_block(ctx);
16447 16592
16448 return { 16593 return {
16449 c() { 16594 c() {
...@@ -16451,51 +16596,100 @@ function create_default_slot(ctx) { ...@@ -16451,51 +16596,100 @@ function create_default_slot(ctx) {
16451 div0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 16596 div0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
16452 t0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t0_value); 16597 t0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t0_value);
16453 t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 16598 t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16454 - img = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img"); 16599 + img0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
16455 br0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br"); 16600 br0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16456 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 16601 t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16602 + if (if_block) if_block.c();
16603 + t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16457 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 16604 div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
16458 - t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])("개최지 : "); 16605 + img1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
16459 - t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t4_value); 16606 + t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" 개최지 : ");
16607 + t5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t5_value);
16460 br1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br"); 16608 br1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16461 - t5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])("\r\n 전화번호 : "); 16609 + t6 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16462 - t6 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t6_value); 16610 + img2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
16611 + t7 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" 전화번호 : ");
16612 + t8 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t8_value);
16463 br2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br"); 16613 br2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16464 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-15ku9d2"); 16614 + t9 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16465 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "festaImg"); 16615 + img3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
16466 - if (img.src !== (img_src_value = /*festa*/ ctx[1].firstimage)) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value); 16616 + t10 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" 행사일 : ");
16467 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "svelte-15ku9d2"); 16617 + t11 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t11_value);
16468 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "content svelte-15ku9d2"); 16618 + t12 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" - ");
16469 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "info svelte-15ku9d2"); 16619 + t13 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t13_value);
16620 + br3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
16621 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-1mnsbkj");
16622 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "class", "festaimg svelte-1mnsbkj");
16623 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "alt", "festaimg");
16624 + if (img0.src !== (img0_src_value = /*festa*/ ctx[1].firstimage)) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "src", img0_src_value);
16625 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img1, "class", "locpin svelte-1mnsbkj");
16626 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img1, "alt", "pin");
16627 + if (img1.src !== (img1_src_value = "/public/map-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img1, "src", img1_src_value);
16628 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img2, "class", "telpin svelte-1mnsbkj");
16629 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img2, "alt", "pin");
16630 + if (img2.src !== (img2_src_value = "/public/tel-pin.jpeg")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img2, "src", img2_src_value);
16631 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img3, "class", "calpin svelte-1mnsbkj");
16632 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img3, "alt", "pin");
16633 + if (img3.src !== (img3_src_value = "/public/cal-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img3, "src", img3_src_value);
16634 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "content svelte-1mnsbkj");
16635 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "info svelte-1mnsbkj");
16470 }, 16636 },
16471 m(target, anchor) { 16637 m(target, anchor) {
16472 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div2, anchor); 16638 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div2, anchor);
16473 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, div0); 16639 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, div0);
16474 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div0, t0); 16640 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div0, t0);
16475 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t1); 16641 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t1);
16476 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, img); 16642 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, img0);
16477 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, br0); 16643 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, br0);
16478 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t2); 16644 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t2);
16645 + if (if_block) if_block.m(div2, null);
16646 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t3);
16479 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, div1); 16647 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, div1);
16480 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t3); 16648 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, img1);
16481 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t4); 16649 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t4);
16482 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br1);
16483 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t5); 16650 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t5);
16651 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br1);
16484 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t6); 16652 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t6);
16653 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, img2);
16654 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t7);
16655 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t8);
16485 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br2); 16656 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br2);
16657 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t9);
16658 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, img3);
16659 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t10);
16660 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t11);
16661 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t12);
16662 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t13);
16663 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br3);
16486 }, 16664 },
16487 p(ctx, dirty) { 16665 p(ctx, dirty) {
16488 if (dirty & /*festa*/ 2 && t0_value !== (t0_value = /*festa*/ ctx[1].title + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t0, t0_value); 16666 if (dirty & /*festa*/ 2 && t0_value !== (t0_value = /*festa*/ ctx[1].title + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t0, t0_value);
16489 16667
16490 - if (dirty & /*festa*/ 2 && img.src !== (img_src_value = /*festa*/ ctx[1].firstimage)) { 16668 + if (dirty & /*festa*/ 2 && img0.src !== (img0_src_value = /*festa*/ ctx[1].firstimage)) {
16491 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value); 16669 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "src", img0_src_value);
16670 + }
16671 +
16672 + if (/*weathers*/ ctx[2]) {
16673 + if (if_block) {
16674 + if_block.p(ctx, dirty);
16675 + } else {
16676 + if_block = create_if_block(ctx);
16677 + if_block.c();
16678 + if_block.m(div2, t3);
16679 + }
16680 + } else if (if_block) {
16681 + if_block.d(1);
16682 + if_block = null;
16492 } 16683 }
16493 16684
16494 - if (dirty & /*festa*/ 2 && t4_value !== (t4_value = /*festa*/ ctx[1].addr1 + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t4, t4_value); 16685 + if (dirty & /*festa*/ 2 && t5_value !== (t5_value = /*festa*/ ctx[1].addr + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t5, t5_value);
16495 - if (dirty & /*festa*/ 2 && t6_value !== (t6_value = /*festa*/ ctx[1].tel + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t6, t6_value); 16686 + if (dirty & /*festa*/ 2 && t8_value !== (t8_value = /*festa*/ ctx[1].tel + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t8, t8_value);
16687 + if (dirty & /*festa*/ 2 && t11_value !== (t11_value = /*festa*/ ctx[1].eventstartdate + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t11, t11_value);
16688 + if (dirty & /*festa*/ 2 && t13_value !== (t13_value = /*festa*/ ctx[1].eventenddate + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t13, t13_value);
16496 }, 16689 },
16497 d(detaching) { 16690 d(detaching) {
16498 if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(div2); 16691 if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(div2);
16692 + if (if_block) if_block.d();
16499 } 16693 }
16500 }; 16694 };
16501 } 16695 }
...@@ -16506,7 +16700,7 @@ function create_fragment(ctx) { ...@@ -16506,7 +16700,7 @@ function create_fragment(ctx) {
16506 let dispose; 16700 let dispose;
16507 16701
16508 function sidebar_show_binding(value) { 16702 function sidebar_show_binding(value) {
16509 - /*sidebar_show_binding*/ ctx[3].call(null, value); 16703 + /*sidebar_show_binding*/ ctx[6].call(null, value);
16510 } 16704 }
16511 16705
16512 let sidebar_props = { 16706 let sidebar_props = {
...@@ -16530,12 +16724,12 @@ function create_fragment(ctx) { ...@@ -16530,12 +16724,12 @@ function create_fragment(ctx) {
16530 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["mount_component"])(sidebar, target, anchor); 16724 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["mount_component"])(sidebar, target, anchor);
16531 current = true; 16725 current = true;
16532 if (remount) dispose(); 16726 if (remount) dispose();
16533 - dispose = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["listen"])(window_1, "scroll", /*hide*/ ctx[2]); 16727 + dispose = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["listen"])(window_1, "scroll", /*hide*/ ctx[4]);
16534 }, 16728 },
16535 p(ctx, [dirty]) { 16729 p(ctx, [dirty]) {
16536 const sidebar_changes = {}; 16730 const sidebar_changes = {};
16537 16731
16538 - if (dirty & /*$$scope, festa*/ 18) { 16732 + if (dirty & /*$$scope, festa, weathers*/ 1030) {
16539 sidebar_changes.$$scope = { dirty, ctx }; 16733 sidebar_changes.$$scope = { dirty, ctx };
16540 } 16734 }
16541 16735
...@@ -16563,11 +16757,19 @@ function create_fragment(ctx) { ...@@ -16563,11 +16757,19 @@ function create_fragment(ctx) {
16563 }; 16757 };
16564 } 16758 }
16565 16759
16566 -let side = "right"; 16760 +var side = "right";
16567 16761
16568 function instance($$self, $$props, $$invalidate) { 16762 function instance($$self, $$props, $$invalidate) {
16569 let { festa } = $$props; 16763 let { festa } = $$props;
16570 let { sidebar_show = false } = $$props; 16764 let { sidebar_show = false } = $$props;
16765 + var weatherData, weathers;
16766 +
16767 + const WEATHERIMG = {
16768 + "맑음": "./public/sunny.png",
16769 + "비": "./public/rain.png",
16770 + "비/눈": "./public/rainsnow.png",
16771 + "눈": "./public/snow.png"
16772 + };
16571 16773
16572 function hide() { 16774 function hide() {
16573 if (window.scrollY > 400) { 16775 if (window.scrollY > 400) {
...@@ -16585,7 +16787,31 @@ function instance($$self, $$props, $$invalidate) { ...@@ -16585,7 +16787,31 @@ function instance($$self, $$props, $$invalidate) {
16585 if ("sidebar_show" in $$props) $$invalidate(0, sidebar_show = $$props.sidebar_show); 16787 if ("sidebar_show" in $$props) $$invalidate(0, sidebar_show = $$props.sidebar_show);
16586 }; 16788 };
16587 16789
16588 - return [sidebar_show, festa, hide, sidebar_show_binding]; 16790 + $$self.$$.update = () => {
16791 + if ($$self.$$.dirty & /*festa*/ 2) {
16792 + $: if (festa.weathers) $$invalidate(5, weatherData = JSON.parse(festa.weathers));
16793 + }
16794 +
16795 + if ($$self.$$.dirty & /*festa, weatherData*/ 34) {
16796 + $: if (festa.weathers) $$invalidate(2, weathers = Array.from(Object.keys(weatherData)).map(v => {
16797 + return {
16798 + "date": v.slice(4),
16799 + "temp": weatherData[v].temp,
16800 + "weather": weatherData[v].weather
16801 + };
16802 + }));
16803 + }
16804 + };
16805 +
16806 + return [
16807 + sidebar_show,
16808 + festa,
16809 + weathers,
16810 + WEATHERIMG,
16811 + hide,
16812 + weatherData,
16813 + sidebar_show_binding
16814 + ];
16589 } 16815 }
16590 16816
16591 class Info extends svelte_internal__WEBPACK_IMPORTED_MODULE_0__["SvelteComponent"] { 16817 class Info extends svelte_internal__WEBPACK_IMPORTED_MODULE_0__["SvelteComponent"] {
...@@ -16647,9 +16873,9 @@ module.exports = exported; ...@@ -16647,9 +16873,9 @@ module.exports = exported;
16647 __webpack_require__.r(__webpack_exports__); 16873 __webpack_require__.r(__webpack_exports__);
16648 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs"); 16874 /* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
16649 /* harmony import */ var svelte_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! svelte/transition */ "./node_modules/svelte/transition/index.mjs"); 16875 /* harmony import */ var svelte_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! svelte/transition */ "./node_modules/svelte/transition/index.mjs");
16650 -/* harmony import */ var D_Library_TFT_src_SideItems_SideBar_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/SideItems/SideBar.svelte.css */ "./src/SideItems/SideBar.svelte.css"); 16876 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_SideBar_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/SideItems/SideBar.svelte.css */ "./src/SideItems/SideBar.svelte.css");
16651 -/* harmony import */ var D_Library_TFT_src_SideItems_SideBar_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(D_Library_TFT_src_SideItems_SideBar_svelte_css__WEBPACK_IMPORTED_MODULE_2__); 16877 +/* harmony import */ var _home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_SideBar_svelte_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_home_junhyuk_Programming_OSS_TFT_WEB_src_SideItems_SideBar_svelte_css__WEBPACK_IMPORTED_MODULE_2__);
16652 -/* src\SideItems\SideBar.svelte generated by Svelte v3.20.1 */ 16878 +/* src/SideItems/SideBar.svelte generated by Svelte v3.20.1 */
16653 16879
16654 16880
16655 16881
...@@ -16677,8 +16903,8 @@ function create_if_block(ctx) { ...@@ -16677,8 +16903,8 @@ function create_if_block(ctx) {
16677 t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])(); 16903 t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
16678 div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 16904 div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
16679 if (default_slot_or_fallback) default_slot_or_fallback.c(); 16905 if (default_slot_or_fallback) default_slot_or_fallback.c();
16680 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navitems svelte-8dqk19"); 16906 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navitems svelte-mr77hz");
16681 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", nav_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])("nav " + /*side*/ ctx[1]) + " svelte-8dqk19")); 16907 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", nav_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])("nav " + /*side*/ ctx[1]) + " svelte-mr77hz"));
16682 }, 16908 },
16683 m(target, anchor) { 16909 m(target, anchor) {
16684 if (if_block0) if_block0.m(target, anchor); 16910 if (if_block0) if_block0.m(target, anchor);
...@@ -16727,7 +16953,7 @@ function create_if_block(ctx) { ...@@ -16727,7 +16953,7 @@ function create_if_block(ctx) {
16727 } 16953 }
16728 } 16954 }
16729 16955
16730 - if (!current || dirty & /*side*/ 2 && nav_class_value !== (nav_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])("nav " + /*side*/ ctx[1]) + " svelte-8dqk19"))) { 16956 + if (!current || dirty & /*side*/ 2 && nav_class_value !== (nav_class_value = "" + (Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["null_to_empty"])("nav " + /*side*/ ctx[1]) + " svelte-mr77hz"))) {
16731 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", nav_class_value); 16957 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", nav_class_value);
16732 } 16958 }
16733 }, 16959 },
...@@ -16788,7 +17014,7 @@ function create_if_block_2(ctx) { ...@@ -16788,7 +17014,7 @@ function create_if_block_2(ctx) {
16788 return { 17014 return {
16789 c() { 17015 c() {
16790 div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 17016 div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
16791 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "bg svelte-8dqk19"); 17017 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "bg svelte-mr77hz");
16792 }, 17018 },
16793 m(target, anchor, remount) { 17019 m(target, anchor, remount) {
16794 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor); 17020 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
...@@ -16814,7 +17040,7 @@ function create_if_block_1(ctx) { ...@@ -16814,7 +17040,7 @@ function create_if_block_1(ctx) {
16814 c() { 17040 c() {
16815 div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div"); 17041 div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
16816 t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t_value); 17042 t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t_value);
16817 - Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navtop svelte-8dqk19"); 17043 + Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navtop svelte-mr77hz");
16818 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_style"])(div, "justify-content", /*side*/ ctx[1] == "left" ? "right" : "left"); 17044 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_style"])(div, "justify-content", /*side*/ ctx[1] == "left" ? "right" : "left");
16819 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_style"])(div, "cursor", "pointer"); 17045 Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_style"])(div, "cursor", "pointer");
16820 }, 17046 },
...@@ -16838,7 +17064,7 @@ function create_if_block_1(ctx) { ...@@ -16838,7 +17064,7 @@ function create_if_block_1(ctx) {
16838 }; 17064 };
16839 } 17065 }
16840 17066
16841 -// (84:18) 17067 +// (84:18)
16842 function fallback_block(ctx) { 17068 function fallback_block(ctx) {
16843 return { c: svelte_internal__WEBPACK_IMPORTED_MODULE_0__["noop"], m: svelte_internal__WEBPACK_IMPORTED_MODULE_0__["noop"], d: svelte_internal__WEBPACK_IMPORTED_MODULE_0__["noop"] }; 17069 return { c: svelte_internal__WEBPACK_IMPORTED_MODULE_0__["noop"], m: svelte_internal__WEBPACK_IMPORTED_MODULE_0__["noop"], d: svelte_internal__WEBPACK_IMPORTED_MODULE_0__["noop"] };
16844 } 17070 }
......
This diff could not be displayed because it is too large.
...@@ -5,29 +5,29 @@ const MongoClient = mongodb.MongoClient; ...@@ -5,29 +5,29 @@ const MongoClient = mongodb.MongoClient;
5 5
6 var app = express() 6 var app = express()
7 7
8 -const PORT = 1697; 8 +const PORT = 8484;
9 const url = 'mongodb://mongo:27017'; 9 const url = 'mongodb://mongo:27017';
10 var db; 10 var db;
11 app.use(express.urlencoded({ extended: true })); 11 app.use(express.urlencoded({ extended: true }));
12 12
13 app.use("/public", express.static('./public')); 13 app.use("/public", express.static('./public'));
14 14
15 +app.get('/festivalList', (req, res) => { // localhost:3000/festivalList 입력하면 list.ejs에 저장한 형식대로 정보 불러와짐
16 + //디비에 저장된 festivals 라는 collection안의 데이터(제목 또는 내용 등)를 꺼내기
17 + db.collection('festivals').find().toArray((err, rslt) => { //DB에서 데이터를 찾음 festivals라는 collection안의 데이터를 꺼내게 됨
18 + if (err) throw err;
19 + res.json(rslt); // 찾은 데이터를 json으로 전송
20 + });
21 +});
22 +
15 app.get("/*", (req, res) => { 23 app.get("/*", (req, res) => {
16 res.sendFile(path.join(__dirname, "./public/index.html")) 24 res.sendFile(path.join(__dirname, "./public/index.html"))
17 }) 25 })
18 26
19 -app.get('/festivalList', (req, res) => { // localhost:3000/festivalList 입력하면 list.ejs에 저장한 형식대로 정보 불러와짐
20 - //디비에 저장된 festivals 라는 collection안의 데이터(제목 또는 내용 등)를 꺼내기
21 - db.collection('festivals').find().toArray((err, rslt) => { //DB에서 데이터를 찾음 festivals라는 collection안의 데이터를 꺼내게 됨
22 - if (err) throw err;
23 - console.log(rslt);
24 - res.render('list.ejs', { posts: rslt }); // 찾은 데이터를 ejs 파일에 넣음
25 - });
26 -});
27 27
28 MongoClient.connect(url, (error, client) => { // 서버열때 url 사용 mongoDB와 연결시키기 28 MongoClient.connect(url, (error, client) => { // 서버열때 url 사용 mongoDB와 연결시키기
29 if (error) return console.log(error); 29 if (error) return console.log(error);
30 - db = client.db('myFirstDatabase'); 30 + db = client.db('test');
31 app.listen(PORT, () => { 31 app.listen(PORT, () => {
32 console.log(`Server lauched on port ${PORT}`); 32 console.log(`Server lauched on port ${PORT}`);
33 }); 33 });
......
...@@ -9,8 +9,14 @@ ...@@ -9,8 +9,14 @@
9 function LoadFestas() { 9 function LoadFestas() {
10 let url = "/festivalList"; 10 let url = "/festivalList";
11 jQuery.getJSON(url, (json) => { 11 jQuery.getJSON(url, (json) => {
12 - AllFestas.set(json.response.body.items.item); 12 + AllFestas.set(json);
13 + // console.log(json);
13 }); 14 });
15 + // let url = "http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList?ServiceKey=2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=A&numOfRows=12&pageNo=1&_type=json";
16 + // jQuery.getJSON(url, (json) => {
17 + // AllFestas.set(json.response.body.items.item);
18 + // console.log(json.response.body.items.item);
19 + // });
14 } 20 }
15 </script> 21 </script>
16 22
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
80 return function() { 80 return function() {
81 Festa = festa; 81 Festa = festa;
82 ShowInfo = true; 82 ShowInfo = true;
83 - console.log(Festa); 83 + // console.log(Festa);
84 } 84 }
85 }; 85 };
86 kakao.maps.event.addListener(marker, 'click', showInfo(data[i])); 86 kakao.maps.event.addListener(marker, 'click', showInfo(data[i]));
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
23 23
24 let festaChecked = []; 24 let festaChecked = [];
25 $: festaList = $AllFestas.filter( v => { 25 $: festaList = $AllFestas.filter( v => {
26 - if(v.addr1) { 26 + if(v.addr) {
27 - let district = v.addr1.split(" ")[0]; 27 + let district = v.addr.split(" ")[0];
28 - let city = v.addr1.split(" ")[1]; 28 + let city = v.addr.split(" ")[1];
29 return ($District === "" || district === $District) && 29 return ($District === "" || district === $District) &&
30 ($City === "" || city === $City); 30 ($City === "" || city === $City);
31 } else { 31 } else {
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
33 } 33 }
34 }); 34 });
35 $: festaParsed = festaList.map( (v, i) => { 35 $: festaParsed = festaList.map( (v, i) => {
36 - return { "id" : i, "title" : v.title, "addr1" : v.addr1, "contentid" : v.contentid, "checked" : false } 36 + return { "id" : i, "title" : v.title, "addr" : v.addr, "contentid" : v.contentid, "checked" : false }
37 }); 37 });
38 $: if ($Changed) { 38 $: if ($Changed) {
39 let len = festaList.length >= 9 ? 9 : festaList.length; 39 let len = festaList.length >= 9 ? 9 : festaList.length;
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
142 <div class="{festa.checked ? "selected" : "festa"}" 142 <div class="{festa.checked ? "selected" : "festa"}"
143 on:click={() => {check(festa.id)}}> 143 on:click={() => {check(festa.id)}}>
144 <div class="title">{festa.title}</div> 144 <div class="title">{festa.title}</div>
145 - <div class="addr"><img alt="pin" src="/public/map-pin.png"><div>{festa.addr1}</div></div> 145 + <div class="addr"><img alt="pin" src="/public/map-pin.png"><div>{festa.addr}</div></div>
146 </div> 146 </div>
147 {/each} 147 {/each}
148 {:else} 148 {:else}
......
1 +<script>
2 + import SideBar from "./SideBar.svelte"
3 +
4 + export let festa;
5 + export let sidebar_show = false;
6 + var side = "right";
7 + var weatherData, weathers;
8 +
9 + const WEATHERIMG = {
10 + "맑음" : "./public/sunny.png",
11 + "비" : "./public/rain.png",
12 + "비/눈" : "./public/rainsnow.png",
13 + "눈" : "./public/snow.png"
14 + }
15 +
16 + function hide() {
17 + if (window.scrollY > 400) {
18 + sidebar_show = false;
19 + }
20 + }
21 +
22 + $: if(festa.weathers) weatherData = JSON.parse(festa.weathers);
23 + $: if(festa.weathers) weathers = Array.from(Object.keys(weatherData)).map((v) => {
24 + return { "date" : v.slice(4), "temp" : weatherData[v].temp, "weather" : weatherData[v].weather };
25 + });
26 +
27 +</script>
28 +
29 +<style>
30 + .info {
31 + display: flex;
32 + flex-direction: column;
33 + align-items: center;
34 + }
35 +
36 + .title {
37 + font-size: 18pt;
38 + font-weight: bold;
39 + }
40 +
41 + .content {
42 + padding: 0.5rem 0.5rem 0.5rem;
43 + text-align: left;
44 + }
45 +
46 + .festaimg {
47 + max-width: 560px;
48 + }
49 +
50 + .locpin, .telpin, .calpin {
51 + width: 20px;
52 + height: 20px;
53 + }
54 +
55 + .weather {
56 + /* border: 1px solid #999999; */
57 + border-collapse: collapse;
58 + }
59 +
60 + .weather td {
61 + padding: 0.3rem;
62 + border: 1px solid #cccccc;
63 + }
64 +
65 + .weatherimg {
66 + width : 100px;
67 + }
68 +
69 +
70 +</style>
71 +
72 +<svelte:window on:scroll={hide}></svelte:window>
73 +<SideBar bind:show={sidebar_show} {side}>
74 + <div class="info">
75 + <div class="title">{festa.title}</div>
76 + <img class="festaimg" alt="festaimg" src={festa.firstimage}><br>
77 + {#if weathers}
78 + <table class="weather"><tr>
79 + {#each weathers as weather}
80 + <td class="weathercell">
81 + <img class="weatherimg" alt="weather" src={WEATHERIMG[weather.weather]}><br>
82 + {weather.date.slice(0, 2) + '/' + weather.date.slice(2, 4)}<br>
83 + {weather.temp}℃<br>
84 + </td>
85 + {/each}
86 + </tr></table>
87 + {/if}
88 + <div class="content">
89 + <img class="locpin" alt="pin" src="/public/map-pin.png"> 개최지 : {festa.addr}<br>
90 + <img class="telpin" alt="pin" src="/public/tel-pin.jpeg"> 전화번호 : {festa.tel}<br>
91 + <img class="calpin" alt="pin" src="/public/cal-pin.png"> 행사일 : {festa.eventstartdate} - {festa.eventenddate}<br>
92 + </div>
93 + </div>
94 +
95 +
96 +
97 +</SideBar>
This diff could not be displayed because it is too large.
1 -<script>
2 - import SideBar from "./SideBar.svelte"
3 -
4 - export let festa;
5 - export let sidebar_show = false;
6 - let side = "right";
7 -
8 - function hide() {
9 - if (window.scrollY > 400) {
10 - sidebar_show = false;
11 - }
12 - }
13 -</script>
14 -
15 -<style>
16 - .title {
17 - font-size: 18pt;
18 - font-weight: bold;
19 - text-align: center;
20 - }
21 -
22 - .content {
23 - padding: 0.5rem 0.5rem 0.5rem;
24 - text-align: center;
25 - }
26 -
27 - .info img {
28 - max-height: 20rem;
29 - }
30 -
31 -</style>
32 -
33 -<svelte:window on:scroll={hide}></svelte:window>
34 -<SideBar bind:show={sidebar_show} {side}>
35 - <div class="info">
36 - <div class="title">{festa.title}</div>
37 - <img alt="festaImg" src={festa.firstimage}><br>
38 - <div class="content">
39 - 개최지 : {festa.addr1}<br>
40 - 전화번호 : {festa.tel}<br>
41 - <!-- 행사 시작일 : {festa.startdate}<br>
42 - 행사 시작일 : {festa.enddate}<br>
43 - 날씨 : {festa.weather 어쩌구} -->
44 - </div>
45 - </div>
46 -
47 -
48 -
49 -</SideBar>
1 -<!DOCTYPE html>
2 -<html>
3 -
4 -<head>
5 - <meta charset="UTF-8">
6 - <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 - <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 - <title>Festival Information</title>
9 -</head>
10 -
11 -<body>
12 - <% for(let i=0; i < posts.length ; i++){ %>
13 - <h4>제목 : <%= posts[i].title %>
14 - </h4>
15 - <h4>주소 : <%= posts[i].addr %>
16 - </h4>
17 - <h4>전화번호 : <%= posts[i].tel %>
18 - </h4>
19 - <h4>mapx : <%= posts[i].mapx %>
20 - </h4>
21 - <h4>mapy : <%= posts[i].mapy %>
22 - </h4>
23 - <h4>갱신일 : <%= posts[i].updatedAt %>
24 - </h4>
25 - <h4> ------------------- </h4>
26 - <% } %>
27 -</body>
28 -
29 -</html>
...\ No newline at end of file ...\ No newline at end of file