mirror of
https://github.com/khairul169/honey.git
synced 2025-04-28 14:59:32 +07:00
27 lines
527 B
JavaScript
27 lines
527 B
JavaScript
import App from "../../App";
|
|
|
|
export default class Drawer {
|
|
constructor() {
|
|
this.app = new App()
|
|
this.config = this.app.config
|
|
this.init()
|
|
}
|
|
|
|
init() {
|
|
this.importApps()
|
|
}
|
|
|
|
importApps() {
|
|
let apps = this.config.getServices()
|
|
let applist = document.getElementById("app-list");
|
|
for (let app of apps) {
|
|
applist.innerHTML += `<a class="box" href="${app.href}">
|
|
<img src="${app.icon}">
|
|
<div>
|
|
<div class="name">${app.name}</div>
|
|
<div class="desc">${app.desc}</div>
|
|
</div>
|
|
</a>`
|
|
}
|
|
}
|
|
} |