1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 21:20:07 +02:00

make lock/unlock work

This commit is contained in:
s2
2018-05-18 16:52:09 +02:00
parent 80699aa7c5
commit 0a2e639e1c
194 changed files with 34229 additions and 12 deletions

50
app/node_modules/pnotify/src/PNotifyNonBlock.html generated vendored Normal file
View File

@@ -0,0 +1,50 @@
<script>
import PNotify from './PNotify.html';
export default {
setup (Component) {
Component.key = 'NonBlock';
Component.defaults = {
// Use NonBlock.js to create a non-blocking notice. It lets the user click elements underneath it.
nonblock: false
};
Component.init = (notice) => {
return new Component({target: document.body,
data: {
'_notice': notice
}});
};
// Register the module with PNotify.
PNotify.modules.NonBlock = Component;
},
data () {
return Object.assign({
'_notice': null, // The PNotify notice.
'_options': {} // The options for the notice.
}, PNotify.modules.NonBlock.defaults);
},
methods: {
initModule (options) {
this.set(options);
this.doNonBlockClass();
},
update () {
this.doNonBlockClass();
},
doNonBlockClass () {
if (this.get().nonblock) {
this.get()._notice.addModuleClass('nonblock');
} else {
this.get()._notice.removeModuleClass('nonblock');
}
}
}
};
</script>