文件最后提交记录最后更新时间
修改issue7649 修改分布式计算器代码规范 Signed-off-by: haoxiaohui <haoxiaohui1@huawei.com> 3 个月前
修改issue7649 修改分布式计算器代码规范 Signed-off-by: haoxiaohui <haoxiaohui1@huawei.com> 3 个月前
IssueNo: #I6XENQ:移植元能力卡片,DistributeCalc,Canvas,DefiningPageLayoutAndConnection,Drag Description: Transplant Meta Ability Cards, DistributeCalc, Canvas, DefiningPageLayoutAndConnection, Drag. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
!3483 更新签名文件 Merge pull request !3483 from wangzhiyusss/master2 年前
修改issue7649 修改分布式计算器代码规范 Signed-off-by: haoxiaohui <haoxiaohui1@huawei.com> 3 个月前
IssueNo: #I6XENQ:移植元能力卡片,DistributeCalc,Canvas,DefiningPageLayoutAndConnection,Drag Description: Transplant Meta Ability Cards, DistributeCalc, Canvas, DefiningPageLayoutAndConnection, Drag. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
分布式应用README整改 Signed-off-by: yeyedeshen <yangxin181@huawei.com> 2 年前
修复jscalc应用闪退及数据不同步问题 Signed-off-by: zwx1126739 <zhanghong121@huawei.com> 1 年前
IssueNo: #I6XENQ:移植元能力卡片,DistributeCalc,Canvas,DefiningPageLayoutAndConnection,Drag Description: Transplant Meta Ability Cards, DistributeCalc, Canvas, DefiningPageLayoutAndConnection, Drag. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
修改issue7649 修改分布式计算器代码规范 Signed-off-by: haoxiaohui <haoxiaohui1@huawei.com> 3 个月前
计算器测试用例添加 Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 2 年前
README.md

Distributed Calculator

Introduction

This sample implements a simple calculator app using JS distributed features. The calculator can perform simple numerical calculations and start a remote calculator Feature Ability (FA) to perform collaborative calculation.

  • Remote startup: StartAbility is used to start a remote app.
  • Collaborative calculation: The DistributedDataKit distributed data framework is used to implement data synchronization between remote applications.

Usage

  • Touch the icon on the desktop to start the calculator.
  • Touch the button in the upper right corner of the app, or swipe up, down, left, or right on the screen to display the device selection box.
  • In the device selection box, touch the name of a peer device to start the remote app.
  • After the remote app is started, perform operations on the app at either end. Data can be synchronized between the two apps in real time.
  • In the device selection box, touch the local device to close the remote app.

Constraints

  • This calculator implements only simple addition, subtraction, multiplication, and division operations. You can implement more complex arithmetic operations on the calc page based on the current framework.
  • Distributed computing can be implemented only with distributed networking.