Skip to content

Commit

Permalink
feat(webrenderer): merge webrenderer repo to hippy repo (Tencent#2609)
Browse files Browse the repository at this point in the history
* feat(webrenderer): re init hippy-web-renderer

* test(test): change test logic

* style(eslint): fix lint warn

* refactor(copyright): add copyright info

* refactor(copyright): add copyright info

* revert(lockfile): revert package-lock.json

* refactor(conflict): fix type conflict

* feat(vue): support to merge styles on root element of child component

* refactor(ios): make project build with library

* fix(ios): need to callback when url loading error

* fix(android): fix setTextColor not working

* ci(workflows): add github actions for project calc code of lines

* refactor(webrenderer): version 0.0.4 publish

* ci(workflows): android build tests will run all build types

* fix(workflows): fix CodeQL languages detection bug on PR request

* ci(workflows): replaced obsolete workflow command

replaced obsolete workflow output command `set-output`
with `GITHUB_OUTPUT` environment file.

* fix(vue-css-loader): update loader-utils to safe version

* ci(workflows): CodeQL analyses will check all Android projects

* feat(workflows): add project code line exclude files support

* fix(workflow): fix CodeQL exception when default run

* fix(iOS): refresh header not rebound automatically

xxx

* fix(iOS): delete tmp log

* ci(workflows): add ios artifact release

* ci(workflow): add minimum V8 version test into android build tests

* feat(ci): implement iOS project artifact compare

* feat(workflows): iOS build tests add different configurations

* refactor(ios): use work space to manager projects

* refactor(ios): use work space to manager projects

* feat(workflows): remove unnecessary `Cocoapods` installation step

* feat(workflows): `XCode` project adaptation

* feat(core): adapt to different v8 versions

* refactor(ios): modify project configurations

rename scheme from 'hippy' to 'HippyLibrary',rename target name from 'hippy' to 'HippyLibrary'

keep static library product name unchanged

* feat(workflows): change `XCode` project scheme name

* fix(android): waterfall banner not affected by parent honrizon padding;

* feat(android,ios,js): add getBoundingClientRect method (Tencent#2651)

* feat(android): add `getBoundingClientRect` api [WIP]

* feat(vue,react): add getBoundingClientRect api

* feat(android): add `getBoundingClientRect` api

* feat(ios): add getBoundingClientRect method

* docs(homepage): add getBoundingClientRect doc

* fix(demo): rm redundant file (#4)

* docs(homepage): add getBoundingClientRect doc

* fix(demo): rm redundant file

* fix(demo): rm redundant file

* refactor(vue-next-demo): rm unused code

* feat(android): add `getBoundingClientRect` api

Co-authored-by: iPel <[email protected]>
Co-authored-by: zoomchan-cxj <[email protected]>
Co-authored-by: siguangli <[email protected]>

* fix(react,vue): fix getBoundingClientRect errMsg syntax

* fix(ios): correct hittest when view has animation

* fix(ios): subviews of animated view cannot be clicked

* fix(android): edit `getBoundingClientRect` callback format

* fix(ios): edit `getBoundingClientRect` callback format

* fix(react,vue): change measureInAppWindow error return value

* fix(ios): need to extern as C if cpp is defined

* fix(workflows): fix backtrace parsing incorrect problem in crash report

* chore(deps): bump loader-utils in /packages/hippy-vue-css-loader

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(vue): add whitespace handler config

* fix(android): horizontal scroll view smoothScrollToPage crash

* feat(v8): heap limit increases considering the old generation capacity

* feat(core): add performance api for new x5 v8

* fix(v8): fix `V8` OOM crash when inspector enable the js debugger

* feat(ios,android,vue): add load result param for webView's onLoadEnd api (Tencent#2667)

* feat(ios,vue): add load result param for webView's onLoadEnd api

* feat(android): add load result param for webView's onLoadEnd api

* feat(vue, doc): fix onLoadEnd params and update docs

* feat(vue, doc): resolve pr problem

* feat(vue, doc): resolve pr problem

Co-authored-by: wwwcg <[email protected]>

* perf(vue): ignore to append existed node to improve router performance

* refactor(vue-next): remove Date.now in trace log

* chore(docs): add homepage and README some docs

* refactor(ios): set xcode project compatility vertion to xcode 10.0

* feat(vue): add beforeRenderToNative hook to support computed style

* fix(android): fix JSI cause JNI local reference table overflow

* fix(core): fix the problem of multi-threading at startup time

* ci(workflows): adjust the labeling rules

* chore(ios): set cpp version to c++17

* feat(workflows): add auto-merge labeler in PR

* feat(workflows): change stale label name

* feat(workflows): change license check configuration file path

* ci(workflows): add js release workflow

* feat(workflows): add PR review notification

* ci(codeowner): change demo path

* fix(core): fix reload bug for inspector

* ci(workflows): fix js release issue

* feat(android): add `nestedScrollPriority` for `ListView` and `ScrollView` (Tencent#2744)

* fix(android): nested scroll conflict

* fix(android): nested scroll conflicts with pull refresh

* feat(android): add `nestedScrollPriority` for ListView and ScrollView

* feat(android): squash branch scroll_conflict (#6)

* fix(android): nested scroll feature

  - edit priority api
  - scrollview prevent nested scroll when enabled paging
  - fix viewpager vertical issue
  - viewpager nested scroll
  - translate comments

* fix(android): Eltonqin/netscroll bugfix (#3)

* fix(android):HorizonScrollView may throw exception when handle onInterceptTouchEvent

* fix(android):post task still run after remove

* fix(android):post task still run after remove,modify format

Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll feature

  - viewpager nested scroll issue

* feat(docs): update docs

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll conflicts with pull refresh

* feat(docs, demo): update docs and demos

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): update scrollview consumed value

* refactor(js): perf nestedScrollPriority demo & docs (#9)

* refactor(js): perf nestedScrollPriority demo & docs

* refactor(js): add nested scroll more pager item

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>
Co-authored-by: Zoom Chan <[email protected]>

* Revert "feat(android): add `nestedScrollPriority` for `ListView` and `ScrollView` (Tencent#2744)"

This reverts commit 2644658.

* fix(android): nested scroll conflict

* fix(android): nested scroll conflicts with pull refresh

* feat(android): add `nestedScrollPriority` for ListView and ScrollView

* feat(android): squash branch scroll_conflict (#6)

* fix(android): nested scroll feature

  - edit priority api
  - scrollview prevent nested scroll when enabled paging
  - fix viewpager vertical issue
  - viewpager nested scroll
  - translate comments

* fix(android): Eltonqin/netscroll bugfix (#3)

* fix(android):HorizonScrollView may throw exception when handle onInterceptTouchEvent

* fix(android):post task still run after remove

* fix(android):post task still run after remove,modify format

Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll feature

  - viewpager nested scroll issue

* feat(docs): update docs

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll conflicts with pull refresh

* feat(docs, demo): update docs and demos

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): update scrollview consumed value

* refactor(js): perf nestedScrollPriority demo & docs (#9)

* refactor(js): perf nestedScrollPriority demo & docs

* refactor(js): add nested scroll more pager item

* ci(workflows): setup node to npm registry

* fix(ios): animated image is not released when the view is removed

* feat(workflows): workflow add `squash-merge` action

* feat(workflows): use `Hippy Action Bot` as action executor

* ci(labeler): add new labels (Tencent#2762)

* ci(codeowner): change codeowner classificatioin (Tencent#2761)

* Revert "fix(ios): animated image is not released when the view is removed"

This reverts commit 6af1958.

* fix(devtools): fix try catch exception when update context

* feat(workflows): optimizing pull request greeting message (Tencent#2765)

Co-authored-by: Zoom Chan <[email protected]>

* fix(workflows): change workflows bot app key and id (Tencent#2768)

* fix(workflows): fix triage outputs incorrect problem in crash report (Tencent#2767)

* feat(workflows): integrate `squash-merge` and `rebase-merge` action (Tencent#2772)

* fix(workflows): change `pull_request_help_needed` label name

* fix(ios): avoid animated image multi thread operation crash

* fix(devtools): callback fail when debug ws disconnect

* feat(workflows): add pull request merge guard and update it's action

* refactor(workflows): refactor pull requests checks approval process

* ci(codeowner): change CODEOWNERS classification (Tencent#2799)

* fix(workflows): change mentioned user in the PR review notification (Tencent#2801)

* chore(commitlint): adjust rules for length of commit message check (Tencent#2807)

* feat(workflows): users cannot perform merge action on their own PRs (Tencent#2809)

* fix(workflows): update Github bot app key and id configuration (Tencent#2810)

* refactor(ios): perfect copyright notice (Tencent#2821)

* feat(vue-next): add beforeRenderToNative hook (Tencent#2775)

* chore(docs,demo): update WebRenderer docs & demo (Tencent#2566)

* chore(hippy-react-demo): remove hippy:dev from web:dev

* chore(hippy-react-demo): fix image path error in web-renderer dev mode

* docs(web): Update integration.md and package.json

Co-authored-by: questguo <[email protected]>
Co-authored-by: Zoom Chan <[email protected]>

* fix(ios): fix ConsoleModule.log not working (Tencent#2812)

Co-authored-by: Zoom Chan <[email protected]>

* feat(core): dynamic loading support custom protocols (Tencent#2827)

* feat(core): allow all schemas to dynamic load (Tencent#2829)

* chore(deps): bump json5 and loader-utils (Tencent#2830)

Removes [json5](https://github.com/json5/json5). It's no longer used after updating ancestor dependency [loader-utils](https://github.com/webpack/loader-utils). These dependencies need to be updated together.

Updates `loader-utils` from 1.4.2 to 3.2.1
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/master/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.2...v3.2.1)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(bump): update loader-utils to 1.4.2

* feat(workflows): add regular requested reviewers notification

* chore(bump): update loader-utils to 2.0.4 to fix json5 issue (Tencent#2833)

* feat(workflows): PR review notification add mention user (Tencent#2834)

* feat(core): support android dimensions to extend customized parameters

* chore(example): rebuild examples to update code

* feat(ios): add method to create custom scrollview (Tencent#2839)

* fix(android): remove web url judge in fetchResourceWithUri (Tencent#2840)

* chore(deps): bump json5 from 1.0.1 to 1.0.2

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix(android): text with negative letterSpacing wraps at wrong position (Tencent#2843)

Co-authored-by: Zoom Chan <[email protected]>

* chore(codeowner): change settings.gradle codeowner

* feat(workflows): PR review notification filter draft PR (Tencent#2854)

* feat(workflows): add pull requests auto updater (Tencent#2855)

* feat(android): enable Safe ICF to optimize binary size (Tencent#2857)

* fix(core): add handle_scope for v8 exception (Tencent#2860)

* feat(workflows): only uses non-merge commits as valid commits (Tencent#2862)

Co-authored-by: Zoom Chan <[email protected]>

* feat(workflows): add pull requests auto merger

* fix(workflows): fix rebase-merge label name

* feat(workflows): change review notification schedule

* fix(workflows): change auto_merger comment message

* fix(devtools): remove regular expression injection (Tencent#2865)

Co-authored-by: Zoom Chan <[email protected]>

* fix(webrenderer): fix animation valid logic error

* style(lint): fix lint errors

* feat(workflows): add self-hosted runners monitor

* chore(deps): bump ua-parser-js in /packages/hippy-react-web

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.31 to 0.7.33.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md)
- [Commits](faisalman/ua-parser-js@0.7.31...0.7.33)

---
updated-dependencies:
- dependency-name: ua-parser-js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(workflows): skip privilege escalation when conditions are met

skip privilege escalation when
invoked by a user with admin role
or contains only one normal commit.

* chore(codeowner): add C++ codeowner

* refactor(workflows): refactor CodeQL analyses script to save resources

* feat(workflows): use variables that only exist in pull requests event

* fix(workflows): fix the workflow exception caused by cancel status

* perf(workflows): use ubuntu replace macos in order to improve efficiency

* feat(workflows): optimize self-hosted runner alarm strategy

* revert(lockfile): revert package-lock.json

* refactor(ios): make project build with library

* ci(workflows): add github actions for project calc code of lines

* refactor(webrenderer): version 0.0.4 publish

* ci(workflows): android build tests will run all build types

* fix(workflows): fix CodeQL languages detection bug on PR request

* ci(workflows): replaced obsolete workflow command

replaced obsolete workflow output command `set-output`
with `GITHUB_OUTPUT` environment file.

* fix(vue-css-loader): update loader-utils to safe version

* ci(workflows): CodeQL analyses will check all Android projects

* feat(workflows): add project code line exclude files support

* fix(workflow): fix CodeQL exception when default run

* fix(iOS): refresh header not rebound automatically

xxx

* fix(iOS): delete tmp log

* ci(workflows): add ios artifact release

* ci(workflow): add minimum V8 version test into android build tests

* feat(ci): implement iOS project artifact compare

* feat(workflows): iOS build tests add different configurations

* refactor(ios): use work space to manager projects

* refactor(ios): use work space to manager projects

* feat(workflows): remove unnecessary `Cocoapods` installation step

* feat(workflows): `XCode` project adaptation

* refactor(ios): modify project configurations

rename scheme from 'hippy' to 'HippyLibrary',rename target name from 'hippy' to 'HippyLibrary'

keep static library product name unchanged

* feat(workflows): change `XCode` project scheme name

* feat(android,ios,js): add getBoundingClientRect method (Tencent#2651)

* feat(android): add `getBoundingClientRect` api [WIP]

* feat(vue,react): add getBoundingClientRect api

* feat(android): add `getBoundingClientRect` api

* feat(ios): add getBoundingClientRect method

* docs(homepage): add getBoundingClientRect doc

* fix(demo): rm redundant file (#4)

* docs(homepage): add getBoundingClientRect doc

* fix(demo): rm redundant file

* fix(demo): rm redundant file

* refactor(vue-next-demo): rm unused code

* feat(android): add `getBoundingClientRect` api

Co-authored-by: iPel <[email protected]>
Co-authored-by: zoomchan-cxj <[email protected]>
Co-authored-by: siguangli <[email protected]>

* fix(react,vue): fix getBoundingClientRect errMsg syntax

* fix(ios): correct hittest when view has animation

* fix(ios): subviews of animated view cannot be clicked

* fix(android): edit `getBoundingClientRect` callback format

* fix(ios): edit `getBoundingClientRect` callback format

* fix(react,vue): change measureInAppWindow error return value

* fix(workflows): fix backtrace parsing incorrect problem in crash report

* chore(deps): bump loader-utils in /packages/hippy-vue-css-loader

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat(vue): add whitespace handler config

* feat(v8): heap limit increases considering the old generation capacity

* fix(v8): fix `V8` OOM crash when inspector enable the js debugger

* chore(docs): add homepage and README some docs

* refactor(ios): set xcode project compatility vertion to xcode 10.0

* feat(vue): add beforeRenderToNative hook to support computed style

* fix(core): fix the problem of multi-threading at startup time

* ci(workflows): adjust the labeling rules

* chore(ios): set cpp version to c++17

* feat(workflows): add auto-merge labeler in PR

* ci(workflows): add js release workflow

* feat(workflows): add PR review notification

* ci(codeowner): change demo path

* fix(core): fix reload bug for inspector

* ci(workflows): fix js release issue

* feat(android): add `nestedScrollPriority` for `ListView` and `ScrollView` (Tencent#2744)

* fix(android): nested scroll conflict

* fix(android): nested scroll conflicts with pull refresh

* feat(android): add `nestedScrollPriority` for ListView and ScrollView

* feat(android): squash branch scroll_conflict (#6)

* fix(android): nested scroll feature

  - edit priority api
  - scrollview prevent nested scroll when enabled paging
  - fix viewpager vertical issue
  - viewpager nested scroll
  - translate comments

* fix(android): Eltonqin/netscroll bugfix (#3)

* fix(android):HorizonScrollView may throw exception when handle onInterceptTouchEvent

* fix(android):post task still run after remove

* fix(android):post task still run after remove,modify format

Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll feature

  - viewpager nested scroll issue

* feat(docs): update docs

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll conflicts with pull refresh

* feat(docs, demo): update docs and demos

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): update scrollview consumed value

* refactor(js): perf nestedScrollPriority demo & docs (#9)

* refactor(js): perf nestedScrollPriority demo & docs

* refactor(js): add nested scroll more pager item

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>
Co-authored-by: Zoom Chan <[email protected]>

* Revert "feat(android): add `nestedScrollPriority` for `ListView` and `ScrollView` (Tencent#2744)"

This reverts commit 2644658.

* fix(android): nested scroll conflict

* fix(android): nested scroll conflicts with pull refresh

* feat(android): add `nestedScrollPriority` for ListView and ScrollView

* feat(android): squash branch scroll_conflict (#6)

* fix(android): nested scroll feature

  - edit priority api
  - scrollview prevent nested scroll when enabled paging
  - fix viewpager vertical issue
  - viewpager nested scroll
  - translate comments

* fix(android): Eltonqin/netscroll bugfix (#3)

* fix(android):HorizonScrollView may throw exception when handle onInterceptTouchEvent

* fix(android):post task still run after remove

* fix(android):post task still run after remove,modify format

Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll feature

  - viewpager nested scroll issue

* feat(docs): update docs

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): nested scroll conflicts with pull refresh

* feat(docs, demo): update docs and demos

Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>

* fix(android): update scrollview consumed value

* refactor(js): perf nestedScrollPriority demo & docs (#9)

* refactor(js): perf nestedScrollPriority demo & docs

* refactor(js): add nested scroll more pager item

* ci(workflows): setup node to npm registry

* fix(ios): animated image is not released when the view is removed

* feat(workflows): workflow add `squash-merge` action

* feat(workflows): use `Hippy Action Bot` as action executor

* ci(labeler): add new labels (Tencent#2762)

* ci(codeowner): change codeowner classificatioin (Tencent#2761)

* Revert "fix(ios): animated image is not released when the view is removed"

This reverts commit 6af1958.

* feat(workflows): optimizing pull request greeting message (Tencent#2765)

Co-authored-by: Zoom Chan <[email protected]>

* fix(workflows): change workflows bot app key and id (Tencent#2768)

* fix(workflows): fix triage outputs incorrect problem in crash report (Tencent#2767)

* feat(workflows): integrate `squash-merge` and `rebase-merge` action (Tencent#2772)

* fix(workflows): change `pull_request_help_needed` label name

* fix(ios): avoid animated image multi thread operation crash

* feat(workflows): add pull request merge guard and update it's action

* refactor(workflows): refactor pull requests checks approval process

* ci(codeowner): change CODEOWNERS classification (Tencent#2799)

* fix(workflows): change mentioned user in the PR review notification (Tencent#2801)

* feat(workflows): users cannot perform merge action on their own PRs (Tencent#2809)

* fix(workflows): update Github bot app key and id configuration (Tencent#2810)

* refactor(ios): perfect copyright notice (Tencent#2821)

* feat(vue-next): add beforeRenderToNative hook (Tencent#2775)

* chore(deps): bump json5 and loader-utils (Tencent#2830)

Removes [json5](https://github.com/json5/json5). It's no longer used after updating ancestor dependency [loader-utils](https://github.com/webpack/loader-utils). These dependencies need to be updated together.

Updates `loader-utils` from 1.4.2 to 3.2.1
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/master/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.2...v3.2.1)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(bump): update loader-utils to 1.4.2

* feat(workflows): add regular requested reviewers notification

* chore(bump): update loader-utils to 2.0.4 to fix json5 issue (Tencent#2833)

* feat(workflows): PR review notification add mention user (Tencent#2834)

* chore(example): rebuild examples to update code

* chore(deps): bump json5 from 1.0.1 to 1.0.2

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(codeowner): change settings.gradle codeowner

* feat(workflows): PR review notification filter draft PR (Tencent#2854)

* fix(core): add handle_scope for v8 exception (Tencent#2860)

* feat(workflows): only uses non-merge commits as valid commits (Tencent#2862)

Co-authored-by: Zoom Chan <[email protected]>

* feat(workflows): add pull requests auto merger

* fix(workflows): fix rebase-merge label name

* feat(workflows): change review notification schedule

* fix(workflows): change auto_merger comment message

* style(lint): fix lint errors

* feat(workflows): use classic PAT instead of Github App Token

* feat(workflows): add self-hosted runners monitor

* feat(workflows): skip privilege escalation when conditions are met

skip privilege escalation when
invoked by a user with admin role
or contains only one normal commit.

* chore(codeowner): add C++ codeowner

* refactor(workflows): refactor CodeQL analyses script to save resources

* feat(workflows): use variables that only exist in pull requests event

* fix(workflows): fix the workflow exception caused by cancel status

* perf(workflows): use ubuntu replace macos in order to improve efficiency

* feat(workflows): optimize self-hosted runner alarm strategy

* refactor(webrenderer): fix eslint warnings && add build

* chore(webrenderer): fix webrenderer build error

* chore(webrenderer): update build logic and pack.json

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: zoomchan-cxj <[email protected]>
Co-authored-by: luomy <[email protected]>
Co-authored-by: iPel <[email protected]>
Co-authored-by: superzheng <[email protected]>
Co-authored-by: luoyibu <[email protected]>
Co-authored-by: pollyzhang <[email protected]>
Co-authored-by: FE-xiaoJiang <[email protected]>
Co-authored-by: Ray <[email protected]>
Co-authored-by: siguangli <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: maxli <[email protected]>
Co-authored-by: chestershen <[email protected]>
Co-authored-by: Super Zheng <[email protected]>
Co-authored-by: HOHOHOTangoDown <[email protected]>
Co-authored-by: eltonqin <[email protected]>
Co-authored-by: xpyue <[email protected]>
Co-authored-by: xpyue <[email protected]>
Co-authored-by: ivanfanwu <[email protected]>
Co-authored-by: DMX <[email protected]>
Co-authored-by: questguo <[email protected]>
Co-authored-by: churchill-zhang <[email protected]>
  • Loading branch information
22 people authored Feb 3, 2023
1 parent 5418811 commit 421daf2
Show file tree
Hide file tree
Showing 112 changed files with 39,157 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/hippy-react-web/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ global.Hippy = {
}
},
};
// @ts-ignore
global.getTurboModule = () => {
warn('getTurboModule is unsupported');
return {};
Expand Down
3 changes: 3 additions & 0 deletions packages/hippy-vue-next-style-parser/api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"extractorMessageReporting": {
"ae-forgotten-export": {
"logLevel": "none"
},
"ae-wrong-input-file-type": {
"logLevel": "none"
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions packages/hippy-vue-next/api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
},
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-wrong-input-file-type": {
"logLevel": "none"
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions packages/hippy-web-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## 0.0.1

### Added
* initial commit, based on burtonsun's working.

## 0.0.4
### Added
* support gradient text color
* support animation bézier curve

### Fix
* refactor UIManagerModule, change style diff logic, improve performance
* fix stack context error
* fix tint color error
* fix line height error
* fix text numberOfLines no use error

54 changes: 54 additions & 0 deletions packages/hippy-web-renderer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Hippy Web Renderer

> make results based on the `hippy-react` and `hippy-vue` frameworks run to the browser
![Hippy Group](https://img.shields.io/badge/group-Hippy-blue.svg)

## Introduction
`@hippy/web-renderer`is equivalent to the native renderer,make results based on the `hippy-react` and `hippy-vue` frameworks run to the browser。

Keeps the same interface as `hippy-react` and `hippy-vue`

The project is working in progress

## Feature
* Use the same scheme as android and ios,use results based on the `hippy-react` and `hippy-vue` to render。Maintain a high degree of consistency with the native side in terms of mechanism and results
* Support `react` and `vue`
* Results based on the `hippy-react` and `hippy-vue` frameworks,run directly on web、android and ios。

## How to use

```javascript
import { Hippy } from '@hippy/react';
import App from './app';

new Hippy({
appName: 'Demo',
entryPage: App,
silent: false,
}).start();

```

## Limited

Due to differences in browser and native implementations,some feature not support (Javascript can't hack),at the moment developer need self-dispose。

example: change statue bar color。

Hippy is only a UI-Framework, you need to handle such as: url information parsing, and parameters passed to the application。
Supplement front-end components or modules that are equivalent to developer-defined terminal components or modules.

Due to `hippy-react` and `hippy-vue` have more coupling with `global OS parameters` in environment information,so the `OS` must be
`android` or `ios`.Web-Renderer set `OS` value `android`,and all callBack and event is same as android platform

## Wait to do

1. WaterfallView组件补充
2. AnimationSet模块的补充
3. Platform-Localization模块的补充
4. Dynamic-load能力的补充
5. List.rowShouldSticky\bounces\overScrollEnabled\showScrollIndicator\rowShouldSticky属性补充
6. ScrollView.scrollIndicatorInsets\showScrollIndicator\showsHorizontalScrollIndicator\showsVerticalScrollIndicator属性补充
7. Image.capInsets属性补充

51 changes: 51 additions & 0 deletions packages/hippy-web-renderer/README.zh_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Hippy Web Renderer

> 将基于 `hippy-react``hippy-vue`框架开发完成的结果运行到浏览器上
![Hippy Group](https://img.shields.io/badge/group-Hippy-blue.svg)

## 介绍
`@hippy/web-renderer`是与终端渲染层等价的方案,用以将 `hippy-react``hippy-vue`的构建产物运行到浏览器上。
`hippy-react``hippy-vue`保持了一样到接口。
该项目目前还在持续的建设中

## 特性
* 使用更android和ios一样的方案,对`hippy-react``hippy-vue`的产物进行解析并渲染成符合预期的效果。从机制和结果上与native侧保持高度一致性
* 可以同时支持前端的react和vue框架,甚至是未来的其它前端ui框架。
* 使用与android和ios一样的构建产物,无需为web场景单独构建产物。在一些场景下甚至可以替代android或ios的渲染方式,如:高频ui交互的场景。

## 使用方法

```javascript
import { Hippy } from '@hippy/react';
import App from './app';

new Hippy({
appName: 'Demo',
entryPage: App,
silent: false,
}).start();

```

## 限制

因为浏览器和终端的实现有所不同,部分特性无法实现(Javascript 也无法 hack),这就需要开发者进行额外的适配或者在web场景下丢弃某些特性。

如:状态栏的样式颜色修改,锁定屏幕方向以及一些android或ios系统独有的特性如:ios的list子节点滑动删除

hippy的方案是一个ui框架,所以在web场景下需要自己处理如:url信息的解析,参数传递给应用。补充与开发者自定义的终端组件或模块等价的前端组件或模块。

因为 `hippy-react``hippy-vue`有较多的与环境信息中的OS参数耦合的,必须要是android或者是ios。所以Web-Renderer为了让这两个框架能够统一的运行下去,
将环境信息中的OS参数设置成了android,并且所有的参数、事件分发的形式都是按照android的分发标准进行的。

## 待办事宜

1. WaterfallView组件补充
2. AnimationSet模块的补充
3. Platform-Localization模块的补充
4. Dynamic-load能力的补充
5. List.rowShouldSticky\bounces\overScrollEnabled\showScrollIndicator\rowShouldSticky属性补充
6. ScrollView.scrollIndicatorInsets\showScrollIndicator\showsHorizontalScrollIndicator\showsVerticalScrollIndicator属性补充
7. Image.capInsets属性补充

32 changes: 32 additions & 0 deletions packages/hippy-web-renderer/e2e/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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.
*/
module.exports = {
globals: {
mocha: true,
it: true,
describe: true,
chai: true,
expect: true,
beforeEach: true,
globalThis: true,
snapshot: true,
e2e: true,
},
};
3 changes: 3 additions & 0 deletions packages/hippy-web-renderer/e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
./react/src/spec/*/*.js
./react/src/spec/*.js
index.js
21 changes: 21 additions & 0 deletions packages/hippy-web-renderer/e2e/react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions packages/hippy-web-renderer/e2e/react/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
70 changes: 70 additions & 0 deletions packages/hippy-web-renderer/e2e/react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"name": "hippy-env",
"version": "2.0.0",
"private": true,
"main": "src/main.js",
"webMain": "src/main.web.js",
"author": "OpenHippy Team",
"license": "Apache-2.0",
"description": "Demo app for hippy-react",
"repository": "https://github.com/Tencent/Hippy/tree/master/examples/hippy-react-demo",
"scripts": {
"web:dev": "webpack serve --config ./scripts/hippy-webpack.web-renderer.dev.js"
},
"keywords": [
"Hippy",
"React"
],
"dependencies": {
"@hippy/react": "latest",
"@hippy/react-reconciler": "react17",
"@hippy/react-web": "latest",
"@hippy/rmc-list-view": "latest",
"@hippy/rmc-pull-to-refresh": "latest",
"@hippy/web-renderer": "latest",
"animated-scroll-to": "^2.2.0",
"ejs": "^3.1.8",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router": "~5.1.2",
"react-router-dom": "~5.1.2",
"regenerator-runtime": "^0.13.5",
"swiper": "^6.7.0"
},
"devDependencies": {
"mocha": "^10.1.0",
"parcel": "^2.4.0",
"@babel/core": "^7.12.0",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-decorators": "^7.10.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
"@babel/plugin-transform-async-to-generator": "^7.5.0",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/polyfill": "^7.12.0",
"@babel/preset-env": "^7.12.0",
"@babel/preset-react": "^7.9.4",
"@hippy/debug-server-next": "latest",
"@hippy/hippy-dynamic-import-plugin": "^2.0.0",
"@hippy/hippy-hmr-plugin": "^0.1.0",
"@hippy/hippy-react-refresh-webpack-plugin": "^0.5.5",
"@hippy/rejection-tracking-polyfill": "^1.0.0",
"babel-loader": "^8.1.0",
"bezier-easing": "^2.1.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"clean-webpack-plugin": "^4.0.0",
"cross-env-os": "^7.1.1",
"css-loader": "^3.5.2",
"file-loader": "^5.1.0",
"html-webpack-plugin": "^3.2.0",
"react-refresh": "^0.11.0",
"shelljs": "^0.8.5",
"style-loader": "^1.1.4",
"unicode-loader": "^1.0.7",
"url-loader": "^4.0.0",
"webpack": "^4.43.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^4.7.1"
}
}
24 changes: 24 additions & 0 deletions packages/hippy-web-renderer/e2e/react/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title></title>
<style>
*{
margin: 0;
padding: 0;
}
#root {
position: absolute;
top:0;
left:0;
z-index: 1;
}
</style>
</head>
<body>
<div id="root"></div>
<div id="mocha"></div>
</body>
</html>
Loading

0 comments on commit 421daf2

Please sign in to comment.