MCPcopy Create free account

hub / github.com/timelinize/timelinize / functions

Functions1,120 in github.com/timelinize/timelinize

↓ 791 callersFunction$
(sel, el)
frontend/resources/js/app.js:20
↓ 166 callersFunction$$
(sel, el)
frontend/resources/js/app.js:21
↓ 162 callersMethodString
()
timeline/graph.go:405
↓ 158 callersMethodError
()
timeline/timeline.go:214
↓ 136 callersMethodError
()
tlzapp/errors.go:49
↓ 135 callersMethodClose
()
timeline/db.go:84
↓ 94 callersMethodOpen
(name string)
datasources/iphone/iphone.go:227
↓ 88 callersMethodName
()
datasources/firefox/firefox_test.go:184
↓ 82 callersMethodScan
(dest ...any)
timeline/graph.go:857
↓ 76 callersFunctionon
(eventName, elemSelector, handler, capture)
frontend/resources/js/app.js:213
↓ 61 callersMethodInfo
()
datasources/firefox/firefox_test.go:187
↓ 61 callersMethodIsDir
()
datasources/firefox/firefox_test.go:185
↓ 56 callersMethodContext
Context returns the context the job is being run in. It should (usually) be the parent context of all others in the job.
timeline/jobs.go:629
↓ 50 callersMethodUnlock
(key any)
timeline/mapmutex.go:46
↓ 49 callersMethodLock
(key any)
timeline/mapmutex.go:37
↓ 47 callersMethodString
()
datasources/telegram/telegram.go:97
↓ 47 callersFunctioncloneTemplate
(tplSelector)
frontend/resources/js/app.js:262
↓ 36 callersMethodFullPath
FullPath returns the full file system path for a data file, including the repo path. It converts forward slashes in the input to the file system path
timeline/itemfiles.go:343
↓ 31 callersFunctionjsonResponse
(w http.ResponseWriter, v any, err error)
tlzapp/helpers.go:128
↓ 29 callersFunctionRegisterDataSource
authFunc gets the authentication function for this service. If s.Authenticate is set, it returns that; if s.OAuth2 is set, it uses a standard OAuth2 f
timeline/datasource.go:117
↓ 27 callersFunctionStringData
StringData makes it easy to return a simple string as an item's data.
timeline/timeline.go:1342
↓ 25 callersMethodLogger
Logger returns a logger for the job.
timeline/jobs.go:638
↓ 24 callersMethodHeader
()
tlzapp/app.go:517
↓ 23 callersMethodDir
()
timeline/timeline.go:84
↓ 23 callersMethodGet
(ctx context.Context, expectedStateVal, authCodeURL string)
oauth2client/oauth2.go:41
↓ 23 callersFunctionpost
(endpoint, data, method = 'POST')
frontend/resources/js/app.js:42
↓ 22 callersMethodContains
Contains returns true if the given time ts is inside the timeframe tf. Only tf.Since and tf.Until are used; tf.SinceItemID and tf.UntilItemID are igno
timeline/datasource.go:467
↓ 22 callersMethodFileExists
FileExists returns true if the named file exists in the DirEntry's FS starting from the DirEntry's filename.
timeline/datasource.go:263
↓ 21 callersFunctiongetOpenTimeline
getOpenTimeline gets an open timeline designated by instance ID. If the timeline is not open, a structured error is returned.
tlzapp/state.go:70
↓ 20 callersMethodToItem
ToItem links an item to the node on this graph such that the edge goes from the graph node to the item.
timeline/graph.go:126
↓ 20 callersMethodToken
()
timeline/oauth2.go:115
↓ 18 callersMethodToEntity
ToEntity links an entity to the node on this graph such that the edge goes from the graph node to the entity.
timeline/graph.go:132
↓ 17 callersFunctionFixString
FixString fixes a malformed string created by decoding UTF-8-encoded JSON string values as UTF-16 strings. JSON string values *should* be encoded as U
datasources/facebook/archive.go:774
↓ 16 callersMethodAnonymize
Anonymize obfuscates the entity.
timeline/obfuscation.go:346
↓ 16 callersFunctionptr
(t time.Time)
timeline/datasource_test.go:157
↓ 15 callersFunctionitemContentElement
(item, opts)
frontend/resources/js/common-lib.js:1291
↓ 15 callersFunctionnewEntitySelect
(element, maxItems, noWrap)
frontend/resources/js/common-lib.js:2332
↓ 14 callersMethodSearchItems
(params timeline.ItemSearchParams)
tlzapp/bindings.go:773
↓ 13 callersMethodStat
Stat stats the named file from the DirEntry's FS rooted at the DirEntry's Filename.
timeline/datasource.go:253
↓ 13 callersFunctionavatar
(colored, entity, classes)
frontend/resources/js/common-lib.js:1117
↓ 13 callersMethodparse
EXAMPLE: "geo:30.123456,-105.987654"
datasources/googlelocation/models.go:101
↓ 12 callersMethodClean
Clean removes keys with empty values (including numeric 0 and non-empty strings and byte slices containing only spaces) or keys that are the empty str
timeline/graph.go:567
↓ 12 callersMethodObfuscationMode
(repo *timeline.Timeline)
tlzapp/bindings.go:1073
↓ 12 callersMethodRun
Run runs or resumes a job. It should utilize the checkpoint, if set, to resume an interrupted job. CPU-intensive work should use the throttle. If poss
timeline/jobs.go:1172
↓ 12 callersMethodStat
(name string)
datasources/iphone/iphone.go:231
↓ 12 callersMethodWrite
(p []byte)
timeline/log.go:85
↓ 11 callersFunctionFileExistsFS
FileExistsFS returns true if name exists in fsys.
timeline/timeline.go:1336
↓ 11 callersMethodID
ID returns the database row ID of the job.
timeline/jobs.go:632
↓ 11 callersMethodWith
With is a promotion of the embedded Core.With() method so that we can ensure derivative loggers are our type, not the embedded type, to preserve our o
timeline/log.go:158
↓ 11 callersFunctioncurrentPageNum
()
frontend/resources/js/common.js:123
↓ 11 callersFunctiongetClassification
(name string)
timeline/graph.go:1188
↓ 11 callersFunctiongetOwner
(repo)
frontend/resources/js/common.js:43
↓ 10 callersMethodClose
Close frees up resources allocated from Open.
timeline/timeline.go:558
↓ 10 callersFunctionExtractAllMetadata
ExtractAllMetadata reads the file at the given path in the given file system and tries to extract any and all metadata it can find. The metadata will
datasources/media/metadata.go:57
↓ 10 callersMethodIsEmpty
IsEmpty returns true if there is no x, y, or z coordinate.
timeline/graph.go:972
↓ 10 callersMethodLen
Implement sort.Interface
timeline/conversations.go:657
↓ 10 callersMethodLocation
Location converts the coordinates into a item-processable Location value.
datasources/googlelocation/locproc.go:693
↓ 10 callersMethodOpen
Open opens the named file from the DirEntry's FS rooted at the DirEntry's Filename.
timeline/datasource.go:248
↓ 10 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
tlzapp/helpers.go:31
↓ 10 callersFunctionlatLonBounds
latLonBounds returns low and high bounds for an acceptable lat/lon value, as well as the decimal precision used, which can be useful in SQL queries fo
timeline/processing.go:1401
↓ 9 callersMethoddeleteRepoFile
deleteRepoFile deletes the file at pathInRepo, which is a path relative to the repo root, or a path within the repo root (if the given path is prefixe
timeline/timeline.go:1238
↓ 9 callersFunctionentityDisplayNameAndAttr
(entity)
frontend/resources/js/common-lib.js:1093
↓ 9 callersFunctionnotify
(params)
frontend/resources/js/app.js:310
↓ 9 callersFunctionnullableUnixMilli
nullableUnixMilli returns the Unix epoch millisecond UTC timestamp associated with the given time value. If it is nil or zero, nil is returned. Otherw
timeline/graph.go:848
↓ 9 callersFunctiontrigger
(el, eventType, detail)
frontend/resources/js/app.js:245
↓ 8 callersMethodAttributeValue
AttributeValue gets the value of the (first-)named attribute from the entity.
timeline/entities.go:136
↓ 8 callersMethodContainsItem
ContainsItem returns true if the timeframe contains the item, according to its timestamp and timespan (start and end) values, with respect to strict m
timeline/datasource.go:482
↓ 8 callersFunctionFileExists
FileExists returns true if file exists.
timeline/timeline.go:1330
↓ 8 callersMethodNextLocation
NextLocation returns the next location to process. When there are no more locations, it should return (nil, nil). Implementations must honor context
datasources/googlelocation/locproc.go:38
↓ 8 callersMethodReadDir
ReadDir reads the direcftory at the named path from the DirEntry's FS rooted at the DirEntry's Filename.
timeline/datasource.go:258
↓ 8 callersMethodSearchEntities
TODO: all of these methods should be cancelable by the browser... somehow
tlzapp/bindings.go:790
↓ 8 callersMethodSize
Size returns the number of nodes in the graph
timeline/graph.go:101
↓ 8 callersMethodString
()
timeline/timeline.go:83
↓ 8 callersMethodString
()
datasources/applecontacts/macaddrbook.go:378
↓ 8 callersMethodflushProgress
flushProgress writes a log that the UI uses to update the progress of the job if it has been enough time since the last flush (we don't need to update
timeline/jobs.go:711
↓ 8 callersFunctionsetDynamicTimestamp
(elem, isoOrUnixSecTime, forDuration)
frontend/resources/js/common.js:251
↓ 8 callersFunctionupdateRepoOwners
(forced)
frontend/resources/js/spa.js:254
↓ 7 callersFunctionByteData
ByteData makes it easy to return a simple byte array as an item's data.
timeline/timeline.go:1349
↓ 7 callersMethodMerge
Merge adds the incoming metadata to m according to the specified conflict policy.
timeline/graph.go:709
↓ 7 callersFunctionNewLocationProcessor
NewLocationProcessor returns a new location source that filters, refines, clusters, and possibly simplifies the locations it reads from source. The r
datasources/googlelocation/locproc.go:67
↓ 7 callersFunctioncommonFilterSearchParams
(params)
frontend/resources/js/common-lib.js:2665
↓ 7 callersMethodfillItem
(item *timeline.Item, d timeline.DirEntry, postText string, logger *zap.Logger)
datasources/facebook/models.go:153
↓ 7 callersMethodfindFileID
findFileID looks up the file ID in the manifest for the file given by its domain and path relative to that domain.
datasources/iphone/iphone.go:162
↓ 7 callersFunctionget
(endpoint, data, signal)
frontend/resources/js/app.js:31
↓ 7 callersFunctionmaxlenStr
(str, maxLen)
frontend/resources/js/common-lib.js:1164
↓ 7 callersFunctionnavigateSPA
(addrBarDestination, scrollToTop)
frontend/resources/js/spa.js:63
↓ 7 callersFunctionnewHash
TODO: do we really need to use the default 32-byte digest? What if 16 bytes or even 8 is enough for us?
timeline/processing.go:1435
↓ 6 callersMethodChartStats
TODO: Very WIP / experimental
tlzapp/bindings.go:849
↓ 6 callersMethodFileImport
FileImport conducts an import of the data using this data source.
datasources/github/github.go:119
↓ 6 callersMethodString
()
timeline/entities.go:84
↓ 6 callersMethodToItemWithValue
ToItemWithValue connects g to item with a relation that has the given value.
timeline/graph.go:149
↓ 6 callersMethodWriteHeader
(statusCode int)
tlzapp/app.go:521
↓ 6 callersFunctionbetterToHuman
(luxonDuration, opts)
frontend/resources/js/common.js:272
↓ 6 callersFunctionhttpWrap
httpWrap wraps a standard http.Handler with a handlerFunc signature.
tlzapp/helpers.go:112
↓ 6 callersFunctionload
(key)
frontend/resources/js/app.js:199
↓ 6 callersMethodmatches
(candidate string)
tlzapp/httpaccept.go:79
↓ 6 callersFunctionmustCount
(t *testing.T, itemChan chan *timeline.Graph, count int)
datasources/github/github_test.go:114
↓ 6 callersFunctionnewDatePicker
(opts)
frontend/resources/js/common-lib.js:586
↓ 6 callersFunctionstripPreface
stripPrefaces reads from f until a '=' is encountered. (Each .js file starts with a variable definition at the beginning.)
datasources/twitter/archives.go:384
↓ 6 callersMethodtext
text returns the full text of the tweet, with entities added inline.
datasources/twitter/models.go:408
next →1–100 of 1,120, ranked by callers