Compare commits

..

14 Commits
dd ... main

Author SHA1 Message Date
c9622c1e19 Merge pull request 'fix' (#9) from dd into main
Reviewed-on: #9
2026-06-12 20:58:31 +03:00
2ec65f56a6 Merge pull request 'fix' (#8) from dd into main
Reviewed-on: #8
2026-06-09 10:31:24 +03:00
0c46a389f6 Merge pull request 'fix' (#7) from dd into main
Reviewed-on: #7
2026-06-08 20:14:10 +03:00
f8e58a83bb Merge pull request 'fix' (#6) from dd into main
Reviewed-on: #6
2026-06-08 19:01:25 +03:00
aeec8261ea Merge pull request 'fix' (#5) from dd into main
Reviewed-on: #5
2026-06-08 12:59:41 +03:00
04aca6e906 Merge pull request 'fix' (#4) from dd into main
Reviewed-on: #4
2026-05-31 20:18:48 +03:00
220e9cbe59 Merge pull request 'fix' (#3) from dd into main
Reviewed-on: #3
2026-05-31 19:19:03 +03:00
83f2176cfc Merge pull request 'fix' (#2) from dd into main
Reviewed-on: #2
2026-05-31 19:12:19 +03:00
70ac1086bf Merge pull request 'fix' (#1) from dd into main
Reviewed-on: #1
2026-05-31 19:05:28 +03:00
5998c94671 Add Dockerfile 2026-05-31 09:49:16 +03:00
8b7c62859f Delete FROM node:22-alpine WORKDIR /app ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3000 RUN apk add --no-cache curl COPY package*.json ./ RUN npm ci --omit=dev COPY . . RUN node --check server.js EXPOSE 3000 CMD ["node", "/app/server.js"] 2026-05-31 09:48:46 +03:00
762dd27589 ddd 2026-05-31 09:48:13 +03:00
79bfe3a2f6 Update FROM node:22-alpine WORKDIR /app ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3000 RUN apk add --no-cache curl COPY package*.json ./ RUN npm ci --omit=dev COPY . . RUN node --check server.js EXPOSE 3000 CMD ["node", "/app/server.js"] 2026-05-31 09:47:53 +03:00
bb745fb631 Update FROM node:22-alpine WORKDIR /app ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3000 RUN apk add --no-cache curl COPY package*.json ./ RUN npm ci --omit=dev COPY . . RUN node --check server.js EXPOSE 3000 CMD ["node", "/app/server.js"] 2026-05-31 09:45:21 +03:00
2 changed files with 4 additions and 15 deletions

View File

@ -8,6 +8,8 @@ ENV NODE_ENV=production
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=3000 ENV PORT=3000
RUN apk add --no-cache curl
COPY package*.json ./ COPY package*.json ./
RUN npm ci --omit=dev RUN npm ci --omit=dev

View File

@ -95,18 +95,6 @@ function toast(message) {
toast.timer = setTimeout(() => el.classList.add("hidden"), 4200); toast.timer = setTimeout(() => el.classList.add("hidden"), 4200);
} }
function isAppleOrAndroidDevice() {
const userAgent = navigator.userAgent || "";
const platform = navigator.platform || "";
const isTouchMac = platform === "MacIntel" && navigator.maxTouchPoints > 1;
return /Android|iPhone|iPad|iPod/i.test(userAgent) || isTouchMac;
}
function shouldHideDustMarket(value) {
const normalized = String(value || "").trim().replace(/\s+/g, " ").toLowerCase();
return isAppleOrAndroidDevice() && normalized === "рынок пыли";
}
function formatDate(value) { function formatDate(value) {
if (!value) return "-"; if (!value) return "-";
const date = new Date(value); const date = new Date(value);
@ -226,14 +214,13 @@ function renderSettings() {
$("#settings-list").innerHTML = state.config.map(item => { $("#settings-list").innerHTML = state.config.map(item => {
const type = item.secret ? "password" : item.key.includes("PORT") || item.key.includes("TIMEOUT") ? "number" : "text"; const type = item.secret ? "password" : item.key.includes("PORT") || item.key.includes("TIMEOUT") ? "number" : "text";
const placeholder = item.secret && item.configured ? "сохранено, введите новое значение для замены" : ""; const placeholder = item.secret && item.configured ? "сохранено, введите новое значение для замены" : "";
const value = shouldHideDustMarket(item.value) ? "" : item.value;
return ` return `
<div class="setting"> <div class="setting">
<label> <label>
<span>${item.key}</span> <span>${item.key}</span>
<span class="source">${item.source}${item.configured ? "" : " / пусто"}</span> <span class="source">${item.source}${item.configured ? "" : " / пусто"}</span>
</label> </label>
<input name="${item.key}" type="${type}" value="${value || ""}" placeholder="${placeholder}"> <input name="${item.key}" type="${type}" value="${item.value || ""}" placeholder="${placeholder}">
</div> </div>
`; `;
}).join(""); }).join("");