Skip to content

Commit

Permalink
Hide relays from menu, hide items on home and rename resource texts
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Oct 3, 2023
1 parent 5d6316d commit 4e31064
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/src/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<mat-icon>construction</mat-icon>
<span *ngIf="displayLabels">Example</span>
</a> -->
<a
<!-- <a
[routerLink]="['/relays']"
mat-menu-item
(click)="toggleMenu()"
Expand All @@ -254,7 +254,7 @@
>
<mat-icon>dns</mat-icon>
<span *ngIf="displayLabels">{{ 'App.Relays' | translate }}</span>
</a>
</a> -->
<a class="expand-menu-button" mat-menu-item (click)="toggleMenuSize()">
<mat-icon *ngIf="displayLabels">chevron_left</mat-icon>
<mat-icon *ngIf="!displayLabels">chevron_right</mat-icon>
Expand Down
2 changes: 2 additions & 0 deletions app/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ export class AppComponent {
if (!this.appState.authenticated) {
const authenticated = await this.authService.authenticated();

debugger;

if (authenticated && !authenticated.error) {
this.appState.authenticated = true;
this.appState.identity = authenticated.user.did;
Expand Down
8 changes: 4 additions & 4 deletions app/src/app/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@
</mat-card>
</div>
<div class="home-right">
<br /><br />
<!-- <br /><br />
<div class="centered">
<button routerLink="/editor" mat-fab extended color="primary">
<mat-icon>note_add</mat-icon>
{{ 'Home.WriteANote' | translate }}
</button>
</div>
<br /><br />
<br /><br /> -->

<!-- <mat-card class="home-card">
<mat-card-header>
Expand Down Expand Up @@ -150,9 +150,9 @@
<app-content [event]="event"></app-content>
</mat-card>

<p class="view-more-container">
<!-- <p class="view-more-container">
<button mat-button routerLink="/feed">{{ 'Home.ViewFollowingNotes' | translate }}</button>
</p>
</p> -->

<!-- <mat-card class="home-card">
<mat-card-header>
Expand Down
1 change: 1 addition & 0 deletions app/src/app/services/auth-guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class AuthGuardService implements CanActivate {
}

return this.authService.getAuthInfo().then((authInfo: UserInfo) => {
debugger;
if (authInfo.authenticated()) {
return true;
} else {
Expand Down
4 changes: 2 additions & 2 deletions app/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"EnableSpotify": "Enable Spotify",
"EnableTidal": "Enable Tidal",
"OpenMediaPlayer": "Open Media Player",
"RegisterProtocolHandlerNote": "Click the button to make Blockcore Notes handle links on websites for npub, nevent and nprofile.",
"RegisterProtocolHandlerNote": "Click the button to make Free City Hub handle links on websites for npub, nevent and nprofile.",
"Data": "Data",
"ExportPrivateKey": "Export Private Key",
"ExportPrivateKeyNote": "Keep this private key safe, if you loose it or share it with websites, it can be stolen and misused.",
Expand All @@ -132,7 +132,7 @@
"FollowingListsNote": "Lists of users based upon topics you can add to your following list.",
"ViewProfiles": "View Profiles",
"Prototype": "Prototype",
"PrototypeTitle": "Blockcore Notes is currently in prototype quality stage. Reset the database often.",
"PrototypeTitle": "Free City Hub is currently in prototype quality stage. Reset the database often.",
"PrototypeSubtitle": "Please consider donating some Bitcoin using Geyser:",
"WriteANote": "Write a note",
"ViewFollowingNotes": "View following notes"
Expand Down
4 changes: 2 additions & 2 deletions app/src/assets/i18n/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"EnableSpotify": "Enable Spotify",
"EnableTidal": "Enable Tidal",
"OpenMediaPlayer": "Open Media Player",
"RegisterProtocolHandlerNote": "Click the button to make Blockcore Notes handle links on websites for npub, nevent and nprofile.",
"RegisterProtocolHandlerNote": "Click the button to make Free City Hub handle links on websites for npub, nevent and nprofile.",
"Data": "Data",
"ExportPrivateKey": "Export Private Key",
"ExportPrivateKeyNote": "Keep this private key safe, if you loose it or share it with websites, it can be stolen and misused.",
Expand All @@ -130,7 +130,7 @@
"FollowingListsNote": "Lists of users based upon topics you can add to your following list.",
"ViewProfiles": "View Profiles",
"Prototype": "Prototype",
"PrototypeTitle": "Blockcore Notes is currently in prototype quality stage. Reset the database often.",
"PrototypeTitle": "Free City Hub is currently in prototype quality stage. Reset the database often.",
"PrototypeSubtitle": "Please consider donating some Bitcoin using Geyser:",
"WriteANote": "Write a note",
"ViewFollowingNotes": "View following notes"
Expand Down
4 changes: 2 additions & 2 deletions app/src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"EnableSpotify": "Enable Spotify",
"EnableTidal": "Enable Tidal",
"OpenMediaPlayer": "Open Media Player",
"RegisterProtocolHandlerNote": "Click the button to make Blockcore Notes handle links on websites for npub, nevent and nprofile.",
"RegisterProtocolHandlerNote": "Click the button to make Free City Hub handle links on websites for npub, nevent and nprofile.",
"Data": "Data",
"ExportPrivateKey": "Export Private Key",
"ExportPrivateKeyNote": "Keep this private key safe, if you loose it or share it with websites, it can be stolen and misused.",
Expand All @@ -131,7 +131,7 @@
"FollowingListsNote": "Lists of users based upon topics you can add to your following list.",
"ViewProfiles": "View Profiles",
"Prototype": "Prototype",
"PrototypeTitle": "Blockcore Notes is currently in prototype quality stage. Reset the database often.",
"PrototypeTitle": "Free City Hub is currently in prototype quality stage. Reset the database often.",
"PrototypeSubtitle": "Please consider donating some Bitcoin using Geyser:",
"WriteANote": "Write a note",
"ViewFollowingNotes": "View following notes"
Expand Down

0 comments on commit 4e31064

Please sign in to comment.