|
16 | 16 | <p>The rtfm plugin allows you to easily and quickly query manuals and docs.</p> |
17 | 17 | {% call actions() %} |
18 | 18 | <a class="button" target="_blank" href="https://github.com/cibere/Flow.Launcher.Plugin.rtfm">Open Github Page</a> |
19 | | - <a class="button" target="_blank" href="https://rtfm.cibere.dev/{{ rtfm_version }}">Open Documentation</a> |
| 19 | + <a class="button" target="_blank" href="https://rtfm.cibere.dev/{{ plugin.metadata.version }}">Open Documentation</a> |
20 | 20 | {% endcall %} |
21 | 21 | {% endcall %} |
22 | 22 |
|
23 | 23 | <form id="main-form" action="/api/settings" method="POST"> |
24 | 24 | {% call card("Plugin Settings") %} |
25 | 25 | <div class="two-columns"> |
26 | 26 | {% call input(label="Webserver Port", id="webserver-port-input", description="This is the port that this settings page will be hosted on. If set to 0, the plugin will let your system choose an unused port on startup.") %} |
27 | | - <input type="number" id="webserver-port-input" name="plugin.port" min="0" max="65535" step="1" value="{{ port }}"> |
| 27 | + <input type="number" id="webserver-port-input" name="plugin.port" min="0" max="65535" step="1" value="{{ plugin.static_port }}"> |
28 | 28 | {% endcall %} |
29 | 29 | {% call input(label="Main Keyword", id="main-keyword-input", description="This is the keyword that lets you access the settings page, reload the cache, and open up the plugin's log file.") %} |
30 | | - <input type="text" id="main-keyword-input" name="plugin.keyword" value="{{ main_kw }}"> |
| 30 | + <input type="text" id="main-keyword-input" name="plugin.keyword" value="{{ plugin.main_kw }}"> |
31 | 31 | {% endcall %} |
32 | 32 | {% call checkbox(label="Debug Mode", id="main-debug-mode-input", description="If checked, the plugin will include debug logs in the plugin's log file.") %} |
33 | 33 | <input |
34 | 34 | id="main-debug-mode-input" |
35 | 35 | type="checkbox" |
36 | | - name="plugin.debug" |
37 | | - {% if debug_mode %}checked{% endif %} |
| 36 | + name="plugin.debug_mode" |
| 37 | + {% if plugin.debug_mode %}checked{% endif %} |
38 | 38 | > |
39 | 39 | {% endcall %} |
40 | 40 | {% call checkbox(label="Simple View", id="main-simple-view-input", description="If checked, the plugin will remove subtitles from the results it returns") %} |
41 | 41 | <input |
42 | 42 | id="main-simple-view-input" |
43 | 43 | type="checkbox" |
44 | | - name="plugin.simple" |
45 | | - {% if simple_view %}checked{% endif %} |
| 44 | + name="plugin.simple_view" |
| 45 | + {% if plugin.simple_view %}checked{% endif %} |
46 | 46 | > |
47 | 47 | {% endcall %} |
48 | 48 | {% call checkbox(label="Reset Query", id="main-reset-query-input", description="If checked, the plugin will reset the query to just the keyword when opening a result") %} |
49 | 49 | <input |
50 | 50 | id="main-reset-query-input" |
51 | 51 | type="checkbox" |
52 | 52 | name="plugin.reset_query" |
53 | | - {% if reset_query %}checked{% endif %} |
| 53 | + {% if plugin.reset_query %}checked{% endif %} |
54 | 54 | > |
55 | 55 | {% endcall %} |
56 | 56 | </div> |
|
74 | 74 | {% endcall %} |
75 | 75 | </div> |
76 | 76 |
|
77 | | - {% for lib in libs %} |
| 77 | + {% for lib in plugin.libraries.values() %} |
78 | 78 | {{ doc(location=lib.loc, index=loop.index, type=lib.typename, name=lib.name, cache_results=lib.cache_results, is_api=lib.is_api) }} |
79 | 79 | {% endfor %} |
80 | 80 | </form> |
|
0 commit comments