mirror of https://github.com/keeweb/keeweb.git
plugin load times display
This commit is contained in:
parent
1ee89da0b5
commit
b78457f356
|
@ -455,6 +455,8 @@
|
|||
"setPlJs": "code",
|
||||
"setPlCss": "styles",
|
||||
"setPlLoc": "language",
|
||||
"setPlCreatedBy": "created by {}",
|
||||
"setPlLoadTime": "took {} to load",
|
||||
|
||||
"setAboutTitle": "About",
|
||||
"setAboutBuilt": "This app is built with these awesome tools",
|
||||
|
|
|
@ -48,7 +48,7 @@ const Plugin = Backbone.Model.extend({
|
|||
throw 'Plugin validation error: ' + error;
|
||||
}
|
||||
return this.installWithManifest()
|
||||
.then(this.set('installTime', this.logger.ts() - ts));
|
||||
.then(() => this.set('installTime', this.logger.ts() - ts));
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@ const SettingsPluginsView = Backbone.View.extend({
|
|||
plugins: PluginManager.get('plugins').map(plugin => ({
|
||||
id: plugin.id,
|
||||
manifest: plugin.get('manifest'),
|
||||
status: plugin.get('status')
|
||||
status: plugin.get('status'),
|
||||
installTime: Math.round(plugin.get('installTime'))
|
||||
})),
|
||||
lastInstallUrl: PluginManager.get('installing') || (lastInstall.error ? lastInstall.url : ''),
|
||||
lastInstallError: lastInstall.error
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
</ul>
|
||||
</div>
|
||||
<div class="settings__plugins-plugin-desc">
|
||||
<a href="{{plugin.manifest.url}}" target="_blank">{{plugin.manifest.url}}</a>, v{{plugin.manifest.version}}, created by
|
||||
<a href="{{plugin.manifest.author.url}}" target="_blank">{{plugin.manifest.author.name}}</a> ({{plugin.manifest.author.email}})
|
||||
<a href="{{plugin.manifest.url}}" target="_blank">{{plugin.manifest.url}}</a>, v{{plugin.manifest.version}},
|
||||
{{#res 'setPlCreatedBy'}}<a href="{{plugin.manifest.author.url}}" target="_blank">{{plugin.manifest.author.name}}</a> ({{plugin.manifest.author.email}}){{/res}},
|
||||
{{#res 'setPlLoadTime'}}{{plugin.installTime}}ms{{/res}}
|
||||
</div>
|
||||
<div class="settings__plugins-plugin-buttons">
|
||||
<button class="settings_plugins-uninstall-btn btn-silent" data-plugin="{{plugin.id}}">{{res 'setPlUninstallBtn'}}</button>
|
||||
|
|
Loading…
Reference in New Issue