parent
e074fab437
commit
c76d0d8a1d
3 changed files with 12 additions and 5 deletions
|
|
@ -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', '<body></body>', () => {})
|
||||
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 === '/' ? '<i class=\'bx bx-arrow-to-left\'></i>' : '<i class=\'back bx bx-left-arrow-alt\'></i>'
|
||||
|
||||
win.content.innerHTML = `
|
||||
<div style="padding: 5px;display: flex;align-items: center;gap: 5px;">
|
||||
${back}${dir}
|
||||
<div style="flex:1;"></div>
|
||||
<i class='bx bxs-folder-plus' style="font-size: 20px;"></i><i class='bx bxs-file-plus' style="font-size: 20px;"></i>
|
||||
</div>
|
||||
<div style="padding: 5px;display: flex;align-items: center;">${back}${dir}</div>
|
||||
<div class="files" style="background: var(--base);flex: 1;border-radius: 10px;display: flex;flex-direction: column;"></div>
|
||||
`
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB |
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue