From fd32ca704ae61009c0914aa95aa957edf9cf1f7f Mon Sep 17 00:00:00 2001 From: Anatoly Date: Mon, 7 Mar 2022 02:07:16 +0300 Subject: [PATCH] Filesystem org --- public/style.css | 1 + api.js => src/api.js | 0 index.js => src/index.js | 0 {items => src/items}/Archwings.js | 0 {items => src/items}/Companion.js | 0 {items => src/items}/Item.js | 0 {items => src/items}/Part.js | 0 {items => src/items}/Primary.js | 0 {items => src/items}/Secondary.js | 0 {items => src/items}/Warframe.js | 0 {items => src/items}/index.js | 0 {items => src/items}/items.json | 0 {output => src/output}/OutputItem.js | 0 {output => src/output}/index.js | 4 ++-- {output => src/output}/template.hbs | 0 15 files changed, 3 insertions(+), 2 deletions(-) rename api.js => src/api.js (100%) rename index.js => src/index.js (100%) rename {items => src/items}/Archwings.js (100%) rename {items => src/items}/Companion.js (100%) rename {items => src/items}/Item.js (100%) rename {items => src/items}/Part.js (100%) rename {items => src/items}/Primary.js (100%) rename {items => src/items}/Secondary.js (100%) rename {items => src/items}/Warframe.js (100%) rename {items => src/items}/index.js (100%) rename {items => src/items}/items.json (100%) rename {output => src/output}/OutputItem.js (100%) rename {output => src/output}/index.js (84%) rename {output => src/output}/template.hbs (100%) diff --git a/public/style.css b/public/style.css index 15d332f..e98ae30 100644 --- a/public/style.css +++ b/public/style.css @@ -60,6 +60,7 @@ a { background: white; color: black; text-align: center; + overflow: hidden; } .hero > .main { diff --git a/api.js b/src/api.js similarity index 100% rename from api.js rename to src/api.js diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js diff --git a/items/Archwings.js b/src/items/Archwings.js similarity index 100% rename from items/Archwings.js rename to src/items/Archwings.js diff --git a/items/Companion.js b/src/items/Companion.js similarity index 100% rename from items/Companion.js rename to src/items/Companion.js diff --git a/items/Item.js b/src/items/Item.js similarity index 100% rename from items/Item.js rename to src/items/Item.js diff --git a/items/Part.js b/src/items/Part.js similarity index 100% rename from items/Part.js rename to src/items/Part.js diff --git a/items/Primary.js b/src/items/Primary.js similarity index 100% rename from items/Primary.js rename to src/items/Primary.js diff --git a/items/Secondary.js b/src/items/Secondary.js similarity index 100% rename from items/Secondary.js rename to src/items/Secondary.js diff --git a/items/Warframe.js b/src/items/Warframe.js similarity index 100% rename from items/Warframe.js rename to src/items/Warframe.js diff --git a/items/index.js b/src/items/index.js similarity index 100% rename from items/index.js rename to src/items/index.js diff --git a/items/items.json b/src/items/items.json similarity index 100% rename from items/items.json rename to src/items/items.json diff --git a/output/OutputItem.js b/src/output/OutputItem.js similarity index 100% rename from output/OutputItem.js rename to src/output/OutputItem.js diff --git a/output/index.js b/src/output/index.js similarity index 84% rename from output/index.js rename to src/output/index.js index a6ea6ae..ab06236 100644 --- a/output/index.js +++ b/src/output/index.js @@ -13,7 +13,7 @@ class Output { } async compileTemplate () { - const templateFile = await fs.readFileSync('./output/template.hbs', 'utf8') + const templateFile = await fs.readFileSync('./src/output/template.hbs', 'utf8') const template = Handlebars.compile(templateFile) return template(this) } @@ -26,7 +26,7 @@ class Output { } catch { console.log('File probably doesnt exist') } - fs.writeFileSync(filename, content, 'utf-8') + fs.writeFileSync(filename, content, 'utf8') } async submit () { diff --git a/output/template.hbs b/src/output/template.hbs similarity index 100% rename from output/template.hbs rename to src/output/template.hbs