haoshoku 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Dashy Service
|
|
2
|
+
|
|
3
|
+
This directory contains the Docker setup for [Dashy](https://dashy.to/), a self-hosted personal dashboard.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- Docker
|
|
8
|
+
- Docker Compose
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
1. Start the service:
|
|
13
|
+
```bash
|
|
14
|
+
docker compose up -d
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. Access the dashboard at `http://localhost:8080`.
|
|
18
|
+
|
|
19
|
+
## Configuration
|
|
20
|
+
|
|
21
|
+
Edit `conf.yml` to customize your dashboard. See [Dashy Documentation](https://dashy.to/docs/configuring) for more details.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
pageTitle: My Dashboard
|
|
2
|
+
sections:
|
|
3
|
+
- name: Getting Started
|
|
4
|
+
items:
|
|
5
|
+
- title: GitHub
|
|
6
|
+
description: Dashy source code
|
|
7
|
+
url: https://github.com/Lissy93/dashy
|
|
8
|
+
icon: fab fa-github
|
|
9
|
+
- title: Documentation
|
|
10
|
+
description: Dashy docs
|
|
11
|
+
url: https://dashy.to/docs
|
|
12
|
+
icon: fas fa-book
|
|
@@ -29,7 +29,10 @@ async function promptUser(message, initial = false) {
|
|
|
29
29
|
async function installEssentials() {
|
|
30
30
|
log.info("Updating system and installing essentials...");
|
|
31
31
|
await runCommand("sudo apt update && sudo apt upgrade -y");
|
|
32
|
-
|
|
32
|
+
// Split installation to ensure core tools are installed even if optional ones fail
|
|
33
|
+
await runCommand("sudo apt install -y curl wget git vim ufw fail2ban");
|
|
34
|
+
// Try installing software-properties-common separately as it might not be available on all minimal images
|
|
35
|
+
await runCommand("sudo apt install -y software-properties-common", { check: false });
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
async function setupSsh() {
|
|
@@ -56,8 +59,11 @@ async function setupSsh() {
|
|
|
56
59
|
async function configureFishShell() {
|
|
57
60
|
if (!(await commandExists("fish"))) {
|
|
58
61
|
log.info("Installing Fish shell...");
|
|
59
|
-
|
|
60
|
-
await
|
|
62
|
+
// Only try adding PPA if software-properties-common was installed successfully
|
|
63
|
+
if (await commandExists("add-apt-repository")) {
|
|
64
|
+
await runCommand("sudo apt-add-repository -y ppa:fish-shell/release-3");
|
|
65
|
+
await runCommand("sudo apt update");
|
|
66
|
+
}
|
|
61
67
|
await runCommand("sudo apt install -y fish");
|
|
62
68
|
}
|
|
63
69
|
|
|
@@ -77,8 +83,10 @@ async function configureFishShell() {
|
|
|
77
83
|
// Ensure fish config dir exists
|
|
78
84
|
fs.mkdirSync(FISH_CONFIG_DIR, { recursive: true });
|
|
79
85
|
|
|
86
|
+
// Install Fisher itself first
|
|
87
|
+
await runCommand('fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher"');
|
|
88
|
+
|
|
80
89
|
const fisherPlugins = [
|
|
81
|
-
"jorgebucaran/fisher",
|
|
82
90
|
"meaningful-ooo/sponge",
|
|
83
91
|
"jorgebucaran/nvm.fish",
|
|
84
92
|
"franciscolourenco/done",
|