mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
cleaning up
This commit is contained in:
parent
57fbc45315
commit
5d19f1844b
12 changed files with 26 additions and 28 deletions
|
@ -26,7 +26,7 @@
|
||||||
"@types/node": "^17.0.42",
|
"@types/node": "^17.0.42",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"electron": "^19.0.4",
|
"electron": "^19.0.7",
|
||||||
"electron-builder": "^23.0.3",
|
"electron-builder": "^23.0.3",
|
||||||
"husky": "^8.0.1",
|
"husky": "^8.0.1",
|
||||||
"prettier": "^2.7.0",
|
"prettier": "^2.7.0",
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
"linux": {
|
"linux": {
|
||||||
"icon": "build/icon.icns",
|
"icon": "build/icon.icns",
|
||||||
"category": "Network",
|
"category": "Network",
|
||||||
"maintainer": "smartfrigde@gmail.com",
|
"maintainer": "smartfridge@vivaldi.net",
|
||||||
"target": [
|
"target": [
|
||||||
"deb",
|
"deb",
|
||||||
"tar.gz",
|
"tar.gz",
|
||||||
|
|
|
@ -90,18 +90,18 @@ button {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
transition: .17s ease;
|
transition: 0.17s ease;
|
||||||
}
|
}
|
||||||
button:hover {
|
button:hover {
|
||||||
background: var(--brand-experiment-560);
|
background: var(--brand-experiment-560);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: .17s ease;
|
transition: 0.17s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active {
|
button:active {
|
||||||
background: var(--brand-experiment-600);
|
background: var(--brand-experiment-600);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: .17s ease;
|
transition: 0.17s ease;
|
||||||
}
|
}
|
||||||
#save {
|
#save {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|
|
@ -135,18 +135,18 @@ button {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 8px 20px;
|
padding: 8px 20px;
|
||||||
transition: .17s ease;
|
transition: 0.17s ease;
|
||||||
}
|
}
|
||||||
button:hover {
|
button:hover {
|
||||||
background: var(--brand-experiment-560);
|
background: var(--brand-experiment-560);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: .17s ease;
|
transition: 0.17s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active {
|
button:active {
|
||||||
background: var(--brand-experiment-600);
|
background: var(--brand-experiment-600);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: .17s ease;
|
transition: 0.17s ease;
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,6 @@
|
||||||
no-repeat 50% 50%;
|
no-repeat 50% 50%;
|
||||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='25' height='25'%3E%3Cstyle%3E.a%7Bfill:%23808080%7D%3C/style%3E%3Ccircle class='a' cx='15' cy='15' r='15'/%3E%3C/svg%3E")
|
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='25' height='25'%3E%3Cstyle%3E.a%7Bfill:%23808080%7D%3C/style%3E%3Ccircle class='a' cx='15' cy='15' r='15'/%3E%3C/svg%3E")
|
||||||
no-repeat 50% 50%;
|
no-repeat 50% 50%;
|
||||||
|
|
||||||
}
|
}
|
||||||
[armcord-platform="linux"] .titlebar #window-controls-container #quit:active {
|
[armcord-platform="linux"] .titlebar #window-controls-container #quit:active {
|
||||||
background-color: var(--brand-experiment-600);
|
background-color: var(--brand-experiment-600);
|
||||||
|
@ -299,7 +298,6 @@
|
||||||
no-repeat 50% 50%;
|
no-repeat 50% 50%;
|
||||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='13' height='13'%3E%3Cstyle%3E.a%7Bfill:%23808080%7D%3C/style%3E%3Ccircle class='a' cx='15' cy='15' r='15'/%3E%3C/svg%3E")
|
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='13' height='13'%3E%3Cstyle%3E.a%7Bfill:%23808080%7D%3C/style%3E%3Ccircle class='a' cx='15' cy='15' r='15'/%3E%3C/svg%3E")
|
||||||
no-repeat 50% 50%;
|
no-repeat 50% 50%;
|
||||||
|
|
||||||
}
|
}
|
||||||
[armcord-platform="darwin"] .titlebar #window-controls-container:hover #maximize:active {
|
[armcord-platform="darwin"] .titlebar #window-controls-container:hover #maximize:active {
|
||||||
background-color: #13c11e;
|
background-color: #13c11e;
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div id="warning" class="hidden">
|
<div id="warning" class="hidden">
|
||||||
<p id="setup_offline">
|
<p id="setup_offline">You appear to be offline. Please connect to the internet and restart ArmCord.</p>
|
||||||
You appear to be offline. Please connect to the internet and restart ArmCord.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="setup">
|
<div id="setup">
|
||||||
<div id="logo" class="hidden"></div>
|
<div id="logo" class="hidden"></div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
window.onbeforeunload = function () {
|
window.onbeforeunload = function () {
|
||||||
const style = document.createElement('style');
|
const style = document.createElement("style");
|
||||||
style.textContent = "body { display: none; }";
|
style.textContent = "body { display: none; }";
|
||||||
document.head.append(style);
|
document.head.append(style);
|
||||||
};
|
};
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
text.innerHTML = await armcord.getLang("loading_screen_offline");
|
text.innerHTML = await armcord.getLang("loading_screen_offline");
|
||||||
} else {
|
} else {
|
||||||
text.innerHTML = await armcord.getLang("loading_screen_start");
|
text.innerHTML = await armcord.getLang("loading_screen_start");
|
||||||
if (window.armcord.version === "DEV") {
|
if (window.armcord.version === "3.1.0") {
|
||||||
console.log("Running a development build of ArmCord. Skipping updater.");
|
console.log("Running a development build of ArmCord. Skipping updater.");
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch("https://armcord.xyz/latest.json");
|
const response = await fetch("https://armcord.xyz/latest.json");
|
||||||
|
|
|
@ -26,9 +26,8 @@ export function injectTitlebar() {
|
||||||
addStyle(fs.readFileSync(titlebarcssPath, "utf8"));
|
addStyle(fs.readFileSync(titlebarcssPath, "utf8"));
|
||||||
addStyle(fs.readFileSync(wordmarkcssPath, "utf8"));
|
addStyle(fs.readFileSync(wordmarkcssPath, "utf8"));
|
||||||
document.body.setAttribute("customTitlebar", "");
|
document.body.setAttribute("customTitlebar", "");
|
||||||
document.body.setAttribute("armcord-platform", os.platform());
|
document.body.setAttribute("armcord-platform", "win32");
|
||||||
|
|
||||||
var titlebar = document.getElementsByClassName("titlebar")[0];
|
|
||||||
var minimize = document.getElementById("minimize");
|
var minimize = document.getElementById("minimize");
|
||||||
var maximize = document.getElementById("maximize");
|
var maximize = document.getElementById("maximize");
|
||||||
var quit = document.getElementById("quit");
|
var quit = document.getElementById("quit");
|
||||||
|
|
|
@ -4,9 +4,7 @@ import { mainWindow } from "./window";
|
||||||
import { getConfig, getConfigLocation, setWindowState } from "./utils";
|
import { getConfig, getConfigLocation, setWindowState } from "./utils";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import { createSettingsWindow } from "./settings/main";
|
import { createSettingsWindow } from "./settings/main";
|
||||||
import { platform } from "process";
|
|
||||||
let tray: any = null;
|
let tray: any = null;
|
||||||
let defaultIcon = "ac_plug_colored";
|
|
||||||
app.whenReady().then(async () => {
|
app.whenReady().then(async () => {
|
||||||
let finishedSetup = (await getConfig("doneSetup"));
|
let finishedSetup = (await getConfig("doneSetup"));
|
||||||
if ((await getConfig("windowStyle")) == "basic") {
|
if ((await getConfig("windowStyle")) == "basic") {
|
||||||
|
@ -89,6 +87,12 @@ app.whenReady().then(async () => {
|
||||||
{
|
{
|
||||||
type: "separator"
|
type: "separator"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: `Open ${clientName}`,
|
||||||
|
click: function () {
|
||||||
|
mainWindow.show();
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Open Settings",
|
label: "Open Settings",
|
||||||
click: function () {
|
click: function () {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import { app, dialog } from "electron";
|
import { app, dialog } from "electron";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { defaultMaxListeners } from "events";
|
|
||||||
export var firstRun: boolean;
|
export var firstRun: boolean;
|
||||||
export var isSetup: boolean;
|
export var isSetup: boolean;
|
||||||
export var contentPath: string;
|
export var contentPath: string;
|
||||||
|
|
Loading…
Reference in a new issue