Skip to content

Commit

Permalink
Merge pull request #880 from yyk808/main
Browse files Browse the repository at this point in the history
Monobean PGP key generation
  • Loading branch information
genedna authored Mar 6, 2025
2 parents 2082ae1 + 253b632 commit 51e3844
Show file tree
Hide file tree
Showing 18 changed files with 747 additions and 230 deletions.
13 changes: 10 additions & 3 deletions monobean/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,27 @@ mono = { path = "../mono" }
common = { path = "../common" }
jupiter = { path = "../jupiter" }
taurus = { path = "../taurus" }
vault = { path = "../vault" }
tokio = "1.43.0"
russh = "0.50.2"
axum = "0.8.1"
axum-server = "0.7.1"
bytes = "1.10.0"

async-channel = "2.3.1"
thiserror = { version = "2.0.11", features = ["default"]}
thiserror = { version = "2.0.11", features = ["default"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["default", "env-filter"]}
tracing-subscriber = { version = "0.3.19", features = ["default", "env-filter"] }
rustls = "0.23.23"
gix-config = "0.43.0"
home = "0.5.11"
regex = "1.11.1" # there's a bug in glib, so use this alternatively

[build-dependencies]
glib-build-tools = "0.20.0"

[profile.dev]
panic = "abort" # glib panics are not human friendly, just leave them alone

[profile.release]
lto = "fat"

2 changes: 1 addition & 1 deletion monobean/resources/css/common.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.right-side-box {
background-color: @view_bg_color;
}
}
144 changes: 79 additions & 65 deletions monobean/resources/gtk/hello_page.ui
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0" />
<requires lib="gtk" version="4.0"/>
<template class="HelloPage" parent="GtkBox">
<property name="orientation">vertical</property>
<property name="hexpand">true</property>
Expand Down Expand Up @@ -93,41 +93,41 @@
<child type="top">
<!-- Title Bar -->

<object class="AdwHeaderBar" id="header_bar">
<property name="centering-policy">strict</property>
<child type="start">
<object class="GtkBox">
<property name="orientation">horizontal</property>

<!-- MenuBar -->
<child>
<object class="GtkPopoverMenuBar" id="menubar1">
<property name="menu-model">menubar</property>
<accessibility>
<property name="label">Main Menu</property>
</accessibility>
</object>
</child>

<child>
<object class="GtkButton" id="back_button">
<property name="visible">false</property>
<property name="action-name">win.back-button</property>
<property name="icon-name">go-previous-symbolic</property>
</object>
</child>
</object>
</child>
<child type="end">
<object class="GtkMenuButton" id="primary_menu_button">
<property name="menu-model">primary_menu</property>
<property name="icon-name">open-menu-symbolic</property>
</object>
</child>
<child type="title">
<object class="GtkLabel">Hello</object>
</child>
</object>
<object class="AdwHeaderBar" id="header_bar">
<property name="centering-policy">strict</property>
<child type="start">
<object class="GtkBox">
<property name="orientation">horizontal</property>

<!-- MenuBar -->
<child>
<object class="GtkPopoverMenuBar" id="menubar1">
<property name="menu-model">menubar</property>
<accessibility>
<property name="label">Main Menu</property>
</accessibility>
</object>
</child>

<child>
<object class="GtkButton" id="back_button">
<property name="visible">false</property>
<property name="action-name">win.back-button</property>
<property name="icon-name">go-previous-symbolic</property>
</object>
</child>
</object>
</child>
<child type="end">
<object class="GtkMenuButton" id="primary_menu_button">
<property name="menu-model">primary_menu</property>
<property name="icon-name">open-menu-symbolic</property>
</object>
</child>
<child type="title">
<object class="GtkLabel">Hello</object>
</child>
</object>

</child>

Expand Down Expand Up @@ -172,8 +172,8 @@
<property name="wrap-mode">word-char</property>
<property name="justify">center</property>
<style>
<class name="title" />
<class name="title-1" />
<class name="title"/>
<class name="title-1"/>
</style>
</object>
</child>
Expand Down Expand Up @@ -209,12 +209,26 @@
<object class="AdwPreferencesGroup">

