mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
apply new fmt version
This commit is contained in:
parent
e4eecb3489
commit
cc7df23f39
94 changed files with 139 additions and 155 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use super::{Profile, WindowAction};
|
||||
use gtk::{
|
||||
prelude::{ActionExt, ButtonExt, EditableExt, WidgetExt},
|
||||
Button, Entry,
|
||||
prelude::{ActionExt, ButtonExt, EditableExt, WidgetExt},
|
||||
};
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ pub use back::Back;
|
|||
pub use forward::Forward;
|
||||
|
||||
use super::{ItemAction, TabAction, WindowAction};
|
||||
use gtk::{prelude::BoxExt, Box, Button, Orientation};
|
||||
use gtk::{Box, Button, Orientation, prelude::BoxExt};
|
||||
use std::rc::Rc;
|
||||
|
||||
pub trait History {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use super::{ItemAction, TabAction, WindowAction};
|
||||
use crate::app::browser::window::action::Position;
|
||||
use gtk::{
|
||||
Button, GestureClick,
|
||||
gdk::BUTTON_MIDDLE,
|
||||
prelude::{ActionExt, WidgetExt},
|
||||
Button, GestureClick,
|
||||
};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use super::{ItemAction, TabAction, WindowAction};
|
||||
use crate::app::browser::window::action::Position;
|
||||
use gtk::{
|
||||
Button, GestureClick,
|
||||
gdk::BUTTON_MIDDLE,
|
||||
prelude::{ActionExt, WidgetExt},
|
||||
Button, GestureClick,
|
||||
};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use super::{ItemAction, Request, TabAction, WindowAction};
|
||||
use crate::app::browser::window::action::Position;
|
||||
use gtk::{
|
||||
Button, GestureClick,
|
||||
gdk::BUTTON_MIDDLE,
|
||||
prelude::{ActionExt, WidgetExt},
|
||||
Button, GestureClick,
|
||||
};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use super::{ItemAction, Request, TabAction, WindowAction};
|
||||
use crate::app::browser::window::action::Position;
|
||||
use gtk::{
|
||||
Button, GestureClick,
|
||||
gdk::BUTTON_MIDDLE,
|
||||
prelude::{ActionExt, WidgetExt},
|
||||
Button, GestureClick,
|
||||
};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ mod search;
|
|||
mod suggestion;
|
||||
|
||||
use super::{ItemAction, Profile};
|
||||
use adw::{prelude::AdwDialogExt, AlertDialog};
|
||||
use adw::{AlertDialog, prelude::AdwDialogExt};
|
||||
use anyhow::Result;
|
||||
use gtk::{
|
||||
glib::{gformat, GString, Uri, UriFlags},
|
||||
prelude::{EditableExt, EntryExt, WidgetExt},
|
||||
Entry, EntryIconPosition, StateFlags,
|
||||
glib::{GString, Uri, UriFlags, gformat},
|
||||
prelude::{EditableExt, EntryExt, WidgetExt},
|
||||
};
|
||||
use primary_icon::PrimaryIcon;
|
||||
use sqlite::Transaction;
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@ impl Common for AlertDialog {
|
|||
callback: &Rc<impl Fn(bool) + 'static>,
|
||||
) -> Self {
|
||||
use adw::{
|
||||
prelude::{AlertDialogExt, AlertDialogExtManual},
|
||||
ResponseAppearance,
|
||||
prelude::{AlertDialogExt, AlertDialogExtManual},
|
||||
};
|
||||
use form::{list::item::value::Value, Form};
|
||||
use form::{Form, list::item::value::Value};
|
||||
|
||||
// Response variants
|
||||
const RESPONSE_APPLY: (&str, &str) = ("apply", "Apply");
|
||||
|
|
|
|||
|
|
@ -8,16 +8,16 @@ mod save;
|
|||
use drop::Drop;
|
||||
use exit::Exit;
|
||||
use file::File;
|
||||
use list::{item::value::Value, List};
|
||||
use list::{List, item::value::Value};
|
||||
use name::Name;
|
||||
use save::Save;
|
||||
|
||||
use super::WidgetAction;
|
||||
use crate::Profile;
|
||||
use gtk::{
|
||||
Box, Button, Entry, Orientation,
|
||||
glib::Uri,
|
||||
prelude::{BoxExt, WidgetExt},
|
||||
Box, Button, Entry, Orientation,
|
||||
};
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
use super::list::{item::Value, List};
|
||||
use super::list::{List, item::Value};
|
||||
use crate::profile::Profile;
|
||||
use adw::{
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
AlertDialog, ResponseAppearance,
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
};
|
||||
use gtk::{
|
||||
Button,
|
||||
glib::timeout_add_seconds_local_once,
|
||||
prelude::{ButtonExt, WidgetExt},
|
||||
Button,
|
||||
};
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
use super::{
|
||||
list::{item::Value, List},
|
||||
WidgetAction,
|
||||
list::{List, item::Value},
|
||||
};
|
||||
use crate::Profile;
|
||||
use gtk::{
|
||||
glib::{timeout_add_seconds_local_once, Uri},
|
||||
prelude::{ButtonExt, WidgetExt},
|
||||
Button,
|
||||
glib::{Uri, timeout_add_seconds_local_once},
|
||||
prelude::{ButtonExt, WidgetExt},
|
||||
};
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
|
|
@ -30,8 +30,8 @@ impl Exit for Button {
|
|||
request: &Uri,
|
||||
) -> Self {
|
||||
use adw::{
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
AlertDialog, ResponseAppearance,
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
};
|
||||
|
||||
const LABEL: &str = "Disconnect";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use super::WidgetAction;
|
||||
use gtk::{
|
||||
gio::{Cancellable, ListStore, TlsCertificate},
|
||||
glib::{gformat, GString},
|
||||
prelude::{ButtonExt, FileExt, TlsCertificateExt, WidgetExt},
|
||||
Button, FileDialog, FileFilter, Window,
|
||||
gio::{Cancellable, ListStore, TlsCertificate},
|
||||
glib::{GString, gformat},
|
||||
prelude::{ButtonExt, FileExt, TlsCertificateExt, WidgetExt},
|
||||
};
|
||||
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@ use item::Item;
|
|||
use super::WidgetAction;
|
||||
use crate::profile::Profile;
|
||||
use gtk::{
|
||||
Align, Box, DropDown, Image, Label, ListItem, Orientation, SignalListItemFactory,
|
||||
gdk::Cursor,
|
||||
gio::{
|
||||
prelude::{Cast, CastNone},
|
||||
ListStore,
|
||||
prelude::{Cast, CastNone},
|
||||
},
|
||||
glib::Uri,
|
||||
prelude::{BoxExt, ListItemExt, ObjectExt, WidgetExt},
|
||||
Align, Box, DropDown, Image, Label, ListItem, Orientation, SignalListItemFactory,
|
||||
};
|
||||
|
||||
pub struct List {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use super::WidgetAction;
|
||||
use gtk::{
|
||||
prelude::{EditableExt, EntryExt, WidgetExt},
|
||||
Entry,
|
||||
prelude::{EditableExt, EntryExt, WidgetExt},
|
||||
};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
mod certificate;
|
||||
use certificate::Certificate;
|
||||
|
||||
use super::list::{item::Value, List};
|
||||
use super::list::{List, item::Value};
|
||||
use crate::profile::Profile;
|
||||
use gtk::{
|
||||
gio::{Cancellable, FileCreateFlags, ListStore},
|
||||
glib::{timeout_add_seconds_local_once, Priority},
|
||||
prelude::{ButtonExt, FileExt, OutputStreamExtManual, WidgetExt},
|
||||
Button, FileDialog, FileFilter, Window,
|
||||
gio::{Cancellable, FileCreateFlags, ListStore},
|
||||
glib::{Priority, timeout_add_seconds_local_once},
|
||||
prelude::{ButtonExt, FileExt, OutputStreamExtManual, WidgetExt},
|
||||
};
|
||||
use std::{path::MAIN_SEPARATOR, rc::Rc, sync::Arc};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use anyhow::{bail, Result};
|
||||
use anyhow::{Result, bail};
|
||||
|
||||
use crate::profile::Profile;
|
||||
use gtk::{gio::TlsCertificate, prelude::TlsCertificateExt};
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ mod form;
|
|||
use crate::Profile;
|
||||
use adw::AlertDialog;
|
||||
use adw::{
|
||||
prelude::{AlertDialogExt, AlertDialogExtManual},
|
||||
ResponseAppearance,
|
||||
prelude::{AlertDialogExt, AlertDialogExtManual},
|
||||
};
|
||||
use form::{list::item::Value, list::Item, Form, Query};
|
||||
use form::{Form, Query, list::Item, list::item::Value};
|
||||
use gtk::prelude::{EditableExt, WidgetExt};
|
||||
use sourceview::prelude::CastNone;
|
||||
use std::rc::Rc;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ pub mod query;
|
|||
|
||||
use crate::Profile;
|
||||
use drop::Drop;
|
||||
use gtk::{prelude::BoxExt, Box, Button, Entry, Orientation};
|
||||
use gtk::{Box, Button, Entry, Orientation, prelude::BoxExt};
|
||||
use list::List;
|
||||
pub use query::Query;
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
use super::list::{item::Value, List};
|
||||
use super::list::{List, item::Value};
|
||||
use crate::profile::Profile;
|
||||
use adw::{
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
AlertDialog, ResponseAppearance,
|
||||
prelude::{AdwDialogExt, AlertDialogExt, AlertDialogExtManual},
|
||||
};
|
||||
use gtk::{
|
||||
Button,
|
||||
glib::timeout_add_seconds_local_once,
|
||||
prelude::{ButtonExt, WidgetExt},
|
||||
Button,
|
||||
};
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ pub mod item;
|
|||
|
||||
use crate::profile::Profile;
|
||||
use gtk::{
|
||||
Align, Box, DropDown, Label, ListItem, Orientation, SignalListItemFactory,
|
||||
gio::{
|
||||
prelude::{Cast, CastNone},
|
||||
ListStore,
|
||||
prelude::{Cast, CastNone},
|
||||
},
|
||||
prelude::{BoxExt, ListItemExt, ObjectExt, WidgetExt},
|
||||
Align, Box, DropDown, Label, ListItem, Orientation, SignalListItemFactory,
|
||||
};
|
||||
pub use item::Item;
|
||||
use std::sync::Arc;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use gtk::{
|
||||
Entry,
|
||||
glib::{Uri, UriFlags},
|
||||
prelude::{EditableExt, EntryExt},
|
||||
Entry,
|
||||
};
|
||||
|
||||
const MIN_LENGTH: u16 = 1;
|
||||
|
|
|
|||
|
|
@ -2,18 +2,18 @@ mod item;
|
|||
|
||||
use super::Profile;
|
||||
use adw::{
|
||||
prelude::{ActionRowExt, PopoverExt, PreferencesRowExt},
|
||||
ActionRow,
|
||||
prelude::{ActionRowExt, PopoverExt, PreferencesRowExt},
|
||||
};
|
||||
use gtk::{
|
||||
Align, Entry, INVALID_LIST_POSITION, ListItem, ListView, Popover, SignalListItemFactory,
|
||||
SingleSelection,
|
||||
gio::{
|
||||
prelude::{Cast, CastNone},
|
||||
ListStore,
|
||||
prelude::{Cast, CastNone},
|
||||
},
|
||||
glib::{GString, SignalHandlerId},
|
||||
prelude::{EditableExt, EntryExt, ListItemExt, WidgetExt},
|
||||
Align, Entry, ListItem, ListView, Popover, SignalListItemFactory, SingleSelection,
|
||||
INVALID_LIST_POSITION,
|
||||
};
|
||||
pub use item::Item;
|
||||
use sourceview::prelude::ListModelExt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue