Skip to content

Commit

Permalink
chore: Update copyright date (#54)
Browse files Browse the repository at this point in the history
* Update copyright date

* Auto-generate the copyright year

Note: Change made in response to pull request feedback.
  • Loading branch information
personalizedrefrigerator authored Oct 17, 2024
1 parent b79157a commit c6ec817
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Joplin
Copyright (c) 2023-2024 Joplin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions build/data/getGlobalMarketplaceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const getMarketplaceData = async (config: BuildConfig): Promise<MarketplaceData>
allPossibleCategories: await getAllPossibleCategories(plugins),
plugins,
config,
buildInfo: {
copyright: `© Joplin 2023 - ${new Date().getFullYear()}`,
},
};
};

Expand Down
3 changes: 3 additions & 0 deletions lib/testData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ const testData: MarketplaceData = {
distDir: path.join(__dirname, 'site'),
site: '/site',
},
buildInfo: {
copyright: 'test',
},
};

export { testPlugin1, testPlugin2, testPlugin3, testPlugin4 };
Expand Down
5 changes: 5 additions & 0 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,14 @@ export interface Category {
plugins: JoplinPlugin[];
}

interface BuildInfo {
copyright: string;
}

// Global data about plugins, categories, etc.
export interface MarketplaceData {
allPossibleCategories: Category[];
plugins: GlobalPluginData;
config: BuildConfig;
buildInfo: BuildInfo;
}
2 changes: 1 addition & 1 deletion src/components/page-footer.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>

<div class="links legal-and-about-links">
<div class="copyright">© Joplin 2023</div>
<div class="copyright">{{buildInfo.copyright}}</div>
<a class="link terms-and-conditions" href="{{config.site}}/terms-and-conditions.html">Terms and conditions</a>
<a class="link privacy" href="{{config.site}}/privacy-policy.html">Privacy policy</a>
</div>
Expand Down

0 comments on commit c6ec817

Please sign in to comment.