mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix pointer issue with mocks, better styles
This commit is contained in:
committed by
Aiden McClelland
parent
c9d77e99af
commit
044c4cc7b2
@@ -0,0 +1,3 @@
|
|||||||
|
#container {
|
||||||
|
padding-bottom: 16px;
|
||||||
|
}
|
||||||
@@ -1,7 +1,3 @@
|
|||||||
:host {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bulb {
|
.bulb {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
left: 9px !important;
|
left: 9px !important;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
[pkg]="pkg"
|
[pkg]="pkg"
|
||||||
[connectionFailure]="connectionFailure"
|
[connectionFailure]="connectionFailure"
|
||||||
></app-list-icon>
|
></app-list-icon>
|
||||||
<ion-thumbnail slot="start" class="ion-margin-start">
|
<ion-thumbnail slot="start">
|
||||||
<img alt="" [src]="pkg.entry['static-files'].icon" />
|
<img alt="" [src]="pkg.entry['static-files'].icon" />
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!-- header -->
|
<!-- header -->
|
||||||
<ion-item-divider>
|
<ion-item-divider>
|
||||||
{{ reordering ? "Reorder" : "Installed Services" }}
|
{{ reordering ? "Reorder" : "Installed Services" }}
|
||||||
<ion-button slot="end" fill="clear" (click)="toggle()">
|
<ion-button *ngIf="pkgs.length > 1" slot="end" fill="clear" (click)="toggle()">
|
||||||
<ion-icon
|
<ion-icon
|
||||||
slot="start"
|
slot="start"
|
||||||
[name]="reordering ? 'checkmark' : 'swap-vertical'"
|
[name]="reordering ? 'checkmark' : 'swap-vertical'"
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
[pkg]="pkg"
|
[pkg]="pkg"
|
||||||
[connectionFailure]="connectionFailure$ | async"
|
[connectionFailure]="connectionFailure$ | async"
|
||||||
></app-list-icon>
|
></app-list-icon>
|
||||||
<ion-thumbnail slot="start" class="ion-margin-start">
|
<ion-thumbnail slot="start">
|
||||||
<img alt="" [src]="pkg.entry['static-files'].icon" />
|
<img alt="" [src]="pkg.entry['static-files'].icon" />
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
|
|||||||
@@ -253,8 +253,6 @@ export class WifiPage {
|
|||||||
try {
|
try {
|
||||||
await this.api.deleteWifi({ ssid })
|
await this.api.deleteWifi({ ssid })
|
||||||
this.wifi.ssids = this.wifi.ssids.filter((w, index) => index !== i)
|
this.wifi.ssids = this.wifi.ssids.filter((w, index) => index !== i)
|
||||||
|
|
||||||
console.log(this.wifi.ssids)
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.errToast.present(e)
|
this.errToast.present(e)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -1801,41 +1801,6 @@ export module Mock {
|
|||||||
|
|
||||||
export const MockConfig = realWorldConfigSpec.config
|
export const MockConfig = realWorldConfigSpec.config
|
||||||
|
|
||||||
const testConfig = {
|
|
||||||
testnet: false,
|
|
||||||
'object-list': [
|
|
||||||
{
|
|
||||||
'first-name': 'First',
|
|
||||||
'last-name': 'Last',
|
|
||||||
'age': 30,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'first-name': 'First2',
|
|
||||||
'last-name': 'Last2',
|
|
||||||
'age': 40,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'union-list': undefined,
|
|
||||||
'random-enum': 'option1',
|
|
||||||
'favorite-number': null,
|
|
||||||
rpcsettings: {
|
|
||||||
laws: {
|
|
||||||
law1: 'The first law',
|
|
||||||
law2: 'The second law',
|
|
||||||
},
|
|
||||||
rpcpass: null,
|
|
||||||
rpcuser: '123',
|
|
||||||
rulemakers: [],
|
|
||||||
},
|
|
||||||
advanced: {
|
|
||||||
notifications: ['email', 'text'],
|
|
||||||
},
|
|
||||||
'bitcoin-node': undefined,
|
|
||||||
port: 5959,
|
|
||||||
rpcallowip: undefined,
|
|
||||||
rpcauth: ['matt: 8273gr8qwoidm1uid91jeh8y23gdio1kskmwejkdnm'],
|
|
||||||
}
|
|
||||||
|
|
||||||
export const MockDependencyConfig = {
|
export const MockDependencyConfig = {
|
||||||
testnet: true,
|
testnet: true,
|
||||||
'object-list': [
|
'object-list': [
|
||||||
@@ -1876,19 +1841,6 @@ export module Mock {
|
|||||||
rpcauth: ['matt: 8273gr8qwoidm1uid91jeh8y23gdio1kskmwejkdnm'],
|
rpcauth: ['matt: 8273gr8qwoidm1uid91jeh8y23gdio1kskmwejkdnm'],
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Patch: Operation[] = [
|
|
||||||
{
|
|
||||||
op: 'replace',
|
|
||||||
path: '/testnet',
|
|
||||||
value: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
op: 'add',
|
|
||||||
path: '/advanced/notifications/1',
|
|
||||||
value: 'text',
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
export const bitcoind: PackageDataEntry = {
|
export const bitcoind: PackageDataEntry = {
|
||||||
state: PackageState.Installed,
|
state: PackageState.Installed,
|
||||||
'static-files': {
|
'static-files': {
|
||||||
|
|||||||
@@ -663,7 +663,7 @@ export class MockApiService extends ApiService {
|
|||||||
{
|
{
|
||||||
op: PatchOp.REPLACE,
|
op: PatchOp.REPLACE,
|
||||||
path: `/package-data/${id}`,
|
path: `/package-data/${id}`,
|
||||||
value: Mock.LocalPkgs[id],
|
value: { ...Mock.LocalPkgs[id] },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
op: PatchOp.REMOVE,
|
op: PatchOp.REMOVE,
|
||||||
@@ -734,7 +734,6 @@ export class MockApiService extends ApiService {
|
|||||||
patch,
|
patch,
|
||||||
expireId: null,
|
expireId: null,
|
||||||
}
|
}
|
||||||
console.log('REVISION', revision)
|
|
||||||
this.mockPatch$.next(revision)
|
this.mockPatch$.next(revision)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -750,8 +749,6 @@ export class MockApiService extends ApiService {
|
|||||||
expireId: null,
|
expireId: null,
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('REVISION', revision)
|
|
||||||
|
|
||||||
return { response, revision }
|
return { response, revision }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user