Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 479fb9d

Browse files
committed
瀏覽匯出資料
1 parent ce85561 commit 479fb9d

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

TLHCScore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@ exports.getGroupPage = async function (cookie, res) {
359359
system: true
360360
})
361361
}
362-
// ------------------- 檢視 CSV
362+
// ------------------- 瀏覽匯出資料
363363
exports.getCSV = function (cookie, res) {
364364
res.render('s-csvtohtml', {
365-
title: 'ㄉㄌㄐㄕ - 瀏覽檔案',
365+
title: 'ㄉㄌㄐㄕ - 瀏覽匯出資料',
366366
system: true, user: true
367367
})
368368
}

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ app.get('/tlhc/group/', (req, res) => {
144144
res.redirect("/tlhc/login/")
145145
}
146146
});
147-
//------- 檢視 CSV
148-
147+
//------- 瀏覽匯出資料
149148
app.get('/tlhc/csv/', (req, res) => {
150149
if (req.session.tlhc) {
151150
tlhcScore.getCSV(req.session.tlhc, res)

views/s-csvtohtml.pug

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ style #table.gs.scroll table tr:last-child,#table.gs.scroll table tr:nth-last-ch
88
#uploader.ts.basic.dashed.clickable.slate.no.earlyspring
99
input#upload(type='file')
1010
i.upload.symbol.icon
11-
span.header 上傳檔案
12-
span.description 將檔案拖拉至此處進行上傳
11+
span.header 瀏覽匯出資料
12+
span.description 將檔案拖拉至此處或是點擊此處來選取檔案
1313
br
1414
#table.gs.scroll
1515

@@ -22,7 +22,6 @@ script.
2222
reader.onload = function(e){
2323
var csv = e.target.result
2424
csvToHtml(csv, $('#table'))
25-
console.log(csv)
2625
}
2726

2827
reader.readAsText(file);

0 commit comments

Comments
 (0)