Skip to content

Commit

Permalink
added support for ManagedBookmarks policy to configures bookmarks man…
Browse files Browse the repository at this point in the history
…aged by an administrator that cannot be changed by the user. Support for folders will be added in a future release, fixes #231
  • Loading branch information
cadeyrn committed Sep 7, 2024
1 parent 5956cbe commit 39a2910
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@

#### Enterprise Policies

- Added support for ManagedBookmarks policy to configures bookmarks managed by an administrator that cannot be
changed by the user. Support for folders will be added in a future release, see
[#231](https://github.com/cadeyrn/enterprise-policy-generator/issues/231)
- Added support for AllowedDomainsForApps policy to define domains that are allowed to access Google Workspace, see
[#228](https://github.com/cadeyrn/enterprise-policy-generator/issues/228)
- Added support for AutoLaunchProtocolsFromOrigins policy to define a list of external protocols that can be used from
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "Bestimmten Websites erlauben, lokale Dateien zu verlinken"
},
"policy_description_ManagedBookmarks": {
"message": "Verwaltete Lesezeichen (nicht durch den Benutzer veränderbar oder löschbar)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Name des Lesezeichen-Ordners"
},
"policy_description_ManagedBookmarks_name": {
"message": "Name"
},
"policy_description_NetworkPrediction": {
"message": "DNS Prefetching aktivieren oder deaktivieren"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/dsb/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "Wěstym websedłam dowóliś, na lokalne dataje wótkazaś"
},
"policy_description_ManagedBookmarks": {
"message": "Zastojane cytańske znamjenja (wót wužywarja njezměnjobne abo njelašujobne)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Mě zarědnika cytańskich znamjenjow"
},
"policy_description_ManagedBookmarks_name": {
"message": ""
},
"policy_description_NetworkPrediction": {
"message": "DNS-pśedzacytanje zmóžniś abo znjemóžniś"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "Allow specific websites to link to local files"
},
"policy_description_ManagedBookmarks": {
"message": "Managed bookmarks (cannot be changed or removed by the user)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Name of the bookmarks folder"
},
"policy_description_ManagedBookmarks_name": {
"message": "Name"
},
"policy_description_NetworkPrediction": {
"message": "Enable or disable network prediction (DNS prefetching)"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "Autoriser des sites Web spécifiques à créer des liens vers des fichiers locaux"
},
"policy_description_ManagedBookmarks": {
"message": "Managed bookmarks (cannot be changed or removed by the user)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Name of the bookmarks folder"
},
"policy_description_ManagedBookmarks_name": {
"message": "Name"
},
"policy_description_NetworkPrediction": {
"message": "Activer ou désactiver prédiction réseau (Pré-recherche DNS)"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/hsb/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "Wěstym websydłam dowolić, na lokalne dataje wotkazać"
},
"policy_description_ManagedBookmarks": {
"message": "Zrjadowane zapołožki (wot wužiwarja njezměnjomne abo njezhašomne)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Mjeno rjadowaka zapołožkow"
},
"policy_description_ManagedBookmarks_name": {
"message": "Mjeno"
},
"policy_description_NetworkPrediction": {
"message": "DNS-předzačitanje zmóžnić abo znjemóžnić"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "Разрешить определенным сайтам ссылку на локальные файлы"
},
"policy_description_ManagedBookmarks": {
"message": "Managed bookmarks (cannot be changed or removed by the user)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Name of the bookmarks folder"
},
"policy_description_ManagedBookmarks_name": {
"message": "Name"
},
"policy_description_NetworkPrediction": {
"message": "Включить или отключить предвыборку DNS (прогнозирование)"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,15 @@
"policy_description_LocalFileLinks": {
"message": "允许指定网站链接到本地文件"
},
"policy_description_ManagedBookmarks": {
"message": "Managed bookmarks (cannot be changed or removed by the user)"
},
"policy_description_ManagedBookmarks_toplevel_name": {
"message": "Name of the bookmarks folder"
},
"policy_description_ManagedBookmarks_name": {
"message": "Name"
},
"policy_description_NetworkPrediction": {
"message": "启用或禁用网络预测 (DNS 预读取)"
},
Expand Down
28 changes: 28 additions & 0 deletions src/js/policies/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,34 @@ const policies = {
]
},

ManagedBookmarks : {
first_available : { mainstream : '83.0', esr : '78.5' },
ui_category : 'customization',
type : 'nested-object',
extra : {
name : 'toplevel_name',
label : browser.i18n.getMessage('policy_description_ManagedBookmarks_toplevel_name'),
type : 'string',
mandatory : true
},
children : {
properties : [
{
name : 'name',
label : browser.i18n.getMessage('policy_description_ManagedBookmarks_name'),
type : 'string',
mandatory : true
},
{
name : 'url',
label : browser.i18n.getMessage('common_url'),
type : 'url',
mandatory : true
}
]
}
},

Preference_extensions_getAddons_showPane : {
first_available : { mainstream : '68.0', esr : '68.0' },
ui_category : 'customization',
Expand Down

0 comments on commit 39a2910

Please sign in to comment.