Introduce group basic federation, event new page and notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
107
js/src/App.vue
107
js/src/App.vue
@@ -2,12 +2,39 @@
|
||||
<div id="mobilizon">
|
||||
<NavBar />
|
||||
<div class="container" v-if="config && config.demoMode">
|
||||
<b-message type="is-danger" :title="$t('Warning').toLocaleUpperCase()" closable aria-close-label="Close">
|
||||
<p v-html="`${$t('This is a demonstration site to test the beta version of Mobilizon.')} ${$t('<b>Please do not use it in any real way.</b>')}`" />
|
||||
<b-message
|
||||
type="is-danger"
|
||||
:title="$t('Warning').toLocaleUpperCase()"
|
||||
closable
|
||||
aria-close-label="Close"
|
||||
>
|
||||
<p
|
||||
v-html="
|
||||
`${$t('This is a demonstration site to test the beta version of Mobilizon.')} ${$t(
|
||||
'<b>Please do not use it in any real way.</b>'
|
||||
)}`
|
||||
"
|
||||
/>
|
||||
<p>
|
||||
<span v-html="$t('Mobilizon is under development, we will add new features to this site during regular updates, until the release of <b>version 1 of the software in the first half of 2020</b>.')" />
|
||||
<i18n path="In the meantime, please consider that the software is not (yet) finished. More information {onBlog}.">
|
||||
<a slot="onBlog" :href="$i18n.locale === 'fr' ? 'https://framablog.org/?p=18268' : 'https://framablog.org/?p=18299'">{{ $t('on our blog') }}</a>
|
||||
<span
|
||||
v-html="
|
||||
$t(
|
||||
'Mobilizon is under development, we will add new features to this site during regular updates, until the release of <b>version 1 of the software in the first half of 2020</b>.'
|
||||
)
|
||||
"
|
||||
/>
|
||||
<i18n
|
||||
path="In the meantime, please consider that the software is not (yet) finished. More information {onBlog}."
|
||||
>
|
||||
<a
|
||||
slot="onBlog"
|
||||
:href="
|
||||
$i18n.locale === 'fr'
|
||||
? 'https://framablog.org/?p=18268'
|
||||
: 'https://framablog.org/?p=18299'
|
||||
"
|
||||
>{{ $t("on our blog") }}</a
|
||||
>
|
||||
</i18n>
|
||||
</p>
|
||||
</b-message>
|
||||
@@ -22,20 +49,15 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import NavBar from '@/components/NavBar.vue';
|
||||
import { Component, Vue } from 'vue-property-decorator';
|
||||
import {
|
||||
AUTH_ACCESS_TOKEN,
|
||||
AUTH_USER_EMAIL,
|
||||
AUTH_USER_ID,
|
||||
AUTH_USER_ROLE,
|
||||
} from '@/constants';
|
||||
import { CURRENT_USER_CLIENT, UPDATE_CURRENT_USER_CLIENT } from '@/graphql/user';
|
||||
import Footer from '@/components/Footer.vue';
|
||||
import Logo from '@/components/Logo.vue';
|
||||
import { initializeCurrentActor } from '@/utils/auth';
|
||||
import { CONFIG } from '@/graphql/config';
|
||||
import { IConfig } from '@/types/config.model';
|
||||
import { Component, Vue } from "vue-property-decorator";
|
||||
import NavBar from "./components/NavBar.vue";
|
||||
import { AUTH_ACCESS_TOKEN, AUTH_USER_EMAIL, AUTH_USER_ID, AUTH_USER_ROLE } from "./constants";
|
||||
import { CURRENT_USER_CLIENT, UPDATE_CURRENT_USER_CLIENT } from "./graphql/user";
|
||||
import Footer from "./components/Footer.vue";
|
||||
import Logo from "./components/Logo.vue";
|
||||
import { initializeCurrentActor } from "./utils/auth";
|
||||
import { CONFIG } from "./graphql/config";
|
||||
import { IConfig } from "./types/config.model";
|
||||
@Component({
|
||||
apollo: {
|
||||
currentUser: {
|
||||
@@ -46,7 +68,7 @@ import { IConfig } from '@/types/config.model';
|
||||
components: {
|
||||
Logo,
|
||||
NavBar,
|
||||
'mobilizon-footer': Footer,
|
||||
"mobilizon-footer": Footer,
|
||||
},
|
||||
})
|
||||
export default class App extends Vue {
|
||||
@@ -65,7 +87,7 @@ export default class App extends Vue {
|
||||
const role = localStorage.getItem(AUTH_USER_ROLE);
|
||||
|
||||
if (userId && userEmail && accessToken && role) {
|
||||
return await this.$apollo.mutate({
|
||||
return this.$apollo.mutate({
|
||||
mutation: UPDATE_CURRENT_USER_CLIENT,
|
||||
variables: {
|
||||
id: userId,
|
||||
@@ -85,7 +107,7 @@ export default class App extends Vue {
|
||||
|
||||
/* Bulma imports */
|
||||
@import "~bulma/bulma";
|
||||
@import '~bulma-divider';
|
||||
@import "~bulma-divider";
|
||||
|
||||
/* Buefy imports */
|
||||
@import "~buefy/src/scss/buefy";
|
||||
@@ -94,31 +116,34 @@ export default class App extends Vue {
|
||||
$mdi-font-path: "~@mdi/font/fonts";
|
||||
@import "~@mdi/font/scss/materialdesignicons";
|
||||
|
||||
.fade-enter-active, .fade-leave-active {
|
||||
transition: opacity .5s;
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
.fade-enter, .fade-leave-to {
|
||||
.fade-enter,
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
// background: #f7f8fa;
|
||||
background: $body-background-color;
|
||||
font-family: BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
|
||||
body {
|
||||
// background: #f7f8fa;
|
||||
background: $body-background-color;
|
||||
font-family: BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
|
||||
"Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
|
||||
/*main {*/
|
||||
/* margin: 1rem auto 0;*/
|
||||
/*}*/
|
||||
}
|
||||
/*main {*/
|
||||
/* margin: 1rem auto 0;*/
|
||||
/*}*/
|
||||
}
|
||||
|
||||
#mobilizon > .container > .message {
|
||||
margin: 1rem auto auto;
|
||||
.message-header {
|
||||
button.delete {
|
||||
background: #4a4a4a;
|
||||
}
|
||||
|
||||
color: #111;
|
||||
#mobilizon > .container > .message {
|
||||
margin: 1rem auto auto;
|
||||
.message-header {
|
||||
button.delete {
|
||||
background: #4a4a4a;
|
||||
}
|
||||
|
||||
color: #111;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user