jdel / sspks

A very simple Synology Package Server, reverse engineered from the official Synology package repository and SynoCommunity.
GNU General Public License v3.0
254 stars 64 forks source link

Catchup: Implement dummy debug package #46

Open jdel opened 7 years ago

jdel commented 7 years ago

Implement a dummy debug package that will output debug information directly in the Syno UI as the package description.

Conditions to trigger that package to show:

Data that could be in the description: full HTTP request (headers, url, vars...)

jdel commented 7 years ago

So, I have just done a test with this. It looks like the syno is stripping line breaks and encoding special characters.

I haven't managed to insert line breaks in the description field, which results in a pretty bad looking debug output in the package center.

I have tried both \n and <br /> with no success so far.

jdel commented 7 years ago

Anyone interested, it has been implemented in gosspks. Still ugly but i can't do much better without line breaks.

You can see the debug package in your synology package center by adding my dev repo here: https://packages-dev.fkn.ninja/

jdel commented 7 years ago

Unfortunately, I couldn't find any package with a line break from the entiere JSON output of the official syno repo (for my arch: cedarview) so I just gave up trying.

Pipes with lots of spaces are a good idea indeed. However, generating markdown code would be pretty useless because it cannot be copied and pasted. The package center doesn't allow you to select the description to copy it (at least on chrome).

jdel commented 7 years ago

I will do some tests at some point, but I cannot insert non breaking spaces either.

Might need to have a look at using weird unicode characters ?

jdel commented 7 years ago

Sorted, by simply using unicode line breaks ! https://github.com/jdel/gosspks/commit/accd9e1

I will try to port this to sspks when I have some time.