<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">GPG Key</property>
<object class="AdwActionRow" id="pgp_row">
<property name="title" translatable="yes">PGP Key</property>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">General</property>
<property name="valign">center</property>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
<child>
<object class="AdwSpinner" id="pgp_spin">
<property name="halign">center</property>
<property name="valign">center</property>
<property name="visible">False</property>
</object>
</child>

<child>
<object class="GtkButton" id="pgp_button">
<property name="label" translatable="yes">Generate</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
Expand All @@ -239,8 +253,8 @@
<property name="tooltip-text" translatable="yes">Import repositories from local or an URL</property>
<property name="focusable">True</property>
<style>
<class name="card" />
<class name="activatable" />
<class name="card"/>
<class name="activatable"/>
</style>
<property name="child">
<object class="GtkBox">
Expand All @@ -257,7 +271,7 @@
<property name="icon-name">document-open-symbolic</property>
<property name="pixel-size">24</property>
<style>
<class name="lowres-icon" />
<class name="lowres-icon"/>
</style>
</object>
</child>
Expand All @@ -279,8 +293,8 @@
<property name="tooltip-text" translatable="yes">Network settings</property>
<property name="focusable">True</property>
<style>
<class name="card" />
<class name="activatable" />
<class name="card"/>
<class name="activatable"/>
</style>
<property name="child">
<object class="GtkBox">
Expand All @@ -297,7 +311,7 @@
<property name="icon-name">network-cellular-signal-excellent-symbolic-rtl</property>
<property name="pixel-size">24</property>
<style>
<class name="lowres-icon" />
<class name="lowres-icon"/>
</style>
</object>
</child>
Expand Down Expand Up @@ -326,15 +340,15 @@
<property name="halign">center</property>
<property name="child">

<object class="GtkButton" id="continue_button">
<property name="label" translatable="yes">Go Ahead!</property>
<property name="valign">center</property>
<property name="sensitive">False</property>
<style>
<class name="suggested-action" />
<class name="pill"/>
</style>
</object>
<object class="GtkButton" id="continue_button">
<property name="label" translatable="yes">Go Ahead!</property>
<property name="valign">center</property>
<property name="sensitive">False</property>
<style>
<class name="suggested-action"/>
<class name="pill"/>
</style>
</object>

</property>
</object>
Expand Down Expand Up @@ -366,8 +380,8 @@
</layout>

<style>
<class name="card" />
<class name="right-side-box" />
<class name="card"/>
<class name="right-side-box"/>
</style>

<child>
Expand All @@ -383,7 +397,7 @@
<property name="valign">end</property>
<property name="tooltip-text">icon-dropshadow</property>
<style>
<class name="icon-dropshadow" />
<class name="icon-dropshadow"/>
</style>
</object>
</property>
Expand Down Expand Up @@ -413,7 +427,7 @@
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes"> &lt;a href="https://os.gnome.org/">MonoBean Docs&lt;/a&gt;</property>
<property name="label" translatable="yes">&lt;a href="https://os.gnome.org/">MonoBean Docs&lt;/a&gt;</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="use-markup">True</property>
Expand All @@ -422,7 +436,7 @@
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes"> &lt;a href="https://os.gnome.org/">Watch Videos&lt;/a&gt;</property>
<property name="label" translatable="yes">&lt;a href="https://os.gnome.org/">Watch Videos&lt;/a&gt;</property>
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="use-markup">True</property>
Expand All @@ -449,8 +463,8 @@
<property name="opacity">0.8</property>

<style>
<class name="title" />
<class name="title-1" />
<class name="title"/>
<class name="title-1"/>
</style>
</object>
</property>
Expand Down
Loading

1 comment on commit 51e3844

@vercel
Copy link

@vercel vercel bot commented on 51e3844 Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mega – ./

mega-gitmono.vercel.app
gitmega.dev
mega-git-main-gitmono.vercel.app
www.gitmega.dev

Please sign in to comment.