Skip to content

Commit 6c8183f

Browse files
committed
replacing VUE_APP_HOSTNAME with VITE_HOSTNAME
1 parent d8ce120 commit 6c8183f

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

src/components/Records/Record/GeneralInfo/Maintainers.vue

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
<div class="d-flex full-width flex-wrap ml-md-12 ml-8">
1515
<div
1616
v-if="getField('maintainers').length === 0"
17-
class="d-flex flex-wrap"
1817
:class="{ 'justify-end': $vuetify.display.smAndDown }"
18+
class="d-flex flex-wrap"
1919
>
2020
<p
21-
class="ma-0 mr-1"
2221
:class="{ 'text-end': $vuetify.display.smAndDown }"
22+
class="ma-0 mr-1"
2323
>
2424
This record is in need of a maintainer.
2525
</p>
2626
<p
2727
v-if="
2828
(canClaim && user().isLoggedIn) || (!canClaim && !user().isLoggedIn)
2929
"
30-
class="ma-0 mr-1"
3130
:class="{ 'text-end': $vuetify.display.smAndDown }"
31+
class="ma-0 mr-1"
3232
>
3333
If you are affiliated with this project,
3434
</p>
@@ -42,15 +42,15 @@
4242
</a>
4343
<p
4444
v-if="!canClaim && !user().isLoggedIn"
45-
class="ma-0 mr-1"
4645
:class="{ 'text-end': $vuetify.display.smAndDown }"
46+
class="ma-0 mr-1"
4747
>
4848
and claim it now!
4949
</p>
5050
<p
5151
v-if="canClaim"
52-
class="underline-effect text-blue"
5352
:class="{ 'text-end': $vuetify.display.smAndDown }"
53+
class="underline-effect text-blue"
5454
@click="
5555
() => {
5656
$emit('requestOwnership');
@@ -78,8 +78,8 @@
7878
</router-link>
7979
<a
8080
v-if="maintainer.orcid"
81-
class="mr-2"
8281
:href="`https://orcid.org/${maintainer.orcid}`"
82+
class="mr-2"
8383
target="_blank"
8484
>
8585
<Icon :height="27" item="Orcid" wrapper-class="" />
@@ -97,6 +97,7 @@
9797
import { mapGetters, mapState } from "vuex";
9898
9999
import Icon from "@/components/Icon";
100+
100101
export default {
101102
name: "Maintainers",
102103
components: { Icon },
@@ -108,11 +109,11 @@ export default {
108109
},
109110
computed: {
110111
...mapGetters("record", ["getField"]),
111-
...mapState('users', ["user"]),
112-
...mapState('editor', ['recordTooltips']),
112+
...mapState("users", ["user"]),
113+
...mapState("editor", ["recordTooltips"]),
113114
serverLink: function () {
114-
return process.env.VUE_APP_HOSTNAME;
115-
}
116-
}
117-
}
115+
return import.meta.env.VITE_HOSTNAME;
116+
},
117+
},
118+
};
118119
</script>

0 commit comments

Comments
 (0)