Skip to content

Commit

Permalink
Merge pull request #269 from cobbler/feature/add-item-overview
Browse files Browse the repository at this point in the history
Feature: Add Item overview and read only detail pages
  • Loading branch information
SchoolGuy authored Aug 12, 2024
2 parents 311ae4a + 1435509 commit a0e2029
Show file tree
Hide file tree
Showing 177 changed files with 7,691 additions and 2,584 deletions.
1,370 changes: 1,197 additions & 173 deletions projects/cobbler-api/src/lib/cobbler-api.service.spec.ts

Large diffs are not rendered by default.

246 changes: 191 additions & 55 deletions projects/cobbler-api/src/lib/cobbler-api.service.ts

Large diffs are not rendered by default.

205 changes: 155 additions & 50 deletions projects/cobbler-api/src/lib/custom-types/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,90 +6,129 @@ export interface Item {
}

export interface Distro extends Item {
source_repos: Array<any>;
tree_build_time: string;
is_subobject: boolean;
source_repos: Array<string>;
tree_build_time: number;
arch: string;
autoinstall_meta: object;
boot_files: Array<any>;
boot_loader: string;
boot_files: string | object;
boot_loaders: string | Array<string>;
breed: string;
comment: string;
fetchable_files: Array<any>;
parent: string;
fetchable_files: string | object;
initrd: string;
kernel: string;
remote_boot_initrd: string;
remote_boot_kernel: string;
kernel_options: object;
kernel_options_post: object;
mgmt_classes: Array<any>;
remote_grub_initrd: string;
remote_grub_kernel: string;
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<string>;
mgmt_parameters: object | string;
name: string;
os_version: string;
owners: Array<any>;
owners: string | Array<string>;
redhat_management_key: string;
template_files: object;
}

export interface Profile extends Item {
is_subobject: boolean;
boot_loaders: string | Array<string>;
autoinstall: string;
autoinstall_meta: object;
boot_files: Array<any>;
autoinstall_meta: string | object;
boot_files: string | Array<any>;
comment: string;
dhcp_tag: string;
distro: string;
enable_gpxe: boolean;
enable_menu: boolean;
fetchable_files: object;
kernel_options: object;
kernel_options_post: object;
mgmt_classes: Array<any>;
mgmt_parameters: string;
enable_ipxe: string | boolean;
enable_menu: string | boolean;
menu: string,
fetchable_files: string | object;
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
name: string;
name_servers: Array<any>;
name_servers_search: Array<any>;
next_server: string;
next_server_v4: string;
next_server_v6: string;
filename: string;
owners: Array<any>;
owners: string | Array<string>;
parent: string;
proxy: string;
redhat_management_key: string;
repos: Array<any>;
server: string;
template_files: object;
virt_auto_boot: boolean;
virt_auto_boot: string | boolean;
virt_bridge: string;
virt_cpus: number;
virt_cpus: string | number;
virt_disk_driver: string;
virt_file_size: number;
virt_file_size: string | number;
virt_path: string;
virt_ram: number;
virt_ram: string | number;
virt_type: string;
}

export interface NetworkInterface {
bonding_opts: string;
bridge_opts: string;
cnames: Array<string>;
connected_mode: false,
dhcp_tag: string;
dns_name: string;
if_gateway: string;
interface_master: string;
interface_type: string;
ip_address: string;
ipv6_address: string;
ipv6_default_gateway: string;
ipv6_mtu: string;
ipv6_prefix: string;
ipv6_secondaries: Array<string>;
ipv6_static_routes: Array<string>;
mac_address: string;
management: boolean;
mtu: string;
netmask: string;
static: boolean;
static_routes: Array<string>;
virt_bridge: string;
}

