Skip to content

Commit

Permalink
Release 1.2.1 frontend 0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Mar 24, 2024
1 parent 5d2f469 commit c9fb2a1
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 27 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [1.2.1] - 2024-03-24

### Added

- [frontend]: Frontend got updated to 0.8.4.

## [1.2.0] - 2024-03-23

### Breaking change on plugin default entry point and platform constructor!
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ sudo npm install -g matterbridge-zigbee2mqtt
matterbridge -add matterbridge-zigbee2mqtt
```

## How to install and register a plugin for development (from git)
## How to install and register a plugin for development (from github)

To install i.e. https://github.com/Luligu/matterbridge-example-accessory-platform

Expand All @@ -172,9 +172,10 @@ then clone the plugin
git clone https://github.com/Luligu/matterbridge-example-accessory-platform
cd matterbridge-example-accessory-platform
npm install
npm run build
```

Then add the plugin to Matterbridge
then add the plugin to Matterbridge
```
matterbridge -add .\
```
Expand Down
6 changes: 3 additions & 3 deletions frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.b996bc4e.css",
"main.js": "/static/js/main.657bca15.js",
"main.js": "/static/js/main.a14f33a3.js",
"static/js/453.d855a71b.chunk.js": "/static/js/453.d855a71b.chunk.js",
"index.html": "/index.html",
"main.b996bc4e.css.map": "/static/css/main.b996bc4e.css.map",
"main.657bca15.js.map": "/static/js/main.657bca15.js.map",
"main.a14f33a3.js.map": "/static/js/main.a14f33a3.js.map",
"453.d855a71b.chunk.js.map": "/static/js/453.d855a71b.chunk.js.map"
},
"entrypoints": [
"static/css/main.b996bc4e.css",
"static/js/main.657bca15.js"
"static/js/main.a14f33a3.js"
]
}
2 changes: 1 addition & 1 deletion frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.657bca15.js"></script><link href="/static/css/main.b996bc4e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.a14f33a3.js"></script><link href="/static/css/main.b996bc4e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "0.8.3",
"version": "0.8.4",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.4",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function Home() {
<StatusIndicator status={plugin.loaded} enabledText='Running' tooltipText='Whether the plugin is running'/>
</> :
<>
{plugin.loaded && plugin.started && plugin.configured && plugin.paired===undefined && plugin.connected===undefined ?
{plugin.loaded && plugin.started && plugin.configured && plugin.connected===undefined ?
<>
<StatusIndicator status={plugin.loaded} enabledText='Running' tooltipText='Whether the plugin is running'/>
</> :
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/components/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function MatterbridgeInfo() {
value={selectedModeValue} // Use the selectedValue state variable
onChange={handleChangeMode} // Handle changes with the handleChange function
>
<FormControlLabel value="bridge" control={<Radio />} label="Bridge" />
<FormControlLabel value="childbridge" control={<Radio />} label="Childbridge" />
<FormControlLabel value="bridge" disabled control={<Radio />} label="Bridge" />
<FormControlLabel value="childbridge" disabled control={<Radio />} label="Childbridge" />
</RadioGroup>
<FormLabel id="matterbridgeInfo">Logger level</FormLabel>
<RadioGroup
Expand All @@ -95,22 +95,22 @@ function MatterbridgeInfo() {
</FormLabel>
<FormLabel>Home Directory
<div className="field-color-selected">{matterbridgeInfo.homeDirectory}</div>
</FormLabel>
</FormLabel>
<FormLabel>Root Directory:
<div className="field-color-selected">{matterbridgeInfo.rootDirectory}</div>
</FormLabel>
</FormLabel>
<FormLabel>Matterbridge Directory
<div className="field-color-selected">{matterbridgeInfo.matterbridgeDirectory}</div>
</FormLabel>
</FormLabel>
<FormLabel>Matterbridge Plugin Directory
<div className="field-color-selected">{matterbridgeInfo.matterbridgePluginDirectory}</div>
</FormLabel>
</FormLabel>
<FormLabel>Global Module Directory
<div className="field-color-selected">{matterbridgeInfo.globalModulesDirectory}</div>
</FormLabel>
</MatterbridgeInfoContext.Provider>
</FormControl>
);
</FormControl>
);
}

export default Settings;
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matterbridge",
"version": "1.2.0",
"version": "1.2.1",
"description": "Matterbridge plugin manager for Matter",
"author": "https://github.com/Luligu",
"license": "Apache-2.0",
Expand All @@ -20,7 +20,8 @@
"homebridge",
"matter",
"matter.js",
"matter-node.js"
"matter-node.js",
"plugin"
],
"bin": {
"matterbridge": "dist/cli.js"
Expand Down Expand Up @@ -56,7 +57,7 @@
},
"devDependencies": {
"@stylistic/eslint-plugin": "^1.7.0",
"@tsconfig/node-lts": "^20.1.1",
"@tsconfig/node-lts": "^20.1.2",
"@types/express": "^4.17.21",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.3.1",
Expand Down
5 changes: 1 addition & 4 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,9 @@ export class Matterbridge extends EventEmitter {
static async loadInstance(initialize = false) {
if (!Matterbridge.instance) {
// eslint-disable-next-line no-console
console.log('Matterbridge instance does not exists');
console.log(wr, 'Matterbridge instance does not exists!', initialize ? 'Initializing...' : 'Not initializing...', rs);
Matterbridge.instance = new Matterbridge();
if (initialize) await Matterbridge.instance.initialize();
} else {
// eslint-disable-next-line no-console
console.log('Matterbridge instance already exists');
}
return Matterbridge.instance;
}
Expand Down

0 comments on commit c9fb2a1

Please sign in to comment.