Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/P4R1H/StockPiece
/ functions
Functions
192 in github.com/P4R1H/StockPiece
⨍
Functions
192
◇
Types & classes
57
↳
Endpoints
4
↓ 45 callers
Function
asyncHandler
(func)
backend/src/utils/asyncHandler.utils.js:1
↓ 11 callers
Function
get_config
(x)
Bots/Discord/shared_functions.py:24
↓ 9 callers
Function
pluralize
(value: number, singular: string, plural: string)
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:59
↓ 9 callers
Function
showError
(message: string)
frontend/src/pages/Home/Home.tsx:145
↓ 8 callers
Function
isWindowOpen
(chapterDoc)
backend/src/utils/windowStatus.js:2
↓ 4 callers
Function
uploadOnCloudinary
(localFilePath, _stock = false)
backend/src/utils/cloudinary.utils.js:29
↓ 3 callers
Function
asyncHandler
(fn)
emailRegistration/waitlistController.js:6
↓ 3 callers
Function
getAllowedOrigins
()
emailRegistration/app.js:13
↓ 3 callers
Function
handleFilterChange
(newFilter: 'all' | 'owned' | 'popular' | 'unowned' | 'custom', updateVisibilities = true)
frontend/src/components/StockGraph/StockGraph.tsx:298
↓ 2 callers
Function
checkLoginStatus
()
frontend/src/App.tsx:71
↓ 2 callers
Function
closeMarketService
()
backend/src/services/closeMarket.services.js:115
↓ 2 callers
Function
display_stock_prices
(stocks)
backend/stocktrials/1.py:46
↓ 2 callers
Function
formatPercentage
(value: number)
frontend/src/components/Portfolio/Portfolio.tsx:10
↓ 2 callers
Function
formatWorth
(value: number)
frontend/src/components/Portfolio/Portfolio.tsx:6
↓ 2 callers
Function
generateAccessRefreshToken
(user)
backend/src/controllers/user.controllers.js:78
↓ 2 callers
Function
getColorForCharacter
(name: string)
frontend/src/components/StockGraph/StockGraph.tsx:46
↓ 2 callers
Function
getNextReleaseStatus
()
frontend/src/pages/Admin/AdminServices.ts:184
↓ 2 callers
Function
loginUser
(username: string, password: string, couponCode: string)
frontend/src/pages/Login/LoginServices.ts:52
↓ 2 callers
Function
priceChangeByAlgorithm
(chapter)
backend/src/utils/priceChange.utils.js:12
↓ 2 callers
Function
processImage
(file: File, qualityValue: number)
frontend/src/pages/Admin/imageUpload.tsx:47
↓ 2 callers
Function
processPendingTransaction
(stock: CharacterStock, type: 'buy' | 'sell', quantity: number)
frontend/src/pages/Home/Home.tsx:229
↓ 2 callers
Function
releaseChapterService
()
backend/src/services/releaseChapter.services.js:7
↓ 2 callers
Function
stockStatistics
(chapter)
backend/src/utils/stockStats.utils.js:76
↓ 2 callers
Function
updatePriceService
()
backend/src/services/closeMarket.services.js:11
↓ 2 callers
Function
validateEmail
(email: string)
frontend/src/pages/Waitlist/Waitlist.tsx:14
↓ 2 callers
Function
validateTransactionQuantity
(quantity)
backend/src/controllers/stock.controllers.js:12
↓ 2 callers
Function
verifyToken
(token, secret, model, selectFields)
backend/src/middlewares/auth.middlewares.js:7
↓ 1 callers
Function
addCharacterStock
( name: string, initialValue: number, tickerSymbol: string, imageFile: File )
frontend/src/pages/Admin/AdminServices.ts:60
↓ 1 callers
Function
adminLogin
(username: string, password: string)
frontend/src/pages/Admin/AdminServices.ts:3
↓ 1 callers
Function
adminLogout
()
frontend/src/pages/Admin/AdminServices.ts:15
↓ 1 callers
Function
buyStock
(name: string, quantity: number)
frontend/src/pages/Home/HomeServices.ts:73
↓ 1 callers
Function
calculatePriceUpdate
( currentPrice, prevCirculation, boughtThisChap, soldThisChap )
backend/src/utils/priceChange.utils.js:56
↓ 1 callers
Function
calculateTimeBreakdown
(totalMinutes: number)
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:47
↓ 1 callers
Function
calculate_price_change
(data)
backend/stocktrials/1.py:20
↓ 1 callers
Function
changeCharacterImage
(stockID: string, imageFile: File)
frontend/src/pages/Admin/AdminServices.ts:80
↓ 1 callers
Function
checkCustomState
()
frontend/src/components/StockGraph/StockGraph.tsx:278
↓ 1 callers
Function
checkDailyLogin
(lastDailyLoginDate)
backend/src/controllers/user.controllers.js:63
↓ 1 callers
Function
checkIfMobile
()
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:29
↓ 1 callers
Function
checkStatus
()
frontend/src/pages/Home/Home.tsx:30
↓ 1 callers
Function
checkWindowStatus
()
frontend/src/pages/Home/HomeServices.ts:23
↓ 1 callers
Function
closeMarket
()
frontend/src/pages/Admin/AdminServices.ts:36
↓ 1 callers
Function
connectDB
()
emailRegistration/db.js:4
↓ 1 callers
Function
connectDB
()
backend/src/db/index.db.js:3
↓ 1 callers
Function
containsProfanity
(text)
backend/src/utils/profanity.utils.js:13
↓ 1 callers
Function
createCoupon
(couponData: { code: string; amount: number; maxUsers: number; isFirstTimeOnly: boolean; })
frontend/src/pages/Admin/AdminServices.ts:194
↓ 1 callers
Function
deleteCoupon
(code: string)
frontend/src/pages/Admin/AdminServices.ts:210
↓ 1 callers
Function
deleteFromCloudinary
(url)
backend/src/utils/cloudinary.utils.js:68
↓ 1 callers
Function
deleteTempFile
(localFilePath)
backend/src/utils/cloudinary.utils.js:14
↓ 1 callers
Function
display_percentage_changes
(initial_prices, updated_stocks)
backend/stocktrials/1.py:62
↓ 1 callers
Function
exitCustomFullscreen
()
frontend/src/components/StockGraph/StockGraph.tsx:566
↓ 1 callers
Function
fetchChapterStats
()
frontend/src/pages/Admin/Admin.tsx:499
↓ 1 callers
Function
fetchErrors
(type: string = 'all')
frontend/src/pages/Admin/AdminServices.ts:162
↓ 1 callers
Function
fetchMarketStats
()
frontend/src/pages/Admin/Admin.tsx:513
↓ 1 callers
Function
forcePriceUpdates
()
frontend/src/pages/Admin/AdminServices.ts:152
↓ 1 callers
Function
formatMarketStatus
(status: string)
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:93
↓ 1 callers
Function
formatTimeComponents
(timeBreakdown: TimeBreakdown)
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:63
↓ 1 callers
Function
formatTimeDisplay
(timeStr: string)
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:82
↓ 1 callers
Function
generateFingerprint
()
frontend/src/pages/Login/LoginServices.ts:3
↓ 1 callers
Function
generateMockStockHistory
()
frontend/src/components/StockGraph/StockGraph.tsx:59
↓ 1 callers
Function
getChapterStatistics
(chapter: number | null)
frontend/src/pages/Admin/AdminServices.ts:126
↓ 1 callers
Function
getLatestChapter
()
frontend/src/pages/Admin/AdminServices.ts:136
↓ 1 callers
Function
getMarketStatistics
(chapter?: number)
frontend/src/pages/Admin/AdminServices.ts:116
↓ 1 callers
Function
getMarketStatus
()
frontend/src/pages/Admin/AdminServices.ts:23
↓ 1 callers
Function
getMarketStatusInfo
()
frontend/src/utils/MarketStatus.ts:93
↓ 1 callers
Function
getPortfolioData
()
frontend/src/pages/Home/HomeServices.ts:36
↓ 1 callers
Function
getReferralCode
()
frontend/src/pages/Settings/SettingsServices.ts:6
↓ 1 callers
Function
getStockMarketData
()
frontend/src/pages/Home/HomeServices.ts:3
↓ 1 callers
Function
getStocks
()
frontend/src/pages/Admin/AdminServices.ts:42
↓ 1 callers
Function
getUserDetails
(username: string)
frontend/src/pages/Admin/AdminServices.ts:221
↓ 1 callers
Function
get_user_input
(stocks)
backend/stocktrials/1.py:52
↓ 1 callers
Function
gpt_calculate_price_update
(current_price, prev_circulation, bought_this_chap, sold_this_chap)
backend/stocktrials/2.py:35
↓ 1 callers
Function
gracefulShutdown
()
backend/src/index.js:140
↓ 1 callers
Function
handleResize
()
frontend/src/components/StockGraph/StockGraph.tsx:256
↓ 1 callers
Function
initializeAdmin
()
backend/src/services/initializeAdmin.services.js:3
↓ 1 callers
Function
loadData
()
frontend/src/pages/Admin/Admin.tsx:479
↓ 1 callers
Method
load_cogs
(self)
Bots/Discord/bot.py:76
↓ 1 callers
Function
loginExists
()
frontend/src/pages/Login/LoginServices.ts:94
↓ 1 callers
Function
logoutUser
()
frontend/src/pages/Login/LoginServices.ts:28
↓ 1 callers
Function
main
()
backend/stocktrials/2.py:110
↓ 1 callers
Function
manualPriceUpdate
(update: { name: string; value: string })
frontend/src/pages/Admin/AdminServices.ts:105
↓ 1 callers
Function
mapFilter
(f: 'All' | 'Owned' | 'Popular')
frontend/src/components/StockGraph/StockGraph.tsx:269
↓ 1 callers
Function
openMarket
()
frontend/src/pages/Admin/AdminServices.ts:30
↓ 1 callers
Function
registerUser
(username: string, password: string)
frontend/src/pages/Login/LoginServices.ts:71
↓ 1 callers
Function
releaseNewChapter
()
frontend/src/pages/Admin/AdminServices.ts:143
↓ 1 callers
Function
removeCharacterStock
(name: string)
frontend/src/pages/Admin/AdminServices.ts:94
↓ 1 callers
Function
sellStock
(name: string, quantity: number)
frontend/src/pages/Home/HomeServices.ts:85
↓ 1 callers
Function
sendRequests
()
backend/stocktrials/responseCheck.js:6
↓ 1 callers
Function
setupCronJobs
()
backend/src/index.js:45
↓ 1 callers
Function
startServer
()
backend/src/index.js:17
↓ 1 callers
Function
toastMarketStatus
({ status, nextStatus, timeUntilNext, statusClass, }: MarketStatusToastOptions)
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:124
↓ 1 callers
Function
toggleNextRelease
()
frontend/src/pages/Admin/AdminServices.ts:174
↓ 1 callers
Function
totalBuySellsForChapter
(chapter)
backend/src/utils/stockStats.utils.js:34
↓ 1 callers
Function
totalQuantityOfStocks
()
backend/src/utils/stockStats.utils.js:15
↓ 1 callers
Method
update_price
(self)
backend/stocktrials/2.py:94
↓ 1 callers
Function
update_stock_prices
(stocks)
backend/stocktrials/1.py:33
↓ 1 callers
Function
useIsMobileScreen
()
frontend/src/components/Notifications/CustomSonner/CustomSonner.tsx:25
↓ 1 callers
Function
useWindowWidth
()
frontend/src/components/StockGrid/StockGrid.tsx:24
↓ 1 callers
Function
validateTransactionQuantity
(quantity)
backend/src/controllers/admin.controllers.js:748
↓ 1 callers
Function
verifyCoupon
(couponCode, user)
backend/src/controllers/user.controllers.js:20
Function
AddStockModal
({ onClose, onSubmit })
frontend/src/pages/Admin/Admin.tsx:229
next →
1–100 of 192, ranked by callers