Skip to content

Commit

Permalink
implemented time specifier in frontend for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enes-simsek committed Mar 2, 2024
1 parent d561f75 commit 881798a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion frontend/app/assets/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,8 @@ async function processHandler(banSource, banMode, entryUrl, singleAuthorName, si
click_source: clickSource,
fav_title: fav_title,
fav_entry: fav_entry,
fav_author: fav_author
fav_author: fav_author,
time_specifier: timeSpecifier
});

// log_level and log
Expand Down
5 changes: 4 additions & 1 deletion frontend/app/assets/js/commHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export function Action({
click_source,
fav_title,
fav_entry,
fav_author})
fav_author,
time_specifier
})
{
this.eksi_engel_user = eksi_engel_user;
this.version = version;
Expand All @@ -82,6 +84,7 @@ export function Action({
this.fav_title = fav_title;
this.fav_entry = fav_entry;
this.fav_author = fav_author;
this.time_specifier = time_specifier;
}

export function ActionConfig({
Expand Down
10 changes: 5 additions & 5 deletions frontend/app/assets/js/enums.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export const NotificationType = {
};

export const TimeSpecifier = {
LAST_24_H: "LAST_24_H",
LAST_1_W: "LAST_1_W",
LAST_1_M: "LAST_1_M",
LAST_3_M: "LAST_3_M",
ALL: "ALL",
LAST_24_H: "1",
LAST_1_W: "2",
LAST_1_M: "3",
LAST_3_M: "4",
ALL: "5",
};

0 comments on commit 881798a

Please sign in to comment.