MCPcopy Create free account

hub / github.com/JSH32/Backpack / functions

Functions296 in github.com/JSH32/Backpack

FunctionformSubmit
(data: BasicAuthForm)
frontend/pages/user/login.tsx:81
Methodfrom
(error: sqlx::Error)
src/database/error.rs:14
Methodfrom
(application: applications::Model)
src/models/application.rs:29
Methodfrom
(file: files::Model)
src/models/file.rs:29
Methodfrom
(user: users::Model)
src/models/user.rs:19
Methodfrom
(model: registration_keys::Model)
src/models/admin/registration_key.rs:27
Methodfrom_request
(req: &actix_web::HttpRequest, _: &mut actix_web::dev::Payload)
src/internal/auth.rs:109
MethodgetOne
* Get a single registration key * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `
frontend/client/services/AdminService.ts:71
Functionget_db_version
Get database version.
src/main.rs:256
Methodget_object
(&self, path: &str)
src/services/file/providers/local.rs:46
Functionget_one
( service: web::Data<RegistrationKeyService>, registration_id: web::Path<String>, _user: Auth<auth
src/routes/admin/registration_key.rs:83
Functionget_routes
()
src/routes/application.rs:14
Functionget_routes
()
src/routes/file.rs:17
Functionget_routes
()
src/routes/auth.rs:18
Functionget_routes
()
src/routes/user.rs:17
Functionget_routes
(invite_only: bool)
src/routes/admin/mod.rs:6
Functionget_routes
()
src/routes/admin/file.rs:10
Functionget_routes
()
src/routes/admin/registration_key.rs:10
Functioninfo
( service: web::Data<ApplicationService>, user: Auth<auth_role::User>, application_id: web::Path<S
src/routes/application.rs:94
Functioninfo
( user_service: web::Data<UserService>, auth_service: web::Data<AuthService>, database: web::Data<
src/routes/mod.rs:32
Functioninfo
( service: web::Data<FileService>, file_id: web::Path<String>, user: Auth<auth_role::User, DenyUnv
src/routes/file.rs:138
Functioninfo
( user: Auth<auth_role::User, AllowUnverified, AllowApplication, AllowUnregistered>, )
src/routes/user.rs:41
Functioninfo
( service: web::Data<FileService>, file_id: web::Path<String>, _user: Auth<auth_role::Admin>, )
src/routes/admin/file.rs:66
Methodinfo
* Get public server configuration * * @returns AppInfo * @throws ApiError
frontend/client/services/ServerService.ts:18
Methodinfo
* Get file data by ID * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `true`
frontend/client/services/FileService.ts:122
Methodinfo
* Get token info * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false` *
frontend/client/services/ApplicationService.ts:72
Methodinternal_server_error
New internal server error response
src/models/mod.rs:79
MethodisCancelled
()
frontend/client/core/CancelablePromise.ts:10
MethodisCancelled
()
frontend/client/core/CancelablePromise.ts:124
Functionlist
( service: web::Data<ApplicationService>, page_number: web::Path<usize>, user: Auth<auth_role::Use
src/routes/application.rs:65
Functionlist
( service: web::Data<FileService>, page_number: web::Path<usize>, user: Auth<auth_role::User, Deny
src/routes/file.rs:103
Functionlist
( service: web::Data<FileService>, page_number: web::Path<usize>, query: web::Query<FileQuery>,
src/routes/admin/file.rs:37
Functionlist
( service: web::Data<RegistrationKeyService>, page_number: web::Path<usize>, _user: Auth<auth_role
src/routes/admin/registration_key.rs:55
Methodlist
* Get registration keys * - Minimum required role: `admin` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/AdminService.ts:49
Methodlist
* Get all applications * - Minimum required role: `user` * - Allow unverified users: `false` * - Application token allowed: `false`
frontend/client/services/ApplicationService.ts:50
Functionmain
()
src/main.rs:67
Functionmain
()
migration/src/main.rs:4
Methodmake_request
Make a simple request and return as a [`ServiceResult`].
src/services/auth/oauth.rs:183
Methodmigrations
()
migration/src/lib.rs:12
Methodmodify
(&self, openapi: &mut utoipa::openapi::OpenApi)
src/docs/mod.rs:91
Methodnew
()
src/config.rs:66
Methodnew
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
Methodnew
()
src/database/entity/users.rs:60
Methodnew
()
src/database/entity/files.rs:41
Methodnew
()
src/database/entity/registration_keys.rs:39
Methodnew
()
src/database/entity/applications.rs:37
Methodnew
()
src/database/entity/auth_methods.rs:41
Methodnew
(database: Arc<DatabaseConnection>, auth_service: Arc<AuthService>)
src/services/application.rs:25
Methodnew
( database: Arc<DatabaseConnection>, registration_key_service: Arc<RegistrationKeyService>,
src/services/user.rs:41
Methodnew
(database: Arc<DatabaseConnection>)
src/services/registration_key.rs:17
Methodnew
( oauth_config: OAuthConfig, auth_url: &str, token_url: &str, redirect_url: &s
src/services/auth/oauth.rs:227
Methodnew
( auth_method_service: Arc<AuthMethodService>, user_service: Arc<UserService>, applica
src/services/auth/mod.rs:49
Methodnew
(database: Arc<DatabaseConnection>)
src/services/auth/auth_method.rs:23
Methodnew
( database: Arc<DatabaseConnection>, config: StorageConfig, storage_url: &str,
src/services/file/mod.rs:51
Methodnew
(bucket: &str, access_key: &str, secret_key: &str, s3_region: Region)
src/services/file/providers/s3.rs:19
Methodnew
(path: PathBuf)
src/services/file/providers/local.rs:13
Methodnew
Create new message response
src/models/mod.rs:44
Methodnew_with_data
( code: StatusCode, message: &str, data: HashMap<String, serde_json::Value>, )
src/models/mod.rs:65
MethodoauthCallback
* Callback for OAuth providers. * This redirects to the redirect provided in the oauth initialization route. * * @param provider Provid
frontend/client/services/AuthenticationService.ts:108
Functionoauth_callback
( service: web::Data<AuthService>, params: web::Query<OAuthRequest>, provider: web::Path<OAuthProv
src/routes/auth.rs:132
Functionoauth_login
( req: HttpRequest, service: web::Data<AuthService>, query: web::Query<OAuthLoginQuery>, )
src/routes/auth.rs:94
Methodok_with_data
( code: StatusCode, message: &str, data: HashMap<String, serde_json::Value>, )
src/models/mod.rs:57
MethodonCancel
(cancelHandler: () => void)
frontend/client/core/CancelablePromise.ts:65
FunctiononLogout
()
frontend/components/Header.tsx:67
MethodonReject
(reason?: any)
frontend/client/core/CancelablePromise.ts:57
MethodonResolve
(value: T | PromiseLike<T>)
frontend/client/core/CancelablePromise.ts:49
Methodput_object
(&self, name: &str, data: &Vec<u8>)
src/services/file/providers/local.rs:20
Functionregister_key
( service: web::Data<UserService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication, Allow
src/routes/user.rs:92
Functionrequest
(config: OpenAPIConfig, options: ApiRequestOptions)
frontend/client/core/request.ts:274
Functionresend_verify
( service: web::Data<UserService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication, Allow
src/routes/user.rs:151
Methodrespond_to
Get HTTP response from response
src/models/mod.rs:137
Functionrewrites
()
frontend/next.config.js:6
FunctionsendCode
(form: any)
frontend/components/RegisterPrompt.tsx:26
FunctionsendRequest
( config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: For
frontend/client/core/request.ts:195
Functionsettings
( service: web::Data<UserService>, form: web::Json<UpdateUserSettings>, user: Auth<auth_role::User
src/routes/user.rs:63
Functionstats
( service: web::Data<FileService>, user: Auth<auth_role::User, DenyUnverified, AllowApplication>, )
src/routes/file.rs:74
Methodstatus_code
(&self)
src/services/mod.rs:152
Methodstatus_code
(&self)
src/models/mod.rs:123
Methodto
()
src/database/entity/files.rs:35
Methodto
()
src/database/entity/registration_keys.rs:33
Methodto
()
src/database/entity/applications.rs:31
Methodto
()
src/database/entity/auth_methods.rs:35
Methodto
()
src/database/entity/verifications.rs:29
Methodto_page_response
(self, code: StatusCode)
src/services/mod.rs:83
Methodto_uuid
(uuid_str: &str)
src/services/registration_key.rs:78
Functiontoken
( service: web::Data<ApplicationService>, application_id: web::Path<String>, user: Auth<auth_role:
src/routes/application.rs:40
Methodunauthorized
Create a simple unauthorized error.
src/services/mod.rs:146
Methodunauthorized_error
Create new unauthorized error response
src/models/mod.rs:91
Functionunlink_method
( service: web::Data<AuthMethodService>, user: Auth<auth_role::User, AllowUnverified, DenyApplication,
src/routes/auth.rs:73
Methodup
(&self, manager: &SchemaManager)
migration/src/m20220920_105037_auth_methods.rs:14
Methodup
(&self, manager: &SchemaManager)
migration/src/m20220810_114915_settings_table.rs:8
Methodup
(&self, manager: &SchemaManager)
migration/src/m20220101_000001_initial_structure.rs:9
Functionupload
( service: web::Data<FileService>, user: Auth<auth_role::User, DenyUnverified, AllowApplication>,
src/routes/file.rs:43
Functionverify
(service: web::Data<UserService>, code: web::Path<String>)
src/routes/user.rs:181
Methodverify
* 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
Functionwebpack
(config)
frontend/next.config.js:26
← previous201–296 of 296, ranked by callers