-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In dev #6
Merged
In dev #6
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
46a35d6
updated website and readme
hotsu0p ec724ed
Fixed website
hotsu0p 8c6c397
UPDATED hover
hotsu0p acd14e6
made da sapplinngs morve
hotsu0p 2e35152
Improved stars
hotsu0p 6d98a0a
channngelog
hotsu0p 17f9a2d
Merge branch 'master' into in-dev
hotsu0p File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,13 @@ | ||
const getCodeStats = require('@hotsuop/codestats'); | ||
const chalk = require('chalk'); | ||
// Define the folder path to analyze | ||
const folderPath = '../shaders'; | ||
const express = require('express') | ||
const app = express() | ||
const port = 3000 | ||
|
||
// Define the configuration object | ||
const config = { | ||
languages: ['js', 'html', 'glsl'], // Add more languages if needed | ||
exclude: ['node_modules'], // Add folders to exclude | ||
fileTypes: ['xml', 'css'], // Add more file types if needed | ||
depthLimit: 5, | ||
}; | ||
app.use(express.static('website')); | ||
|
||
app.get('/', (req, res) => { | ||
res.sendFile(__dirname + '/website/index.html'); | ||
}); | ||
|
||
// Call getCodeStats with the folder path and configuration | ||
getCodeStats(folderPath, config) | ||
.then(projectStats => { | ||
// Display the calculated project stats | ||
console.log('Project Statistics:'); | ||
console.log(`Total Files: ${projectStats.totalFiles}`); | ||
console.log(`Total Lines: ${projectStats.totalLines}`); | ||
console.log(`Total Characters: ${projectStats.totalCharacters}`); | ||
console.log(`Total Functions: ${projectStats.totalFunctions}`); | ||
console.log(`Total Classes: ${projectStats.totalClasses}`); | ||
console.log(`Total Comments: ${projectStats.totalComments}`); | ||
|
||
// Display detailed stats for each file | ||
console.log('\nFile Statistics:'); | ||
projectStats.files.forEach(fileStats => { | ||
console.log(`\nFile: ${fileStats.filePath}`); | ||
console.log(`Lines: ${fileStats.lines}`); | ||
console.log(`Characters: ${fileStats.characters}`); | ||
console.log(`Functions: ${fileStats.functionsCount}`); | ||
console.log(`Classes: ${fileStats.classesCount}`); | ||
console.log(`Comments: ${fileStats.commentsCount}`); | ||
}); | ||
|
||
// Display file types summary | ||
console.log('\nFile Types Summary:'); | ||
console.log('Type\t| Files\t| Lines'); | ||
console.log('--------|-------|----------'); | ||
for (const fileType in projectStats.fileTypesStats) { | ||
const fileTypeStats = projectStats.fileTypesStats[fileType]; | ||
console.log(`${fileType}\t| ${fileTypeStats.files}\t| ${fileTypeStats.lines} (${((fileTypeStats.lines / projectStats.totalLines) * 100).toFixed(2)}%)`); | ||
} | ||
console.log('--------|-------|----------'); | ||
console.log(`All\t| ${projectStats.totalFiles}\t| ${projectStats.totalLines}`); | ||
}) | ||
.catch(error => { | ||
console.error(chalk.red(`Error: ${error.message}`)); | ||
}); | ||
app.listen(port, () => { | ||
console.log(`App listening on port ${port}`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<body> | ||
<h1 class="title"> Beyond Vinlla - Minecraft shader</h1> | ||
<div class="intro-containter"> | ||
<div> | ||
<h2>Hello! </h2> | ||
<p>Thanks for checking out my shader!</p> | ||
<p>For other people who are wondering what this is you can check out the images below to get a taste of what its like</p> | ||
<button onclick="showDiv()" class="image-button">Click to show images</button> | ||
</div> | ||
</div> | ||
|
||
<div class="testdiv" style="display: none;" id="testdiv"> | ||
<img class="image" src="../assets/2024-03-02_17.41.42.png" alt="Why can you see this.... also coral1"> | ||
<img class="image" src="../assets/2024-03-04_15.26.03.png" alt="coral2"> | ||
<img class="image" src="../assets/2024-03-04_15.26.26.png" alt="coral3"> | ||
<img class="image" src="../assets/2024-03-04_15.28.24.png" alt="coral4"> | ||
</div> | ||
</body> | ||
<style> | ||
body { | ||
background: linear-gradient(to right, #1c1c1d, #182848); | ||
font-family: 'Arial', sans-serif; | ||
color: aliceblue; | ||
|
||
} | ||
.intro-containter , .title{ | ||
text-align: center; | ||
} | ||
.image{ | ||
width: auto; | ||
height: auto; | ||
border-radius: 2%; | ||
} | ||
.image-button{ | ||
width: 150px; | ||
height: 40px; | ||
border-radius: 7%; | ||
background-color: #3498db; | ||
color: #fff; | ||
padding: 8px 15px; | ||
font-size: 0.9em; | ||
transition: background-color 0.3s; | ||
} | ||
</style> | ||
<script> | ||
function showDiv(){ | ||
var div = document.getElementById("testdiv") | ||
div.style.display = "block" | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Missing rate limiting High