mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-24 14:05:45 +03:00
filters.js -> filters.ts
This commit is contained in:
parent
3d4ce6554c
commit
f783e90040
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue