diff --git a/client/src/helpers/filters/filters.js b/client/src/helpers/filters/filters.ts similarity index 100% rename from client/src/helpers/filters/filters.js rename to client/src/helpers/filters/filters.ts diff --git a/internal/home/config.go b/internal/home/config.go index f20211d69b1..ba9c00d9fe4 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -385,7 +385,7 @@ var config = &configuration{ Ignored: []string{}, }, // NOTE: Keep these parameters in sync with the one put into - // client/src/helpers/filters/filters.js by scripts/vetted-filters. + // client/src/helpers/filters/filters.ts by scripts/vetted-filters. // // TODO(a.garipov): Think of a way to make scripts/vetted-filters update // these as well if necessary. diff --git a/scripts/vetted-filters/main.go b/scripts/vetted-filters/main.go index c960f20088a..663f86a218e 100644 --- a/scripts/vetted-filters/main.go +++ b/scripts/vetted-filters/main.go @@ -91,7 +91,7 @@ func main() { err = enc.Encode(aghFlt) check(err) - err = maybe.WriteFile("client/src/helpers/filters/filters.js", buf.Bytes(), 0o644) + err = maybe.WriteFile("client/src/helpers/filters/filters.ts", buf.Bytes(), 0o644) check(err) } @@ -145,7 +145,7 @@ func (f *hlFiltersFilter) category() (cat string) { } // aghFilters is the JSON structure for AdGuard Home's list of vetted filtering -// rule list in file client/src/helpers/filters/filters.js. +// rule list in file client/src/helpers/filters/filters.ts. type aghFilters struct { Categories map[string]*aghFiltersCategory `json:"categories"` Filters map[string]*aghFiltersFilter `json:"filters"`