压制警告提示

This commit is contained in:
Chenx221 2024-02-16 14:04:33 +08:00
parent 7154ee9ce1
commit e821362b6c
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
4 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ profile:
# - <path/where/not/run/inspection> # - <path/where/not/run/inspection>
php: php:
version: 8.2 #(Applied in CI/CD pipeline) version: "8.2" #(Applied in CI/CD pipeline)
#Execute shell command before Qodana execution (Applied in CI/CD pipeline) #Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh #bootstrap: sh ./prepare-qodana.sh

View File

@ -98,7 +98,7 @@ $this->registerCssFile('@web/css/home_style.css');
<table class="table table-hover" id="drop-area"> <table class="table table-hover" id="drop-area">
<thead class="table-light"> <thead class="table-light">
<tr> <tr>
<th scope="col" class="selector-col"><input type="checkbox" id="select-all"></th> <th scope="col" class="selector-col"><label for="select-all" hidden></label><input type="checkbox" id="select-all"></th>
<th scope="col" class="name-col">名称</th> <th scope="col" class="name-col">名称</th>
<th scope="col" class="modified-col">最近修改时间</th> <th scope="col" class="modified-col">最近修改时间</th>
<th scope="col" class="size-col">大小</th> <th scope="col" class="size-col">大小</th>
@ -110,7 +110,7 @@ $this->registerCssFile('@web/css/home_style.css');
<?php $relativePath = $directory ? $directory . '/' . $item['name'] : $item['name']; ?> <?php $relativePath = $directory ? $directory . '/' . $item['name'] : $item['name']; ?>
<?php $absolutePath = Yii::getAlias('@app') . '/data/' . Yii::$app->user->id . '/' . $relativePath; ?> <?php $absolutePath = Yii::getAlias('@app') . '/data/' . Yii::$app->user->id . '/' . $relativePath; ?>
<tr> <tr>
<td><input type="checkbox" class="select-item" data-relative-path="<?= Html::encode($relativePath) ?>" data-is-directory="<?= Html::encode(is_dir($absolutePath)) ?>"></td> <td><label for="selector1" hidden></label><input id="selector1" type="checkbox" class="select-item" data-relative-path="<?= Html::encode($relativePath) ?>" data-is-directory="<?= Html::encode(is_dir($absolutePath)) ?>"></td>
<?php if (is_dir($absolutePath)): ?> <!-- 如果是文件夹 --> <?php if (is_dir($absolutePath)): ?> <!-- 如果是文件夹 -->
<td> <td>
<?= Html::tag('i', '', ['class' => $item['type'] . ' file_icon']) ?> <?= Html::tag('i', '', ['class' => $item['type'] . ' file_icon']) ?>

View File

@ -25,7 +25,7 @@ table a {
line-height: 2; line-height: 2;
} }
.selector-col{ .selector-col{
width: 0%; width: 0;
} }
.name-col { .name-col {
width: 50%; width: 50%;

View File

@ -152,7 +152,7 @@ $(document).on('click', '.batch-paste-btn', function () {
type: "POST", type: "POST",
url: "index.php?r=home%2Fpaste", url: "index.php?r=home%2Fpaste",
data: { operation: operation, relativePaths: relativePaths, targetDirectory: targetDirectory }, data: { operation: operation, relativePaths: relativePaths, targetDirectory: targetDirectory },
success: function(response) { success: function() {
// 处理响应 // 处理响应
location.reload(); location.reload();
}, },
@ -200,7 +200,7 @@ $(document).on('click', '.batch-delete-btn', function () {
type: "POST", type: "POST",
url: "index.php?r=home%2Fdelete", url: "index.php?r=home%2Fdelete",
data: { relativePath: relativePaths }, data: { relativePath: relativePaths },
success: function(response) { success: function() {
// 处理响应 // 处理响应
location.reload(); location.reload();
}, },