Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3dugc/3D-Model-Optimizer
/ functions
Functions
989 in github.com/3dugc/3D-Model-Optimizer
⨍
Functions
989
◇
Types & classes
311
↓ 2 callers
Function
emptyFile
()
src/invoices/invoice-store.ts:47
↓ 2 callers
Method
fetchText
(url: string)
src/cloud/tencent-credentials.ts:107
↓ 2 callers
Method
fileExists
* Checks if a file exists
src/utils/storage.ts:370
↓ 2 callers
Method
findByProviderReference
(input: { providerApplyId?: string; outTradeNo?: string; })
src/invoices/invoice-service.ts:344
↓ 2 callers
Method
findInvoiceRequestByRechargeOrderId
(rechargeOrderId: string)
src/invoices/invoice-store.ts:17
↓ 2 callers
Method
finishJobCharge
(jobId: string, status: 'charged' | 'released', note?: string)
src/accounts/account-store.ts:356
↓ 2 callers
Method
finishJobCharge
(jobId: string, status: 'charged' | 'released', note?: string)
src/accounts/account-store.ts:792
↓ 2 callers
Method
finishJobCharge
(jobId: string, status: 'charged' | 'released', note?: string)
src/accounts/account-store.ts:1400
↓ 2 callers
Function
formatBytes
* Formats bytes into a human-readable string * * @param bytes - Number of bytes * @returns Formatted string (e.g., '10.5 MB')
src/utils/file-validator.ts:180
↓ 2 callers
Method
get
(orderId: string)
src/billing/order-store.ts:12
↓ 2 callers
Function
getApiKey
()
src/middleware/auth.ts:30
↓ 2 callers
Method
getDirectoryStats
* Gets statistics for a directory
src/utils/storage.ts:481
↓ 2 callers
Function
getFileExtension
* Extracts the file extension from a filename * * @param filename - The filename to extract extension from * @returns The file extension including
src/utils/file-validator.ts:166
↓ 2 callers
Method
getFileMetadata
* Gets metadata for a file
src/utils/storage.ts:382
↓ 2 callers
Function
getFileSize
* Get the file size in bytes (async).
src/components/optimization-pipeline.ts:233
↓ 2 callers
Method
getObjectUrl
(object: CosObjectRef, method: 'GET' | 'PUT', expiresInSeconds: number)
src/cloud/object-storage.ts:224
↓ 2 callers
Method
getRechargeOrderInvoice
(userId: string, orderId: string)
src/invoices/invoice-service.ts:319
↓ 2 callers
Method
getStorageStats
* Gets storage statistics * * @returns Object with storage statistics
src/utils/storage.ts:321
↓ 2 callers
Function
getTenantId
(req: Request, bodyTenantId?: string)
src/routes/cloud-jobs.ts:44
↓ 2 callers
Method
getUploadedFileMetadata
* Gets metadata for an uploaded file * * @param taskId - The task identifier * @returns File metadata, or null if not found
src/utils/storage.ts:256
↓ 2 callers
Function
handleFile
(file)
public/app.js:1089
↓ 2 callers
Method
holdChargeForUser
(user: WebUser, jobId: string)
src/accounts/account-service.ts:311
↓ 2 callers
Function
ignoreRecoverRace
(error: unknown)
src/jobs/job-store.ts:116
↓ 2 callers
Method
insertWalletRow
(client: MySqlQueryable, wallet: Wallet)
src/accounts/account-store.ts:870
↓ 2 callers
Method
insertWalletRow
(client: SqlQueryable, wallet: Wallet)
src/accounts/account-store.ts:1466
↓ 2 callers
Function
isLocalDevRequest
(req: Request)
src/routes/account.ts:320
↓ 2 callers
Function
isLoopbackValue
(value: string | undefined)
src/routes/account.ts:315
↓ 2 callers
Function
isNormalValid
(acc: Accessor)
src/components/geometry-fixer.ts:51
↓ 2 callers
Function
isProcessingLeaseExpired
(job: CloudJob, now: Date)
src/jobs/job-store.ts:60
↓ 2 callers
Function
isStepConverterAvailable
* Check if STEP conversion tools are available.
src/components/format-converter.ts:239
↓ 2 callers
Function
isStepEnabled
* Check if a step is enabled in the options. * * @param step - The step name to check * @param options - The optimization options * @returns True
src/components/optimization-pipeline.ts:120
↓ 2 callers
Function
isTangentValid
(acc: Accessor)
src/components/geometry-fixer.ts:38
↓ 2 callers
Function
isWechatOAuthConfigured
()
src/accounts/wechat-oauth.ts:132
↓ 2 callers
Function
job
(overrides: Partial<CloudJob>)
tests/unit/business-monitor.test.ts:6
↓ 2 callers
Function
jobOutputObject
(job: CloudJob)
src/routes/account.ts:147
↓ 2 callers
Function
jobPayloadFilename
(job: CloudJob)
src/routes/account.ts:180
↓ 2 callers
Function
jobRetentionMs
(job: CloudJob, now = Date.now())
src/routes/account.ts:169
↓ 2 callers
Function
listResultTasks
()
src/utils/storage.ts:616
↓ 2 callers
Method
listResultTasks
* Lists all task IDs with result files * * @returns Array of task IDs
src/utils/storage.ts:312
↓ 2 callers
Method
listTasksInDirectory
* Lists task IDs from files in a directory
src/utils/storage.ts:464
↓ 2 callers
Method
listUploadedTasks
* Lists all task IDs with uploaded files * * @returns Array of task IDs
src/utils/storage.ts:303
↓ 2 callers
Function
makeMinimalGlb
()
tests/unit/model-input.test.ts:8
↓ 2 callers
Function
mapPaymentTradeStateToOrderStatus
(tradeState: string)
src/accounts/account-service.ts:60
↓ 2 callers
Method
markInvoiceIssuedManually
( invoiceRequestId: string, input: MarkInvoiceIssuedManuallyInput )
src/invoices/invoice-service.ts:249
↓ 2 callers
Method
markIssuedFromEvent
(event: WechatInvoiceNotification)
src/invoices/invoice-service.ts:282
↓ 2 callers
Method
markPaid
(jobId: string, orderId: string)
src/jobs/job-service.ts:167
↓ 2 callers
Method
markPaidByOutTradeNo
(outTradeNo: string, transactionId?: string)
src/billing/billing-service.ts:77
↓ 2 callers
Method
markRechargePaid
(orderId: string, transactionId?: string)
src/accounts/account-service.ts:209
↓ 2 callers
Method
markReversedFromEvent
(event: WechatInvoiceNotification)
src/invoices/invoice-service.ts:296
↓ 2 callers
Function
matchesWebOptimizeJob
(job: CloudJob, input: { inputHash: string; inputExtension: string; optionsHash: string; })
src/routes/account.ts:207
↓ 2 callers
Function
normalizeWalletChargeError
(error: unknown)
src/accounts/account-service.ts:51
↓ 2 callers
Function
normalizedFileExtension
(filename: string | undefined)
src/routes/account.ts:187
↓ 2 callers
Function
nowIso
()
src/accounts/account-service.ts:21
↓ 2 callers
Function
nowIso
()
src/billing/billing-service.ts:7
↓ 2 callers
Function
nowSeconds
(nowMs = Date.now())
src/accounts/wechat-oauth.ts:77
↓ 2 callers
Function
parseCredentialTimestamp
(value: number | string | undefined)
src/cloud/tencent-credentials.ts:140
↓ 2 callers
Function
parseCsv
(value: string | undefined)
src/config/parsers.ts:36
↓ 2 callers
Function
planPoolDesiredCapacities
(pools: ScalingPool[], targetInstances: number)
src/dispatcher/scaling.ts:57
↓ 2 callers
Function
prefixForObject
(key: string)
src/cloud/object-storage.ts:258
↓ 2 callers
Method
publish
(message: QueueJobMessage, options: PublishOptions = {})
src/cloud/queue.ts:65
↓ 2 callers
Function
randomToken
()
public/app.js:95
↓ 2 callers
Function
readGlbJson
* Read the JSON chunk from a GLB file.
tests/unit/optimization-pipeline.test.ts:163
↓ 2 callers
Function
readLocalWorkers
(rootDir: string)
src/monitor/state-reader.ts:116
↓ 2 callers
Method
readObjectText
(object: CosObjectRef)
src/cloud/object-storage.ts:12
↓ 2 callers
Method
reconcileOnce
(now: Date = new Date())
src/dispatcher/dispatcher.ts:80
↓ 2 callers
Method
recordProviderEvent
(event: InvoiceProviderEvent)
src/invoices/invoice-store.ts:22
↓ 2 callers
Method
recoverExpiredLeases
()
src/worker/cloud-worker.ts:261
↓ 2 callers
Function
refreshAccount
()
public/app.js:219
↓ 2 callers
Function
refreshResultRetention
(taskId: string, date = new Date())
src/utils/storage.ts:587
↓ 2 callers
Method
refreshResultRetention
* Refreshes the filesystem retention clock for a result and its metadata. * * @param taskId - The task identifier * @param date - Timestamp t
src/utils/storage.ts:193
↓ 2 callers
Method
releaseWalletCharge
(jobId: string, note: string)
src/worker/cloud-worker.ts:222
↓ 2 callers
Function
renderPaidRecharge
(status, result)
public/app.js:408
↓ 2 callers
Function
renderViewerStats
(side, stats)
public/app.js:782
↓ 2 callers
Method
renewLease
(jobId: string, input: RenewJobLeaseInput)
src/jobs/job-store.ts:25
↓ 2 callers
Function
resetServerPreview
()
public/app.js:904
↓ 2 callers
Function
resultFileExists
(taskId: string)
src/utils/storage.ts:636
↓ 2 callers
Method
run
(inputPath: string, outputPath: string, descriptor: HeavyTaskDescriptor<TPayload>)
src/tasks/types.ts:46
↓ 2 callers
Function
safeEquals
(a: string, b: string)
src/middleware/auth.ts:55
↓ 2 callers
Function
saveFile
(file)
public/app.js:1411
↓ 2 callers
Function
saveResultFile
(taskId: string, buffer: Buffer)
src/utils/storage.ts:538
↓ 2 callers
Function
saveResultMetadata
(metadata: ResultMetadata)
src/utils/storage.ts:567
↓ 2 callers
Method
saveResultMetadata
* Saves metadata for an optimized result. * * @param metadata - Result metadata to save
src/utils/storage.ts:167
↓ 2 callers
Function
setOptimizationMode
(mode)
public/app.js:1217
↓ 2 callers
Function
sha256Hex
(value: string)
src/cloud/tencent-cloud-api.ts:75
↓ 2 callers
Function
sha256Hex
(value: string)
src/dispatcher/tencent-as-client.ts:171
↓ 2 callers
Function
showWechatLoginModalSkeleton
(message)
public/app.js:529
↓ 2 callers
Function
sign
(value: string)
src/accounts/token.ts:18
↓ 2 callers
Function
signState
(value: string, secret = config.webAuth.tokenSecret)
src/accounts/wechat-oauth.ts:66
↓ 2 callers
Function
sleep
(ms: number)
src/worker/cloud-worker.ts:49
↓ 2 callers
Method
stop
()
src/dispatcher/dispatcher.ts:76
↓ 2 callers
Method
stopJobLeaseRenewal
(jobId: string)
src/worker/cloud-worker.ts:304
↓ 2 callers
Function
summarizeJobBacklog
( jobs: CloudJob[], now: Date = new Date(), taskType?: string )
src/dispatcher/scaling.ts:14
↓ 2 callers
Method
syncRechargeOrderByOutTradeNo
(userId: string, outTradeNo: string)
src/accounts/account-service.ts:201
↓ 2 callers
Method
tick
()
src/monitor/business-monitor.ts:56
↓ 2 callers
Method
toUri
(object: CosObjectRef)
src/cloud/object-storage.ts:66
↓ 2 callers
Method
update
(orderId: string, updates: Partial<BillingOrder>)
src/billing/order-store.ts:51
↓ 2 callers
Method
updateRechargeOrderRow
(client: MySqlQueryable, order: RechargeOrder)
src/accounts/account-store.ts:975
↓ 2 callers
Method
updateRechargeOrderRow
(client: SqlQueryable, order: RechargeOrder)
src/accounts/account-store.ts:1557
↓ 2 callers
Method
updateUserRow
(client: MySqlQueryable, user: WebUser)
src/accounts/account-store.ts:846
↓ 2 callers
Method
updateUserRow
(client: SqlQueryable, user: WebUser)
src/accounts/account-store.ts:1450
← previous
next →
301–400 of 989, ranked by callers