Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/kob 66 angebote stadtweit #24

Open
wants to merge 45 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ef841fe
refactored
ThomasAFink May 11, 2023
c2588d4
configured for new backend endpoint
ThomasAFink May 12, 2023
cfef54e
upload and delete image for contact point
ThomasAFink May 16, 2023
107042c
nicer image display
ThomasAFink May 16, 2023
736b28a
nicer image display
ThomasAFink May 16, 2023
2e03fef
nicer image display
ThomasAFink May 16, 2023
1ec5d0a
add delete image
ThomasAFink May 17, 2023
45d0587
add text editing helpers
ThomasAFink May 17, 2023
66f993d
add text editing helpers
ThomasAFink May 17, 2023
2327059
make contact points navigable
ThomasAFink May 19, 2023
440fe97
make contact points navigable in admin
ThomasAFink May 19, 2023
be5e33e
fixed upload validation
ThomasAFink May 22, 2023
44507cb
moved admin info button
ThomasAFink May 22, 2023
f4acd2d
stuff
ThomasAFink May 22, 2023
0ad45c7
build
ThomasAFink May 22, 2023
a592a69
add offers
ThomasAFink May 24, 2023
c82b639
changed some texts
ThomasAFink May 25, 2023
ee428a0
Merge branch 'dev' into feature/KOB-66_angebote_stadtweit
ThomasAFink May 25, 2023
2530ae4
merged
ThomasAFink May 25, 2023
4435c1f
upload, update, and delete work
ThomasAFink May 25, 2023
0c00129
Lots of stuff
ThomasAFink May 26, 2023
280c5ea
fixed bug if no contactpoint or offer exists
ThomasAFink May 26, 2023
31aff31
small stuff
ThomasAFink May 30, 2023
e129402
admin central stuff
ThomasAFink May 30, 2023
a29c75b
btn
ThomasAFink May 30, 2023
9619bf3
changed refresh
ThomasAFink May 30, 2023
cba238f
changed refresh
ThomasAFink May 30, 2023
6771da6
locked offers and additional pages, and unlocked contact points
ThomasAFink May 30, 2023
ad311dc
fixed listing bug
ThomasAFink May 30, 2023
b9f678d
fixed listing bug
ThomasAFink May 30, 2023
e9e2eea
fixed listing bug
ThomasAFink May 30, 2023
66fffe4
patch department bug
ThomasAFink May 30, 2023
3cee8a0
fixed refresh bug
ThomasAFink May 31, 2023
b46ed8d
fixed bug identical query key, which is ['adminInfo'] and did some cl…
ThomasAFink May 31, 2023
748657d
remove console
ThomasAFink May 31, 2023
49d67e6
allow department admin access to additional pages
ThomasAFink May 31, 2023
1f1eb58
Merge branch 'dev' into feature/KOB-66_angebote_stadtweit
ThomasAFink Oct 20, 2023
983c27b
resolve merge conflicts
ThomasAFink Oct 20, 2023
d4d6621
Fix html content for the offer
ThomasAFink Oct 20, 2023
697773f
Fix html content for the offer
ThomasAFink Oct 20, 2023
0b92a9e
Fix html content for the offer
ThomasAFink Oct 20, 2023
56ec7a0
Fix html content for the offer
ThomasAFink Oct 20, 2023
d566eef
Update browserslist
ThomasAFink Apr 8, 2024
7be8ff9
Merge branch 'dev' into feature/KOB-66_angebote_stadtweit
ThomasAFink Apr 24, 2024
957d7c9
Merge branch 'dev' into feature/KOB-66_angebote_stadtweit
ThomasAFink Apr 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 30 additions & 24 deletions frontend/src/core/core.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,54 @@ import Router from "vue-router";
// Add this import at the top of core.router.ts
import vuetify, { adminTheme, kobitTheme } from "@/core/plugins/vuetify";

