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

Bugfix/lizmlzhou hippy vue native component #4130

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1084 commits
Select commit Hold shift + click to select a range
27ae748
fix(android): pull header/footer collapse animation
iPel Feb 8, 2023
a2fee42
fix(iOS): gif is play fast at high fresh rate device
luoyibu Feb 8, 2023
9a9914c
chore(lint): perf some js lint issues
zoomchan-cxj Feb 9, 2023
9ab8902
fix(workflows): fix the tips content incompletely generated problem
medns Feb 9, 2023
9d96b8c
fix(android): `initialContentOffset` takes effect too late
iPel Feb 7, 2023
1bb8e10
fix(workflows): each head SHA will only trigger one merge action
medns Feb 10, 2023
a14162d
chore(workflows): add project dependency review
zoomchan-cxj Feb 10, 2023
540beeb
fix(ios): podspec lint error & enable Module import (#2935)
wwwcg Feb 18, 2023
cff26d1
feat(core): remove default HeapLimitSlowGrowthStrategy
churchill-zhang Feb 20, 2023
c027a52
fix(android): send scroll event when pulling header/footer
iPel Feb 14, 2023
72d69d2
feat(ios): add onsizechanged event
ozonelmy Feb 20, 2023
3a9d14f
chore(docs): update onSizeChanged event document
ozonelmy Feb 20, 2023
3ca8ddd
feat(andr): add prod remotedebug, local bundle instead of remote serv…
FE-xiaoJiang Jan 9, 2023
52de0d9
fix(core): fix crash when running callback in system thread
churchill-zhang Feb 21, 2023
64ddef3
build(ts): add customized ts include path
zoomchan-cxj Feb 21, 2023
98523c9
feat(android,ios): add & perf performance timing ability (#2804)
wwwcg Feb 22, 2023
c56de50
feat(android, ios): nested rich text support vertical alignment setti…
wwwcg Feb 22, 2023
ae43a09
fix(android): drawPath CRASH_java.lang.NullPointerException
siguangli2018 Feb 22, 2023
03b908c
fix(core): fix deadlock in debug mode
churchill-zhang Feb 22, 2023
f46b9d8
fix(android): textInput may throw IllegalStateException (#2957)
iPel Feb 22, 2023
ade76de
fix(android): fix unit test case (#2968)
iPel Feb 23, 2023
59972d0
fix(android): remove use of mDebugInitJSFrameworkCallback
siguangli2018 Feb 24, 2023
88315fd
fix(ios): avoid multi-threading problem of imageview
wwwcg Feb 22, 2023
72ba37c
refactor(ios): refactor reusable mechanism for list and waterfall
ozonelmy Feb 21, 2023
aec7a23
fix(core): compatile with single callback in native2js
zoomchan-cxj Feb 24, 2023
f8e1780
feat(docs): add docs for UserLocal debug mode;
FE-xiaoJiang Feb 22, 2023
43ff7d9
chore(example,doc): add dialog attention for vue3.0
zoomchan-cxj Feb 27, 2023
45a1f33
fix(core): avoid crash caused by lock in the destructor
churchill-zhang Feb 27, 2023
047230d
fix(base): fix unknown word misspelling
churchill-zhang Feb 27, 2023
b1e8a86
fix(base): add Apache License
churchill-zhang Feb 27, 2023
4272a19
feat(core): formatting and replacing concrete types with auto
churchill-zhang Feb 27, 2023
46492db
fix(base): fix capitalization error
churchill-zhang Feb 27, 2023
b63b843
feat(core): refactor napi and jsi
churchill-zhang Feb 28, 2023
bd31d22
fix(vue3): fix listViewItem disappear event not triggered
zoomchan-cxj Mar 1, 2023
a6ad0f9
docs(vue,vue-next): update keep-alive hmr issue description
gguoyu Feb 28, 2023
eeb1065
docs(vue3): fix dialog introduction error
zoomchan-cxj Mar 2, 2023
8046642
fix(android): custom font style support
andrezhuang Mar 1, 2023
bb14bda
feat(vue): add native event parameters
zoomchan-cxj Mar 2, 2023
196c83c
feat(ios): bump minimum deployment target to iOS11
wwwcg Mar 2, 2023
e42762b
feat(core): add willexit callback
churchill-zhang Mar 3, 2023
c936c51
refactor(ios): remove unused code of viewPager
wwwcg Mar 3, 2023
6eb7021
docs(font): modify document about custom-font (#3007)
Xuanquan-Zhuang Mar 6, 2023
4e5d31c
feat(core): add snapshot for hippy
churchill-zhang Mar 2, 2023
881d0bc
fix(core): compatible with v8 low version
churchill-zhang Mar 2, 2023
ac838bc
feat(core): sdkversion is specified by gradle and remove redundant code
churchill-zhang Mar 3, 2023
7a0756b
feat(core): remove redundant code
churchill-zhang Mar 6, 2023
74d3164
feat(core): change memcpy to std::copy_n
churchill-zhang Mar 6, 2023
696fb3d
feat(core): change HIPPY_SDK_VERSION to VERSION_NAME
churchill-zhang Mar 6, 2023
32002c9
docs(README): transfer some document to offcial website (#3010)
zoomchan-cxj Mar 6, 2023
a0976aa
fix(android): return size after loading gif (#3001)
Xuanquan-Zhuang Mar 8, 2023
8fd3b72
fix(android): promise leak after engine destroy
iPel Mar 8, 2023
a2daaf6
refactor(ios): modify the usage mode
ozonelmy Mar 8, 2023
784f2ba
fix(core): fix debugmode crash
churchill-zhang Mar 10, 2023
0096672
fix(ios): Fixed the issue that pictures would not be displayed
alexLiu-cn Mar 9, 2023
1984a9e
fix(vue): perf style diff
zoomchan-cxj Mar 13, 2023
6ac9887
feat(hippy-react-web): add cjs formatted output
LittleCo Mar 1, 2023
5f842f8
fix(android): fix default value for several properties
iPel Mar 10, 2023
a2ed3a2
feat(android): support touch input from devtool
iPel Feb 23, 2023
2659871
feat(android): make animator work on both enter and exit (#2987)
Xuanquan-Zhuang Mar 15, 2023
df558f7
docs(homepage): change scrollTo parameter docs
zoomchan-cxj Mar 15, 2023
2de3740
fix(examples): compatible with legacy openssl when running webpack
zoomchan-cxj Mar 15, 2023
d6ae8e8
feat(react): support fontWeight in number
zoomchan-cxj Mar 15, 2023
3a9e3a4
chore(react-web): perf build script
zoomchan-cxj Mar 16, 2023
2b2361e
refactor(react): change console.reportUncaughtException to console.error
zoomchan-cxj Mar 16, 2023
17ffbf7
feat(ios): add onKeyboardWillHide callback for iOS
wwwcg Mar 14, 2023
1764994
fix(ios): maxlength property not working in hippy-vue
wwwcg Mar 17, 2023
efb78cc
fix(ios): fix banner view bug in watefall view
ozonelmy Mar 17, 2023
1e68557
fix(demo): fix cross-env script error
zoomchan-cxj Mar 21, 2023
a364104
refactor(demo): change vue-loader dependency judgement
zoomchan-cxj Mar 21, 2023
e1ae590
feat(android): add getNodeForLocation for utils mode
lavnFan Mar 20, 2023
e30abf9
chore(ios): eliminate some warnings
wwwcg Mar 23, 2023
dfff633
fix(readme): fix readme of requestInterrupt method
churchill-zhang Mar 24, 2023
92bc2ac
fix(readme): fix English README of requestInterrupt method
churchill-zhang Mar 24, 2023
e72fbbe
fix(workflow): fix workflow yml file syntax error
zoomchan-cxj Mar 27, 2023
391faf3
chore(file): remove redundant file
zoomchan-cxj Mar 27, 2023
8a5b1e7
docs(ios): update integration guides
wwwcg Mar 27, 2023
53cb96a
feat(ios): change cpp excetion enable to false
ozonelmy Mar 27, 2023
fed34a4
feat(@hippy/react-web): add build config for the declaration
tomdyqin Mar 13, 2023
15a497f
fix(@hippy/react-web): fix text default value and ellipsis not work
tomdyqin Mar 24, 2023
d2c0b08
fix(core): fix uncaughtException bug
churchill-zhang Mar 27, 2023
37622c5
fix(vue): make sure start animation after node created
zoomchan-cxj Mar 28, 2023
634a793
fix(react): listview initialListSize default value set to 15
zoomchan-cxj Mar 28, 2023
fb8b2a7
fix(vue): fix vue style diff error
zoomchan-cxj Apr 3, 2023
aec8996
build(ios): Upgrade to using local podspec to manage project files (#…
wwwcg Apr 3, 2023
7d20a92
fix(@hippy/react-web): fixed style when numberofLines > 1
tomdyqin Apr 4, 2023
4fe7b63
fix(@hippy/react-web): remove unused val
tomdyqin Apr 4, 2023
7aa44ab
feat(ios): add log when load bundles
ozonelmy Apr 4, 2023
9f39eb2
fix(ios): fix lock when lock dealloced
ozonelmy Apr 4, 2023
5e49185
chore(workflows): change codeowner config
zoomchan-cxj Apr 4, 2023
93673a6
fix(vue): fix vNode element empty error
zoomchan-cxj Apr 4, 2023
b0aee05
refactor(ios): use utf16 creation method instead of utf8 creation method
ozonelmy Apr 5, 2023
9788490
docs(ios): update integration guide for iOS
wwwcg Apr 6, 2023
4eb58e2
fix(android): reset backgroundImage doesn't work
iPel Apr 10, 2023
4591712
fix(android): text default color
iPel Apr 10, 2023
71a9dc2
fix(android): color value in animation lose precision
iPel Apr 10, 2023
4b8b743
fix(core): fix promise crash
churchill-zhang Apr 11, 2023
815b8f6
chore(publish): change publish info
zoomchan-cxj Apr 11, 2023
4010cac
chore(codeowner): change codeowner
zoomchan-cxj Apr 12, 2023
8b670f8
fix(ios): animation module multi-thread crash
wwwcg Apr 13, 2023
fd7a436
refactor(ios): optimize performance of text with vertialAlign
wwwcg Apr 13, 2023
2e2fc6e
fix(ios): strange shaped character rendering bug
wwwcg Apr 17, 2023
c481eb4
fix(vue): support static style diff in updateNode
zoomchan-cxj Apr 18, 2023
a2bd080
fix(android): memory leak of `RecyclerViewEventHelper`
iPel Apr 19, 2023
35b0584
build(ios): fix artifact build
wwwcg Apr 25, 2023
f47ecb0
build(ios): update artifact build script
wwwcg Apr 25, 2023
27b14f2
fix(vue): remove redundant props & perf cache logic
zoomchan-cxj Apr 26, 2023
1aa2997
feat(react,vue): show nodeId in debug mode
zoomchan-cxj Apr 28, 2023
12f1510
feat(java): add default method for moduleListener interface
churchill-zhang Apr 28, 2023
4841d58
chore(codeowner): change codeowner
zoomchan-cxj May 3, 2023
67123c9
feat(ios, js): remove clipboard module
ozonelmy May 5, 2023
bad97e9
feat(ios): add inspectable for jscontext
ozonelmy May 5, 2023
6810e49
fix(core): fix multithreading bug
churchill-zhang May 9, 2023
0825c1a
fix(ios): fix rounding error using double instead of float
wwwcg May 9, 2023
b5aee08
fix(core): fix snapshot bug when using dynamicLoad
churchill-zhang May 10, 2023
acf8a87
fix(Android): Demo uses NoSnapshot by default
churchill-zhang May 11, 2023
e92cdab
feat(core): add readme for snapshot
churchill-zhang May 11, 2023
ca20a32
feat(ios): support skipping inner decoding when use custom image loader
wwwcg May 10, 2023
04bab11
Revert "refactor(ios): refactor reusable mechanism for list and water…
wwwcg May 19, 2023
8befc46
feat(ios): support skipping inner decoding when use custom image loader
wwwcg May 22, 2023
ed3e323
fix(android): waterfall scrolling error with small content height
iPel May 25, 2023
4c79151
fix(ios): key commands for dev menu not working
wwwcg May 25, 2023
abdb184
refactor(ios): remove deprecated LayoutGuide usage
wwwcg May 24, 2023
9617e5f
chore(build): update code owner
wwwcg May 24, 2023
bd7df70
fix(android): memory leak in `WebSocketModule`
iPel May 26, 2023
0dcf35b
fix(ios): fix potential bug and analyzer issues in HippyGradientObject
wwwcg May 29, 2023
aa0b2da
fix(android): check imageAdapter result before use
iPel May 31, 2023
ae28b6b
fix(core): fix std hash for xcode15
etkmao Jun 7, 2023
97cad68
fix(android): animationModule memory leak
iPel Jun 8, 2023
1d197d5
fix(android): textNode memory leak
iPel Jun 8, 2023
015b0c1
feat(@hippy/react-web): remove font default style for Text
tomdyqin Jun 15, 2023
340de78
refactor(ios): remove unnessessary codes
ozonelmy Jun 12, 2023
773b30f
feat(devtools): add rendererType and componentCount report (#3322)
wwwcg Jun 28, 2023
fe24548
feat(android): image add param to `onError`
iPel Jun 29, 2023
20db81f
chore(ios): remove the clang-format instruction (#3323)
wwwcg Jun 29, 2023
25453d8
fix(jsc): fix jsc crash on ios12
etkmao Jul 3, 2023
9cd9e6f
fix(ios): fix initialContentOffset bug for listview
wwwcg Jul 4, 2023
2b21af5
fix(android): initialContentOffset not working
iPel Jul 5, 2023
7f26aac
feat(ios): delete items in a range off screen in list component
ozonelmy Jun 16, 2023
95913e4
fix(ios): use auto release pool for cpp thread
ozonelmy Jun 19, 2023
a431df4
fix(android): correct default value type for `StyleNode`
iPel Jul 14, 2023
9c8dae8
fix(vue-next): fix element do not use beforeLoadStyle hooks issue (#3…
gguoyu Jul 14, 2023
8228f0f
fix(android): animation may cause `IllegalStateException` after destroy
iPel Jul 14, 2023
84aae30
fix(ios): network session not being reused
wwwcg Jul 14, 2023
89f8ec0
fix(test): fix front build test failed
zealotchen0 Jul 17, 2023
68727ac
fix(@hippy/react-web): fix Image repeatedly triggering onError
tomdyqin Jun 16, 2023
19cf3c3
fix(hippy-react-web): fix multiple react in dev
LittleCo Jun 27, 2023
22f2e05
feat(hippy-react): Text component add forbidUnicodeToChar (#3380)
maidishike Jul 18, 2023
587b108
fix(android): prevent unnecessary requestLayout
iPel Jul 25, 2023
b665228
feat(ios): add NightMode & improve method of getting UI state (#3411)
wwwcg Jul 26, 2023
5045885
feat(ios): add NightMode change event
wwwcg Jul 26, 2023
593a11d
feat(hippy-react): fix declaration and export it (#3414)
tomdyqin Aug 7, 2023
9899875
feat(ios): rewrite animation module (#3436)
wwwcg Aug 10, 2023
ea09546
fix(ios): animation module multi-instance support
wwwcg Aug 21, 2023
aa9b57e
fix(ios): animation module multi-instance support 2
wwwcg Aug 21, 2023
f5c87df
chore(workflow): change code owner
zealotchen0 Aug 22, 2023
eee3687
fix(ios): fix context leak when using shared engine (#3451)
wwwcg Aug 25, 2023
8ebadcf
feat(hippy-react): modal visible default true and optional props (#3446)
tomdyqin Aug 28, 2023
8e78c02
fix(js): remove virtual for animation (#3467)
zealotchen0 Aug 28, 2023
50156d8
fix(hippy-react-web): HippyTypes.Style for web (#3468)
tomdyqin Sep 1, 2023
6a30ec4
fix(android): fix npe when preload
iPel Sep 6, 2023
c76ac57
chore(demo): change demo latest version
zealotchen0 Sep 4, 2023
0a1bf8c
fix(ios): onChange event not triggered when typing Chinese Pinyin
wwwcg Sep 20, 2023
b302802
fix(v8): v8 code cache file broken protect
Sep 25, 2023
4dd87df
fix(core): fix console module log encode
Sep 28, 2023
d118165
fix(v8): v8 code cache file broken protect
Oct 7, 2023
99c5063
docs(vue-next): add register custom-component doc & use case
gguoyu Nov 1, 2023
740c5fe
chore(doc): update debug guide docs
iPel Nov 3, 2023
5e56612
fix(android): waterfall preloadItemNumber not working
iPel Nov 6, 2023
b62ca93
chore(android): add file license header
iPel Nov 6, 2023
9242cb3
fix(android): fix premature text truncation
iPel Nov 13, 2023
ba937bf
fix(android): fix `overScrollEnabled` can't cancel the system effect
iPel Nov 10, 2023
fadfc8c
fix(hippy-react): fix declaration for animation and scroll-view (#3510)
tomdyqin Nov 16, 2023
c64bd70
feat(vue): update vue3 & vue animation doc
zealotchen0 Nov 24, 2023
69aa73d
chore(workflow): update code owner
wwwcg Sep 20, 2023
c493c6e
fix(android): too many dispatch-tasks in background may cause anr
iPel Nov 29, 2023
96061da
fix(hippy-react): fix TransformsStyle declaration
tomdyqin Dec 6, 2023
dd29982
fix(hippy-react): fix GenericStyleProp recursive problem
tomdyqin Dec 7, 2023
7248925
fix(android): prevent layout helper queue hold too many objects
iPel Dec 7, 2023
293db15
chore(docs): improve first part of integration.md
ruifanyuan Dec 7, 2023
7a97313
chore(doc): move git and node installation step to common step on macOS
ruifanyuan Dec 7, 2023
9ced5ec
chore(doc): add copy instruction for android
ruifanyuan Dec 15, 2023
7c465ee
chore(docs): android custom native view how to layout spec
siguangli2018 Dec 27, 2023
299e489
fix(vue-next): remove unnecessary websocket binding judge
gguoyu Dec 27, 2023
f67461d
chore(ios): demo log format
ruifanyuan Dec 27, 2023
152c907
fix(vue-next): remove vue prod devtools global sign for ios&android
gguoyu Jan 5, 2024
94c6bbe
feat(android): add bugly app id register
siguangli2018 Jan 8, 2024
5f90d4a
feat(android): add ENABLE_BUGLY_REPORT config
siguangli2018 Jan 12, 2024
952f2f7
feature(vue-next): hippy vue next ssr (#3526)
gguoyu Jan 19, 2024
0826bf2
fix(ios): images with non-encoded urls are not displayed
wwwcg Jan 25, 2024
6401875
fix(ios): a rare multithreaded race crash when getting imageProviders
wwwcg Jan 25, 2024
b0d30d7
feat(android): add raw point for touch event dispatch
siguangli2018 Jan 25, 2024
3ce4476
fix(android): change raw name to window
siguangli2018 Jan 25, 2024
4cfdb8f
fix(ios): remove unused initialization param of HippyRootView
wwwcg Dec 29, 2023
a9a2fa7
fix(android): remove override getOverScrollMode
siguangli2018 Feb 1, 2024
57cea30
fix(android): remove ClipboardModule
siguangli2018 Feb 19, 2024
78cec49
fix(core): fix ADRLoader multithread bug
Feb 19, 2024
0a0d88d
fix(ios): remove the invalid log message
xuqingkuang Feb 5, 2024
f4abb9b
fix(ios): animation state of some scenes might be out of sync
wwwcg Feb 28, 2024
48fd18b
fix(ios): add a null protection to animator
wwwcg Feb 28, 2024
ea6bd3b
build(ios): fix no std:function build error on Xcode15.3
wwwcg Mar 7, 2024
aca49e5
fix(android): do scrollTo after scroll range reduce (#3770)
siguangli Mar 7, 2024
2dc1628
fix(android): add ScrollViewRenderNode (#3773)
siguangli Mar 7, 2024
6a2c515
feat(vue-next): compatible vue2 component tag name format
gguoyu Mar 26, 2024
aebad43
feat(vue): fix vue2 HippyText setText (#3792)
zealotchen0 Mar 26, 2024
7c13a42
fix(ios): turbo module not get called on destroyInstance event
wwwcg Apr 10, 2024
9bd3383
feat(doc): rename readme for security check
zealotchen0 Apr 16, 2024
e12164d
feat(doc): rename english readme for security check
zealotchen0 Apr 16, 2024
8aa1711
feat(doc): add README.md doc
zealotchen0 Apr 16, 2024
0aa7901
feat(doc): remove readme md
zealotchen0 Apr 17, 2024
48573ef
fix(ios): avoid zero size crash when using UIGraphics api in debug mode
wwwcg May 10, 2024
6e0903d
fix(ios): loss of touch end or cancel event in multi-finger scenarios
wwwcg May 11, 2024
78cf381
perf(ios): draw backgroundImage asynchronously for performance (#3844)
wwwcg May 14, 2024
9545568
feat(ios): pageIndex of ViewPager auto update after data changes
wwwcg May 15, 2024
a97ed66
fix(ios): auto-update of page index may lag by one frame in view pager
wwwcg May 16, 2024
880b9b5
chore(build): update husky commit hook command
wwwcg May 16, 2024
b84eedd
fix(ios): make getTurboModule return null when module not exist
wwwcg May 23, 2024
7433ced
fix(ios): potential deadlock in layout & unify all ScreenScale calls
wwwcg May 27, 2024
18bf885
fix(ios): add protection for targetContentOffset outliers in ViewPager
wwwcg May 28, 2024
67fadeb
fix(ios): resolve exception where touchView may be nil
wwwcg Jun 6, 2024
e157d18
build(ios): resolve module build issue
wwwcg Jun 12, 2024
817e8be
fix(ios): add CSS name matching semantics to fontFamily of TextInput
wwwcg Jun 12, 2024
4180517
build(ios): resolve module build issue of Layout Module
wwwcg Jun 12, 2024
76d1207
fix(android): resolve local ref overflow
1780243524 Jun 13, 2024
0e06849
chore(ios): add PrivacyInfo config for iOS
wwwcg Mar 7, 2024
041db25
feat(ios): add paragraph styles support for TextInput
wwwcg Jun 17, 2024
0c9d9de
fix(ios): responsable region issue of Textinput
wwwcg Jun 14, 2024
61ea1a1
chore(ios): remove unused code in TextView
wwwcg Jun 14, 2024
9be2145
fix(ios): resolve a multithreading issue in Animator
wwwcg Jun 27, 2024
428e473
fix(ios): simultaneous animationSets desynchronize over time
wwwcg Jun 28, 2024
de85871
fix(ios): improve synchronization between animationSets
wwwcg Jul 2, 2024
07d39fe
fix(ios): delay of animationSet not working under new sync mechanism
wwwcg Jul 3, 2024
4cd995d
fix(ios): add a null protection to animation target (new anim module)
wwwcg Jul 10, 2024
b07a29d
feat(ios): add HippyFontChangeTriggerNotification for native font update
wwwcg Jul 17, 2024
fb55d09
fix(ios): turbo module type convert nullptr crash
wwwcg Jul 19, 2024
6512de3
chore(ios): code quality improve
wwwcg Jul 19, 2024
e1207fe
fix(ios): iOS18 adaptation of TextView component
wwwcg Jul 29, 2024
ab4ddf7
chore(ios): add debug property for shadowView
wwwcg Jul 29, 2024
e51294a
fix(ios): improved accuracy of ViewPager's ScrollStateChanged API
wwwcg Aug 12, 2024
2b37433
fix(ios): improve accuracy of ViewPager's onPageScroll parameters (#3…
wwwcg Aug 13, 2024
2bbdfab
feat(react): add animation stop (#3998)
zealotchen0 Aug 20, 2024
611006c
feat(vue-next): fix beforeLoadStyle not work
zealotchen0 Aug 23, 2024
6ab892c
feat(vue): support ul refresh scroll (#4032)
zealotchen0 Sep 13, 2024
9f3724a
feat(ios): add initialContentIndex prop for ListView (#4029)
wwwcg Sep 20, 2024
2805232
chore(ios): add Invalid prop keyPath check
wwwcg Oct 12, 2024
7ef301c
fix(ios): websocket module support extra headers (#4069)
wwwcg Oct 15, 2024
053a116
feat(ios,js): refreshWrapper support viewPager (#3974)
wwwcg Oct 16, 2024
2d60d35
fix(web): fix webrender not show when length is 1 (#4087)
zealotchen0 Oct 23, 2024
59cc3dc
feat(web): fix image local path (#4095)
zealotchen0 Oct 29, 2024
193cd78
feat(chore): remove security check (#4096)
zealotchen0 Oct 29, 2024
cd6926b
fix(vue): fix compoent default prop value
Nov 26, 2024
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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ trim_trailing_whitespace = false

[COMMIT_EDITMSG]
max_line_length = 0

[*.java]
indent_size = 4
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules*
docs/
dist/
coverage
packages/hippy-vue/types
packages/hippy-vue-loader/lib
111 changes: 78 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2017-2022 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

const path = require('path');

function resolveVue(p) {
return path.resolve(__dirname, './node_modules/vue/src/', p);
}

function resolvePackage(src, extra = 'src') {
return path.resolve(__dirname, './packages/', src, extra);
}

module.exports = {
parser: 'vue-eslint-parser',
parserOptions: {
Expand All @@ -23,20 +53,25 @@ module.exports = {
'jsx-a11y',
],
overrides: [
{
files: ['*.test.ts'],
extends: ['plugin:jest/recommended'],
},
{
files: ['**/*.ts', '**/*.tsx'],
extends: ['eslint-config-tencent/ts'],
rules: {
// Allow interface export
'no-undef': 'off',

// Disable props checking
'react/prop-types': 'off',

// Force use 2 space for indent
'@typescript-eslint/indent': ['error', 2],

// Note you must disable the base rule as it can report incorrect errors
'no-unused-vars': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
parserOptions: {
project: ['./**/tsconfig.json'],
},
},
],
Expand All @@ -46,12 +81,15 @@ module.exports = {
es6: true,
},
globals: {
__PLATFORM__: 'readonly',
__GLOBAL__: 'readonly',
Hippy: 'readonly',
WebSocket: 'readonly',
__PLATFORM__: 'writable',
__GLOBAL__: 'writable',
Hippy: 'writable',
WebSocket: 'writable',
requestIdleCallback: 'writable',
cancelIdleCallback: 'writable',
},
rules: {
'no-restricted-globals': 'off',
semi: ['error', 'always'],
// Allow more than one component per file
'vue/one-component-per-file': 'off',
Expand All @@ -65,43 +103,25 @@ module.exports = {
// Allow event name not kebab-case
'vue/custom-event-name-casing': 'off',

'import/no-unresolved': 'off',

// Allow import name different with file name
'import/no-named-as-default': 'off',
// Allow component names not be multi-word
'vue/multi-word-component-names': 'off',

// Allow import cycle
'import/no-cycle': 'off',
'import/no-unresolved': 'off',

// Disable prop-types
'react/prop-types': 'off',

// Disable deprecated
'react/no-deprecated': 'off',

// Turn of extensions checking temporary
'import/extensions': 'off',
'react/no-unknown-property': 'off',

// https://github.com/benmosher/eslint-plugin-import/tree/master/docs/rules/namespace.md#allowcomputed
'import/namespace': [
'error',
{
allowComputed: true,
},
],
// Allow import from devDependencies
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'scripts/*.js',
// FIXME: seems not working
'packages/**/types/*.d.ts',
'packages/**/__tests__/*.test.js',
'examples/**/scripts/*.js',
],
},
],
// Allow tsx as the jsx file
'react/jsx-filename-extension': [
'error',
Expand All @@ -116,6 +136,8 @@ module.exports = {
'warn',
{
allow: [
'__PLATFORM__',
'__HIPPYCURDIR__',
'__ISHIPPY__',
'__GLOBAL__',
'__HIPPYNATIVEGLOBAL__',
Expand All @@ -130,5 +152,28 @@ module.exports = {
react: {
version: 'detect', // React version. "detect" automatically picks the version you have installed.
},
'import/ignore': [resolveVue('/')],
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', 'd.ts'],
},
alias: {
map: [
['@vue', resolvePackage('hippy-vue')],
['@router', resolvePackage('hippy-vue-router')],
['@css-loader', resolvePackage('hippy-vue-css-loader')],
['@native-components', resolvePackage('hippy-vue-native-components')],
['vue', resolveVue('core/index')],
['web', resolveVue('platforms/web')],
['core', resolveVue('core')],
['shared', resolveVue('shared')],
['sfc', resolveVue('sfc')],
['he', path.resolve(__dirname, './packages/hippy-vue/src/util/entity-decoder')],
['@hippy-vue-next-style-parser', resolvePackage('hippy-vue-next-style-parser')],
['@hippy-vue-next', resolvePackage('hippy-vue-next')],
['@hippy-vue-next-server-renderer', resolvePackage('hippy-vue-next-server-renderer')],
],
},
},
},
};
5 changes: 2 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
*.cr.so filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
66 changes: 65 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,68 @@
# https://help.github.com/en/articles/about-code-owners
#

* @ilikethese @churchill-zhang @zoomchan-cxj @siguangli @ozonelmy
# universal files
* @ilikethese @etkmao

# cmake related
*.cmake @ilikethese @etkmao
CMakeLists.txt @ilikethese @etkmao

# driver: js
/.eslintignore @zealotchen0
/.eslintrc.js @zealotchen0
/.nycrc @zealotchen0
/package.json @zealotchen0
/package-lock.json @zealotchen0
/ava.config.js @zealotchen0
/core/ @ilikethese @etkmao
/core/js/ @zealotchen0
/packages/ @zealotchen0
/packages/hippy-web-renderer/ @pba-cra @zealotchen0

# framework: android
/android/ @siguangli
/android/**/src/main/jni/ @ilikethese @etkmao

# framework: ios
/ios/ @wwwcg @ruifanyuan

# dom: layout
/layout/ @ilikethese

# gh: config
/.github/ @zealotchen0

# doc: example
/examples/ @zealotchen0
/examples/hippy-*-demo/ @zealotchen0
/examples/android-demo/ @siguangli
/examples/android-demo/res/ @zealotchen0
/examples/ios-demo/ @wwwcg @ruifanyuan
/examples/ios-demo/res/ @zealotchen0
/static/ @zealotchen0

# doc: pages
/*.md @zealotchen0
/docs/ @zealotchen0

# build: gradle
/gradle.properties @siguangli
/gradlew @siguangli
/gradlew.bat @siguangli
/settings.gradle @siguangli
/build.gradle @siguangli
/gradle/ @siguangli

# build: xcode
/hippy.podspec @wwwcg @ruifanyuan
/_Pods.xcodeproj/ @wwwcg @ruifanyuan

# build: config
/buildconfig/ @ilikethese @etkmao

# build: js
/tsdoc.json @zealotchen0
/tsconfig.json @zealotchen0
/lerna.json @zealotchen0
/scripts/ @zealotchen0
6 changes: 4 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ Hi! I'm really excited that you are interested in contributing to Hippy. Before
- [Code of Conduct](https://github.com/Tencent/Hippy/blob/master/.github/CODE_OF_CONDUCT.md)
- [Issue Reporting Guidelines](#issue-reporting-guidelines)
- [Pull Request Guidelines](#pull-request-guidelines)
- [Development Setup](https://github.com/Tencent/Hippy#getting-started)
- [Project Structure](https://github.com/Tencent/Hippy#project-structure)
- [Development Setup](https://github.com/Tencent/Hippy#-getting-started)
- [Project Structure](https://github.com/Tencent/Hippy#-project-structure)

## Issue Reporting Guidelines

- Always use [Bug Report](https://github.com/Tencent/Hippy/blob/master/.github/ISSUE_TEMPLATE/bug_report.md) or [Feature Request](https://github.com/Tencent/Hippy/blob/master/.github/ISSUE_TEMPLATE/feature_request.md) to create new issues.

## Pull Request Guidelines

- Setting up your local environment to get started. You will need have [git](https://git-scm.com/) and [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) installed locally, then run `npm install` to download all needed dependencies. These are detailed in the [Development Setup guide](https://github.com/Tencent/Hippy#-getting-started).

- Checkout a topic branch from the relevant branch, e.g. `master`, and merge back against that branch.

- Test cases have been added/updated/passed for the code you will submit.
Expand Down
74 changes: 74 additions & 0 deletions .github/ISSUE_TEMPLATE/crash_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: 🐛 Crash Report
description: File a crash report
title: "A crash occurred"
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this crash report!

Please fill in as much of the following form as you're able.
- type: input
attributes:
label: Version
description: Which version of Hippy SDK are you using?
placeholder: e.g. 1.0.0
- type: dropdown
attributes:
label: Platform
description: What platform are you running on?
options:
- Android
- iOS
- Windows
- macOS
validations:
required: true
- type: dropdown
attributes:
label: Architecture
description: What is your your device architecture?
options:
- arm
- arm64
- x86
- x86_64
validations:
required: true
- type: textarea
attributes:
label: Logs
description: Please copy and paste crash log output
placeholder: |
Crash log output like the following example:
```
pid: 4637, tid: 4637, name: crasher >>> crasher <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'some_file.c:123: some_function: assertion "false" failed'
r0 00000000 r1 0000121d r2 00000006 r3 00000008
r4 0000121d r5 0000121d r6 ffb44a1c r7 0000010c
r8 00000000 r9 00000000 r10 00000000 r11 00000000
ip ffb44c20 sp ffb44a08 lr eace2b0b pc eace2b16
backtrace:
#00 pc 0001cb16 /system/lib/libc.so (abort+57)
#01 pc 0001cd8f /system/lib/libc.so (__assert2+22)
#02 pc 00001531 /system/bin/crasher (do_action+764)
#03 pc 00002301 /system/bin/crasher (main+68)
#04 pc 0008a809 /system/lib/libc.so (__libc_init+48)
#05 pc 00001097 /system/bin/crasher (_start_main+38)
```
- type: textarea
attributes:
label: Reproduce Condition
description: How often does the crash happen? Are there some reproducing conditions?
placeholder: |
You can use the following template:
```
Meeting the following conditions, there is a N percent chance of crashing:
1. condition 1...
2. contision 2...
```
- type: textarea
attributes:
label: Additional Information
description: Tell us anything else you think we should know.
12 changes: 7 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Before submitting a new pull request, please make sure:
# Pre-PR Checklist

- [ ] Test cases have been added/updated/passed for the code you will submit.
- [ ] Documentation has added or updated.
- [ ] Commit message is following the [Convention Commit](https://conventionalcommits.org/) guideline with maximum 72 characters.
- [ ] Squash the repeat code commits, short patches are welcome.
- [x] I added/updated relevant documentation.
- [x] I followed the [Convention Commit](https://conventionalcommits.org/) guideline with maximum 72 characters to submit commit message.
- [x] I squashed the repeated code commits.
- [x] I signed the [CLA].
- [x] I added/updated test cases to check the change I am making.
- [x] All existing and new tests are passing.
Loading
Loading