From c0f9bdd37bdb95c43d784b3fd2ccff6a70c59f9f Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 21 May 2019 19:50:47 -0400 Subject: [PATCH] Add support for the "Open" action --- client/client.go | 17 +++++++++++++++++ plugin/images/actions/open-icon.png | Bin 0 -> 4776 bytes plugin/images/actions/open.png | Bin 0 -> 6992 bytes plugin/images/actions/website-icon.png | Bin 0 -> 6989 bytes plugin/manifest.json | 25 +++++++++++++++++++------ plugin/pi/css/check.png | Bin 0 -> 234 bytes plugin/pi/css/check.svg | 3 +++ plugin/pi/index_pi.js | 9 +++------ plugin/pi/index_pi_server.html | 9 +++++++-- remote.go | 2 ++ server.go | 23 +++++++++++++++++++++++ 11 files changed, 74 insertions(+), 14 deletions(-) create mode 100644 plugin/images/actions/open-icon.png create mode 100644 plugin/images/actions/open.png create mode 100644 plugin/images/actions/website-icon.png create mode 100644 plugin/pi/css/check.png create mode 100644 plugin/pi/css/check.svg diff --git a/client/client.go b/client/client.go index 77a2bd7..252c265 100644 --- a/client/client.go +++ b/client/client.go @@ -13,6 +13,7 @@ import ( const ( urlPath = "/url/open" + openPath = "/cmd/open" ) type RemoteClient struct { @@ -32,6 +33,22 @@ func New(host, token string) *RemoteClient { return &RemoteClient{client: client, baseUrl: "https://" + host, token: token} } +func (r *RemoteClient) Open(path string) error { + formData := url.Values{ + "path": {path}, + } + + status, _, err := r.doRequest(openPath, formData) + + if err != nil { + return err + } else if status != http.StatusOK { + return errors.New("invalid status: " + strconv.Itoa(status)) + } + + return nil +} + func (r *RemoteClient) OpenURL(urlStr string) error { formData := url.Values{ "url": {urlStr}, diff --git a/plugin/images/actions/open-icon.png b/plugin/images/actions/open-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9fcd011d80780c8cc4ca44c343e709ca71110173 GIT binary patch literal 4776 zcmeHL=T}qN*S_}}B~$}a1VjReQlyuW9y*2=K+4diHwUCw35;~5NDxAhAV^?DilHcm z5iAJAfgm77n)Diws))ib&Y$qE_v3uH>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C7tV<`rw%SRhr#HCZr56b*lV0gH7e73k`AoC0B9VwMKXU?B{V`@Tt00zS&Pu>{R$ zNQivC2SA~CyHh7YLB_Ycnw;V=XD$>FsRdWPyQeFe$+Ss literal 0 HcmV?d00001 diff --git a/plugin/images/actions/open.png b/plugin/images/actions/open.png new file mode 100644 index 0000000000000000000000000000000000000000..95ff75b8ad2a0dbd7d284da886d6c2df63311a9a GIT binary patch literal 6992 zcmeHs^;cA1^!ChU!~sEu1{D~(MM^*fE+r)?DJdP&B1jJ1H6SG=AqqH@(xrqT2s(g- zw1^T8DIMR-=llNp{sHe=?+>%qUH6=`&-3hk_TF=z8>^$GLQZ;(6b6HltEnpK!C-Lo z#ScjggTZLRaTplvI=z~byuP2s-#nKD=CNm=3bK8xHVFQI-)|k&n#@&y5a_kn)RTsX zJ+3Afe#I%`B(GLZ8k-`f+<%#k^Yp8bzNVa#GcSp%s)62^DoP2d)k)kEqk~puAiB*E zF0^)3-`mh;IpFTBEBaXRo-qXu-!dxEwTJYL6d)2Wp!+u*nj=5Q`A*(83DX0jEnJHrW1eG~2tmVZ1vH#-9g5qZuEs1y0hhyxkRX~7Q5mORV}Dy?pO6V$ zx}l0$HJs&as+S1`3WX8q6f+?EnIQh(&_)pVyeVe&p@bR%c`Vc3KY{{yS?A+)_Hp#x zo}+WC+nivGw)(xRP9R7P?_ett0Dbr+)RNL}YT9*?Bk+oy!(R8*FwUkD>Sui_E3Egp zP#BCM@N`FSW%m78o%S%G-x3(UlpM4;DI5hskEO~IxAfm%-%M}ihL=CwwX11qk#ydV zpkYU*OG5rzD(AB+{M%N9jw4NxDb=kdw~YHYlu~431%o3Qlsoh9Jn+{F!lr4sRhPY37Ik>pU^sX_x4i+49de%7XZqAi^2u}nK@N>lrs zY|ILShm%Z<*lX-_SJBg>?d6D#Qoo{8YyqRe=d;NcEgazk_Mp#rW$N^sdX6%+b;xz0 zi1qB9(&H|Tf|Pb8Ox7ubvA9AQ7>7)lxzelzg~{!?+3`!7QVl+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ny!dc_v=ASD^n}&@0jaRp%n{~xpUNk?Uu7sl<{%cR(W*nO0_z~;Ph%ngU>iwh@C?z(g zUl8gLxy7K0s-2d`>tkM)3Ht2Zn0%Vy(C%`p$e&~2&6L_h8?$|iphw>YGQaFTURGwt z(x6yaSkC(*89HEU{Z6MLUzz98ih-D$VDhq?oxC5hIjI@nTvgqIF>3?A=80GyrMq$8 zZebe&5^Yo%MC7s@<@zYI?s{Qtx%8)FUV}VJ#cTyrOuL+YmV1~U{jJx1VQpaHkdRK3 zKnnSxsB;JFV?E+y|Kg5)b9mU!w9UG;GByjFdw#sLV}GP8%L$C)Ys4|6;Mi{k8){^z zMwBIKRG;jTRf=Dt{_9ZBKSe$KA~(F5kU*?@p}E6p$na?CBXZcTJ782xTrPKTAeh+ z_srwu)3p_GP3QotA1TXH4b_h~I=*BwiqSUdD>QW*Gp6+s%@z6Y&5ju9R$}t>!iOCpweN# z<~YOHy2rI6t3*hj0BX&?>6b`v0sVd6HU6jQ*wpZVRrAyVr}grbN?n%&g|L5k?7tZ= zl}Q5qza}F@ z$m|V>oCDz1uL~3c+`I$;>2^i&4KP#|pwww~HD7|rp8+cgTRkQS-9G@m&XF7q0Ykq7 zt7o56g~@s50m4y^hn@mL7tM + + diff --git a/plugin/pi/index_pi.js b/plugin/pi/index_pi.js index c36da6d..9670d5a 100644 --- a/plugin/pi/index_pi.js +++ b/plugin/pi/index_pi.js @@ -76,17 +76,14 @@ function connectElgatoStreamDeckSocket (inPort, inUUID, inRegisterEvent, inInfo, } function initPropertyInspector(initDelay) { - if (actionInfo['action'] == 'tf.meow.remote.website') { - $('#url_container').show(); - $('#url_background_container').show(); - } + const action = actionInfo['action']; + + $('[data-action=' + action + ']').removeClass('hidden'); Object.keys(settings).forEach(function (item) { let $item = $('#' + item), value = settings[item]; - console.log('Load setting', item, 'value', value); - switch ($item.attr('type')) { case 'checkbox': let itemVal = $item.attr('value'); diff --git a/plugin/pi/index_pi_server.html b/plugin/pi/index_pi_server.html index 3041dd5..426fb9b 100644 --- a/plugin/pi/index_pi_server.html +++ b/plugin/pi/index_pi_server.html @@ -23,17 +23,22 @@ -