pre-commit formatter

This commit is contained in:
Junyi Hou 2024-04-09 20:03:09 +08:00
parent ddec81c876
commit a1cd164e9a
117 changed files with 153 additions and 170 deletions

View file

@ -74,4 +74,4 @@ html[data-theme='dark'] {
--svg-color: #ccc;
--svg-state-color: #ff5858;
}
}

View file

@ -58,7 +58,7 @@ html[data-theme="light"] {
--pre-bg-color: #eff1f2;
--pre-border-color: #e1e5e9;
--kbd-bg-color: #f7f7f7;
--bq-color: #ccc;
--hr-color: #ccc;

View file

@ -888,4 +888,4 @@ ul.footer-menu>li {
.post-pagination .pagination-item {
max-width: 10em;
}
}
}

View file

@ -1 +1 @@
<?xml version="1.0" ?><svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/></svg>
<?xml version="1.0" ?><svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/></svg>

Before

Width:  |  Height:  |  Size: 432 B

After

Width:  |  Height:  |  Size: 433 B

Before After
Before After

View file

@ -61,4 +61,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
// Add copy button to code blocks
let highlightBlocks = document.getElementsByClassName('highlight');
Array.prototype.forEach.call(highlightBlocks, addCopyButton);
}, false);
}, false);

View file

@ -7,7 +7,7 @@
(function(window){
'use strict'
const elementCode = '.mermaid'
const loadMermaid = function(theme) {
window.mermaid.initialize({theme})
@ -26,7 +26,7 @@
}
});
} catch (error) {
reject(error)
reject(error)
}
})
}
@ -46,11 +46,11 @@
}
});
} catch (error) {
reject(error)
reject(error)
}
})
}
}
const init = ()=>{
saveOriginalData()
.catch( console.error )
@ -66,4 +66,4 @@
})
}
window.initMermaid = init
})(window);
})(window);