first commit

This commit is contained in:
benjibennn
2023-12-22 12:35:55 +08:00
commit 9f89a732d6
872 changed files with 156291 additions and 0 deletions

33
wave/docs/assets/app.js Normal file
View File

@@ -0,0 +1,33 @@
import 'alpinejs';
window.inIframe = function() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
document.addEventListener('DOMContentLoaded', function(){
if(inIframe()){
hideIframeElements();
}
});
window.hideIframeElements = function(){
document.getElementById('backToSiteBtn').classList.add('hidden');
}
window.searchFocused = function(focused){
if(focused){
document.getElementById('sidebar').classList.remove('overflow-scroll');
document.getElementById('bg-fade').classList.remove('invisible');
document.getElementById('bg-fade').classList.remove('opacity-0');
document.getElementById('bg-fade').classList.add('opacity-25');
} else {
document.getElementById('sidebar').classList.add('overflow-scroll');
document.getElementById('bg-fade').classList.add('invisible');
document.getElementById('bg-fade').classList.add('opacity-0');
document.getElementById('bg-fade').classList.remove('opacity-25');
}
}

40
wave/docs/assets/app.scss Normal file
View File

@@ -0,0 +1,40 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
[x-cloak]{
display:none;
}
html, body {
scroll-behavior: smooth;
}
.docs{
.prose h1, .lg\:prose-xl h1{
@apply bg-clip-text text-transparent bg-gradient-to-r from-wave-500 to-purple-500 mb-5 pb-5;
}
.prose pre{
background:#1e1b47;
}
.prose p code{
font-size: 15px;
color: #3c4257;
font-weight: 500;
padding: 1px 2px;
background: #f8fafc;
border: 1px solid #e3e8ee;
border-radius: 4px;
&::before, &::after{
content:"";
}
}
.prose blockquote p{
&::before, &::after{
content: "";
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"/js/app.js": "/js/app.js",
"/css/app.css": "/css/app.css"
}