diff --git a/src/pages/index.ts b/src/pages/index.ts index e3f957b3f..0a744adb2 100644 --- a/src/pages/index.ts +++ b/src/pages/index.ts @@ -1,10 +1,10 @@ -import Authorization from "./Authorization/Authorization"; -import Registration from "./Registration/Registration"; -import ErrorPage from "./ErrorPage/ErrorPage"; -import ChatsAndChat from "./ChatsAndChat/ChatsAndChat"; -import UserSettings from "./UserSettings/UserSettings" -import EditingSettings from "./EditingSettings/EditingSettings" -import EditingPassword from "./EditingPassword/EditingPassword"; +import Authorization from "./Authorization/Authorization.ts"; +import Registration from "./Registration/Registration.ts"; +import ErrorPage from "./ErrorPage/ErrorPage.ts"; +import ChatsAndChat from "./ChatsAndChat/ChatsAndChat.ts"; +import UserSettings from "./UserSettings/UserSettings.ts" +import EditingSettings from "./EditingSettings/EditingSettings.ts" +import EditingPassword from "./EditingPassword/EditingPassword.ts"; export { Authorization, diff --git a/src/pages/user-editing-password.pug b/src/pages/user-editing-password.pug deleted file mode 100644 index 6aeb92790..000000000 --- a/src/pages/user-editing-password.pug +++ /dev/null @@ -1,34 +0,0 @@ -extends ../layout/main.pug - -block meta - - const pageName = 'User editing password'; - - title= pageName - meta(name='description', content=pageName) - -block content - - .modal - .modal__inner - button.modal__close(title="Close modal") - .modal__content - section.user-settings - .user-settings__f - .user-settings__avatar - h2.user-settings__name User name - - .user-settings__s - form#userSettingsForm.user-settings__form - ul.user-settings__list - li.user-settings__list-item - label.user-settings__list-item-name(for="oldPassword") Current password: - input.user-settings__list-item-value.t-right(id="oldPassword" type="password" name="oldPassword") - li.user-settings__list-item - label.user-settings__list-item-name(for="newPassword") New password: - input.user-settings__list-item-value.t-right(id="newPassword" type="password" name="newPassword") - li.user-settings__list-item - label.user-settings__list-item-name(for="repeatPassword") Repeat new password: - input.user-settings__list-item-value.t-right(id="repeatPassword" type="password" name="repeatPassword") - - .user-settings__t - button.link(type="button") Save password diff --git a/tsconfig.json b/tsconfig.json index dec7251c9..b37ef2120 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "skipLibCheck": true, "sourceMap": true, "strictNullChecks": true, + "allowImportingTsExtensions": true, }, "include": ["src", "types/pug.d.ts"], "exclude": ["node_modules", "build", "static"] diff --git a/vite.config.ts b/vite.config.ts index 1f6e297fe..c7bb1985e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,5 @@ import { resolve } from 'path'; -import { defineConfig } from "vite"; // eslint-disable-line +import { defineConfig } from "vite"; import pugPrecompile from './vite-plugin-pug-precompile'; const root = resolve(__dirname, 'src');