mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-05 06:23:14 +00:00
Setup the layout for ServerManagerView.
This commit is contained in:
committed by
akashnimare
parent
35bf2b0012
commit
8c494f329b
@@ -190,7 +190,6 @@ function createMainWindow() {
|
|||||||
minHeight: 400,
|
minHeight: 400,
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hidden-inset',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, '../renderer/js/preload.js'),
|
|
||||||
plugins: true,
|
plugins: true,
|
||||||
allowDisplayingInsecureContent: true,
|
allowDisplayingInsecureContent: true,
|
||||||
nodeIntegration: true
|
nodeIntegration: true
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ html, body {
|
|||||||
|
|
||||||
.server-button .server-name{
|
.server-button .server-name{
|
||||||
background: #a4d3c4;
|
background: #a4d3c4;
|
||||||
background-image: url(https://chat.zulip.org/static/images/logo/zulip-icon-128x128.271d0f6a0ca2.png);
|
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: 44px;
|
width: 44px;
|
||||||
|
|||||||
@@ -1 +1,39 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const path = require("path");
|
||||||
|
const DomainUtil = require(path.resolve(('app/renderer/js/utils/domain-util.js')));
|
||||||
|
class ServerManagerView {
|
||||||
|
constructor() {
|
||||||
|
this.serverButtonTemplate = `
|
||||||
|
<div class="server-button active">
|
||||||
|
<div class="server-name" style="background-image: url();"></div>
|
||||||
|
</div>`;
|
||||||
|
this.$serversContainer = document.getElementById('servers-container');
|
||||||
|
|
||||||
|
const $actionsContainer = document.getElementById('actions-container');
|
||||||
|
this.$addServerButton = $actionsContainer.querySelector('#add-action');
|
||||||
|
this.$settingsButton = $actionsContainer.querySelector('#settings-action');
|
||||||
|
}
|
||||||
|
|
||||||
|
init() {
|
||||||
|
this.domainUtil = new DomainUtil();
|
||||||
|
console.log(this.domainUtil.getDomains());
|
||||||
|
}
|
||||||
|
|
||||||
|
initServers() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
initActions() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
addServer() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
window.onload = () => {
|
||||||
|
const serverManagerView = new ServerManagerView();
|
||||||
|
serverManagerView.init();
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<div class="server-name"></div>
|
<div class="server-name"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="server-button active">
|
<div class="server-button active">
|
||||||
<div class="server-name"></div>
|
<div class="server-name" style="background-image: url(https://chat.zulip.org/static/images/logo/zulip-icon-128x128.271d0f6a0ca2.png);"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="server-button">
|
<div class="server-button">
|
||||||
<div class="server-name"></div>
|
<div class="server-name"></div>
|
||||||
@@ -30,9 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<webview id="webview" src="https://chat.zulip.org" disablewebsecurity webpreferences="allowRunningInsecureContent, javascript=yes">>
|
<webview id="webview" src="https://chat.zulip.org" disablewebsecurity webpreferences="allowRunningInsecureContent, javascript=yes">/>
|
||||||
|
|
||||||
</webview>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script src="js/main.js"></script>
|
<script src="js/main.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user