Skip to content

Commit

Permalink
relayId
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyoko-Jeremie committed Aug 15, 2023
1 parent 67910f7 commit 6759f2a
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 14 deletions.
5 changes: 5 additions & 0 deletions html/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ var app = new Vue({
nowTime: "",
startTime: "",
runTime: 0,
relayId: 0,
relayIdMod: 0,
runTimeString: "",
runTimeString2: "",
lastConnectComeTime: "",
Expand Down Expand Up @@ -308,6 +310,9 @@ var app = new Vue({
app.sleepTime = _.parseInt(_.get(T, 'config.sleepTime', '' + Number.MAX_SAFE_INTEGER));
app.nowTime = T.nowTime;

app.relayIdMod = T.config.relayIdMod;
app.relayId = T.config.relayId;

app.runTime = T.runTime;
app.runTimeString = moment.duration(_.parseInt(T.runTime)).humanize();
if (window.i18nTable && window.i18nTable.formatDurationFunction) {
Expand Down
2 changes: 2 additions & 0 deletions html/i18n-table/en-US.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion html/i18n-table/en-US.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions html/i18n-table/en-US.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
function formatInt(int: number) {
if (int < 10) {
return `0${int}`;
Expand All @@ -12,12 +13,12 @@ window.i18n.enUS = (() => {
const tableState: { [key: string]: { s: string, f?: CallableFunction } } = {
formatDurationFunction: {
s: "formatDurationFunction", f: (time: number) => {
const seconds = globalThis.moment.duration(time).seconds();
const minutes = globalThis.moment.duration(time).minutes();
const hours = globalThis.moment.duration(time).hours();
const days = globalThis.moment.duration(time).days();
const months = globalThis.moment.duration(time).months();
const years = globalThis.moment.duration(time).years();
const seconds = (globalThis as any).moment.duration(time).seconds();
const minutes = (globalThis as any).moment.duration(time).minutes();
const hours = (globalThis as any).moment.duration(time).hours();
const days = (globalThis as any).moment.duration(time).days();
const months = (globalThis as any).moment.duration(time).months();
const years = (globalThis as any).moment.duration(time).years();
if (years > 0) {
return `${years}Y-${months}M-${days}Day ${formatInt(hours)}h:${formatInt(minutes)}m:${formatInt(seconds)}s`;
}
Expand Down Expand Up @@ -99,6 +100,7 @@ window.i18n.enUS = (() => {
isSleeping: {s: "isSleeping:"},
sleeping: {s: "sleeping"},
listenOn: {s: "listen On:"},
totalHistoryConnectCount: {s: "Total History Connect Count: "},
ClientConnectInfo: {s: "Client Connect Info"},
Host: {s: "Host"},
lastServer: {s: "lastServer"},
Expand Down
2 changes: 2 additions & 0 deletions html/i18n-table/zh-CN.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6759f2a

Please sign in to comment.