Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 文件在线预览支持更多的文件类型(前端) #2765 #2875

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
7e93bdb
feat: 文件在线预览支持更多的文件类型 #2765
lannoy0523 Dec 24, 2024
b1d844a
Merge branch 'TencentBlueKing:master' into issue_2765
lannoy0523 Dec 26, 2024
a9ef42f
feat: 文件在线预览支持更多的文件类型 #2765
lannoy0523 Dec 26, 2024
4dbf4f4
feat: 文件在线预览支持更多的文件类型 #2765
lannoy0523 Jan 6, 2025
e9c44b6
Merge branch 'TencentBlueKing:master' into issue_2765
lannoy0523 Jan 10, 2025
04bb06b
Merge branch 'TencentBlueKing:master' into issue_2765
lannoy0523 Jan 10, 2025
04aefa3
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 16, 2025
e5ba5ca
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 16, 2025
c5dda61
Merge remote-tracking branch 'fork/issue_2765' into issue_2765
lannoy0523 Jan 16, 2025
0420a47
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 16, 2025
6a18f29
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 17, 2025
1c5b45c
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 17, 2025
954deb8
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 17, 2025
7b5c64e
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 20, 2025
b8eefae
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 20, 2025
5f6cc51
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 20, 2025
e841061
feat: 文件在线预览支持更多的文件类型(前端) #2765
lannoy0523 Jan 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions src/frontend/devops-repository/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<script src="/ui/libs/vuex.min.js"></script>
<script src="/ui/libs/vue-router.min.js"></script>
<script src="/ui/libs/jsencrypt.min.js"></script>
<script src="/ui/watermark.js"></script>
<link rel='preload' as='script' href="/ui/libs/bk-magic-vue/bk-magic-vue.min.js" />
<link href="/ui/libs/bk-magic-vue/bk-magic-vue.min.css" rel="stylesheet">
<link href="/ui/iconfont.css" rel="stylesheet">
Expand Down Expand Up @@ -167,6 +168,31 @@
+ '</div>'
)
}

function initWaterMark (param) {
watermark.init({
watermark_txt: param.watermarkTxt,
watermark_x: 0,
watermark_y: 0,
watermark_rows: 0,
watermark_cols: 0,
watermark_x_space: Number(param.watermarkXSpace),
watermark_y_space: Number(param.watermarkYSpace),
watermark_font: param.watermarkFont,
watermark_fontsize: param.watermarkFontsize,
watermark_color: param.watermarkColor,
watermark_alpha: param.watermarkAlpha,
watermark_width: Number(param.watermarkWidth),
watermark_height: Number(param.watermarkHeight),
watermark_angle: Number(param.watermarkAngle)
})
}

function resetWaterMark() {
watermark.init({
watermark_txt: ' '
})
}
</script>
<script src="/ui/libs/bk-magic-vue/bk-magic-vue.min.js"></script>
</body>
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/devops-repository/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
"@vue-office/excel": "^1.7.11",
"@vue-office/pdf": "^2.0.2",
"@vue/composition-api": "^1.7.2",
"@wolf-table/table": "^0.0.1",
"axios": "^1.7.7",
"js-base64": "^3.7.7",
"js-cookie": "^2.2.1",
"marked": "^4.3.0",
"papaparse": "^5.5.1",
"qrcode": "^1.5.0",
"vue-demi": "^0.14.6",
"vue-i18n": "^8.18.1",
Expand Down
Loading
Loading