-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #653 from Gary-Community-Ventures/dev
Release 12/3/2024
- Loading branch information
Showing
50 changed files
with
3,276 additions
and
8,700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3,078 changes: 160 additions & 2,918 deletions
3,078
configuration/management/commands/add_config.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from ._default import DefaultConfigurationData | ||
from .base import ConfigurationData | ||
from .co import CoConfigurationData | ||
from .nc import NcConfigurationData | ||
|
||
|
||
white_label_config: dict[str, ConfigurationData] = { | ||
"co": CoConfigurationData, | ||
"nc": NcConfigurationData, | ||
"_default": DefaultConfigurationData, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
from .base import ConfigurationData | ||
from screener.models import WhiteLabel | ||
|
||
|
||
class DefaultConfigurationData(ConfigurationData): | ||
is_default = True | ||
|
||
@classmethod | ||
def get_white_label(self) -> WhiteLabel: | ||
return WhiteLabel.objects.get(code="_default") | ||
|
||
referrer_data = { | ||
"theme": {"default": "default"}, | ||
"logoSource": {"default": ""}, | ||
"logoAlt": { | ||
"default": {"id": "referrerHook.logoAlts.default", "defaultMessage": "MyFriendBen home page button"} | ||
}, | ||
"logoFooterSource": {"default": "MFB_Logo"}, | ||
"logoFooterAlt": {"default": {"id": "footer.logo.alt", "defaultMessage": "MFB Logo"}}, | ||
"logoClass": {"default": "logo"}, | ||
"twoOneOneLink": { | ||
"default": 'https://www.211colorado.org/?utm_source=myfriendben&utm_medium=inlink&utm_campaign=organic&utm_id="211mfb"' | ||
}, | ||
"shareLink": {"default": "https://screener.myfriendben.org"}, | ||
"stepDirectory": { | ||
"default": [ | ||
"zipcode", | ||
# the hhSize and hhData have to be consecutive | ||
"householdSize", | ||
"householdData", | ||
"hasExpenses", | ||
"householdAssets", | ||
"hasBenefits", | ||
"acuteHHConditions", | ||
"referralSource", | ||
"signUpInfo", | ||
] | ||
}, | ||
} | ||
|
||
footer_data = { | ||
"address_one": "1705 17th St.", | ||
"address_two": "Suite 200", | ||
"city": "Denver", | ||
"state": "CO", | ||
"zip_code": "80202", | ||
"email": "myfriendben@garycommunity.org", | ||
"privacy_policy_link": "https://co.myfriendben.org/privacy-policy/", | ||
} | ||
|
||
language_options = { | ||
"en-us": "English", | ||
"es": "Español", | ||
"vi": "Tiếng Việt", | ||
"fr": "Français", | ||
"am": "አማርኛ", | ||
"so": "Soomaali", | ||
"ru": "Русский", | ||
"ne": "नेपाली", | ||
"my": "မြန်မာဘာသာစကား", | ||
"zh": "中文", | ||
"ar": "عربي", | ||
} | ||
|
||
feedback_links = { | ||
"email": "mailto: myfriendben@garycommunity.org", | ||
"survey": "https://docs.google.com/forms/d/e/1FAIpQLSdnfqjvlVSBQkJuUMvhEDUp-t6oD-8tPQi67uRG2iNetXmSfA/viewform?usp=sf_link", | ||
} |
Oops, something went wrong.