[⚡] General Update: Use HTML files for some apps that don't require variables
All in the title. need to add css for the html tho
This commit is contained in:
parent
570f025515
commit
a04467d93d
4 changed files with 28 additions and 3 deletions
12
src/apps/html/music.html
Normal file
12
src/apps/html/music.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Flow v2 App - Music</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Music</h1>
|
||||
<p>TODO: Music</p>
|
||||
</body>
|
||||
</html>
|
||||
12
src/apps/html/settings.html
Normal file
12
src/apps/html/settings.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Flow v2 App - Settings</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Settings</h1>
|
||||
<p>TODO: Settings</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -14,7 +14,8 @@ export default class MusicApp implements App {
|
|||
icon
|
||||
})
|
||||
|
||||
win.content.innerHTML = 'hi'
|
||||
// TODO: add css styling (in /apps/html)
|
||||
win.content.innerHTML = '<iframe src="/src/apps/html/music.html></iframe>'
|
||||
|
||||
return win
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ export default class SettingsApp implements App {
|
|||
})
|
||||
|
||||
win.content.style.padding = '10px'
|
||||
// TODO: add css styling
|
||||
win.content.innerHTML = `
|
||||
<h1>Settings</h1>
|
||||
<p>owo2</p>
|
||||
win.content.innerHTML = '<iframe src="/src/apps/html/settings.html></iframe>'
|
||||
`
|
||||
|
||||
return win
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue