语法fixes

This commit is contained in:
Searchstars
2024-12-21 00:33:52 +08:00
parent 998deb7834
commit 96c8455d9d
10 changed files with 1939 additions and 2321 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
"@aiot-toolkit/jsc": "^1.0.7",
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"aiot-toolkit": "1.1.5-beta.1",
"aiot-toolkit": "2.0.3",
"babel-eslint": "^10.0.1",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
+3 -3
View File
@@ -1,6 +1,6 @@
<template>
<div class="reply">
<div class="userinfo" onclick="ShowTools({{reply}})">
<div class="userinfo" onclick="ShowTools(reply)">
<image class="userimg" style="lines: 1" src="{{reply.member.avatar}}@44w_44h" alt="/common/fullgray.png"></image>
<div style="flex-direction: column; justify-content: center">
<div class="rowbar">
@@ -14,11 +14,11 @@
</div>
</div>
</div>
<div class="replycontentdiv" onclick="ShowTools({{reply}})">
<div class="replycontentdiv" onclick="ShowTools(reply)">
<text class="replycontent">{{ reply.content.message }}</text>
</div>
<div class="bottom_bar">
<div class="reply_replybtn" onclick="Reply({{reply.rpid}})">
<div class="reply_replybtn" onclick="Reply(reply.rpid)">
<text class="reply_replytext">回复</text>
</div>
<div class="replystat" style="margin-left: 25px">
@@ -8,7 +8,7 @@
<switch-bar title="savedcontent.title" static></switch-bar>
<div style="flex-direction: column; align-items: center; width: 100%" for="{{content}}">
<div if="{{$item.type == 'article' ? true : false}}"
style="flex-direction: column; align-items: center; width: 100%" onclick="OpenArticle({{$item.id}})">
style="flex-direction: column; align-items: center; width: 100%" onclick="OpenArticle($item.id)">
<articleshow article="{{$item}}"></articleshow>
</div>
</div>
+3 -3
View File
@@ -4,17 +4,17 @@
<div class="page">
<switch-bar title="settings.title"></switch-bar>
<img src="/common/settings_version.png" @click="GoAbout"></img>
<div class="setbase" onclick="ClickCountSet({{countset_name[0]}})">
<div class="setbase" onclick="ClickCountSet(countset_name[0])">
<image class="seticon" src="/common/settings_freshtype.png"></image>
<text class="setext_small">{{ $t("settings.videoPushRelevance") }}</text>
<text class="countset_num">{{ fresh_type }}</text>
</div>
<div class="setbase" onclick="ClickCountSet({{countset_name[1]}})">
<div class="setbase" onclick="ClickCountSet(countset_name[1])">
<image class="seticon" src="/common/settings_homevidcount.png"></image>
<text class="setext_small">{{ $t("settings.videoPushCount") }}</text>
<text class="countset_num">{{ home_vid_count }}</text>
</div>
<div class="setbase" onclick="SwitchSet({{switchset_name[0]}})">
<div class="setbase" onclick="SwitchSet(switchset_name[0])">
<image class="seticon" src="/common/settings_enablefullanim.png"></image>
<text class="setext_small">{{ $t("settings.enableFullAnimation") }}</text>
<text class="countset_num">{{ enableFullAnimation ? "开" : "关" }}</text>
+1 -1
View File
@@ -7,7 +7,7 @@
</image>
<list style="width: 77%; height: 100%" class="folderlist">
<list-item type="folders" class="folder" for="{{folders}}"
onclick="GoFolderVideosPage({{$item.id}}, {{$item.media_count}})">
onclick="GoFolderVideosPage($item.id, $item.media_count)">
<image src="{{$item.cover}}@121w_68h" alt="/common/fullblack.png" class="folderimg"></image>
<div style="flex-direction: column">
<div class="foldername">
+1 -1
View File
@@ -5,7 +5,7 @@
<title-bar title="dmlist.title"></title-bar>
<image style="position: absolute; margin-top: 245px" if="{{anims.show_loading}}" src="{{anims.loading_src.value}}"></image>
<div class="dmlist" for="{{sessions}}" if="{{show_dmlist}}">
<div class="user" onclick="GoDMPage({{$item.talker_id}})">
<div class="user" onclick="GoDMPage($item.talker_id)">
<image class="userface" src="{{session_cards[$item.talker_id].face}}@75w_75h" alt="/common/fullgray.png"></image>
<div class="infoarea">
<text class="username">{{ session_cards[$item.talker_id].name }}</text>
+2 -2
View File
@@ -11,7 +11,7 @@
style="margin-top: {{MsgBoxStyleCalcMarginTop($item.msg_seqno)}}; margin-bottom: {{MsgBoxStyleCalcMarginBottom($item.msg_seqno)}}">
<image class="msgprofpic" src="{{targetPic}}@75w_75h" alt="/common/fullgray.png"></image>
<div class="msgbox" style="margin-left: 5px"
onclick="ShowMessageDetail({{$item.content}}, {{$item.msg_type}})">
onclick="ShowMessageDetail($item.content, $item.msg_type)">
<!-- 普通文本消息 -->
<text class="msgtext" if="{{$item.msg_type == 1}}">
{{ JSON.parse($item.content).content }}
@@ -33,7 +33,7 @@
<div class="mymsg"
style="margin-top: {{MsgBoxStyleCalcMarginTop($item.msg_seqno)}}; margin-bottom: {{MsgBoxStyleCalcMarginBottom($item.msg_seqno)}}">
<div style="background-color: #ff7da8" class="msgbox"
onclick="ShowMessageDetail({{$item.content}}, {{$item.msg_type}})">
onclick="ShowMessageDetail($item.content, $item.msg_type)">
<!-- 普通文本消息 -->
<text class="msgtext" if="{{$item.msg_type == 1}}">
{{ JSON.parse($item.content).content }}
@@ -34,7 +34,7 @@
</div>
<div style="width: 100%; height: 170px; justify-content: center"
if="{{comprehensive_status.has_video_result}}" for="{{search.comprehensive_videos}}">
<div style="width: 77%; justify-content: center; margin-top: 5px" onclick="OpenVideo({{$item.bvid}})">
<div style="width: 77%; justify-content: center; margin-top: 5px" onclick="OpenVideo($item.bvid)">
<videoshow video="{{$item}}"></videoshow>
</div>
</div>
@@ -44,7 +44,7 @@
<div class="swiper_box">
<scroll if="{{typebar_if.c2}}" class="swiper_container" scroll-y="true" @scroll="ScrollOverviewCheck">
<div style="width: 100%; height: 170px; justify-content: center" for="{{search.videos}}">
<div style="width: 77%; justify-content: center; margin-top: 5px" onclick="OpenVideo({{$item.bvid}})">
<div style="width: 77%; justify-content: center; margin-top: 5px" onclick="OpenVideo($item.bvid)">
<videoshow video="{{$item}}"></videoshow>
</div>
</div>
@@ -62,7 +62,7 @@
<div class="swiper_box">
<scroll if="{{typebar_if.c4}}" class="swiper_container" scroll-y="true" @scroll="ScrollOverviewCheck">
<div style="flex-direction: column; align-items: center; width: 100%" for="{{search.articles}}"
onclick="OpenArticle({{$item}})">
onclick="OpenArticle($item)">
<articleshow article="{{$item}}" show-category="true"></articleshow>
</div>
<text style="margin-top: 30px"></text>
+22
View File
@@ -0,0 +1,22 @@
module.exports = {
module: {
rules: [
{
test: /\.tsx?$/,
use: [
{
loader: "ts-loader",
},
],
},
]
},
resolve: {
alias: {
'@components': path.resolve(__dirname, 'src/components'),
'@less': path.resolve(__dirname, 'src/less'),
'@protobuf': path.resolve(__dirname, 'src/protobuf'),
'$buildinfo': buildInfoPath
}
}
}
+1902 -2306
View File
File diff suppressed because it is too large Load Diff