1
0

(refactor) Remove env files and scripts, update config files

This commit is contained in:
pooneyy
2025-09-04 00:36:13 +08:00
parent 0906288534
commit 89fbe837f1
1566 changed files with 1159 additions and 15329 deletions

View File

@@ -1,68 +0,0 @@
server:
port: 8080
assets-path: /app/assets
pages:
- name: Home
columns:
- size: small
widgets:
- type: calendar
- type: rss
limit: 10
collapse-after: 3
cache: 3h
feeds:
- url: https://ciechanow.ski/atom.xml
- url: https://www.joshwcomeau.com/rss.xml
title: Josh Comeau
- url: https://samwho.dev/rss.xml
- url: https://awesomekling.github.io/feed.xml
- url: https://ishadeed.com/feed.xml
title: Ahmad Shadeed
- type: twitch-channels
channels:
- theprimeagen
- cohhcarnage
- christitustech
- blurbs
- asmongold
- jembawls
- size: full
widgets:
- type: hacker-news
- type: videos
channels:
- UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
- UCv6J_jJa8GJqFwQNgNrMuww # ServeTheHome
- UCOk-gHyjcWZNj3Br4oxwh0A # Techno Tim
- type: reddit
subreddit: selfhosted
- size: small
widgets:
- type: weather
location: London, United Kingdom
- type: markets
markets:
- symbol: SPY
name: S&P 500
- symbol: BTC-USD
name: Bitcoin
- symbol: NVDA
name: NVIDIA
- symbol: AAPL
name: Apple
- symbol: MSFT
name: Microsoft
- symbol: GOOGL
name: Google
- symbol: AMD
name: AMD
- symbol: RDDT
name: Reddit

View File

@@ -1,106 +0,0 @@
theme:
background-color: 225 14 15
primary-color: 157 47 65
contrast-multiplier: 1.1
pages:
- name: Home
columns:
- size: small
widgets:
- type: clock
hour-format: 24h
timezones:
- timezone: Etc/UTC
label: MapleStory Game Time
- timezone: Asia/Shanghai
label: Shanghai
- timezone: America/New_York
label: New York
- type: calendar
- type: twitch-channels
channels:
- theprimeagen
- cohhcarnage
- christitustech
- blurbs
- asmongold
- jembawls
- size: full
widgets:
- type: hacker-news
- type: rss
limit: 10
collapse-after: 3
cache: 3h
style: detailed-list
feeds:
- url: https://supertechfans.com/cn/index.xml
title: HackerNews
- type: videos
channels:
- UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
- UCv6J_jJa8GJqFwQNgNrMuww # ServeTheHome
- UCOk-gHyjcWZNj3Br4oxwh0A # Techno Tim
limit: 25
collapse-after-rows: 2
style: grid-cards
- type: reddit
subreddit: selfhosted
- size: small
widgets:
- type: weather
location: Beijing, China
- type: bookmarks
groups:
- links:
- title: Google
url: https://google.com/
- title: Github
url: https://github.com/
- title: Hostloc
url: https://hostloc.com/
- title: Nodeseek
url: https://www.nodeseek.com/
- title: Linuxdo
url: https://linux.do/
- title: V2ex
url: https://www.v2ex.com/
- title: Entertainment
color: 10 70 50
links:
- title: Bilibli
url: https://www.bilibili.com/
- title: YouTube
url: https://www.youtube.com/
- title: Netflix
url: https://www.netflix.com/
- title: Disney+
url: https://www.disneyplus.com/
- type: markets
markets:
- symbol: SPY
name: S&P 500
- symbol: BTC-USD
name: Bitcoin
- symbol: NVDA
name: NVIDIA
- symbol: AAPL
name: Apple
- symbol: MSFT
name: Microsoft
- symbol: GOOGL
name: Google
- symbol: AMD
name: AMD
- symbol: RDDT
name: Reddit

View File

@@ -1,2 +0,0 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -1,2 +0,0 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View File

@@ -1,22 +0,0 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
mkdir -p "$GLANCE_ROOT_PATH"
mkdir -p "$GLANCE_ROOT_PATH/app"
cp ./conf/glance.yml "$GLANCE_ROOT_PATH/app/glance.yml"
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -1,10 +0,0 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@@ -1,24 +0,0 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
sed -i '/^GLOBAL_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
mkdir -p "$GLANCE_ROOT_PATH"
mkdir -p "$GLANCE_ROOT_PATH/app"
if [ ! -f "$GLANCE_ROOT_PATH/app/glance.yml" ]; then
cp ./conf/glance.yml "$GLANCE_ROOT_PATH/app/glance.yml"
fi
echo "Check Finish."
else
echo "Error: .env file not found."
fi