Showing
5 changed files
with
285 additions
and
227 deletions
... | @@ -3,7 +3,10 @@ | ... | @@ -3,7 +3,10 @@ |
3 | <component name="ChangeListManager"> | 3 | <component name="ChangeListManager"> |
4 | <list default="true" id="ffe1a490-8fdb-4611-8537-4d1c03c40b8d" name="Default" comment=""> | 4 | <list default="true" id="ffe1a490-8fdb-4611-8537-4d1c03c40b8d" name="Default" comment=""> |
5 | <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> | 5 | <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> |
6 | - <change beforePath="$PROJECT_DIR$/routes/daum.js" beforeDir="false" afterPath="$PROJECT_DIR$/routes/daum.js" afterDir="false" /> | 6 | + <change beforePath="$PROJECT_DIR$/app.js" beforeDir="false" afterPath="$PROJECT_DIR$/app.js" afterDir="false" /> |
7 | + <change beforePath="$PROJECT_DIR$/routes/daum.js" beforeDir="false" /> | ||
8 | + <change beforePath="$PROJECT_DIR$/routes/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/routes/index.js" afterDir="false" /> | ||
9 | + <change beforePath="$PROJECT_DIR$/views/index.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/index.ejs" afterDir="false" /> | ||
7 | </list> | 10 | </list> |
8 | <ignored path="$PROJECT_DIR$/out/" /> | 11 | <ignored path="$PROJECT_DIR$/out/" /> |
9 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | 12 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> |
... | @@ -55,7 +58,7 @@ | ... | @@ -55,7 +58,7 @@ |
55 | <session id="872999261"> | 58 | <session id="872999261"> |
56 | <usages-collector id="statistics.lifecycle.project"> | 59 | <usages-collector id="statistics.lifecycle.project"> |
57 | <counts> | 60 | <counts> |
58 | - <entry key="project.closed" value="9" /> | 61 | + <entry key="project.closed" value="10" /> |
59 | <entry key="project.open.time.10" value="1" /> | 62 | <entry key="project.open.time.10" value="1" /> |
60 | <entry key="project.open.time.11" value="2" /> | 63 | <entry key="project.open.time.11" value="2" /> |
61 | <entry key="project.open.time.15" value="2" /> | 64 | <entry key="project.open.time.15" value="2" /> |
... | @@ -69,9 +72,10 @@ | ... | @@ -69,9 +72,10 @@ |
69 | <usages-collector id="statistics.file.extensions.open"> | 72 | <usages-collector id="statistics.file.extensions.open"> |
70 | <counts> | 73 | <counts> |
71 | <entry key="css" value="3" /> | 74 | <entry key="css" value="3" /> |
72 | - <entry key="ejs" value="27" /> | 75 | + <entry key="daum" value="3" /> |
76 | + <entry key="ejs" value="32" /> | ||
73 | <entry key="iml" value="2" /> | 77 | <entry key="iml" value="2" /> |
74 | - <entry key="js" value="30" /> | 78 | + <entry key="js" value="33" /> |
75 | <entry key="json" value="2" /> | 79 | <entry key="json" value="2" /> |
76 | <entry key="www" value="1" /> | 80 | <entry key="www" value="1" /> |
77 | </counts> | 81 | </counts> |
... | @@ -79,22 +83,23 @@ | ... | @@ -79,22 +83,23 @@ |
79 | <usages-collector id="statistics.file.types.open"> | 83 | <usages-collector id="statistics.file.types.open"> |
80 | <counts> | 84 | <counts> |
81 | <entry key="CSS" value="3" /> | 85 | <entry key="CSS" value="3" /> |
82 | - <entry key="EJS" value="27" /> | 86 | + <entry key="EJS" value="35" /> |
83 | <entry key="IDEA_MODULE" value="2" /> | 87 | <entry key="IDEA_MODULE" value="2" /> |
84 | <entry key="JSON" value="2" /> | 88 | <entry key="JSON" value="2" /> |
85 | - <entry key="JavaScript" value="31" /> | 89 | + <entry key="JavaScript" value="34" /> |
86 | </counts> | 90 | </counts> |
87 | </usages-collector> | 91 | </usages-collector> |
88 | <usages-collector id="statistics.file.extensions.edit"> | 92 | <usages-collector id="statistics.file.extensions.edit"> |
89 | <counts> | 93 | <counts> |
90 | - <entry key="ejs" value="63" /> | 94 | + <entry key="daum" value="1" /> |
91 | - <entry key="js" value="934" /> | 95 | + <entry key="ejs" value="117" /> |
96 | + <entry key="js" value="2392" /> | ||
92 | </counts> | 97 | </counts> |
93 | </usages-collector> | 98 | </usages-collector> |
94 | <usages-collector id="statistics.file.types.edit"> | 99 | <usages-collector id="statistics.file.types.edit"> |
95 | <counts> | 100 | <counts> |
96 | - <entry key="EJS" value="63" /> | 101 | + <entry key="EJS" value="118" /> |
97 | - <entry key="JavaScript" value="934" /> | 102 | + <entry key="JavaScript" value="2392" /> |
98 | </counts> | 103 | </counts> |
99 | </usages-collector> | 104 | </usages-collector> |
100 | </session> | 105 | </session> |
... | @@ -102,55 +107,28 @@ | ... | @@ -102,55 +107,28 @@ |
102 | <component name="FileEditorManager"> | 107 | <component name="FileEditorManager"> |
103 | <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | 108 | <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> |
104 | <file pinned="false" current-in-tab="false"> | 109 | <file pinned="false" current-in-tab="false"> |
105 | - <entry file="file://$PROJECT_DIR$/views/index.ejs"> | ||
106 | - <provider selected="true" editor-type-id="text-editor"> | ||
107 | - <state relative-caret-position="228"> | ||
108 | - <caret line="12" selection-start-line="12" selection-end-line="12" /> | ||
109 | - </state> | ||
110 | - </provider> | ||
111 | - </entry> | ||
112 | - </file> | ||
113 | - <file pinned="false" current-in-tab="false"> | ||
114 | - <entry file="file://$PROJECT_DIR$/routes/setting.js"> | ||
115 | - <provider selected="true" editor-type-id="text-editor"> | ||
116 | - <state relative-caret-position="1292"> | ||
117 | - <caret line="68" selection-start-line="68" selection-end-line="68" /> | ||
118 | - </state> | ||
119 | - </provider> | ||
120 | - </entry> | ||
121 | - </file> | ||
122 | - <file pinned="false" current-in-tab="false"> | ||
123 | <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> | 110 | <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> |
124 | <provider selected="true" editor-type-id="text-editor"> | 111 | <provider selected="true" editor-type-id="text-editor"> |
125 | <state relative-caret-position="190"> | 112 | <state relative-caret-position="190"> |
126 | - <caret line="10" selection-start-line="10" selection-end-line="10" /> | 113 | + <caret line="10" lean-forward="true" selection-start-line="10" selection-end-line="10" /> |
127 | </state> | 114 | </state> |
128 | </provider> | 115 | </provider> |
129 | </entry> | 116 | </entry> |
130 | </file> | 117 | </file> |
131 | <file pinned="false" current-in-tab="false"> | 118 | <file pinned="false" current-in-tab="false"> |
132 | - <entry file="file://$PROJECT_DIR$/routes/index.js"> | 119 | + <entry file="file://$PROJECT_DIR$/routes/setting.js"> |
133 | <provider selected="true" editor-type-id="text-editor"> | 120 | <provider selected="true" editor-type-id="text-editor"> |
134 | - <state relative-caret-position="76"> | 121 | + <state relative-caret-position="190"> |
135 | - <caret line="4" column="34" selection-start-line="4" selection-start-column="34" selection-end-line="4" selection-end-column="34" /> | 122 | + <caret line="10" column="21" lean-forward="true" selection-start-line="10" selection-start-column="21" selection-end-line="10" selection-end-column="21" /> |
136 | </state> | 123 | </state> |
137 | </provider> | 124 | </provider> |
138 | </entry> | 125 | </entry> |
139 | </file> | 126 | </file> |
140 | <file pinned="false" current-in-tab="true"> | 127 | <file pinned="false" current-in-tab="true"> |
141 | - <entry file="file://$PROJECT_DIR$/routes/daum.js"> | 128 | + <entry file="file://$PROJECT_DIR$/routes/index.js"> |
142 | - <provider selected="true" editor-type-id="text-editor"> | ||
143 | - <state relative-caret-position="274"> | ||
144 | - <caret line="88" lean-forward="true" selection-start-line="88" selection-end-line="88" /> | ||
145 | - </state> | ||
146 | - </provider> | ||
147 | - </entry> | ||
148 | - </file> | ||
149 | - <file pinned="false" current-in-tab="false"> | ||
150 | - <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> | ||
151 | <provider selected="true" editor-type-id="text-editor"> | 129 | <provider selected="true" editor-type-id="text-editor"> |
152 | - <state relative-caret-position="722"> | 130 | + <state relative-caret-position="171"> |
153 | - <caret line="38" column="9" selection-start-line="38" selection-start-column="9" selection-end-line="38" selection-end-column="9" /> | 131 | + <caret line="153" column="41" lean-forward="true" selection-start-line="153" selection-start-column="41" selection-end-line="153" selection-end-column="41" /> |
154 | </state> | 132 | </state> |
155 | </provider> | 133 | </provider> |
156 | </entry> | 134 | </entry> |
... | @@ -158,17 +136,8 @@ | ... | @@ -158,17 +136,8 @@ |
158 | <file pinned="false" current-in-tab="false"> | 136 | <file pinned="false" current-in-tab="false"> |
159 | <entry file="file://$PROJECT_DIR$/app.js"> | 137 | <entry file="file://$PROJECT_DIR$/app.js"> |
160 | <provider selected="true" editor-type-id="text-editor"> | 138 | <provider selected="true" editor-type-id="text-editor"> |
161 | - <state relative-caret-position="1653"> | 139 | + <state relative-caret-position="293"> |
162 | - <caret line="87" selection-start-line="87" selection-end-line="87" /> | 140 | + <caret line="76" column="39" lean-forward="true" selection-start-line="76" selection-start-column="39" selection-end-line="76" selection-end-column="39" /> |
163 | - </state> | ||
164 | - </provider> | ||
165 | - </entry> | ||
166 | - </file> | ||
167 | - <file pinned="false" current-in-tab="false"> | ||
168 | - <entry file="file://$PROJECT_DIR$/routes/toonviewer.js"> | ||
169 | - <provider selected="true" editor-type-id="text-editor"> | ||
170 | - <state relative-caret-position="589"> | ||
171 | - <caret line="31" column="7" selection-start-line="31" selection-start-column="7" selection-end-line="31" selection-end-column="7" /> | ||
172 | </state> | 141 | </state> |
173 | </provider> | 142 | </provider> |
174 | </entry> | 143 | </entry> |
... | @@ -195,7 +164,6 @@ | ... | @@ -195,7 +164,6 @@ |
195 | <find>done(</find> | 164 | <find>done(</find> |
196 | <find>user_id</find> | 165 | <find>user_id</find> |
197 | <find>quer</find> | 166 | <find>quer</find> |
198 | - <find>connection</find> | ||
199 | <find>노블레스</find> | 167 | <find>노블레스</find> |
200 | <find>패밀리</find> | 168 | <find>패밀리</find> |
201 | <find>console</find> | 169 | <find>console</find> |
... | @@ -212,6 +180,8 @@ | ... | @@ -212,6 +180,8 @@ |
212 | <find>myStateValue</find> | 180 | <find>myStateValue</find> |
213 | <find>server</find> | 181 | <find>server</find> |
214 | <find>connec</find> | 182 | <find>connec</find> |
183 | + <find>connection</find> | ||
184 | + <find>로그인 쿼리</find> | ||
215 | </findStrings> | 185 | </findStrings> |
216 | <dirStrings> | 186 | <dirStrings> |
217 | <dir>$PROJECT_DIR$/views</dir> | 187 | <dir>$PROJECT_DIR$/views</dir> |
... | @@ -245,7 +215,6 @@ | ... | @@ -245,7 +215,6 @@ |
245 | <option value="$PROJECT_DIR$/models/user.js" /> | 215 | <option value="$PROJECT_DIR$/models/user.js" /> |
246 | <option value="$PROJECT_DIR$/package.json" /> | 216 | <option value="$PROJECT_DIR$/package.json" /> |
247 | <option value="$APPLICATION_CONFIG_DIR$/consoles/db/01265fc0-37d6-481f-ac14-42262cda0ac3/console.sql" /> | 217 | <option value="$APPLICATION_CONFIG_DIR$/consoles/db/01265fc0-37d6-481f-ac14-42262cda0ac3/console.sql" /> |
248 | - <option value="$PROJECT_DIR$/views/index.ejs" /> | ||
249 | <option value="$PROJECT_DIR$/views/setting.ejs" /> | 218 | <option value="$PROJECT_DIR$/views/setting.ejs" /> |
250 | <option value="$PROJECT_DIR$/views/toonviewer.html" /> | 219 | <option value="$PROJECT_DIR$/views/toonviewer.html" /> |
251 | <option value="$PROJECT_DIR$/views/toonviewer.ejs" /> | 220 | <option value="$PROJECT_DIR$/views/toonviewer.ejs" /> |
... | @@ -254,9 +223,12 @@ | ... | @@ -254,9 +223,12 @@ |
254 | <option value="$PROJECT_DIR$/routes/setting.js" /> | 223 | <option value="$PROJECT_DIR$/routes/setting.js" /> |
255 | <option value="$PROJECT_DIR$/routes/toonviewer.js" /> | 224 | <option value="$PROJECT_DIR$/routes/toonviewer.js" /> |
256 | <option value="$PROJECT_DIR$/views/mytoons.ejs" /> | 225 | <option value="$PROJECT_DIR$/views/mytoons.ejs" /> |
226 | + <option value="$PROJECT_DIR$/views/daum" /> | ||
227 | + <option value="$PROJECT_DIR$/views/daum.ejs" /> | ||
228 | + <option value="$PROJECT_DIR$/views/index.ejs" /> | ||
229 | + <option value="$PROJECT_DIR$/routes/daum.js" /> | ||
257 | <option value="$PROJECT_DIR$/app.js" /> | 230 | <option value="$PROJECT_DIR$/app.js" /> |
258 | <option value="$PROJECT_DIR$/routes/index.js" /> | 231 | <option value="$PROJECT_DIR$/routes/index.js" /> |
259 | - <option value="$PROJECT_DIR$/routes/daum.js" /> | ||
260 | </list> | 232 | </list> |
261 | </option> | 233 | </option> |
262 | </component> | 234 | </component> |
... | @@ -479,7 +451,7 @@ | ... | @@ -479,7 +451,7 @@ |
479 | <workItem from="1543286438979" duration="9178000" /> | 451 | <workItem from="1543286438979" duration="9178000" /> |
480 | <workItem from="1543299644956" duration="10319000" /> | 452 | <workItem from="1543299644956" duration="10319000" /> |
481 | <workItem from="1543393354798" duration="25000" /> | 453 | <workItem from="1543393354798" duration="25000" /> |
482 | - <workItem from="1543459526992" duration="2772000" /> | 454 | + <workItem from="1543459526992" duration="19576000" /> |
483 | </task> | 455 | </task> |
484 | <task id="LOCAL-00001" summary="초기 commit by intellij"> | 456 | <task id="LOCAL-00001" summary="초기 commit by intellij"> |
485 | <created>1512174269218</created> | 457 | <created>1512174269218</created> |
... | @@ -499,7 +471,7 @@ | ... | @@ -499,7 +471,7 @@ |
499 | <servers /> | 471 | <servers /> |
500 | </component> | 472 | </component> |
501 | <component name="TimeTrackingManager"> | 473 | <component name="TimeTrackingManager"> |
502 | - <option name="totallyTimeSpent" value="195060000" /> | 474 | + <option name="totallyTimeSpent" value="211864000" /> |
503 | </component> | 475 | </component> |
504 | <component name="TodoView"> | 476 | <component name="TodoView"> |
505 | <todo-panel id="selected-file"> | 477 | <todo-panel id="selected-file"> |
... | @@ -512,9 +484,8 @@ | ... | @@ -512,9 +484,8 @@ |
512 | </component> | 484 | </component> |
513 | <component name="ToolWindowManager"> | 485 | <component name="ToolWindowManager"> |
514 | <frame x="-7" y="-7" width="1550" height="838" extended-state="6" /> | 486 | <frame x="-7" y="-7" width="1550" height="838" extended-state="6" /> |
515 | - <editor active="true" /> | ||
516 | <layout> | 487 | <layout> |
517 | - <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.48880598" visible="true" weight="0.16523464" /> | 488 | + <window_info content_ui="combo" id="Project" order="0" sideWeight="0.48880598" visible="true" weight="0.16523464" /> |
518 | <window_info id="Structure" order="1" weight="0.24964234" /> | 489 | <window_info id="Structure" order="1" weight="0.24964234" /> |
519 | <window_info id="npm" order="2" sideWeight="0.51119405" side_tool="true" weight="0.16523606" /> | 490 | <window_info id="npm" order="2" sideWeight="0.51119405" side_tool="true" weight="0.16523606" /> |
520 | <window_info id="Image Layers" order="3" /> | 491 | <window_info id="Image Layers" order="3" /> |
... | @@ -523,7 +494,7 @@ | ... | @@ -523,7 +494,7 @@ |
523 | <window_info id="Capture Tool" order="6" /> | 494 | <window_info id="Capture Tool" order="6" /> |
524 | <window_info id="Favorites" order="7" side_tool="true" /> | 495 | <window_info id="Favorites" order="7" side_tool="true" /> |
525 | <window_info anchor="bottom" id="Message" order="0" /> | 496 | <window_info anchor="bottom" id="Message" order="0" /> |
526 | - <window_info anchor="bottom" id="Find" order="1" weight="0.329602" /> | 497 | + <window_info anchor="bottom" id="Find" order="1" weight="0.32954547" /> |
527 | <window_info anchor="bottom" id="Run" order="2" sideWeight="0.49713877" weight="0.3693182" /> | 498 | <window_info anchor="bottom" id="Run" order="2" sideWeight="0.49713877" weight="0.3693182" /> |
528 | <window_info anchor="bottom" id="Debug" order="3" weight="0.39925373" /> | 499 | <window_info anchor="bottom" id="Debug" order="3" weight="0.39925373" /> |
529 | <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> | 500 | <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> |
... | @@ -545,34 +516,35 @@ | ... | @@ -545,34 +516,35 @@ |
545 | <window_info anchor="right" id="Maven Projects" order="8" /> | 516 | <window_info anchor="right" id="Maven Projects" order="8" /> |
546 | </layout> | 517 | </layout> |
547 | <layout-to-restore> | 518 | <layout-to-restore> |
548 | - <window_info content_ui="combo" id="Project" order="0" sideWeight="0.48880598" visible="true" weight="0.16523606" /> | 519 | + <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.48880598" visible="true" weight="0.16523464" /> |
549 | <window_info id="Structure" order="1" weight="0.24964234" /> | 520 | <window_info id="Structure" order="1" weight="0.24964234" /> |
550 | - <window_info id="Capture Tool" order="2" /> | 521 | + <window_info id="npm" order="2" sideWeight="0.51119405" side_tool="true" weight="0.16523606" /> |
551 | - <window_info id="Designer" order="3" /> | 522 | + <window_info id="Image Layers" order="3" /> |
552 | - <window_info id="UI Designer" order="4" /> | 523 | + <window_info id="Designer" order="4" /> |
553 | - <window_info id="Image Layers" order="5" /> | 524 | + <window_info id="UI Designer" order="5" /> |
554 | - <window_info id="npm" order="6" sideWeight="0.51119405" side_tool="true" weight="0.16523606" /> | 525 | + <window_info id="Capture Tool" order="6" /> |
555 | <window_info id="Favorites" order="7" side_tool="true" /> | 526 | <window_info id="Favorites" order="7" side_tool="true" /> |
556 | - <window_info anchor="bottom" id="Database Console" order="0" weight="0.329602" /> | 527 | + <window_info anchor="bottom" id="Message" order="0" /> |
557 | - <window_info anchor="bottom" id="Message" order="1" /> | 528 | + <window_info anchor="bottom" id="Find" order="1" weight="0.329602" /> |
558 | - <window_info anchor="bottom" id="Find" order="2" weight="0.329602" /> | 529 | + <window_info anchor="bottom" id="Run" order="2" sideWeight="0.49713877" weight="0.3693182" /> |
559 | - <window_info anchor="bottom" id="Run" order="3" sideWeight="0.49713877" visible="true" weight="0.329602" /> | 530 | + <window_info anchor="bottom" id="Debug" order="3" weight="0.39925373" /> |
560 | - <window_info anchor="bottom" id="Debug" order="4" weight="0.39925373" /> | 531 | + <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> |
561 | - <window_info anchor="bottom" id="Cvs" order="5" weight="0.25" /> | 532 | + <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> |
562 | - <window_info anchor="bottom" id="Inspection" order="6" weight="0.4" /> | 533 | + <window_info anchor="bottom" id="TODO" order="6" weight="0.32911393" /> |
563 | - <window_info anchor="bottom" id="TODO" order="7" /> | 534 | + <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.5028612" side_tool="true" weight="0.329602" /> |
564 | - <window_info anchor="bottom" id="Event Log" order="8" sideWeight="0.5028612" side_tool="true" weight="0.329602" /> | 535 | + <window_info anchor="bottom" id="Version Control" order="8" weight="0.32911393" /> |
565 | - <window_info anchor="bottom" id="Version Control" order="9" weight="0.329602" /> | 536 | + <window_info anchor="bottom" id="Terminal" order="9" weight="0.32911393" /> |
566 | - <window_info anchor="bottom" id="Terminal" order="10" weight="0.329602" /> | 537 | + <window_info anchor="bottom" id="Database Console" order="10" weight="0.329602" /> |
538 | + <window_info anchor="bottom" id="Docker" order="11" show_stripe_button="false" /> | ||
567 | <window_info anchor="right" id="Commander" order="0" weight="0.4" /> | 539 | <window_info anchor="right" id="Commander" order="0" weight="0.4" /> |
568 | <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> | 540 | <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> |
569 | <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> | 541 | <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> |
570 | <window_info anchor="right" id="Palette" order="3" /> | 542 | <window_info anchor="right" id="Palette" order="3" /> |
571 | - <window_info anchor="right" id="Maven Projects" order="4" /> | 543 | + <window_info anchor="right" id="Capture Analysis" order="4" /> |
572 | - <window_info anchor="right" id="Database" order="5" weight="0.3297568" /> | 544 | + <window_info anchor="right" id="Theme Preview" order="5" /> |
573 | - <window_info anchor="right" id="Palette	" order="6" /> | 545 | + <window_info anchor="right" id="Database" order="6" weight="0.29613733" /> |
574 | - <window_info anchor="right" id="Capture Analysis" order="7" /> | 546 | + <window_info anchor="right" id="Palette	" order="7" /> |
575 | - <window_info anchor="right" id="Theme Preview" order="8" /> | 547 | + <window_info anchor="right" id="Maven Projects" order="8" /> |
576 | </layout-to-restore> | 548 | </layout-to-restore> |
577 | </component> | 549 | </component> |
578 | <component name="TypeScriptGeneratedFilesManager"> | 550 | <component name="TypeScriptGeneratedFilesManager"> |
... | @@ -672,13 +644,6 @@ | ... | @@ -672,13 +644,6 @@ |
672 | </state> | 644 | </state> |
673 | </provider> | 645 | </provider> |
674 | </entry> | 646 | </entry> |
675 | - <entry file="file://$PROJECT_DIR$/views/error.ejs"> | ||
676 | - <provider selected="true" editor-type-id="text-editor"> | ||
677 | - <state relative-caret-position="57"> | ||
678 | - <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" /> | ||
679 | - </state> | ||
680 | - </provider> | ||
681 | - </entry> | ||
682 | <entry file="file://$PROJECT_DIR$/views/toonviewer.ejs"> | 647 | <entry file="file://$PROJECT_DIR$/views/toonviewer.ejs"> |
683 | <provider selected="true" editor-type-id="text-editor"> | 648 | <provider selected="true" editor-type-id="text-editor"> |
684 | <state relative-caret-position="247"> | 649 | <state relative-caret-position="247"> |
... | @@ -693,66 +658,87 @@ | ... | @@ -693,66 +658,87 @@ |
693 | </state> | 658 | </state> |
694 | </provider> | 659 | </provider> |
695 | </entry> | 660 | </entry> |
696 | - <entry file="file://$PROJECT_DIR$/routes/users.js"> | 661 | + <entry file="file://$PROJECT_DIR$/views/error.ejs"> |
697 | <provider selected="true" editor-type-id="text-editor"> | 662 | <provider selected="true" editor-type-id="text-editor"> |
698 | - <state relative-caret-position="76"> | 663 | + <state relative-caret-position="57"> |
699 | - <caret line="4" column="42" lean-forward="true" selection-start-line="4" selection-start-column="42" selection-end-line="4" selection-end-column="42" /> | 664 | + <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" /> |
700 | </state> | 665 | </state> |
701 | </provider> | 666 | </provider> |
702 | </entry> | 667 | </entry> |
703 | - <entry file="file://$PROJECT_DIR$/views/index.ejs"> | 668 | + <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> |
704 | <provider selected="true" editor-type-id="text-editor"> | 669 | <provider selected="true" editor-type-id="text-editor"> |
705 | - <state relative-caret-position="228"> | 670 | + <state relative-caret-position="513"> |
706 | - <caret line="12" selection-start-line="12" selection-end-line="12" /> | 671 | + <caret line="27" column="11" lean-forward="true" selection-start-line="27" selection-start-column="11" selection-end-line="27" selection-end-column="11" /> |
707 | </state> | 672 | </state> |
708 | </provider> | 673 | </provider> |
709 | </entry> | 674 | </entry> |
710 | - <entry file="file://$PROJECT_DIR$/routes/setting.js"> | 675 | + <entry file="file://$PROJECT_DIR$/routes/toonviewer.js"> |
711 | <provider selected="true" editor-type-id="text-editor"> | 676 | <provider selected="true" editor-type-id="text-editor"> |
712 | - <state relative-caret-position="1292"> | 677 | + <state relative-caret-position="-418"> |
713 | - <caret line="68" selection-start-line="68" selection-end-line="68" /> | 678 | + <caret line="5" lean-forward="true" selection-start-line="5" selection-end-line="5" /> |
679 | + </state> | ||
680 | + </provider> | ||
681 | + </entry> | ||
682 | + <entry file="file://$PROJECT_DIR$/views/daum"> | ||
683 | + <provider selected="true" editor-type-id="text-editor"> | ||
684 | + <state relative-caret-position="171"> | ||
685 | + <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" /> | ||
686 | + </state> | ||
687 | + </provider> | ||
688 | + </entry> | ||
689 | + <entry file="file://$PROJECT_DIR$/routes/users.js"> | ||
690 | + <provider selected="true" editor-type-id="text-editor"> | ||
691 | + <state relative-caret-position="133"> | ||
692 | + <caret line="7" lean-forward="true" selection-start-line="7" selection-end-line="7" /> | ||
714 | </state> | 693 | </state> |
715 | </provider> | 694 | </provider> |
716 | </entry> | 695 | </entry> |
717 | <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> | 696 | <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> |
718 | <provider selected="true" editor-type-id="text-editor"> | 697 | <provider selected="true" editor-type-id="text-editor"> |
719 | <state relative-caret-position="190"> | 698 | <state relative-caret-position="190"> |
720 | - <caret line="10" selection-start-line="10" selection-end-line="10" /> | 699 | + <caret line="10" lean-forward="true" selection-start-line="10" selection-end-line="10" /> |
721 | </state> | 700 | </state> |
722 | </provider> | 701 | </provider> |
723 | </entry> | 702 | </entry> |
724 | - <entry file="file://$PROJECT_DIR$/routes/index.js"> | 703 | + <entry file="file://$PROJECT_DIR$/views/index.ejs"> |
725 | <provider selected="true" editor-type-id="text-editor"> | 704 | <provider selected="true" editor-type-id="text-editor"> |
726 | - <state relative-caret-position="76"> | 705 | + <state relative-caret-position="171"> |
727 | - <caret line="4" column="34" selection-start-line="4" selection-start-column="34" selection-end-line="4" selection-end-column="34" /> | 706 | + <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" /> |
728 | </state> | 707 | </state> |
729 | </provider> | 708 | </provider> |
730 | </entry> | 709 | </entry> |
731 | - <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> | 710 | + <entry file="file://$PROJECT_DIR$/views/daum.ejs"> |
732 | <provider selected="true" editor-type-id="text-editor"> | 711 | <provider selected="true" editor-type-id="text-editor"> |
733 | - <state relative-caret-position="722"> | 712 | + <state relative-caret-position="350"> |
734 | - <caret line="38" column="9" selection-start-line="38" selection-start-column="9" selection-end-line="38" selection-end-column="9" /> | 713 | + <caret line="31" column="10" lean-forward="true" selection-start-line="31" selection-start-column="10" selection-end-line="31" selection-end-column="10" /> |
735 | </state> | 714 | </state> |
736 | </provider> | 715 | </provider> |
737 | </entry> | 716 | </entry> |
738 | - <entry file="file://$PROJECT_DIR$/app.js"> | 717 | + <entry file="file://$PROJECT_DIR$/routes/setting.js"> |
739 | <provider selected="true" editor-type-id="text-editor"> | 718 | <provider selected="true" editor-type-id="text-editor"> |
740 | - <state relative-caret-position="1653"> | 719 | + <state relative-caret-position="190"> |
741 | - <caret line="87" selection-start-line="87" selection-end-line="87" /> | 720 | + <caret line="10" column="21" lean-forward="true" selection-start-line="10" selection-start-column="21" selection-end-line="10" selection-end-column="21" /> |
742 | </state> | 721 | </state> |
743 | </provider> | 722 | </provider> |
744 | </entry> | 723 | </entry> |
745 | - <entry file="file://$PROJECT_DIR$/routes/toonviewer.js"> | 724 | + <entry file="file://$PROJECT_DIR$/routes/daum.js"> |
746 | <provider selected="true" editor-type-id="text-editor"> | 725 | <provider selected="true" editor-type-id="text-editor"> |
747 | - <state relative-caret-position="589"> | 726 | + <state relative-caret-position="-790"> |
748 | - <caret line="31" column="7" selection-start-line="31" selection-start-column="7" selection-end-line="31" selection-end-column="7" /> | 727 | + <caret line="107" column="27" lean-forward="true" selection-start-line="107" selection-start-column="27" selection-end-line="107" selection-end-column="27" /> |
749 | </state> | 728 | </state> |
750 | </provider> | 729 | </provider> |
751 | </entry> | 730 | </entry> |
752 | - <entry file="file://$PROJECT_DIR$/routes/daum.js"> | 731 | + <entry file="file://$PROJECT_DIR$/app.js"> |
732 | + <provider selected="true" editor-type-id="text-editor"> | ||
733 | + <state relative-caret-position="293"> | ||
734 | + <caret line="76" column="39" lean-forward="true" selection-start-line="76" selection-start-column="39" selection-end-line="76" selection-end-column="39" /> | ||
735 | + </state> | ||
736 | + </provider> | ||
737 | + </entry> | ||
738 | + <entry file="file://$PROJECT_DIR$/routes/index.js"> | ||
753 | <provider selected="true" editor-type-id="text-editor"> | 739 | <provider selected="true" editor-type-id="text-editor"> |
754 | - <state relative-caret-position="274"> | 740 | + <state relative-caret-position="171"> |
755 | - <caret line="88" lean-forward="true" selection-start-line="88" selection-end-line="88" /> | 741 | + <caret line="153" column="41" lean-forward="true" selection-start-line="153" selection-start-column="41" selection-end-line="153" selection-end-column="41" /> |
756 | </state> | 742 | </state> |
757 | </provider> | 743 | </provider> |
758 | </entry> | 744 | </entry> | ... | ... |
... | @@ -13,7 +13,8 @@ var mytoons = require('./routes/mytoons'); | ... | @@ -13,7 +13,8 @@ var mytoons = require('./routes/mytoons'); |
13 | var passport = require('passport'); | 13 | var passport = require('passport'); |
14 | var setting = require('./routes/setting'); | 14 | var setting = require('./routes/setting'); |
15 | var session = require('express-session'); | 15 | var session = require('express-session'); |
16 | -var toonviewer = require('./routes/toonviewer') | 16 | +var toonviewer = require('./routes/toonviewer'); |
17 | + | ||
17 | 18 | ||
18 | //port | 19 | //port |
19 | 20 | ||
... | @@ -61,6 +62,7 @@ app.use('/users', users); | ... | @@ -61,6 +62,7 @@ app.use('/users', users); |
61 | app.use('/mytoons', mytoons); | 62 | app.use('/mytoons', mytoons); |
62 | app.use('/setting', setting); | 63 | app.use('/setting', setting); |
63 | app.use('/toonviewer', toonviewer); | 64 | app.use('/toonviewer', toonviewer); |
65 | +//app.use('/daum', daum); | ||
64 | 66 | ||
65 | //app.use(express.static('views')); | 67 | //app.use(express.static('views')); |
66 | 68 | ... | ... |
routes/daum.js
deleted
100644 → 0
1 | -var client = require('cheerio-httpcli'); | ||
2 | -//월요일 웹툰 | ||
3 | -var mon='mon' | ||
4 | -var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${mon}?timeStamp=1515819276574`; | ||
5 | - | ||
6 | -client.fetch(daum, {}, function (err, $, res, body) { | ||
7 | - var data = JSON.parse(body); | ||
8 | - var list = data["data"]; | ||
9 | - | ||
10 | - list.forEach(function(item, idx){ | ||
11 | - //다음 웹툰 아이디, 제목, 요일 | ||
12 | - console.log(item.id + ' ' + item.title + ' ' + mon); | ||
13 | - }); | ||
14 | - | ||
15 | -}); | ||
16 | - | ||
17 | -//화요일 웹툰 | ||
18 | -var tue='tue' | ||
19 | -var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${tue}?timeStamp=1515819276574`; | ||
20 | - | ||
21 | -client.fetch(daum, {}, function (err, $, res, body) { | ||
22 | - var data = JSON.parse(body); | ||
23 | - var list = data["data"]; | ||
24 | - | ||
25 | - list.forEach(function(item, idx){ | ||
26 | - //다음 웹툰 아이디, 제목, 요일 | ||
27 | - console.log(item.id + ' ' + item.title + ' ' + tue); | ||
28 | - }); | ||
29 | - | ||
30 | -}); | ||
31 | - | ||
32 | -//수요일 웹툰 | ||
33 | -var wed='wed' | ||
34 | -var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${wed}?timeStamp=1515819276574`; | ||
35 | - | ||
36 | -client.fetch(daum, {}, function (err, $, res, body) { | ||
37 | - var data = JSON.parse(body); | ||
38 | - var list = data["data"]; | ||
39 | - | ||
40 | - list.forEach(function(item, idx){ | ||
41 | - //다음 웹툰 아이디, 제목, 요일 | ||
42 | - console.log(item.id + ' ' + item.title + ' ' + wed); | ||
43 | - }); | ||
44 | - | ||
45 | -}); | ||
46 | - | ||
47 | -//목요일 웹툰 | ||
48 | -var thu='thu' | ||
49 | -var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${thu}?timeStamp=1515819276574`; | ||
50 | -client.fetch(daum, {}, function (err, $, res, body) { | ||
51 | - var data = JSON.parse(body); | ||
52 | - var list = data["data"]; | ||
53 | - | ||
54 | - list.forEach(function(item, idx){ | ||
55 | - //다음 웹툰 아이디, 제목, 요일 | ||
56 | - console.log(item.id + ' ' + item.title + ' ' + thu); | ||
57 | - }); | ||
58 | - | ||
59 | -}); | ||
60 | - | ||
61 | -//금요일웹툰 | ||
62 | -var fri='fri'; | ||
63 | -var daum1 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${fri}?timeStamp=1515819276574`; | ||
64 | -client.fetch(daum1, {}, function (err, $, res, body) { | ||
65 | - var data = JSON.parse(body); | ||
66 | - var list1 = data["data"]; | ||
67 | - | ||
68 | - list1.forEach(function(item, idx){ | ||
69 | - //다음 웹툰 아이디, 제목, 요일 | ||
70 | - console.log(item.id + ' ' + item.title + ' ' + fri); | ||
71 | - }); | ||
72 | - | ||
73 | -}); | ||
74 | - | ||
75 | -//토요일 웹툰 | ||
76 | -var sat='sat' | ||
77 | -var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${sat}?timeStamp=1515819276574`; | ||
78 | - | ||
79 | -client.fetch(daum, {}, function (err, $, res, body) { | ||
80 | - var data = JSON.parse(body); | ||
81 | - var list = data["data"]; | ||
82 | - | ||
83 | - list.forEach(function(item, idx){ | ||
84 | - //다음 웹툰 아이디, 제목, 요일 | ||
85 | - console.log(item.id + ' ' + item.title + ' ' + sat); | ||
86 | - }); | ||
87 | - | ||
88 | -}); | ||
89 | - | ||
90 | -//일요일 웹툰 | ||
91 | -var sun='sun' | ||
92 | -var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${sun}?timeStamp=1515819276574`; | ||
93 | - | ||
94 | -client.fetch(daum, {}, function (err, $, res, body) { | ||
95 | - var data = JSON.parse(body); | ||
96 | - var list = data["data"]; | ||
97 | - | ||
98 | - list.forEach(function(item, idx){ | ||
99 | - //다음 웹툰 아이디, 제목, 요일 | ||
100 | - console.log(item.id + ' ' + item.title + ' ' + sun); | ||
101 | - }); | ||
102 | - | ||
103 | -}); | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -3,6 +3,7 @@ var cheerio = require('cheerio'); | ... | @@ -3,6 +3,7 @@ var cheerio = require('cheerio'); |
3 | var request = require('request'); | 3 | var request = require('request'); |
4 | var router = express.Router(); | 4 | var router = express.Router(); |
5 | var mysql = require('mysql'); | 5 | var mysql = require('mysql'); |
6 | +var client = require('cheerio-httpcli'); | ||
6 | var passport = require('passport'), | 7 | var passport = require('passport'), |
7 | KakaoStrategy = require('passport-kakao').Strategy; | 8 | KakaoStrategy = require('passport-kakao').Strategy; |
8 | 9 | ||
... | @@ -41,8 +42,7 @@ router.get('/auth/login/kakao/callback', | ... | @@ -41,8 +42,7 @@ router.get('/auth/login/kakao/callback', |
41 | 42 | ||
42 | function loginByThirdparty(accessToken, refreshToken, profile) { | 43 | function loginByThirdparty(accessToken, refreshToken, profile) { |
43 | var stmt_duplicated = 'INSERT INTO user(id) VALUES(?) ON DUPLICATE KEY UPDATE id=?;' | 44 | var stmt_duplicated = 'INSERT INTO user(id) VALUES(?) ON DUPLICATE KEY UPDATE id=?;' |
44 | - | 45 | + connection.query(stmt_duplicated, [profile._json.id] , function (err, result) { |
45 | - connection.query(stmt_duplicated, [profile._json.id,profile._json.id] , function (err, result) { | ||
46 | if (err) { | 46 | if (err) { |
47 | console.log("로그인 쿼리중 에러 : " + err); | 47 | console.log("로그인 쿼리중 에러 : " + err); |
48 | } else { | 48 | } else { |
... | @@ -92,8 +92,180 @@ function getLatestToon(titleid, day ,cb) { | ... | @@ -92,8 +92,180 @@ function getLatestToon(titleid, day ,cb) { |
92 | } | 92 | } |
93 | 93 | ||
94 | function getAllToons() { | 94 | function getAllToons() { |
95 | - var allWeeklyToonsUrl = "http://comic.naver.com/webtoon/weekday.nhn"; | ||
96 | allWebtoonList = new Array(); | 95 | allWebtoonList = new Array(); |
96 | +//월요일 다음 웹툰 | ||
97 | + var mon='mon'; | ||
98 | + var daum = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${mon}?timeStamp=1515819276574`; | ||
99 | + var site='daum'; | ||
100 | + var mon_name='MON'; | ||
101 | + client.fetch(daum, {}, function (err, $, res, body) { | ||
102 | + var data = JSON.parse(body); | ||
103 | + var list = data["data"]; | ||
104 | + console.log(list); | ||
105 | + list.forEach(function(item, idx){ | ||
106 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
107 | + var webtoon= { | ||
108 | + toon_index: item.id, | ||
109 | + name : item.title, | ||
110 | + thum_link : webtoon_link, | ||
111 | + webtoon_link : webtoon_link, | ||
112 | + week : mon_name, | ||
113 | + site : site, | ||
114 | + latest : 0 | ||
115 | + }; | ||
116 | + allWebtoonList.push(webtoon); | ||
117 | + }); | ||
118 | + }); | ||
119 | +//화요일 다음 웹툰 | ||
120 | + var tue='tue'; | ||
121 | + var tue_name='TUE'; | ||
122 | + var daum1 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${tue}?timeStamp=1515819276574`; | ||
123 | + | ||
124 | + client.fetch(daum1, {}, function (err, $, res, body) { | ||
125 | + var data = JSON.parse(body); | ||
126 | + var list = data["data"]; | ||
127 | + | ||
128 | + list.forEach(function(item, idx){ | ||
129 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
130 | + var webtoon= { | ||
131 | + toon_index: item.id, | ||
132 | + name : item.title, | ||
133 | + thum_link : webtoon_link, | ||
134 | + webtoon_link : webtoon_link, | ||
135 | + week : tue_name, | ||
136 | + site : site, | ||
137 | + latest : 0 | ||
138 | + }; | ||
139 | + | ||
140 | + allWebtoonList.push(webtoon); | ||
141 | + }); | ||
142 | + | ||
143 | + }); | ||
144 | + | ||
145 | +//수요일 다음 웹툰 | ||
146 | + var wed='wed'; | ||
147 | + var wed_name='WED'; | ||
148 | + var daum2 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${wed}?timeStamp=1515819276574`; | ||
149 | + | ||
150 | + client.fetch(daum2, {}, function (err, $, res, body) { | ||
151 | + var data = JSON.parse(body); | ||
152 | + var list = data["data"]; | ||
153 | + | ||
154 | + list.forEach(function(item, idx){ | ||
155 | + console.log(item.id + ' ' + item.title + ' ' + wed); | ||
156 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
157 | + var webtoon= { | ||
158 | + toon_index: item.id, | ||
159 | + name : item.title, | ||
160 | + thum_link : webtoon_link, | ||
161 | + webtoon_link : webtoon_link, | ||
162 | + week : wed_name, | ||
163 | + site : site, | ||
164 | + latest : 0 | ||
165 | + }; | ||
166 | + allWebtoonList.push(webtoon); | ||
167 | + }); | ||
168 | + | ||
169 | + }); | ||
170 | + | ||
171 | +//목요일 다음 웹툰 | ||
172 | + var thu='thu'; | ||
173 | + var daum3 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${thu}?timeStamp=1515819276574`; | ||
174 | + var thu_name='THU'; | ||
175 | + client.fetch(daum3, {}, function (err, $, res, body) { | ||
176 | + var data = JSON.parse(body); | ||
177 | + var list = data["data"]; | ||
178 | + list.forEach(function(item, idx){ | ||
179 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
180 | + var webtoon= { | ||
181 | + toon_index: item.id, | ||
182 | + name : item.title, | ||
183 | + thum_link : webtoon_link, | ||
184 | + webtoon_link : webtoon_link, | ||
185 | + week : thu_name, | ||
186 | + site : site, | ||
187 | + latest : 0 | ||
188 | + }; | ||
189 | + allWebtoonList.push(webtoon); | ||
190 | + }); | ||
191 | + | ||
192 | + }); | ||
193 | + | ||
194 | +//금요일 다음 웹툰 | ||
195 | + var fri='fri'; | ||
196 | + var daum4 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${fri}?timeStamp=1515819276574`; | ||
197 | + var fri_name='FRI'; | ||
198 | + client.fetch(daum4, {}, function (err, $, res, body) { | ||
199 | + var data = JSON.parse(body); | ||
200 | + var list1 = data["data"]; | ||
201 | + | ||
202 | + list1.forEach(function(item, idx){ | ||
203 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
204 | + var webtoon= { | ||
205 | + toon_index: item.id, | ||
206 | + name : item.title, | ||
207 | + thum_link : webtoon_link, | ||
208 | + webtoon_link : webtoon_link, | ||
209 | + week : fri_name, | ||
210 | + site : site, | ||
211 | + latest : 0 | ||
212 | + }; | ||
213 | + allWebtoonList.push(webtoon); | ||
214 | + }); | ||
215 | + | ||
216 | + }); | ||
217 | + | ||
218 | +//토요일 다음 웹툰 | ||
219 | + var sat='sat'; | ||
220 | + var daum5 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${sat}?timeStamp=1515819276574`; | ||
221 | + var sat_name='SAT'; | ||
222 | + client.fetch(daum5, {}, function (err, $, res, body) { | ||
223 | + var data = JSON.parse(body); | ||
224 | + var list = data["data"]; | ||
225 | + | ||
226 | + list.forEach(function(item, idx){ | ||
227 | + //다음 웹툰 아이디, 제목, 요일 | ||
228 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
229 | + var webtoon= { | ||
230 | + toon_index: item.id, | ||
231 | + name : item.title, | ||
232 | + thum_link : webtoon_link, | ||
233 | + webtoon_link : webtoon_link, | ||
234 | + week : sat_name, | ||
235 | + site : site, | ||
236 | + latest : 0 | ||
237 | + }; | ||
238 | + allWebtoonList.push(webtoon); | ||
239 | + }); | ||
240 | + | ||
241 | + }); | ||
242 | + | ||
243 | +//일요일 다음 웹툰 | ||
244 | + var sun='sun'; | ||
245 | + var daum6 = `http://webtoon.daum.net/data/pc/webtoon/list_serialized/${sun}?timeStamp=1515819276574`; | ||
246 | + var sun_name='SUN' | ||
247 | + client.fetch(daum6, {}, function (err, $, res, body) { | ||
248 | + var data = JSON.parse(body); | ||
249 | + var list = data["data"]; | ||
250 | + | ||
251 | + list.forEach(function(item, idx){ | ||
252 | + //다음 웹툰 아이디, 제목, 요일 | ||
253 | + var webtoon_link='http://webtoon.daum.net/webtoon/view/'+item.nickname.toString(); | ||
254 | + var webtoon= { | ||
255 | + toon_index: item.id, | ||
256 | + name : item.title, | ||
257 | + thum_link : webtoon_link, | ||
258 | + webtoon_link : webtoon_link, | ||
259 | + week : sun_name, | ||
260 | + site : site, | ||
261 | + latest : 0 | ||
262 | + }; | ||
263 | + allWebtoonList.push(webtoon); | ||
264 | + }); | ||
265 | + | ||
266 | + }); | ||
267 | + | ||
268 | + var allWeeklyToonsUrl = "http://comic.naver.com/webtoon/weekday.nhn"; | ||
97 | request(allWeeklyToonsUrl,function (err, res, html) { | 269 | request(allWeeklyToonsUrl,function (err, res, html) { |
98 | if(!err){ | 270 | if(!err){ |
99 | var $ = cheerio.load(html); | 271 | var $ = cheerio.load(html); |
... | @@ -104,13 +276,14 @@ function getAllToons() { | ... | @@ -104,13 +276,14 @@ function getAllToons() { |
104 | var thumb_link = $(this).children().first().children().first().attr('src'); | 276 | var thumb_link = $(this).children().first().children().first().attr('src'); |
105 | var name = $(this).next().text(); | 277 | var name = $(this).next().text(); |
106 | var titleid = webtoon_link.split('?')[1].split('&')[0].split('=')[1]; | 278 | var titleid = webtoon_link.split('?')[1].split('&')[0].split('=')[1]; |
107 | - | 279 | + var site = 'naver' |
108 | var webtoon= { | 280 | var webtoon= { |
109 | toon_index: titleid, | 281 | toon_index: titleid, |
110 | name : name, | 282 | name : name, |
111 | thum_link : thumb_link, | 283 | thum_link : thumb_link, |
112 | webtoon_link : webtoon_link, | 284 | webtoon_link : webtoon_link, |
113 | week : week, | 285 | week : week, |
286 | + site : site, | ||
114 | latest : 0 | 287 | latest : 0 |
115 | }; | 288 | }; |
116 | 289 | ||
... | @@ -135,7 +308,7 @@ function getAllToons() { | ... | @@ -135,7 +308,7 @@ function getAllToons() { |
135 | } | 308 | } |
136 | }); | 309 | }); |
137 | allWebtoons = allWebtoonList; | 310 | allWebtoons = allWebtoonList; |
138 | -} | 311 | +}; |
139 | 312 | ||
140 | getAllToons(); | 313 | getAllToons(); |
141 | //처음 한번 수행 | 314 | //처음 한번 수행 | ... | ... |
... | @@ -8,13 +8,13 @@ | ... | @@ -8,13 +8,13 @@ |
8 | <h1><%= title %></h1> | 8 | <h1><%= title %></h1> |
9 | <p>웹툰 리스트</p> | 9 | <p>웹툰 리스트</p> |
10 | 10 | ||
11 | - | ||
12 | <a href="/auth/login/kakao" class="btn btn-block btn-lg btn-warning btn_login">로그인</a> | 11 | <a href="/auth/login/kakao" class="btn btn-block btn-lg btn-warning btn_login">로그인</a> |
13 | 12 | ||
14 | <table> | 13 | <table> |
15 | <% | 14 | <% |
16 | var current = ""; | 15 | var current = ""; |
17 | for(webtoon in list){ | 16 | for(webtoon in list){ |
17 | + | ||
18 | if(current!=list[webtoon].week){ | 18 | if(current!=list[webtoon].week){ |
19 | if(current!=""){ | 19 | if(current!=""){ |
20 | %> | 20 | %> | ... | ... |
-
Please register or login to post a comment