Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
6 changed files with 14 additions and 11 deletions
Showing only changes of commit 7a2bb1ba05 - Show all commits

View File

@ -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

View File

@ -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 ?>

File diff suppressed because one or more lines are too long

View File

@ -921,3 +921,11 @@ CSS Tabs
}
}
/* ----------------------------------------------------------------------------
Settings Form
-----------------------------------------------------------------------------*/
.settings.form .content article {
margin: 1em;
display: inline-block;
width: auto;
}

View File

@ -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;
}

View File

@ -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);
}