fix fetchers/stats.js, toggle show_icons default

This commit is contained in:
martin-mfg
2025-11-08 13:39:44 +01:00
parent d1876ca9e7
commit 748281e76e
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -179,13 +179,13 @@ const fetchTotalItems = (variables, token) => {
method: "get",
url:
`https://api.github.com/search/` +
type +
variables.type +
`?per_page=1&q=` +
buildSearchFilter(variables.repo, variables.owner).replaceAll(
" ",
"+",
) +
filter,
variables.filter,
headers: {
"Content-Type": "application/json",
Accept: "application/vnd.github.cloak-preview",
@@ -215,6 +215,8 @@ const totalItemsFetcher = async (username, repo, owner, type, filter) => {
login: username,
repo,
owner,
type,
filter,
});
} catch (err) {
logger.log(err);
+1 -1
View File
@@ -53,7 +53,7 @@ const HomeScreen = () => {
const [descriptionLines, setDescriptionLines] = useState();
const [customTitle, setCustomTitle] = useState('');
const [langsCount, setLangsCount] = useState();
const [showIcons, setShowIcons] = useState(true);
const [showIcons, setShowIcons] = useState(false);
const [enableAnimations, setEnableAnimations] = useState(true);
const [usePercent, setUsePercent] = useState(false);