Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SimonWoodburyForget/mindustry-mods
/ functions
Functions
135 in github.com/SimonWoodburyForget/mindustry-mods
⨍
Functions
135
◇
Types & classes
36
↓ 8 callers
Function
from_str
Converts input markup string to html nodes.
frontend/src/lib.rs:357
↓ 6 callers
Method
to_string
(&self)
common/src/color.rs:10
↓ 5 callers
Function
tag
()
common/src/markup.rs:138
↓ 4 callers
Function
now
()
frontend/src/lib.rs:38
↓ 4 callers
Function
repo_load
Loads Repo objects from json file if exist, otherwise creates a new empty one and returns it.
common/common/main.py:94
↓ 3 callers
Method
get_contents
Get contents, and count requests with an atomic counter, delaying whenever rate limit remaining is too small.
backend/src/request.rs:58
↓ 3 callers
Function
get_file
Gets one file from a repository and returns it as a string or None.
common/common/caching/ghrepo.py:32
↓ 3 callers
Function
input
(b: &str)
backend/src/version.rs:72
↓ 3 callers
Function
parse_or_nothing
(x)
common/common/caching/__init__.py:72
↓ 2 callers
Function
_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 callers
Method
from_repo
(repo)
common/common/caching/ghrepo.py:166
↓ 2 callers
Method
get_contents_decoded
Get base64 decoded contents.
backend/src/request.rs:72
↓ 2 callers
Function
repo_dump
(repo_objs)
common/common/main.py:109
↓ 2 callers
Function
string_part
Parse normal string.
common/common/mson.py:39
↓ 2 callers
Function
tiny_list
Makes the tiny contents/assets overview lists.
frontend/src/lib.rs:60
↓ 2 callers
Function
try_branches
(repo, branch_list)
common/common/caching/ghrepo.py:15
↓ 1 callers
Function
ago
Parses weak rfc3339 time stamps and returns the duration since now.
frontend/src/lib.rs:44
↓ 1 callers
Function
build_mod
Build `Mod` object.
common/common/caching/__init__.py:70
↓ 1 callers
Function
build_mods
Build list of `Mod` objects.
common/common/caching/__init__.py:104
↓ 1 callers
Function
charseq
Parse string. (normal string and escaped string)
common/common/mson.py:37
↓ 1 callers
Function
cli
()
common/common/main.py:141
↓ 1 callers
Method
date_tt
(&self)
common/src/lib.rs:112
↓ 1 callers
Function
fetch_data
()
frontend/src/lib.rs:674
↓ 1 callers
Method
filtering
Returns whether the mod should be rendered, given a query.
frontend/src/lib.rs:82
↓ 1 callers
Function
fix_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 callers
Function
fix_urls
(md, repo_name)
common/common/caching/__init__.py:57
↓ 1 callers
Method
from_dict
Called when the object is being deserialized.
common/common/caching/ghrepo.py:197
↓ 1 callers
Method
from_text
(text)
common/common/caching/ghrepo.py:106
↓ 1 callers
Function
from_tt
(x: f64)
frontend/src/lib.rs:32
↓ 1 callers
Method
get_all_decoded
Gets multiple decoded contents.
backend/src/request.rs:82
↓ 1 callers
Function
get_assets
Returns a set of assets found in repository.
common/common/caching/ghrepo.py:59
↓ 1 callers
Function
get_contents
Returns a set of contents found in repository.
common/common/caching/ghrepo.py:64
↓ 1 callers
Method
into_dict
Called when the object is about to be serialized.
common/common/caching/ghrepo.py:190
↓ 1 callers
Method
listing_item
Returns the `Node<Msg>` for the listing.
frontend/src/lib.rs:286
↓ 1 callers
Function
mods_dump
(_py: Python, mods: Vec<Mod>)
common/src/lib.rs:18
↓ 1 callers
Function
number
Parse number.
common/common/mson.py:31
↓ 1 callers
Function
on_match
(link)
common/common/caching/__init__.py:58
↓ 1 callers
Function
scroll_to_top
()
frontend/src/lib.rs:535
↓ 1 callers
Function
scroll_to_y
(y: i64)
frontend/src/lib.rs:539
↓ 1 callers
Function
search_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 callers
Function
string_comment
Parse a string that has `/` but not `//`.
common/common/mson.py:78
↓ 1 callers
Function
string_esc
Parse escaped string.
common/common/mson.py:43
↓ 1 callers
Function
string_link
Escape `//` and `:` for links.
common/common/mson.py:73
↓ 1 callers
Method
tick
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 callers
Method
to_style
(&self)
frontend/src/lib.rs:351
↓ 1 callers
Function
try_hjson
(text)
common/common/caching/ghrepo.py:26
↓ 1 callers
Function
update
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 callers
Function
update_frontend_data
()
common/common/main.py:45
↓ 1 callers
Function
update_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 callers
Function
update_icons
Returns a dict of `repo_name` to `icon_path`
common/common/caching/icons.py:79
↓ 1 callers
Function
update_mod_icon
(repo_name)
common/common/caching/icons.py:81
↓ 1 callers
Function
update_repositories_cached
This function updates all repositories cached.
common/common/main.py:84
↓ 1 callers
Function
update_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
Function
add_timestamp
(old: Option<&[u8]>)
backend/src/bin/web.rs:19
Function
after_mount
Initialize data.
frontend/src/lib.rs:682
Method
archive_link
Link to the mod's archive.
frontend/src/lib.rs:110
Method
archive_link
(&self)
common/src/lib.rs:118
Method
archive_link
(self)
common/common/caching/ghrepo.py:187
Function
array
Parse array element in JSON text.
common/common/mson.py:92
Method
assets_list
(&self)
frontend/src/lib.rs:101
Method
by_author
The rendered author.
frontend/src/lib.rs:237
Function
color_markup
(input: &str)
common/src/markup.rs:94
Function
common
(_py: Python, module: &PyModule)
common/src/lib.rs:16
Method
contents_list
(&self)
frontend/src/lib.rs:105
Method
default
Default is 8 for no specific reason.
frontend/src/lib.rs:405
Method
description
Description paragraph of the mode for the listing.
frontend/src/lib.rs:225
Method
deserialize
(deserializer: D)
backend/src/version.rs:57
Method
endpoint_query
Endpoint url query string for mod. Essentially used as an ID internally.
frontend/src/lib.rs:127
Function
events
(_model: &Model)
frontend/src/lib.rs:705
Method
expecting
(&self, formatter: &mut fmt::Formatter)
backend/src/version.rs:23
Function
fix
(dry_run)
common/common/main.py:146
Method
fmt
Writes back what was encoded.
common/src/markup.rs:38
Function
formatting
()
common/src/color.rs:217
Method
from
(value: Hjson)
backend/src/lib.rs:96
Method
from
([r, g, b, a]: [u8; 4])
common/src/markup.rs:54
Method
from
(x: u32)
common/src/color.rs:20
Method
from_headers
Reads `X-RateLimit-*` headers and packs them into a `Rate` struct.
backend/src/rate.rs:77
Function
from_hex
(input: &str)
common/src/markup.rs:70
Method
from_repo
Get's mod.json from a specific repo.
common/common/caching/ghrepo.py:96
Method
from_str
(input: &str)
common/src/markup.rs:107
Method
from_str
(input: &str)
common/src/color.rs:134
Method
get_parse
(h: &HeaderMap, key: &'static str)
backend/src/rate.rs:78
Function
hex_color
(input: &str)
common/src/markup.rs:82
Function
hex_primary
(input: &str)
common/src/markup.rs:78
Method
icon
Returns an icon link node. 1. uses `icon.png` from `default_branch` 2 falls back to github user icon
frontend/src/lib.rs:206
Function
increment
(old: Option<&[u8]>)
backend/src/bin/web.rs:14
Function
is_hex_digit
(c: char)
common/src/markup.rs:74
Function
json_object
Parse JSON object.
common/common/mson.py:108
Method
last_commit
The rendered `time age` string.
frontend/src/lib.rs:161
Method
listing
Returns listing of mods, sorted by the sort state.
frontend/src/lib.rs:464
Method
listing_title
Title (name) of the mod in the listing.
frontend/src/lib.rs:275
Function
load
(text)
common/common/mson.py:118
Function
ls
(count)
common/common/main.py:151
Function
main
()
backend/src/bin/web.rs:29
Function
main
()
backend/src/bin/scrap.rs:4
next →
1–100 of 135, ranked by callers