filters.js -> filters.ts

This commit is contained in:
Igor Lobanov 2024-06-05 16:19:13 +02:00
parent 3d4ce6554c
commit f783e90040
3 changed files with 3 additions and 3 deletions

View File

@ -385,7 +385,7 @@ var config = &configuration{
Ignored: []string{}, Ignored: []string{},
}, },
// NOTE: Keep these parameters in sync with the one put into // 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 // TODO(a.garipov): Think of a way to make scripts/vetted-filters update
// these as well if necessary. // these as well if necessary.

View File

@ -91,7 +91,7 @@ func main() {
err = enc.Encode(aghFlt) err = enc.Encode(aghFlt)
check(err) 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) 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 // 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 { type aghFilters struct {
Categories map[string]*aghFiltersCategory `json:"categories"` Categories map[string]*aghFiltersCategory `json:"categories"`
Filters map[string]*aghFiltersFilter `json:"filters"` Filters map[string]*aghFiltersFilter `json:"filters"`