mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
noreferrer everywhere
This commit is contained in:
committed by
Aiden McClelland
parent
3877e43b84
commit
9c6aaa64b8
@@ -154,7 +154,7 @@ export class AppComponent {
|
||||
} else {
|
||||
url = 'https://start9.com'
|
||||
}
|
||||
window.open(url, '_blank')
|
||||
window.open(url, '_blank', 'noreferrer')
|
||||
}
|
||||
|
||||
async presentAlertLogout () {
|
||||
@@ -347,7 +347,7 @@ export class AppComponent {
|
||||
side: 'end',
|
||||
text: 'View solutions',
|
||||
handler: () => {
|
||||
window.open(link, '_blank')
|
||||
window.open(link, '_blank', 'noreferrer')
|
||||
return false
|
||||
},
|
||||
},
|
||||
|
||||
@@ -23,6 +23,14 @@ export class MarkdownPage {
|
||||
async ngOnInit () {
|
||||
try {
|
||||
this.content = await this.embassyApi.getStatic(this.contentUrl)
|
||||
const links = document.links
|
||||
for (let i = 0, linksLength = links.length; i < linksLength; i++) {
|
||||
if (links[i].hostname != window.location.hostname) {
|
||||
links[i].target = '_blank'
|
||||
links[i].setAttribute('rel', 'noreferrer')
|
||||
links[i].className += ' externalLink'
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
this.errToast.present(e)
|
||||
} finally {
|
||||
|
||||
@@ -79,7 +79,7 @@ export class AppInterfacesItemComponent {
|
||||
) { }
|
||||
|
||||
launch (url: string): void {
|
||||
window.open(url, '_blank')
|
||||
window.open(url, '_blank', 'noreferrer')
|
||||
}
|
||||
|
||||
async copy (address: string): Promise<void> {
|
||||
|
||||
@@ -115,7 +115,7 @@ export class AppListPage {
|
||||
launchUi (pkg: PackageDataEntry, event: Event): void {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
window.open(this.config.launchableURL(pkg), '_blank')
|
||||
window.open(this.config.launchableURL(pkg), '_blank', 'noreferrer')
|
||||
}
|
||||
|
||||
asIsOrder () {
|
||||
|
||||
@@ -79,7 +79,7 @@ export class AppShowPage {
|
||||
}
|
||||
|
||||
launchUi (): void {
|
||||
window.open(this.config.launchableURL(this.pkg), '_blank')
|
||||
window.open(this.config.launchableURL(this.pkg), '_blank', 'noreferrer')
|
||||
}
|
||||
|
||||
async stop (): Promise<void> {
|
||||
@@ -124,7 +124,7 @@ export class AppShowPage {
|
||||
async donate (): Promise<void> {
|
||||
const url = this.pkg.manifest['donation-url']
|
||||
if (url) {
|
||||
window.open(url, '_blank')
|
||||
window.open(url, '_blank', 'noreferrer')
|
||||
} else {
|
||||
const alert = await this.alertCtrl.create({
|
||||
header: 'Not Accepting Donations',
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<ion-icon slot="icon-only" [name]="unmasked ? 'eye-off-outline' : 'eye-outline'" size="small"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-item>
|
||||
<p *ngIf="error" style="text-align: left; padding-top: 4px"><ion-text color="danger">{{ error }}</ion-text></p>
|
||||
<p style="text-align: left; padding-top: 4px"><ion-text color="danger">{{ error }}</ion-text></p>
|
||||
</ion-item-group>
|
||||
<ion-button class="login-button" type="submit" expand="block">
|
||||
<span style="font-size: larger; font-weight: bold;">Log In</span>
|
||||
|
||||
@@ -48,7 +48,7 @@ export class LoginPage {
|
||||
await this.authService.login(this.password)
|
||||
this.password = ''
|
||||
} catch (e) {
|
||||
this.error = e.message
|
||||
this.error = e.code === 34 ? 'Invalid Password' : e.message
|
||||
} finally {
|
||||
this.loader.dismiss()
|
||||
}
|
||||
|
||||
@@ -165,21 +165,21 @@
|
||||
</ion-col>
|
||||
<ion-col sizeSm="12" sizeMd="6">
|
||||
<ion-item-group>
|
||||
<ion-item [href]="pkg.manifest['upstream-repo']" target="_blank" detail="false">
|
||||
<ion-item [href]="pkg.manifest['upstream-repo']" target="_blank" rel="noreferrer" detail="false">
|
||||
<ion-label>
|
||||
<h2>Source Repository</h2>
|
||||
<p>{{ pkg.manifest['upstream-repo'] }}</p>
|
||||
</ion-label>
|
||||
<ion-icon slot="end" name="open-outline"></ion-icon>
|
||||
</ion-item>
|
||||
<ion-item [href]="pkg.manifest['wrapper-repo']" target="_blank" detail="false">
|
||||
<ion-item [href]="pkg.manifest['wrapper-repo']" target="_blank" rel="noreferrer" detail="false">
|
||||
<ion-label>
|
||||
<h2>Wrapper Repository</h2>
|
||||
<p>{{ pkg.manifest['wrapper-repo'] }}</p>
|
||||
</ion-label>
|
||||
<ion-icon slot="end" name="open-outline"></ion-icon>
|
||||
</ion-item>
|
||||
<ion-item [href]="pkg.manifest['support-site']" target="_blank" detail="false">
|
||||
<ion-item [href]="pkg.manifest['support-site']" target="_blank" rel="noreferrer" detail="false">
|
||||
<ion-label>
|
||||
<h2>Support Site</h2>
|
||||
<p>{{ pkg.manifest['support-site'] }}</p>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<ion-label>
|
||||
<h2>
|
||||
Connecting to your Embassy over LAN is fast and a great fallback in case the Tor network is experiencing issues.
|
||||
<a href="https://docs.start9.com/user-manual/general/lan-setup" target="_blank">View instructions</a>
|
||||
<a href="https://docs.start9.com/user-manual/general/lan-setup" target="_blank" rel="noreferrer">View instructions</a>
|
||||
</h2>
|
||||
<ng-container *ngIf="lanDisabled">
|
||||
<br />
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<ion-label>
|
||||
<h2>
|
||||
Adding SSH keys to your Embassy is useful for command line access, as well as for debugging purposes.
|
||||
<a [href]="docsUrl" target="_blank">View instructions</a>
|
||||
<a [href]="docsUrl" target="_blank" rel="noreferrer">View instructions</a>
|
||||
</h2>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<ion-label>
|
||||
<h2>
|
||||
Adding WiFi credentials to your Embassy allows you to remove the Ethernet cable and move the device anywhere you want. Embassy will automatically connect to available networks.
|
||||
<a href="https://docs.start9.com/user-manual/general/wifi.html" target="_blank">View instructions</a>
|
||||
<a href="https://docs.start9.com/user-manual/general/wifi.html" target="_blank" rel="noreferrer">View instructions</a>
|
||||
</h2>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
@@ -57,7 +57,7 @@ export function getErrorMessage (e: RequestError, link?: string): string | Ionic
|
||||
}
|
||||
|
||||
if (link) {
|
||||
message = new IonicSafeString(`${message}<br /><br /><a href=${link} target="_blank" style="color: white;">Get Help</a>`)
|
||||
message = new IonicSafeString(`${message}<br /><br /><a href=${link} target="_blank" rel="noreferrer" style="color: white;">Get Help</a>`)
|
||||
}
|
||||
|
||||
return message
|
||||
|
||||
Reference in New Issue
Block a user