workflow: include commit link in template explorer

This commit is contained in:
Evan You
2019-10-04 22:40:54 -04:00
parent ea4a352ee6
commit a0f442f1d4
6 changed files with 38 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
declare var __DEV__: boolean
declare var __JSDOM__: boolean
declare var __BROWSER__: boolean
declare var __COMMIT__: string
// Feature flags
declare var __FEATURE_OPTIONS__: boolean

View File

@@ -11,6 +11,14 @@ const App = {
setup() {
return () => [
h('h1', `Vue 3 Template Explorer`),
h(
'a',
{
href: `https://github.com/vuejs/vue-next/tree/${__COMMIT__}`,
target: `_blank`
},
`@${__COMMIT__}`
),
h('div', { id: 'options' }, [
// mode selection
h('span', { class: 'options-group' }, [

View File

@@ -19,6 +19,7 @@ body {
h1 {
font-size: 18px;
display: inline-block;
margin-right: 15px;
}
#options {
@@ -30,10 +31,15 @@ h1 {
margin-right: 30px;
}
#header span, #header label, #header input {
#header span, #header label, #header input, #header a {
display: inline-block;
}
#header a {
font-weight: 600;
color: rgb(101, 163, 221);
}
#header .label {
font-weight: bold;
}