export interface System extends Item {
ipv6_autoconfiguration: boolean;
repos_enabled: false;
repos_enabled: boolean;
autoinstall: string;
autoinstall_meta: object;
boot_files: Array<any>;
boot_loader: string;
interfaces: { [k: string]: NetworkInterface };
autoinstall_meta: string | object;
boot_files: string | Array<any>;
boot_loaders: string | Array<string>;
comment: string;
enable_ipxe: boolean;
fetchable_files: object;
parent: string;
is_subobject: boolean;
enable_ipxe: string | boolean;
fetchable_files: string | object;
gateway: string;
hostname: string;
image: string;
ipv6_default_device: string;
kernel_options: object;
kernel_options_post: object;
mgmt_classes: Array<any>;
mgmt_parameters: string;
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
name: string;
name_servers: Array<any>;
name_servers_search: Array<any>;
netboot_enabled: boolean;
next_server: string;
next_server_v4: string;
next_server_v6: string;
filename: string;
owners: Array<any>;
owners: string | Array<string>;
power_address: string;
power_id: string;
power_pass: string;
Expand All @@ -103,33 +142,45 @@ export interface System extends Item {
server: string;
status: string;
template_files: object;
virt_auto_boot: boolean;
virt_cpus: number;
virt_auto_boot: string | boolean;
virt_cpus: string | number;
virt_disk_driver: string;
virt_file_size: number;
virt_file_size: string | number;
virt_path: string;
virt_pxe_boot: boolean;
virt_ram: number;
virt_ram: string | number;
virt_type: string;
serial_device: number;
serial_baud_rate: number;
}

export interface Repo extends Item {
// Base Item attributes (we actually don't want them)
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
is_subobject: boolean;
fetchable_files: string | object;
autoinstall_meta: object;
boot_files: string | object;
template_files: object;
os_version: string;
// Real attributes
parent: string;
apt_components: Array<any>;
apt_dists: Array<any>;
arch: string;
breed: string;
comment: string;
createrepo_flags: object;
createrepo_flags: string;
environment: object;
keep_updated: boolean;
mirror: string;
mirror_type: string;
mirror_locally: boolean;
name: string;
owners: Array<any>;
owners: string | Array<string>;
priority: number;
proxy: string;
rpm_list: Array<any>;
Expand All @@ -138,19 +189,44 @@ export interface Repo extends Item {
}

export interface File extends Item {
// Base Item attributes (we actually don't want them)
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
is_subobject: boolean;
fetchable_files: string | object;
parent: string;
autoinstall_meta: object;
boot_files: string | object;
template_files: object;
// Real attributes
action: string;
comment: string;
group: string;
is_dir: boolean;
mode: string;
name: string;
owner: string;
owners: Array<any>;
owners: string | Array<string>;
path: string;
template: string;
}

export interface Image extends Item {
// Base Item attributes (we actually don't want them)
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
is_subobject: boolean;
fetchable_files: string | object;
autoinstall_meta: string | object;
boot_files: string | object;
template_files: object;
boot_loaders: string | Array<string>;
menu: string;
// Real attributes
parent: string;
arch: string;
autoinstall: string;
Expand All @@ -161,33 +237,62 @@ export interface Image extends Item {
name: string;
network_count: number;
os_version: string;
owners: Array<any>;
virt_auto_boot: boolean;
owners: string | Array<string>;
virt_auto_boot: string | boolean;
virt_bridge: string;
virt_cpus: number;
virt_cpus: string | number;
virt_disk_driver: string;
virt_file_size: number;
virt_file_size: string | number;
virt_path: string;
virt_ram: number;
virt_ram: string | number;
virt_type: string;
}

export interface Mgmgtclass extends Item {
// Base Item attributes (we actually don't want them)
parent: string;
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
is_subobject: boolean;
fetchable_files: string | object;
autoinstall_meta: object;
boot_files: string | object;
template_files: object;
// Real attributes
is_definition: boolean;
class_name: string;
comment: string;
files: Array<any>;
name: string;
owners: Array<any>;
owners: string | Array<string>;
packages: Array<any>;
params: object;
}

export interface Package extends Item {
// Base Item attributes (we actually don't want them)
parent: string;
kernel_options: string | object;
kernel_options_post: string | object;
mgmt_classes: string | Array<any>;
mgmt_parameters: object | string;
is_subobject: boolean;
fetchable_files: string | object;
autoinstall_meta: object;
boot_files: string | object;
template_files: object;
// Real attributes
mode: string;
owner: string;
group: string;
path: string;
template: string;
action: string;
comment: string;
installer: string;
name: string;
owners: Array<any>;
owners: string | Array<string>;
version: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {UserService} from '../../services/user.service';
@Component({
selector: 'cobbler-check-sys',
templateUrl: './check-sys.component.html',
styleUrls: ['./check-sys.component.css'],
styleUrls: ['./check-sys.component.scss'],
standalone: true,
imports: [
RouterOutlet,
Expand Down
Loading

0 comments on commit a0e2029

Please sign in to comment.