mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
deprecate wifi
This commit is contained in:
4
web/package-lock.json
generated
4
web/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "startos-ui",
|
||||
"version": "0.3.5.1",
|
||||
"version": "0.3.5.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "startos-ui",
|
||||
"version": "0.3.5.1",
|
||||
"version": "0.3.5.2",
|
||||
"dependencies": {
|
||||
"@angular/animations": "^14.1.0",
|
||||
"@angular/common": "^14.1.0",
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
<ion-label class="label montserrat" routerLinkActive="label_selected">
|
||||
{{ page.title }}
|
||||
</ion-label>
|
||||
<ion-icon
|
||||
*ngIf="page.url === '/system' && (wifiConnected$ | async)"
|
||||
color="warning"
|
||||
size="small"
|
||||
name="warning"
|
||||
></ion-icon>
|
||||
<ion-icon
|
||||
*ngIf="page.url === '/system' && (showEOSUpdate$ | async)"
|
||||
color="success"
|
||||
|
||||
@@ -64,6 +64,8 @@ export class MenuComponent {
|
||||
'unreadNotificationCount',
|
||||
)
|
||||
|
||||
readonly wifiConnected$ = this.patch.watch$('serverInfo', 'wifi', 'selected')
|
||||
|
||||
readonly snekScore$ = this.patch.watch$('ui', 'gaming', 'snake', 'highScore')
|
||||
|
||||
readonly showEOSUpdate$ = this.eosService.showUpdate$
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
<ion-item
|
||||
*ngFor="let button of cat.value"
|
||||
button
|
||||
[style.display]="(button.title === 'Repair Disk' && !(showDiskRepair$ | async)) ? 'none' : 'block'"
|
||||
[style.display]="((button.title === 'Repair Disk' && !(showDiskRepair$ | async))) || (button.title === 'WiFi' && !(wifiConnected$ | async)) ? 'none' : 'block'"
|
||||
[color]="button.title === 'WiFi' ? 'warning' : ''"
|
||||
[detail]="button.detail"
|
||||
[disabled]="button.disabled$ | async"
|
||||
(click)="button.action()"
|
||||
@@ -59,7 +60,6 @@
|
||||
<ion-label>
|
||||
<h2>{{ button.title }}</h2>
|
||||
<p *ngIf="button.description">{{ button.description }}</p>
|
||||
|
||||
<!-- "Create Backup" button only -->
|
||||
<p *ngIf="button.title === 'Create Backup'">
|
||||
<ng-container *ngIf="server.statusInfo as statusInfo">
|
||||
|
||||
@@ -40,6 +40,7 @@ export class ServerShowPage {
|
||||
readonly server$ = this.patch.watch$('serverInfo')
|
||||
readonly showUpdate$ = this.eosService.showUpdate$
|
||||
readonly showDiskRepair$ = this.ClientStorageService.showDiskRepair$
|
||||
readonly wifiConnected$ = this.patch.watch$('serverInfo', 'wifi', 'selected')
|
||||
|
||||
constructor(
|
||||
private readonly alertCtrl: AlertController,
|
||||
@@ -553,7 +554,7 @@ export class ServerShowPage {
|
||||
},
|
||||
{
|
||||
title: 'WiFi',
|
||||
description: 'Add or remove WiFi networks',
|
||||
description: 'WiFi is deprecated. Click to learn more.',
|
||||
icon: 'wifi',
|
||||
action: () =>
|
||||
this.navCtrl.navigateForward(['wifi'], { relativeTo: this.route }),
|
||||
|
||||
@@ -16,21 +16,22 @@
|
||||
<ion-content class="ion-padding-top with-widgets">
|
||||
<ion-item-group>
|
||||
<!-- always -->
|
||||
<ion-item>
|
||||
<ion-item color="warning" class="ion-margin">
|
||||
<ion-icon slot="start" name="warning-outline"></ion-icon>
|
||||
<ion-label>
|
||||
<h2>
|
||||
Adding WiFi credentials to your StartOS allows you to remove the
|
||||
Ethernet cable and move the device anywhere you want. StartOS will
|
||||
automatically connect to available networks.
|
||||
<a
|
||||
href="https://docs.start9.com/0.3.5.x/user-manual/wifi"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
View instructions
|
||||
</a>
|
||||
</h2>
|
||||
<h2 style="font-weight: bold">WiFi is deprecated</h2>
|
||||
<p style="font-weight: 600">
|
||||
WiFi will be eliminated from StartOS in version v0.4.0, expected soon.
|
||||
Before then, we highly recommend switching your server to a direct,
|
||||
Ethernet connection, which is faster and more reliable. If using
|
||||
Ethernet is not possible for you, we recommend using a WiFi extender
|
||||
instead.
|
||||
</p>
|
||||
</ion-label>
|
||||
<ion-button slot="end" color="light" (click)="openDocs()">
|
||||
Learn More
|
||||
<ion-icon slot="end" name="open-outline"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-item>
|
||||
|
||||
<ion-item-divider>Country</ion-item-divider>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core'
|
||||
import { Component, Inject } from '@angular/core'
|
||||
import {
|
||||
ActionSheetController,
|
||||
AlertController,
|
||||
@@ -14,6 +14,7 @@ import { RR } from 'src/app/services/api/api.types'
|
||||
import { pauseFor, ErrorToastService } from '@start9labs/shared'
|
||||
import { GenericFormPage } from 'src/app/modals/generic-form/generic-form.page'
|
||||
import { ConfigService } from 'src/app/services/config.service'
|
||||
import { WINDOW } from '@ng-web-apis/common'
|
||||
|
||||
@Component({
|
||||
selector: 'wifi',
|
||||
@@ -36,12 +37,21 @@ export class WifiPage {
|
||||
private readonly errToast: ErrorToastService,
|
||||
private readonly actionCtrl: ActionSheetController,
|
||||
private readonly config: ConfigService,
|
||||
@Inject(WINDOW) private readonly windowRef: Window,
|
||||
) {}
|
||||
|
||||
async ngOnInit() {
|
||||
await this.getWifi()
|
||||
}
|
||||
|
||||
async openDocs() {
|
||||
this.windowRef.open(
|
||||
'https://docs.start9.com/user-manual/wifi.html',
|
||||
'_blank',
|
||||
'noreferrer',
|
||||
)
|
||||
}
|
||||
|
||||
async getWifi(timeout: number = 0): Promise<void> {
|
||||
this.loading = true
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user