Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
monnaie-libre-fr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Léo El Amri
monnaie-libre-fr
Commits
50f7fcad
Commit
50f7fcad
authored
3 years ago
by
Emmanuel Salomon
Browse files
Options
Downloads
Patches
Plain Diff
feat: get git commit ID at buildtime + fix rel attribute in footer
parent
0f52e501
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/layout/LayoutFooter.vue
+8
-5
8 additions, 5 deletions
components/layout/LayoutFooter.vue
nuxt.config.js
+2
-0
2 additions, 0 deletions
nuxt.config.js
with
10 additions
and
5 deletions
components/layout/LayoutFooter.vue
+
8
−
5
View file @
50f7fcad
...
...
@@ -81,6 +81,7 @@
:href=
"`https://twitter.com/${$config.twitter_user}`"
target=
"_blank"
class=
"flex items-center mb-2 hover:underline"
rel=
"noopener noreferrer"
>
<fa
:icon=
"['fab', 'twitter']"
class=
"text-2xl mr-2.5"
/>
<span>
@{{ $config.twitter_user }}
</span>
...
...
@@ -91,6 +92,7 @@
:href=
"$config.facebook_group"
target=
"_blank"
class=
"flex items-center mb-2 hover:underline"
rel=
"noopener noreferrer"
>
<fa
:icon=
"['fab', 'facebook']"
class=
"text-2xl mr-2.5"
/>
<span>
Groupe Facebook
</span>
...
...
@@ -119,23 +121,24 @@
href=
"https://nuxtjs.org"
target=
"_blank"
class=
"hover:underline"
rel=
"noopener noreferrer"
>
nuxtjs
</a>
</div>
<div
class=
"lg:mr-4"
>
au commit
<a
href=
"https://git.duniter.org/websites/monnaie-libre-fr"
:
href=
"
`
https://git.duniter.org/websites/monnaie-libre-fr
/-/commit/${$config.git_commit}`
"
target=
"_blank"
class=
"hover:underline"
rel=
"noopener noreferrer"
>
Code source
{{ $config.git_commit }}
</a>
</div>
</div>
<div
class=
""
>
<a
rel=
"license"
rel=
"license
noopener noreferrer
"
href=
"http://creativecommons.org/licenses/by-sa/4.0/"
target=
"_blank"
class=
"md:flex items-center"
...
...
This diff is collapsed.
Click to expand it.
nuxt.config.js
+
2
−
0
View file @
50f7fcad
import
{
execSync
}
from
'
child_process
'
import
i18n
from
'
./plugins/i18n.js
'
import
config
from
'
./static/settings/globals.json
'
import
hooks
from
'
./libs/hooks.js
'
...
...
@@ -12,6 +13,7 @@ const publicRuntimeConfig = {
twitter_user
:
process
.
env
.
twitter_user
||
'
monnaie_libre
'
,
social_networks_hashtags
:
process
.
env
.
social_networks_hashtags
||
'
MonnaieLibre,Ğ1
'
,
git_commit
:
execSync
(
'
git log --pretty=format:"%h" -n 1
'
).
toString
().
trim
(),
...
config
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment