Skip to content

Commit

Permalink
Merge branch 'master' into feat/push-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Dec 6, 2024
2 parents a9bc3ab + 933ada2 commit 91cb0c6
Show file tree
Hide file tree
Showing 16 changed files with 14,846 additions and 12,101 deletions.
1 change: 1 addition & 0 deletions .eslint-overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": ["error", {"ignoreRestSiblings": true}],
"quotes": ["error", "single"],
"import/order": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: 22
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/mail/mail.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {ConfigModule, ConfigService} from '@nestjs/config';
import {MailerModule} from '@nestjs-modules/mailer';
import {HandlebarsAdapter} from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter.js';

import {MailService} from './mail/mail.service';
import {environment} from '../environment';
import {MailService} from './mail/mail.service';

@Module({
imports: [MailerModule.forRootAsync({
Expand Down
4 changes: 3 additions & 1 deletion apps/backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
}
],
"compilerOptions": {
"esModuleInterop": true
"esModuleInterop": true,
"moduleResolution": "NodeNext",
"module": "NodeNext"
}
}
1 change: 0 additions & 1 deletion apps/backend/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/app/about/features/features.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component} from '@angular/core';

import features from './features.json';

const apps = ['Apollusia', 'Doodle', 'DuD-Poll'] as const;
const apps = ['Apollusia', 'Doodle', 'DuD-Poll', 'Calendly'] as const;
type App = typeof apps[number];

interface Feature {
Expand Down
51 changes: 34 additions & 17 deletions apps/frontend/src/app/about/features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"support": {
"Apollusia": true,
"Doodle": true,
"DuD-Poll": true
"DuD-Poll": true,
"Calendly": false
}
},
{
Expand All @@ -17,7 +18,8 @@
"support": {
"Apollusia": true,
"Doodle": true,
"DuD-Poll": true
"DuD-Poll": true,
"Calendly": false
}
},
{
Expand All @@ -27,7 +29,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": true
}
},
{
Expand All @@ -37,7 +40,8 @@
"support": {
"Apollusia": false,
"Doodle": false,
"DuD-Poll": true
"DuD-Poll": true,
"Calendly": false
}
}
],
Expand All @@ -49,7 +53,8 @@
"support": {
"Apollusia": true,
"Doodle": true,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": false
}
},
{
Expand All @@ -59,7 +64,8 @@
"support": {
"Apollusia": true,
"Doodle": "Always",
"DuD-Poll": "Always"
"DuD-Poll": "Always",
"Calendly": false
}
},
{
Expand All @@ -69,7 +75,8 @@
"support": {
"Apollusia": true,
"Doodle": "Paid option",
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": false
}
},
{
Expand All @@ -79,7 +86,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": true
}
},
{
Expand All @@ -89,7 +97,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": false
}
},
{
Expand All @@ -99,7 +108,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": false
}
}
],
Expand All @@ -111,7 +121,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": "Repeating the time for every day is possible"
"DuD-Poll": "Repeating the time for every day is possible",
"Calendly": false
}
},
{
Expand All @@ -121,7 +132,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": false
}
},
{
Expand All @@ -131,7 +143,8 @@
"support": {
"Apollusia": true,
"Doodle": false,
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": false
}
},
{
Expand All @@ -141,7 +154,8 @@
"support": {
"Apollusia": true,
"Doodle": "Paid option",
"DuD-Poll": false
"DuD-Poll": false,
"Calendly": true
}
}
],
Expand All @@ -153,7 +167,8 @@
"support": {
"Apollusia": true,
"Doodle": true,
"DuD-Poll": true
"DuD-Poll": true,
"Calendly": true
}
},
{
Expand All @@ -163,7 +178,8 @@
"support": {
"Apollusia": "Only for creator, but planned. See #60",
"Doodle": false,
"DuD-Poll": true
"DuD-Poll": true,
"Calendly": false
}
},
{
Expand All @@ -173,7 +189,8 @@
"support": {
"Apollusia": false,
"Doodle": false,
"DuD-Poll": true
"DuD-Poll": true,
"Calendly": false
}
}
]
Expand Down
10 changes: 5 additions & 5 deletions apps/frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {HTTP_INTERCEPTORS, HttpClientModule, provideHttpClient, withFetch} from '@angular/common/http';
import {HTTP_INTERCEPTORS, provideHttpClient, withFetch, withInterceptorsFromDi} from '@angular/common/http';
import {APP_INITIALIZER, isDevMode, NgModule} from '@angular/core';
import {ReactiveFormsModule} from '@angular/forms';
import {BrowserModule, provideClientHydration} from '@angular/platform-browser';
Expand Down Expand Up @@ -34,12 +34,12 @@ function initializeKeycloak(keycloak: KeycloakService) {

@NgModule({
declarations: [AppComponent],
bootstrap: [AppComponent],
imports: [
BrowserModule,
AppRoutingModule,
NgbModule,
ModalModule,
HttpClientModule,
ReactiveFormsModule,
AboutModule,
LegalModule,
Expand Down Expand Up @@ -71,10 +71,10 @@ function initializeKeycloak(keycloak: KeycloakService) {
provide: APP_INITIALIZER,
useFactory: initializeKeycloak,
multi: true,
deps: [KeycloakService]
}
deps: [KeycloakService],
},
provideHttpClient(withInterceptorsFromDi()),
],
bootstrap: [AppComponent],
})
export class AppModule {
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ <h1 class="text-center">
[canParticipate]="!closedReason"
[token]="token"
[bestOption]="bestOption"
(changed)="onTableChange()"
></apollusia-table>
}
@case ("events") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,13 @@ export class ChooseEventsComponent implements OnInit {
private userVoted(): boolean {
return this.participants?.some(participant => participant.token === this.token) ?? false;
}

onTableChange() {
if(this.poll) {
this.pollService.getEvents(this.poll._id).subscribe((events)=>{
this.pollEvents = events;
this.updateHelpers();
})
}
}
}
2 changes: 1 addition & 1 deletion apps/frontend/src/app/poll/poll-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';

import {AutofillModalComponent, PostponeModalComponent} from '../modals';
import {ChooseDateComponent} from './choose-date/choose-date.component';
import {ChooseEventsComponent} from './choose-events/choose-events.component';
import {CreateEditPollComponent} from './create-poll/create-edit-poll.component';
import {IcalComponent} from './ical/ical.component';
import {AutofillModalComponent, PostponeModalComponent} from '../modals';

const routes: Routes = [
{path: 'create', component: CreateEditPollComponent, title: 'Create Poll | Apollusia'},
Expand Down
24 changes: 24 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3'
services:
database:
image: mongo
ports:
- "27017:27017"
volumes:
- database:/data/db

keycloak:
image: quay.io/keycloak/keycloak:24.0.3
command: [ 'start-dev' ]
environment:
KC_HOSTNAME: localhost
KC_HTTP_RELATIVE_PATH: /auth
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: root
ports:
- "8080:8080"
volumes:
- ./libs/keycloak:/opt/keycloak/themes/apollusia

volumes:
database:
8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getJestProjects } from '@nx/jest';
import { getJestProjectsAsync } from '@nx/jest';

export default {
projects: getJestProjects(),
};
export default async () => ({
projects: await getJestProjectsAsync(),
});
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@
"style": "scss"
},
"@gitopslovers/nx-sass:library": {}
}
},
"useLegacyCache": true
}
Loading

0 comments on commit 91cb0c6

Please sign in to comment.