Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Vizelka committed Oct 2, 2023
1 parent a37ff92 commit f051040
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 38 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ app.get("/", (req, res) => {

app.listen(process.env.PORT || PORT, () => console.log("success"))


1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ window.addEventListener('DOMContentLoaded', () => {
}
})


2 changes: 1 addition & 1 deletion src/pages/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export const ChatPage = () => {
}),
input: Input(chatField),
});
}
}
3 changes: 1 addition & 2 deletions src/pages/chat/tmpl/content.tmpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ export const content = `
</div>
</div>
<div>
`
`
2 changes: 1 addition & 1 deletion src/pages/error/not-found/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const NotFoundPage = () => {
content: 'назад к чатам'
})
});
}
}
2 changes: 1 addition & 1 deletion src/pages/error/not-found/tmpl/content.tmpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export const content = `
{{{ chatPageLink }}}
</div>
</div>
`
`
2 changes: 1 addition & 1 deletion src/pages/error/server-error/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export const ServerErrorPage = () => {
content: 'назад к чатам'
})
});
}
}
3 changes: 1 addition & 2 deletions src/pages/error/server-error/tmpl/content.tmpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ export const content = `
{{{ chatPageLink }}}
</div>
</div>
`
`
4 changes: 1 addition & 3 deletions src/pages/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const signUpFieldList =
{
placeholder: 'first name',
type: 'text'

},
{
placeholder: 'second name',
Expand All @@ -32,7 +31,6 @@ const signUpFieldList =
placeholder: 'phone',
type: 'phone'
},


] as InputProps
export const SettingsPage = () => {
Expand All @@ -42,4 +40,4 @@ export const SettingsPage = () => {
button: Button({text: 'Save'}),
input: Input(signUpFieldList),
})
}
}
41 changes: 18 additions & 23 deletions src/pages/settings/tmpl/settings.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
export const settings = `
<div class="wrapper-settings-page">
<header class="header">
{{{ logo }}}
</header>
<div class="wrapper-content">
<div class="wrapper-avatar">
<img src='/assets/avatar.svg' alt="avatar"/>
<img src='/assets/empty-avatar.svg' alt="empty-avatar"/>
<span>avatar</span>
</div>
<form class="form">
{{{ input }}}
<div>{{{ button }}}</div>
</form>
{{{ authPageLink }}}
<div class="wrapper-settings-page">
<header class="header">
{{{ logo }}}
</header>
<div class="wrapper-content">
<div class="wrapper-avatar">
<img src='/assets/avatar.svg' alt="avatar"/>
<img src='/assets/empty-avatar.svg' alt="empty-avatar"/>
<span>avatar</span>
</div>
<form class="form">
{{{ input }}}
<div>{{{ button }}}</div>
</form>
{{{ authPageLink }}}
</div>
</div>
</div>
`
`
1 change: 1 addition & 0 deletions src/pages/sign-in/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ export const SignInPage = () => {
button: Button({text: 'Enter'})
});
}

4 changes: 2 additions & 2 deletions src/pages/sign-in/tmpl/content.tmpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
{{{ signUpPageLink }}}
</div>
</div>
`
`

3 changes: 2 additions & 1 deletion src/pages/sign-up/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ export const SignUpPage = () => {
input: Input(signUpFieldList),
button: Button({text: 'Create account'})
});
}
}

2 changes: 1 addition & 1 deletion src/pages/sign-up/tmpl/content.tmpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export const content = `
{{{ signUpPageLink }}}
</div>
</div>
`
`

0 comments on commit f051040

Please sign in to comment.