Skip to content

Commit 6431f86

Browse files
authored
fix: add class "noprint" to elements should not be printed (qiuwenbaike#1660)
* fix: add class "noprint" to elements should not be printed
1 parent c275e75 commit 6431f86

File tree

12 files changed

+47
-42
lines changed

12 files changed

+47
-42
lines changed

dist/EasyArchive/EasyArchive.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/GeoLocationReader/GeoLocationReader.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/MarkRights-Userpage/MarkRights-Userpage.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/PagePatroller/PagePatroller.js

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/QueryContributors/QueryContributors.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/WhoIsActive/WhoIsActive.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/EasyArchive/modules/util/react.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ const elementWrap = (id: string, innerElement: ReactElement) => {
77

88
if (skin === 'citizen') {
99
return (
10-
<section id={id} className={[footerNotice, 'page-info__item', 'citizen-footer__pageinfo-item']}>
10+
<section id={id} className={[footerNotice, 'page-info__item', 'citizen-footer__pageinfo-item', 'noprint']}>
1111
{innerElement}
1212
</section>
1313
);
1414
} else if (['vector', 'vector-2022', 'gongbi'].includes(skin) || document.querySelector('ul#footer-info')) {
1515
return (
16-
<li id={id} className={footerNotice}>
16+
<li id={id} className={[footerNotice, 'noprint']}>
1717
{innerElement}
1818
</li>
1919
);
2020
}
2121
return (
22-
<div id={id} className={footerNotice}>
22+
<div id={id} className={[footerNotice, 'noprint']}>
2323
{innerElement}
2424
</div>
2525
);

src/GeoLocationReader/modules/util/appendIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const elementWrap = (spanClass: 'green' | 'orange', innerElement: ReactElement)
99

1010
if (skin === 'citizen') {
1111
return (
12-
<section className={[...classNames, 'page-info__item', 'citizen-footer__pageinfo-item']}>
12+
<section className={[...classNames, 'page-info__item', 'citizen-footer__pageinfo-item', 'noprint']}>
1313
{innerElement}
1414
</section>
1515
);
1616
} else if (['vector', 'vector-2022', 'gongbi'].includes(skin) || document.querySelector('ul#footer-info')) {
17-
return <li className={classNames}>{innerElement}</li>;
17+
return <li className={[classNames, 'noprint']}>{innerElement}</li>;
1818
}
19-
return <div className={classNames}>{innerElement}</div>;
19+
return <div className={[classNames, 'noprint']}>{innerElement}</div>;
2020
};
2121

2222
const indicator = (icon: 'globe' | 'helpNotice', indicatorText: string) => {

src/MarkRights-Userpage/modules/appendIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const elementWrap = (spanClass: UserRights, innerElement: ReactElement) => {
88

99
if (skin === 'citizen') {
1010
return (
11-
<section className={[...classNames, 'page-info__item', 'citizen-footer__pageinfo-item']}>
11+
<section className={[...classNames, 'page-info__item', 'citizen-footer__pageinfo-item', 'noprint']}>
1212
{innerElement}
1313
</section>
1414
);
1515
} else if (['vector', 'vector-2022', 'gongbi'].includes(skin) || document.querySelector('ul#footer-info')) {
16-
return <li className={classNames}>{innerElement}</li>;
16+
return <li className={[classNames, 'noprint']}>{innerElement}</li>;
1717
}
18-
return <div className={classNames}>{innerElement}</div>;
18+
return <div className={[classNames, 'noprint']}>{innerElement}</div>;
1919
};
2020

2121
const indicator = ({

src/PagePatroller/modules/elementWrap.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const elementWrap = () => {
88
return (
99
<section
1010
id={OPTIONS.elementId}
11-
className={[OPTIONS.elementId, 'page-info__item', 'citizen-footer__pageinfo-item']}
11+
className={[OPTIONS.elementId, 'page-info__item', 'citizen-footer__pageinfo-item', 'noprint']}
1212
/>
1313
);
1414
} else if (['vector', 'vector-2022', 'gongbi'].includes(skin) || document.querySelector('ul#footer-info')) {
15-
return <li id={OPTIONS.elementId} />;
15+
return <li id={OPTIONS.elementId} className={'noprint'} />;
1616
}
17-
return <div id={OPTIONS.elementId} />;
17+
return <div id={OPTIONS.elementId} className={'noprint'} />;
1818
};
1919

2020
const notBeenPatrolledYet = () => (

0 commit comments

Comments
 (0)