2023-01-23 00:07:07 -05:00
|
|
|
---
|
2023-02-13 13:56:29 -05:00
|
|
|
import { APP } from '../config'
|
|
|
|
import { SIDEBARTOP, SIDEBARBOTTOM } from '../tabs'
|
2023-01-23 00:07:07 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
<div class="sidebar">
|
2023-02-24 03:57:50 -05:00
|
|
|
<div class="drag-area"></div>
|
2023-02-01 14:10:09 -05:00
|
|
|
<div class="sidebar-header">
|
|
|
|
<img src="./logo.png">
|
|
|
|
{APP.map(item => (<p>{item.name}</p>))}
|
|
|
|
</div>
|
2023-01-23 00:07:07 -05:00
|
|
|
<div class="sidebar-top">
|
2023-02-01 14:10:09 -05:00
|
|
|
{SIDEBARTOP.map(item => (
|
2023-02-17 18:03:03 -05:00
|
|
|
<li onclick="ws()" data-tab={item.text} class={item.default ? "active" : null}>
|
2023-02-01 14:10:09 -05:00
|
|
|
<i class={item.icon}></i>
|
|
|
|
<p>{item.text}</p>
|
2023-02-17 18:03:03 -05:00
|
|
|
{item.navigation ?
|
|
|
|
<div class="loading-indicator"><i class="fa-solid fa-circle-notch fa-spin"></i></div>
|
2023-02-01 14:10:09 -05:00
|
|
|
<div id="Tab" class="webview-navigation">
|
|
|
|
<button onclick='document.querySelector(".active webview").goBack()'><i class="fa-solid fa-arrow-left-long"></i></button>
|
|
|
|
<button onclick='document.querySelector(".active webview").goForward()'><i class="fa-solid fa-arrow-right-long"></i></button>
|
|
|
|
<button onclick='document.querySelector(".active webview").reload()'><i class="fa-solid fa-arrow-rotate-right"></i></button>
|
2023-02-09 17:28:07 -05:00
|
|
|
</div> : null}
|
2023-02-01 14:10:09 -05:00
|
|
|
</li>
|
|
|
|
))}
|
2023-01-23 00:07:07 -05:00
|
|
|
</div>
|
|
|
|
<div class="sidebar-bottom">
|
2023-02-11 15:56:29 -05:00
|
|
|
<!-- Notifications are inserted in automatically when you push notifications with Pushy. See the Pushy section in the main process. -->
|
2023-02-01 14:10:09 -05:00
|
|
|
{SIDEBARBOTTOM.map(item => (
|
2023-02-07 16:46:14 -05:00
|
|
|
<li data-tab={item.page}>
|
2023-02-10 17:33:41 -05:00
|
|
|
<i class={item.icon}></i>
|
2023-02-01 14:10:09 -05:00
|
|
|
<p>{item.text}</p>
|
|
|
|
</li>
|
|
|
|
))}
|
2023-01-23 00:07:07 -05:00
|
|
|
</div>
|
|
|
|
</div>
|