Skip to content

Commit

Permalink
filters.js -> filters.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bniwredyc committed Jun 5, 2024
1 parent 3d4ce65 commit f783e90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/home/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions scripts/vetted-filters/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit f783e90

Please sign in to comment.