Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JSH32/Backpack
/ functions
Functions
296 in github.com/JSH32/Backpack
⨍
Functions
296
◇
Types & classes
137
Function
formSubmit
(data: BasicAuthForm)
frontend/pages/user/login.tsx:81
Method
from
(error: sqlx::Error)
src/database/error.rs:14
Method
from
(application: applications::Model)
src/models/application.rs:29
Method
from
(file: files::Model)
src/models/file.rs:29
Method
from
(user: users::Model)
src/models/user.rs:19
Method
from
(model: registration_keys::Model)
src/models/admin/registration_key.rs:27
Method
from_request
(req: &actix_web::HttpRequest, _: &mut actix_web::dev::Payload)
src/internal/auth.rs:109
Method
getOne
* Get a single registration key * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `
frontend/client/services/AdminService.ts:71
Function
get_db_version
Get database version.
src/main.rs:256
Method
get_object
(&self, path: &str)
src/services/file/providers/local.rs:46
Function
get_one
( service: web::Data<RegistrationKeyService>, registration_id: web::Path<String>, _user: Auth<auth
src/routes/admin/registration_key.rs:83
Function
get_routes
()
src/routes/application.rs:14
Function
get_routes
()
src/routes/file.rs:17
Function
get_routes
()
src/routes/auth.rs:18
Function
get_routes
()
src/routes/user.rs:17
Function
get_routes
(invite_only: bool)
src/routes/admin/mod.rs:6
Function
get_routes
()
src/routes/admin/file.rs:10
Function
get_routes
()
src/routes/admin/registration_key.rs:10
Function
info
( service: web::Data<ApplicationService>, user: Auth<auth_role::User>, application_id: web::Path<S
src/routes/application.rs:94
Function
info
( user_service: web::Data<UserService>, auth_service: web::Data<AuthService>, database: web::Data<
src/routes/mod.rs:32
Function
info
( service: web::Data<FileService>, file_id: web::Path<String>, user: Auth<auth_role::User, DenyUnv
src/routes/file.rs:138
Function
info
( user: Auth<auth_role::User, AllowUnverified, AllowApplication, AllowUnregistered>, )
src/routes/user.rs:41
Function
info
( service: web::Data<FileService>, file_id: web::Path<String>, _user: Auth<auth_role::Admin>, )
src/routes/admin/file.rs:66
Method
info
* Get public server configuration * * @returns AppInfo * @throws ApiError
frontend/client/services/ServerService.ts:18
Method
info
* Get file data by ID * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `true`
frontend/client/services/FileService.ts:122
Method
info
* Get token info * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false` *
frontend/client/services/ApplicationService.ts:72
Method
internal_server_error
New internal server error response
src/models/mod.rs:79
Method
isCancelled
()
frontend/client/core/CancelablePromise.ts:10
Method
isCancelled
()
frontend/client/core/CancelablePromise.ts:124
Function
list
( service: web::Data<ApplicationService>, page_number: web::Path<usize>, user: Auth<auth_role::Use
src/routes/application.rs:65
Function
list
( service: web::Data<FileService>, page_number: web::Path<usize>, user: Auth<auth_role::User, Deny
src/routes/file.rs:103
Function
list
( service: web::Data<FileService>, page_number: web::Path<usize>, query: web::Query<FileQuery>,
src/routes/admin/file.rs:37
Function
list
( service: web::Data<RegistrationKeyService>, page_number: web::Path<usize>, _user: Auth<auth_role
src/routes/admin/registration_key.rs:55
Method
list
* Get registration keys * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/AdminService.ts:49
Method
list
* Get all applications * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/ApplicationService.ts:50
Function
main
()
src/main.rs:67
Function
main
()
migration/src/main.rs:4
Method
make_request
Make a simple request and return as a [`ServiceResult`].
src/services/auth/oauth.rs:183
Method
migrations
()
migration/src/lib.rs:12
Method
modify
(&self, openapi: &mut utoipa::openapi::OpenApi)
src/docs/mod.rs:91
Method
new
()
src/config.rs:66
Method
new
Create a new [`Sonyflake`] # Arguments `worker_id` - A unique identifier of the machine ID. if sonyflake is being used in a distributed setting no t
src/database/sonyflake.rs:62
Method
new
()
src/database/entity/users.rs:60
Method
new
()
src/database/entity/files.rs:41
Method
new
()
src/database/entity/registration_keys.rs:39
Method
new
()
src/database/entity/applications.rs:37
Method
new
()
src/database/entity/auth_methods.rs:41
Method
new
(database: Arc<DatabaseConnection>, auth_service: Arc<AuthService>)
src/services/application.rs:25
Method
new
( database: Arc<DatabaseConnection>, registration_key_service: Arc<RegistrationKeyService>,
src/services/user.rs:41
Method
new
(database: Arc<DatabaseConnection>)
src/services/registration_key.rs:17
Method
new
( oauth_config: OAuthConfig, auth_url: &str, token_url: &str, redirect_url: &s
src/services/auth/oauth.rs:227
Method
new
( auth_method_service: Arc<AuthMethodService>, user_service: Arc<UserService>, applica
src/services/auth/mod.rs:49
Method
new
(database: Arc<DatabaseConnection>)
src/services/auth/auth_method.rs:23
Method
new
( database: Arc<DatabaseConnection>, config: StorageConfig, storage_url: &str,
src/services/file/mod.rs:51
Method
new
(bucket: &str, access_key: &str, secret_key: &str, s3_region: Region)
src/services/file/providers/s3.rs:19
Method
new
(path: PathBuf)
src/services/file/providers/local.rs:13
Method
new
Create new message response
src/models/mod.rs:44
Method
new_with_data
( code: StatusCode, message: &str, data: HashMap<String, serde_json::Value>, )
src/models/mod.rs:65
Method
oauthCallback
* Callback for OAuth providers. * This redirects to the redirect provided in the oauth initialization route. * * @param provider Provid
frontend/client/services/AuthenticationService.ts:108
Function
oauth_callback
( service: web::Data<AuthService>, params: web::Query<OAuthRequest>, provider: web::Path<OAuthProv
src/routes/auth.rs:132
Function
oauth_login
( req: HttpRequest, service: web::Data<AuthService>, query: web::Query<OAuthLoginQuery>, )
src/routes/auth.rs:94
Method
ok_with_data
( code: StatusCode, message: &str, data: HashMap<String, serde_json::Value>, )
src/models/mod.rs:57
Method
onCancel
(cancelHandler: () => void)
frontend/client/core/CancelablePromise.ts:65
Function
onLogout
()
frontend/components/Header.tsx:67
Method
onReject
(reason?: any)
frontend/client/core/CancelablePromise.ts:57
Method
onResolve
(value: T | PromiseLike<T>)
frontend/client/core/CancelablePromise.ts:49
Method
put_object
(&self, name: &str, data: &Vec<u8>)
src/services/file/providers/local.rs:20
Function
register_key
( service: web::Data<UserService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication, Allow
src/routes/user.rs:92
Function
request
(config: OpenAPIConfig, options: ApiRequestOptions)
frontend/client/core/request.ts:274
Function
resend_verify
( service: web::Data<UserService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication, Allow
src/routes/user.rs:151
Method
respond_to
Get HTTP response from response
src/models/mod.rs:137
Function
rewrites
()
frontend/next.config.js:6
Function
sendCode
(form: any)
frontend/components/RegisterPrompt.tsx:26
Function
sendRequest
( config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: For
frontend/client/core/request.ts:195
Function
settings
( service: web::Data<UserService>, form: web::Json<UpdateUserSettings>, user: Auth<auth_role::User
src/routes/user.rs:63
Function
stats
( service: web::Data<FileService>, user: Auth<auth_role::User, DenyUnverified, AllowApplication>, )
src/routes/file.rs:74
Method
status_code
(&self)
src/services/mod.rs:152
Method
status_code
(&self)
src/models/mod.rs:123
Method
to
()
src/database/entity/files.rs:35
Method
to
()
src/database/entity/registration_keys.rs:33
Method
to
()
src/database/entity/applications.rs:31
Method
to
()
src/database/entity/auth_methods.rs:35
Method
to
()
src/database/entity/verifications.rs:29
Method
to_page_response
(self, code: StatusCode)
src/services/mod.rs:83
Method
to_uuid
(uuid_str: &str)
src/services/registration_key.rs:78
Function
token
( service: web::Data<ApplicationService>, application_id: web::Path<String>, user: Auth<auth_role:
src/routes/application.rs:40
Method
unauthorized
Create a simple unauthorized error.
src/services/mod.rs:146
Method
unauthorized_error
Create new unauthorized error response
src/models/mod.rs:91
Function
unlink_method
( service: web::Data<AuthMethodService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication,
src/routes/auth.rs:73
Method
up
(&self, manager: &SchemaManager)
migration/src/m20220920_105037_auth_methods.rs:14
Method
up
(&self, manager: &SchemaManager)
migration/src/m20220810_114915_settings_table.rs:8
Method
up
(&self, manager: &SchemaManager)
migration/src/m20220101_000001_initial_structure.rs:9
Function
upload
( service: web::Data<FileService>, user: Auth<auth_role::User, DenyUnverified, AllowApplication>,
src/routes/file.rs:43
Function
verify
(service: web::Data<UserService>, code: web::Path<String>)
src/routes/user.rs:181
Method
verify
* Verify using a verification code * * This will be disabled if `smtp` is disabled in server settings * * @param code Verification
frontend/client/services/UserService.ts:146
Function
webpack
(config)
frontend/next.config.js:26
← previous
201–296 of 296, ranked by callers