From cecb6e4ed1b4268ffd909f94d9e545cf6cf24e9b Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Tue, 1 Aug 2017 19:31:01 +0300 Subject: [PATCH 1/3] Database name was fixed --- sql/sqitch.conf | 2 +- templates/includes/images_list.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/sqitch.conf b/sql/sqitch.conf index 8b84c82..8a8a8e5 100644 --- a/sql/sqitch.conf +++ b/sql/sqitch.conf @@ -7,7 +7,7 @@ # registry = sqitch # client = sqlite3 [target "foto_test"] - uri = db:sqlite:rsscp_test.db + uri = db:sqlite:fotostore.db [engine "sqlite"] target = foto_test [deploy] diff --git a/templates/includes/images_list.html.ep b/templates/includes/images_list.html.ep index 3829390..6447c5a 100644 --- a/templates/includes/images_list.html.ep +++ b/templates/includes/images_list.html.ep @@ -44,7 +44,7 @@ -- 2.43.0 From 968ae0f2ce81b511c9c442ede78195e25cd611e3 Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Tue, 1 Aug 2017 21:04:12 +0300 Subject: [PATCH 2/3] Copy img tag to clipboard --- public/css/main.css | 6 ++++++ public/img/copy_icon.png | Bin 0 -> 2637 bytes templates/includes/images_list.html.ep | 18 ++++++++++++++---- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 public/img/copy_icon.png diff --git a/public/css/main.css b/public/css/main.css index 58d8c9b..f68d8dd 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -6,4 +6,10 @@ } .foto-block .foto-notes { padding: 5px; +} +.copy-img { + content:url(/img/copy_icon.png); + width: 32px; + height: 32px; + overflow: hidden; } \ No newline at end of file diff --git a/public/img/copy_icon.png b/public/img/copy_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d7a64e00e8823632c0660e5952acfb4fc9cf2e49 GIT binary patch literal 2637 zcmd^BiB}Tn76(x%1JS8WFqdi^oy;Z4+;XYRFdLl8nQ-AnX&92qDDE4MGgeb7xnxda zX{2eWqi8CoVwg*67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xq!-8R zphvbm!@o8d&tpDlyFgaPL6?`z3Pg+5ErLpbkyYW4KibHIQgqZ>n!& z9Ob9_mB$v`aV6>MrA}V*yLlz`=K^W0itg4lN=1v+I8)Yz9ZfalzheEX-lv4GlTWoT zd?UayP~Rst{!t4LB$`9X&TpuLh!0D%y*o-BMik(G2)Q=${kZSKTZ&_dEth<3jib^J zTClzJQK}|LGMfGEbzGIh4GJ79g|*hvb6Mn*LPhKK7-?A0O-N;b zgw8DP^-SilH@kK{|MhB>Llz~PWF?X8FU!F=G67rr#!}bJh`3`O?BSIo65R)Rx2nxi zt*(x9tZVkvON6Buh_kETkTaTo>gj|C{(?REq6@FT+AAZ9?qYM13J`~sa6iS%|5_s* zNprmI!`;xHWgD&?4hIJTKY|%c!-39g=$OHK>5Ta_EhNf#2LT=@mG=NYC5ir`c%A&) zx;!Xe2SL+dJ+&1=J|`cp(E!!rb(_-H><)?ADy&uh??{bS291}JzQmS?G@gFMmk<8F zFcF%LRLrM7+;fMOt74Ruo{$_rhS@{pH+3sQ$5Jzwo-5qU!9gxzU%*jrlHU)|?!bT*_Qt1NY(LE(PdV$15oiP=Lx+6|Eh zZUoop4r-Qv2uqP>`Z$iVK^A(n)lqLH^|MEBn?5?S&{Vm>&K?UAb`#%K&{}{I&li!NBkz*I7 z3sT?l0p;ohez70gdr&}E=>0{)r&e) zr$CzrLc0mH3#>7dT$ADf`tm3rV=Mg6pq2eK5w&K7D1X)kJgDxgng;=%r!ekSC-6W2 E6BjG#1^@s6 literal 0 HcmV?d00001 diff --git a/templates/includes/images_list.html.ep b/templates/includes/images_list.html.ep index 6447c5a..7c4d9b5 100644 --- a/templates/includes/images_list.html.ep +++ b/templates/includes/images_list.html.ep @@ -42,9 +42,9 @@
@@ -54,6 +54,7 @@ \ No newline at end of file -- 2.43.0 From 53080e09da9e897a3cfc5b3c4dfe7b789167e2a6 Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Tue, 1 Aug 2017 21:05:58 +0300 Subject: [PATCH 3/3] todo --- templates/includes/images_list.html.ep | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/includes/images_list.html.ep b/templates/includes/images_list.html.ep index 7c4d9b5..16d63c9 100644 --- a/templates/includes/images_list.html.ep +++ b/templates/includes/images_list.html.ep @@ -75,12 +75,11 @@ xhr.open('GET', apiURL) xhr.onload = function () { self.imagesList = JSON.parse(xhr.responseText) - // console.log(self.imagesList[0].thumbnail_url) } xhr.send() }, copyText(event) { - // console.log(event.target); + //TODO: rewrite it to vue/JS from jquery var $temp = $(""); $("body").append($temp); $temp.val("").select(); -- 2.43.0