Skip to content

Commit ea87c8b

Browse files
authored
Merge pull request #124 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 9319c9b + 2998a81 commit ea87c8b

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

src/data/standards.json

+76
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,82 @@
22682268
"value": "DefaultFullAccessWithNotificationPolicy"
22692269
}
22702270
]
2271+
},
2272+
{
2273+
"type": "switch",
2274+
"name": "standards.SpamFilterPolicy.IncreaseScoreWithImageLinks",
2275+
"label": "Increase score if message contains image links to remote websites",
2276+
"defaultValue": false
2277+
},
2278+
{
2279+
"type": "switch",
2280+
"name": "standards.SpamFilterPolicy.IncreaseScoreWithBizOrInfoUrls",
2281+
"label": "Increase score if message contains links to .biz or .info domains",
2282+
"defaultValue": false
2283+
},
2284+
{
2285+
"type": "switch",
2286+
"name": "standards.SpamFilterPolicy.MarkAsSpamFramesInHtml",
2287+
"label": "Mark as spam if message contains HTML or iframe tags",
2288+
"defaultValue": false
2289+
},
2290+
{
2291+
"type": "switch",
2292+
"name": "standards.SpamFilterPolicy.MarkAsSpamObjectTagsInHtml",
2293+
"label": "Mark as spam if message contains HTML object tags",
2294+
"defaultValue": false
2295+
},
2296+
{
2297+
"type": "switch",
2298+
"name": "standards.SpamFilterPolicy.MarkAsSpamEmbedTagsInHtml",
2299+
"label": "Mark as spam if message contains HTML embed tags",
2300+
"defaultValue": false
2301+
},
2302+
{
2303+
"type": "switch",
2304+
"name": "standards.SpamFilterPolicy.MarkAsSpamFormTagsInHtml",
2305+
"label": "Mark as spam if message contains HTML form tags",
2306+
"defaultValue": false
2307+
},
2308+
{
2309+
"type": "switch",
2310+
"name": "standards.SpamFilterPolicy.MarkAsSpamWebBugsInHtml",
2311+
"label": "Mark as spam if message contains web bugs (also known as web beacons)",
2312+
"defaultValue": false
2313+
},
2314+
{
2315+
"type": "switch",
2316+
"name": "standards.SpamFilterPolicy.MarkAsSpamSensitiveWordList",
2317+
"label": "Mark as spam if message contains words from the sensitive words list",
2318+
"defaultValue": false
2319+
},
2320+
{
2321+
"type": "switch",
2322+
"name": "standards.SpamFilterPolicy.EnableLanguageBlockList",
2323+
"label": "Enable language block list",
2324+
"defaultValue": false
2325+
},
2326+
{
2327+
"type": "autoComplete",
2328+
"multiple": true,
2329+
"creatable": true,
2330+
"required": false,
2331+
"name": "standards.SpamFilterPolicy.LanguageBlockList",
2332+
"label": "Languages to block (uppercase ISO 639-1 two-letter)"
2333+
},
2334+
{
2335+
"type": "switch",
2336+
"name": "standards.SpamFilterPolicy.EnableRegionBlockList",
2337+
"label": "Enable region block list",
2338+
"defaultValue": false
2339+
},
2340+
{
2341+
"type": "autoComplete",
2342+
"multiple": true,
2343+
"creatable": true,
2344+
"required": false,
2345+
"name": "standards.SpamFilterPolicy.RegionBlockList",
2346+
"label": "Regions to block (uppercase ISO 3166-1 two-letter)"
22712347
}
22722348
],
22732349
"label": "Default Spam Filter Policy",

src/pages/_app.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { createEmotionCache } from "../utils/create-emotion-cache";
1212
import "../libs/nprogress";
1313
import { PrivateRoute } from "../components/PrivateRoute";
1414
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
15-
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
1615
import { useMediaPredicate } from "react-media-hook";
1716
import Error500 from "./500";
1817
import { ErrorBoundary } from "react-error-boundary";
@@ -25,10 +24,12 @@ import {
2524
Help as HelpIcon,
2625
BugReport as BugReportIcon,
2726
Feedback as FeedbackIcon,
27+
AutoStories,
2828
} from "@mui/icons-material";
2929
import { SvgIcon } from "@mui/material";
3030
import discordIcon from "../../public/discord-mark-blue.svg";
3131
import React from "react";
32+
import { usePathname } from "next/navigation";
3233
TimeAgo.addDefaultLocale(en);
3334

3435
const ReactQueryDevtoolsProduction = React.lazy(() =>
@@ -43,6 +44,7 @@ const App = (props) => {
4344
const { Component, emotionCache = clientSideEmotionCache, pageProps } = props;
4445
const getLayout = Component.getLayout ?? ((page) => page);
4546
const preferredTheme = useMediaPredicate("(prefers-color-scheme: dark)") ? "dark" : "light";
47+
const pathname = usePathname();
4648

4749
const speedDialActions = [
4850
{
@@ -69,6 +71,13 @@ const App = (props) => {
6971
href: "https://discord.gg/cyberdrain",
7072
onClick: () => window.open("https://discord.gg/cyberdrain", "_blank")
7173
},
74+
{
75+
id: "documentation",
76+
icon: <AutoStories />,
77+
name: "Check the Documentation",
78+
href: `https://docs.cipp.app/user-documentation/${pathname}`,
79+
onClick: () => window.open(`https://docs.cipp.app/user-documentation/${pathname}`, "_blank")
80+
}
7281
];
7382

7483
return (

0 commit comments

Comments
 (0)