Skip to content

Commit 88fc3ce

Browse files
committed
fix: Appease linters
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 8de39a0 commit 88fc3ce

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

src/components/ViewAdmin.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -329,23 +329,23 @@
329329
</p>
330330
<p>{{ t('recognize', 'For Nextcloud Snap users, you need to adjust this path to point to the snap\'s "current" directory as the pre-configured path will change with each update. For example, set it to "/var/snap/nextcloud/current/nextcloud/extra-apps/recognize/bin/node" instead of "/var/snap/nextcloud/9337974/nextcloud/extra-apps/recognize/bin/node"') }}</p>
331331
</NcSettingsSection>
332-
<NcSettingsSection :name="t('recognize', 'FFMPEG')">
333-
<p v-if="ffmpeg === undefined">
334-
<span class="icon-loading-small" />&nbsp;&nbsp;&nbsp;&nbsp;{{ t('recognize', 'Checking FFMPEG') }}
335-
</p>
336-
<NcNoteCard v-else-if="ffmpeg === false" type="warning">
337-
{{ t('recognize', 'Could not execute the ffmpeg binary. You may need to set the path to a working binary manually.') }}
338-
</NcNoteCard>
339-
<NcNoteCard v-else type="success">
340-
{{ t('recognize', 'ffmpeg {version} binary was installed successfully.', { version: ffmpeg }) }}
341-
</NcNoteCard>
342-
<p>
343-
{{ t('recognize', 'If the shipped ffmpeg binary doesn\'t work on your system for some reason you can set the path to a custom ffmpeg binary.') }}
344-
</p>
345-
<p>
346-
<NcTextField :value.sync="settings['ffmpeg_binary']" @update:value="onChange" />
347-
</p>
348-
</NcSettingsSection>
332+
<NcSettingsSection :name="t('recognize', 'FFMPEG')">
333+
<p v-if="ffmpeg === undefined">
334+
<span class="icon-loading-small" />&nbsp;&nbsp;&nbsp;&nbsp;{{ t('recognize', 'Checking FFMPEG') }}
335+
</p>
336+
<NcNoteCard v-else-if="ffmpeg === false" type="warning">
337+
{{ t('recognize', 'Could not execute the ffmpeg binary. You may need to set the path to a working binary manually.') }}
338+
</NcNoteCard>
339+
<NcNoteCard v-else type="success">
340+
{{ t('recognize', 'ffmpeg {version} binary was installed successfully.', { version: ffmpeg }) }}
341+
</NcNoteCard>
342+
<p>
343+
{{ t('recognize', 'If the shipped ffmpeg binary doesn\'t work on your system for some reason you can set the path to a custom ffmpeg binary.') }}
344+
</p>
345+
<p>
346+
<NcTextField :value.sync="settings['ffmpeg_binary']" @update:value="onChange" />
347+
</p>
348+
</NcSettingsSection>
349349
<NcSettingsSection :name="t('recognize', 'Classifier process priority')">
350350
<p v-if="nice === undefined">
351351
<span class="icon-loading-small" />&nbsp;&nbsp;&nbsp;&nbsp;{{ t('recognize', 'Checking Nice binary') }}
@@ -444,7 +444,7 @@ export default {
444444
libtensorflow: undefined,
445445
wasmtensorflow: undefined,
446446
gputensorflow: undefined,
447-
ffmpeg: undefined,
447+
ffmpeg: undefined,
448448
cron: undefined,
449449
modelsDownloaded: null,
450450
imagenetJobs: null,
@@ -604,11 +604,11 @@ export default {
604604
const { nodejs } = resp.data
605605
this.nodejs = nodejs
606606
},
607-
async getFfmpegStatus() {
608-
const resp = await axios.get(generateUrl('/apps/recognize/admin/ffmpeg'))
609-
const { ffmpeg } = resp.data
610-
this.ffmpeg = ffmpeg
611-
},
607+
async getFfmpegStatus() {
608+
const resp = await axios.get(generateUrl('/apps/recognize/admin/ffmpeg'))
609+
const { ffmpeg } = resp.data
610+
this.ffmpeg = ffmpeg
611+
},
612612
async getLibtensorflowStatus() {
613613
const resp = await axios.get(generateUrl('/apps/recognize/admin/libtensorflow'))
614614
const { libtensorflow } = resp.data

tests/ClassifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testFileListener(string $ignoreFileName) : void {
159159

160160
$this->runFsActionJobs();
161161
$queue = $this->queue->getFromQueue(ImagenetClassifier::MODEL_NAME, $storageId, $rootId, 100);
162-
self::assertCount(1, $this->queue->getFromQueue(ImagenetClassifier::MODEL_NAME, $storageId, $rootId, 100), 'one element should have been added to imagenet queue: ' . var_export($queue, true) . var_export(array_map(fn(QueueFile $queueFile) => $this->rootFolder->getFirstNodeById($queueFile->getFileId())?->getPath(), $queue), true));
162+
self::assertCount(1, $this->queue->getFromQueue(ImagenetClassifier::MODEL_NAME, $storageId, $rootId, 100), 'one element should have been added to imagenet queue: ' . var_export($queue, true) . var_export(array_map(fn (QueueFile $queueFile) => $this->rootFolder->getFirstNodeById($queueFile->getFileId())?->getPath(), $queue), true));
163163

164164
$this->testFile->delete();
165165

0 commit comments

Comments
 (0)