mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +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 {
|
||||
position: absolute !important;
|
||||
left: 9px !important;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
[pkg]="pkg"
|
||||
[connectionFailure]="connectionFailure"
|
||||
></app-list-icon>
|
||||
<ion-thumbnail slot="start" class="ion-margin-start">
|
||||
<ion-thumbnail slot="start">
|
||||
<img alt="" [src]="pkg.entry['static-files'].icon" />
|
||||
</ion-thumbnail>
|
||||
<ion-label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!-- header -->
|
||||
<ion-item-divider>
|
||||
{{ 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
|
||||
slot="start"
|
||||
[name]="reordering ? 'checkmark' : 'swap-vertical'"
|
||||
@@ -20,7 +20,7 @@
|
||||
[pkg]="pkg"
|
||||
[connectionFailure]="connectionFailure$ | async"
|
||||
></app-list-icon>
|
||||
<ion-thumbnail slot="start" class="ion-margin-start">
|
||||
<ion-thumbnail slot="start">
|
||||
<img alt="" [src]="pkg.entry['static-files'].icon" />
|
||||
</ion-thumbnail>
|
||||
<ion-label>
|
||||
|
||||
@@ -253,8 +253,6 @@ export class WifiPage {
|
||||
try {
|
||||
await this.api.deleteWifi({ ssid })
|
||||
this.wifi.ssids = this.wifi.ssids.filter((w, index) => index !== i)
|
||||
|
||||
console.log(this.wifi.ssids)
|
||||
} catch (e) {
|
||||
this.errToast.present(e)
|
||||
} finally {
|
||||
|
||||
@@ -1801,41 +1801,6 @@ export module Mock {
|
||||
|
||||
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 = {
|
||||
testnet: true,
|
||||
'object-list': [
|
||||
@@ -1876,19 +1841,6 @@ export module Mock {
|
||||
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 = {
|
||||
state: PackageState.Installed,
|
||||
'static-files': {
|
||||
|
||||
@@ -663,7 +663,7 @@ export class MockApiService extends ApiService {
|
||||
{
|
||||
op: PatchOp.REPLACE,
|
||||
path: `/package-data/${id}`,
|
||||
value: Mock.LocalPkgs[id],
|
||||
value: { ...Mock.LocalPkgs[id] },
|
||||
},
|
||||
{
|
||||
op: PatchOp.REMOVE,
|
||||
@@ -734,7 +734,6 @@ export class MockApiService extends ApiService {
|
||||
patch,
|
||||
expireId: null,
|
||||
}
|
||||
console.log('REVISION', revision)
|
||||
this.mockPatch$.next(revision)
|
||||
}
|
||||
|
||||
@@ -750,8 +749,6 @@ export class MockApiService extends ApiService {
|
||||
expireId: null,
|
||||
}
|
||||
|
||||
console.log('REVISION', revision)
|
||||
|
||||
return { response, revision }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user