Skip to content

Commit

Permalink
release: v0.3.0 (#101)
Browse files Browse the repository at this point in the history
* feat: remove validation to backend
  • Loading branch information
Tohrusky authored Jan 31, 2025
1 parent cdd2789 commit 555e6d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "FinalRip-dashboard",
"productName": "FinalRip-dashboard",
"version": "0.2.1",
"version": "0.3.0",
"description": "A simple dashboard for FinalRip",
"author": "Tohrusky",
"homepage": "https://github.com/TensoRaws/FinalRip-dashboard",
Expand Down
7 changes: 4 additions & 3 deletions src/views/Code.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function handleUpdateFFmpegParamTemplate(value: string, option: SelectOption): v
console.log('fetching template content: ' + value)
getGitHubTemplateContent(option)
.then((res) => {
encodeParam.value = res
// if the content ends with line break or space, remove them
encodeParam.value = res.trimEnd()
})
.catch((err) => {
console.error(err)
Expand All @@ -67,9 +68,9 @@ function handleUpdateFFmpegParamTemplate(value: string, option: SelectOption): v
function handleEncodeParamChange(value: string): void {
console.log('encode param changed: ' + value)
// 如果输入的字符串里面包含了换行符,提醒用户
if (value.includes('\n') || value.includes('\r') || value.includes('\r\n')) {
if (value.includes('\n') || value.includes('\r')) {
notification['error']({
title: 'Encode param contains line breaks!!!!!',
title: 'Encode Param cannot contain line break!!!',
content: 'Please remove line breaks',
})
}
Expand Down

0 comments on commit 555e6d6

Please sign in to comment.