Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-2024100

build-profile.json5H A D25-Oct-20241.1 KiB

entry/H25-Oct-20244 KiB

hvigor/H25-Oct-20244 KiB

hvigorfile.jsH A D25-Oct-2024174

hvigorwH A D25-Oct-20241.4 KiB

hvigorw.batH A D25-Oct-20241.4 KiB

oh-package.json5H A D25-Oct-2024211

ohosTest.mdH A D25-Oct-20242.1 KiB

README.mdH A D25-Oct-20241.3 KiB

README_zh.mdH A D25-Oct-20246.2 KiB

screenshots/devices/H25-Oct-20244 KiB

signature/H25-Oct-20244 KiB

README.md

1# Distributed Calculator
2
3### Introduction
4
5This 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.
6
7-   Remote startup:  **StartAbility**  is used to start a remote app.
8-   Collaborative calculation: The  **DistributedDataKit**  distributed data framework is used to implement data synchronization between remote applications.
9
10### Usage
11
12-   Touch the icon on the desktop to start the calculator.
13-   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.
14-   In the device selection box, touch the name of a peer device to start the remote app.
15-   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.
16-   In the device selection box, touch the local device to close the remote app.
17
18### Constraints
19
20-   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.
21-   Distributed computing can be implemented only with distributed networking.
22
23