0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00

Added auditLog labs flag

refs https://github.com/TryGhost/Toolbox/issues/356

- allows work on the Audit Log project whilst in alpha
This commit is contained in:
Daniel Lockyer 2022-08-15 14:55:43 +02:00
parent d493fd7bf1
commit 70aa1dd3c8
No known key found for this signature in database
GPG key ID: D21186F0B47295AD
4 changed files with 17 additions and 2 deletions

View file

@ -56,6 +56,7 @@ export default class FeatureService extends Service {
nightShift;
// labs flags
@feature('auditLog') auditLog;
@feature('urlCache') urlCache;
@feature('beforeAfterCard') beforeAfterCard;
@feature('newsletterPaywall') newsletterPaywall;

View file

@ -187,6 +187,19 @@
<div class="gh-main-section">
<h4 class="gh-main-section-header small bn">Alpha Features</h4>
<div class="gh-expandable">
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Audit Log</h4>
<p class="gh-expandable-description">
Allow visibility into Staff actions
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="auditLog" />
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>

View file

@ -25,6 +25,7 @@ const BETA_FEATURES = [
];
const ALPHA_FEATURES = [
'auditLog',
'urlCache',
'beforeAfterCard',
'freeTrial'

View file

@ -230,7 +230,7 @@ Object {
},
Object {
"key": "labs",
"value": "{\\"activitypub\\":true,\\"urlCache\\":true,\\"beforeAfterCard\\":true,\\"freeTrial\\":true,\\"newsletterPaywall\\":true,\\"members\\":true}",
"value": "{\\"activitypub\\":true,\\"auditLog\\":true,\\"urlCache\\":true,\\"beforeAfterCard\\":true,\\"freeTrial\\":true,\\"newsletterPaywall\\":true,\\"members\\":true}",
},
Object {
"key": "slack_url",
@ -280,7 +280,7 @@ exports[`Settings API Browse Can request all settings 2: [headers] 1`] = `
Object {
"access-control-allow-origin": "http://127.0.0.1:2369",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-length": "3407",
"content-length": "3425",
"content-type": "application/json; charset=utf-8",
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
"vary": "Origin, Accept-Encoding",