mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
work on purchase view
This commit is contained in:
@@ -49,8 +49,8 @@ router.beforeEach( ( to, from ) => {
|
|||||||
return { name: 'adminHome' };
|
return { name: 'adminHome' };
|
||||||
} else if ( UserAccountPages.includes( to.name ) && !isUserAuthenticated ) {
|
} else if ( UserAccountPages.includes( to.name ) && !isUserAuthenticated ) {
|
||||||
return { name: 'login' };
|
return { name: 'login' };
|
||||||
} else if ( !isUserAuthenticated && to.name === 'purchase' && authRequired ) {
|
} else if ( isUserAuthenticated && to.name === 'login' ) {
|
||||||
return { name: 'login' };
|
return { name: 'account' };
|
||||||
} else if ( !isUserAuthenticated && to.name === 'pay' ) {
|
} else if ( !isUserAuthenticated && to.name === 'pay' ) {
|
||||||
return { name: 'purchase' };
|
return { name: 'purchase' };
|
||||||
} else if ( to.name.substring( 0, 5 ) === 'setup' && !backendStore.getVisitedSetupPages[ to.name.substring( 5 ).toLowerCase() ] && to.name.substring( 5 ).toLowerCase() !== 'start' && to.name.substring( 5 ).toLowerCase() !== 'root' ) {
|
} else if ( to.name.substring( 0, 5 ) === 'setup' && !backendStore.getVisitedSetupPages[ to.name.substring( 5 ).toLowerCase() ] && to.name.substring( 5 ).toLowerCase() !== 'start' && to.name.substring( 5 ).toLowerCase() !== 'root' ) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
|
|
||||||
export const useUserStore = defineStore ( 'user', {
|
export const useUserStore = defineStore ( 'user', {
|
||||||
state: () => ( { 'isUserAuth': false, 'isAdminAuth': true, 'userPermissions': {} } ),
|
state: () => ( { 'isUserAuth': true, 'isAdminAuth': true, 'userPermissions': {} } ),
|
||||||
getters: {
|
getters: {
|
||||||
getUserAuthenticated: ( state ) => state.isUserAuth,
|
getUserAuthenticated: ( state ) => state.isUserAuth,
|
||||||
getAdminAuthenticated: ( state ) => state.isAdminAuth,
|
getAdminAuthenticated: ( state ) => state.isAdminAuth,
|
||||||
|
|||||||
@@ -19,8 +19,13 @@
|
|||||||
<div v-else class="wrapper">
|
<div v-else class="wrapper">
|
||||||
<div class="data">
|
<div class="data">
|
||||||
<h2>Billing</h2>
|
<h2>Billing</h2>
|
||||||
|
<table class="billing-info-table">
|
||||||
<router-link to="/pay">Buy now</router-link>
|
<tr>
|
||||||
|
<td>Street and house number</td>
|
||||||
|
<td><input type="text" name="address" id="address"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<router-link to="/pay" id="buy-button">Buy now</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="cart">
|
<div class="cart">
|
||||||
<div class="cart-list">
|
<div class="cart-list">
|
||||||
@@ -44,6 +49,25 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
#buy-button {
|
||||||
|
background-color: var( --accent-background );
|
||||||
|
padding: 2% 4%;
|
||||||
|
border-radius: 50px;
|
||||||
|
color: var( --secondary-color );
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.5s;
|
||||||
|
font-size: 100%;
|
||||||
|
margin-top: 4%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#buy-button:hover {
|
||||||
|
margin-top: 2%;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 3% 6%;
|
||||||
|
font-size: 130%;
|
||||||
|
background-color: var( --accent-background-hover );
|
||||||
|
}
|
||||||
|
|
||||||
.purchase {
|
.purchase {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* libreevent - StartPageEditorView.vue
|
* libreevent - StartPageEditorView.vue
|
||||||
*
|
*
|
||||||
* Created by Janis Hutz 05/12/2023, Licensed under the GPL V3 License
|
* Created by Janis Hutz 06/24/2023, Licensed under the GPL V3 License
|
||||||
* https://janishutz.com, development@janishutz.com
|
* https://janishutz.com, development@janishutz.com
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user