Remove SCSS variables

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-07-12 10:55:28 +02:00
parent ee20e03cc2
commit 57c3df43ff
69 changed files with 478 additions and 1065 deletions

View File

@@ -1,3 +1,4 @@
import { useI18n } from "vue-i18n";
<template>
<div>
<div
@@ -22,7 +23,7 @@
<p class="">{{ currentIdentity.name }}</p>
<p class="">
{{ `@${currentIdentity.preferredUsername}` }}
<span v-if="masked">{{ $t("(Masked)") }}</span>
<span v-if="masked">{{ t("(Masked)") }}</span>
</p>
</div>
<div class="" v-else>
@@ -33,7 +34,7 @@
v-if="identities && identities.length > 1"
@click="activateModal"
>
{{ $t("Change") }}
{{ t("Change") }}
</o-button>
</div>
</div>
@@ -55,7 +56,7 @@
</span>
<o-modal
v-model:active="isComponentModalActive"
:close-button-aria-label="$t('Close')"
:close-button-aria-label="t('Close')"
>
<identity-picker v-if="currentIdentity" v-model="currentIdentity" />
</o-modal>
@@ -67,6 +68,7 @@ import { computed, ref } from "vue";
import { IPerson } from "../../types/actor";
import IdentityPicker from "./IdentityPicker.vue";
import AccountCircle from "vue-material-design-icons/AccountCircle.vue";
import { useI18n } from "vue-i18n";
const { identities } = useCurrentUserIdentities();
@@ -84,6 +86,8 @@ const props = withDefaults(
const emit = defineEmits(["update:modelValue"]);
const { t } = useI18n({ useScope: "global" });
const isComponentModalActive = ref(false);
const currentIdentity = computed({

View File

@@ -230,8 +230,4 @@ p.description {
margin-bottom: 15px;
margin-top: -10px;
}
section.section {
background: $white;
}
</style>

View File

@@ -208,14 +208,13 @@ import {
PERSON_FRAGMENT,
PERSON_FRAGMENT_FEED_TOKENS,
UPDATE_PERSON,
} from "../../../graphql/actor";
import { IPerson, displayName } from "../../../types/actor";
import PictureUpload from "../../../components/PictureUpload.vue";
import { MOBILIZON_INSTANCE_HOST } from "../../../api/_entrypoint";
import RouteName from "../../../router/name";
import { buildFileVariable } from "../../../utils/image";
import { changeIdentity } from "../../../utils/identity";
// import identityEditionMixin from "../../../mixins/identityEdition";
} from "@/graphql/actor";
import { IPerson, displayName } from "@/types/actor";
import PictureUpload from "@/components/PictureUpload.vue";
import { MOBILIZON_INSTANCE_HOST } from "@/api/_entrypoint";
import RouteName from "@/router/name";
import { buildFileVariable } from "@/utils/image";
import { changeIdentity } from "@/utils/identity";
import {
CREATE_FEED_TOKEN_ACTOR,
DELETE_FEED_TOKEN,