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

Restore dev branch #177

Closed
wants to merge 1,774 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1774 commits
Select commit Hold shift + click to select a range
5451385
fix: get app icon may fail
tisfeng Jun 28, 2023
b1d766a
perf(UI): adjust detect language button Y offset
tisfeng Jun 29, 2023
0e1003b
fix(UI): tag scroll view width is wrong
tisfeng Jun 29, 2023
aad260f
perf: improve the judgment of poetry
tisfeng Jun 30, 2023
3da3756
chore: update star-fork-notification
tisfeng Jun 30, 2023
fdac840
docs: update README
tisfeng Jul 1, 2023
0d989d7
perf: improve DarkModeManager
tisfeng Jul 2, 2023
37328bf
perf: improve OCR joining texts, add line break if text is a list
tisfeng Jul 3, 2023
10b9fbe
docs: update README
tisfeng Jul 3, 2023
0fdd85c
docs: update README
tisfeng Jul 4, 2023
60d8ccc
perf: make sure getFrontmostApp is not nil
tisfeng Jul 5, 2023
3ae6588
perf: enable intelligent query mode for mini window if is beta
tisfeng Jul 5, 2023
ea412d4
fix: category EZUserData file name is wrong
tisfeng Jul 5, 2023
82733a2
refactor: improve enabling beta features when turning on beta mode
tisfeng Jul 6, 2023
7f3668f
docs: update README
tisfeng Jul 6, 2023
f036738
refactor: adjust EZServiceTypes
tisfeng Jul 8, 2023
fa3adbc
docs: update README
tisfeng Jul 8, 2023
027008a
perf: improve joining OCR texts, adjust long text threshold
tisfeng Jul 9, 2023
bf3380a
support azure open ai
choykarl Jul 11, 2023
f56c380
perf: release main window when closing
tisfeng Jul 11, 2023
2a507e2
fix: app crash when closing main window, improve hide main window
tisfeng Jul 11, 2023
d825951
docs: update README
tisfeng Jul 11, 2023
2c9630e
docs: update README
tisfeng Jul 11, 2023
a40d2f3
perf: add Foxit PDF Reader for error kAXErrorSuccess
tisfeng Jul 11, 2023
2a3f709
Merge pull request #142 from ChoiKarl/support_azure
tisfeng Jul 13, 2023
51de626
support azure open ai
choykarl Jul 11, 2023
4144e80
perf: close main window when turning on hide main window option
tisfeng Jul 12, 2023
1a51786
fix: close floating window cause crash when floating window is nil
tisfeng Jul 12, 2023
3ea4b99
perf: add device and system info for local log file
tisfeng Jul 12, 2023
106adef
docs: update README
tisfeng Jul 11, 2023
45ff67e
perf: add Foxit PDF Reader for error kAXErrorSuccess
tisfeng Jul 11, 2023
3557ce2
perf: close main window when turning on hide main window option
tisfeng Jul 12, 2023
31ce0ca
fix: close floating window cause crash when floating window is nil
tisfeng Jul 12, 2023
62db6f9
perf: add device and system info for local log file
tisfeng Jul 12, 2023
35e63da
Merge branch 'dev'
tisfeng Jul 13, 2023
405d733
perf: improve dict prompt, add phrase and example sentence
tisfeng Jul 16, 2023
7b1e984
perf(UI): adjust mini window input view min height
tisfeng Jul 16, 2023
d3741d1
chore: update follower-change-notification
tisfeng Jul 22, 2023
821adae
docs: update README
tisfeng Jul 22, 2023
ef58930
chore: update follower-change-notification
tisfeng Jul 22, 2023
ebe039d
feat: add shortcut for copy first translated text (#155)
rainzm Aug 5, 2023
5158de3
perf: use OCR first, then QR code recognition
tisfeng Jul 22, 2023
77f828b
perf: improve quotation handling
tisfeng Jul 22, 2023
1ac524b
docs: update README
tisfeng Jul 25, 2023
944f244
feat: add system dictionary
tisfeng Jul 29, 2023
4f951e5
perf(UI): improve webView UI
tisfeng Jul 30, 2023
54d2d76
perf: improve system dictionary, show multiple dicts, improve css
tisfeng Jul 30, 2023
47ffcb6
perf(UI): adapt dict name separator color when in dark mode
tisfeng Jul 30, 2023
f35c1b7
perf: show text [No results found] when no query dict results
tisfeng Jul 30, 2023
0dc7f7e
perf(UI): use local dict icon for Chinese
tisfeng Jul 30, 2023
7211126
perf(UI): update Google and Baidu transalte icon
tisfeng Jul 30, 2023
083e7ed
perf: add system dict to support Traditional Chinese
tisfeng Jul 30, 2023
de3e7f0
fix(UI): show error and retry icon when has error
tisfeng Jul 31, 2023
81d3d7c
perf: add system dict to support Japanese, French and so on
tisfeng Jul 31, 2023
878e5bf
perf(UI): improve dict HTML rendering
tisfeng Jul 31, 2023
8f00af4
perf: allow clicking link to open system dict
tisfeng Jul 31, 2023
f3b8ee4
fix(UI): adjust border-bottom-color in dark mode
tisfeng Jul 31, 2023
dce7642
perf: adjust custom css style
tisfeng Jul 31, 2023
d061ae5
perf: increase Traditional Chinese language hint
tisfeng Jul 31, 2023
4c54bc8
perf(UI): adjust custom css style
tisfeng Jul 31, 2023
f108333
perf: stop loading indicator when webView is finished loading
tisfeng Aug 1, 2023
b3250da
perf: rename System Dictionary to Apple Dictionary
tisfeng Aug 1, 2023
7e64cce
perf(UI): adjust apple dict layout
tisfeng Aug 1, 2023
ca77cd9
perf: improve Apple dict
tisfeng Aug 1, 2023
58c2588
perf(UI): show scrollbar briefly when scroll height is too big
tisfeng Aug 1, 2023
56e26bb
perf: improve custom css
tisfeng Aug 4, 2023
60a4976
fix(UI): change custom css tag to class
tisfeng Aug 5, 2023
6e15d5a
perf(UI): update custom css
tisfeng Aug 8, 2023
5ef908b
docs: update README
tisfeng Aug 9, 2023
059da72
perf(UI): update custom css, change h1 class to h2
tisfeng Aug 10, 2023
ba99158
perf(UI): adjust input view min height
tisfeng Aug 10, 2023
3093060
perf: improve OCR, adjust long text threshold
tisfeng Aug 10, 2023
8519bb4
refactor: use iframe to rewrite css
tisfeng Aug 10, 2023
17b0f3d
refactor: separate system dictionaries and customized dictionaries
tisfeng Aug 11, 2023
5df59c2
fix: encode Apple dictionary url
tisfeng Aug 11, 2023
0c15413
perf(UI): improve css
tisfeng Aug 11, 2023
4350851
style: format code
tisfeng Aug 11, 2023
c4728e1
perf: make sure the dicts in Apple dictionary array are unique
tisfeng Aug 11, 2023
e7976db
style: format code
tisfeng Aug 11, 2023
df31c73
fix(UI): use webkitTextFillColor to update webView text color
tisfeng Aug 11, 2023
743325e
perf: remove package.json
tisfeng Aug 11, 2023
0956083
docs: update README
tisfeng Aug 11, 2023
e69dcd0
docs: update README
tisfeng Aug 11, 2023
9f54e0c
docs: update README
tisfeng Aug 11, 2023
9dfc970
docs: update README
tisfeng Aug 11, 2023
81f20ee
perf: improve TTTDictionary, use dictionary url to check user dict
tisfeng Aug 12, 2023
31c4f10
perf: improve html, remove dictionary id
tisfeng Aug 12, 2023
9cbe6af
refactor: use iframe to wrap all types of dicts
tisfeng Aug 12, 2023
8994a8d
perf(UI): improve Apple Dictionary rendering
tisfeng Aug 12, 2023
221ea84
perf(UI): adjust Apple Dictionary max showing height
tisfeng Aug 13, 2023
44c740f
Update Screenshots in English README (#160)
Jerry23011 Aug 15, 2023
ac0ce33
style: format code
tisfeng Aug 13, 2023
30b7566
chore: update star-fork-notification
tisfeng Aug 13, 2023
b5a32b5
fix: [dcs_error] kDCSActiveDictionariesChangedDistributedNotification…
tisfeng Aug 13, 2023
095254b
fix: use fetchWebViewAllIframeText to copy iframe innerText
tisfeng Aug 13, 2023
33548e3
perf: auto copy Apple Dictionary text when webView did finish loading
tisfeng Aug 13, 2023
52d5d94
fix(UI): show loading animation incorrectly when closing Apple Dictio…
tisfeng Aug 13, 2023
ed4e757
perf(UI): add details summary
tisfeng Aug 14, 2023
6fa371b
perf(UI): improve details tag, allow to close details content
tisfeng Aug 14, 2023
fbe5966
perf(UI): adjust big word css
tisfeng Aug 15, 2023
332de32
perf(UI): improve js code, add function updateDetailsSummaryLineWidth
tisfeng Aug 15, 2023
807cd6b
perf: improve code, remove unused code
tisfeng Aug 15, 2023
a288bd8
perf: remove unused method
tisfeng Aug 15, 2023
2b1ba32
perf: set Apple Dictionary support all languages
tisfeng Aug 15, 2023
162653f
perf(UI): adjust Apple Dictionary max showing height
tisfeng Aug 15, 2023
21fad9d
init microsoft translate
choykarl Aug 10, 2023
b72357a
perf: microsoft translate result
choykarl Aug 10, 2023
4c913a4
optimize translate result logic
choykarl Aug 11, 2023
6f0b4e2
microsoft translate show parts and simpleWords.
choykarl Aug 13, 2023
dbf0924
microsoft translate result add phonetic
choykarl Aug 13, 2023
b66fd98
code 429 tips
choykarl Aug 13, 2023
48f3eb8
from chinese translate, if length greater than 4 not show phonetic
choykarl Aug 13, 2023
f58d1ce
miscrsoft translate token invalid, reset token.
choykarl Aug 14, 2023
1b4b48d
when code205 retry once
choykarl Aug 14, 2023
f04f3a4
improve the logic of wordResult
choykarl Aug 14, 2023
1b657c7
change microsoft icon
choykarl Aug 15, 2023
9b9bda9
fix: change signing certificate to sign to run locally
tisfeng Aug 15, 2023
0e4924a
Update README for Bing Translate (#164)
Jerry23011 Aug 16, 2023
4ebd52a
get redirected host
choykarl Aug 16, 2023
99ba493
rename Microsoft to Bing
choykarl Aug 16, 2023
5e2c0c9
add .idea folder to ignore file.
choykarl Aug 23, 2023
b6f2fa4
Remove .idea folder from version control
choykarl Aug 23, 2023
f7ebcd2
refetch host after ip switch
choykarl Aug 24, 2023
8253eae
perf: improve handling response URL redirects
tisfeng Aug 24, 2023
7e3e1a1
chore: update app version to 1.4.0
tisfeng Aug 15, 2023
e571608
perf: improve js code
tisfeng Aug 16, 2023
63e05ee
perf(UI): adjust details summary marker
tisfeng Aug 16, 2023
ccfd1e0
chore: add development signing certificate, avoid applying permission…
tisfeng Aug 16, 2023
9512f7d
fix: improve resorting ocr texts
tisfeng Aug 16, 2023
d850568
feat: make OpenAI service available to all users
tisfeng Aug 16, 2023
4fd3c93
fix: replace image and audio relative path with absolute path
tisfeng Aug 17, 2023
fbceb5c
perf: improve replacing audio relative path
tisfeng Aug 17, 2023
f816e3f
perf: improve code
tisfeng Aug 17, 2023
94eb9c3
chore: add development signing certificate
tisfeng Aug 18, 2023
0082f8c
perf: improve ocr texts, improve chcking list type
tisfeng Aug 18, 2023
08d657f
perf: improve ocr texts, add \n\n when list ends
tisfeng Aug 18, 2023
d6569e6
fix: service name changs can result in non-display
tisfeng Aug 18, 2023
b38374d
perf: add search type for searching term method
tisfeng Aug 18, 2023
c94c3b3
perf: change __bridge to __bridge_transfer
tisfeng Aug 18, 2023
6336020
perf(UI): adjust dict name details margin
tisfeng Aug 18, 2023
f650c5a
perf(UI): auto brighten html text color in dark mode
tisfeng Aug 18, 2023
7af2356
perf(UI): auto convert webView text color according to dark mode
tisfeng Aug 19, 2023
0c64c8b
perf: improve ocr texts, short Chinese poetry need line break
tisfeng Aug 19, 2023
fe84b6f
style: format code
tisfeng Aug 19, 2023
3864dac
perf: commentate js console log
tisfeng Aug 19, 2023
866ea40
perf(UI): adjust js function convert color
tisfeng Aug 19, 2023
a5a8587
perf(UI): adjust js function convert color
tisfeng Aug 19, 2023
ca105fe
perf: do not query child elements
tisfeng Aug 20, 2023
fdf27b0
fix: user dictionary directory path is wrong
tisfeng Aug 20, 2023
7cd7ee9
perf(UI): adjust Apple Dictionary border bottom color in dark
tisfeng Aug 20, 2023
fe5a071
perf: improve showing results of Apple Dictionary
tisfeng Aug 20, 2023
805e9d1
perf(UI): add open in Apple Dictionary quick link icon
tisfeng Aug 20, 2023
a9984a5
perf: query text in Easydict when clicking dict URI scheme
tisfeng Aug 21, 2023
1b224c2
perf: improve js code
tisfeng Aug 21, 2023
2b999f6
perf: improve easydict URL scheme, add easydictd as debug scheme
tisfeng Aug 21, 2023
93ade4b
perf(UI): improve Apple Dictionary link button tooltip
tisfeng Aug 21, 2023
00062ad
perf(UI): adjust quick link button size
tisfeng Aug 21, 2023
76bc440
perf(UI): adjust pin button frame
tisfeng Aug 21, 2023
4a9060a
perf(UI): adjust Eudic display order
tisfeng Aug 22, 2023
6cea807
perf: improve method containsSubstring()
tisfeng Aug 22, 2023
2690de2
perf: improve opening URL with query text
tisfeng Aug 22, 2023
8f52f53
chore: add Hardened Runtime Capability
tisfeng Aug 22, 2023
d954f30
perf(UI): add boder for iframe
tisfeng Aug 22, 2023
7e61c01
perf(UI): adjust iframe border
tisfeng Aug 22, 2023
e7f1eb2
chore: add Hardened Runtime Capability
tisfeng Aug 22, 2023
c69315e
refactor: move html code to a single html file
tisfeng Aug 22, 2023
c6847d9
perf(UI): adapt iframe background color and boder color in dark mode
tisfeng Aug 23, 2023
00cec24
perf(UI): adjust iframe boder color
tisfeng Aug 23, 2023
05102d9
perf(UI): improve the way to calcaulate iframe content height
tisfeng Aug 24, 2023
d465909
perf: improve iframe style height
tisfeng Aug 24, 2023
5a380d5
perf: improve combining audio path
tisfeng Aug 24, 2023
86de4cb
docs: update README
tisfeng Aug 25, 2023
183d8fb
perf: improve user agent
tisfeng Aug 25, 2023
de4d21e
perf: do show big word if too long
tisfeng Aug 25, 2023
f0ff1ab
perf: improve Bing phonetic display
tisfeng Aug 25, 2023
226251b
perf: replace result queryFromLanguage
tisfeng Aug 25, 2023
213371e
fix: contents path does not need to encode
tisfeng Aug 25, 2023
6dc09cb
perf: improve audio path
tisfeng Aug 25, 2023
b2b7bf0
perf: improve replacedAudioPathOfHTML()
tisfeng Aug 25, 2023
0cb3e94
chore: update sign, add Hardenend Runtime
tisfeng Aug 25, 2023
a95d2f5
feat: implement Bing TTS
tisfeng Aug 25, 2023
ee7019a
perf: check for local file path before requesting Bing TTS
tisfeng Aug 25, 2023
93a7e9e
perf: improve Bing translate, escape audio text
tisfeng Aug 26, 2023
70888e4
perf: set the max length of Bing word link text to 450
tisfeng Aug 26, 2023
6852c07
feat: add Bing TTS, set it as default TTS service
tisfeng Aug 26, 2023
1a23aee
perf: play local audio file first
tisfeng Aug 26, 2023
7a72ac6
perf: modify Bing Traditional Chinese tts voice
tisfeng Aug 26, 2023
9013bd7
perf: trim Bing audio text if too long
tisfeng Aug 26, 2023
3cf5a46
perf: for English words, try to play Youdao local audio first
tisfeng Aug 26, 2023
33ff7ad
perf: fetch Bing config parameters in advance
tisfeng Aug 26, 2023
2bec40d
perf: when host changed, use new host to fetch Bing TTS agagin
tisfeng Aug 26, 2023
91ac0ba
test: get file download info
tisfeng Aug 27, 2023
72404a5
feat: add default TTS service option in settings
tisfeng Aug 27, 2023
2cf123e
perf: improve Baidu tts speed
tisfeng Aug 27, 2023
bf7bfe2
perf: improve isChineseLanguage(), add classical Chinese
tisfeng Aug 27, 2023
2503a14
perf: remove classical Chinese in user preferred languages
tisfeng Aug 27, 2023
38b8e24
perf: read default tts service when using
tisfeng Aug 27, 2023
90af01d
perf: use default tts service if there is no audio URL when playing q…
tisfeng Aug 27, 2023
1ab93b3
fix: baidu English word tts link is wrong
tisfeng Aug 27, 2023
faf6e46
perf: use default tts to play result text
tisfeng Aug 28, 2023
19a774c
fix: play fallback tts when service failed
tisfeng Aug 28, 2023
d646b6e
perf: check if the local audio file can play
tisfeng Aug 28, 2023
36e1516
fix: check if the default service type is the same way wrong
tisfeng Aug 28, 2023
e7b8263
perf: remove broken file when playing local audio failed
tisfeng Aug 28, 2023
b5087bc
perf: do not update webView when scrolling tableView
tisfeng Aug 29, 2023
031a4b5
perf: move webView to result manager class
tisfeng Aug 29, 2023
e675988
perf: use async to get Apple dictionary HTML
tisfeng Aug 29, 2023
ae1b3e0
perf(UI): improve calculating iframe height
tisfeng Aug 30, 2023
51ac7c0
perf: rewrite JS console.log, make it work in Xcode
tisfeng Aug 30, 2023
dce5053
perf: reload webView html when resizing window
tisfeng Aug 30, 2023
409f12a
perf(UI): adjust Apple Dictionary max showing height
tisfeng Aug 30, 2023
1ed1919
perf: set Youdao as default TTS service
tisfeng Aug 30, 2023
83187d9
perf: do no update Bing token when startup if in debug mode
tisfeng Aug 30, 2023
99415cd
perf(UI): improve iframe height
tisfeng Aug 31, 2023
c096088
perf(UI): improve getting webView total height
tisfeng Aug 31, 2023
3d0a286
perf(UI): increase webView height when only Apple Dictionary is enabled
tisfeng Aug 31, 2023
75b0c7c
perf(UI): adjust cell spacing
tisfeng Sep 1, 2023
e40d83b
perf(UI): adjust cell spacing
tisfeng Sep 1, 2023
ad5e2ce
fix(UI): webView max height is wrong when only Apple Dictionary enabled
tisfeng Sep 1, 2023
63861da
perf: update iframe height when resizing window
tisfeng Sep 1, 2023
bc87c40
refactor: improve updating webView height
tisfeng Sep 1, 2023
bcb3824
perf: improve print js log in Xcode
tisfeng Sep 1, 2023
c681f5c
docs: update README
tisfeng Sep 2, 2023
506f80a
1、fix azure ai display incomplete
Jul 18, 2023
be03007
fix: azure OpenAI stream data may be incomplete
tisfeng Sep 3, 2023
35ad039
perf: improve checking if stream data is finished
tisfeng Sep 3, 2023
a0e4b6d
perf: in order to better support Azure OpenAI, use EZOpenAIEndPointKe…
tisfeng Sep 3, 2023
a4c5b70
perf: add Firefox for error kAXErrorAttributeUnsupported (#170)
c3qo Sep 4, 2023
bbce2b2
Rename Bing Translate for README (#171)
Jerry23011 Sep 6, 2023
5e13c1b
style: format code
tisfeng Sep 3, 2023
9ce46c4
docs: update README
tisfeng Sep 4, 2023
762f917
perf: improve getting value from HTML with pattern
tisfeng Sep 5, 2023
b59dec4
refactor: improve Bing request
tisfeng Sep 5, 2023
54cbfc6
perf: improve Bing
tisfeng Sep 5, 2023
beb7ceb
fix: use cn.bing.com as default Bing host
tisfeng Sep 5, 2023
7fc4e79
perf: improve Bing request
tisfeng Sep 5, 2023
7a4f863
perf: improve default tts service for input text
tisfeng Sep 6, 2023
734b19d
perf: improve auto play English word
tisfeng Sep 6, 2023
f7d195c
perf: move dict.html to Dict HTML directory
tisfeng Sep 11, 2023
6d16ea5
perf(ocr): improve joining short Chinese poetry OCR texts
tisfeng Sep 11, 2023
75675a2
perf: improve Apple dict css
tisfeng Sep 11, 2023
422d572
perf: improve playing audio, change file extension if it can not play
tisfeng Sep 12, 2023
c311d77
perf(ocr): improve checking is long text threshold
tisfeng Sep 13, 2023
c04371a
perf: rename file name to all_dict.html
tisfeng Sep 14, 2023
9177e8f
perf(ocr): check prev text and current text font size
tisfeng Sep 17, 2023
632b284
perf(ocr): if has prev indentation and not equal font size, means new…
tisfeng Sep 17, 2023
52dc7b1
perf(ocr): set it as new paragrahp if is big line spacing and first l…
tisfeng Sep 17, 2023
2bff97f
docs: update README
tisfeng Sep 17, 2023
06e376e
perf(UI): use css filter to adapt dark mode
tisfeng Sep 20, 2023
a12a5d6
fix: update Podfile, pod update, fix Xcode 15.0 DT_TOOLCHAIN_DIR error
tisfeng Sep 21, 2023
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
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Language: ObjC

# BasedOnStyle: Google
# BasedOnStyle: Google
BasedOnStyle: LLVM
AccessModifierOffset: -1
ConstructorInitializerIndentWidth: 4
Expand All @@ -18,11 +18,11 @@ AlignOperands: false
AlignTrailingComments: true

AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: Never
AllowShortFunctionsOnASingleLine: Empty
AllowShortLoopsOnASingleLine: true
AllowShortLoopsOnASingleLine: false

AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakTemplateDeclarations: false
Expand Down
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/cn_bug_report_zh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: 反馈问题
description: 反馈问题
title: "🐞 反馈问题:请填写标题"
labels: ["bug"]
assignees:
-

body:
- type: checkboxes
id: checklist
attributes:
label: 请先确认以下事项:
options:
- label: 已仔细阅读了 [README](https://github.com/tisfeng/Easydict#readme)
required: true
- label: 在 [issues](https://github.com/tisfeng/Easydict/issues) 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
required: true
- label: Easydict 已升级到最新版本
required: true

- type: textarea
id: description
attributes:
label: 问题描述
description: 请尽量清晰、详细地描述问题。如果涉及 UI,请提供截图,若问题比较复杂,最好能提供录屏,方便开发者排查。如果是应用崩溃问题,请提供崩溃日志,菜单图标 -> 帮助 -> 导出日志。
placeholder: 问题描述
validations:
required: true

- type: textarea
id: reproduce
attributes:
label: 重现步骤
description: 请描述如何重现该问题。如果该问题是偶发性的,或者需要特定的操作步骤才能重现,请尽量详细地描述。
placeholder:
validations:
required: true

- type: textarea
id: expected
attributes:
label: 期望结果
description: 请描述您期望的结果。
placeholder:
validations:
required: true

- type: textarea
id: resolution
attributes:
label: 解决方案(可选)
description: 对于该问题,您有什么预想的解决方案,或者建议?
placeholder:

- type: input
id: device
attributes:
label: 设备信息 && 操作系统版本
description: 如果遇到比较奇怪的问题,请提供设备信息和操作系统版本,方便开发者排查
placeholder: Apple M1 Pro, macOS 11.2.3

- type: checkboxes
id: PR
attributes:
label: 是否愿意提交 PR 解决该问题?
description: 我们非常欢迎您提交 PR,当开发者人力不足时,提交 PR 是解决该问题最快的方式。如果对 Objective-C 语言不熟悉,可以尝试使用 ChatGPT,也许它能帮到你。
options:
- label: 我愿意提交 PR!
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/cn_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 功能建议
description: 功能建议
title: "🚀 功能建议:请填写标题"
labels: ["enhancement"]
assignees:
-

body:
- type: checkboxes
id: checklist
attributes:
label: 请先确认以下事项
options:
- label: 已仔细阅读了 [README](https://github.com/tisfeng/Easydict#readme)
required: true
- label: 在 [issues](https://github.com/tisfeng/Easydict/issues) 页面搜索过(包括已关闭的 issue),未发现类似功能建议
required: true
- label: Easydict 已升级到最新版本
required: true

- type: textarea
id: feature_description
attributes:
label: 功能描述
description: 请描述你希望的功能,有必要的话可以提供截图,以供开发者参考。
placeholder:
validations:
required: true

- type: textarea
id: feature_usecase
attributes:
label: 使用场景(可选)
description: 请描述你希望功能的使用场景,有无其他类似可供参考的 App 功能等。
placeholder:

- type: textarea
id: resolution
attributes:
label: 实现方案(可选)
description: 对于该功能,您有什么预想的实现方案,或者建议?
placeholder:

- type: checkboxes
id: PR
attributes:
label: 是否愿意提交 PR 实现该功能
description: 我们非常欢迎您提交 PR,当开发者人力不足时,提交 PR 是实现该功能的最快的方式。如果对 Objective-C 语言不熟悉,可以尝试使用 ChatGPT,也许它能帮到你。
options:
- label: 我愿意提交 PR!
68 changes: 68 additions & 0 deletions .github/ISSUE_TEMPLATE/en_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Bug report
description: Report an issue
title: "🐞 Bug Report: Please fill in the title"
labels: ["bug"]
assignees:
-

body:
- type: checkboxes
id: checklist
attributes:
label: "Please confirm the following:"
options:
- label: I have carefully read the [README](https://github.com/tisfeng/Easydict#readme)
required: true
- label: I have searched through the [issues](https://github.com/tisfeng/Easydict/issues) page but couldn't find a solution.(Including issue that has been closed)
required: true
- label: Easydict has been upgraded to the latest version.
required: true

- type: textarea
id: description
attributes:
label: Problem description
description: Please describe the problem as clearly and detailed as possible. If it involves UI, please provide screenshots. If it's a complex problem, it would be best to provide a screencast to help developers troubleshoot. If it is an application crash issue, please provide the crash log, menu icon -> Help -> Export Log.
placeholder: Problem description
validations:
required: true

- type: textarea
id: reproduce
attributes:
label: Reproduction steps
description: Please describe how to reproduce the problem.
placeholder:
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected result
description: Please describe the result you expect.
placeholder:
validations:
required: true

- type: textarea
id: resolution
attributes:
label: Proposed solution (optional)
description: Do you have any proposed solutions or suggestions for this issue?
placeholder:

- type: input
id: device
attributes:
label: Device information and OS version
description: If you encounter an unusual problem, you can provide device information and OS versions to help developers troubleshoot.
placeholder: Apple M1 Pro, macOS 11.2.3

- type: checkboxes
id: PR
attributes:
label: Are you willing to submit a PR to fix this issue?
description: We welcome you to submit a PR to fix this issue. When the developer is short of manpower, submitting a PR is the fastest way to solve the problem. If you are not familiar with Objective-C, you can try ChatGPT, maybe it can help you.
options:
- label: I'm willing to submit a PR!
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/en_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Feature request
description: Request a new feature
title: "🚀 Feature Request: Please fill in the title"
labels: ["enhancement"]
assignees:
-

body:
- type: checkboxes
id: checklist
attributes:
label: "Please confirm the following:"
options:
- label: I have carefully read the [README](https://github.com/tisfeng/Easydict#readme)
required: true
- label: I have searched through the [issues](https://github.com/tisfeng/Easydict/issues) page and didn't find a similar feature request.(Including issue that has been closed)
required: true
- label: Easydict has been upgraded to the latest version.
required: true

- type: textarea
id: feature_description
attributes:
label: Feature description
description: Please describe the feature you would like to request. If necessary, screenshots can be provided for developers' reference.
placeholder:
validations:
required: true

- type: textarea
id: feature_usecase
attributes:
label: Use case (optional)
description: Please describe the use case of the feature you're requesting, and whether there are any similar app features for reference.
placeholder:

- type: textarea
id: resolution
attributes:
label: Proposed solution (optional)
description: Do you have any proposed solutions or suggestions for implementing this feature?
placeholder:

- type: checkboxes
id: PR
attributes:
label: Are you willing to submit a PR to implement this feature
description: We welcome you to submit PR. When the developer is short of manpower, submitting PR is the fastest way to implement the feature. If you are not familiar with Objective-C, you can try ChatGPT, maybe it can help you.
options:
- label: I'm willing to submit PR!
15 changes: 0 additions & 15 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/others.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Others
about: Others
title: Others
labels:
---

<!--
⚠️ 如果是反馈问题,或功能建议,请选择对应的模板,这个模板只用于记录一些其他特殊问题。

1. 请确保你已经仔细阅读了 README,可能你的问题不是「问题」。
2. 请在 issues 页面搜索你的问题,很可能已被解决。

---

⚠️ If you are reporting a problem, or suggesting a feature, please select the corresponding template. This template is only used to record some other special issues.

1. Please make sure you have read the README carefully. Maybe your problem is not a "problem".
2. Please search for your problem on the issues page, it may have been solved.

-->
19 changes: 19 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/first-interaction@v1
# fix run error: https://github.com/actions/first-interaction/issues/101#issuecomment-1262487501
continue-on-error: true
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello ${{ github.actor }}, Thank you for your first issue contribution 🎉 "
pr-message: "Hello ${{ github.actor }}, Thank you for your first PR contribution 🎉 ${{ github.actor }}"
Loading