mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
update disks type, bring back server name, and better gifs for loading and updating
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface DataModel {
|
||||
}
|
||||
|
||||
export interface UIData {
|
||||
name: string
|
||||
'welcome-ack': string
|
||||
'auto-check-updates': boolean
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { AlertInput, AlertButton } from '@ionic/core'
|
||||
import { AlertInput, AlertButton, IonicSafeString } from '@ionic/core'
|
||||
import { ApiService } from './api/embassy-api.service'
|
||||
import { ConfigSpec } from '../pkg-config/config-types'
|
||||
import { AlertController, LoadingController } from '@ionic/angular'
|
||||
@@ -120,7 +120,7 @@ export const serverConfig: ConfigSpec = {
|
||||
'auto-check-updates': {
|
||||
type: 'boolean',
|
||||
name: 'Auto Check for Updates',
|
||||
description: 'On launch, EmbassyOS will automatically check for updates of itself and your installed services. Updating still requires user approval and action. No updates will ever be performed automatically.',
|
||||
description: 'On launch, EmbassyOS will automatically check for updates of itself and your installed services. Updating still requires your approval and action. Updates will never be performed automatically.',
|
||||
default: true,
|
||||
},
|
||||
// 'eos-marketplace': {
|
||||
@@ -143,8 +143,8 @@ export const serverConfig: ConfigSpec = {
|
||||
// },
|
||||
'share-stats': {
|
||||
type: 'boolean',
|
||||
name: 'Share Anonymous Statistics',
|
||||
description: 'Start9 uses this information to identify bugs quickly and improve EmbassyOS. The information is 100% anonymous and transmitted over Tor.',
|
||||
name: 'Report Bugs',
|
||||
description: new IonicSafeString(`Bug reports are anonymized and transmitted over Tor. This helps us identify and fix bugs quickly. <a href="https://docs.start9.com" target="_blank" rel="noreferrer">Read more</a> `) as any, // @TODO get actual link
|
||||
default: false,
|
||||
},
|
||||
// password: {
|
||||
|
||||
Reference in New Issue
Block a user