Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 12, 2024
1 parent 6b4f3e5 commit b935939
Show file tree
Hide file tree
Showing 15 changed files with 4,556 additions and 2,367 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"adbario/php-dot-notation": "^3.3.0",
"bamarni/composer-bin-plugin": "^1.8",
"elasticsearch/elasticsearch": "^v8.14.0",
"adbario/php-dot-notation": "^3.3.0",
"guzzlehttp/guzzle": "^7.0",
"symfony/uid": "^6.4"
},
Expand Down
16 changes: 9 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ services:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud

init-ubuntu:
image: ubuntu
command: sh /home/ubuntu/docker/init-ubuntu.sh
volumes:
- ./docker:/home/ubuntu/docker
- .:/home/ubuntu/app
# init-ubuntu:
# image: ubuntu
# command: sh /home/ubuntu/docker/init-ubuntu.sh
# volumes:
# - ./docker:/home/ubuntu/docker
# - .:/home/ubuntu/app

nextcloud:
user: root
Expand All @@ -47,5 +47,7 @@ services:
- TZ=Europe/Amsterdam
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=admin

# depends_on:
# init-ubuntu:
# condition: service_completed_successfully

6,782 changes: 4,489 additions & 2,293 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion src/modals/taken/EditTaak.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,22 @@ export default {
toelichting: '',
klant: '',
},
statusOptions: {
options: [
{
id: 'status1',
label: 'Status 1',
},
{
id: 'status2',
label: 'Status 2',
},
{
id: 'status3',
label: 'Status 3',
},
],
},
}
},
updated() {
Expand Down Expand Up @@ -151,7 +167,7 @@ export default {
this.loading = false
this.error = false
this.hasUpdated = false
this.taakItem ={
this.taakItem = {
title: '',
type: '',
status: '',
Expand Down
2 changes: 1 addition & 1 deletion src/modals/zaken/ZaakForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default {
fetchZaakType() {
this.zaakTypeLoading = true
zaakTypeStore.refreshZaakTypeList()
zaakTypeStore.refreshZaakTypenList()
.then(({ entities }) => {
const selectedZaakType = entities.find((zaakType) => zaakType.id === this.zaak.zaaktype.id)
Expand Down
6 changes: 3 additions & 3 deletions src/store/modules/zaakTypen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const useZaakTypeStore = defineStore('zaakTypen', {
* @throws If the HTTP request fails.
* @return {Promise<{ response: Response, data: TZaakType[], entities: ZaakType[] }>} The response, raw data, and entities.
*/
async refreshZaakTypeList(search: string = null): Promise<{ response: Response, data: TZaakType[], entities: ZaakType[] }> {
async refreshZaakTypenList(search: string = null): Promise<{ response: Response, data: TZaakType[], entities: ZaakType[] }> {
let endpoint = apiEndpoint

if (search !== null && search !== '') {
Expand Down Expand Up @@ -119,7 +119,7 @@ export const useZaakTypeStore = defineStore('zaakTypen', {
throw new Error(`HTTP error! status: ${response.status}`)
}

this.refreshZaakTypeList()
this.refreshZaakTypenList()

return { response }
},
Expand Down Expand Up @@ -168,7 +168,7 @@ export const useZaakTypeStore = defineStore('zaakTypen', {
const entity = new ZaakType(data)

options.setItem && this.setZaakTypeItem(data)
this.refreshZaakTypeList()
this.refreshZaakTypenList()

return { response, data, entity }
},
Expand Down
12 changes: 9 additions & 3 deletions src/views/berichten/BerichtenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ import { navigationStore, berichtStore } from '../../store/store.js'
</div>
</ul>

<NcLoadingIcon v-if="!berichtStore.berichtenList"
<div v-if="!berichtStore.berichtenList?.length && !loading">
Geen berichten gedefinieerd.
</div>

<NcLoadingIcon v-if="loading"
class="loadingIcon"
:size="64"
appearance="dark"
name="Klanten aan het laden" />
name="Berichten aan het laden" />
</NcAppContentList>
</template>
<script>
Expand Down Expand Up @@ -110,7 +114,9 @@ export default {
}
},
mounted() {
berichtStore.refreshBerichtenList()
berichtStore.refreshBerichtenList().then(() => {
this.loading = false
})
},
methods: {
editBericht(bericht) {
Expand Down
18 changes: 12 additions & 6 deletions src/views/klanten/KlantenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ import { navigationStore, klantStore } from '../../store/store.js'
</div>
</ul>

<NcLoadingIcon v-if="!klantStore.klantenList"
<div v-if="!klantStore.klantenList?.length && !loading">
Geen klanten gedefinieerd.
</div>

<NcLoadingIcon v-if="loading"
class="loadingIcon"
:size="64"
appearance="dark"
Expand Down Expand Up @@ -107,18 +111,20 @@ export default {
}
},
mounted() {
klantStore.refreshKlantenList()
klantStore.refreshKlantenList().then(() => {
this.loading = false
})
},
methods: {
fullName(klant) {
let name = klant.achternaam;
let name = klant.achternaam
if (klant.tussenvoegsel) {
name = `${klant.tussenvoegsel} ${name}`;
name = `${klant.tussenvoegsel} ${name}`
}
if (klant.voornaam) {
name = `${name}, ${klant.voornaam}`;
name = `${name}, ${klant.voornaam}`
}
return name;
return name
},
fetchData(newPage) {
this.loading = true
Expand Down
10 changes: 8 additions & 2 deletions src/views/taken/TakenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ import { navigationStore, taakStore } from '../../store/store.js'
</div>
</ul>

<NcLoadingIcon v-if="!taakStore.takenList"
<div v-if="!taakStore.takenList?.length && !loading">
Geen taken gedefinieerd.
</div>

<NcLoadingIcon v-if="loading"
class="loadingIcon"
:size="64"
appearance="dark"
Expand Down Expand Up @@ -107,7 +111,9 @@ export default {
}
},
mounted() {
taakStore.refreshTakenList()
taakStore.refreshTakenList().then(() => {
this.loading = false
})
},
methods: {
fetchData(newPage) {
Expand Down
8 changes: 6 additions & 2 deletions src/views/zaakTypen/ZaakTypenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ import { navigationStore, zaakTypeStore } from '../../store/store.js'
</div>
</ul>

<div v-if="!zaakTypeStore.zaakTypenList.length">
No zaaktypen have been defined yet.
<div v-if="!zaakTypeStore.zaakTypenList?.length && !loading">
Geen zaaktypen gedefinieerd.
</div>

<NcLoadingIcon v-if="loading"
Expand Down Expand Up @@ -105,6 +105,10 @@ export default {
.then(() => {
this.loading = false
})
.catch((err) => {
console.error(err)
this.loading = false
})
},
methods: {
clearText() {
Expand Down
4 changes: 2 additions & 2 deletions src/views/zaken/ZakenList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ import { navigationStore, zaakStore } from '../../store/store.js'
</div>
</ul>

<div v-if="!zaakStore.zakenList.length">
No zaken have been defined yet.
<div v-if="!zaakStore.zakenList.length && !loading">
Geen zaken gedefinieerd.
</div>

<NcLoadingIcon v-if="loading"
Expand Down
10 changes: 0 additions & 10 deletions vendor-bin/cs-fixer/composer.json

This file was deleted.

16 changes: 0 additions & 16 deletions vendor-bin/openapi-extractor/composer.json

This file was deleted.

10 changes: 0 additions & 10 deletions vendor-bin/phpunit/composer.json

This file was deleted.

10 changes: 0 additions & 10 deletions vendor-bin/psalm/composer.json

This file was deleted.

0 comments on commit b935939

Please sign in to comment.