Feature/save code (#1222)

* Persist dev projects and auto save on edit

Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>
Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
This commit is contained in:
Drew Ansbacher
2022-02-16 14:55:16 -07:00
committed by GitHub
parent b57c35a3ba
commit d204c1dfba
16 changed files with 433 additions and 92 deletions

View File

@@ -15,6 +15,7 @@ export const mockPatchData: DataModel = {
'pkg-order': [],
'ack-welcome': '1.0.0',
marketplace: undefined,
dev: undefined,
},
'server-info': {
id: 'embassy-abcdefgh',

View File

@@ -14,6 +14,7 @@ export interface UIData {
'pkg-order': string[]
'ack-welcome': string // EOS version
marketplace: UIMarketplaceData
dev: DevData
}
export interface UIMarketplaceData {
@@ -26,6 +27,14 @@ export interface UIMarketplaceData {
}
}
export interface DevData {
[id: string]: {
name: string
instructions?: string
config?: string
}
}
export interface ServerInfo {
id: string
version: string