Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] dev from KelvinTegelaar:dev #124

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions src/data/standards.json
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,82 @@
"value": "DefaultFullAccessWithNotificationPolicy"
}
]
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.IncreaseScoreWithImageLinks",
"label": "Increase score if message contains image links to remote websites",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.IncreaseScoreWithBizOrInfoUrls",
"label": "Increase score if message contains links to .biz or .info domains",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.MarkAsSpamFramesInHtml",
"label": "Mark as spam if message contains HTML or iframe tags",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.MarkAsSpamObjectTagsInHtml",
"label": "Mark as spam if message contains HTML object tags",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.MarkAsSpamEmbedTagsInHtml",
"label": "Mark as spam if message contains HTML embed tags",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.MarkAsSpamFormTagsInHtml",
"label": "Mark as spam if message contains HTML form tags",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.MarkAsSpamWebBugsInHtml",
"label": "Mark as spam if message contains web bugs (also known as web beacons)",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.MarkAsSpamSensitiveWordList",
"label": "Mark as spam if message contains words from the sensitive words list",
"defaultValue": false
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.EnableLanguageBlockList",
"label": "Enable language block list",
"defaultValue": false
},
{
"type": "autoComplete",
"multiple": true,
"creatable": true,
"required": false,
"name": "standards.SpamFilterPolicy.LanguageBlockList",
"label": "Languages to block (uppercase ISO 639-1 two-letter)"
},
{
"type": "switch",
"name": "standards.SpamFilterPolicy.EnableRegionBlockList",
"label": "Enable region block list",
"defaultValue": false
},
{
"type": "autoComplete",
"multiple": true,
"creatable": true,
"required": false,
"name": "standards.SpamFilterPolicy.RegionBlockList",
"label": "Regions to block (uppercase ISO 3166-1 two-letter)"
}
],
"label": "Default Spam Filter Policy",
Expand Down
11 changes: 10 additions & 1 deletion src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { createEmotionCache } from "../utils/create-emotion-cache";
import "../libs/nprogress";
import { PrivateRoute } from "../components/PrivateRoute";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { useMediaPredicate } from "react-media-hook";
import Error500 from "./500";
import { ErrorBoundary } from "react-error-boundary";
Expand All @@ -25,10 +24,12 @@ import {
Help as HelpIcon,
BugReport as BugReportIcon,
Feedback as FeedbackIcon,
AutoStories,
} from "@mui/icons-material";
import { SvgIcon } from "@mui/material";
import discordIcon from "../../public/discord-mark-blue.svg";
import React from "react";
import { usePathname } from "next/navigation";
TimeAgo.addDefaultLocale(en);

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

const speedDialActions = [
{
Expand All @@ -69,6 +71,13 @@ const App = (props) => {
href: "https://discord.gg/cyberdrain",
onClick: () => window.open("https://discord.gg/cyberdrain", "_blank")
},
{
id: "documentation",
icon: <AutoStories />,
name: "Check the Documentation",
href: `https://docs.cipp.app/user-documentation/${pathname}`,
onClick: () => window.open(`https://docs.cipp.app/user-documentation/${pathname}`, "_blank")
}
];

return (
Expand Down