MCPcopy Create free account

hub / github.com/JSH32/Backpack / functions

Functions296 in github.com/JSH32/Backpack

↓ 1 callersMethodget_user_data
Use auth params provided by the provider to get the user data.
src/services/auth/oauth.rs:295
↓ 1 callersFunctionisFormData
(value: any)
frontend/client/core/request.ts:39
↓ 1 callersFunctionisSuccess
(status: number)
frontend/client/core/request.ts:43
↓ 1 callersMethodlogin
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 callersFunctionnew_storage
Create a new storage based on [`StorageConfig`].
src/services/file/providers/mod.rs:25
↓ 1 callersMethodnew_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 callersMethodoauth_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 callersMethodoauth_login
Initiate an oauth login. Start the login session by redirecting the user to the provider URL.
src/services/auth/mod.rs:215
↓ 1 callersMethodok
(code: StatusCode, message: &str)
src/models/mod.rs:53
↓ 1 callersFunctiononDeleteApplication
(id: string)
frontend/pages/user/tokens.tsx:57
↓ 1 callersMethodpassword_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 callersFunctionrandom_string
(length: usize)
src/internal/mod.rs:9
↓ 1 callersMethodregisterKey
* 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 callersMethodregister_user
Register an unregistered user with a registration key.
src/services/user.rs:202
↓ 1 callersFunctionremove_first_and_last
Remove first and last character of a string.
src/services/data_service.rs:170
↓ 1 callersMethodresendVerify
* 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 callersMethodresend_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 callersMethodset_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 callersMethodset_url
Computes and sets the URL based on a root storage path
src/models/file.rs:48
↓ 1 callersFunctionsleep_time
(overtime: i64)
src/database/sonyflake.rs:133
↓ 1 callersMethodstats
* Get file stats for user * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `true`
frontend/client/services/FileService.ts:105
↓ 1 callersMethodtoken
* Get token by application ID * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `fal
frontend/client/services/ApplicationService.ts:119
↓ 1 callersMethodunlinkMethod
* Unlink an OAuth method from a user. * * @param requestBody * @returns AuthMethods * @throws ApiError
frontend/client/services/AuthenticationService.ts:85
↓ 1 callersMethodunlink_method
Unlink an auth method from a user.
src/services/auth/auth_method.rs:65
↓ 1 callersMethodupdate_accessed
Update the last accessed date on an application to the current time.
src/services/application.rs:55
↓ 1 callersMethodupdate_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 callersMethodupload
* Upload a file * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `true` *
frontend/client/services/FileService.ts:28
↓ 1 callersMethodupload_file
Upload a file to the storage provider.
src/services/file/mod.rs:180
↓ 1 callersMethoduser_stats
(&self, user_id: &str)
src/services/file/mod.rs:256
↓ 1 callersFunctionverification_email
Create verification email.
src/services/user.rs:514
↓ 1 callersMethodverify_by_code
Verify a user by a verification code.
src/services/user.rs:350
FunctionAuthenticated
({ allowUnverified, allowUnregistered, children })
frontend/components/Authenticated.tsx:16
FunctionDataList
({ allowMultiple = true, allowToggle = false, isHover = true, ...rest })
frontend/components/DataList.tsx:214
FunctionDataListAccordion
({ ...rest })
frontend/components/DataList.tsx:88
FunctionDataListAccordionButton
({ ...rest })
frontend/components/DataList.tsx:92
FunctionDataListAccordionIcon
({ ...rest })
frontend/components/DataList.tsx:105
FunctionDataListAccordionPanel
({ ...rest })
frontend/components/DataList.tsx:115
FunctionDataListCell
({ children, colName, colWidth = 1, isVisible = true, ...rest })
frontend/components/DataList.tsx:27
FunctionDataListFooter
({ ...rest })
frontend/components/DataList.tsx:192
FunctionDataListHeader
({ ...rest })
frontend/components/DataList.tsx:174
FunctionDataListRow
({ isVisible = true, isDisabled = false, ...rest })
frontend/components/DataList.tsx:132
FunctionFileCard
({ file, onDetails, onDelete })
frontend/components/FileSearch/FileCard.tsx:12
FunctionFileInfo
()
frontend/pages/user/uploads/[id].tsx:30
FunctionFileSearch
({ onSearch, onDelete, onFileDetails })
frontend/components/FileSearch/index.tsx:24
FunctionHeader
()
frontend/components/Header.tsx:61
FunctionInner
()
frontend/pages/user/settings/connections.tsx:67
FunctionMeta
({ title, description })
frontend/components/Meta.tsx:9
FunctionMyApp
({ Component, pageProps, appInfo, cookies }: any)
frontend/pages/_app.tsx:33
FunctionPage
({ title, children })
frontend/layouts/Page.tsx:9
FunctionPage404
()
frontend/pages/404.tsx:6
FunctionPagination
({ pages, currentPage, range, onPageSelect })
frontend/components/Pagination.tsx:21
FunctionRegisterPrompt
()
frontend/components/RegisterPrompt.tsx:21
FunctionResource
({ backPath, title, id, right, children })
frontend/components/Resource.tsx:23
FunctionResult
({ type, title, children })
frontend/components/Result.tsx:19
FunctionSocialItem
({ provider, username, color, icon, enabled })
frontend/pages/user/settings/connections.tsx:22
FunctionTokens
()
frontend/pages/user/tokens.tsx:50
FunctionUploadFiles
()
frontend/pages/user/uploads/index.tsx:25
FunctionUserCreate
()
frontend/pages/user/create.tsx:35
FunctionVerificationMessage
({ email })
frontend/components/VerificationMessage.tsx:15
FunctionViewButton
({ active, onToggle })
frontend/pages/user/settings/password.tsx:34
Methodbad_request
Create new bad request error response
src/models/mod.rs:99
Functionbasic
(service: web::Data<AuthService>, form: web::Json<BasicAuthForm>)
src/routes/auth.rs:38
Functionconstructor
(public readonly config: OpenAPIConfig)
frontend/client/core/BaseHttpRequest.ts:9
Methodconstructor
(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = AxiosHttpRequest)
frontend/client/BackpackClient.ts:27
Methodconstructor
(request: ApiRequestOptions, response: ApiResult, message: string)
frontend/client/core/ApiError.ts:13
Methodconstructor
(message: string)
frontend/client/core/CancelablePromise.ts:5
Methodconstructor
( executor: ( resolve: (value: T | PromiseLike<T>) => void, reject: (reason?:
frontend/client/core/CancelablePromise.ts:34
Methodconstructor
(config: OpenAPIConfig)
frontend/client/core/AxiosHttpRequest.ts:11
Methodconstructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/AuthenticationService.ts:16
Methodconstructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/ServerService.ts:10
Methodconstructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/AdminService.ts:12
Methodconstructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/UserService.ts:14
Methodconstructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/FileService.ts:16
Methodconstructor
(public readonly httpRequest: BaseHttpRequest)
frontend/client/services/ApplicationService.ts:14
Methodconstructor
()
frontend/helpers/store.ts:13
Functioncreate
( service: web::Data<ApplicationService>, user: Auth<auth_role::User>, form: web::Json<Application
src/routes/application.rs:124
Functioncreate
( service: web::Data<RegistrationKeyService>, user: Auth<auth_role::Admin>, query: web::Query<Regi
src/routes/admin/registration_key.rs:30
Methodcreate
* Create a registration key * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `fals
frontend/client/services/AdminService.ts:25
Methodcreate
* Create an application * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/ApplicationService.ts:26
Functiondelete
( service: web::Data<ApplicationService>, user: Auth<auth_role::User>, application_id: web::Path<S
src/routes/application.rs:149
Functiondelete
( service: web::Data<UserService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication, Allow
src/routes/user.rs:203
Functiondelete
( service: web::Data<RegistrationKeyService>, registration_id: web::Path<String>, _user: Auth<auth
src/routes/admin/registration_key.rs:111
Methoddelete
* Delete a registration key * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `fals
frontend/client/services/AdminService.ts:96
Methoddelete
* Delete an application * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/ApplicationService.ts:94
Methoddelete
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
MethoddeleteFiles
* 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
Functiondelete_file
( service: web::Data<FileService>, file_id: web::Path<String>, user: Auth<auth_role::User, DenyUnv
src/routes/file.rs:167
Functiondelete_file
( service: web::Data<FileService>, file_id: web::Path<String>, _user: Auth<auth_role::Admin>, )
src/routes/admin/file.rs:94
Functiondelete_files
( service: web::Data<FileService>, body: web::Json<BatchDeleteRequest>, user: Auth<auth_role::User
src/routes/file.rs:193
Functiondelete_files
( service: web::Data<FileService>, body: web::Json<BatchDeleteRequest>, _user: Auth<auth_role::Adm
src/routes/admin/file.rs:120
Methoddelete_objects
(&self, keys: Vec<String>)
src/services/file/providers/local.rs:35
Methodderef
(&self)
src/internal/auth.rs:97
Methoddown
(&self, manager: &SchemaManager)
migration/src/m20220920_105037_auth_methods.rs:109
Methoddown
(&self, manager: &SchemaManager)
migration/src/m20220810_114915_settings_table.rs:82
Methoddown
(&self, manager: &SchemaManager)
migration/src/m20220101_000001_initial_structure.rs:239
Functionenabled_methods
( service: web::Data<AuthMethodService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication,
src/routes/auth.rs:52
Methoderror_response
(&self)
src/services/mod.rs:156
Methoderror_response
(&self)
src/models/mod.rs:127
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/models/mod.rs:117
FunctionformSubmit
(data: UserCreateForm)
frontend/pages/user/create.tsx:44
← previousnext →101–200 of 296, ranked by callers