Skip to content

Commit

Permalink
deps: pull in latest webmesh-vue for convenience imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 15, 2023
1 parent 03a73ba commit 66bcfe6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"@webmeshproject/api": "^0.12.7",
"@webmeshproject/vue": "^0.0.15",
"@webmeshproject/vue": "^0.0.17",
"autoprefixer": "^10.4.2",
"electron": "^27.0.3",
"electron-builder": "^24.3.0",
Expand Down
12 changes: 7 additions & 5 deletions src/components/ConnectionProfileEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,14 @@
import { defineComponent, ref, watch } from 'vue';
import { QInput, QFile, useDialogPluginComponent, useQuasar } from 'quasar';
import {
AuthHeader,
Defaults,
DefaultNetworkACL,
Feature,
NetworkAuthMethod,
ConnectionParameters_AuthHeader as AuthHeader,
MeshConnBootstrap_DefaultNetworkACL as DefaultNetworkACL,
} from '@webmeshproject/api/v1/app_pb';
import { Feature } from '@webmeshproject/api/v1/node_pb';
import { Defaults, NetworkParameters, useWebmesh } from '@webmeshproject/vue';
NetworkParameters,
useWebmesh,
} from '@webmeshproject/vue';
import { useDaemon } from 'src/stores/daemon';
const NewConnectionTitle = 'New Connection Profile';
Expand Down
14 changes: 9 additions & 5 deletions src/components/ConnectionProfileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@
<script lang="ts">
import { defineComponent, ref, watch } from 'vue';
import { useQuasar } from 'quasar';
import { DaemonConnStatus } from '@webmeshproject/api/v1/app_pb';
import { Network, NetworkParameters, useWebmesh } from '@webmeshproject/vue';
import {
ConnectionStatus,
Network,
NetworkParameters,
useWebmesh,
} from '@webmeshproject/vue';
import { useDaemon } from 'src/stores/daemon';

export default defineComponent({
Expand Down Expand Up @@ -167,13 +171,13 @@ export default defineComponent({
getNetwork(props.profile.id)
.then((nw: Network) => {
switch (nw.status) {
case DaemonConnStatus.DISCONNECTED:
case ConnectionStatus.DISCONNECTED:
resolve(false);
break;
case DaemonConnStatus.CONNECTED:
case ConnectionStatus.CONNECTED:
resolve(true);
break;
case DaemonConnStatus.CONNECTING:
case ConnectionStatus.CONNECTING:
resolve(null);
break;
}
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.15":
version "0.0.15"
resolved "https://registry.yarnpkg.com/@webmeshproject/vue/-/vue-0.0.15.tgz#e1968ebd0179fc3af1da071025c82f90dd8ea3eb"
integrity sha512-J9XS1DgBfKvhjmC00CPGdYBRdvkoaOuQPofKGHkHhTaqOdddKePWrS8Unj5LajsaZF3SzijfgSFhtQiO3zpnWw==
"@webmeshproject/vue@^0.0.17":
version "0.0.17"
resolved "https://registry.yarnpkg.com/@webmeshproject/vue/-/vue-0.0.17.tgz#3168e009de3aabfe81665c2c70b2ade810c1bf29"
integrity sha512-Cx+F9jBeYeMed4ZLO+pavUzW1DnE4j9Is6et+e0DoRYBQeRcNEKdb8RIvHIIRZYZ9C88/mqLJjw1gr2MNnI0gw==
dependencies:
"@connectrpc/connect" "^1.1.3"
"@connectrpc/connect-web" "^1.1.3"
Expand Down

0 comments on commit 66bcfe6

Please sign in to comment.