From 7aa44be4de6c56ddf8666b9f5809ef006ca48b9e Mon Sep 17 00:00:00 2001 From: leo <3181538941@qq.com> Date: Thu, 23 Mar 2023 12:45:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B0=86=E5=89=8D=E7=AB=AF=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=8E=92=E5=BA=8F=E6=96=B9=E5=BC=8F=E4=BB=8E=20?= =?UTF-8?q?=E6=8C=89=E6=97=B6=E9=97=B4=E6=8E=92=E5=BA=8F=20=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20=E6=8C=89=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/index.js b/assets/js/index.js index cc45c87..75d8d56 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -390,8 +390,8 @@ function loadFileList(pathname) { cache: false, success: function (res) { res.files = _.sortBy(res.files, function (f) { - var weight = f.type == 'dir' ? 1000 : 1; - return -weight * f.mtime; + var weight = f.type == 'dir' ? 'A' : 'a'; // 排序依据 文件名前缀 + return weight + f.name.toUpperCase(); // 依据文件名 }) vm.files = res.files; vm.auth = res.auth; From 2b39f5667298dcfc55c6d125d1015caee817ed55 Mon Sep 17 00:00:00 2001 From: leo <3181538941@qq.com> Date: Mon, 17 Apr 2023 18:34:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Dockerfile=20=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index f0ee4bb..cbe108e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,7 @@ FROM golang:1.16 WORKDIR /app/gohttpserver ADD . /app/gohttpserver +RUN go env -w GOPROXY=https://goproxy.cn RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-X main.VERSION=docker' -o gohttpserver FROM debian:stretch