Cleanup styles of settings page, cleanup syncing command a bit
This commit is contained in:
parent
6dfa66dbde
commit
41d71dac0c
@ -33,7 +33,7 @@ return array_merge($tomlConfig, [
|
||||
|
||||
// Routing defaults
|
||||
'asset_path' => '/public',
|
||||
'default_list' => 'anime',
|
||||
'default_list' => 'anime', //anime|manga
|
||||
'default_anime_list_path' => 'watching', // watching|plan_to_watch|on_hold|dropped|completed|all
|
||||
'default_manga_list_path' => 'reading', // reading|plan_to_read|on_hold|dropped|completed|all
|
||||
'default_view_type' => 'cover_view', // cover_view|list_view
|
||||
|
@ -17,7 +17,7 @@ $nestedPrefix = 'config';
|
||||
?>
|
||||
|
||||
<form action="<?= $url->generate('settings-post') ?>" method="POST">
|
||||
<main class='form'>
|
||||
<main class='settings form'>
|
||||
<button type="submit">Save Changes</button>
|
||||
<div class="tabs">
|
||||
<?php $i = 0; ?>
|
||||
@ -33,7 +33,7 @@ $nestedPrefix = 'config';
|
||||
<?php $i++; ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<hr />
|
||||
<br />
|
||||
<?php foreach ($hiddenFields as $field): ?>
|
||||
<?= $field ?>
|
||||
<?php endforeach ?>
|
||||
|
2
public/css/app.min.css
vendored
2
public/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
@ -921,3 +921,11 @@ CSS Tabs
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
Settings Form
|
||||
-----------------------------------------------------------------------------*/
|
||||
.settings.form .content article {
|
||||
margin: 1em;
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
}
|
||||
|
@ -330,7 +330,6 @@ final class SyncLists extends BaseCommand {
|
||||
if (array_key_exists($malId, $anilistList))
|
||||
{
|
||||
$anilistItem = $anilistList[$malId];
|
||||
// dump($anilistItem);
|
||||
|
||||
$item = $this->compareListItems($kitsuItem, $anilistItem);
|
||||
|
||||
@ -426,7 +425,7 @@ final class SyncLists extends BaseCommand {
|
||||
$sameNotes = $diff['notes'] === 0;
|
||||
$sameStatus = $diff['status'] === 0;
|
||||
$sameProgress = $diff['progress'] === 0;
|
||||
$sameRating = $diff['ratingTwenty'] === 0;
|
||||
$sameRating = $diff['rating'] === 0;
|
||||
$sameRewatchCount = $diff['reconsumeCount'] === 0;
|
||||
|
||||
// If an item is completed, make sure the 'reconsuming' flag is false
|
||||
@ -538,8 +537,6 @@ final class SyncLists extends BaseCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$return['meta'] = [
|
||||
'kitsu' => $kitsuItem['data'],
|
||||
'anilist' => $anilistItem['data'],
|
||||
@ -567,8 +564,6 @@ final class SyncLists extends BaseCommand {
|
||||
$return['data']['data'] = array_merge($prevData, $return['data']['data']);
|
||||
}
|
||||
|
||||
dump($return);
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
@ -312,7 +312,7 @@ class Controller {
|
||||
*/
|
||||
public function redirectToDefaultRoute(): void
|
||||
{
|
||||
$defaultType = $this->config->get('default_list') ?? 'anime';
|
||||
$defaultType = $this->config->get('default_list');
|
||||
$this->redirect($this->urlGenerator->defaultUrl($defaultType), 303);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user