import {theMainRoutes} from "@/features/the-main/the-main.routes";
import {erfahreMehrRoutes} from "@/features/the-additional/the-additional.routes";
import { theMainRoutes } from "@/features/the-main/the-main.routes";
import { erfahreMehrRoutes } from "@/features/the-additional/the-additional.routes";
import {
conflictPreventionRoutes
} from "@/features/the-additional/features/the-conflict-prevention/the-conflict-prevention.routes";
import {downloadsRoutes} from "@/features/the-additional/features/the-downloads/the-downloads.routes";
import {faqRoutes} from "@/features/the-additional/features/the-faq/the-faq.routes";
import {glossarRoutes} from "@/features/the-additional/features/the-glossar/the-glossar.routes";
import { downloadsRoutes } from "@/features/the-additional/features/the-downloads/the-downloads.routes";
import { faqRoutes } from "@/features/the-additional/features/the-faq/the-faq.routes";
import { glossarRoutes } from "@/features/the-additional/features/the-glossar/the-glossar.routes";
import {
leadershipCooperationRoutes
} from "@/features/the-additional/features/the-leadership-cooperation/the-leadership-cooperation.routes";
import {dvFairRoutes} from "@/features/the-additional/features/the-dv-fair/the-dv-fair.routes";
import { dvFairRoutes } from "@/features/the-additional/features/the-dv-fair/the-dv-fair.routes";
import {
escalationStepsRoutes
} from "@/features/the-additional/features/the-escalation-steps/the-escalation-steps.routes";
import {
theAnlaufstellenRoutes
} from "@/features/the-unterstuetzungsfinder/features/the-contact-points/the-contact-points.routes";
import {theAngeboteRoutes} from "@/features/the-angebote/the-angebote.routes";
import {theUnterstuetzungsfinderRoutes} from "@/features/the-unterstuetzungsfinder/the-unterstuetzungsfinder.routes";
import { theOfferRoutes } from "@/features/the-offers/the-offers.routes";
import { theUnterstuetzungsfinderRoutes } from "@/features/the-unterstuetzungsfinder/the-unterstuetzungsfinder.routes";
import {
theAnlaufstellenDetailsRoutes
} from "@/features/the-unterstuetzungsfinder/features/the-contact-points/the-contact-points-details.routes";
import {adminUFinderRoutes} from "@/features/admin/components/u-finder/u-finder.routes";
import { adminUFinderRoutes } from "@/features/admin/components/u-finder/u-finder.routes";

import {adminRoutes} from "@/features/admin/the-admin-routes";
import {adminContactPointsRoutes} from "@/features/admin/features/the-contact-points/the-contact-points-routes";
import {adminExperienceMoreRoutes} from "@/features/admin/features/the-additional/the-additional-overview-routes";
import { adminRoutes } from "@/features/admin/the-admin-routes";
import { adminContactPointsRoutes } from "@/features/admin/features/the-contact-points/the-contact-points-routes";
import { adminAdditionalRoutes } from "@/features/admin/features/the-additional/the-additional-overview-routes";
import {
adminConflictPreventionRoutes
} from "@/features/admin/features/the-additional/features/the-conflict-prevention/the-conflict-prevention.routes";
import {
} from "@/features/admin/features/the-additional/features/the-conflict-prevention/the-conflict-prevention.routes";
import {
adminDownloadsRoutes
} from "@/features/admin/features/the-additional/features/the-downloads/the-downloads.routes";
import {
} from "@/features/admin/features/the-additional/features/the-downloads/the-downloads.routes";
import {
adminFaqRoutes
} from "@/features/admin/features/the-additional/features/the-faq/the-faq.routes";
import {
} from "@/features/admin/features/the-additional/features/the-faq/the-faq.routes";
import {
adminGlossarRoutes
} from "@/features/admin/features/the-additional/features/the-glossar/the-glossar.routes";
import {
} from "@/features/admin/features/the-additional/features/the-glossar/the-glossar.routes";
import {
adminLeadershipCooperationRoutes
} from "@/features/admin/features/the-additional/features/the-leadership-cooperation/the-leadership-cooperation.routes";
} from "@/features/admin/features/the-additional/features/the-leadership-cooperation/the-leadership-cooperation.routes";

import {
adminOffersRoutes
} from "@/features/admin/features/the-offers/the-offers.routes";


Vue.use(Router);

