1. Finished GUI

2. Implemented Geolocation API
This commit is contained in:
brotoskyj
2025-01-28 14:51:14 -05:00
parent a703ec3149
commit 18ab70c299
11 changed files with 1412 additions and 16 deletions
+157
View File
@@ -0,0 +1,157 @@
import { AboutSlint, VerticalBox, GridBox, Button, LineEdit, HorizontalBox, TextEdit, SpinBox } from "std-widgets.slint";
export component ComputerModules inherits Window {
VerticalLayout {
spacing: 5px;
padding: 15px;
HorizontalLayout {
VerticalLayout {
padding: 5px;
spacing: 5px;
height: 75px;
Text {
text: "Computer Tag / IP:";
}
LineEdit {
height: 35px;
}
}
VerticalLayout {
height: 200px;
padding: 5px;
spacing: 5px;
Button {
text: "Computer File Explorer";
}
Button {
text: "Current Logged on User";
}
Button {
text: "LAPS Password Viewer";
}
Button {
text: "Reboot Computer";
}
Button {
text: "Reboot w/ Auto Remote In";
}
Button {
text: "SCCM Log Parser";
}
}
VerticalLayout {
padding: 5px;
height: 350px;
width: 400px;
TextEdit {
height: 400px;
wrap: word-wrap;
read-only: true;
}
HorizontalLayout {
alignment: start;
spacing: 5px;
padding-top: 20px;
padding: 5px;
Text {
text: "Timeout for Computer Modules:";
}
}
HorizontalLayout {
spacing: 5px;
SpinBox {
minimum: 2;
maximum: 10;
step-size: 1;
horizontal-alignment: center;
width: 100px;
}
Text {
vertical-alignment: center;
text: "Seconds";
}
}
}
VerticalLayout {
spacing: 5px;
padding: 5px;
width: 150px;
Button {
text: "Bitlocker";
}
Button {
text: "Director";
}
Button {
text: "HSC IT";
}
Button {
text: "Imprivata";
}
Button {
text: "ISE";
}
Button {
text: "Kronos";
}
Button {
text: "Kuiper";
}
Button {
text: "One Content";
}
Button {
text: "Printer Logic";
}
Button {
text: "Site Scan";
}
Button {
text: "SnapComm";
}
Button {
text: "TelecommNG";
}
Button {
text: "UMS";
}
Button {
text: "Unify";
}
Button {
text: "Whats Up";
}
Button {
text: "Workday";
}
}
}
}
}
+117
View File
@@ -0,0 +1,117 @@
import { AboutSlint, VerticalBox, TabWidget, Button, LineEdit } from "std-widgets.slint";
export global OtherToolCallbacks {
pure callback killCherwell();
pure callback ipapi();
in-out property <string> ipaddressbar;
in property <string> isp;
in property <string> country;
in property <string> state;
in property <string> city;
}
export component OtherTools inherits Window {
TabWidget {
Tab {
title: @tr("General");
Button {
text: "Kill all local Cherwell Processes";
clicked => {
OtherToolCallbacks.killCherwell();
}
}
}
Tab {
title: @tr("Helpdesk");
}
Tab {
title: @tr("PC Technician");
}
Tab {
title: @tr("IRT");
TabWidget {
Tab {
title: @tr("IP Geolocation API");
HorizontalLayout {
alignment: center;
spacing: 5px;
padding: 15px;
height: 200px;
VerticalLayout {
spacing: 5px;
padding: 15px;
Text {
height: 30px;
text: "IP Address:";
}
LineEdit {
height: 35px;
edited(text) => {
OtherToolCallbacks.ipaddressbar = self.text;
}
}
Button {
height: 35px;
text: "Search";
clicked => {
OtherToolCallbacks.ipapi();
}
}
}
HorizontalLayout {
spacing: 5px;
width: 400px;
VerticalLayout {
y: 10px;
Text {
text: "ISP:";
}
Text {
text: "Country:";
}
Text {
text: "State:";
}
Text {
text: "City:";
}
}
VerticalLayout {
spacing: 5px;
LineEdit {
read-only: true;
text: OtherToolCallbacks.isp;
}
LineEdit {
read-only: true;
text: OtherToolCallbacks.country;
}
LineEdit {
read-only: true;
text: OtherToolCallbacks.state;
}
LineEdit {
read-only: true;
text: OtherToolCallbacks.city;
}
}
}
}
}
}
}
}
}
+5
View File
@@ -0,0 +1,5 @@
import { AboutSlint, VerticalBox, ComboBox, Button, StandardListView, TabWidget } from "std-widgets.slint";
export component SettingsModules inherits Window {
}
+259
View File
@@ -0,0 +1,259 @@
import { AboutSlint, VerticalBox, GridBox, Button, LineEdit, HorizontalBox, TextEdit, SpinBox, StandardListView } from "std-widgets.slint";
export component UserModules inherits Window {
VerticalLayout {
spacing: 5px;
padding: 15px;
HorizontalLayout {
spacing: 5px;
VerticalLayout {
padding: 5px;
spacing: 5px;
height: 75px;
Text {
text: "Search User";
}
StandardListView {
height: 80px;
model: [{ text: "Username" }, { text: "Last Name" }];
current-item: 0;
}
LineEdit {
height: 35px;
}
VerticalLayout {
padding: 10px;
Button {
text: "Search";
primary: true;
}
}
VerticalLayout {
padding-top: 30px;
Button {
text: "Clear Search";
primary: false;
}
}
}
HorizontalLayout {
spacing: 5px;
VerticalLayout {
y: 10px;
Text {
text: "Account Creation Date:";
}
Text {
text: "Account Enabled:";
}
Text {
text: "MyIdentity Claimed:";
}
Text {
text: "Display Name:";
}
Text {
text: "Email:";
}
Text {
text: "Enterprise ID:";
}
Text {
text: "Job Title:";
}
Text {
text: "Last Bad Password:";
}
Text {
text: "Last Logon Time:";
}
Text {
text: "Organizational Unit:";
}
Text {
text: "Mobile Email:";
}
Text {
text: "Outlook Client:";
}
Text {
text: "Passord Last Set:";
}
Text {
text: "Password Expired:";
}
Text {
text: "VPN User:";
}
}
VerticalLayout {
spacing: 5px;
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
LineEdit {
read-only: true;
}
}
}
VerticalLayout {
padding: 5px;
height: 350px;
width: 400px;
Text {
text: "Group Memberships";
height: 30px;
}
TextEdit {
height: 500px;
wrap: word-wrap;
read-only: true;
}
}
VerticalLayout {
spacing: 5px;
padding: 5px;
width: 150px;
Button {
text: "Bitlocker";
}
Button {
text: "Director";
}
Button {
text: "HSC IT";
}
Button {
text: "Imprivata";
}
Button {
text: "ISE";
}
Button {
text: "Kronos";
}
Button {
text: "Kuiper";
}
Button {
text: "One Content";
}
Button {
text: "Printer Logic";
}
Button {
text: "Site Scan";
}
Button {
text: "SnapComm";
}
Button {
text: "TelecommNG";
}
Button {
text: "UMS";
}
Button {
text: "Unify";
}
Button {
text: "Whats Up";
}
Button {
text: "Workday";
}
}
}
}
}