-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Added option to @Everyone in DingTalk notification method #4712
Changes from 9 commits
56ffca4
2d32b58
6a10eed
5c1e8b3
9a3c7b5
c34c1ac
f21efbf
08efd8d
f49187d
0dbc6a1
f8a7fab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,6 +6,12 @@ | |||||||||||||||||||||||||
<label for="secretKey" class="form-label">{{ $t("SecretKey") }}<span style="color: red;"><sup>*</sup></span></label> | ||||||||||||||||||||||||||
<input id="secretKey" v-model="$parent.notification.secretKey" type="text" class="form-control" required> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<label for="isAtAll" class="form-label">{{ $t("isAtAll") }}<span style="color: red;"><sup>*</sup></span></label> | ||||||||||||||||||||||||||
<select id="isAtAll" v-model="$parent.notification.isAtAll" class="form-select" required> | ||||||||||||||||||||||||||
<option value="false">{{ $t("false") }}</option> | ||||||||||||||||||||||||||
<option value="true">{{ $t("true") }}</option> | ||||||||||||||||||||||||||
</select> | ||||||||||||||||||||||||||
Comment on lines
+9
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I meant was something like this, but
What do you think about the label? Is this self-explaiantory enough? Do we need to add an helptext? (would not know what to put there, but still would like to have your oppinon on this one)
Suggested change
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<div class="form-text"> | ||||||||||||||||||||||||||
<p>{{ $t("For safety, must use secret key") }}</p> | ||||||||||||||||||||||||||
<i18n-t tag="p" keypath="Read more:"> | ||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -453,6 +453,9 @@ | |||||||
"WebHookUrl": "钉钉自定义机器人 Webhook 地址", | ||||||||
"SecretKey": "钉钉自定义机器人加签密钥", | ||||||||
"For safety, must use secret key": "出于安全考虑,必须使用加签密钥", | ||||||||
"isAtAll":"是否通知所有人", | ||||||||
"true":"是", | ||||||||
"false":"否", | ||||||||
Comment on lines
+456
to
+458
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To prevent merge conflicts with weblate (more painfull than worth it), we only allow adding translation keys in
Suggested change
|
||||||||
"Device Token": "Apple Device Token", | ||||||||
"Platform": "平台", | ||||||||
"Huawei": "华为", | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to a selection box with the options
Don't mention people
,Notify <code>@everyone</code>
(see https://vue-i18n.intlify.dev/guide/advanced/component.html)With a selection box, implemneting things like
@userId
is possible (=> "future-proof")