Skip to content

Commit c2cfb4f

Browse files
[gui] Fix vue to use direct imports
Fix vue files mainly to use direct imports instead of barrel ones and fix other mistakes made during vue 3 migration.
1 parent 454c01f commit c2cfb4f

110 files changed

Lines changed: 481 additions & 334 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

web/server/vue-cli/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<script setup>
1717
import { computed, ref, watch } from "vue";
1818
import { useStore } from "vuex";
19-
import Errors from "@/components/Errors";
20-
import { TheHeader } from "@/components/Layout";
19+
import Errors from "@/components/Errors.vue";
20+
import TheHeader from "@/components/Layout/TheHeader.vue";
2121
2222
const keepAliveList = ref([]);
2323
const store = useStore();

web/server/vue-cli/src/components/AnalysisInfo/Checker.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
</template>
2626

2727
<script setup>
28-
import { AnalyzerStatisticsIcon } from "@/components/Icons";
28+
import AnalyzerStatisticsIcon
29+
from "@/components/Icons/AnalyzerStatisticsIcon.vue";
2930
3031
defineProps({
3132
name: { type: String, required: true },

web/server/vue-cli/src/components/AnalysisInfo/CheckerGroup.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@
7272
</template>
7373

7474
<script setup>
75-
import CountChips from "@/components/CountChips";
76-
import { CountKeys } from "@/composables/useAnalysisInfo";
7775
import { computed } from "vue";
78-
import CheckerRows from "./CheckerRows";
76+
77+
import CountChips from "@/components/CountChips.vue";
78+
import CountKeys from "@/composables/useAnalysisInfo/CountKeys.vue";
79+
import CheckerRows from "@/components/AnalysisInfo/CheckerRows.vue";
7980
8081
const props = defineProps({
8182
group: { type: String, required: true },

web/server/vue-cli/src/components/AnalysisInfoDialog.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,10 @@
175175

176176
<script setup>
177177
import { computed, ref, watch } from "vue";
178-
import ConfirmDialog from "@/components/ConfirmDialog";
179-
import {
180-
CheckerGroup,
181-
CheckerRows
182-
} from "@/components/AnalysisInfo";
183-
import CountChips from "@/components/CountChips";
178+
import ConfirmDialog from "@/components/ConfirmDialog.vue";
179+
import CheckerGroup from "@/components/AnalysisInfo/CheckerGroup.vue";
180+
import CheckerRows from "@/components/AnalysisInfo/CheckerRows.vue";
181+
import CountChips from "@/components/CountChips.vue";
184182
185183
import {
186184
CheckerInfoAvailability,

web/server/vue-cli/src/components/CheckerDocumentationDialog.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@
4141

4242
<script setup>
4343
import { computed, ref, watch } from "vue";
44-
import { SeverityIcon } from "@/components/Icons";
44+
4545
import { ccService, handleThriftError } from "@cc-api";
4646
import { Checker, Severity } from "@cc/report-server-types";
47+
48+
import SeverityIcon from "@/components/Icons/SeverityIcon.vue";
4749
import ConfirmDialog from "@/components/ConfirmDialog.vue";
4850
4951
const props = defineProps({

web/server/vue-cli/src/components/CreditsDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<script setup>
4646
import { ref } from "vue";
4747
48-
import ConfirmDialog from "@/components/ConfirmDialog";
48+
import ConfirmDialog from "@/components/ConfirmDialog.vue";
4949
5050
const dialog = ref(false);
5151

web/server/vue-cli/src/components/Icons/ConfidentialityIcon.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
</template>
2929

3030
<script setup>
31+
import { computed } from "vue";
32+
3133
import { useConfidentiality } from "@/composables/useConfidentiality";
3234
import { Confidentiality } from "@cc/prod-types";
33-
import { computed } from "vue";
3435
3536
const props = defineProps({
3637
value: { type: Number, required: true },

web/server/vue-cli/src/components/Icons/DetectionStatusIcon.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@
5555
</template>
5656

5757
<script setup>
58+
import { computed } from "vue";
59+
5860
import { useDetectionStatus } from "@/composables/useDetectionStatus";
5961
import { DetectionStatus } from "@cc/report-server-types";
60-
import { computed } from "vue";
6162
6263
const props = defineProps({
6364
status: { type: Number, required: true },

web/server/vue-cli/src/components/Icons/SeverityIcon.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@
6161
</template>
6262

6363
<script setup>
64+
import { computed } from "vue";
65+
6466
import { useSeverity } from "@/composables/useSeverity";
6567
import { Severity } from "@cc/report-server-types";
66-
import { computed } from "vue";
6768
6869
const props = defineProps({
6970
status: { type: Number, required: true },

web/server/vue-cli/src/components/Layout/PersonalAccessTokenBtn.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,12 @@
131131
</template>
132132

133133
<script setup>
134-
import ConfirmDialog from "@/components/ConfirmDialog";
134+
import { computed, onMounted, ref, watch } from "vue";
135+
135136
import { authService, handleThriftError } from "@cc-api";
136137
import { format } from "date-fns";
137-
import { computed, onMounted, ref, watch } from "vue";
138+
139+
import ConfirmDialog from "@/components/ConfirmDialog.vue";
138140
139141
const addPersonalAccessTokenDialog = ref(false);
140142
const deletePersonalAccessTokenDialog = ref(false);

0 commit comments

Comments
 (0)