diff --git a/src/apps/files.ts b/src/apps/files.ts index 3cf2f23..25c188b 100644 --- a/src/apps/files.ts +++ b/src/apps/files.ts @@ -22,6 +22,16 @@ export default class FilesApp implements App { height: 400 }) + try { + await fs.mkdir('/home', () => {}) + await fs.mkdir('/home/meow', () => {}) + } catch (e) {} + try { + await fs.writeFile('/home/owo1.txt', 'sussy', () => {}) + await fs.writeFile('/home/owo2.html', '', () => {}) + await fs.writeFile('/home/owo.js', 'alert(`hi`)', () => {}) + } catch (e) {} + win.content.style.display = 'flex' win.content.style.flexDirection = 'column' @@ -30,11 +40,7 @@ export default class FilesApp implements App { const back = dir === '/' ? '' : '' win.content.innerHTML = ` -
- ${back}${dir} -
- -
+
${back}${dir}
` diff --git a/src/assets/icons/terminal.png b/src/assets/icons/terminal.png deleted file mode 100644 index 47ed0da..0000000 Binary files a/src/assets/icons/terminal.png and /dev/null differ diff --git a/src/style.less b/src/style.less index 542e498..dbb9c17 100644 --- a/src/style.less +++ b/src/style.less @@ -57,6 +57,7 @@ toolbar { box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1), 0 0px 10px rgba(0, 0, 0, 0.1); height: 40px!important; display: flex; + align-items: center; app { display: flex;