OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
@props([
'parentTicketId' => false,
'onTheClock' => false
])
<li id="timerContainer-{{ $parentTicketId }}"
hx-get="{{BASE_URL}}/tickets/timerButton/get-status/{{ $parentTicketId }}"
hx-trigger="timerUpdate from:body"
hx-swap="outerHTML"
class="timerContainer">
@if ($onTheClock === false)
<a href="javascript:void(0);" data-value="{{ $parentTicketId }}"
hx-patch="{{ BASE_URL }}/hx/timesheets/stopwatch/start-timer/"
hx-target="#timerHeadMenu"
hx-swap="outerHTML"
hx-vals='{"ticketId": "{{ $parentTicketId }}", "action":"start"}'>
<span class="fa-regular fa-clock"></span> {{ __("links.start_work") }}
</a>
@endif
@if ($onTheClock !== false && $onTheClock["id"] == $parentTicketId)
<a href="javascript:void(0);" data-value="{{ $parentTicketId }}"
hx-patch="{{ BASE_URL }}/hx/timesheets/stopwatch/stop-timer/"
hx-target="#timerHeadMenu"
hx-vals='{"ticketId": "{{ $parentTicketId }}", "action":"stop"}'
hx-swap="outerHTML">
<span class="fa fa-stop"></span>
@if (is_array($onTheClock) == true)
{!! sprintf(__("links.stop_work_started_at"), date(__("language.timeformat"), $onTheClock["since"])) !!}
@else
{!! sprintf(__("links.stop_work_started_at"), date(__("language.timeformat"), time())) !!}
@endif
</a>
@endif
@if ($onTheClock !== false && $onTheClock["id"] != $parentTicketId)
<span class='working'>
{{ __("text.timer_set_other_todo") }}
</span>
@endif
</li>