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
↓ 1 callers
Method
get_user_data
Use auth params provided by the provider to get the user data.
src/services/auth/oauth.rs:295
↓ 1 callers
Function
isFormData
(value: any)
frontend/client/core/request.ts:39
↓ 1 callers
Function
isSuccess
(status: number)
frontend/client/core/request.ts:43
↓ 1 callers
Method
login
Initiate an oauth login with provided scopes. Start the login session by redirecting the user to the provider URL.
src/services/auth/oauth.rs:265
↓ 1 callers
Function
new_storage
Create a new storage based on [`StorageConfig`].
src/services/file/providers/mod.rs:25
↓ 1 callers
Method
new_unique_username
Validate or attempt to create a valid username based on an existing username. This can, by a really small chance, create a non-unique username.
src/services/auth/mod.rs:367
↓ 1 callers
Method
oauth_authenticate
Use auth params provided by the provider to get a JWT token. If a user dowes not exist with these parameters, create the user. Returns new JWT key.
src/services/auth/mod.rs:230
↓ 1 callers
Method
oauth_login
Initiate an oauth login. Start the login session by redirecting the user to the provider URL.
src/services/auth/mod.rs:215
↓ 1 callers
Method
ok
(code: StatusCode, message: &str)
src/models/mod.rs:53
↓ 1 callers
Function
onDeleteApplication
(id: string)
frontend/pages/user/tokens.tsx:57
↓ 1 callers
Method
password_auth
Authenticate a user using their name/email and password. `username` - User identifier (email or username) `password` - User password Returns JWT tok
src/services/auth/mod.rs:97
↓ 1 callers
Function
random_string
(length: usize)
src/internal/mod.rs:9
↓ 1 callers
Method
registerKey
* Register account using a registration key. * This is only required on services with `invite_only` enabled. * * @param key * @ret
frontend/client/services/UserService.ts:82
↓ 1 callers
Method
register_user
Register an unregistered user with a registration key.
src/services/user.rs:202
↓ 1 callers
Function
remove_first_and_last
Remove first and last character of a string.
src/services/data_service.rs:170
↓ 1 callers
Method
resendVerify
* Resend a verification code to the email * - Minimum required role: `user` * - Allow unverified users: `true` * - Application token al
frontend/client/services/UserService.ts:126
↓ 1 callers
Method
resend_verification
Resend a verification code. This should be triggered only if the user is not verified. Returns [`String`] the email the verification was sent to.
src/services/user.rs:318
↓ 1 callers
Method
set_thumbnail_url
Computes and sets the URL based on root storage path This will only set if a valid image or extension was sent
src/models/file.rs:55
↓ 1 callers
Method
set_url
Computes and sets the URL based on a root storage path
src/models/file.rs:48
↓ 1 callers
Function
sleep_time
(overtime: i64)
src/database/sonyflake.rs:133
↓ 1 callers
Method
stats
* Get file stats for user * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `true`
frontend/client/services/FileService.ts:105
↓ 1 callers
Method
token
* Get token by application ID * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `fal
frontend/client/services/ApplicationService.ts:119
↓ 1 callers
Method
unlinkMethod
* Unlink an OAuth method from a user. * * @param requestBody * @returns AuthMethods * @throws ApiError
frontend/client/services/AuthenticationService.ts:85
↓ 1 callers
Method
unlink_method
Unlink an auth method from a user.
src/services/auth/auth_method.rs:65
↓ 1 callers
Method
update_accessed
Update the last accessed date on an application to the current time.
src/services/application.rs:55
↓ 1 callers
Method
update_settings
Update and validate user settings. # Arguments `email` - New email. `username` - New username. `new_password` - New password. `current_password` - C
src/services/user.rs:237
↓ 1 callers
Method
upload
* Upload a file * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `true` *
frontend/client/services/FileService.ts:28
↓ 1 callers
Method
upload_file
Upload a file to the storage provider.
src/services/file/mod.rs:180
↓ 1 callers
Method
user_stats
(&self, user_id: &str)
src/services/file/mod.rs:256
↓ 1 callers
Function
verification_email
Create verification email.
src/services/user.rs:514
↓ 1 callers
Method
verify_by_code
Verify a user by a verification code.
src/services/user.rs:350
Function
Authenticated
({ allowUnverified, allowUnregistered, children })
frontend/components/Authenticated.tsx:16
Function
DataList
({ allowMultiple = true, allowToggle = false, isHover = true, ...rest })
frontend/components/DataList.tsx:214
Function
DataListAccordion
({ ...rest })
frontend/components/DataList.tsx:88
Function
DataListAccordionButton
({ ...rest })
frontend/components/DataList.tsx:92
Function
DataListAccordionIcon
({ ...rest })
frontend/components/DataList.tsx:105
Function
DataListAccordionPanel
({ ...rest })
frontend/components/DataList.tsx:115
Function
DataListCell
({ children, colName, colWidth = 1, isVisible = true, ...rest })
frontend/components/DataList.tsx:27
Function
DataListFooter
({ ...rest })
frontend/components/DataList.tsx:192
Function
DataListHeader
({ ...rest })
frontend/components/DataList.tsx:174
Function
DataListRow
({ isVisible = true, isDisabled = false, ...rest })
frontend/components/DataList.tsx:132
Function
FileCard
({ file, onDetails, onDelete })
frontend/components/FileSearch/FileCard.tsx:12
Function
FileInfo
()
frontend/pages/user/uploads/[id].tsx:30
Function
FileSearch
({ onSearch, onDelete, onFileDetails })
frontend/components/FileSearch/index.tsx:24
Function
Header
()
frontend/components/Header.tsx:61
Function
Inner
()
frontend/pages/user/settings/connections.tsx:67
Function
Meta
({ title, description })
frontend/components/Meta.tsx:9
Function
MyApp
({ Component, pageProps, appInfo, cookies }: any)
frontend/pages/_app.tsx:33
Function
Page
({ title, children })
frontend/layouts/Page.tsx:9
Function
Page404
()
frontend/pages/404.tsx:6
Function
Pagination
({ pages, currentPage, range, onPageSelect })
frontend/components/Pagination.tsx:21
Function
RegisterPrompt
()
frontend/components/RegisterPrompt.tsx:21
Function
Resource
({ backPath, title, id, right, children })
frontend/components/Resource.tsx:23
Function
Result
({ type, title, children })
frontend/components/Result.tsx:19
Function
SocialItem
({ provider, username, color, icon, enabled })
frontend/pages/user/settings/connections.tsx:22
Function
Tokens
()
frontend/pages/user/tokens.tsx:50
Function
UploadFiles
()
frontend/pages/user/uploads/index.tsx:25
Function
UserCreate
()
frontend/pages/user/create.tsx:35
Function
VerificationMessage
({ email })
frontend/components/VerificationMessage.tsx:15
Function
ViewButton
({ active, onToggle })
frontend/pages/user/settings/password.tsx:34
Method
bad_request
Create new bad request error response
src/models/mod.rs:99
Function
basic
(service: web::Data<AuthService>, form: web::Json<BasicAuthForm>)
src/routes/auth.rs:38
Function
constructor
(public readonly config: OpenAPIConfig)
frontend/client/core/BaseHttpRequest.ts:9
Method
constructor
(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = AxiosHttpRequest)
frontend/client/BackpackClient.ts:27
Method
constructor
(request: ApiRequestOptions, response: ApiResult, message: string)
frontend/client/core/ApiError.ts:13
Method
constructor
(message: string)
frontend/client/core/CancelablePromise.ts:5
Method
constructor
( executor: ( resolve: (value: T | PromiseLike<T>) => void, reject: (reason?:
frontend/client/core/CancelablePromise.ts:34
Method
constructor
(config: OpenAPIConfig)
frontend/client/core/AxiosHttpRequest.ts:11
Method
constructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/AuthenticationService.ts:16
Method
constructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/ServerService.ts:10
Method
constructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/AdminService.ts:12
Method
constructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/UserService.ts:14
Method
constructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/FileService.ts:16
Method
constructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/ApplicationService.ts:14
Method
constructor
()
frontend/helpers/store.ts:13
Function
create
( service: web::Data<ApplicationService>, user: Auth<auth_role::User>, form: web::Json<Application
src/routes/application.rs:124
Function
create
( service: web::Data<RegistrationKeyService>, user: Auth<auth_role::Admin>, query: web::Query<Regi
src/routes/admin/registration_key.rs:30
Method
create
* Create a registration key * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `fals
frontend/client/services/AdminService.ts:25
Method
create
* Create an application * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/ApplicationService.ts:26
Function
delete
( service: web::Data<ApplicationService>, user: Auth<auth_role::User>, application_id: web::Path<S
src/routes/application.rs:149
Function
delete
( service: web::Data<UserService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication, Allow
src/routes/user.rs:203
Function
delete
( service: web::Data<RegistrationKeyService>, registration_id: web::Path<String>, _user: Auth<auth
src/routes/admin/registration_key.rs:111
Method
delete
* Delete a registration key * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `fals
frontend/client/services/AdminService.ts:96
Method
delete
* Delete an application * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/ApplicationService.ts:94
Method
delete
Delete a record by id. # Arguments `id` - Id of the record `response_has_id` - Should the returned [`ServiceResult`] string contain the Id of the de
src/services/data_service.rs:85
Method
deleteFiles
* Delete multiple files by ID. * This will ignore any invalid IDs. * - Minimum required role: `user` * - Allow unverified users: `false
frontend/client/services/FileService.ts:54
Function
delete_file
( service: web::Data<FileService>, file_id: web::Path<String>, user: Auth<auth_role::User, DenyUnv
src/routes/file.rs:167
Function
delete_file
( service: web::Data<FileService>, file_id: web::Path<String>, _user: Auth<auth_role::Admin>, )
src/routes/admin/file.rs:94
Function
delete_files
( service: web::Data<FileService>, body: web::Json<BatchDeleteRequest>, user: Auth<auth_role::User
src/routes/file.rs:193
Function
delete_files
( service: web::Data<FileService>, body: web::Json<BatchDeleteRequest>, _user: Auth<auth_role::Adm
src/routes/admin/file.rs:120
Method
delete_objects
(&self, keys: Vec<String>)
src/services/file/providers/local.rs:35
Method
deref
(&self)
src/internal/auth.rs:97
Method
down
(&self, manager: &SchemaManager)
migration/src/m20220920_105037_auth_methods.rs:109
Method
down
(&self, manager: &SchemaManager)
migration/src/m20220810_114915_settings_table.rs:82
Method
down
(&self, manager: &SchemaManager)
migration/src/m20220101_000001_initial_structure.rs:239
Function
enabled_methods
( service: web::Data<AuthMethodService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication,
src/routes/auth.rs:52
Method
error_response
(&self)
src/services/mod.rs:156
Method
error_response
(&self)
src/models/mod.rs:127
Method
fmt
(&self, fmt: &mut fmt::Formatter)
src/models/mod.rs:117
Function
formSubmit
(data: UserCreateForm)
frontend/pages/user/create.tsx:44
← previous
next →
101–200 of 296, ranked by callers