WIP
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details

This commit is contained in:
William Buezas 2024-08-14 08:30:53 -03:00
parent 7837925be9
commit ec14ca334a
12 changed files with 19 additions and 49 deletions

View File

@ -37,7 +37,6 @@ const onSubmit = async () => {
formData.append('image', file.value); formData.append('image', file.value);
formData.append('schema', props.schema); formData.append('schema', props.schema);
formData.append('srv', 'json:image/upload'); formData.append('srv', 'json:image/upload');
await api({ await api({
method: 'post', method: 'post',
url: location.origin, url: location.origin,

View File

@ -57,6 +57,8 @@ export default {
adminVisits: 'Visites', adminVisits: 'Visites',
adminUsers: "Gestió d'usuaris", adminUsers: "Gestió d'usuaris",
adminPhotos: 'Imatges', adminPhotos: 'Imatges',
adminNews: 'Gestió de noticies',
adminNewsDetails: 'Afegir o editar notícia',
// //
orderLoadedIntoBasket: 'Comanda carregada a la cistella!', orderLoadedIntoBasket: 'Comanda carregada a la cistella!',
at: 'a les' at: 'a les'

View File

@ -70,6 +70,8 @@ export default {
adminVisits: 'Visits', adminVisits: 'Visits',
adminUsers: 'User management', adminUsers: 'User management',
adminPhotos: 'Images', adminPhotos: 'Images',
adminNews: 'News management',
adminNewsDetails: 'Add or edit new',
// //
orderLoadedIntoBasket: 'Order loaded into basket!', orderLoadedIntoBasket: 'Order loaded into basket!',
at: 'at', at: 'at',

View File

@ -76,6 +76,8 @@ export default {
adminVisits: 'Visitas', adminVisits: 'Visitas',
adminUsers: 'Gestión de usuarios', adminUsers: 'Gestión de usuarios',
adminPhotos: 'Imágenes', adminPhotos: 'Imágenes',
adminNews: 'Gestión de noticias',
adminNewsDetails: 'Añadir o editar noticia',
// //
orderLoadedIntoBasket: '¡Pedido cargado en la cesta!', orderLoadedIntoBasket: '¡Pedido cargado en la cesta!',
at: 'a las', at: 'a las',

View File

@ -57,6 +57,8 @@ export default {
adminVisits: 'Visites', adminVisits: 'Visites',
adminUsers: 'Gestion des utilisateurs', adminUsers: 'Gestion des utilisateurs',
adminPhotos: 'Images', adminPhotos: 'Images',
adminNews: 'Gestion des nouvelles',
adminNewsDetails: 'Ajouter ou editer nouvelles',
// //
orderLoadedIntoBasket: 'Commande chargée dans le panier!', orderLoadedIntoBasket: 'Commande chargée dans le panier!',
at: 'à' at: 'à'

View File

@ -58,6 +58,8 @@ export default {
adminVisits: 'Visitas', adminVisits: 'Visitas',
adminUsers: 'Gestão de usuários', adminUsers: 'Gestão de usuários',
adminPhotos: 'Imagens', adminPhotos: 'Imagens',
adminNews: 'Gestão de notícias',
adminNewsDetails: 'Ajouter ou editer nouvelles',
// //
orderLoadedIntoBasket: 'Pedido carregado na cesta!', orderLoadedIntoBasket: 'Pedido carregado na cesta!',
at: 'às' at: 'às'

View File

@ -128,28 +128,6 @@ onBeforeUnmount(() => clearInterval(intervalId.value));
</QPage> </QPage>
</template> </template>
<style lang="scss" scoped>
.card-container {
width: 140px;
height: 170px;
padding: 15px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card-title {
font-size: 0.7rem;
font-weight: bold;
}
.card-description {
font-size: 0.65rem;
text-align: center;
}
</style>
<i18n lang="yaml"> <i18n lang="yaml">
en-US: en-US:
refresh: Refresh refresh: Refresh

View File

@ -0,0 +1 @@
<template>Admin news details</template>

View File

@ -0,0 +1 @@
<template>News view</template>

View File

@ -229,8 +229,6 @@ onMounted(async () => getImageCollections());
</QPage> </QPage>
</template> </template>
<style lang="scss" scoped></style>
<i18n lang="yaml"> <i18n lang="yaml">
en-US: en-US:
collection: Collection collection: Collection

View File

@ -130,28 +130,6 @@ watch(
</QPage> </QPage>
</template> </template>
<style lang="scss" scoped>
.card-container {
width: 140px;
height: 170px;
padding: 15px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card-title {
font-size: 0.7rem;
font-weight: bold;
}
.card-description {
font-size: 0.65rem;
text-align: center;
}
</style>
<i18n lang="yaml"> <i18n lang="yaml">
en-US: en-US:
from: From from: From

View File

@ -86,8 +86,13 @@ const routes = [
}, },
{ {
name: 'adminNews', name: 'adminNews',
path: 'admin/news' path: 'news/news',
// component: () => import('pages/Admin/NewsView.vue') component: () => import('pages/Admin/NewsView.vue')
},
{
name: 'adminNewsDetails',
path: 'news/new/:id?',
component: () => import('pages/Admin/NewsDetails.vue')
}, },
{ {
name: 'adminPhotos', name: 'adminPhotos',