mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Remove unnecessary console.log
calls
This commit is contained in:
parent
203669a79f
commit
cc0800d60a
@ -852,14 +852,12 @@ window.available_templates = async () => {
|
|||||||
const files = await puter.fs.readdir(baseRoute)
|
const files = await puter.fs.readdir(baseRoute)
|
||||||
|
|
||||||
const hasTemplateFolder = files.find(file => lowerCaseKeywords.includes(file.name.toLowerCase()))
|
const hasTemplateFolder = files.find(file => lowerCaseKeywords.includes(file.name.toLowerCase()))
|
||||||
console.log(hasTemplateFolder)
|
|
||||||
|
|
||||||
if(!hasTemplateFolder){
|
if(!hasTemplateFolder){
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasTemplateFiles = await puter.fs.readdir(baseRoute + "/" + hasTemplateFolder.name)
|
const hasTemplateFiles = await puter.fs.readdir(baseRoute + "/" + hasTemplateFolder.name)
|
||||||
console.log(hasTemplateFiles)
|
|
||||||
|
|
||||||
if(hasTemplateFiles.length == 0) {
|
if(hasTemplateFiles.length == 0) {
|
||||||
return []
|
return []
|
||||||
@ -868,8 +866,6 @@ window.available_templates = async () => {
|
|||||||
let result = []
|
let result = []
|
||||||
|
|
||||||
hasTemplateFiles.forEach(element => {
|
hasTemplateFiles.forEach(element => {
|
||||||
console.log(element)
|
|
||||||
|
|
||||||
const extIndex = element.name.lastIndexOf('.');
|
const extIndex = element.name.lastIndexOf('.');
|
||||||
const name = extIndex === -1
|
const name = extIndex === -1
|
||||||
? element.name
|
? element.name
|
||||||
@ -882,7 +878,6 @@ window.available_templates = async () => {
|
|||||||
|
|
||||||
const _path = path.join( baseRoute, hasTemplateFolder.name, element.name);
|
const _path = path.join( baseRoute, hasTemplateFolder.name, element.name);
|
||||||
|
|
||||||
console.log(_path)
|
|
||||||
const itemStructure = {
|
const itemStructure = {
|
||||||
path: _path,
|
path: _path,
|
||||||
html: `${extension.toUpperCase()} ${name}`,
|
html: `${extension.toUpperCase()} ${name}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user