mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
plugin management + user tables and torrents table text column migrate
This commit is contained in:
@@ -24,6 +24,7 @@ return [
|
||||
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_ROLE_WORK_SALARY => 'Role work salary',
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_TORRENT_BE_DOWNLOADED => 'Torrent be downloaded',
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_RECEIVE_REWARD => 'Receive reward',
|
||||
],
|
||||
'fields' => [
|
||||
'business_type' => 'Business type',
|
||||
|
||||
@@ -26,6 +26,7 @@ return [
|
||||
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_ROLE_WORK_SALARY => '工作组工资',
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_TORRENT_BE_DOWNLOADED => '种子被下载',
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_RECEIVE_REWARD => '收到奖励',
|
||||
],
|
||||
'fields' => [
|
||||
'business_type' => '业务类型',
|
||||
|
||||
@@ -41,6 +41,7 @@ return [
|
||||
'client' => '客户端',
|
||||
'reason' => '原因',
|
||||
'change' => '修改',
|
||||
'create' => '创建',
|
||||
'setting' => [
|
||||
'nav_text' => '设置',
|
||||
'backup' => [
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
"label" => "访问令牌",
|
||||
];
|
||||
@@ -24,6 +24,7 @@ return [
|
||||
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_ROLE_WORK_SALARY => '工作組工資',
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_TORRENT_BE_DOWNLOADED => '種子被下載',
|
||||
\App\Models\BonusLogs::BUSINESS_TYPE_RECEIVE_REWARD => '收到獎勵',
|
||||
],
|
||||
'fields' => [
|
||||
'business_type' => '業務類型',
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<x-filament-panels::page>
|
||||
@livewire('install-plugin-modal')
|
||||
</x-filament-panels::page>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<div>
|
||||
<h3 class="text-danger-700 pb-6">注意: 执行此操作会先将站点启用维护模式, 执行完毕后会关闭维护模式!</h3>
|
||||
<div class="code">
|
||||
<textarea readonly style="width: 100%;min-height: 200px"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,39 @@
|
||||
<div>
|
||||
<h3 class="text-danger-700 pb-6">注意: 执行此操作会先将站点启用维护模式, 执行完毕后会关闭维护模式!</h3>
|
||||
<textarea id="output" rows="10" class="w-full border rounded p-2" readonly></textarea>
|
||||
<div class="mt-4">
|
||||
<button id="btn-run" class="fi-btn">点击执行</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('btn-run').addEventListener('click', () => {
|
||||
document.getElementById('output').textContent = ''; // 清空之前的输出
|
||||
const es = new EventSource('/admin/sse?plugin_id=tgbot&action=install_plugin');
|
||||
const textarea = document.getElementById("output")
|
||||
es.onmessage = (event) => {
|
||||
console.log("onmessage: ", event.data)
|
||||
if (event.data === "close") {
|
||||
console.log("close es ...")
|
||||
es.close();
|
||||
return
|
||||
}
|
||||
textarea.textContent += event.data + "\n"
|
||||
textarea.scrollTop = textarea.scrollHeight
|
||||
}
|
||||
es.onerror = (event) => {
|
||||
console.log("onerror: ", event)
|
||||
switch (es.readyState) {
|
||||
case EventSource.CONNECTING:
|
||||
console.log("Reconnecting...");
|
||||
break;
|
||||
case EventSource.CLOSED:
|
||||
console.log("Connection closed.");
|
||||
break;
|
||||
}
|
||||
es.close()
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user