- Fix "false" showing in username field. - Delay showing the window until the page is rendered to prevent flashing - Fix various issues highlighted by Webstorm's inspections.pull/14/head
parent
2697d61ab1
commit
50c0978148
@ -1,15 +0,0 @@
|
||||
|
||||
.page__footer {
|
||||
bottom: 20px;
|
||||
color: #777;
|
||||
display: flex;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
transform: translate(-50%, 0%);
|
||||
}
|
||||
|
||||
.footer__version {
|
||||
font-size: 13px;
|
||||
margin-right: 30px;
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
.chimeverse-branding {
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chimeverse-branding__img {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.chimeverse-branding__header {
|
||||
font-size: 26px;
|
||||
font-weight: normal;
|
||||
color: #999;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.chimeverse-branding__version {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.update__latest {
|
||||
background: #bbb;
|
||||
color: #fff;
|
||||
border-radius: 3px;
|
||||
padding: 3px 5px;
|
||||
}
|
||||
|
||||
.update__available {
|
||||
background: rgb(5,93,228);
|
||||
background: linear-gradient(0deg, rgba(5,93,228,1) 0%, rgba(76,145,255,1) 100%);
|
||||
padding: 3px 5px;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.update__error {
|
||||
color: #da0000;
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
.settings-page {
|
||||
padding: 0px 20px 0px 20px;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.form-item__hint {
|
||||
color: #777;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.form-item__save-button.active {
|
||||
color: blue;
|
||||
}
|
@ -1,44 +1,45 @@
|
||||
/* global api */
|
||||
|
||||
await import('./app/converse-plugins/desktop-credentials.js')
|
||||
await import('./app/converse-plugins/desktop-trayicon.js')
|
||||
const getCredentials = (await import('./app/credentials.js')).getCredentials;
|
||||
|
||||
|
||||
async function initialize () {
|
||||
let websocket_url, bosh_service_url;
|
||||
const { connectionManager, login, password } = await getCredentials()
|
||||
|
||||
if (connectionManager?.startsWith('ws')) {
|
||||
websocket_url = connectionManager
|
||||
} else if (connectionManager?.startsWith('http')) {
|
||||
bosh_service_url = connectionManager
|
||||
}
|
||||
|
||||
converse.plugins.add('converse-debug', {
|
||||
initialize () {
|
||||
const { _converse } = this;
|
||||
window._converse = _converse;
|
||||
}
|
||||
});
|
||||
let websocket_url, bosh_service_url;
|
||||
const {connectionManager, login, password} = await getCredentials()
|
||||
|
||||
converse.initialize({
|
||||
assets_path: './node_modules/converse.js/dist/',
|
||||
auto_login: login && password,
|
||||
bosh_service_url,
|
||||
i18n: navigator.language,
|
||||
jid: login,
|
||||
loglevel: 'debug',
|
||||
muc_respect_autojoin: true,
|
||||
muc_show_logs_before_join: true,
|
||||
password: password,
|
||||
play_sounds: false,
|
||||
priority: 50,
|
||||
prune_messages_above: 250,
|
||||
theme: 'concord',
|
||||
view_mode: 'fullscreen',
|
||||
websocket_url,
|
||||
whitelisted_plugins: ['converse-debug', 'converse-desktop-credentials', 'converse-desktop-trayicon'],
|
||||
show_connection_url_input: true
|
||||
});
|
||||
if (connectionManager?.startsWith('ws')) {
|
||||
websocket_url = connectionManager
|
||||
} else if (connectionManager?.startsWith('http')) {
|
||||
bosh_service_url = connectionManager
|
||||
}
|
||||
|
||||
initialize();
|
||||
converse.plugins.add('converse-debug', {
|
||||
initialize() {
|
||||
const {_converse} = this;
|
||||
window._converse = _converse;
|
||||
}
|
||||
});
|
||||
|
||||
converse.initialize({
|
||||
assets_path: './node_modules/converse.js/dist/',
|
||||
auto_login: login && password,
|
||||
bosh_service_url,
|
||||
i18n: navigator.language,
|
||||
jid: login,
|
||||
loglevel: 'debug',
|
||||
muc_respect_autojoin: true,
|
||||
muc_show_logs_before_join: true,
|
||||
password: password,
|
||||
play_sounds: false,
|
||||
priority: 50,
|
||||
prune_messages_above: 250,
|
||||
theme: 'concord',
|
||||
view_mode: 'fullscreen',
|
||||
websocket_url,
|
||||
whitelisted_plugins: ['converse-debug', 'converse-desktop-credentials', 'converse-desktop-trayicon'],
|
||||
show_connection_url_input: true
|
||||
}).catch((reason) => {
|
||||
console.log(reason);
|
||||
api.app.quit();
|
||||
});
|
||||
|
Loading…
Reference in new issue