Skip to content

Commit

Permalink
bump webmesh-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 12, 2023
1 parent 4be078c commit 3d3753f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webmesh",
"version": "0.0.4",
"version": "0.0.6",
"description": "An application for connecting to Webmesh networks",
"productName": "Webmesh",
"author": "Avi Zimmerman <avi.zimmerman@gmail.com>",
Expand Down Expand Up @@ -31,7 +31,7 @@
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"@webmeshproject/api": "^0.12.2",
"@webmeshproject/vue": "^0.0.7",
"@webmeshproject/vue": "^0.0.8",
"autoprefixer": "^10.4.2",
"electron": "^27.0.3",
"electron-builder": "^24.3.0",
Expand Down
13 changes: 6 additions & 7 deletions src/components/ConnectionProfileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
</div>
<div>
<strong class="q-px-sm">Total Transmit:</strong>
{{ humanFileSize(Number(interfaceMetrics?.totalTransmitBytes)) }}
{{ humanFileSize(Number(metrics?.totalTransmitBytes)) }}
<strong class="q-px-sm">Total Receive:</strong>
{{ humanFileSize(Number(interfaceMetrics?.totalReceiveBytes)) }}
{{ humanFileSize(Number(metrics?.totalReceiveBytes)) }}
</div>
</div>
</q-expansion-item>
Expand Down Expand Up @@ -142,12 +142,11 @@ export default defineComponent({
setup(props) {
const q = useQuasar();
const daemon = useDaemon();
const { connect, disconnect, metrics, getNetwork, error } = useWebmesh(
daemon.options
);
const { connect, disconnect, deviceMetrics, getNetwork, error } =
useWebmesh(daemon.options);
const metrics = deviceMetrics(props.profile.id, 3000);
const network = ref<Network | null>(null);
const connected = ref<boolean | null>(false);
const interfaceMetrics = metrics(props.profile.id, 3000);
const handleDaemonError = (err: Error, msg: string) => {
console.log(msg, err);
Expand Down Expand Up @@ -239,7 +238,7 @@ export default defineComponent({
return {
connected,
network,
interfaceMetrics,
metrics,
humanFileSize,
onClickConnectSwitch,
};
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,10 @@
"@bufbuild/protobuf" "^1.4.1"
"@connectrpc/connect" "^1.1.3"

"@webmeshproject/vue@^0.0.7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@webmeshproject/vue/-/vue-0.0.7.tgz#c6415aea0c28b9c045e09a986c148868f8c7c105"
integrity sha512-DbMldhRglfQ4/Zpd4bHKqnIN6FKukV0WwaeHzP3hMkAWQc88hap4gZ3fRP8T5eqJwiFRQCRYYt3Gjtjuu8X+6g==
"@webmeshproject/vue@^0.0.8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@webmeshproject/vue/-/vue-0.0.8.tgz#94c08b051e24ae2c5f29722a6fcdb9e9c3af075c"
integrity sha512-jZX96tfGE23uh5TKkOPIu1DpFr0KGCU4XyWnjTm+RdODqB9Lj+afPNYjEWdxBLfqs/WfcF47pA4ghCXpRFbXvw==
dependencies:
"@connectrpc/connect" "^1.1.3"
"@connectrpc/connect-web" "^1.1.3"
Expand Down

0 comments on commit 3d3753f

Please sign in to comment.