Skip to content

Commit

Permalink
Merge pull request #1474 from posit-dev/dotnomad/home-alias-import
Browse files Browse the repository at this point in the history
Use src import alias in homeView app
  • Loading branch information
dotNomad authored Apr 30, 2024
2 parents 1894b59 + 8d1d5e2 commit 643ac36
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
8 changes: 4 additions & 4 deletions extensions/vscode/webviews/homeView/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
</template>

<script setup lang="ts">
import EasyDeploy from "./components/EasyDeploy.vue";
import ProjectFiles from "./components/views/ProjectFiles.vue";
import PythonPackages from "./components/views/PythonPackages.vue";
import EasyDeploy from "src/components/EasyDeploy.vue";
import ProjectFiles from "src/components/views/ProjectFiles.vue";
import PythonPackages from "src/components/views/PythonPackages.vue";

import { useHostConduitService } from "./HostConduitService";
import { useHostConduitService } from "src/HostConduitService";

useHostConduitService();
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,20 @@
</template>

<script setup lang="ts">
import { computed, onBeforeMount, onBeforeUnmount, ref } from "vue";
import { computed } from "vue";
import { formatDateString } from "../../../../../../web/src/utils/date";
import { isPreDeployment } from "../../../../src/api/types/deployments";
import { Account } from "../../../../src/api/types/accounts";
import { Configuration } from "../../../../src/api/types/configurations";
import { useHomeStore } from "../stores/home";
import ButtonDropdown from "./ButtonDropdown.vue";
import PSelect from "./PSelect.vue";
import { useHostConduitService } from "../HostConduitService";
import { WebviewToHostMessageType } from "../../../../src/types/messages/webviewToHostMessages";
import { useHomeStore } from "src/stores/home";
import ButtonDropdown from "src/components/ButtonDropdown.vue";
import PSelect from "src/components/PSelect.vue";
import { useHostConduitService } from "src/HostConduitService";
const home = useHomeStore();
const hostConduit = useHostConduitService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</template>

<script setup lang="ts">
import ActionToolbar, { ActionButton } from "./ActionToolbar.vue";
import ActionToolbar, { ActionButton } from "src/components/ActionToolbar.vue";
const expanded = defineModel("expanded", { required: false, default: false });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</template>

<script setup lang="ts">
import ActionToolbar, { ActionButton } from "./ActionToolbar.vue";
import ActionToolbar, { ActionButton } from "src/components/ActionToolbar.vue";
const expanded = defineModel("expanded", { required: false, default: false });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<script setup lang="ts">
import { ref } from "vue";
import TreeItem from "../TreeItem.vue";
import TreeSection from "../TreeSection.vue";
import TreeItem from "src/components/TreeItem.vue";
import TreeSection from "src/components/TreeSection.vue";
const includedExpanded = ref(true);
const excludedExpanded = ref(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
</template>

<script setup lang="ts">
import TreeItem from "../TreeItem.vue";
import TreeSection from "../TreeSection.vue";
import TreeItem from "src/components/TreeItem.vue";
import TreeSection from "src/components/TreeSection.vue";
</script>
5 changes: 3 additions & 2 deletions extensions/vscode/webviews/homeView/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import {
provideVSCodeDesignSystem,
vsCodeButton,
Expand All @@ -12,7 +11,9 @@ import {
vsCodeDivider,
} from "@vscode/webview-ui-toolkit";

import "./style.css";
import App from "src/App.vue";

import "src/style.css";

// In order to use the Webview UI Toolkit web components they
// must be registered with the browser (i.e. webview) using the
Expand Down

0 comments on commit 643ac36

Please sign in to comment.