Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/J-Schoepplenberg/royce
/ functions
Functions
67 in github.com/J-Schoepplenberg/royce
⨍
Functions
67
◇
Types & classes
17
↓ 6 callers
Method
debug
(c: Class, message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:25
↓ 4 callers
Function
active
(path: string)
frontend/src/components/Nav.tsx:11
↓ 4 callers
Method
asClass
(c: Class)
frontend/src/utils/logging.tsx:48
↓ 4 callers
Method
format
(level: string)
frontend/src/utils/logging.tsx:95
↓ 4 callers
Function
useStore
()
frontend/src/store.tsx:37
↓ 3 callers
Method
error
(c: Class, message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:40
↓ 3 callers
Method
getJson
GET some JSON.
frontend/src/utils/requests.tsx:24
↓ 3 callers
Method
postJson
POST some JSON.
frontend/src/utils/requests.tsx:41
↓ 2 callers
Function
create_db_config
Create database configuration from environment variables
backend/src/database/setup.rs:19
↓ 2 callers
Method
fetch
Fetch some URL path asynchronously.
frontend/src/utils/requests.tsx:6
↓ 1 callers
Method
authenticate
Authenticates a user with the provided credentials.
backend/src/auth/backend.rs:68
↓ 1 callers
Function
create_db_pool
Create a database connection pool.
backend/src/database/setup.rs:31
↓ 1 callers
Method
fetch_user_by_id
Fetch a user by id from the database.
backend/src/auth/backend.rs:51
↓ 1 callers
Method
fetch_user_by_username
Fetch a user by username from the database.
backend/src/auth/backend.rs:42
↓ 1 callers
Method
formatSign
(value: number)
frontend/src/utils/helpers.tsx:35
↓ 1 callers
Method
formatTimeWithMillis
(time: number | Date = Date.now())
frontend/src/utils/helpers.tsx:3
↓ 1 callers
Function
get_db_client
Retrieve a database client.
backend/src/database/setup.rs:48
↓ 1 callers
Function
get_db_config
Retrieve the database configuration.
backend/src/database/setup.rs:42
↓ 1 callers
Function
init_db
Initialize the database pool and run migrations.
backend/src/database/setup.rs:12
↓ 1 callers
Function
init_redis_store
Setup the Redis connection pool.
backend/src/auth/sessions.rs:34
↓ 1 callers
Function
migrations_present
Check if the migrations table is present.
backend/src/database/migration.rs:28
↓ 1 callers
Method
parseDate
(time: number | Date = Date.now())
frontend/src/utils/helpers.tsx:9
↓ 1 callers
Function
redis_config
Parse the REDIS_URL environment variable and return a RedisConfig.
backend/src/auth/sessions.rs:12
↓ 1 callers
Function
run_migrations
Run migrations to create the database schema.
backend/src/database/migration.rs:13
↓ 1 callers
Function
shutdown_signal
Waits for a shutdown signal from the OS.
backend/src/utils.rs:2
↓ 1 callers
Method
warn
(c: Class, message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:35
Function
App
()
frontend/src/app.tsx:9
Function
Home
()
frontend/src/routes/index.tsx:5
Function
Login
()
frontend/src/routes/login.tsx:8
Function
Nav
()
frontend/src/components/Nav.tsx:7
Function
NotFound
()
frontend/src/routes/[...404].tsx:2
Function
Private
()
frontend/src/routes/private.tsx:7
Function
Register
()
frontend/src/routes/register.tsx:8
Function
StoreProdiver
(props)
frontend/src/store.tsx:17
Method
as
(name: string)
frontend/src/utils/logging.tsx:21
Function
check_auth
Example: custom middleware that runs before request handlers. If the request is not authenticated, return a 401 Unauthorized status code. Otherwise,
backend/src/api/middleware.rs:9
Method
check_password
Verify a password against a hash.
backend/src/auth/backend.rs:35
Method
constructor
(private name: string)
frontend/src/utils/logging.tsx:74
Method
debug
(message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:76
Method
error
(message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:91
Function
example_endpoint_handler
Example of a public endpoint.
backend/src/api/public.rs:17
Function
example_protected_handler
Example endpoint: can only be accessed by authenticated users.
backend/src/api/private.rs:7
Method
fetch_by_username
Fetch a user by username from the database.
backend/src/database/models/user.rs:77
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
backend/src/database/models/user.rs:43
Method
from
(value: Row)
backend/src/database/models/user.rs:32
Method
get_user
Retrieves a user by ID from the database.
backend/src/auth/backend.rs:81
Function
handleLogin
(event: Event)
frontend/src/routes/login.tsx:18
Function
handleLogout
()
frontend/src/components/Nav.tsx:17
Function
handleRegister
(event: Event)
frontend/src/routes/register.tsx:18
Method
id
(&self)
backend/src/database/models/user.rs:21
Method
info
(c: Class, message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:30
Method
info
(message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:81
Function
login_handler
Handle a login request.
backend/src/api/public.rs:43
Function
logout_handler
Handle a logout request.
backend/src/api/private.rs:12
Function
main
()
backend/src/main.rs:36
Method
new
Create a new backend instance.
backend/src/auth/backend.rs:30
Method
new
(isAuthenticated: bool, user: Option<UserLimited>)
backend/src/api/responses.rs:15
Method
print
(...messages: unknown[])
frontend/src/utils/logging.tsx:44
Method
register
Register a new user in the database.
backend/src/database/models/user.rs:54
Function
register_handler
Handle a registration request.
backend/src/api/public.rs:22
Method
session_auth_hash
(&self)
backend/src/database/models/user.rs:25
Method
setDebugLevel
()
frontend/src/utils/logging.tsx:55
Method
setErrorLevel
()
frontend/src/utils/logging.tsx:67
Method
setInfoLevel
()
frontend/src/utils/logging.tsx:59
Method
setWarningLevel
()
frontend/src/utils/logging.tsx:63
Function
start_handler
Handle a startup request.
backend/src/api/public.rs:59
Method
warn
(message: unknown, ...rest: unknown[])
frontend/src/utils/logging.tsx:86