forked from AdguardTeam/AdGuardHome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontend rewritten in TypeScript, added Node 18 support
- Loading branch information
Showing
301 changed files
with
33,138 additions
and
33,644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
*.js text eol=lf | ||
*.ts text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"bracketSameLine": true, | ||
"tabWidth": 4, | ||
"semi": true, | ||
"arrowParens": "always", | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = { | ||
rules: { | ||
"selector-type-no-unknown": true, | ||
"block-closing-brace-empty-line-before": "never", | ||
"block-no-empty": true, | ||
"block-opening-brace-newline-after": "always", | ||
"block-opening-brace-space-before": "always", | ||
"color-hex-case": "lower", | ||
"color-named": "never", | ||
"color-no-invalid-hex": true, | ||
"length-zero-no-unit": true, | ||
"declaration-block-trailing-semicolon": "always", | ||
"custom-property-empty-line-before": ["always", { | ||
"except": [ | ||
"after-custom-property", | ||
"first-nested" | ||
] | ||
}], | ||
"declaration-block-no-duplicate-properties": true, | ||
"declaration-colon-space-after": "always", | ||
"declaration-empty-line-before": ["always", { | ||
"except": [ | ||
"after-declaration", | ||
"first-nested", | ||
"after-comment" | ||
] | ||
}], | ||
"font-weight-notation": "numeric", | ||
"indentation": [4, { | ||
"except": ["value"] | ||
}], | ||
"max-empty-lines": 2, | ||
"no-missing-end-of-source-newline": true, | ||
"number-leading-zero": "always", | ||
"property-no-unknown": true, | ||
"rule-empty-line-before": ["always-multi-line", { | ||
"except": ["first-nested"], | ||
"ignore": ["after-comment"] | ||
}], | ||
"string-quotes": "double", | ||
"value-list-comma-space-after": "always", | ||
"unit-case": "lower" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = (api) => { | ||
api.cache(false); | ||
return { | ||
presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'], | ||
plugins: [ | ||
'@babel/plugin-transform-runtime', | ||
'@babel/plugin-transform-class-properties', | ||
'@babel/plugin-transform-object-rest-spread', | ||
'@babel/plugin-transform-nullish-coalescing-operator', | ||
'@babel/plugin-transform-optional-chaining', | ||
'react-hot-loader/babel', | ||
], | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
const BUILD_ENVS = { | ||
export const BUILD_ENVS = { | ||
dev: 'development', | ||
prod: 'production', | ||
}; | ||
|
||
const BASE_URL = 'control'; | ||
|
||
module.exports = { | ||
BUILD_ENVS, | ||
BASE_URL, | ||
}; | ||
export const BASE_URL = 'control'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from 'react'; | ||
|
||
declare module '*.svg' { | ||
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>; | ||
export default content; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
'^.+\\.tsx?$': 'babel-jest', | ||
}, | ||
}; |
Oops, something went wrong.