add git hash
This commit is contained in:
+7
-2
@@ -1033,9 +1033,9 @@
|
||||
|
||||
.dplayer-menu {
|
||||
position: absolute;
|
||||
width: 150px;
|
||||
width: 170px;
|
||||
border-radius: 2px;
|
||||
background: rgba(28, 28, 28, 0.9);
|
||||
background: rgba(28, 28, 28, 0.85);
|
||||
padding: 5px 0;
|
||||
overflow: hidden;
|
||||
z-index: 3;
|
||||
@@ -1062,6 +1062,11 @@
|
||||
font-size: 13px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// eslint-disable-next-line
|
||||
console.log(`${'\n'} %c DPlayer ${DPLAYER_VERSION} %c http://dplayer.js.org ${'\n'}${'\n'}`, 'color: #fadfa3; background: #030307; padding:5px 0;', 'background: #fadfa3; padding:5px 0;');
|
||||
/* global DPLAYER_VERSION GIT_HASH */
|
||||
console.log(`${'\n'} %c DPlayer ${DPLAYER_VERSION} ${GIT_HASH} %c http://dplayer.js.org ${'\n'}${'\n'}`, 'color: #fadfa3; background: #030307; padding:5px 0;', 'background: #fadfa3; padding:5px 0;');
|
||||
|
||||
module.exports = require('./DPlayer');
|
||||
+14
-13
@@ -1,3 +1,4 @@
|
||||
/* global DPLAYER_VERSION GIT_HASH */
|
||||
const defaultApiBackend = require('./api.js');
|
||||
|
||||
module.exports = (option) => {
|
||||
@@ -20,16 +21,7 @@ module.exports = (option) => {
|
||||
volume: '0.7',
|
||||
apiBackend: defaultApiBackend,
|
||||
video: {},
|
||||
contextmenu: [
|
||||
{
|
||||
text: 'About author',
|
||||
link: 'http://diygod.me'
|
||||
},
|
||||
{
|
||||
text: 'DPlayer feedback',
|
||||
link: 'https://github.com/DIYgod/DPlayer/issues'
|
||||
}
|
||||
]
|
||||
contextmenu: []
|
||||
};
|
||||
for (const defaultKey in defaultOption) {
|
||||
if (defaultOption.hasOwnProperty(defaultKey) && !option.hasOwnProperty(defaultKey)) {
|
||||
@@ -51,10 +43,19 @@ module.exports = (option) => {
|
||||
option.lang.toLowerCase();
|
||||
}
|
||||
|
||||
option.contextmenu.push({
|
||||
option.contextmenu = option.contextmenu.concat([{
|
||||
text: 'About author',
|
||||
link: 'https://www.anotherhome.net/'
|
||||
}, {
|
||||
text: 'About DPlayer',
|
||||
link: 'https://github.com/DIYgod/DPlayer'
|
||||
});
|
||||
link: 'https://github.com/MoePlayer/DPlayer'
|
||||
}, {
|
||||
text: 'DPlayer feedback',
|
||||
link: 'https://github.com/DIYgod/DPlayer/issues'
|
||||
}, {
|
||||
text: `DPlayer ${DPLAYER_VERSION} ${GIT_HASH}`,
|
||||
link: 'https://github.com/MoePlayer/DPlayer/commits/master'
|
||||
}]);
|
||||
|
||||
return option;
|
||||
};
|
||||
Reference in New Issue
Block a user