diff options
| author | marios <marios8543@gmail.com> | 2022-04-03 23:50:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 23:50:26 +0300 |
| commit | 5e9c12bac838730d4e216b3779227a9a94447e40 (patch) | |
| tree | 61f50207f0d45f6fdab09c31d2b35778df8aff63 /plugin_loader/templates/plugin_view.html | |
| parent | fb6f55a44deef64a0efff9cc645368b946ea897d (diff) | |
| download | decky-loader-5e9c12bac838730d4e216b3779227a9a94447e40.tar.gz decky-loader-5e9c12bac838730d4e216b3779227a9a94447e40.zip | |
Python rewrite (#6)
* Initial commit. Untested
* various fixes
Core functionality confirmed working:
- Iframe injection into steam client
- Plugin fetching from the iframe
- Plugin opening
* Added function to fetch resources from steam
* Improved injector module, added server-js communication
- Injector module now has methods for better lower-level manipulation of the tab debug websocket.
- Our "front-end" can now communicate with the manager (2-way), completely bypassing the chromium sandbox. This works via a dirty debug console trick, whoever wants to know how it works can take a look at the code.
- Added utility methods file, along with an implementation of the aiohttp client that our "front-end" can access, via the system described above.
- Added js implementations of the communication system described above, which can be imported by plugins.
* Added steam_resource endpoint
* Added basic installer script
* retry logic bug fix
* fixed library injection, event propagation, websocket handling
- library is injected directly into the plugins as well as the plugin list
- resolveMethodCall is implemented in the plugin_list.js file, which in turns calls window.sendMessage on the iframe to propagate the event
- websocket method calls are processed in their own tasks now, so as not to block on long-running calls.
Co-authored-by: tza <tza@hidden>
Co-authored-by: WerWolv <werwolv98@gmail.com>
Diffstat (limited to 'plugin_loader/templates/plugin_view.html')
| -rw-r--r-- | plugin_loader/templates/plugin_view.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugin_loader/templates/plugin_view.html b/plugin_loader/templates/plugin_view.html new file mode 100644 index 00000000..8a482fae --- /dev/null +++ b/plugin_loader/templates/plugin_view.html @@ -0,0 +1,31 @@ +<link rel="stylesheet" href="/steam_resource/css/2.css"> +<link rel="stylesheet" href="/steam_resource/css/39.css"> +<link rel="stylesheet" href="/steam_resource/css/library.css"> + +{% if not plugins|length %} +<div class="basicdialog_Field_ugL9c basicdialog_WithChildrenBelow_1RjOd basicdialog_InlineWrapShiftsChildrenBelow_3a6QZ basicdialog_ExtraPaddingOnChildrenBelow_2-owv basicdialog_StandardPadding_1HrfN basicdialog_HighlightOnFocus_1xh2W Panel Focusable" style="--indent-level:0;"> + <div class="basicdialog_FieldChildren_279n8" style="color: white; font-size: large; padding-top: 10px;"> + No plugins installed :( + </div> +</div> +{% endif %} + +<div class="quickaccessmenu_TabGroupPanel_1QO7b Panel Focusable"> + <div class="quickaccesscontrols_PanelSectionRow_26R5w"> + {% for plugin in plugins %} + {% if plugin.tile_view_html|length %} + <div onclick="location.href = '/plugins/load/{{ plugin.name }}'" class="basicdialog_Field_ugL9c basicdialog_WithChildrenBelow_1RjOd basicdialog_InlineWrapShiftsChildrenBelow_3a6QZ basicdialog_ExtraPaddingOnChildrenBelow_2-owv basicdialog_StandardPadding_1HrfN basicdialog_HighlightOnFocus_1xh2W Panel Focusable" style="--indent-level:0;"> + {{ plugin.tile_view_html }} + </div> + {% else %} + <div class="quickaccesscontrols_PanelSectionRow_26R5w"> + <div onclick="location.href = '/plugins/load/{{ plugin.name }}'" class="basicdialog_Field_ugL9c basicdialog_WithChildrenBelow_1RjOd basicdialog_InlineWrapShiftsChildrenBelow_3a6QZ basicdialog_ExtraPaddingOnChildrenBelow_2-owv basicdialog_StandardPadding_1HrfN basicdialog_HighlightOnFocus_1xh2W Panel Focusable" style="--indent-level:0;"> + <div class="basicdialog_FieldChildren_279n8"> + <button type="button" tabindex="0" class="DialogButton _DialogLayout Secondary basicdialog_Button_1Ievp Focusable">{{ plugin.name }}</button> + </div> + </div> + </div> + {% endif %} + {% endfor %} + </div> +</div>
\ No newline at end of file |
