OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
44
app/Domain/Auth/Templates/partials/loginInfo.blade.php
Normal file
44
app/Domain/Auth/Templates/partials/loginInfo.blade.php
Normal file
@@ -0,0 +1,44 @@
|
||||
@dispatchEvent('beforeUserinfoMenuOpen')
|
||||
|
||||
<div class="userinfo">
|
||||
@dispatchEvent('afterUserinfoMenuOpen')
|
||||
@if(session()->exists("companysettings.logoPath") && session("companysettings.logoPath") !== false && session("companysettings.logoPath") !== '')
|
||||
<a href='{{ BASE_URL }}/users/editOwn/' preload="mouseover" class="dropdown-toggle profileHandler includeLogo" data-toggle="dropdown">
|
||||
<img src="{{ BASE_URL }}/api/users?profileImage={{ $user['id'] ?? -1 }}&v={{ format($user['modified'] ?? -1)->timestamp() }}" class="profilePicture"/>
|
||||
<img src="{{ session("companysettings.logoPath") }}" class="logo tw-pl-1" />
|
||||
</a>
|
||||
@else
|
||||
<a href='{{ BASE_URL }}/users/editOwn/' preload="mouseover" class="dropdown-toggle profileHandler" data-toggle="dropdown">
|
||||
<img src="{{ BASE_URL }}/api/users?profileImage={{ $user['id'] ?? -1 }}&v={{ format($user['modified'] ?? -1)->timestamp() }}" class="profilePicture"/>
|
||||
</a>
|
||||
@endif
|
||||
<ul class="dropdown-menu">
|
||||
@dispatchEvent('afterUserinfoDropdownMenuOpen')
|
||||
<li>
|
||||
<a href='{{ BASE_URL }}/users/editOwn/' preload="mouseover">
|
||||
{!! __("menu.my_profile") !!}
|
||||
</a>
|
||||
</li>
|
||||
@dispatchEvent('afterMyProfile')
|
||||
<li>
|
||||
<a href='{{ BASE_URL }}/users/editOwn#theme' preload="mouseover">
|
||||
{!! __("menu.theme") !!}
|
||||
</a>
|
||||
</li>
|
||||
@dispatchEvent('afterTheme')
|
||||
<li>
|
||||
<a href='{{ BASE_URL }}/users/editOwn#settings' preload="mouseover">
|
||||
{!! __("menu.settings") !!}
|
||||
</a>
|
||||
</li>
|
||||
@dispatchEvent('afterSettings')
|
||||
<li class="border">
|
||||
<a href='{{ BASE_URL }}/auth/logout'>
|
||||
{!! __("menu.sign_out") !!}
|
||||
</a>
|
||||
</li>
|
||||
@dispatchEvent('beforeUserinfoDropdownMenuClose')
|
||||
</ul>
|
||||
@dispatchEvent('beforeUserinfoMenuClose')
|
||||
</div>
|
||||
@dispatchEvent('afterUserinfoMenuClose')
|
||||
38
app/Domain/Auth/Templates/partials/tokens.blade.php
Normal file
38
app/Domain/Auth/Templates/partials/tokens.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@fragment('tokens-table')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div>
|
||||
<h5 class="subtitle">{{ __('headlines.personal_access_tokens') }}</h5>
|
||||
<p>{{ __('text.create_tokens_to_authenticate') }}</p>
|
||||
<br />
|
||||
|
||||
<x-global::forms.button tag="a" contentRole="primary" link="#/auth/tokenNew">{{ __('buttons.create_token') }}</x-global::forms.button> <br />
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<table class="table table-bordered" id="tokens-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('label.name') }}</th>
|
||||
<th>{{ __('label.last_used') }}</th>
|
||||
<th>{{ __('label.created_on') }}</th>
|
||||
<th>{{ __('label.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($tokens as $token)
|
||||
<tr>
|
||||
<td>{{ $token['name'] }}</td>
|
||||
<td>{{ $token['last_used_at'] ? format($token['last_used_at'])->date() . ' ' . format($token['last_used_at'])->time(): 'Never' }}</td>
|
||||
<td>{{ format($token['created_at'])->date(). ' ' . format($token['created_at'])->time() }}</td>
|
||||
<td>
|
||||
<x-global::forms.button state="danger" class="btn-sm" hx-delete="{{ BASE_URL }}/hx/auth/personalTokens/delete/{{ $token['id'] }}" hx-confirm="{{ __('notifications.confirm_token_delete') }}" hx-target="#personalTokens"><i class="fa fa-trash"></i></x-global::forms.button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endfragment
|
||||
Reference in New Issue
Block a user