Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
49e3df4
add a new optional param to refresh funcs
Epig-is-a-llama May 23, 2025
6129b6a
create a new report generator function
Epig-is-a-llama May 23, 2025
97651db
add a temporary way to test the report gen
Epig-is-a-llama May 23, 2025
648f384
create new variables to hold
Epig-is-a-llama May 23, 2025
b157881
missed from previous commit
Epig-is-a-llama May 23, 2025
3bafdf6
minor formatting fix
Epig-is-a-llama May 23, 2025
6a516cb
confused as to the purpose of this var
Epig-is-a-llama May 23, 2025
2d932b2
data export on motherboard func
Epig-is-a-llama May 23, 2025
d00d9cb
data export on cpu func
Epig-is-a-llama May 23, 2025
372ec71
data export on network func
Epig-is-a-llama May 23, 2025
036073d
data export on pci func
Epig-is-a-llama May 23, 2025
cacb35a
data export on memory func
Epig-is-a-llama May 23, 2025
530cd2d
data export on disk func
Epig-is-a-llama May 23, 2025
95e4e0f
data export on kernel func
Epig-is-a-llama May 23, 2025
c53950c
data export on system func
Epig-is-a-llama May 23, 2025
4290c27
Merge pull request #1 from Epig-is-a-llama/report-generator-development
Epig-is-a-llama May 23, 2025
a283f2a
add two new buttons for exporting reports
Epig-is-a-llama May 23, 2025
b844505
adjust window sizing so all buttons show on launch
Epig-is-a-llama May 23, 2025
ce32e97
button functionality working now
Epig-is-a-llama May 23, 2025
694aa44
remove miliseconds from the datetime
Epig-is-a-llama May 23, 2025
ec9b06d
more output formatting
Epig-is-a-llama May 23, 2025
845db31
implement file saving system!
Epig-is-a-llama May 23, 2025
1163e72
remove un-needed debugging print statement
Epig-is-a-llama May 23, 2025
4a14bc4
delete the cached report once done
Epig-is-a-llama May 23, 2025
981d212
add to dev list! :D
Epig-is-a-llama May 24, 2025
1794789
fix global var issue
Epig-is-a-llama May 24, 2025
3ad074d
minor performance optimisation
Epig-is-a-llama May 24, 2025
e42f632
fix error thrown when export canceled
Epig-is-a-llama May 24, 2025
f96dcad
fix name of hml export func
Epig-is-a-llama May 24, 2025
31b459a
add pdf export function husk
Epig-is-a-llama May 24, 2025
cad8b56
nasty import problems
Epig-is-a-llama May 24, 2025
b2f7c8b
meson seems to refuse to install some modules
Epig-is-a-llama May 24, 2025
6de370d
fix formatting as per suggestions
Epig-is-a-llama May 24, 2025
2aa0b63
get rid of deprecated vars
Epig-is-a-llama May 25, 2025
bab7f55
fix the import/build errors
Epig-is-a-llama May 25, 2025
f92a0da
switch from markdown to markdown_it module
Epig-is-a-llama May 25, 2025
c82b360
working PDF export func
Epig-is-a-llama May 25, 2025
2757e55
added drop down menu, it won't work though?
Epig-is-a-llama May 25, 2025
b19ecdf
put all export options into a single button
Epig-is-a-llama May 25, 2025
184d97c
missed tooltip for new menu button
Epig-is-a-llama May 25, 2025
7946317
implement formatting suggestions from nokse22
Epig-is-a-llama May 25, 2025
32787f9
added keyboard shortcuts to the list
Epig-is-a-llama May 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions data/gtk/help-overlay.cmb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE cambalache-project SYSTEM "cambalache-project.dtd">
<!-- Created with Cambalache 0.96.1 -->
<cambalache-project version="0.96.0" target_tk="gtk-4.0">
<ui filename="help-overlay.ui" sha256="730e1af64910468b6125723698587b6a6b6c89f3fc831bb504d66dba4c0f1b9c"/>
</cambalache-project>
29 changes: 25 additions & 4 deletions data/gtk/help-overlay.ui
Original file line number Diff line number Diff line change
@@ -1,24 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.96.1 -->
<interface>
<!-- interface-name help-overlay.ui -->
<requires lib="gtk" version="4.6"/>
<object class="GtkShortcutsWindow" id="help_overlay">
<property name="modal">True</property>
<child>
<object class="GtkShortcutsSection">
<property name="section-name">shortcuts</property>
<property name="max-height">10</property>
<property name="section-name">shortcuts</property>
<child>
<object class="GtkShortcutsGroup">
<property name="title" translatable="yes" context="shortcut window">General</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>
<property name="action-name">win.show-help-overlay</property>
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Quit</property>
<property name="action-name">app.quit</property>
<property name="title" translatable="yes" context="shortcut window">Quit</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="action-name">app.export_md</property>
<property name="title" translatable="yes" context="shortcut window">Export .md</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="action-name">app.export_html</property>
<property name="title" translatable="yes" context="shortcut window">Export .html</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="action-name">app.export_pdf</property>
<property name="title" translatable="yes" context="shortcut window">Export .pdf</property>
</object>
</child>
</object>
Expand Down
2 changes: 1 addition & 1 deletion data/io.github.nokse22.inspector.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<schemalist gettext-domain="inspector">
<schema id="io.github.nokse22.inspector" path="/org/gnome/Example/">
<key name="window-width" type="i">
<default>600</default>
<default>700</default>
</key>
<key name="window-height" type="i">
<default>700</default>
Expand Down
23 changes: 23 additions & 0 deletions data/ui/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@
<signal name="clicked" handler="on_reload_clicked"/>
</object>
</child>
<child>
<object class="GtkMenuButton">
<property name="icon-name">accessories-text-editor-symbolic</property>
<property name="menu-model">export_menu</property>
<property name="tooltip-text" translatable="yes">Open Data Export Options</property>
</object>
</child>
</object>
</child>
</object>
Expand Down Expand Up @@ -293,6 +300,22 @@
</item>
</section>
</menu>
<menu id="export_menu">
<section>
<item>
<attribute name="action">app.export_md</attribute>
<attribute name="label" translatable="yes">Export as .md</attribute>
</item>
<item>
<attribute name="action">app.export_html</attribute>
<attribute name="label" translatable="yes">Export as .html</attribute>
</item>
<item>
<attribute name="action">app.export_pdf</attribute>
<attribute name="label" translatable="yes">Export as .pdf</attribute>
</item>
</section>
</menu>
</child>
</template>
</interface>
Expand Down
4 changes: 4 additions & 0 deletions io.github.nokse22.inspector.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"*.a"
],
"modules" : [
"python3-markdown-it-py.json",
{"name": "markdown_it"},
"python3-weasyprint.json",
{"name": "weasyprint"},
{
"name" : "inspector",
"builddir" : true,
Expand Down
19 changes: 19 additions & 0 deletions python3-markdown-it-py.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "python3-markdown-it-py",
"buildsystem": "simple",
"build-commands": [
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"markdown-it-py\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl",
"sha256": "355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl",
"sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"
}
]
}
74 changes: 74 additions & 0 deletions python3-weasyprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"name": "python3-weasyprint",
"buildsystem": "simple",
"build-commands": [
"pip3 install --use-deprecated=legacy-resolver --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"weasyprint\" --no-build-isolation"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/2f/c2/f9e977608bdf958650638c3f1e28f85a1b075f075ebbe77db8555463787b/Brotli-1.1.0.tar.gz",
"sha256": "81de08ac11bcb85841e440c13611c00b67d3bf82698314928d0b676362546724"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz",
"sha256": "1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/0f/e7/aa315e6a749d9b96c2504a1ba0ba031ba2d0517e972ce22682e3fccecb09/cssselect2-0.8.0-py3-none-any.whl",
"sha256": "46fc70ebc41ced7a32cd42d58b1884d72ade23d21e5a4eaaf022401c13f0e76e"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/1c/8c/9ffa2a555af0e5e5d0e2ed7fdd8c9bef474ed676995bb4c57c9cd0014248/fonttools-4.56.0.tar.gz",
"sha256": "a114d1567e1a1586b7e9e7fc2ff686ca542a82769a296cef131e4c4af51e58f4"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/f3/af/c097e544e7bd278333db77933e535098c259609c4eb3b85381109602fb5b/pillow-11.1.0.tar.gz",
"sha256": "368da70808b36d73b4b390a8ffac11069f8a5c85f29eff1f1b01bcf3ef5b2a20"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl",
"sha256": "c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/c9/ac/d5db977deaf28c6ecbc61bbca269eb3e8f0b3a1f55c8549e5333e606e005/pydyf-0.11.0-py3-none-any.whl",
"sha256": "0aaf9e2ebbe786ec7a78ec3fbffa4cdcecde53fd6f563221d53c6bc1328848a3"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/7b/1f/c2142d2edf833a90728e5cdeb10bdbdc094dde8dbac078cee0cf33f5e11b/pyphen-0.17.2-py3-none-any.whl",
"sha256": "3a07fb017cb2341e1d9ff31b8634efb1ae4dc4b130468c7c39dd3d32e7c3affd"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/e6/34/ebdc18bae6aa14fbee1a08b63c015c72b64868ff7dae68808ab500c492e2/tinycss2-1.4.0-py3-none-any.whl",
"sha256": "3a49cf47b7675da0b15d0c6e1df8df4ebd96e9394bb905a5775adb0d884c5289"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/5c/de/27c57899297163a4a84104d5cec0af3b1ac5faf62f44667e506373c6b8ce/tinyhtml5-2.0.0-py3-none-any.whl",
"sha256": "13683277c5b176d070f82d099d977194b7a1e26815b016114f581a74bbfbf47e"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/42/95/bf333fbbaf73c1c211b6b801b9ac2563db8e2225f69902d1ba8b25c70e9c/weasyprint-64.1-py3-none-any.whl",
"sha256": "f7c88ea8ce0ce0c527cbb9c802689e035fae50016d7efc5dfdaba4b75abf68f4"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl",
"sha256": "a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/5e/7c/a8f6696e694709e2abcbccd27d05ef761e9b6efae217e11d977471555b62/zopfli-0.2.3.post1.tar.gz",
"sha256": "96484dc0f48be1c5d7ae9f38ed1ce41e3675fd506b27c11a6607f14b49101e99"
}
]
}
15 changes: 14 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def __init__(self):

