Junhyuyk Seo

Integrate server with apihandler

Showing 50 changed files with 1655 additions and 226 deletions
node_modules
npm-debug.log
\ No newline at end of file
FROM node:14
LABEL title="TFT-APIHandler"
LABEL version="1.00"
# set working directory
WORKDIR /app
# install modules and dependencies
COPY package*.json ./
RUN npm install
# copy source codes
COPY ./ ./
#start application
CMD [ "node", "server.js" ]
\ No newline at end of file
exports.COORDINATES = {
"서울특별시" : {
"종로구" : [60, 127],
"중구" : [60, 127],
"용산구" : [60, 126],
"성동구" : [61, 127],
"광진구" : [62, 126],
"동대문구" : [61, 127],
"중랑구" : [62, 128],
"성북구" : [61, 127],
"강북구" : [61, 128],
"도봉구" : [61, 129],
"노원구" : [61, 129],
"은평구" : [59, 127],
"서대문구" : [59, 127],
"마포구" : [59, 127],
"양천구" : [58, 126],
"강서구" : [58, 126],
"구로구" : [58, 125],
"금천구" : [59, 124],
"영등포구" : [58, 126],
"동작구" : [59, 125],
"관악구" : [59, 125],
"서초구" : [61, 125],
"강남구" : [61, 126],
"송파구" : [62, 126],
"강동구" : [62, 126]
},
"부산광역시" : {
"중구" : [97, 74],
"서구" : [97, 74],
"동구" : [98, 75],
"영도구" : [98, 74],
"부산진구" : [97, 75],
"동래구" : [98, 76],
"남구" : [98, 75],
"북구" : [96, 76],
"해운대구" : [99, 75],
"사하구" : [96, 74],
"금정구" : [98, 77],
"강서구" : [96, 76],
"연제구" : [98, 76],
"수영구" : [99, 75],
"사상구" : [96, 75],
"기장군" : [100, 77]
},
"대구광역시" : {
"중구" : [89, 90],
"동구" : [90, 91],
"서구" : [88, 90],
"남구" : [89, 90],
"북구" : [89, 91],
"수성구" : [89, 90],
"달서구" : [88, 90],
"달성군" : [86, 88]
},
"인천광역시" : {
"중구" : [54, 125],
"동구" : [54, 125],
"미추홀구" : [54, 124],
"연수구" : [55, 123],
"남동구" : [56, 124],
"부평구" : [55, 125],
"계양구" : [56, 126],
"서구" : [55, 126],
"강화군" : [51, 130],
"옹진군" : [54, 124]
},
"광주광역시" : {
"동구" : [60, 74],
"서구" : [59, 74],
"남구" : [59, 73],
"북구" : [59, 75],
"광산구" : [57, 74]
},
"대전광역시" : {
"동구" : [68, 100],
"중구" : [68, 100],
"서구" : [67, 100],
"유성구" : [67, 101],
"대덕구" : [68, 100]
},
"울산광역시" : {
"중구" : [102, 84],
"남구" : [102, 84],
"동구" : [104, 83],
"북구" : [103, 85],
"울주군" : [101, 84]
},
"세종특별자치시" : {
"세종특별자치시": [66, 103]
},
"경기도" : {
"수원시" : [61, 120],
"성남시" : [63, 124],
"의정부시" : [61, 130],
"안양시" : [59, 123],
"부천시" : [56, 125],
"광명시" : [58, 125],
"평택시" : [62, 114],
"동두천시" : [61, 134],
"안산시" : [58, 121],
"고양시" : [57, 128],
"과천시" : [60, 124],
"구리시" : [62, 127],
"남양주시" : [64, 128],
"오산시" : [62, 118],
"시흥시" : [57, 123],
"군포시" : [59, 122],
"의왕시" : [60, 122],
"하남시" : [64, 126],
"용인시" : [64, 119],
"파주시" : [56, 131],
"이천시" : [68, 121],
"안성시" : [65, 115],
"김포시" : [55, 128],
"화성시" : [57, 119],
"광주시" : [65, 123],
"양주시" : [61, 131],
"포천시" : [64, 134],
"여주시" : [71, 121],
"연천군" : [61, 138],
"가평군" : [69, 133],
"양평군" : [69, 125]
},
"강원도" : {
"춘천시" : [73, 134],
"원주시" : [76, 122],
"강릉시" : [92, 131],
"동해시" : [97, 127],
"태백시" : [95, 119],
"속초시" : [87, 141],
"삼척시" : [98, 125],
"홍천군" : [75, 130],
"횡성군" : [77, 125],
"영월군" : [86, 119],
"평창군" : [84, 123],
"정선군" : [89, 123],
"철원군" : [65, 139],
"화천군" : [72, 139],
"양구군" : [77, 139],
"인제군" : [80, 138],
"고성군" : [85, 145],
"양양군" : [88, 138]
},
"충청북도" : {
"청주시" : [69, 106],
"충주시" : [76, 114],
"제천시" : [81, 118],
"보은군" : [73, 103],
"옥천군" : [71, 99],
"영동군" : [74, 97],
"증평군" : [71, 110],
"진천군" : [68, 111],
"괴산군" : [74, 111],
"음성군" : [72, 113],
"단양군" : [84, 115]
},
"충청남도" : {
"천안시" : [63, 110],
"공주시" : [63, 102],
"보령시" : [54, 100],
"아산시" : [60, 110],
"서산시" : [51, 110],
"논산시" : [62, 97],
"계룡시" : [65, 99],
"당진시" : [54, 112],
"금산군" : [69, 95],
"부여군" : [59, 99],
"서천군" : [55, 94],
"청양군" : [57, 103],
"홍성군" : [55, 106],
"예산군" : [58, 107],
"태안군" : [48, 109]
},
"전라북도" : {
"전주시" : [63, 89],
"군산시" : [56, 92],
"익산시" : [60, 91],
"정읍시" : [58, 83],
"남원시" : [68, 80],
"김제시" : [59, 88],
"완주군" : [63, 89],
"진안군" : [68, 88],
"무주군" : [72, 93],
"장수군" : [70, 85],
"임실군" : [66, 84],
"순창군" : [63, 79],
"고창군" : [56, 80],
"부안군" : [56, 87]
},
"전라남도" : {
"목포시" : [50, 67],
"여수시" : [73, 66],
"순천시" : [70, 70],
"나주시" : [56, 71],
"광양시" : [73, 70],
"담양군" : [61, 78],
"곡성군" : [66, 77],
"구례군" : [69, 75],
"고흥군" : [66, 62],
"보성군" : [62, 66],
"화순군" : [61, 72],
"장흥군" : [59, 64],
"강진군" : [57, 63],
"해남군" : [54, 61],
"영암군" : [56, 66],
"무안군" : [52, 71],
"함평군" : [52, 72],
"영광군" : [52, 77],
"장성군" : [57, 77],
"완도군" : [57, 56],
"진도군" : [48, 59],
"신안군" : [50, 66]
},
"경상북도" : {
"포항시" : [102, 94],
"경주시" : [100, 91],
"김천시" : [80, 96],
"안동시" : [91, 106],
"구미시" : [84, 96],
"영주시" : [89, 111],
"영천시" : [95, 93],
"상주시" : [81, 102],
"문경시" : [81, 106],
"경산시" : [91, 90],
"군위군" : [88, 99],
"의성군" : [90, 101],
"청송군" : [96, 103],
"영양군" : [97, 108],
"영덕군" : [102, 103],
"청도군" : [91, 86],
"고령군" : [83, 87],
"성주군" : [83, 91],
"칠곡군" : [85, 93],
"예천군" : [86, 107],
"봉화군" : [90, 113],
"울진군" : [102, 115],
"울릉군" : [127, 127]
},
"경상남도" : {
"창원시" : [90, 77],
"진주시" : [81, 75],
"통영시" : [87, 68],
"사천시" : [80, 71],
"김해시" : [95, 77],
"밀양시" : [92, 83],
"거제시" : [90, 69],
"양산시" : [97, 79],
"의령군" : [83, 78],
"함안군" : [86, 77],
"창녕군" : [87, 83],
"고성군" : [85, 71],
"남해군" : [77, 68],
"하동군" : [74, 73],
"산청군" : [76, 80],
"함양군" : [74, 82],
"거창군" : [77, 86],
"합천군" : [81, 84]
},
"제주특별자치도" : {
"제주시" : [53, 38],
"서귀포시" : [52, 33]
}
}
\ No newline at end of file
const mongoose =require('mongoose');
const { Schema } =mongoose;
const festivalSchema = new Schema({
title: String,
addr: String,
tel: String,
contentid : Number,
mapx : Number,
mapy : Number,
eventstartdate : String,
eventenddate : String,
overview : String,
firstimage : String,
homepage : String,
weathers : String
// weather : {
// date1: { weather : String, temp : Number},
// date2: { weather : String, temp : Number},
// date3: { weather : String, temp : Number},
// }
},
{
versionKey: false
});
module.exports = mongoose.model('Festival',festivalSchema);
{
"name": "REST-API",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/node": {
"version": "16.11.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.9.tgz",
"integrity": "sha512-MKmdASMf3LtPzwLyRrFjtFFZ48cMf8jmX5VRYrDQiJa8Ybu5VAmkqBWqKU8fdCwD8ysw4mQ9nrEHvzg6gunR7A=="
},
"@types/webidl-conversions": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz",
"integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q=="
},
"@types/whatwg-url": {
"version": "8.2.1",
"resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz",
"integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==",
"requires": {
"@types/node": "*",
"@types/webidl-conversions": "*"
}
},
"ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
"requires": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
}
},
"asn1": {
"version": "0.2.6",
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",
"integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",
"requires": {
"safer-buffer": "~2.1.0"
}
},
"assert-plus": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
"integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
},
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
},
"aws-sign2": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
},
"aws4": {
"version": "1.11.0",
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz",
"integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA=="
},
"base64-js": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
},
"bcrypt-pbkdf": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
"requires": {
"tweetnacl": "^0.14.3"
}
},
"bson": {
"version": "4.5.4",
"resolved": "https://registry.npmjs.org/bson/-/bson-4.5.4.tgz",
"integrity": "sha512-wIt0bPACnx8Ju9r6IsS2wVtGDHBr9Dxb+U29A1YED2pu8XOhS8aKjOnLZ8sxyXkPwanoK7iWWVhS1+coxde6xA==",
"requires": {
"buffer": "^5.6.0"
}
},
"buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"requires": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
},
"caseless": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
},
"combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"requires": {
"delayed-stream": "~1.0.0"
}
},
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"dashdash": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
"requires": {
"assert-plus": "^1.0.0"
}
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
},
"denque": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz",
"integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ=="
},
"dotenv": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz",
"integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q=="
},
"ecc-jsbn": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"requires": {
"jsbn": "~0.1.0",
"safer-buffer": "^2.1.0"
}
},
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
},
"extsprintf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
},
"fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
},
"fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
},
"forever-agent": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
"integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
},
"form-data": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
"requires": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.6",
"mime-types": "^2.1.12"
}
},
"getpass": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"requires": {
"assert-plus": "^1.0.0"
}
},
"har-schema": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
"integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
},
"har-validator": {
"version": "5.1.5",
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
"integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
"requires": {
"ajv": "^6.12.3",
"har-schema": "^2.0.0"
}
},
"http-signature": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"requires": {
"assert-plus": "^1.0.0",
"jsprim": "^1.2.2",
"sshpk": "^1.7.0"
}
},
"ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="
},
"is-typedarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
},
"isstream": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
},
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
},
"json-schema": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
},
"json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
},
"json-stringify-safe": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
"integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
},
"jsprim": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
"requires": {
"assert-plus": "1.0.0",
"extsprintf": "1.3.0",
"json-schema": "0.2.3",
"verror": "1.10.0"
}
},
"kareem": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz",
"integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ=="
},
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"memory-pager": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
"integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
"optional": true
},
"mime-db": {
"version": "1.51.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz",
"integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g=="
},
"mime-types": {
"version": "2.1.34",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz",
"integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",
"requires": {
"mime-db": "1.51.0"
}
},
"mongodb": {
"version": "4.1.4",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.1.4.tgz",
"integrity": "sha512-Cv/sk8on/tpvvqbEvR1h03mdyNdyvvO+WhtFlL4jrZ+DSsN/oSQHVqmJQI/sBCqqbOArFcYCAYDfyzqFwV4GSQ==",
"requires": {
"bson": "^4.5.4",
"denque": "^2.0.1",
"mongodb-connection-string-url": "^2.1.0",
"saslprep": "^1.0.3"
}
},
"mongodb-connection-string-url": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.2.0.tgz",
"integrity": "sha512-U0cDxLUrQrl7DZA828CA+o69EuWPWEJTwdMPozyd7cy/dbtncUZczMw7wRHcwMD7oKOn0NM2tF9jdf5FFVW9CA==",
"requires": {
"@types/whatwg-url": "^8.2.1",
"whatwg-url": "^11.0.0"
}
},
"mongoose": {
"version": "6.0.13",
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.13.tgz",
"integrity": "sha512-/M/YKgx23fCX+j0lwObaHbCibXnMjyWeQrXZf0WaQeS/hL86wQVSmaOxh+kZXfyLOUr+vT2Hl44o50GZHUrKWw==",
"requires": {
"bson": "^4.2.2",
"kareem": "2.3.2",
"mongodb": "4.1.4",
"mpath": "0.8.4",
"mquery": "4.0.0",
"ms": "2.1.2",
"regexp-clone": "1.0.0",
"sift": "13.5.2",
"sliced": "1.0.1"
},
"dependencies": {
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
"mpath": {
"version": "0.8.4",
"resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.4.tgz",
"integrity": "sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g=="
},
"mquery": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.0.tgz",
"integrity": "sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==",
"requires": {
"debug": "4.x",
"regexp-clone": "^1.0.0",
"sliced": "1.0.1"
},
"dependencies": {
"debug": {
"version": "4.3.2",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
"integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
"requires": {
"ms": "2.1.2"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
}
}
},
"oauth-sign": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
"integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
},
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
},
"psl": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
"integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="
},
"punycode": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
},
"qs": {
"version": "6.5.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
"integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
},
"regexp-clone": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz",
"integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw=="
},
"request": {
"version": "2.88.2",
"resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
"integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
"requires": {
"aws-sign2": "~0.7.0",
"aws4": "^1.8.0",
"caseless": "~0.12.0",
"combined-stream": "~1.0.6",
"extend": "~3.0.2",
"forever-agent": "~0.6.1",
"form-data": "~2.3.2",
"har-validator": "~5.1.3",
"http-signature": "~1.2.0",
"is-typedarray": "~1.0.0",
"isstream": "~0.1.2",
"json-stringify-safe": "~5.0.1",
"mime-types": "~2.1.19",
"oauth-sign": "~0.9.0",
"performance-now": "^2.1.0",
"qs": "~6.5.2",
"safe-buffer": "^5.1.2",
"tough-cookie": "~2.5.0",
"tunnel-agent": "^0.6.0",
"uuid": "^3.3.2"
}
},
"request-promise-core": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz",
"integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==",
"requires": {
"lodash": "^4.17.19"
}
},
"request-promise-native": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz",
"integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==",
"requires": {
"request-promise-core": "1.1.4",
"stealthy-require": "^1.1.1",
"tough-cookie": "^2.3.3"
}
},
"safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
},
"safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"saslprep": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
"integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
"optional": true,
"requires": {
"sparse-bitfield": "^3.0.3"
}
},
"sift": {
"version": "13.5.2",
"resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz",
"integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA=="
},
"sliced": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz",
"integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
},
"sparse-bitfield": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
"integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=",
"optional": true,
"requires": {
"memory-pager": "^1.0.2"
}
},
"sshpk": {
"version": "1.16.1",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
"integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
"requires": {
"asn1": "~0.2.3",
"assert-plus": "^1.0.0",
"bcrypt-pbkdf": "^1.0.0",
"dashdash": "^1.12.0",
"ecc-jsbn": "~0.1.1",
"getpass": "^0.1.1",
"jsbn": "~0.1.0",
"safer-buffer": "^2.0.2",
"tweetnacl": "~0.14.0"
}
},
"stealthy-require": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz",
"integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks="
},
"tough-cookie": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
"integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
"requires": {
"psl": "^1.1.28",
"punycode": "^2.1.1"
}
},
"tr46": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
"integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
"requires": {
"punycode": "^2.1.1"
}
},
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"requires": {
"safe-buffer": "^5.0.1"
}
},
"tweetnacl": {
"version": "0.14.5",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
},
"uri-js": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
"integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
"requires": {
"punycode": "^2.1.0"
}
},
"uuid": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
},
"verror": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"requires": {
"assert-plus": "^1.0.0",
"core-util-is": "1.0.2",
"extsprintf": "^1.2.0"
}
},
"webidl-conversions": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
"integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="
},
"whatwg-url": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
"integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
"requires": {
"tr46": "^3.0.0",
"webidl-conversions": "^7.0.0"
}
}
}
}
{
"name": "REST-API",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"dotenv": "^10.0.0",
"mongoose": "^6.0.13",
"request": "^2.88.2",
"request-promise-native": "^1.0.9"
}
}
const mongoose = require('mongoose');
// const db = require('mongodb');
const Festival = require('./models/Festival');
const request = require('request-promise-native');
const url = 'mongodb://mongo:27017';
const ServiceKey = '3zrQDvoNwUV9Se%2BHZv8DjCCNWRGJisQ7jjHP6LsbJqoRQ2cJpQKrHUGC4uslgXSVO9Dzb06BSC3kp9BunvIPSw%3D%3D';
const ServiceKey2 ='%2FGjtI8kwZeJTzJm%2BxUxz%2Bjh15wnmV3rwFuRvrq3oRSqyklfiZfbUaqmsG0McVPJMdXSUYetGaCXl0ZkbfMI0BQ%3D%3D'
const ServiceKey3 ='%2FsBWti235XX%2Fg1%2FqBZfiNQ6A%2BJmF3WL%2FboaNqJH4v3eWic59SiHc6W5vgZKU7Hjocj%2BAntIqHfhXOpmE5CpAFw%3D%3D'
const WeatherServiceKey = '2lFkvQJYgzOOhwUKiUt8aZVNpd1PpBOf%2FfMNW17cl25DE0GUEDddeR9iGnuSUpggjUoIUgamfhcvnKQ3eH1dAw%3D%3D';
const COORDINATES = require('./coordinates')['COORDINATES'];
const DISTRICT = [
"서울특별시", "부산광역시", "울산광역시", "대구광역시", "대전광역시",
"인천광역시", "광주광역시", "세종특별자치시", "제주특별자치도",
"경기도", "강원도", "충청북도", "충청남도", "경상북도",
"경상남도", "전라북도", "전라남도"
]
const WEATHERTYPE = [
'맑음', '비', '비/눈', '눈', '소나기'
];
function parseDistrict(addr) {
const words = addr.split(" ");
if( DISTRICT.includes(words[0]) ) {
return [words[0], words[1]];
} else {
return [];
}
}
function leftPad(value) { if (value >= 10) { return value; } return `0${value}`; }
writeDB()
setInterval(() => {
writeDB();
}, 86400000);
function writeDB() {
var today = new Date();
var yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);
let todayString = "" + (today.getFullYear())+leftPad(today.getMonth()+1)+leftPad(today.getDate());
let yesterdayString = "" + (yesterday.getFullYear())+leftPad(yesterday.getMonth()+1)+leftPad(yesterday.getDate()-1);
var todayTime = leftPad(today.getHours()) + "00";
mongoose.connect(url,(err)=>{
if(err) {
console.log(err);
} else {
mongoose.connection.db.dropCollection('festivals',function(err, result) {
if(err) {
console.log(err + "Reset Failed!");
} else {
console.log(result + "Reset Success!");
for(let i = 1; i <= 5; i++) {
let options = {
'method': 'GET',
'url' : 'http://api.visitkorea.or.kr/openapi/service/rest/KorService/areaBasedList'
+ '?ServiceKey=' + ServiceKey2
+ '&contentTypeId=15&areaCode=&sigunguCode=&cat1=&cat2=&cat3=&listYN=Y&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&arrange=C&numOfRows=12'
+ '&pageNo='+ i
+ '&_type=json',
'headers': {}
};
request(options, async function (error, response, body) {
if (error) {
throw new Error(error);
}
let info = JSON.parse(body);
let items = info['response']['body']['items']['item'];
for(item of items) {
let Info = {
'public': {
'method': 'GET',
'url': 'http://api.visitkorea.or.kr/openapi/service/rest/KorService/detailCommon?'
+ 'ServiceKey=' + ServiceKey2
+ '&contentTypeId=' + '15'
+ '&contentId=' + item['contentid']
+ '&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&defaultYN=Y&firstImageYN=Y&areacodeYN=Y&catcodeYN=Y&addrinfoYN=Y&mapinfoYN=Y&overviewYN=Y&transGuideYN=Y&_type=json',
'headers': {}
},
'detail': {
'method': 'GET',
'url': 'http://api.visitkorea.or.kr/openapi/service/rest/KorService/detailIntro?'
+ 'ServiceKey=' + ServiceKey2
+ '&contentTypeId=' + '15'
+ '&contentId=' + item['contentid']
+ '&MobileOS=ETC&MobileApp=TourAPI3.0_Guide&introYN=Y&_type=json',
'headers': {}
},
'weather': {
'method': 'GET',
'url': '',
'headers': {}
}
};
await request(Info.public, async function (error, response, body) {
if (error) {
throw new Error(error);
}
let toSave = true;
let pinfo = JSON.parse(body);
let distriction = parseDistrict(pinfo['response']['body']['items']['item']['addr1']);
if (distriction.length == 0) toSave = false;
const newFestival = new Festival();
newFestival.title = pinfo['response']['body']['items']['item']['title'];
newFestival.contentid = pinfo['response']['body']['items']['item']['contentid'];
newFestival.addr = pinfo['response']['body']['items']['item']['addr1'];
newFestival.tel = pinfo['response']['body']['items']['item']['tel'];
newFestival.mapx = pinfo['response']['body']['items']['item']['mapx'];
newFestival.mapy = pinfo['response']['body']['items']['item']['mapy'];
newFestival.overview= pinfo['response']['body']['items']['item']['overview'];
newFestival.firstimage = pinfo['response']['body']['items']['item']['firstimage'];
newFestival.homepage = pinfo ['response']['body']['items']['item']['homepage'];
await request(Info.detail, function (error, response, body) {
if (error) {
throw new Error(error);
}
let dinfo = JSON.parse(body);
newFestival.eventstartdate = dinfo['response']['body']['items']['item']['eventstartdate'];
newFestival.eventenddate = dinfo['response']['body']['items']['item']['eventenddate'];
if (newFestival.eventenddate < todayString) toSave = false;
});
let [nx, ny] = COORDINATES[distriction[0]][distriction[1]];
let curDate = ('0500' < todayTime ? todayString : yesterdayString);
Info.weather.url = 'http://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getVilageFcst?'
+ 'serviceKey=' + WeatherServiceKey
+ '&pageNo=' + '1'
+ '&numOfRows=' + '2000'
+ '&dataType=' + 'JSON'
+ '&base_date=' + curDate
+ '&base_time=' + '0500'
+ '&nx=' + nx
+ '&ny=' + ny;
await request(Info.weather, function (error, response, body) {
if (error) {
throw new Error(error);
}
let winfo = JSON.parse(body);
let weathers = {};
for( let item of winfo['response']['body']['items']['item'] ) {
if(item['fcstTime'] === '1200') { // 최고기온 + 날씨
let fcstDate = item['fcstDate'];
if(!weathers[fcstDate]) weathers[fcstDate] = {};
if(item['category']=='TMP') {
weathers[fcstDate]['temp'] = item['fcstValue'];
} else if(item['category']=='PTY') {
weathers[fcstDate]['weather'] = WEATHERTYPE[item['fcstValue']];
}
}
}
newFestival.weathers = JSON.stringify(weathers);
});
if (toSave)
await newFestival.save().then((festival) => {
console.log(festival, "Save success!");
});
})
}
});
}
}
});
}
});
}
node_modules
npm-debug.log
\ No newline at end of file
FROM node:14
LABEL title="TFT-Webserver"
LABEL version="1.01"
LABEL version="1.00"
# set working directory
WORKDIR /app
......
......@@ -42,6 +42,20 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.7.tgz",
"integrity": "sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw=="
},
"@types/webidl-conversions": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz",
"integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q=="
},
"@types/whatwg-url": {
"version": "8.2.1",
"resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz",
"integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==",
"requires": {
"@types/node": "*",
"@types/webidl-conversions": "*"
}
},
"@webassemblyjs/ast": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
......@@ -505,8 +519,7 @@
"base64-js": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
"integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==",
"dev": true
"integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g=="
},
"base64id": {
"version": "2.0.0",
......@@ -776,6 +789,25 @@
"pako": "~1.0.5"
}
},
"bson": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/bson/-/bson-4.6.0.tgz",
"integrity": "sha512-8jw1NU1hglS+Da1jDOUYuNcBJ4cNHCFIqzlwoFNnsTOg2R/ox0aTYcTiBN4dzRa9q7Cvy6XErh3L8ReTEb9AQQ==",
"requires": {
"buffer": "^5.6.0"
},
"dependencies": {
"buffer": {
"version": "5.7.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
"requires": {
"base64-js": "^1.3.1",
"ieee754": "^1.1.13"
}
}
}
},
"buffer": {
"version": "4.9.2",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz",
......@@ -1375,6 +1407,11 @@
}
}
},
"denque": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz",
"integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ=="
},
"depd": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
......@@ -2326,8 +2363,7 @@
"ieee754": {
"version": "1.1.13",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz",
"integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==",
"dev": true
"integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg=="
},
"iferr": {
"version": "0.1.5",
......@@ -2796,6 +2832,12 @@
"readable-stream": "^2.0.1"
}
},
"memory-pager": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz",
"integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==",
"optional": true
},
"merge-descriptors": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
......@@ -2939,6 +2981,26 @@
"minimist": "^1.2.5"
}
},
"mongodb": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.2.0.tgz",
"integrity": "sha512-lg3MJ9dAKxhogRnIB6/j63gfD7JryZwRC0nNzZ82RhENw4nCmscZVqRfOmNzTvSNndJx9ZhxZpm9JvnKuH/GTA==",
"requires": {
"bson": "^4.5.4",
"denque": "^2.0.1",
"mongodb-connection-string-url": "^2.2.0",
"saslprep": "^1.0.3"
}
},
"mongodb-connection-string-url": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.2.0.tgz",
"integrity": "sha512-U0cDxLUrQrl7DZA828CA+o69EuWPWEJTwdMPozyd7cy/dbtncUZczMw7wRHcwMD7oKOn0NM2tF9jdf5FFVW9CA==",
"requires": {
"@types/whatwg-url": "^8.2.1",
"whatwg-url": "^11.0.0"
}
},
"move-concurrently": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
......@@ -3557,8 +3619,7 @@
"punycode": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
"dev": true
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
},
"pupa": {
"version": "2.1.1",
......@@ -3816,6 +3877,15 @@
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"saslprep": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz",
"integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==",
"optional": true,
"requires": {
"sparse-bitfield": "^3.0.3"
}
},
"schema-utils": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.6.5.tgz",
......@@ -4205,6 +4275,15 @@
"integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
"dev": true
},
"sparse-bitfield": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz",
"integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=",
"optional": true,
"requires": {
"memory-pager": "^1.0.2"
}
},
"split-string": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",
......@@ -4501,6 +4580,14 @@
"nopt": "~1.0.10"
}
},
"tr46": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
"integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
"requires": {
"punycode": "^2.1.1"
}
},
"tslib": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz",
......@@ -4940,6 +5027,11 @@
}
}
},
"webidl-conversions": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
"integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g=="
},
"webpack": {
"version": "4.42.1",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.42.1.tgz",
......@@ -5092,6 +5184,15 @@
"source-map": "~0.6.1"
}
},
"whatwg-url": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
"integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
"requires": {
"tr46": "^3.0.0",
"webidl-conversions": "^7.0.0"
}
},
"which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
......
......@@ -23,6 +23,7 @@
"dependencies": {
"express": "^4.17.1",
"jquery": "^3.6.0",
"mongodb": "^4.2.0",
"nodemon": "^2.0.15",
"socket.io": "^4.3.2",
"socket.io-client": "^4.3.2"
......
......@@ -97,7 +97,7 @@
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -115,7 +115,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -133,7 +133,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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%)}", ""]);
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%)}", ""]);
// Exports
module.exports = exports;
......@@ -151,7 +151,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -169,7 +169,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -187,7 +187,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -205,7 +205,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "#backtotop.svelte-e1i8lo{border-radius:100%;width:50px;height:50px;position:fixed;right:4%;bottom:10%}", ""]);
exports.push([module.i, "#backtotop.svelte-16na1oq{border-radius:100%;width:50px;height:50px;position:fixed;right:4%;bottom:10%}", ""]);
// Exports
module.exports = exports;
......@@ -223,7 +223,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -241,7 +241,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -259,7 +259,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
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}", ""]);
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}", ""]);
// Exports
module.exports = exports;
......@@ -13816,11 +13816,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stores/AllFestas */ "./src/Stores/AllFestas.js");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js");
/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js");
/* harmony import */ var D_Library_TFT_src_App_svelte_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/App.svelte.css */ "./src/App.svelte.css");
/* 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__);
/* src\App.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/App.svelte generated by Svelte v3.20.1 */
......@@ -13852,7 +13850,7 @@ function create_fragment(ctx) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(backtotop.$$.fragment);
t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(article.$$.fragment);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "svelte-1rh62g1");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "svelte-1xd3gxl");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
......@@ -13895,12 +13893,13 @@ function create_fragment(ctx) {
}
function LoadFestas() {
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";
let url = "/festivalList";
jquery__WEBPACK_IMPORTED_MODULE_6___default.a.getJSON(url, json => {
_Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__["AllFestas"].set(json.response.body.items.item);
});
}
_Stores_AllFestas__WEBPACK_IMPORTED_MODULE_5__["AllFestas"].set(json);
}); // console.log(json);
} // 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";
// jQuery.getJSON(url, (json) => {
class App extends svelte_internal__WEBPACK_IMPORTED_MODULE_0__["SvelteComponent"] {
constructor(options) {
......@@ -13960,9 +13959,9 @@ module.exports = exported;
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
/* harmony import */ var D_Library_TFT_src_Articles_svelte_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Articles.svelte.css */ "./src/Articles.svelte.css");
/* 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__);
/* src\Articles.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/Articles.svelte generated by Svelte v3.20.1 */
function create_fragment(ctx) {
......@@ -13978,8 +13977,8 @@ function create_fragment(ctx) {
c() {
div2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div2.innerHTML = `<div class="contents svelte-1q2xp92"><img src="./public/TFTlogo.png" alt=":)" class="svelte-1q2xp92">
<div class="text svelte-1q2xp92"><h3>TFT에 오신 걸 환영합니다!</h3>
div2.innerHTML = `<div class="contents svelte-90y9ti"><img src="./public/TFTlogo.png" alt=":)" class="svelte-90y9ti">
<div class="text svelte-90y9ti"><h3>TFT에 오신 걸 환영합니다!</h3>
Travel &amp; Festival with Temperature<br>
각종 행사 정보와 날씨 정보를 한눈에 알 수 있는 서비스입니다.
</div></div>`;
......@@ -13987,17 +13986,17 @@ function create_fragment(ctx) {
t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
div5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div5.innerHTML = `<div class="contents svelte-1q2xp92"><div class="text svelte-1q2xp92"><h3>손쉬운 행사 탐색</h3>
div5.innerHTML = `<div class="contents svelte-90y9ti"><div class="text svelte-90y9ti"><h3>손쉬운 행사 탐색</h3>
TFT를 통해 전국에서 개최중인 행사와 축제를<br>
한 눈에 확인할 수 있습니다.
</div>
<img src="./public/exploremap.png" alt=";(" class="svelte-1q2xp92"></div>`;
<img src="./public/exploremap.png" alt=";(" class="svelte-90y9ti"></div>`;
t9 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
div8 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div8.innerHTML = `<div class="contents svelte-1q2xp92"><img src="./public/infofesta.png" alt=":)" class="svelte-1q2xp92">
<div class="text svelte-1q2xp92"><h3>행사 정보 확인</h3>
div8.innerHTML = `<div class="contents svelte-90y9ti"><img src="./public/infofesta.png" alt=":)" class="svelte-90y9ti">
<div class="text svelte-90y9ti"><h3>행사 정보 확인</h3>
지도에 표시된 마커를 클릭하여<br>
행사 정보를 확인할 수 있습니다.
</div></div>`;
......@@ -14005,22 +14004,22 @@ function create_fragment(ctx) {
t14 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
div11 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div11.innerHTML = `<div class="contents svelte-1q2xp92"><div class="text svelte-1q2xp92">
div11.innerHTML = `<div class="contents svelte-90y9ti"><div class="text svelte-90y9ti">
사용된 기술 스택은 다음과 같습니다.<br><br>
WEB : NodeJS / Express / Svelte<br>
Database : MongoDB<br>
API Handler : NodeJS / RequestJS<br>
Docker
</div>
<img src="./public/stacks.png" alt=";(" class="svelte-1q2xp92"></div>`;
<img src="./public/stacks.png" alt=";(" class="svelte-90y9ti"></div>`;
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "article wbg svelte-1q2xp92");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "article wbg svelte-90y9ti");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "id", "article1");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "class", "article gbg svelte-1q2xp92");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "class", "article gbg svelte-90y9ti");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div5, "id", "article2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "class", "article wbg svelte-1q2xp92");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "class", "article wbg svelte-90y9ti");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div8, "id", "article3");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "class", "article gbg svelte-1q2xp92");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "class", "article gbg svelte-90y9ti");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div11, "id", "article4");
},
m(target, anchor) {
......@@ -14482,9 +14481,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SideItems_Arealist_svelte__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SideItems/Arealist.svelte */ "./src/SideItems/Arealist.svelte");
/* harmony import */ var _Data_coordinates__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Data/coordinates */ "./src/Data/coordinates.js");
/* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js");
/* harmony import */ var D_Library_TFT_src_Map_svelte_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/Map.svelte.css */ "./src/Map.svelte.css");
/* 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__);
/* src\Map.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/Map.svelte generated by Svelte v3.20.1 */
const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
......@@ -14563,9 +14562,9 @@ function create_fragment(ctx) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["create_component"])(info.$$.fragment);
t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div1.innerHTML = `<div id="map" class="svelte-9k0w06"></div>`;
div1.innerHTML = `<div id="map" class="svelte-d8mjr6"></div>`;
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "id", "map_bg");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "svelte-9k0w06");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "svelte-d8mjr6");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["mount_component"])(festalist, target, anchor);
......@@ -14699,8 +14698,7 @@ function instance($$self, $$props, $$invalidate) {
return function () {
$$invalidate(3, Festa = festa);
$$invalidate(2, ShowInfo = true);
console.log(Festa);
};
}; // console.log(Festa);
};
kakao.maps.event.addListener(marker, "click", showInfo(data[i]));
......@@ -14830,9 +14828,9 @@ module.exports = exported;
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
/* harmony import */ var _Menuitems_svelte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Menuitems.svelte */ "./src/Menuitems.svelte");
/* harmony import */ var D_Library_TFT_src_Menu_svelte_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/Menu.svelte.css */ "./src/Menu.svelte.css");
/* 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__);
/* src\Menu.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/Menu.svelte generated by Svelte v3.20.1 */
......@@ -14895,7 +14893,7 @@ function create_fragment(ctx) {
nav = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("nav");
div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
div0.innerHTML = `<img alt="Logo" src="./public/TFTlogo.png" class="svelte-1yis6jl">`;
div0.innerHTML = `<img alt="Logo" src="./public/TFTlogo.png" class="svelte-143b6al">`;
t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
ul = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("ul");
......@@ -14903,11 +14901,11 @@ function create_fragment(ctx) {
each_blocks[i].c();
}
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "logo svelte-1yis6jl");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(ul, "class", "navbar-list svelte-1yis6jl");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "inner svelte-1yis6jl");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "logo svelte-143b6al");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(ul, "class", "navbar-list svelte-143b6al");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "inner svelte-143b6al");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "id", "nav");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", "svelte-1yis6jl");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", "svelte-143b6al");
},
m(target, anchor) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, nav, anchor);
......@@ -15044,9 +15042,9 @@ module.exports = exported;
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
/* harmony import */ var D_Library_TFT_src_Menuitems_svelte_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Menuitems.svelte.css */ "./src/Menuitems.svelte.css");
/* 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__);
/* src\Menuitems.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/Menuitems.svelte generated by Svelte v3.20.1 */
function create_fragment(ctx) {
......@@ -15063,9 +15061,9 @@ function create_fragment(ctx) {
a = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("a");
t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "href", a_href_value = /*item*/ ctx[0].href);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "class", "svelte-1tp05za");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(a, "class", "svelte-1nx14nx");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["toggle_class"])(a, "onmouse", /*onmouse*/ ctx[1]);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(li, "class", "svelte-1tp05za");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(li, "class", "svelte-1nx14nx");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, li, anchor);
......@@ -15179,9 +15177,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SideBar_svelte__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SideBar.svelte */ "./src/SideItems/SideBar.svelte");
/* harmony import */ var _Data_district__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Data/district */ "./src/Data/district.js");
/* harmony import */ var _Stores_DistrictStore__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Stores/DistrictStore */ "./src/Stores/DistrictStore.js");
/* 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");
/* 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__);
/* src\SideItems\Arealist.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/SideItems/Arealist.svelte generated by Svelte v3.20.1 */
const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
......@@ -15217,7 +15215,7 @@ function create_if_block(ctx) {
지역<br>선택
`;
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-1hm3zc2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-17bjrna");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor);
......@@ -15272,7 +15270,7 @@ function create_each_block_1(ctx) {
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]
? "district selected"
: "district") + " svelte-1hm3zc2"));
: "district") + " svelte-17bjrna"));
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
......@@ -15287,7 +15285,7 @@ function create_each_block_1(ctx) {
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]
? "district selected"
: "district") + " svelte-1hm3zc2"))) {
: "district") + " svelte-17bjrna"))) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value);
}
},
......@@ -15322,7 +15320,7 @@ function create_each_block(ctx) {
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]
? "city selected"
: "city") + " svelte-1hm3zc2"));
: "city") + " svelte-17bjrna"));
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
......@@ -15338,7 +15336,7 @@ function create_each_block(ctx) {
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]
? "city selected"
: "city") + " svelte-1hm3zc2"))) {
: "city") + " svelte-17bjrna"))) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", div_class_value);
}
},
......@@ -15398,10 +15396,10 @@ function create_default_slot(ctx) {
each_blocks[i].c();
}
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "areatitle svelte-1hm3zc2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "areas svelte-1hm3zc2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "areatitle svelte-1hm3zc2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", "areas svelte-1hm3zc2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "areatitle svelte-17bjrna");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "areas svelte-17bjrna");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "areatitle svelte-17bjrna");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", "areas svelte-17bjrna");
},
m(target, anchor) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div1, anchor);
......@@ -15718,9 +15716,9 @@ module.exports = exported;
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
/* harmony import */ var svelte_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! svelte/transition */ "./node_modules/svelte/transition/index.mjs");
/* 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");
/* 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__);
/* src\SideItems\Backtotop.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/SideItems/Backtotop.svelte generated by Svelte v3.20.1 */
const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
......@@ -15737,7 +15735,7 @@ function create_if_block(ctx) {
button = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("button");
button.textContent = "▲";
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "id", "backtotop");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "svelte-e1i8lo");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "svelte-16na1oq");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor);
......@@ -15906,9 +15904,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Stores_DistrictStore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Stores/DistrictStore */ "./src/Stores/DistrictStore.js");
/* harmony import */ var _Stores_AllFestas__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Stores/AllFestas */ "./src/Stores/AllFestas.js");
/* harmony import */ var _Stores_DisplayedFestas__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Stores/DisplayedFestas */ "./src/Stores/DisplayedFestas.js");
/* 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");
/* 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__);
/* src\SideItems\Festalist.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/SideItems/Festalist.svelte generated by Svelte v3.20.1 */
const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
......@@ -15939,7 +15937,7 @@ function create_if_block_1(ctx) {
행사<br>목록
`;
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-btrcxw");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(button, "class", "sidebtn svelte-sfu5de");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, button, anchor);
......@@ -16056,7 +16054,7 @@ function create_each_block(ctx) {
let img;
let img_src_value;
let div1;
let t2_value = /*festa*/ ctx[14].addr1 + "";
let t2_value = /*festa*/ ctx[14].addr + "";
let t2;
let t3;
let div3_class_value;
......@@ -16077,12 +16075,12 @@ function create_each_block(ctx) {
div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t2_value);
t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-btrcxw");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-sfu5de");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "pin");
if (img.src !== (img_src_value = "/public/map-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "svelte-btrcxw");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "addr svelte-btrcxw");
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"));
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "svelte-sfu5de");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "addr svelte-sfu5de");
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"));
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div3, anchor);
......@@ -16100,9 +16098,9 @@ function create_each_block(ctx) {
p(new_ctx, dirty) {
ctx = new_ctx;
if (dirty & /*festaParsed*/ 4 && t0_value !== (t0_value = /*festa*/ ctx[14].title + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t0, t0_value);
if (dirty & /*festaParsed*/ 4 && t2_value !== (t2_value = /*festa*/ ctx[14].addr1 + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t2, t2_value);
if (dirty & /*festaParsed*/ 4 && t2_value !== (t2_value = /*festa*/ ctx[14].addr + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t2, t2_value);
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"))) {
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"))) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div3, "class", div3_class_value);
}
},
......@@ -16305,9 +16303,9 @@ function instance($$self, $$props, $$invalidate) {
$$self.$$.update = () => {
if ($$self.$$.dirty & /*$AllFestas, $District, $City*/ 1792) {
$: $$invalidate(7, festaList = $AllFestas.filter(v => {
if (v.addr1) {
let district = v.addr1.split(" ")[0];
let city = v.addr1.split(" ")[1];
if (v.addr) {
let district = v.addr.split(" ")[0];
let city = v.addr.split(" ")[1];
return ($District === "" || district === $District) && ($City === "" || city === $City);
} else {
return false;
......@@ -16320,7 +16318,7 @@ function instance($$self, $$props, $$invalidate) {
return {
"id": i,
"title": v.title,
"addr1": v.addr1,
"addr": v.addr,
"contentid": v.contentid,
"checked": false
};
......@@ -16417,33 +16415,180 @@ module.exports = exported;
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
/* harmony import */ var _SideBar_svelte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SideBar.svelte */ "./src/SideItems/SideBar.svelte");
/* 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");
/* 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__);
/* src\SideItems\Info.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/SideItems/Info.svelte generated by Svelte v3.20.1 */
const { window: window_1 } = svelte_internal__WEBPACK_IMPORTED_MODULE_0__["globals"];
function get_each_context(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[7] = list[i];
return child_ctx;
}
// (77:8) {#if weathers}
function create_if_block(ctx) {
let table;
let tr;
let each_value = /*weathers*/ ctx[2];
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
}
return {
c() {
table = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("table");
tr = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("tr");
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(table, "class", "weather svelte-1mnsbkj");
},
m(target, anchor) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, table, anchor);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(table, tr);
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].m(tr, null);
}
},
p(ctx, dirty) {
if (dirty & /*weathers, WEATHERIMG*/ 12) {
each_value = /*weathers*/ ctx[2];
let i;
for (i = 0; i < each_value.length; i += 1) {
const child_ctx = get_each_context(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
each_blocks[i] = create_each_block(child_ctx);
each_blocks[i].c();
each_blocks[i].m(tr, null);
}
}
for (; i < each_blocks.length; i += 1) {
each_blocks[i].d(1);
}
each_blocks.length = each_value.length;
}
},
d(detaching) {
if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(table);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["destroy_each"])(each_blocks, detaching);
}
};
}
// (79:16) {#each weathers as weather}
function create_each_block(ctx) {
let td;
let img;
let img_src_value;
let br0;
let t0;
let t1_value = /*weather*/ ctx[7].date.slice(0, 2) + "/" + /*weather*/ ctx[7].date.slice(2, 4) + "";
let t1;
let br1;
let t2;
let t3_value = /*weather*/ ctx[7].temp + "";
let t3;
let t4;
let br2;
let t5;
return {
c() {
td = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("td");
img = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
br0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
t0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t1_value);
br1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t3_value);
t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])("℃");
br2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
t5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "weatherimg svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "weather");
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);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(td, "class", "weathercell svelte-1mnsbkj");
},
m(target, anchor) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, td, anchor);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, img);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, br0);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t0);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, br1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t2);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t3);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t4);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, br2);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(td, t5);
},
p(ctx, dirty) {
if (dirty & /*weathers*/ 4 && 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);
}
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);
if (dirty & /*weathers*/ 4 && t3_value !== (t3_value = /*weather*/ ctx[7].temp + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t3, t3_value);
},
d(detaching) {
if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(td);
}
};
}
// (73:0) <SideBar bind:show={sidebar_show} {side}>
function create_default_slot(ctx) {
let div2;
let div0;
let t0_value = /*festa*/ ctx[1].title + "";
let t0;
let t1;
let img;
let img_src_value;
let img0;
let img0_src_value;
let br0;
let t2;
let div1;
let t3;
let t4_value = /*festa*/ ctx[1].addr1 + "";
let div1;
let img1;
let img1_src_value;
let t4;
let br1;
let t5_value = /*festa*/ ctx[1].addr + "";
let t5;
let t6_value = /*festa*/ ctx[1].tel + "";
let br1;
let t6;
let img2;
let img2_src_value;
let t7;
let t8_value = /*festa*/ ctx[1].tel + "";
let t8;
let br2;
let t9;
let img3;
let img3_src_value;
let t10;
let t11_value = /*festa*/ ctx[1].eventstartdate + "";
let t11;
let t12;
let t13_value = /*festa*/ ctx[1].eventenddate + "";
let t13;
let br3;
let if_block = /*weathers*/ ctx[2] && create_if_block(ctx);
return {
c() {
......@@ -16451,51 +16596,100 @@ function create_default_slot(ctx) {
div0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
t0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t0_value);
t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
img = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
img0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
br0 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
t2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
if (if_block) if_block.c();
t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
div1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
t3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])("개최지 : ");
t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t4_value);
img1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
t4 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" 개최지 : ");
t5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t5_value);
br1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
t5 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])("\r\n 전화번호 : ");
t6 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t6_value);
t6 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
img2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
t7 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" 전화번호 : ");
t8 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t8_value);
br2 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-15ku9d2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "alt", "festaImg");
if (img.src !== (img_src_value = /*festa*/ ctx[1].firstimage)) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "class", "svelte-15ku9d2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "content svelte-15ku9d2");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "info svelte-15ku9d2");
t9 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
img3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("img");
t10 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" 행사일 : ");
t11 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t11_value);
t12 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(" - ");
t13 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t13_value);
br3 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("br");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div0, "class", "title svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "class", "festaimg svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "alt", "festaimg");
if (img0.src !== (img0_src_value = /*festa*/ ctx[1].firstimage)) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "src", img0_src_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img1, "class", "locpin svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img1, "alt", "pin");
if (img1.src !== (img1_src_value = "/public/map-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img1, "src", img1_src_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img2, "class", "telpin svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img2, "alt", "pin");
if (img2.src !== (img2_src_value = "/public/tel-pin.jpeg")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img2, "src", img2_src_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img3, "class", "calpin svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img3, "alt", "pin");
if (img3.src !== (img3_src_value = "/public/cal-pin.png")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img3, "src", img3_src_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div1, "class", "content svelte-1mnsbkj");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div2, "class", "info svelte-1mnsbkj");
},
m(target, anchor) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div2, anchor);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, div0);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div0, t0);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, img);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, img0);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, br0);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t2);
if (if_block) if_block.m(div2, null);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, t3);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div2, div1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t3);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, img1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t4);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t5);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br1);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t6);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, img2);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t7);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t8);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br2);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t9);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, img3);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t10);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t11);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t12);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, t13);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["append"])(div1, br3);
},
p(ctx, dirty) {
if (dirty & /*festa*/ 2 && t0_value !== (t0_value = /*festa*/ ctx[1].title + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t0, t0_value);
if (dirty & /*festa*/ 2 && img.src !== (img_src_value = /*festa*/ ctx[1].firstimage)) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img, "src", img_src_value);
if (dirty & /*festa*/ 2 && img0.src !== (img0_src_value = /*festa*/ ctx[1].firstimage)) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(img0, "src", img0_src_value);
}
if (dirty & /*festa*/ 2 && t4_value !== (t4_value = /*festa*/ ctx[1].addr1 + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t4, t4_value);
if (dirty & /*festa*/ 2 && t6_value !== (t6_value = /*festa*/ ctx[1].tel + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t6, t6_value);
if (/*weathers*/ ctx[2]) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
if_block = create_if_block(ctx);
if_block.c();
if_block.m(div2, t3);
}
} else if (if_block) {
if_block.d(1);
if_block = null;
}
if (dirty & /*festa*/ 2 && t5_value !== (t5_value = /*festa*/ ctx[1].addr + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t5, t5_value);
if (dirty & /*festa*/ 2 && t8_value !== (t8_value = /*festa*/ ctx[1].tel + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t8, t8_value);
if (dirty & /*festa*/ 2 && t11_value !== (t11_value = /*festa*/ ctx[1].eventstartdate + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t11, t11_value);
if (dirty & /*festa*/ 2 && t13_value !== (t13_value = /*festa*/ ctx[1].eventenddate + "")) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_data"])(t13, t13_value);
},
d(detaching) {
if (detaching) Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["detach"])(div2);
if (if_block) if_block.d();
}
};
}
......@@ -16506,7 +16700,7 @@ function create_fragment(ctx) {
let dispose;
function sidebar_show_binding(value) {
/*sidebar_show_binding*/ ctx[3].call(null, value);
/*sidebar_show_binding*/ ctx[6].call(null, value);
}
let sidebar_props = {
......@@ -16530,12 +16724,12 @@ function create_fragment(ctx) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["mount_component"])(sidebar, target, anchor);
current = true;
if (remount) dispose();
dispose = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["listen"])(window_1, "scroll", /*hide*/ ctx[2]);
dispose = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["listen"])(window_1, "scroll", /*hide*/ ctx[4]);
},
p(ctx, [dirty]) {
const sidebar_changes = {};
if (dirty & /*$$scope, festa*/ 18) {
if (dirty & /*$$scope, festa, weathers*/ 1030) {
sidebar_changes.$$scope = { dirty, ctx };
}
......@@ -16563,11 +16757,19 @@ function create_fragment(ctx) {
};
}
let side = "right";
var side = "right";
function instance($$self, $$props, $$invalidate) {
let { festa } = $$props;
let { sidebar_show = false } = $$props;
var weatherData, weathers;
const WEATHERIMG = {
"맑음": "./public/sunny.png",
"비": "./public/rain.png",
"비/눈": "./public/rainsnow.png",
"눈": "./public/snow.png"
};
function hide() {
if (window.scrollY > 400) {
......@@ -16585,7 +16787,31 @@ function instance($$self, $$props, $$invalidate) {
if ("sidebar_show" in $$props) $$invalidate(0, sidebar_show = $$props.sidebar_show);
};
return [sidebar_show, festa, hide, sidebar_show_binding];
$$self.$$.update = () => {
if ($$self.$$.dirty & /*festa*/ 2) {
$: if (festa.weathers) $$invalidate(5, weatherData = JSON.parse(festa.weathers));
}
if ($$self.$$.dirty & /*festa, weatherData*/ 34) {
$: if (festa.weathers) $$invalidate(2, weathers = Array.from(Object.keys(weatherData)).map(v => {
return {
"date": v.slice(4),
"temp": weatherData[v].temp,
"weather": weatherData[v].weather
};
}));
}
};
return [
sidebar_show,
festa,
weathers,
WEATHERIMG,
hide,
weatherData,
sidebar_show_binding
];
}
class Info extends svelte_internal__WEBPACK_IMPORTED_MODULE_0__["SvelteComponent"] {
......@@ -16647,9 +16873,9 @@ module.exports = exported;
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var svelte_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! svelte/internal */ "./node_modules/svelte/internal/index.mjs");
/* harmony import */ var svelte_transition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! svelte/transition */ "./node_modules/svelte/transition/index.mjs");
/* 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");
/* 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__);
/* src\SideItems\SideBar.svelte generated by Svelte v3.20.1 */
/* 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");
/* 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__);
/* src/SideItems/SideBar.svelte generated by Svelte v3.20.1 */
......@@ -16677,8 +16903,8 @@ function create_if_block(ctx) {
t1 = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["space"])();
div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
if (default_slot_or_fallback) default_slot_or_fallback.c();
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navitems svelte-8dqk19");
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"));
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navitems svelte-mr77hz");
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"));
},
m(target, anchor) {
if (if_block0) if_block0.m(target, anchor);
......@@ -16727,7 +16953,7 @@ function create_if_block(ctx) {
}
}
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"))) {
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"))) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(nav, "class", nav_class_value);
}
},
......@@ -16788,7 +17014,7 @@ function create_if_block_2(ctx) {
return {
c() {
div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "bg svelte-8dqk19");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "bg svelte-mr77hz");
},
m(target, anchor, remount) {
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["insert"])(target, div, anchor);
......@@ -16814,7 +17040,7 @@ function create_if_block_1(ctx) {
c() {
div = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["element"])("div");
t = Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["text"])(t_value);
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navtop svelte-8dqk19");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["attr"])(div, "class", "navtop svelte-mr77hz");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_style"])(div, "justify-content", /*side*/ ctx[1] == "left" ? "right" : "left");
Object(svelte_internal__WEBPACK_IMPORTED_MODULE_0__["set_style"])(div, "cursor", "pointer");
},
......
This diff could not be displayed because it is too large.
......@@ -5,29 +5,29 @@ const MongoClient = mongodb.MongoClient;
var app = express()
const PORT = 1697;
const PORT = 8484;
const url = 'mongodb://mongo:27017';
var db;
app.use(express.urlencoded({ extended: true }));
app.use("/public", express.static('./public'));
app.get("/*", (req, res) => {
res.sendFile(path.join(__dirname, "./public/index.html"))
})
app.get('/festivalList', (req, res) => { // localhost:3000/festivalList 입력하면 list.ejs에 저장한 형식대로 정보 불러와짐
//디비에 저장된 festivals 라는 collection안의 데이터(제목 또는 내용 등)를 꺼내기
db.collection('festivals').find().toArray((err, rslt) => { //DB에서 데이터를 찾음 festivals라는 collection안의 데이터를 꺼내게 됨
if (err) throw err;
console.log(rslt);
res.render('list.ejs', { posts: rslt }); // 찾은 데이터를 ejs 파일에 넣음
res.json(rslt); // 찾은 데이터를 json으로 전송
});
});
app.get("/*", (req, res) => {
res.sendFile(path.join(__dirname, "./public/index.html"))
})
MongoClient.connect(url, (error, client) => { // 서버열때 url 사용 mongoDB와 연결시키기
if (error) return console.log(error);
db = client.db('myFirstDatabase');
db = client.db('test');
app.listen(PORT, () => {
console.log(`Server lauched on port ${PORT}`);
});
......
......@@ -9,8 +9,14 @@
function LoadFestas() {
let url = "/festivalList";
jQuery.getJSON(url, (json) => {
AllFestas.set(json.response.body.items.item);
AllFestas.set(json);
// console.log(json);
});
// 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";
// jQuery.getJSON(url, (json) => {
// AllFestas.set(json.response.body.items.item);
// console.log(json.response.body.items.item);
// });
}
</script>
......
......@@ -80,7 +80,7 @@
return function() {
Festa = festa;
ShowInfo = true;
console.log(Festa);
// console.log(Festa);
}
};
kakao.maps.event.addListener(marker, 'click', showInfo(data[i]));
......
......@@ -23,9 +23,9 @@
let festaChecked = [];
$: festaList = $AllFestas.filter( v => {
if(v.addr1) {
let district = v.addr1.split(" ")[0];
let city = v.addr1.split(" ")[1];
if(v.addr) {
let district = v.addr.split(" ")[0];
let city = v.addr.split(" ")[1];
return ($District === "" || district === $District) &&
($City === "" || city === $City);
} else {
......@@ -33,7 +33,7 @@
}
});
$: festaParsed = festaList.map( (v, i) => {
return { "id" : i, "title" : v.title, "addr1" : v.addr1, "contentid" : v.contentid, "checked" : false }
return { "id" : i, "title" : v.title, "addr" : v.addr, "contentid" : v.contentid, "checked" : false }
});
$: if ($Changed) {
let len = festaList.length >= 9 ? 9 : festaList.length;
......@@ -142,7 +142,7 @@
<div class="{festa.checked ? "selected" : "festa"}"
on:click={() => {check(festa.id)}}>
<div class="title">{festa.title}</div>
<div class="addr"><img alt="pin" src="/public/map-pin.png"><div>{festa.addr1}</div></div>
<div class="addr"><img alt="pin" src="/public/map-pin.png"><div>{festa.addr}</div></div>
</div>
{/each}
{:else}
......
<script>
import SideBar from "./SideBar.svelte"
export let festa;
export let sidebar_show = false;
var side = "right";
var weatherData, weathers;
const WEATHERIMG = {
"맑음" : "./public/sunny.png",
"비" : "./public/rain.png",
"비/눈" : "./public/rainsnow.png",
"눈" : "./public/snow.png"
}
function hide() {
if (window.scrollY > 400) {
sidebar_show = false;
}
}
$: if(festa.weathers) weatherData = JSON.parse(festa.weathers);
$: if(festa.weathers) weathers = Array.from(Object.keys(weatherData)).map((v) => {
return { "date" : v.slice(4), "temp" : weatherData[v].temp, "weather" : weatherData[v].weather };
});
</script>
<style>
.info {
display: flex;
flex-direction: column;
align-items: center;
}
.title {
font-size: 18pt;
font-weight: bold;
}
.content {
padding: 0.5rem 0.5rem 0.5rem;
text-align: left;
}
.festaimg {
max-width: 560px;
}
.locpin, .telpin, .calpin {
width: 20px;
height: 20px;
}
.weather {
/* border: 1px solid #999999; */
border-collapse: collapse;
}
.weather td {
padding: 0.3rem;
border: 1px solid #cccccc;
}
.weatherimg {
width : 100px;
}
</style>
<svelte:window on:scroll={hide}></svelte:window>
<SideBar bind:show={sidebar_show} {side}>
<div class="info">
<div class="title">{festa.title}</div>
<img class="festaimg" alt="festaimg" src={festa.firstimage}><br>
{#if weathers}
<table class="weather"><tr>
{#each weathers as weather}
<td class="weathercell">
<img class="weatherimg" alt="weather" src={WEATHERIMG[weather.weather]}><br>
{weather.date.slice(0, 2) + '/' + weather.date.slice(2, 4)}<br>
{weather.temp}℃<br>
</td>
{/each}
</tr></table>
{/if}
<div class="content">
<img class="locpin" alt="pin" src="/public/map-pin.png"> 개최지 : {festa.addr}<br>
<img class="telpin" alt="pin" src="/public/tel-pin.jpeg"> 전화번호 : {festa.tel}<br>
<img class="calpin" alt="pin" src="/public/cal-pin.png"> 행사일 : {festa.eventstartdate} - {festa.eventenddate}<br>
</div>
</div>
</SideBar>
This diff could not be displayed because it is too large.
<script>
import SideBar from "./SideBar.svelte"
export let festa;
export let sidebar_show = false;
let side = "right";
function hide() {
if (window.scrollY > 400) {
sidebar_show = false;
}
}
</script>
<style>
.title {
font-size: 18pt;
font-weight: bold;
text-align: center;
}
.content {
padding: 0.5rem 0.5rem 0.5rem;
text-align: center;
}
.info img {
max-height: 20rem;
}
</style>
<svelte:window on:scroll={hide}></svelte:window>
<SideBar bind:show={sidebar_show} {side}>
<div class="info">
<div class="title">{festa.title}</div>
<img alt="festaImg" src={festa.firstimage}><br>
<div class="content">
개최지 : {festa.addr1}<br>
전화번호 : {festa.tel}<br>
<!-- 행사 시작일 : {festa.startdate}<br>
행사 시작일 : {festa.enddate}<br>
날씨 : {festa.weather 어쩌구} -->
</div>
</div>
</SideBar>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Festival Information</title>
</head>
<body>
<% for(let i=0; i < posts.length ; i++){ %>
<h4>제목 : <%= posts[i].title %>
</h4>
<h4>주소 : <%= posts[i].addr %>
</h4>
<h4>전화번호 : <%= posts[i].tel %>
</h4>
<h4>mapx : <%= posts[i].mapx %>
</h4>
<h4>mapy : <%= posts[i].mapy %>
</h4>
<h4>갱신일 : <%= posts[i].updatedAt %>
</h4>
<h4> ------------------- </h4>
<% } %>
</body>
</html>
\ No newline at end of file