Skip to content

Commit

Permalink
feat: About page
Browse files Browse the repository at this point in the history
  • Loading branch information
anonysoul committed Apr 2, 2023
1 parent e1b9a1e commit 5de44a4
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 11 deletions.
3 changes: 0 additions & 3 deletions controller/README.md

This file was deleted.

23 changes: 22 additions & 1 deletion controller/src/app/pages/about/about.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
<p>about works!</p>
<div class="item">
<div>Versions</div>
<div>
<div>Singland: 1.0.0</div>
<div>sing-box: 1.0.0</div>
</div>
</div>
<div class="item">
<div>Thinks</div>
<div>
<div>
Singland is made possible by the following open source project:
</div>
<ul>
<li (click)="openExternalLink('https://github.com/SagerNet/sing-box/')">sing-box </li>
<li (click)="openExternalLink('https://github.com/electron/electron/')">electron</li>
<li (click)="openExternalLink('https://github.com/angular/angular/')">angular</li>
<li (click)="openExternalLink('https://github.com/microsoft/monaco-editor/')">monaco-editor</li>
<li (click)="openExternalLink('https://github.com/google/wireit/')">wireit</li>
</ul>
</div>
</div>
22 changes: 22 additions & 0 deletions controller/src/app/pages/about/about.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.item {
margin-bottom: 20px;

> div:first-child {
font-weight: bold;
}

ul {
display: inline-block;
margin-top: 2px;
padding-left: 15px;

li {
color: #00a1ff;
cursor: pointer;
}

li::marker {
color: black;
}
}
}
5 changes: 5 additions & 0 deletions controller/src/app/pages/about/about.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, OnInit } from "@angular/core";
import { shell } from "electron";

@Component({
selector: "app-about",
Expand All @@ -9,4 +10,8 @@ export class AboutComponent implements OnInit {
constructor() {}

ngOnInit(): void {}

openExternalLink(url: string) {
shell.openExternal(url);
}
}
7 changes: 0 additions & 7 deletions editor/README.md

This file was deleted.

0 comments on commit 5de44a4

Please sign in to comment.