-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: search packages with websocket (#434)
* feat: search packages with websocket * refactor: enhance searchnav styles * chore: finalize style * feat: add hint for min & max package length * chore: enhance search view css * fix: use dataset to work with package name * refactor: hide network searchbar when not required * chore: improve logs * fix: use template to render home view * refactor: enhance initSearchBar * fix: bug with searchbar display: none * fix(css): remove overflow-x: auto on .packages * chore: improve package close button css * chore: add i18n for searchbar placeholder * feat(search): allow to remove packages from cache * fix: make new current package active on reload * feat(search): add spinner while searching packages * feat(search): add spinner while searching package versions * feat(search): move search spinner into input * fix: init on reload when removed last active package only * refactor: split interface init function * feat: highlight exact match package * feat: close package info when switching network * fix: network searchbar --------- Co-authored-by: fraxken <[email protected]>
- Loading branch information
1 parent
016ba9a
commit 28f7606
Showing
34 changed files
with
1,742 additions
and
360 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
// Import Node.js Dependencies | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import { ESLintConfig, globals } from "@openally/config.eslint"; | ||
|
||
// Import Third-party Dependencies | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname | ||
}); | ||
|
||
export default [{ | ||
ignores: ["**/node_modules/", "**/tmp/", "**/dist/", "**/coverage/", "**/fixtures/"] | ||
}, ...compat.extends("@nodesecure/eslint-config"), { | ||
languageOptions: { | ||
sourceType: "module", | ||
|
||
parserOptions: { | ||
requireConfigFile: false | ||
export default [ | ||
...ESLintConfig, | ||
{ | ||
rules: { | ||
"func-style": "off", | ||
"no-invalid-this": "off", | ||
"no-inner-declarations": "off", | ||
"no-case-declarations": "off", | ||
// TODO: enable this rule when migrating to @topcli/cmder | ||
"default-param-last": "off" | ||
}, | ||
languageOptions: { | ||
sourceType: "module", | ||
globals: { | ||
...globals.browser | ||
} | ||
} | ||
}, | ||
|
||
rules: { | ||
"func-style": "off", | ||
"no-invalid-this": "off", | ||
"no-inner-declarations": "off", | ||
"no-case-declarations": "off" | ||
{ | ||
ignores: ["**/node_modules/", "**/tmp/", "**/dist/", "**/coverage/", "**/fixtures/"] | ||
} | ||
}]; | ||
]; |
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
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
Oops, something went wrong.