MCPcopy Create free account

hub / github.com/SimonWoodburyForget/mindustry-mods / functions

Functions135 in github.com/SimonWoodburyForget/mindustry-mods

↓ 8 callersFunctionfrom_str
Converts input markup string to html nodes.
frontend/src/lib.rs:357
↓ 6 callersMethodto_string
(&self)
common/src/color.rs:10
↓ 5 callersFunctiontag
()
common/src/markup.rs:138
↓ 4 callersFunctionnow
()
frontend/src/lib.rs:38
↓ 4 callersFunctionrepo_load
Loads Repo objects from json file if exist, otherwise creates a new empty one and returns it.
common/common/main.py:94
↓ 3 callersMethodget_contents
Get contents, and count requests with an atomic counter, delaying whenever rate limit remaining is too small.
backend/src/request.rs:58
↓ 3 callersFunctionget_file
Gets one file from a repository and returns it as a string or None.
common/common/caching/ghrepo.py:32
↓ 3 callersFunctioninput
(b: &str)
backend/src/version.rs:72
↓ 3 callersFunctionparse_or_nothing
(x)
common/common/caching/__init__.py:72
↓ 2 callersFunction_get_icon
Returns image as bytes, with path, if no errors occur, otherwise returns (None, None) which can be cached to keep track of what we didn't fi
common/common/caching/icons.py:69
↓ 2 callersMethodfrom_repo
(repo)
common/common/caching/ghrepo.py:166
↓ 2 callersMethodget_contents_decoded
Get base64 decoded contents.
backend/src/request.rs:72
↓ 2 callersFunctionrepo_dump
(repo_objs)
common/common/main.py:109
↓ 2 callersFunctionstring_part
Parse normal string.
common/common/mson.py:39
↓ 2 callersFunctiontiny_list
Makes the tiny contents/assets overview lists.
frontend/src/lib.rs:60
↓ 2 callersFunctiontry_branches
(repo, branch_list)
common/common/caching/ghrepo.py:15
↓ 1 callersFunctionago
Parses weak rfc3339 time stamps and returns the duration since now.
frontend/src/lib.rs:44
↓ 1 callersFunctionbuild_mod
Build `Mod` object.
common/common/caching/__init__.py:70
↓ 1 callersFunctionbuild_mods
Build list of `Mod` objects.
common/common/caching/__init__.py:104
↓ 1 callersFunctioncharseq
Parse string. (normal string and escaped string)
common/common/mson.py:37
↓ 1 callersFunctioncli
()
common/common/main.py:141
↓ 1 callersMethoddate_tt
(&self)
common/src/lib.rs:112
↓ 1 callersFunctionfetch_data
()
frontend/src/lib.rs:674
↓ 1 callersMethodfiltering
Returns whether the mod should be rendered, given a query.
frontend/src/lib.rs:82
↓ 1 callersFunctionfix_image_url
Fixes a GitHub image urls. Any links with `github.com` are invalid, because the return *html* content. Image links would have `githubusercont
common/common/caching/__init__.py:17
↓ 1 callersFunctionfix_urls
(md, repo_name)
common/common/caching/__init__.py:57
↓ 1 callersMethodfrom_dict
Called when the object is being deserialized.
common/common/caching/ghrepo.py:197
↓ 1 callersMethodfrom_text
(text)
common/common/caching/ghrepo.py:106
↓ 1 callersFunctionfrom_tt
(x: f64)
frontend/src/lib.rs:32
↓ 1 callersMethodget_all_decoded
Gets multiple decoded contents.
backend/src/request.rs:82
↓ 1 callersFunctionget_assets
Returns a set of assets found in repository.
common/common/caching/ghrepo.py:59
↓ 1 callersFunctionget_contents
Returns a set of contents found in repository.
common/common/caching/ghrepo.py:64
↓ 1 callersMethodinto_dict
Called when the object is about to be serialized.
common/common/caching/ghrepo.py:190
↓ 1 callersMethodlisting_item
Returns the `Node<Msg>` for the listing.
frontend/src/lib.rs:286
↓ 1 callersFunctionmods_dump
(_py: Python, mods: Vec<Mod>)
common/src/lib.rs:18
↓ 1 callersFunctionnumber
Parse number.
common/common/mson.py:31
↓ 1 callersFunctionon_match
(link)
common/common/caching/__init__.py:58
↓ 1 callersFunctionscroll_to_top
()
frontend/src/lib.rs:535
↓ 1 callersFunctionscroll_to_y
(y: i64)
frontend/src/lib.rs:539
↓ 1 callersFunctionsearch_repositories_recent
Search for repositories on GitHub. Given an old list of `sha` values, helps this function minimize API calls, as search results are ordered by
common/common/main.py:54
↓ 1 callersFunctionstring_comment
Parse a string that has `/` but not `//`.
common/common/mson.py:78
↓ 1 callersFunctionstring_esc
Parse escaped string.
common/common/mson.py:43
↓ 1 callersFunctionstring_link
Escape `//` and `:` for links.
common/common/mson.py:73
↓ 1 callersMethodtick
Decreament limit by one or delay async operation until reset datetime passes. If the time remaining is negative, this function waits zero seconds.
backend/src/rate.rs:54
↓ 1 callersMethodto_style
(&self)
frontend/src/lib.rs:351
↓ 1 callersFunctiontry_hjson
(text)
common/common/caching/ghrepo.py:26
↓ 1 callersFunctionupdate
Takes PyGitHub instance and the mods-yaml data, and returns a modmeta, which is generated data from what has been cached.
common/common/main.py:113
↓ 1 callersFunctionupdate_frontend_data
()
common/common/main.py:45
↓ 1 callersFunctionupdate_icon
Downloads an image from the target repository, and runs it through sha256 which is then used to verify whether the icon changed or not. The i
common/common/caching/icons.py:12
↓ 1 callersFunctionupdate_icons
Returns a dict of `repo_name` to `icon_path`
common/common/caching/icons.py:79
↓ 1 callersFunctionupdate_mod_icon
(repo_name)
common/common/caching/icons.py:81
↓ 1 callersFunctionupdate_repositories_cached
This function updates all repositories cached.
common/common/main.py:84
↓ 1 callersFunctionupdate_repositories_recent
The function updates the most recently updated repositories. Old repositories wont get updated, which makes it the most effecient.
common/common/main.py:70
Method__eq__
(self, other)
common/common/caching/ghrepo.py:159
Method__hash__
(self)
common/common/caching/ghrepo.py:162
Method__repr__
(self)
common/common/caching/ghrepo.py:92
Method__repr__
(self)
common/common/caching/ghrepo.py:156
Method_endpoint_href
Endpoint link as a string.
frontend/src/lib.rs:121
Functionadd_timestamp
(old: Option<&[u8]>)
backend/src/bin/web.rs:19
Functionafter_mount
Initialize data.
frontend/src/lib.rs:682
Methodarchive_link
Link to the mod's archive.
frontend/src/lib.rs:110
Methodarchive_link
(&self)
common/src/lib.rs:118
Methodarchive_link
(self)
common/common/caching/ghrepo.py:187
Functionarray
Parse array element in JSON text.
common/common/mson.py:92
Methodassets_list
(&self)
frontend/src/lib.rs:101
Methodby_author
The rendered author.
frontend/src/lib.rs:237
Functioncolor_markup
(input: &str)
common/src/markup.rs:94
Functioncommon
(_py: Python, module: &PyModule)
common/src/lib.rs:16
Methodcontents_list
(&self)
frontend/src/lib.rs:105
Methoddefault
Default is 8 for no specific reason.
frontend/src/lib.rs:405
Methoddescription
Description paragraph of the mode for the listing.
frontend/src/lib.rs:225
Methoddeserialize
(deserializer: D)
backend/src/version.rs:57
Methodendpoint_query
Endpoint url query string for mod. Essentially used as an ID internally.
frontend/src/lib.rs:127
Functionevents
(_model: &Model)
frontend/src/lib.rs:705
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
backend/src/version.rs:23
Functionfix
(dry_run)
common/common/main.py:146
Methodfmt
Writes back what was encoded.
common/src/markup.rs:38
Functionformatting
()
common/src/color.rs:217
Methodfrom
(value: Hjson)
backend/src/lib.rs:96
Methodfrom
([r, g, b, a]: [u8; 4])
common/src/markup.rs:54
Methodfrom
(x: u32)
common/src/color.rs:20
Methodfrom_headers
Reads `X-RateLimit-*` headers and packs them into a `Rate` struct.
backend/src/rate.rs:77
Functionfrom_hex
(input: &str)
common/src/markup.rs:70
Methodfrom_repo
Get's mod.json from a specific repo.
common/common/caching/ghrepo.py:96
Methodfrom_str
(input: &str)
common/src/markup.rs:107
Methodfrom_str
(input: &str)
common/src/color.rs:134
Methodget_parse
(h: &HeaderMap, key: &'static str)
backend/src/rate.rs:78
Functionhex_color
(input: &str)
common/src/markup.rs:82
Functionhex_primary
(input: &str)
common/src/markup.rs:78
Methodicon
Returns an icon link node. 1. uses `icon.png` from `default_branch` 2 falls back to github user icon
frontend/src/lib.rs:206
Functionincrement
(old: Option<&[u8]>)
backend/src/bin/web.rs:14
Functionis_hex_digit
(c: char)
common/src/markup.rs:74
Functionjson_object
Parse JSON object.
common/common/mson.py:108
Methodlast_commit
The rendered `time age` string.
frontend/src/lib.rs:161
Methodlisting
Returns listing of mods, sorted by the sort state.
frontend/src/lib.rs:464
Methodlisting_title
Title (name) of the mod in the listing.
frontend/src/lib.rs:275
Functionload
(text)
common/common/mson.py:118
Functionls
(count)
common/common/main.py:151
Functionmain
()
backend/src/bin/web.rs:29
Functionmain
()
backend/src/bin/scrap.rs:4
next →1–100 of 135, ranked by callers