mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
update disks type, bring back server name, and better gifs for loading and updating
This commit is contained in:
committed by
Aiden McClelland
parent
8c1a01b306
commit
b0c78ad1a0
@@ -864,46 +864,46 @@ export module Mock {
|
||||
'signal-strength': 50,
|
||||
}
|
||||
|
||||
export const Disks: RR.GetDisksRes = {
|
||||
'/dev/sda': {
|
||||
size: '32GB',
|
||||
description: 'Samsung',
|
||||
partitions: {
|
||||
'sdba2': {
|
||||
size: null,
|
||||
'is-mounted': false,
|
||||
export const Disks: RR.GetDisksRes = [
|
||||
{
|
||||
logicalname: '/dev/sda',
|
||||
partitions: [
|
||||
{
|
||||
logicalname: 'sdba1',
|
||||
label: 'Matt Stuff',
|
||||
capacity: 1000000000000,
|
||||
used: 0,
|
||||
},
|
||||
],
|
||||
capacity: 1000000000000,
|
||||
'embassy-os': {
|
||||
version: '0.3.0',
|
||||
name: '', // @TODO what is this?
|
||||
},
|
||||
},
|
||||
'/dev/sba': {
|
||||
size: '64GB',
|
||||
description: 'small USB stick',
|
||||
partitions: {
|
||||
'sdba2': {
|
||||
size: '16GB',
|
||||
'is-mounted': true,
|
||||
label: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
'/dev/sbd': {
|
||||
size: '128GB',
|
||||
description: 'large USB stick',
|
||||
partitions: {
|
||||
'sdba1': {
|
||||
size: '32GB',
|
||||
'is-mounted': false,
|
||||
{
|
||||
logicalname: '/dev/sdb',
|
||||
partitions: [
|
||||
{
|
||||
logicalname: 'sdba1',
|
||||
label: 'Partition 1',
|
||||
capacity: 1000000000,
|
||||
used: 1000000000,
|
||||
},
|
||||
'sdba2': {
|
||||
size: null,
|
||||
'is-mounted': true,
|
||||
{
|
||||
logicalname: 'sdba2',
|
||||
label: 'Partition 2',
|
||||
capacity: 900000000,
|
||||
used: 300000000,
|
||||
},
|
||||
],
|
||||
capacity: 10000000000,
|
||||
'embassy-os': {
|
||||
version: '0.3.0',
|
||||
name: '', // @TODO what is this?
|
||||
},
|
||||
},
|
||||
}
|
||||
]
|
||||
|
||||
export const PackageProperties: RR.GetPackagePropertiesRes<2> = {
|
||||
version: 2,
|
||||
|
||||
@@ -127,7 +127,7 @@ export module RR {
|
||||
// disk
|
||||
|
||||
export type GetDisksReq = { } // disk.list
|
||||
export type GetDisksRes = DiskInfo
|
||||
export type GetDisksRes = DiskInfo[]
|
||||
|
||||
export type EjectDisksReq = { logicalname: string } // disk.eject
|
||||
export type EjectDisksRes = null
|
||||
@@ -289,23 +289,18 @@ export interface SessionMetadata {
|
||||
export type PlatformType = 'cli' | 'ios' | 'ipad' | 'iphone' | 'android' | 'phablet' | 'tablet' | 'cordova' | 'capacitor' | 'electron' | 'pwa' | 'mobile' | 'mobileweb' | 'desktop' | 'hybrid'
|
||||
|
||||
export interface DiskInfo {
|
||||
[id: string]: DiskInfoEntry
|
||||
}
|
||||
|
||||
export interface DiskInfoEntry {
|
||||
size: string
|
||||
description: string | null
|
||||
partitions: PartitionInfo
|
||||
}
|
||||
|
||||
export interface PartitionInfo {
|
||||
[logicalname: string]: PartitionInfoEntry
|
||||
}
|
||||
|
||||
export interface PartitionInfoEntry {
|
||||
'is-mounted': boolean // We do not allow backups to mounted partitions
|
||||
size: string | null
|
||||
label: string | null
|
||||
logicalname: string
|
||||
partitions: {
|
||||
logicalname: string
|
||||
label: string | null
|
||||
capacity: number
|
||||
used: number | null
|
||||
}[],
|
||||
capacity: number
|
||||
'embassy-os': {
|
||||
version: string
|
||||
name: string
|
||||
} | null
|
||||
}
|
||||
|
||||
export interface ServerSpecs {
|
||||
|
||||
Reference in New Issue
Block a user