Some additions #4
@@ -1,4 +1,4 @@
|
|||||||
<a [href]="url">
|
<a [href]="url">
|
||||||
<img [src]="svg" [alt]="url" [title]="text" />
|
<img [src]="svg" [alt]="url" [title]="text | translate" />
|
||||||
<span>{{ text | translate }}</span>
|
<span>{{ text | translate }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
#lang_btn
|
#lang_btn
|
||||||
>{{ getLang() }}</span
|
>{{ getLang() }}</span
|
||||||
>
|
>
|
||||||
<a href="https://git.nwaifu.su/neuro_llc/NwaifuWeb">
|
<a href="https://git.nwaifu.su/neuro_llc/NwaifuWeb" [title]="source_code_btn_title | translate">
|
||||||
<fa-icon [icon]="faGithub" class="sourcecode-icon" title="Source code"></fa-icon>
|
<fa-icon [icon]="faGithub" class="sourcecode-icon"></fa-icon>
|
||||||
</a>
|
</a>
|
||||||
<fa-icon [icon]="faVolume"></fa-icon>
|
<fa-icon [icon]="faVolume"></fa-icon>
|
||||||
<fa-icon [icon]="faPower"></fa-icon>
|
<fa-icon [icon]="faPower"></fa-icon>
|
||||||
|
|||||||
@@ -3,17 +3,20 @@ import { Component, ElementRef, HostListener, ViewChild } from "@angular/core";
|
|||||||
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
||||||
import { faGithub } from "@fortawesome/free-brands-svg-icons";
|
import { faGithub } from "@fortawesome/free-brands-svg-icons";
|
||||||
import { faPowerOff, faVolumeHigh } from "@fortawesome/free-solid-svg-icons";
|
import { faPowerOff, faVolumeHigh } from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import { TranslationPipe } from '../../pipes/translation.pipe';
|
||||||
import { PanelSevice } from "../../services/panel.service";
|
import { PanelSevice } from "../../services/panel.service";
|
||||||
import { TranslateService } from "../../services/translate.service";
|
import { TranslateService } from "../../services/translate.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: "app-panel",
|
selector: "app-panel",
|
||||||
imports: [CommonModule, FontAwesomeModule],
|
imports: [CommonModule, FontAwesomeModule, TranslationPipe],
|
||||||
templateUrl: "./panel.component.html",
|
templateUrl: "./panel.component.html",
|
||||||
styleUrls: ["./panel.component.less"],
|
styleUrls: ["./panel.component.less"],
|
||||||
})
|
})
|
||||||
export class PanelComponent {
|
export class PanelComponent {
|
||||||
|
source_code_btn_title = "SOURCE_CODE_TITLE"
|
||||||
|
|
||||||
public time = "";
|
public time = "";
|
||||||
faGithub = faGithub;
|
faGithub = faGithub;
|
||||||
faVolume = faVolumeHigh;
|
faVolume = faVolumeHigh;
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"MODAL_TEXT": "Hello, World!",
|
"MODAL_TEXT": "Hello, World!",
|
||||||
"TELEGRAM_LABEL": "Telegram channel",
|
"TELEGRAM_LABEL": "Telegram channel",
|
||||||
"GITHUB_LABEL": "Admin's Github",
|
"GITHUB_LABEL": "Admin's Github",
|
||||||
"GITEA_LABEL": "Neuro LLC Gitea"
|
"GITEA_LABEL": "Neuro LLC Gitea",
|
||||||
|
"SOURCE_CODE_TITLE": "Source code"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"MODAL_TEXT": "こんにちは、世界!",
|
"MODAL_TEXT": "こんにちは、世界!",
|
||||||
"TELEGRAM_LABEL": "Telegramチャンネル",
|
"TELEGRAM_LABEL": "Telegramチャンネル",
|
||||||
"GITHUB_LABEL": "管理者Github",
|
"GITHUB_LABEL": "管理者Github",
|
||||||
"GITEA_LABEL": "Neuro LLC Gitea"
|
"GITEA_LABEL": "Neuro LLC Gitea",
|
||||||
|
"SOURCE_CODE_TITLE": "ソースコード"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
"MODAL_TEXT": "Здравствуйте, мир!",
|
"MODAL_TEXT": "Здравствуйте, мир!",
|
||||||
"TELEGRAM_LABEL": "Телеграм канал",
|
"TELEGRAM_LABEL": "Телеграм канал",
|
||||||
"GITHUB_LABEL": "Github админа",
|
"GITHUB_LABEL": "Github админа",
|
||||||
"GITEA_LABEL": "Neuro LLC Gitea"
|
"GITEA_LABEL": "Neuro LLC Gitea",
|
||||||
|
"SOURCE_CODE_TITLE": "Исходный код"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user