강현태

웹툰 보기 링크 추가.

...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
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 type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> 5 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/routes/index.js" afterPath="$PROJECT_DIR$/routes/index.js" /> 6 + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app.js" afterPath="$PROJECT_DIR$/app.js" />
7 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/routes/mytoons.js" afterPath="$PROJECT_DIR$/routes/mytoons.js" /> 7 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/routes/mytoons.js" afterPath="$PROJECT_DIR$/routes/mytoons.js" />
8 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/routes/setting.js" afterPath="$PROJECT_DIR$/routes/setting.js" />
9 - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/views/index.ejs" afterPath="$PROJECT_DIR$/views/index.ejs" />
10 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/views/mytoons.ejs" afterPath="$PROJECT_DIR$/views/mytoons.ejs" /> 8 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/views/mytoons.ejs" afterPath="$PROJECT_DIR$/views/mytoons.ejs" />
11 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/views/setting.ejs" afterPath="$PROJECT_DIR$/views/setting.ejs" /> 9 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/views/setting.ejs" afterPath="$PROJECT_DIR$/views/setting.ejs" />
12 </list> 10 </list>
...@@ -62,8 +60,8 @@ ...@@ -62,8 +60,8 @@
62 <file leaf-file-name="mytoons.js" pinned="false" current-in-tab="false"> 60 <file leaf-file-name="mytoons.js" pinned="false" current-in-tab="false">
63 <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> 61 <entry file="file://$PROJECT_DIR$/routes/mytoons.js">
64 <provider selected="true" editor-type-id="text-editor"> 62 <provider selected="true" editor-type-id="text-editor">
65 - <state relative-caret-position="-210"> 63 + <state relative-caret-position="179">
66 - <caret line="34" column="76" lean-forward="false" selection-start-line="34" selection-start-column="76" selection-end-line="34" selection-end-column="76" /> 64 + <caret line="42" column="14" lean-forward="false" selection-start-line="42" selection-start-column="14" selection-end-line="42" selection-end-column="14" />
67 <folding /> 65 <folding />
68 </state> 66 </state>
69 </provider> 67 </provider>
...@@ -72,8 +70,8 @@ ...@@ -72,8 +70,8 @@
72 <file leaf-file-name="index.js" pinned="false" current-in-tab="false"> 70 <file leaf-file-name="index.js" pinned="false" current-in-tab="false">
73 <entry file="file://$PROJECT_DIR$/routes/index.js"> 71 <entry file="file://$PROJECT_DIR$/routes/index.js">
74 <provider selected="true" editor-type-id="text-editor"> 72 <provider selected="true" editor-type-id="text-editor">
75 - <state relative-caret-position="267"> 73 + <state relative-caret-position="292">
76 - <caret line="149" column="0" lean-forward="false" selection-start-line="149" selection-start-column="0" selection-end-line="149" selection-end-column="0" /> 74 + <caret line="58" column="0" lean-forward="false" selection-start-line="58" selection-start-column="0" selection-end-line="58" selection-end-column="0" />
77 <folding> 75 <folding>
78 <element signature="n#!!block;n#getLatestToon#0" expanded="false" /> 76 <element signature="n#!!block;n#getLatestToon#0" expanded="false" />
79 <element signature="n#!!block;n#getAllToons#0" expanded="false" /> 77 <element signature="n#!!block;n#getAllToons#0" expanded="false" />
...@@ -85,7 +83,7 @@ ...@@ -85,7 +83,7 @@
85 <file leaf-file-name="index.ejs" pinned="false" current-in-tab="false"> 83 <file leaf-file-name="index.ejs" pinned="false" current-in-tab="false">
86 <entry file="file://$PROJECT_DIR$/views/index.ejs"> 84 <entry file="file://$PROJECT_DIR$/views/index.ejs">
87 <provider selected="true" editor-type-id="text-editor"> 85 <provider selected="true" editor-type-id="text-editor">
88 - <state relative-caret-position="-161"> 86 + <state relative-caret-position="-111">
89 <caret line="0" column="15" lean-forward="true" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" /> 87 <caret line="0" column="15" lean-forward="true" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
90 <folding> 88 <folding>
91 <marker date="1512610222312" expanded="true" signature="211:1032" ph="..." /> 89 <marker date="1512610222312" expanded="true" signature="211:1032" ph="..." />
...@@ -94,21 +92,11 @@ ...@@ -94,21 +92,11 @@
94 </provider> 92 </provider>
95 </entry> 93 </entry>
96 </file> 94 </file>
97 - <file leaf-file-name="mytoons.ejs" pinned="false" current-in-tab="true"> 95 + <file leaf-file-name="toonviewer.ejs" pinned="false" current-in-tab="false">
98 - <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> 96 + <entry file="file://$PROJECT_DIR$/views/toonviewer.ejs">
99 - <provider selected="true" editor-type-id="text-editor">
100 - <state relative-caret-position="330">
101 - <caret line="22" column="11" lean-forward="true" selection-start-line="22" selection-start-column="11" selection-end-line="22" selection-end-column="11" />
102 - <folding />
103 - </state>
104 - </provider>
105 - </entry>
106 - </file>
107 - <file leaf-file-name="setting.ejs" pinned="false" current-in-tab="false">
108 - <entry file="file://$PROJECT_DIR$/views/setting.ejs">
109 <provider selected="true" editor-type-id="text-editor"> 97 <provider selected="true" editor-type-id="text-editor">
110 - <state relative-caret-position="-8"> 98 + <state relative-caret-position="150">
111 - <caret line="24" column="12" lean-forward="false" selection-start-line="24" selection-start-column="12" selection-end-line="24" selection-end-column="12" /> 99 + <caret line="10" column="1" lean-forward="false" selection-start-line="10" selection-start-column="1" selection-end-line="10" selection-end-column="1" />
112 <folding /> 100 <folding />
113 </state> 101 </state>
114 </provider> 102 </provider>
...@@ -117,8 +105,8 @@ ...@@ -117,8 +105,8 @@
117 <file leaf-file-name="setting.js" pinned="false" current-in-tab="false"> 105 <file leaf-file-name="setting.js" pinned="false" current-in-tab="false">
118 <entry file="file://$PROJECT_DIR$/routes/setting.js"> 106 <entry file="file://$PROJECT_DIR$/routes/setting.js">
119 <provider selected="true" editor-type-id="text-editor"> 107 <provider selected="true" editor-type-id="text-editor">
120 - <state relative-caret-position="90"> 108 + <state relative-caret-position="75">
121 - <caret line="6" column="49" lean-forward="false" selection-start-line="6" selection-start-column="49" selection-end-line="6" selection-end-column="49" /> 109 + <caret line="41" column="22" lean-forward="false" selection-start-line="41" selection-start-column="22" selection-end-line="41" selection-end-column="22" />
122 <folding /> 110 <folding />
123 </state> 111 </state>
124 </provider> 112 </provider>
...@@ -127,16 +115,26 @@ ...@@ -127,16 +115,26 @@
127 <file leaf-file-name="app.js" pinned="false" current-in-tab="false"> 115 <file leaf-file-name="app.js" pinned="false" current-in-tab="false">
128 <entry file="file://$PROJECT_DIR$/app.js"> 116 <entry file="file://$PROJECT_DIR$/app.js">
129 <provider selected="true" editor-type-id="text-editor"> 117 <provider selected="true" editor-type-id="text-editor">
130 - <state relative-caret-position="570"> 118 + <state relative-caret-position="120">
131 - <caret line="38" column="0" lean-forward="false" selection-start-line="38" selection-start-column="0" selection-end-line="38" selection-end-column="0" /> 119 + <caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="33" />
132 <folding> 120 <folding>
133 - <element signature="e#1750#1822#0" expanded="false" /> 121 + <element signature="e#1834#1906#0" expanded="false" />
134 - <element signature="e#1881#2127#0" expanded="false" /> 122 + <element signature="e#1965#2211#0" expanded="false" />
135 </folding> 123 </folding>
136 </state> 124 </state>
137 </provider> 125 </provider>
138 </entry> 126 </entry>
139 </file> 127 </file>
128 + <file leaf-file-name="toonviewer.js" pinned="false" current-in-tab="true">
129 + <entry file="file://$PROJECT_DIR$/routes/toonviewer.js">
130 + <provider selected="true" editor-type-id="text-editor">
131 + <state relative-caret-position="237">
132 + <caret line="45" column="28" lean-forward="false" selection-start-line="45" selection-start-column="28" selection-end-line="45" selection-end-column="28" />
133 + <folding />
134 + </state>
135 + </provider>
136 + </entry>
137 + </file>
140 </leaf> 138 </leaf>
141 </component> 139 </component>
142 <component name="FileTemplateManagerImpl"> 140 <component name="FileTemplateManagerImpl">
...@@ -165,6 +163,7 @@ ...@@ -165,6 +163,7 @@
165 <find>패밀리</find> 163 <find>패밀리</find>
166 <find>console</find> 164 <find>console</find>
167 <find>query</find> 165 <find>query</find>
166 + <find>br</find>
168 </findStrings> 167 </findStrings>
169 <dirStrings> 168 <dirStrings>
170 <dir>$PROJECT_DIR$/views</dir> 169 <dir>$PROJECT_DIR$/views</dir>
...@@ -199,12 +198,15 @@ ...@@ -199,12 +198,15 @@
199 <option value="$PROJECT_DIR$/package.json" /> 198 <option value="$PROJECT_DIR$/package.json" />
200 <option value="$APPLICATION_CONFIG_DIR$/consoles/db/01265fc0-37d6-481f-ac14-42262cda0ac3/console.sql" /> 199 <option value="$APPLICATION_CONFIG_DIR$/consoles/db/01265fc0-37d6-481f-ac14-42262cda0ac3/console.sql" />
201 <option value="$PROJECT_DIR$/views/index.ejs" /> 200 <option value="$PROJECT_DIR$/views/index.ejs" />
202 - <option value="$PROJECT_DIR$/app.js" />
203 <option value="$PROJECT_DIR$/routes/index.js" /> 201 <option value="$PROJECT_DIR$/routes/index.js" />
204 <option value="$PROJECT_DIR$/views/setting.ejs" /> 202 <option value="$PROJECT_DIR$/views/setting.ejs" />
205 - <option value="$PROJECT_DIR$/routes/mytoons.js" /> 203 + <option value="$PROJECT_DIR$/views/toonviewer.html" />
206 <option value="$PROJECT_DIR$/routes/setting.js" /> 204 <option value="$PROJECT_DIR$/routes/setting.js" />
207 <option value="$PROJECT_DIR$/views/mytoons.ejs" /> 205 <option value="$PROJECT_DIR$/views/mytoons.ejs" />
206 + <option value="$PROJECT_DIR$/app.js" />
207 + <option value="$PROJECT_DIR$/routes/mytoons.js" />
208 + <option value="$PROJECT_DIR$/views/toonviewer.ejs" />
209 + <option value="$PROJECT_DIR$/routes/toonviewer.js" />
208 </list> 210 </list>
209 </option> 211 </option>
210 </component> 212 </component>
...@@ -387,7 +389,7 @@ ...@@ -387,7 +389,7 @@
387 <updated>1512173581551</updated> 389 <updated>1512173581551</updated>
388 <workItem from="1512173589576" duration="1873000" /> 390 <workItem from="1512173589576" duration="1873000" />
389 <workItem from="1512179289398" duration="128771000" /> 391 <workItem from="1512179289398" duration="128771000" />
390 - <workItem from="1512609885662" duration="20679000" /> 392 + <workItem from="1512609885662" duration="29466000" />
391 </task> 393 </task>
392 <task id="LOCAL-00001" summary="초기 commit by intellij"> 394 <task id="LOCAL-00001" summary="초기 commit by intellij">
393 <created>1512174269218</created> 395 <created>1512174269218</created>
...@@ -407,7 +409,7 @@ ...@@ -407,7 +409,7 @@
407 <servers /> 409 <servers />
408 </component> 410 </component>
409 <component name="TimeTrackingManager"> 411 <component name="TimeTrackingManager">
410 - <option name="totallyTimeSpent" value="151323000" /> 412 + <option name="totallyTimeSpent" value="160110000" />
411 </component> 413 </component>
412 <component name="TodoView"> 414 <component name="TodoView">
413 <todo-panel id="selected-file"> 415 <todo-panel id="selected-file">
...@@ -436,7 +438,7 @@ ...@@ -436,7 +438,7 @@
436 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 438 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
437 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 439 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
438 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16523606" sideWeight="0.48880598" order="0" side_tool="false" content_ui="combo" /> 440 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16523606" sideWeight="0.48880598" order="0" side_tool="false" content_ui="combo" />
439 - <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.29613733" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> 441 + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.29613733" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
440 <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> 442 <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
441 <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> 443 <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
442 <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 444 <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
...@@ -521,7 +523,7 @@ ...@@ -521,7 +523,7 @@
521 </component> 523 </component>
522 <component name="XDebuggerManager"> 524 <component name="XDebuggerManager">
523 <breakpoint-manager> 525 <breakpoint-manager>
524 - <option name="time" value="211" /> 526 + <option name="time" value="245" />
525 </breakpoint-manager> 527 </breakpoint-manager>
526 <watches-manager /> 528 <watches-manager />
527 </component> 529 </component>
...@@ -584,6 +586,7 @@ ...@@ -584,6 +586,7 @@
584 <provider selected="true" editor-type-id="text-editor"> 586 <provider selected="true" editor-type-id="text-editor">
585 <state relative-caret-position="212"> 587 <state relative-caret-position="212">
586 <caret line="43" column="10" lean-forward="false" selection-start-line="43" selection-start-column="10" selection-end-line="43" selection-end-column="10" /> 588 <caret line="43" column="10" lean-forward="false" selection-start-line="43" selection-start-column="10" selection-end-line="43" selection-end-column="10" />
589 + <folding />
587 </state> 590 </state>
588 </provider> 591 </provider>
589 </entry> 592 </entry>
...@@ -695,66 +698,82 @@ ...@@ -695,66 +698,82 @@
695 </state> 698 </state>
696 </provider> 699 </provider>
697 </entry> 700 </entry>
698 - <entry file="file://$PROJECT_DIR$/routes/index.js"> 701 + <entry file="file://$PROJECT_DIR$/views/setting.ejs">
699 <provider selected="true" editor-type-id="text-editor"> 702 <provider selected="true" editor-type-id="text-editor">
700 - <state relative-caret-position="267"> 703 + <state relative-caret-position="-104">
701 - <caret line="149" column="0" lean-forward="false" selection-start-line="149" selection-start-column="0" selection-end-line="149" selection-end-column="0" /> 704 + <caret line="13" column="10" lean-forward="false" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" />
702 - <folding> 705 + <folding />
703 - <element signature="n#!!block;n#getLatestToon#0" expanded="false" />
704 - <element signature="n#!!block;n#getAllToons#0" expanded="false" />
705 - </folding>
706 </state> 706 </state>
707 </provider> 707 </provider>
708 </entry> 708 </entry>
709 - <entry file="file://$PROJECT_DIR$/views/index.ejs"> 709 + <entry file="file://$PROJECT_DIR$/views/mytoons.ejs">
710 <provider selected="true" editor-type-id="text-editor"> 710 <provider selected="true" editor-type-id="text-editor">
711 - <state relative-caret-position="-161"> 711 + <state relative-caret-position="222">
712 - <caret line="0" column="15" lean-forward="true" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" /> 712 + <caret line="40" column="10" lean-forward="true" selection-start-line="40" selection-start-column="10" selection-end-line="40" selection-end-column="10" />
713 - <folding> 713 + <folding />
714 - <marker date="1512610222312" expanded="true" signature="211:1032" ph="..." />
715 - </folding>
716 </state> 714 </state>
717 </provider> 715 </provider>
718 </entry> 716 </entry>
719 - <entry file="file://$PROJECT_DIR$/views/setting.ejs"> 717 + <entry file="file://$PROJECT_DIR$/routes/setting.js">
720 <provider selected="true" editor-type-id="text-editor"> 718 <provider selected="true" editor-type-id="text-editor">
721 - <state relative-caret-position="-8"> 719 + <state relative-caret-position="75">
722 - <caret line="24" column="12" lean-forward="false" selection-start-line="24" selection-start-column="12" selection-end-line="24" selection-end-column="12" /> 720 + <caret line="41" column="22" lean-forward="false" selection-start-line="41" selection-start-column="22" selection-end-line="41" selection-end-column="22" />
723 <folding /> 721 <folding />
724 </state> 722 </state>
725 </provider> 723 </provider>
726 </entry> 724 </entry>
725 + <entry file="file://$PROJECT_DIR$/routes/index.js">
726 + <provider selected="true" editor-type-id="text-editor">
727 + <state relative-caret-position="292">
728 + <caret line="58" column="0" lean-forward="false" selection-start-line="58" selection-start-column="0" selection-end-line="58" selection-end-column="0" />
729 + <folding>
730 + <element signature="n#!!block;n#getLatestToon#0" expanded="false" />
731 + <element signature="n#!!block;n#getAllToons#0" expanded="false" />
732 + </folding>
733 + </state>
734 + </provider>
735 + </entry>
727 <entry file="file://$PROJECT_DIR$/app.js"> 736 <entry file="file://$PROJECT_DIR$/app.js">
728 <provider selected="true" editor-type-id="text-editor"> 737 <provider selected="true" editor-type-id="text-editor">
729 - <state relative-caret-position="570"> 738 + <state relative-caret-position="120">
730 - <caret line="38" column="0" lean-forward="false" selection-start-line="38" selection-start-column="0" selection-end-line="38" selection-end-column="0" /> 739 + <caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="33" />
731 <folding> 740 <folding>
732 - <element signature="e#1750#1822#0" expanded="false" /> 741 + <element signature="e#1834#1906#0" expanded="false" />
733 - <element signature="e#1881#2127#0" expanded="false" /> 742 + <element signature="e#1965#2211#0" expanded="false" />
734 </folding> 743 </folding>
735 </state> 744 </state>
736 </provider> 745 </provider>
737 </entry> 746 </entry>
738 - <entry file="file://$PROJECT_DIR$/routes/setting.js"> 747 + <entry file="file://$PROJECT_DIR$/routes/mytoons.js">
739 <provider selected="true" editor-type-id="text-editor"> 748 <provider selected="true" editor-type-id="text-editor">
740 - <state relative-caret-position="90"> 749 + <state relative-caret-position="179">
741 - <caret line="6" column="49" lean-forward="false" selection-start-line="6" selection-start-column="49" selection-end-line="6" selection-end-column="49" /> 750 + <caret line="42" column="14" lean-forward="false" selection-start-line="42" selection-start-column="14" selection-end-line="42" selection-end-column="14" />
742 <folding /> 751 <folding />
743 </state> 752 </state>
744 </provider> 753 </provider>
745 </entry> 754 </entry>
746 - <entry file="file://$PROJECT_DIR$/routes/mytoons.js"> 755 + <entry file="file://$PROJECT_DIR$/views/toonviewer.ejs">
747 <provider selected="true" editor-type-id="text-editor"> 756 <provider selected="true" editor-type-id="text-editor">
748 - <state relative-caret-position="-210"> 757 + <state relative-caret-position="150">
749 - <caret line="34" column="76" lean-forward="false" selection-start-line="34" selection-start-column="76" selection-end-line="34" selection-end-column="76" /> 758 + <caret line="10" column="1" lean-forward="false" selection-start-line="10" selection-start-column="1" selection-end-line="10" selection-end-column="1" />
750 <folding /> 759 <folding />
751 </state> 760 </state>
752 </provider> 761 </provider>
753 </entry> 762 </entry>
754 - <entry file="file://$PROJECT_DIR$/views/mytoons.ejs"> 763 + <entry file="file://$PROJECT_DIR$/views/index.ejs">
764 + <provider selected="true" editor-type-id="text-editor">
765 + <state relative-caret-position="-111">
766 + <caret line="0" column="15" lean-forward="true" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
767 + <folding>
768 + <marker date="1512610222312" expanded="true" signature="211:1032" ph="..." />
769 + </folding>
770 + </state>
771 + </provider>
772 + </entry>
773 + <entry file="file://$PROJECT_DIR$/routes/toonviewer.js">
755 <provider selected="true" editor-type-id="text-editor"> 774 <provider selected="true" editor-type-id="text-editor">
756 - <state relative-caret-position="330"> 775 + <state relative-caret-position="237">
757 - <caret line="22" column="11" lean-forward="true" selection-start-line="22" selection-start-column="11" selection-end-line="22" selection-end-column="11" /> 776 + <caret line="45" column="28" lean-forward="false" selection-start-line="45" selection-start-column="28" selection-end-line="45" selection-end-column="28" />
758 <folding /> 777 <folding />
759 </state> 778 </state>
760 </provider> 779 </provider>
......
...@@ -14,6 +14,7 @@ var mytoons = require('./routes/mytoons'); ...@@ -14,6 +14,7 @@ var mytoons = require('./routes/mytoons');
14 var passport = require('passport'); 14 var passport = require('passport');
15 var setting = require('./routes/setting'); 15 var setting = require('./routes/setting');
16 var session = require('express-session'); 16 var session = require('express-session');
17 +var toonviewer = require('./routes/toonviewer')
17 18
18 passport.serializeUser(function(user, done) { 19 passport.serializeUser(function(user, done) {
19 console.log('serialized'); 20 console.log('serialized');
...@@ -58,6 +59,7 @@ app.use('/', index); ...@@ -58,6 +59,7 @@ app.use('/', index);
58 app.use('/users', users); 59 app.use('/users', users);
59 app.use('/mytoons', mytoons); 60 app.use('/mytoons', mytoons);
60 app.use('/setting', setting); 61 app.use('/setting', setting);
62 +app.use('/toonviewer', toonviewer);
61 63
62 //app.use(express.static('views')); 64 //app.use(express.static('views'));
63 65
......
...@@ -32,7 +32,7 @@ function getUpdatedToons(cb){ ...@@ -32,7 +32,7 @@ function getUpdatedToons(cb){
32 } 32 }
33 33
34 function getMyToons(id,cb){ 34 function getMyToons(id,cb){
35 - var sqlquery = 'SELECT name, thum_link, webtoon_link, week, last, latest FROM user u, user_toon_relation ur, toon t WHERE u.id=? && u.id=ur.user_id && t.toon_index=ur.toon_index;'; 35 + var sqlquery = 'SELECT name, thum_link, webtoon_link, week, last, latest, t.toon_index AS toon_index FROM user u, user_toon_relation ur, toon t WHERE u.id=? && u.id=ur.user_id && t.toon_index=ur.toon_index;';
36 var mylist = new Array(); 36 var mylist = new Array();
37 connection.query(sqlquery,id,function(err,rows,result){ 37 connection.query(sqlquery,id,function(err,rows,result){
38 if(!err){ 38 if(!err){
...@@ -40,7 +40,7 @@ function getMyToons(id,cb){ ...@@ -40,7 +40,7 @@ function getMyToons(id,cb){
40 cb(mylist); 40 cb(mylist);
41 }else{ 41 }else{
42 console.log("내 웹툰 리스트 가져오는데 실패했습니다!"); 42 console.log("내 웹툰 리스트 가져오는데 실패했습니다!");
43 - throw err; 43 + //throw err;
44 } 44 }
45 }); 45 });
46 } 46 }
......
1 +var express = require('express');
2 +var router = express.Router();
3 +var request = require('request');
4 +var cheerio = require('cheerio');
5 +var async = require('async');
6 +
7 +function updateLastWebtoon(toon_index, user_id, num,cb){
8 + var sql_query = "UPDATE user_toon_relation SET last=? WHERE user_id=? && toon_index=?";
9 + connection.query(sql_query,[num, user_id,toon_index],function(err){
10 + if(!err){
11 + cb();
12 + }
13 + });
14 +}
15 +
16 +function getToonImages(toon_index, num, cb){
17 + var imageList = [];
18 + var toonUrl = "http://comic.naver.com/webtoon/detail.nhn?titleId=" + toon_index + "&no=" + num;
19 +
20 + request(toonUrl, function(err, res, html){
21 + if(!err){
22 + var $ = cheerio.load(html);
23 + var p = Promise.resolve();
24 + var eachs = $("div.wt_viewer > img").each(function(index, element) {
25 + p = p.then(function() {
26 + var toonHref = $(element).attr('src');
27 + imageList.push(toonHref);
28 + });
29 + });
30 + p.then(function(){
31 + cb(imageList);
32 + });
33 + }else{
34 + console.log("웹툰 이미지 못가져왔습니다.");
35 + }
36 + });
37 +}
38 +
39 +router.get('/:toon_index/:num',function(req,res){
40 + if(!req.isAuthenticated()){
41 + res.redirect('/');
42 + return;
43 + }
44 + updateLastWebtoon(req.params.toon_index, req.user.user_id, req.params.num, function(){
45 + var toonUrl = "http://comic.naver.com/webtoon/detail.nhn?titleId=" + req.params.toon_index + "&no=" + req.params.num;
46 + res.redirect(toonUrl);
47 + /*
48 + getToonImages(req.params.toon_index, req.params.num, function(imageList){
49 + res.render('toonviewer',{
50 + title: "zzz",
51 + images: imageList
52 + });
53 + });
54 + */
55 + })
56 +});
57 +
58 +module.exports = router;
...\ No newline at end of file ...\ No newline at end of file
...@@ -27,11 +27,8 @@ ...@@ -27,11 +27,8 @@
27 </head> 27 </head>
28 <h1>내툰</h1> 28 <h1>내툰</h1>
29 <p>추가한 리스트</p> 29 <p>추가한 리스트</p>
30 -
31 <a href="/auth/logout/kakao">로그아웃</a> 30 <a href="/auth/logout/kakao">로그아웃</a>
32 <a href="/setting/">세팅</a> 31 <a href="/setting/">세팅</a>
33 -</br>
34 -
35 <table> 32 <table>
36 <tr> 33 <tr>
37 <th>썸네일</th> 34 <th>썸네일</th>
...@@ -44,11 +41,10 @@ ...@@ -44,11 +41,10 @@
44 %><tr> 41 %><tr>
45 <td class="toon_thumbnail"><image src="<%= mytoons[i].thum_link%>"/></td> 42 <td class="toon_thumbnail"><image src="<%= mytoons[i].thum_link%>"/></td>
46 <td class="toon_name"><%= mytoons[i].name %></td> 43 <td class="toon_name"><%= mytoons[i].name %></td>
47 - <td class="toon_last"><%= mytoons[i].last %>화</td> 44 + <td class="toon_last"><a href="/toonviewer/<%= mytoons[i].toon_index %>/<%= mytoons[i].last %>"><%= mytoons[i].last %>화</a></td>
48 - <td class="toon_next"><%= mytoons[i].last +1 %>화</td> 45 + <td class="toon_next"><% if(mytoons[i].last+1 <= mytoons[i].latest){ %> <a href="/toonviewer/<%= mytoons[i].toon_index %>/<%= mytoons[i].last+1 %>"><%= mytoons[i].last +1 %>화</a><% } %></td>
49 - <td class="toon_latest"><%= mytoons[i].latest %>화</td> 46 + <td class="toon_latest"><a href="/toonviewer/<%= mytoons[i].toon_index %>/<%= mytoons[i].latest %>"><%= mytoons[i].latest %>화</a></td>
50 </tr> 47 </tr>
51 - <br>
52 <% } %> 48 <% } %>
53 </table> 49 </table>
54 50
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 </head> 11 </head>
12 <h1>내툰</h1> 12 <h1>내툰</h1>
13 <p>추가하거나 제거할 웹툰을 선택해주세요.</p> 13 <p>추가하거나 제거할 웹툰을 선택해주세요.</p>
14 - 14 +<a href="/mytoons">뒤로</a>
15 <table> 15 <table>
16 <% 16 <%
17 var current = ""; 17 var current = "";
......
1 +<!DOCTYPE html>
2 +<html lang="en">
3 +<head>
4 + <meta charset="UTF-8">
5 + <title><%= title %></title>
6 +</head>
7 +<body>
8 +<%
9 +for(image in images){
10 +%>
11 +<img src="<%= images[image] %>" alt=""/>
12 +<%
13 +}
14 + %>
15 +
16 +</body>
17 +</html>
...\ No newline at end of file ...\ No newline at end of file