ShareRules¶
Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.
The community gallery's limits and every sentence that refuses a share or a download, so each surface says the same thing.
Fields¶
MaxAssets¶
Most assets in a shared Set.
MaxCanvas¶
Largest canvas side, in pixels.
MaxDescriptionLength¶
Longest description, in characters.
MaxEntryRatio¶
Largest allowed expansion of one archive entry (uncompressed to compressed).
MaxHistoryKb¶
Largest repository history, in KB as GitHub reports it.
MaxNameLength¶
Longest share name, in characters.
MaxPreviewBytes¶
Largest preview picture, in bytes (2 MB).
MaxPreviewSide¶
Longest preview picture side, in pixels.
MaxSetBytes¶
Largest packed .set, in bytes (200 MB).
MaxShares¶
Most collections one account shares.
MaxTags¶
Most tags on a share.
MaxUncompressedBytes¶
Most a Set's archive may expand to, in bytes (1 GiB).
MaxZipEntries¶
Most entries in a Set's archive.
MinAccountAgeDays¶
Youngest GitHub account that may share, in days.
ReasonDuplicateName¶
Reason: two entries share one name.
ReasonExpandsTooFar¶
Reason: expands past the limits.
ReasonHoldsLink¶
Reason: a link entry.
ReasonNameLeaves¶
Reason: an entry name escapes the archive.
ReasonTooManyFiles¶
Reason: too many entries.
Properties¶
AccountTooYoung¶
The GitHub account is too young to share.
AlreadySharedThis¶
The card's note that the account already shares the collection being looked at.
AtShareLimit¶
The user is at the share limit.
Blocked¶
The account or Set is on the gallery's block list.
CanvasMismatch¶
The canvas disagrees with the pictures.
CountMismatch¶
The Set's asset count disagrees with its files.
DatesMismatch¶
The entry's dates disagree with its history.
DescriptionLength¶
The description is too long.
EntryDetailsMismatch¶
The entry's facts differ from what the Set says about itself.
EntryFilesNotAllowed¶
A pull request touches files other than its author's own entries.
EntryNameMismatch¶
An entry's slug disagrees with its file name.
EntryOwnerMismatch¶
An entry names an owner other than the account that submitted it.
EntryUnreadable¶
An entry file the gallery's checker can't read.
FileChanged¶
The file was modified while it was being checked.
ForeignBook¶
The CookBook inside is not the one that made the Set.
GitHubRefused¶
GitHub answered no to a request.
GitHubTooMuch¶
GitHub sent a bigger answer than any real one.
GitHubUnexpected¶
GitHub's answer was not what nfty expects.
HashMismatch¶
A download that doesn't match its listed hash.
IndexTooNew¶
The index is newer than this build understands.
LinkNotOpened¶
A gallery entry's link is not an https address nfty will fetch.
ListDamaged¶
The list or file the gallery fetched is not readable.
ManifestMismatch¶
The repository's nfty-public.json does not list the share as submitted.
NameLength¶
The name is empty or too long.
NoLinks¶
A link in a name or description.
NotASet¶
The file is not a Set.
NotConnected¶
Sharing needs a GitHub account and none is connected.
NotSetUp¶
This build has no GitHub OAuth app to sign in with.
OneNewShareADay¶
A second new share inside a day.
PreviewBad¶
The preview picture is unusable.
Reconnect¶
The GitHub token is gone or refused.
RenamedExport¶
A marketplace export with renamed files.
ReplaceNotChosen¶
An update needs the replace box ticked.
ReplaceOneToShare¶
The card's note at the share limit: a swap is the way in, and nothing happens until Share.
RepoChanged¶
The repository changed between the scan and the removal.
RepoExtras¶
The repository holds things the gallery doesn't allow.
RepoManifestDamaged¶
nfty-public.json lists a share whose Release tag nfty would not have written.
RepoNewerNfty¶
nfty-public.json was written by a newer nfty.
RepoNotOurs¶
A repository named nfty-public that nfty did not make.
RepoNotYours¶
The entry's repository is not the author's nfty-public.
RepoPrivate¶
The nfty-public repository is private.
SaveFailed¶
The download arrived but could not be written to this machine.
Sealed¶
A sealed Set.
SignInCanceled¶
The user refused the GitHub sign-in.
SignInExpired¶
The sign-in code ran out before it was used.
SignInFailed¶
GitHub answered the sign-in in a way nfty doesn't expect.
TimedOut¶
GitHub did not answer in time.
TooManyTags¶
The sentence refusing a share that carries more tags than the limit.
Unreachable¶
GitHub can't be reached.
UnshareUnavailable¶
Unsharing is not wired on this page (no sharing service).
UploadSourceFailed¶
The file being uploaded could not be read.
Methods¶
AlreadyListed(string)¶
Someone already shares this Set.
Parameters
login(string) - The GitHub login of the account that already shares the Set.
Returns. The sentence shown to the person, naming that account.
AlreadySharedAs(string)¶
The user already shares this Set.
Parameters
name(string) - The name the person already shares the Set under.
Returns. The sentence shown to the person, naming that name.
CanvasTooLarge(int, int)¶
The canvas is past the limit.
Parameters
width(int) - The canvas width in pixels.height(int) - The canvas height in pixels.
Returns. The sentence shown to the person, naming both canvas sizes and the limit.
HistoryTooLarge(long)¶
The repository history is past the limit.
Parameters
kb(long) - The repository size in kilobytes.
Returns. The sentence shown to the person, naming the history size in megabytes.
ImageUnreadable(string)¶
An asset picture can't be read.
Parameters
file(string) - The picture file name.
Returns. The sentence shown to the person, naming the picture.
ImageWrongSize(string)¶
An asset picture is not the canvas size.
Parameters
file(string) - The picture file name.
Returns. The sentence shown to the person, naming the picture.
ListTooOld(int)¶
The list is older than this nfty reads.
Parameters
version(int) - The schema version the list was written against.
Returns. The sentence shown to the person, naming the list as too old for this nfty.
NothingChanged(string, DateTimeOffset)¶
The share would change nothing.
Parameters
name(string) - The name the Set is shared as.date(DateTimeOffset) - When it was last shared.
Returns. The sentence shown to the person, naming the share and the date.
Offline(DateTime)¶
GitHub can't be reached; a cached list is shown.
Parameters
time(DateTime) - When the cached list was saved.
Returns. The sentence shown to the person, naming the time of the cached list.
RateLimited(int)¶
GitHub is limiting requests; says how long to wait.
Parameters
minutes(int) - How long to wait, in minutes.
Returns. The sentence shown to the person, naming the wait in minutes.
ReleaseFileMissing(string)¶
A file the entry points at is not attached to the release.
Parameters
file(string) - The file the entry points at.
Returns. The sentence shown to the person, naming the missing file.
RepoDuplicateRelease(string)¶
Two releases carry one tag the repository lists.
Parameters
tag(string) - The tag two releases carry.
Returns. The sentence shown to the person, naming that tag.
RepoSubmodule(string)¶
A submodule sits in nfty-public; nfty can't delete it.
Parameters
path(string) - The submodule path.
Returns. The sentence shown to the person, naming that path.
SetTooLarge(long, long)¶
The packed Set is too big; names the 3D models' share when leaving them out would help.
Parameters
bytes(long) - The packed Set size in bytes.modelsBytes(long) - The part of it that is 3D models, in bytes; 0 when there are none.
Returns. The sentence shown to the person, naming the size and, when it applies, the models share.
SizeWords(long)¶
A size as a person reads it against a limit: whole megabytes print whole ("214 MB").
Parameters
bytes(long) - The count.
Returns. The size, invariant.
SlugTaken(string)¶
The slug is taken by a different collection of the user's.
Parameters
name(string) - The name of the different collection already using the slug.
Returns. The sentence shown to the person, naming that name.
TooManyAssets(int)¶
The Set has too many assets.
Parameters
count(int) - The number of assets in the Set.
Returns. The sentence shown to the person, naming the count and the limit.
UnexpectedFile(string)¶
An entry no Set holds.
Parameters
path(string) - The path of the entry no Set holds.
Returns. The sentence shown to the person, naming that path.
UnknownTag(string)¶
A tag outside the list.
Parameters
tag(string) - The tag that is not on the list.
Returns. The sentence shown to the person, naming that tag.
UnsafeArchive(string)¶
The archive is unsafe to open.
Parameters
reason(string) - What makes the archive unsafe, as a phrase.
Returns. The sentence shown to the person, naming the reason.