OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
75
app/Domain/Widgets/Templates/partials/welcome.blade.php
Normal file
75
app/Domain/Widgets/Templates/partials/welcome.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
@props([
|
||||
'includeTitle' => true,
|
||||
'randomImage' => '',
|
||||
'totalTickets' => 0,
|
||||
'projectCount' => 0,
|
||||
'closedTicketsCount' => 0,
|
||||
'ticketsInGoals' => 0,
|
||||
'doneTodayCount' => 0,
|
||||
'totalTodayCount' => 0,
|
||||
])
|
||||
|
||||
<div class="welcome-widget">
|
||||
|
||||
<div style="padding:0px 0px">
|
||||
<div style="font-size:18px; color:var(--main-titles-color); padding-bottom:15px; padding-top:8px">
|
||||
👋 {{ __('text.hi') }} {{ session()->get("userdata.name") }}
|
||||
|
||||
<div class="tw-float-right">
|
||||
<x-global::forms.button tag="a" link="{{ BASE_URL }}/users/editOwn#theme" contentRole="link" style="color:var(--main-titles-color); padding:0px; width:31px; line-height:31px; text-align: center;" data-tippy-content="{{ __('text.update_theme') }}">
|
||||
<i class="fa-solid fa-palette"></i>
|
||||
</x-global::forms.button>
|
||||
|
||||
<x-global::forms.button tag="a" link="#/widgets/widgetManager" contentRole="link" style="color:var(--main-titles-color); padding:0px; width:31px; line-height:31px; text-align: center;" data-tippy-content="{{ __('text.update_dashboard') }}">
|
||||
<span class="fa fa-fw fa-cogs"></span>
|
||||
@if($showSettingsIndicator)
|
||||
<span class='new-indicator'></span>
|
||||
@endif
|
||||
</x-global::forms.button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tw-flex tw-gap-x-[10px]">
|
||||
|
||||
<div class="bigNumberBox tw-flex-1 tw-flex-grow">
|
||||
<div class="bigNumberBoxInner">
|
||||
<div class="bigNumberBoxNumber">⏱️ {{ $doneTodayCount }}/{{ $totalTodayCount }} </div>
|
||||
<div class="bigNumberBoxText">{{ __("welcome_widget.timeboxed_completed") }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bigNumberBox tw-flex-1 tw-flex-grow">
|
||||
<div class="bigNumberBoxInner">
|
||||
<div class="bigNumberBoxNumber">🥳 {{ $closedTicketsCount }} </div>
|
||||
<div class="bigNumberBoxText">{{ __("welcome_widget.tasks_completed") }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bigNumberBox tw-flex-1 tw-flex-grow ">
|
||||
|
||||
<div class="bigNumberBoxInner">
|
||||
<div class="bigNumberBoxNumber">📥 {{ $totalTickets }} </div>
|
||||
<div class="bigNumberBoxText">{{ __("welcome_widget.tasks_left") }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bigNumberBox tw-flex-1 tw-flex-grow">
|
||||
|
||||
<div class="bigNumberBoxInner">
|
||||
<div class="bigNumberBoxNumber">🎯 {{ $ticketsInGoals }} </div>
|
||||
<div class="bigNumberBoxText">{{ __("welcome_widget.goals_contributing_to") }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
@dispatchEvent('afterWelcomeMessage')
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
|
||||
@dispatchEvent('afterWelcomeMessageBox')
|
||||
Reference in New Issue
Block a user