Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(frontend:users): add links to official website and documentation
johavenbace34527e94
diff --git a/frontend/src/app/applications/users/components/sidebar/user-profile.component.html b/frontend/src/app/applications/users/components/sidebar/user-profile.component.htmlindex 0c0ce642..3a79536b 100755--- a/frontend/src/app/applications/users/components/sidebar/user-profile.component.html+++ b/frontend/src/app/applications/users/components/sidebar/user-profile.component.html@@ -5,48 +5,67 @@--><!-- The user image in the menu -->-<div class="sidebar-component-title">- <div class="d-flex flex-fill justify-content-between">- @if (!user?.isLink) {- <button class="btn btn-xs btn-secondary" (click)="collapseRSideBar()" type="button" [routerLink]=USER_PATH.BASE>- <fa-icon [icon]="icons.faUserAlt"></fa-icon>- </button>- }- <button class="btn btn-xs btn-secondary" (click)="toggleTheme()" type="button">- <fa-icon [icon]="icons.faCircleHalfStroke"></fa-icon>- </button>- @if (user?.isAdmin) {- <button class="btn btn-xs btn-secondary" (click)="collapseRSideBar()" type="button" routerLink="/admin">- <fa-icon [icon]="icons.faCog"></fa-icon>- </button>- }- @if (!store.isElectronApp() || store.isElectronApp() && store.userImpersonate()) {- <button (click)="logOut()" class="btn btn-xs btn-secondary" type="button">- <fa-icon [icon]="store.userImpersonate() ? icons.faUserSecret : icons.faPowerOff"></fa-icon>+<div class="d-flex flex-column" style="height: 92vh">+ <div class="sidebar-component-title">+ <div class="d-flex flex-fill justify-content-between">+ @if (!user?.isLink) {+ <button class="btn btn-xs btn-secondary" (click)="collapseRSideBar()" type="button" [routerLink]=USER_PATH.BASE>+ <fa-icon [icon]="icons.faUserAlt"></fa-icon>+ </button>+ }+ <button class="btn btn-xs btn-secondary" (click)="toggleTheme()" type="button">+ <fa-icon [icon]="icons.faCircleHalfStroke"></fa-icon></button>- }- </div>-</div>-<div class="user-header">- <div class="d-flex flex-column justify-content-center me-2">- <div class="avatar-lg">- <img class="avatar-img" [src]="userAvatar" alt="">- <span class="avatar-{{allOnlineStatus[user?.onlineStatus]}}"></span>+ @if (user?.isAdmin) {+ <button class="btn btn-xs btn-secondary" (click)="collapseRSideBar()" type="button" routerLink="/admin">+ <fa-icon [icon]="icons.faCog"></fa-icon>+ </button>+ }+ @if (!store.isElectronApp() || store.isElectronApp() && store.userImpersonate()) {+ <button (click)="logOut()" class="btn btn-xs btn-secondary" type="button">+ <fa-icon [icon]="store.userImpersonate() ? icons.faUserSecret : icons.faPowerOff"></fa-icon>+ </button>+ }</div></div>- <div class="user-details">- @if (user?.isLink) {- <div l10nTranslate>Guest Link</div>- } @else {- <div>{{ user?.fullName }}</div>- <div class="small">{{ user?.email }}</div>- }- <select [ngModel]="user?.onlineStatus"- (ngModelChange)="setOnlineStatus($event)"- class="form-select form-select-sm mt-1">- @for (s of allOnlineStatus; track $index) {- <option [ngValue]="allOnlineStatus.indexOf(s)" l10nTranslate>{{ s | capitalize }}</option>+ <div class="user-header">+ <div class="d-flex flex-column justify-content-center me-2">+ <div class="avatar-lg">+ <img class="avatar-img" [src]="userAvatar" alt="">+ <span class="avatar-{{allOnlineStatus[user?.onlineStatus]}}"></span>+ </div>+ </div>+ <div class="user-details">+ @if (user?.isLink) {+ <div l10nTranslate>Guest Link</div>+ } @else {+ <div>{{ user?.fullName }}</div>+ <div class="small">{{ user?.email }}</div>}- </select>+ <select [ngModel]="user?.onlineStatus"+ (ngModelChange)="setOnlineStatus($event)"+ class="form-select form-select-sm mt-1">+ @for (s of allOnlineStatus; track $index) {+ <option [ngValue]="allOnlineStatus.indexOf(s)" l10nTranslate>{{ s | capitalize }}</option>+ }+ </select>+ </div>+ </div>+ <div class="d-flex flex-column mt-auto fs-xs">+ <hr />+ <div class="d-flex flex-column mx-3">+ <div class="mb-3">+ <img alt="" height="26" [src]="this.layout.switchTheme.getValue() === themeLight ? logoUrl: logoDarkUrl">+ </div>+ <div>+ <a href="https://sync-in.com" target="_blank">Website</a>+ <span> | </span>+ <a href="https://sync-in.com/docs" target="_blank">Documentation</a>+ <span> | </span>+ <a href="https://github.com/Sync-in/server/releases" target="_blank">Versions</a>+ <span> | </span>+ <a href="https://sync-in.com/support" target="_blank"> 💛</a>+ </div>+ </div></div></div>diff --git a/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts b/frontend/src/app/applications/users/components/sidebar/user-profile.component.tsindex b7b2997e..f0b0d4b4 100644--- a/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts+++ b/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts@@ -14,8 +14,10 @@ import { L10nTranslateDirective } from 'angular-l10n'import { Subscription } from 'rxjs'import { AuthService } from '../../../../auth/auth.service'import { CapitalizePipe } from '../../../../common/pipes/capitalize.pipe'+import { themeLight } from '../../../../layout/layout.interfaces'import { LayoutService } from '../../../../layout/layout.service'import { StoreService } from '../../../../store/store.service'+import { logoDarkUrl, logoUrl } from '../../../files/files.constants'import { UserType } from '../../interfaces/user.interface'import { USER_PATH } from '../../user.constants'import { UserService } from '../../user.service'@@ -26,13 +28,16 @@ import { UserService } from '../../user.service'imports: [FormsModule, RouterLink, CapitalizePipe, FaIconComponent, L10nTranslateDirective]})export class UserProfileComponent implements OnDestroy {+ protected readonly logoDarkUrl = logoDarkUrl+ protected readonly logoUrl = logoUrlprotected readonly store = inject(StoreService)protected readonly USER_PATH = USER_PATHprotected readonly allOnlineStatus = USER_ONLINE_STATUS_LISTprotected readonly icons = { faUserAlt, faCircleHalfStroke, faCog, faPowerOff, faUserSecret }protected user: UserTypeprotected userAvatar: string = null- private readonly layout = inject(LayoutService)+ protected readonly layout = inject(LayoutService)+ protected readonly themeLight = themeLightprivate readonly authService = inject(AuthService)private readonly userService = inject(UserService)private subscriptions: Subscription[] = []