Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,17 @@ npm run cli -- run /path/to/xdc
You can create a new npm release automatically by doing the following on the
`main` branch:

1. Update `CHANGELOG.md`: rename the `[Unreleased]` section to the new version
and date, and add a fresh `[Unreleased]` section on top.
2. Run:

```shell
npm version patch # or minor, major, etc
git push --follow-tags
```

[`npm version`](https://docs.npmjs.com/cli/v8/commands/npm-version) updates the
version number automatically and also puts the latest date in `CHANGELOG.md`.
version number in `package.json` and creates a git tag.
You then need to push using `--follow-tags` (**NOT** `--tags`).

The release process is done through a github action defined in
Expand Down
11 changes: 7 additions & 4 deletions frontend/Instance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Instance: Component<{
if (iframeRef == null) {
return;
}
setDropUpdates(false) // reset our state because inner sim/webxdc state is reset in reload
setDropUpdates(false); // reset our state because inner sim/webxdc state is reset in reload
iframeRef.contentWindow?.postMessage("reload", props.instance.url);

notificationService.show({
Expand All @@ -34,9 +34,12 @@ const Instance: Component<{
if (iframeRef == null) {
return;
}
setDropUpdates(!dropUpdates())
iframeRef.contentWindow?.postMessage({ name: "dropUpdates", value: dropUpdates()}, props.instance.url)
}
setDropUpdates(!dropUpdates());
iframeRef.contentWindow?.postMessage(
{ name: "dropUpdates", value: dropUpdates() },
props.instance.url,
);
};

const getStyle = () => {
return {
Expand Down
10 changes: 8 additions & 2 deletions frontend/InstanceHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "@hope-ui/solid";
import { IoRefreshOutline, IoStop, IoPlay } from "solid-icons/io";
import { FiExternalLink, FiTrash } from "solid-icons/fi";
import { RiDeviceWifiLine, RiDeviceWifiOffLine } from 'solid-icons/ri'
import { RiDeviceWifiLine, RiDeviceWifiOffLine } from "solid-icons/ri";

import type { Instance as InstanceData } from "../types/instance";
import { sent, received, mutateInstances } from "./store";
Expand Down Expand Up @@ -119,7 +119,13 @@ const InstanceHeader: Component<{
<InstanceButton
label="Drop Updates"
onClick={props.onToggleDropUpdates}
icon={props.dropUpdates ? <RiDeviceWifiOffLine size={22} color={"#FF0000"} /> : <RiDeviceWifiLine size={22} color={"#000000"} /> }
icon={
props.dropUpdates ? (
<RiDeviceWifiOffLine size={22} color={"#FF0000"} />
) : (
<RiDeviceWifiLine size={22} color={"#000000"} />
)
}
/>
</Flex>
</Flex>
Expand Down
Loading
Loading