Expand Down Expand Up @@ -82,16 +87,17 @@ const router = new Router({
escalationStepsRoutes,
theAnlaufstellenRoutes,
theAnlaufstellenDetailsRoutes,
theAngeboteRoutes,
theOfferRoutes,
adminRoutes,
adminContactPointsRoutes,
adminExperienceMoreRoutes,
adminAdditionalRoutes,
adminConflictPreventionRoutes,
adminDownloadsRoutes,
adminFaqRoutes,
adminGlossarRoutes,
adminLeadershipCooperationRoutes,
adminUFinderRoutes
adminUFinderRoutes,
adminOffersRoutes
]
});

Expand Down
7 changes: 0 additions & 7 deletions frontend/src/core/core.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ import {
TheErfahreMehrModuleState,
theErfahreMehrStoreModule
} from "@/features/the-additional/the-additional-store.module";
import {
THE_ANGEBOTE_MODULE_NAME,
TheAngeboteModuleState,
theAngeboteStoreModule
} from "@/features/the-angebote/the-angebote-store.module";
import {
THE_DISCLAIMER_MODULE_NAME,
theDisclaimerStoreModule,
Expand All @@ -81,7 +76,6 @@ export interface RootState {
theDvFairStoreModuleState: TheDvFairStoreModuleState;
theEscalationStepsStoreModuleState: TheEscalationStepsStoreModuleState;
theAnlaufstellenStoreState: TheAnlaufstellenStoreState;
theAngeboteModuleState: TheAngeboteModuleState;
theDisclaimerStoreState: TheDisclaimerStoreState;
}

Expand All @@ -98,7 +92,6 @@ export default new Vuex.Store<RootState>({
[THE_CONFLICT_PREVENTION_MODULE_NAME]: theConflictPreventionStoreModule,
[THE_DOWNLOADS_MODULE_NAME]: theDownloadsStoreModule,
[THE_ANLAUFSTELLEN_MODULE_NAME]: theAnlaufstellenStoreModule,
[THE_ANGEBOTE_MODULE_NAME]: theAngeboteStoreModule,
[THE_DISCLAIMER_MODULE_NAME]: theDisclaimerStoreModule
},
strict: notOnProduction
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/core/services/downloads/privacypolicy.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<template>
<p>
<p class="pt-0 mt-4">
<v-btn
v-if="item !== undefined"
plain
:href="item.textItemView[0].link"
:download="item.textItemView[0].header"
:loading="isLoading"
class="pt-0 mt-0"
>
Datenschutzhinweis <v-icon>mdi-download</v-icon>
</v-btn>
Expand Down
17 changes: 16 additions & 1 deletion frontend/src/core/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,25 @@
"addDepartmentHint":"Um ein weiteres Referat hinzuzufügen geben Sie dies ein und drücken Sie bitte <kbd>enter</kbd>."
}
},
"offers": {
"texts": {
"addNewTitle": "Hinzufügen",
"addNewDescription": "Fügen Sie eine neues Angebot hinzu.",
"addDepartment": "Referat",
"addContact": "Kontakt hinzufügen",
"addLink": "Link hinzufügen",
"addFile": "Datei hinzufügen",
"edit": "Bearbeiten Sie eine bestehende Anlaufstelle.",
"cancel": "Abbrechen",
"save": "Speichern",
"markdownHint": "Die Beschreibung kann mittels Markdown (Empfehlung) oder HTML designed werden. Das Ergebnis sehen Sie in dem Feld daneben. Über diesen Link können Sie sich die verschiedenen Möglichkeiten von Markdown ansehen: ",
"addDepartmentHint":"Um ein weiteres Referat hinzuzufügen geben Sie dies ein und drücken Sie bitte <kbd>enter</kbd>."
}
},
"contentItems": {
"texts": {
"addNewTitle": "Hinzufügen",
"addNewDescription": "Fügen Sie eine neue Anlaufstelle hinzu.",
"addNewDescription": "Fügen Sie eine neuen Artikel hinzu.",
"addContact": "Kontakt hinzufügen",
"addLink": "Link hinzufügen",
"addFile": "Datei hinzufügen",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const mapAdminInfoToText = (adminInfo: AdminUserInfo): AdminTextInfo => {
}

export const useGetAdminUserInfoText = () =>
useQuery<AdminTextInfo>(['adminInfo'],
useQuery<AdminTextInfo>(['adminInfoText'],
() => getAdminUserInfo().then(mapAdminInfoToText)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<v-col cols="12">
<v-text-field
v-model="addedItem.header"
color="secondary"
:label="headerLabel"
:rules="[headerRule]"
max-file-name-input-length="250"
Expand All @@ -32,6 +33,7 @@
<v-col cols="12">
<v-textarea
v-model="addedItem.entry"
color="secondary"
:label="entryLabel"
:rules="[entryRule]"
max-file-name-input-length="1500"
Expand Down Expand Up @@ -89,9 +91,9 @@
</template>

<script lang="ts">
import { defineComponent, watch, PropType, computed, ref, onMounted, getCurrentInstance } from "vue";

Check warning on line 94 in frontend/src/features/admin/features/the-additional/commons/AddTextItemDialog.vue

View workflow job for this annotation

GitHub Actions / build

'onMounted' is defined but never used

Check warning on line 94 in frontend/src/features/admin/features/the-additional/commons/AddTextItemDialog.vue

View workflow job for this annotation

GitHub Actions / build

'onMounted' is defined but never used
import { TextItem } from "@/features/commons/types/Item";
import { VDialog, VCard, VCardTitle, VCardText, VCardActions, VSpacer, VBtn, VCol, VContainer, VFileInput, VForm, VIcon, VRow, VSnackbar, VTextarea, VTextField } from "vuetify/lib";

Check warning on line 96 in frontend/src/features/admin/features/the-additional/commons/AddTextItemDialog.vue

View workflow job for this annotation

GitHub Actions / build

'VDialog' is defined but never used

Check warning on line 96 in frontend/src/features/admin/features/the-additional/commons/AddTextItemDialog.vue

View workflow job for this annotation

GitHub Actions / build

'VDialog' is defined but never used

Check warning on line 96 in frontend/src/features/admin/features/the-additional/commons/AddTextItemDialog.vue

View workflow job for this annotation

GitHub Actions / build

'VCard' is defined but never used

Check warning on line 96 in frontend/src/features/admin/features/the-additional/commons/AddTextItemDialog.vue

View workflow job for this annotation

GitHub Actions / build

'VCard' is defined but never used
import { useCreateNewTextItem } from "../features/middelware/useTextItem";
import { useRouter } from "vue-router/composables";
import ErrorHandler from "@/features/commons/components/ErrorHandler.vue";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<v-icon>mdi-cancel</v-icon> Abbruch
</v-btn>
<v-btn
color="green darken-1 white--text"
color="error"
@click="deleteItem"
>
<v-icon>mdi-delete</v-icon> Löschen
Expand All @@ -33,7 +33,7 @@
<v-snackbar
v-model="isSnackbarActive"
:timeout="SNACKBAR_TIMEOUT"
color="green darken-1"
color="error"
bottom
>
<p class="pa-0 ma-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<v-col cols="12">
<v-text-field
v-model="editedItem.header"
color="secondary"
:label="headerLabel"
:rules="[headerRule]"
max-file-name-input-length="250"
Expand All @@ -32,6 +33,7 @@
<v-col cols="12">
<v-textarea
v-model="editedItem.entry"
color="secondary"
:label="entryLabel"
:rules="[entryRule]"
max-file-name-input-length="1500"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<v-icon>mdi-pencil</v-icon> Bearbeiten
</v-btn>
<v-btn
color="green darken-1 ml-2 white--text"
color="error ml-2"
@click="openDeleteDialog(item)"
>
<v-icon>mdi-delete</v-icon> Löschen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ export const putTextItem = async (id: string, pageType: string, textItem: TextIt
}

export const deleteTextItem = async (id: string, pageType: string, link: string) => {
const deleteOldFile = `/s3/delete?link=${encodeURIComponent(link.toString())}`;
await httpDeleteS3File(deleteOldFile);
const url = `/additional/${pageType}/text-item/${id}?link=${encodeURIComponent(link)}`;

if(link){
const deleteOldFile = `/s3/delete?link=${encodeURIComponent(link.toString())}`;
await httpDeleteS3File(deleteOldFile);
}

const url = `/additional/${pageType}/text-item/${id}`;
return httpDeleteJson(url);
}
Loading
Loading