chore: opt page style
This commit is contained in:
+3
-2
@@ -37,6 +37,7 @@ internal/static/dist/
|
|||||||
# Config (sensitive)
|
# Config (sensitive)
|
||||||
configs/config.local.json
|
configs/config.local.json
|
||||||
|
|
||||||
|
# Python
|
||||||
|
__pycache__/
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
*.log
|
|
||||||
*.tmp
|
|
||||||
|
|||||||
@@ -53,6 +53,11 @@ func (fc *FileController) GetFileTree(c *gin.Context) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 过滤 __pycache__ 文件夹
|
||||||
|
if d.IsDir() && d.Name() == "__pycache__" {
|
||||||
|
return filepath.SkipDir
|
||||||
|
}
|
||||||
|
|
||||||
relPath, _ := filepath.Rel(fc.workDir, path)
|
relPath, _ := filepath.Rel(fc.workDir, path)
|
||||||
parts := strings.Split(relPath, string(filepath.Separator))
|
parts := strings.Split(relPath, string(filepath.Separator))
|
||||||
|
|
||||||
@@ -234,7 +239,7 @@ func (fc *FileController) RenameFile(c *gin.Context) {
|
|||||||
// UploadArchive handles archive file upload and extraction
|
// UploadArchive handles archive file upload and extraction
|
||||||
func (fc *FileController) UploadArchive(c *gin.Context) {
|
func (fc *FileController) UploadArchive(c *gin.Context) {
|
||||||
targetDir := c.PostForm("path")
|
targetDir := c.PostForm("path")
|
||||||
|
|
||||||
file, err := c.FormFile("file")
|
file, err := c.FormFile("file")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.BadRequest(c, "请选择文件")
|
utils.BadRequest(c, "请选择文件")
|
||||||
|
|||||||
@@ -410,7 +410,8 @@ onUnmounted(() => {
|
|||||||
formatOnPaste: true,
|
formatOnPaste: true,
|
||||||
tabSize: 4,
|
tabSize: 4,
|
||||||
insertSpaces: true,
|
insertSpaces: true,
|
||||||
readOnly: !isEditMode
|
readOnly: !isEditMode,
|
||||||
|
domReadOnly: !isEditMode
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
<div v-else class="h-full flex items-center justify-center text-muted-foreground text-sm">
|
<div v-else class="h-full flex items-center justify-center text-muted-foreground text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user