Skip to content

Commit

Permalink
feat: Automate the year in copyright (#2572)
Browse files Browse the repository at this point in the history
# Description

This PR includes an automation to calculate the year in copyright

See #2569

**Type of change**

- [x] Improvement (change adding some improvement to an existing
functionality)

**How Has This Been Tested**

**Checklist**

- [x] I have merged the original branch into my forked branch
- [ ] I added relevant documentation
- [x] follows the style guidelines of this project
- [x] I did a self-review of my code
- [ ] I made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
  • Loading branch information
leiyre authored Mar 17, 2023
1 parent 1317fb8 commit a1c3948
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/components/commons/header/user/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<a class="user__link" href="#" @click.prevent="logout">
<svgicon width="16" heigth="16" name="log-out"></svgicon> Log out
</a>
<span class="copyright">© 2022 Argilla ({{ appVersion }})</span>
<span class="copyright"
>© {{ currentYear }} Argilla ({{ appVersion }})</span
>
</div>
</div>
</template>
Expand All @@ -36,6 +38,12 @@ export default {
user() {
return this.$auth.user;
},
currentYear() {
return this.currentDate.getFullYear();
},
currentDate() {
return new Date();
},
},
async fetch() {
this.appVersion = await this.getAppVersion();
Expand Down

0 comments on commit a1c3948

Please sign in to comment.