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

wip - remove req and res types in server #607

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function app(): express.Express {
server.get('/campaign/**/edit', getStaticFiles);

// All regular routes use the Universal engine
server.get('/campaign/**', (req: { baseUrl: any; }, res: { render: (arg0: string, arg1: { req: any; providers: { provide: InjectionToken<string>; useValue: any; }[]; }) => void; }) => {
server.get('/campaign/**', (req,res) => {
res.render('index', {
req,
providers: [{ provide: APP_BASE_HREF, useValue: req.baseUrl }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div
class="row d-flex justify-content-center align-items-end pt-3 mb-1"
[attr.style]="isActive ? 'display: none!important' : 'flex'"
[style]="!!isActive && isActive? 'display: none!important' : 'flex'"
>
<div
class="col-xl-10 col-md-12 col-lg-10 col-sm-12 d-flex align-items-center flex-xl-row flex-lg-row flex-md-row flex-sm-column flex-column"
Expand Down Expand Up @@ -149,7 +149,7 @@
-->
<div
class="justify-content-center"
[attr.style]=" 'display: flex'"
style="display: flex"
>
<div
class="col-xl-4 col-md-6 col-lg-5 col-sm-8 d-flex justify-content-center"
Expand Down