Skip to content

Commit

Permalink
img no-referrer
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Jan 3, 2025
1 parent f74a805 commit 2b938ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions frontend/providers/cronjob/src/utils/json2Yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { cronJobKey } from '@/constants/keys';
import useEnvStore from '@/store/env';

export const json2CronJob = (data: CronJobEditType) => {
console.log(data, 123);

const timeZone = getUserTimeZone();
const kcHeader = encodeURIComponent(getUserKubeConfig());
const { applaunchpadUrl, successfulJobsHistoryLimit, failedJobsHistoryLimit } =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ReadMe = ({ readUrl, readmeContent }: { readUrl: string; readmeContent: st
if (node.tagName === 'img' && !node.properties.src.startsWith('http')) {
const imgSrc = node.properties.src.replace(/^\.\/|^\//, '');
const baseUrl = readUrl?.substring(0, readUrl?.lastIndexOf('/') + 1);
console.log(baseUrl, imgSrc);
node.properties.referrerPolicy = 'no-referrer';
node.properties.src = `${baseUrl}${imgSrc}`;
}
};
Expand Down

0 comments on commit 2b938ef

Please sign in to comment.