Skip to content

Commit dc749cf

Browse files
authored
Merge pull request #6133 from NomicFoundation/solidity-survey-2024
chore: restore the solidity survey message (2024)
2 parents e4e2b86 + b1dfb90 commit dc749cf

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

.changeset/sixty-fireants-greet.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hardhat": patch
3+
---
4+
5+
Restored the message linking to the 2024 solidity survey

docs/redirects.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ const customRedirects = [
105105
"https://cryptpad.fr/form/#/2/form/view/pV-DdryeJoYUWvW+gXsFaMNynEY7t5mUsgeD1urgwSE",
106106
permanent: false,
107107
},
108+
{
109+
source: "/solidity-survey-2024",
110+
destination:
111+
"https://cryptpad.fr/form/#/2/form/view/9xjPVmdv8z0Cyyh1ejseMQ0igmx-TedH5CPST3PhRUk",
112+
permanent: false,
113+
},
108114
{
109115
source: "/solc-viair",
110116
destination:

docs/src/config.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@ export const SOCIALS_LINKS = {
2222
[SocialsEnum.DISCORD]: "/discord",
2323
};
2424

25-
export const BANNER_LINK = "https://nomic.foundation/hiring";
26-
2725
export const PRIVACY_POLICY_PATH = "/privacy-policy.html";
2826

27+
// export const bannerContent = {
28+
// text: "Join the Hardhat team! Nomic Foundation is hiring",
29+
// shortText: "Join the Hardhat team! We are hiring",
30+
// href: "https://nomic.foundation/hiring",
31+
// };
32+
2933
export const bannerContent = {
30-
text: "Join the Hardhat team! Nomic Foundation is hiring",
31-
shortText: "Join the Hardhat team! We are hiring",
32-
href: BANNER_LINK,
34+
text: "Please take a few minutes to complete the 2024 Solidity Survey",
35+
shortText: "Complete the 2024 Solidity Survey here",
36+
href: "https://hardhat.org/solidity-survey-2024",
3337
};
3438

3539
export const DOCS_PATH = path.join(process.cwd(), "src/content/");

packages/hardhat-core/src/internal/cli/project-creation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@ function showStarOnGitHubMessage() {
372372
}
373373

374374
export function showSoliditySurveyMessage() {
375-
if (new Date() > new Date("2024-01-07 23:39")) {
375+
if (new Date() > new Date("2025-01-31 23:39")) {
376376
// the survey has finished
377377
return;
378378
}
379379

380380
console.log();
381381
console.log(
382382
picocolors.cyan(
383-
"Please take a moment to complete the 2023 Solidity Survey: https://hardhat.org/solidity-survey-2023"
383+
"Please take a moment to complete the 2024 Solidity Survey: https://hardhat.org/solidity-survey-2024"
384384
)
385385
);
386386
}

0 commit comments

Comments
 (0)