Skip to content

Commit

Permalink
优化脚本命令
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Dec 11, 2021
1 parent dbd99e1 commit 72e97d5
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 89 deletions.
6 changes: 4 additions & 2 deletions cmd
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,12 @@ if [ $# -gt 0 ]; then
[ -z "$(env_get APP_KEY)" ] && run_exec php "php artisan key:generate"
run_exec php "php artisan migrate --seed"
run_exec php "php bin/run --mode=prod"
docker-compose up -d
res=`run_exec mariadb "sh /etc/mysql/repassword.sh"`
docker-compose stop
docker-compose start
echo -e "${OK} ${GreenBG} 安装完成 ${Font}"
echo -e "地址: http://${GreenBG}127.0.0.1:$(env_get APP_PORT)${Font}"
run_exec mariadb "sh /etc/mysql/repassword.sh"
echo -e "$res"
elif [[ "$1" == "update" ]]; then
shift 1
git fetch --all
Expand Down
204 changes: 117 additions & 87 deletions resources/assets/sass/pages/page-file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -276,57 +276,67 @@
background-repeat: no-repeat;
background-size: contain;
margin-right: 8px;
background-image: url("../images/file/other.svg");
}
&.upload:before {
background-image: url("../images/file/upload.svg");
&.archive:before {
background-image: url("../images/file/archive.svg");
}
&.updir:before {
background-image: url("../images/file/updir.svg");
&.cad:before {
background-image: url("../images/file/cad.svg");
}
&.folder:before {
background-image: url("../images/file/folder.svg");
&.code:before {
background-image: url("../images/file/code.svg");
}
&.document:before {
background-image: url("../images/file/document.svg");
}
&.mind:before {
background-image: url("../images/file/mind.svg");
}
&.sheet:before {
background-image: url("../images/file/sheet.svg");
&.excel:before {
background-image: url("../images/file/excel.svg");
}
&.flow:before {
background-image: url("../images/file/flow.svg");
}
&.word:before {
background-image: url("../images/file/word.svg");
&.folder:before {
background-image: url("../images/file/folder.svg");
}
&.excel:before {
background-image: url("../images/file/excel.svg");
&.media:before {
background-image: url("../images/file/media.svg");
}
&.mind:before {
background-image: url("../images/file/mind.svg");
}
&.ofd:before {
background-image: url("../images/file/ofd.svg");
}
&.pdf:before {
background-image: url("../images/file/pdf.svg");
}
&.picture:before {
background-image: url("../images/file/picture.svg");
}
&.ppt:before {
background-image: url("../images/file/ppt.svg");
}
&.compress:before {
background-image: url("../images/file/compress.svg");
&.sheet:before {
background-image: url("../images/file/sheet.svg");
}
&.image:before {
background-image: url("../images/file/image.svg");
&.tif:before {
background-image: url("../images/file/tif.svg");
}
&.media:before {
background-image: url("../images/file/media.svg");
&.txt:before {
background-image: url("../images/file/txt.svg");
}
&.pdf:before {
background-image: url("../images/file/pdf.svg");
&.updir:before {
background-image: url("../images/file/updir.svg");
}
&.text:before {
background-image: url("../images/file/text.svg");
&.upload:before {
background-image: url("../images/file/upload.svg");
}
&.cad:before {
background-image: url("../images/file/cad.svg");
&.word:before {
background-image: url("../images/file/word.svg");
}
&.other:before {
background-image: url("../images/file/other.svg");
&.wps:before {
background-image: url("../images/file/wps.svg");
}
}
.taskfont {
Expand Down Expand Up @@ -415,6 +425,7 @@
background-size: contain;
margin-top: 12px;
position: relative;
background-image: url("../images/file/other.svg");
.share-icon,
.share-avatar {
position: absolute;
Expand All @@ -438,56 +449,65 @@
&.shear {
opacity: 0.38;
}
&.upload .file-icon {
background-image: url("../images/file/upload.svg");
&.archive .file-icon {
background-image: url("../images/file/archive.svg");
}
&.updir .file-icon {
background-image: url("../images/file/updir.svg");
&.cad .file-icon {
background-image: url("../images/file/cad.svg");
}
&.folder .file-icon {
background-image: url("../images/file/folder.svg");
&.code .file-icon {
background-image: url("../images/file/code.svg");
}
&.document .file-icon {
background-image: url("../images/file/document.svg");
}
&.mind .file-icon {
background-image: url("../images/file/mind.svg");
}
&.sheet .file-icon {
background-image: url("../images/file/sheet.svg");
&.excel .file-icon {
background-image: url("../images/file/excel.svg");
}
&.flow .file-icon {
background-image: url("../images/file/flow.svg");
}
&.word .file-icon {
background-image: url("../images/file/word.svg");
&.folder .file-icon {
background-image: url("../images/file/folder.svg");
}
&.excel .file-icon {
background-image: url("../images/file/excel.svg");
&.media .file-icon {
background-image: url("../images/file/media.svg");
}
&.mind .file-icon {
background-image: url("../images/file/mind.svg");
}
&.ofd .file-icon {
background-image: url("../images/file/ofd.svg");
}
&.pdf .file-icon {
background-image: url("../images/file/pdf.svg");
}
&.picture .file-icon {
background-image: url("../images/file/picture.svg");
}
&.ppt .file-icon {
background-image: url("../images/file/ppt.svg");
}
&.compress .file-icon {
background-image: url("../images/file/compress.svg");
&.sheet .file-icon {
background-image: url("../images/file/sheet.svg");
}
&.image .file-icon {
background-image: url("../images/file/image.svg");
&.tif .file-icon {
background-image: url("../images/file/tif.svg");
}
&.media .file-icon {
background-image: url("../images/file/media.svg");
&.txt .file-icon {
background-image: url("../images/file/txt.svg");
}
&.pdf .file-icon {
background-image: url("../images/file/pdf.svg");
&.updir .file-icon {
background-image: url("../images/file/updir.svg");
}
&.text .file-icon {
background-image: url("../images/file/text.svg");
&.upload .file-icon {
background-image: url("../images/file/upload.svg");
}
&.cad .file-icon {
background-image: url("../images/file/cad.svg");
&.word .file-icon {
background-image: url("../images/file/word.svg");
}
&.other .file-icon {
background-image: url("../images/file/other.svg");
&.wps .file-icon {
background-image: url("../images/file/wps.svg");
}
&.highlight {
background-color: #f4f5f7;
Expand Down Expand Up @@ -533,57 +553,67 @@
background-repeat: no-repeat;
background-size: contain;
margin-right: 8px;
background-image: url("../images/file/other.svg");
}
&.upload:before {
background-image: url("../images/file/upload.svg");
&.archive:before {
background-image: url("../images/file/archive.svg");
}
&.updir:before {
background-image: url("../images/file/updir.svg");
&.cad:before {
background-image: url("../images/file/cad.svg");
}
&.folder:before {
background-image: url("../images/file/folder.svg");
&.code:before {
background-image: url("../images/file/code.svg");
}
&.document:before {
background-image: url("../images/file/document.svg");
}
&.mind:before {
background-image: url("../images/file/mind.svg");
}
&.sheet:before {
background-image: url("../images/file/sheet.svg");
&.excel:before {
background-image: url("../images/file/excel.svg");
}
&.flow:before {
background-image: url("../images/file/flow.svg");
}
&.word:before {
background-image: url("../images/file/word.svg");
&.folder:before {
background-image: url("../images/file/folder.svg");
}
&.excel:before {
background-image: url("../images/file/excel.svg");
&.media:before {
background-image: url("../images/file/media.svg");
}
&.mind:before {
background-image: url("../images/file/mind.svg");
}
&.ofd:before {
background-image: url("../images/file/ofd.svg");
}
&.pdf:before {
background-image: url("../images/file/pdf.svg");
}
&.picture:before {
background-image: url("../images/file/picture.svg");
}
&.ppt:before {
background-image: url("../images/file/ppt.svg");
}
&.compress:before {
background-image: url("../images/file/compress.svg");
&.sheet:before {
background-image: url("../images/file/sheet.svg");
}
&.image:before {
background-image: url("../images/file/image.svg");
&.tif:before {
background-image: url("../images/file/tif.svg");
}
&.media:before {
background-image: url("../images/file/media.svg");
&.txt:before {
background-image: url("../images/file/txt.svg");
}
&.pdf:before {
background-image: url("../images/file/pdf.svg");
&.updir:before {
background-image: url("../images/file/updir.svg");
}
&.text:before {
background-image: url("../images/file/text.svg");
&.upload:before {
background-image: url("../images/file/upload.svg");
}
&.cad:before {
background-image: url("../images/file/cad.svg");
&.word:before {
background-image: url("../images/file/word.svg");
}
&.other:before {
background-image: url("../images/file/other.svg");
&.wps:before {
background-image: url("../images/file/wps.svg");
}
}
}
Expand Down
1 change: 1 addition & 0 deletions resources/assets/statics/public/images/file/other.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 72e97d5

Please sign in to comment.