Skip to content

Commit

Permalink
Merge remote-tracking branch 'grische/feature/eol-devices' into upstr…
Browse files Browse the repository at this point in the history
…eam-merge2
  • Loading branch information
T0biii committed Mar 21, 2024
2 parents beb68fb + 18435b2 commit 4e9c7c6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
13 changes: 12 additions & 1 deletion lib/config_default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export interface Config {
linkInfos: LinkInfo[];
nodeInfos: NodeInfo[];
deprecation_enabled: boolean;
eol: string[];
deprecated: string[];
eol_text?: string;
deprecation_text?: string;
domainNames: Domain[];
node_custom: string; // Custom node replacement regex
Expand Down Expand Up @@ -358,7 +360,7 @@ export const config: Config = {
fillOpacity: 0.2,
},
},
deprecated: [
eol: [
"A5-V11",
"AP121",
"AP121U",
Expand Down Expand Up @@ -450,7 +452,16 @@ export const config: Config = {
"VoCore 8M",
"VoCore 16M",
],
deprecated: [
"TP-LINK RE305",
"TP-Link RE305 v1",
"TP-LINK RE355",
"TP-Link RE355 v1",
"TP-LINK RE450",
"TP-Link RE450 v1",
],
deprecation_enabled: true,
eol_text: undefined,
deprecation_text: undefined,
domainNames: [],
globalInfos: [],
Expand Down
4 changes: 3 additions & 1 deletion lib/proportions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ export const Proportions = function (filterManager: ReturnType<typeof DataDistri
let fwDict = count(nodes, ["firmware", "release"]);
let baseDict = count(nodes, ["firmware", "base"]);
let deprecationDict = count(nodes, ["model"], function (d) {
return config.deprecated && d && config.deprecated.includes(d) ? _.t("yes") : _.t("no");
if (config.deprecated && d && config.deprecated.includes(d)) return _.t("deprecation");
if (config.eol && d && config.eol.includes(d)) return _.t("eol");
return _.t("no");
});
let hwDict = count(nodes, ["model"]);
let geoDict = count(nodes, ["location"], function (d) {
Expand Down
4 changes: 2 additions & 2 deletions public/locale/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
"remove": "entfernen",
"close": "schließen",
"deprecation": "deprecated",
"deprecation-text": "Warnung: Dieser Knoten ist veraltet, und wird in Zukunft nicht mehr unterstützt. Mehr Infos unter <a href='https://openwrt.org/supported_devices/864_warning'>4/32 warning</a>. <br> Wenn du der Eigentümer des Gerätes bist, bitten wir dich, das Gerät zu ersetzen, um weiterhin am Netz teilnehmen zu können.",
"eol": "eol",
"deprecation-text": "Warnung: Dieser Knoten ist veraltet, und wird in Zukunft nicht mehr unterstützt. Mehr Infos unter <a href='https://openwrt.org/supported_devices/864_warning'>8/64 warning</a>. <br> Wenn du der Eigentümer des Gerätes bist, bitten wir dich, das Gerät zu ersetzen, um weiterhin am Netz teilnehmen zu können.",
"eol": "end-of-life",
"eol-text": "Warnung: Dieser Knoten ist veraltet, und nicht mehr unterstützt. Mehr Infos unter <a href='https://openwrt.org/supported_devices/432_warning'>4/32 warning</a>. <br> Wenn du der Eigentümer des Gerätes bist, bitten wir dich, das Gerät zu ersetzen, um weiterhin am Netz teilnehmen zu können.",
"loading": "%{name} graph (wird generiert)"
}
2 changes: 1 addition & 1 deletion public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"close": "close",
"deprecation": "deprecated",
"deprecation-text": "This node is deprecated, and will be out of support soon. More information under <a href='https://openwrt.org/supported_devices/864_warning'>8/64 warning</a>.<br>If you're the owner, please replace it with an modern device!",
"eol": "eol",
"eol": "end-of-life",
"eol-text": "This node has reached end-of-life, and is not supported anymore. More information under <a href='https://openwrt.org/supported_devices/432_warning'>4/32 warning</a>.<br>If you're the owner, please replace it with an modern device!",
"loading": "%{name} graph (is generated)"
}

0 comments on commit 4e9c7c6

Please sign in to comment.