self.create_action('reload', self.on_reload_action, ['<primary>r'])

self.create_action('export_md', self.on_export_md, ['<primary>m'])
self.create_action('export_html', self.on_export_html, ['<primary>h'])
self.create_action('export_pdf', self.on_export_pdf, ['<primary>p'])

def do_activate(self):
"""Called when the application is activated.

Expand All @@ -51,7 +55,7 @@ def on_about_action(self, *args):
application_name=_("Inspector"),
application_icon='io.github.nokse22.inspector',
developer_name='Nokse',
developers=["Nokse22 https://github.com/Nokse22","David Stephenson https://github.com/David-Stephenson", "soumyaDghosh https://github.com/soumyaDghosh"],
developers=["Nokse22 https://github.com/Nokse22","David Stephenson https://github.com/David-Stephenson", "soumyaDghosh https://github.com/soumyaDghosh", "Epig-is-a-llama https://github.com/Epig-is-a-llama"],
issue_url='https://github.com/Nokse22/inspector/issues',
website='https://github.com/Nokse22/inspector',
version='0.3.0',
Expand Down Expand Up @@ -83,6 +87,15 @@ def create_action(self, name, callback, shortcuts=None):
def on_reload_action(self, *args):
self.win.reload_current()

def on_export_md(self, *args):
self.win.on_md_export_clicked()

def on_export_html(self, *args):
self.win.on_html_export_clicked()

def on_export_pdf(self, *args):
self.win.on_pdf_export_clicked()


def main(version):
"""The application's entry point."""
Expand Down
Loading
Loading