Skip to content

Commit 95def98

Browse files
committed
frontend: Streamline file naming in frontend.
fix #205
1 parent 125db86 commit 95def98

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { showAlert } from "./Alert";
66
import { generate_hash, get_salt_for_user } from "../utils";
77
import { Modal } from "react-bootstrap";
88
import { useTranslation } from "react-i18next";
9-
import { PasswordComponent } from "./password_component";
9+
import { PasswordComponent } from "./PasswordComponent";
1010
import sodium from "libsodium-wrappers";
1111
import { Base64 } from "js-base64";
1212
import i18n from "../i18n";
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { PASSWORD_PATTERN, fetchClient, generate_hash, generate_random_bytes, ge
55
import sodium from "libsodium-wrappers";
66
import { Trans, useTranslation } from "react-i18next";
77
import i18n from "../i18n";
8-
import { PasswordComponent } from "./password_component";
9-
import { RecoveryDataComponent } from "./recovery_data_component";
8+
import { PasswordComponent } from "./PasswordComponent";
9+
import { RecoveryDataComponent } from "./RecoveryDataComponent";
1010
import { Signal, signal } from "@preact/signals";
1111
import { privacy_notice, terms_of_use } from "links";
1212

frontend/src/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { LocationProvider, Router, Route, lazy } from 'preact-iso';
2323

2424
import { connected, CustomNavbar } from './components/Navbar.js';
2525
import { NotFound } from './pages/_404.jsx';
26-
import { Login } from './components/login.js';
27-
import { Register } from './components/register.js';
26+
import { Login } from './components/Login.js';
27+
import { Register } from './components/Register.js';
2828
import Row from "react-bootstrap/Row";
2929
import Card from "react-bootstrap/Card";
3030
import Tabs from "react-bootstrap/Tabs";
@@ -33,7 +33,7 @@ import { ErrorAlert } from './components/Alert.js';
3333
import { isDebugMode, refresh_access_token } from './utils';
3434
import { AppState, loggedIn } from './utils.js';
3535
import { Col, Spinner } from 'react-bootstrap';
36-
import { Recovery } from './pages/recovery.js';
36+
import { Recovery } from './pages/Recovery.js';
3737
import { Trans, useTranslation } from "react-i18next";
3838
import Median from "median-js-bridge";
3939
import { Footer } from "./components/Footer";
@@ -70,9 +70,9 @@ if (icon) {
7070
let refreshInterval: NodeJS.Timeout | undefined = undefined;
7171
const refreshMinutes = (Math.random() * (5 -3) + 3);
7272

73-
const Tokens = lazy(() => import('./pages/tokens.js').then(m => m.Tokens));
74-
const User = lazy(() => import('./pages/user.js').then(m => m.User));
75-
const DeviceList = lazy(() => import('./pages/devices.js').then(m => m.DeviceList));
73+
const Tokens = lazy(() => import('./pages/Tokens.js').then(m => m.Tokens));
74+
const User = lazy(() => import('./pages/User.js').then(m => m.User));
75+
const DeviceList = lazy(() => import('./pages/Devices.js').then(m => m.DeviceList));
7676
const Frame = lazy(() => import('./pages/Frame.js').then(m => m.Frame));
7777

7878
export function App() {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { AppState, PASSWORD_PATTERN, concat_salts, fetchClient, generate_hash, g
44
import { crypto_box_keypair, crypto_secretbox_KEYBYTES, crypto_secretbox_NONCEBYTES, crypto_secretbox_easy } from "libsodium-wrappers";
55
import { showAlert } from "../components/Alert";
66
import { useTranslation } from "react-i18next";
7-
import { PasswordComponent } from "../components/password_component";
7+
import { PasswordComponent } from "../components/PasswordComponent";
88
import { useEffect, useState } from "preact/hooks";
99
import { useSignal } from "@preact/signals";
10-
import { RecoveryDataComponent } from "../components/recovery_data_component";
10+
import { RecoveryDataComponent } from "../components/RecoveryDataComponent";
1111
import { useLocation } from "preact-iso";
1212

1313
interface RecoverySchema {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { logout } from "../components/Navbar";
2929
import { useTranslation } from "react-i18next";
3030
import { Card, Collapse, Container } from "react-bootstrap";
3131
import { signal } from "@preact/signals";
32-
import { PasswordComponent } from "../components/password_component";
32+
import { PasswordComponent } from "../components/PasswordComponent";
3333
import i18n from "../i18n";
3434
import { showAlert } from "../components/Alert";
3535
import { Base64 } from "js-base64";

0 commit comments

Comments
 (0)