mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
90768437c8
commit
8006fcc0a5
77
src/main.js
77
src/main.js
@ -48,3 +48,80 @@ Volcanos({river: {
|
|||||||
system: {name: "系统 system", icon: "bi bi-ubuntu", index: ["dir", "trash", "host", "port", "xterm", "mirrors", "runtime", "log.debug"]},
|
system: {name: "系统 system", icon: "bi bi-ubuntu", index: ["dir", "trash", "host", "port", "xterm", "mirrors", "runtime", "log.debug"]},
|
||||||
}},
|
}},
|
||||||
}})
|
}})
|
||||||
|
|
||||||
|
var icon = {
|
||||||
|
CHEVRON_DOWN: "bi bi-chevron-down", SEARCH: "bi bi-search", TERMINAL: "bi bi-terminal",
|
||||||
|
SUN: "bi bi-sun", MOON: "bi bi-moon-stars",
|
||||||
|
|
||||||
|
search: "bi bi-search", favor: "bi bi-star",
|
||||||
|
more: "bi bi-three-dots-vertical", actions: "bi bi-three-dots",
|
||||||
|
preview: "bi bi-window-stack", show: "bi bi-window-stack",
|
||||||
|
display: "bi bi-window-desktop", exec: "bi bi-window-desktop",
|
||||||
|
full: "bi bi-arrows-fullscreen",
|
||||||
|
open: "bi bi-box-arrow-up-right",
|
||||||
|
qrcode: "bi bi-qr-code",
|
||||||
|
chat: "bi bi-chat-dots", help: "bi bi-question-square", doc: "bi bi-question-square",
|
||||||
|
modify: "bi bi-pencil-square", remove: "bi bi-trash",
|
||||||
|
enable: "bi bi-toggle-off", disable: "bi bi-toggle-on",
|
||||||
|
start: "bi bi-play-circle", stop: "bi bi-stop-circle",
|
||||||
|
|
||||||
|
sso: "bi bi-shield-check", login: "bi bi-person-check",
|
||||||
|
pull: "bi bi-cloud-download", push: "bi bi-cloud-upload",
|
||||||
|
upload: "bi bi-box-arrow-in-up", download: "bi bi-box-arrow-down",
|
||||||
|
record1: "bi bi-images", record2: "bi bi-record-circle", record: "bi bi-record-circle",
|
||||||
|
"export": "bi bi-box-arrow-up", "import": "bi bi-box-arrow-in-down",
|
||||||
|
"begin_time": "bi bi-clock-history",
|
||||||
|
"end_time": "bi bi-clock-history",
|
||||||
|
|
||||||
|
path: "bi bi-folder2", file: "bi bi-file-earmark-text", line: "bi bi-sort-numeric-down",
|
||||||
|
key: "bi bi-hash", hash: "bi bi-hash", zone: "bi bi-diagram-3", id: "bi bi-sort-numeric-down",
|
||||||
|
branch: "bi bi-diagram-3", commit: "bi bi-hash",
|
||||||
|
// message: "bi bi-info-square",
|
||||||
|
message: "bi bi-wechat",
|
||||||
|
domain: "bi bi-globe", "client.name": "bi bi-globe",
|
||||||
|
machine: "bi bi-pc-display", port: "bi bi-hash",
|
||||||
|
arch: "bi bi-cpu", os: "bi bi-ubuntu",
|
||||||
|
role: "bi bi-person-square",
|
||||||
|
username: "bi bi-person-gear",
|
||||||
|
|
||||||
|
version: "bi bi-tags",
|
||||||
|
compile: "bi bi-tools",
|
||||||
|
publish: "bi bi-send-check",
|
||||||
|
upgrade: "bi bi-rocket-takeoff",
|
||||||
|
install: "bi bi-box-arrow-in-down",
|
||||||
|
runtime: "bi bi-info-square",
|
||||||
|
template: "bi bi-file-earmark-medical",
|
||||||
|
binary: "bi bi-disc",
|
||||||
|
title: "bi bi-textarea-t",
|
||||||
|
// name: "bi bi-textarea-t",
|
||||||
|
// name: "bi bi-globe",
|
||||||
|
name: "bi bi-sort-alpha-down",
|
||||||
|
type: "bi bi-card-list",
|
||||||
|
send: "bi bi-send-check",
|
||||||
|
nodename: "bi bi-globe",
|
||||||
|
|
||||||
|
portal: "bi bi-globe",
|
||||||
|
desktop: "bi bi-window-desktop",
|
||||||
|
admin: "bi bi-window-sidebar",
|
||||||
|
dream: "bi bi-box",
|
||||||
|
space: "bi bi-box",
|
||||||
|
store: "bi bi-shop",
|
||||||
|
|
||||||
|
word: "bi bi-book",
|
||||||
|
repos: "bi bi-git",
|
||||||
|
vimer: "bi bi-bug",
|
||||||
|
build: "bi bi-tools",
|
||||||
|
xterm: "bi bi-terminal",
|
||||||
|
cmds: "bi bi-terminal",
|
||||||
|
reboot: "bi bi-bootstrap-reboot",
|
||||||
|
|
||||||
|
vendor: "bi bi-box-arrow-up-right",
|
||||||
|
configs: "bi bi-gear", config: "bi bi-gear", conf: "bi bi-gear", logs: "bi bi-calendar4-week",
|
||||||
|
tag: "bi bi-tags", save: "bi bi-floppy", trash: "bi bi-trash",
|
||||||
|
top: "bi bi-globe", main: "bi bi-house-door",
|
||||||
|
|
||||||
|
localCreate: "bi bi-cloud-download",
|
||||||
|
|
||||||
|
notifications: "bi bi-chat-right-text",
|
||||||
|
play: "bi bi-play-circle", app: "bi bi-box-arrow-down-left",
|
||||||
|
}
|
||||||
|
17
src/main.sh
17
src/main.sh
@ -1,5 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
prepare_package() {
|
||||||
|
case "$(uname)" in
|
||||||
|
Darwin) xcode-select --install 2>/dev/null ;;
|
||||||
|
Linux) if [ `whoami` != "root" ]; then return; fi
|
||||||
|
if cat /etc/os-release|grep alpine &>/dev/null; then
|
||||||
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencent.com/g' /etc/apk/repositories && apk update
|
||||||
|
TZ=Asia/Shanghai; apk add tzdata && cp /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if cat /etc/os-release|grep "CentOS-8"&>/dev/null; then
|
||||||
|
minorver=8.5.2111; sed -e "s|^mirrorlist=|#mirrorlist=|g" -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.aliyun.com/centos-vault/$minorver|g" -i.bak /etc/yum.repos.d/CentOS-*.repo && yum update -y
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
main() {
|
main() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
app) shift # 生产环境
|
app) shift # 生产环境
|
||||||
@ -8,7 +23,7 @@ main() {
|
|||||||
prepare_ice && while true; do ./bin/ice.bin serve start dev dev "$@" && break; done
|
prepare_ice && while true; do ./bin/ice.bin serve start dev dev "$@" && break; done
|
||||||
;;
|
;;
|
||||||
dev) shift # 开发环境
|
dev) shift # 开发环境
|
||||||
prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare
|
prepare_package; prepare_system; require miss.sh; [ -f ~/.gitconfig ] || ish_dev_git_prepare
|
||||||
git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/"
|
git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/"
|
||||||
git clone $ctx_repos ${ctx_repos##*/}
|
git clone $ctx_repos ${ctx_repos##*/}
|
||||||
cd ${ctx_repos##*/} && source etc/miss.sh && ish_miss_serve_log dev dev "$@"
|
cd ${ctx_repos##*/} && source etc/miss.sh && ish_miss_serve_log dev dev "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user