Skip to content

Commit 2f41571

Browse files
committed
fix(main): Remove unused code and fix some ref errors.
1 parent a2d8017 commit 2f41571

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/html-generation/html-generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { TFile } from "obsidian";
99
import { log } from "../moreOnLog";
1010
import { StatsView } from "src/statsView";
1111
import InvioPlugin from "src/main";
12+
import { Utils } from "src/utils/utils";
1213

1314
const LogoSVGDefault = `<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg238067" height="768px" width="1024px" version="1.1" viewBox="0 0 100 100" class="svg-icon invio-sync-wait"><g fill-rule="evenodd" style="transform: scale3d(0.89, 0.99, 1.5);"><path d="M27 97.93A56.08 56.08 0 0 1 9.29 19.08 55.77 55.77 0 0 0 23.59 50l.07.07c.53.58 1.06 1.14 1.62 1.7s1.12 1.09 1.72 1.62L45.54 72a14.93 14.93 0 0 1 4.53 10.93v1.59a15.12 15.12 0 0 1-8 13.52A15.09 15.09 0 0 1 27 97.93z" style="fill: var(--icon-color);"></path><path d="M23.59 50a55.77 55.77 0 0 1-14.3-30.92A56.46 56.46 0 0 1 27 2.08 15.08 15.08 0 0 1 42.11 2a15.12 15.12 0 0 1 8 13.52v1.59A15 15 0 0 1 45.55 28l-22 22z" fill="#999999" opacity=".8"></path><path d="M85.16 2.08a56.08 56.08 0 0 1 17.67 78.84A55.77 55.77 0 0 0 88.53 50l-.08-.07c-.52-.58-1.06-1.14-1.62-1.7s-1.12-1.09-1.69-1.62L66.58 28a14.93 14.93 0 0 1-4.53-10.93v-1.55A15.12 15.12 0 0 1 70 2a15.08 15.08 0 0 1 15.15.08z" style="fill: var(--icon-color);"></path><path d="M88.53 50a55.77 55.77 0 0 1 14.3 30.92 56.35 56.35 0 0 1-17.67 17 15.46 15.46 0 0 1-23.11-13.44v-1.59A15 15 0 0 1 66.57 72l22-22z" fill="#999999" opacity=".8"></path></g></svg>`
1415

src/main.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import { Path } from './utils/path';
6262
import { HTMLGenerator } from './html-generation/html-generator';
6363
import icon, { UsingIconNames, getIconSvg, addIconForconflictFile } from './utils/icon';
6464
import { StatsView, VIEW_TYPE_STATS, LogType } from "./statsView";
65-
import { DomaindModal } from './remoteDomainModal';
6665

6766
const { iconNameSyncWait, iconNameSyncPending, iconNameSyncRunning, iconNameLogs, iconNameSyncLogo } = UsingIconNames;
6867

@@ -116,20 +115,20 @@ export default class InvioPlugin extends Plugin {
116115
return false;
117116
}
118117

119-
async checkDomain() {
120-
// Domain check
121-
return new Promise((resolve) => {
122-
if (this.settings?.remoteDomain) {
123-
resolve(this.settings.remoteDomain);
124-
}
125-
if (!this.settings?.remoteDomain) {
126-
// Show modal to get
127-
new DomaindModal(this.app, this, this.settings?.remoteDomain, (newDomain) => {
128-
resolve(newDomain);
129-
}).open()
130-
}
131-
})
132-
}
118+
// async checkDomain() {
119+
// // Domain check
120+
// return new Promise((resolve) => {
121+
// if (this.settings?.remoteDomain) {
122+
// resolve(this.settings.remoteDomain);
123+
// }
124+
// if (!this.settings?.remoteDomain) {
125+
// // Show modal to get
126+
// new DomaindModal(this.app, this, this.settings?.remoteDomain, (newDomain) => {
127+
// resolve(newDomain);
128+
// }).open()
129+
// }
130+
// })
131+
// }
133132

134133
async syncRun(triggerSource: SyncTriggerSourceType = "manual", fileList?: string[]) {
135134
const t = (x: TransItemType, vars?: any) => {

0 commit comments

Comments
 (0)