Compare commits

..

No commits in common. "572b5f351791875b75ee34263dbf943174514fc9" and "edd4e900dede12646c35695f83f7c782aa86d049" have entirely different histories.

5 changed files with 7235 additions and 7358 deletions

View file

@ -29,11 +29,12 @@ steps:
- staging - staging
- staging-${DRONE_BUILD_NUMBER} - staging-${DRONE_BUILD_NUMBER}
when: when:
branch: branch:
exclude: exclude:
- master - master
event: event:
- push exclude:
- push
- name: bump tag in deployment-repo (prod) - name: bump tag in deployment-repo (prod)
image: aaronriedel/kustomize-ci image: aaronriedel/kustomize-ci
commands: commands:
@ -66,7 +67,8 @@ steps:
exclude: exclude:
- master - master
event: event:
- push exclude:
- push
- name: push new tag to deployment-repo (prod) - name: push new tag to deployment-repo (prod)
image: appleboy/drone-git-push image: appleboy/drone-git-push
settings: settings:
@ -105,11 +107,8 @@ steps:
exclude: exclude:
- master - master
event: event:
- push exclude:
- push
volumes: volumes:
- name: deployment-repo - name: deployment-repo
temp: {} temp: {}
when:
event:
exclude:
- pull_request

View file

@ -3,25 +3,23 @@
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"repository": "git@github.com:phntxx/dashboard", "repository": "git@github.com:phntxx/dashboard",
"contributors": [ "contributors": ["phntxx <hello@phntxx.com>"],
"phntxx <hello@phntxx.com>"
],
"private": false, "private": false,
"dependencies": { "dependencies": {
"@types/node": "^20.0.0", "@types/node": "^20.0.0",
"@types/react-dom": "^18.0.0", "@types/react-dom": "^18.0.0",
"@types/styled-components": "^5.1.9", "@types/styled-components": "^5.1.9",
"browserslist": "^4.21.11", "browserslist": "^4.16.6",
"http-server": "^14.1.0", "http-server": "^14.1.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"react": "^18.0.0", "react": "^18.0.0",
"react-dom": "^18.0.0", "react-dom": "^18.0.0",
"react-scripts": "^5.0.0", "react-scripts": "^5.0.0",
"styled-components": "^6.0.8", "styled-components": "^5.2.1",
"typescript": "^5.2.2" "typescript": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/jest-dom": "^6.1.3", "@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^14.0.0", "@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.0.4", "@testing-library/user-event": "^14.0.4",
"@types/jest": "^29.0.0", "@types/jest": "^29.0.0",
@ -30,6 +28,7 @@
"eslint": "^8.13.0", "eslint": "^8.13.0",
"eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^3.0.0" "prettier": "^3.0.0"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
@ -49,11 +48,7 @@
"extends": "react-app" "extends": "react-app"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [">0.2%", "not dead", "not op_mini all"],
">0.2%",
"not dead",
"not op_mini all"
],
"development": [ "development": [
"last 1 chrome version", "last 1 chrome version",
"last 1 firefox version", "last 1 firefox version",

View file

@ -45,7 +45,7 @@ const App = () => {
return ( return (
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<GlobalStyle theme={theme} /> <GlobalStyle />
<div> <div>
<SearchBar search={searchData.response} /> <SearchBar search={searchData.response} />
<Settings themes={themeData.response} search={searchData.response} /> <Settings themes={themeData.response} search={searchData.response} />

View file

@ -89,17 +89,17 @@ describe("searchBar.tsx", () => {
it("Tests SearchBar with autoFocus not set", () => { it("Tests SearchBar with autoFocus not set", () => {
const { input } = setup(); const { input } = setup();
expect(!input.focus); expect(input).not.toHaveFocus();
}); });
it("Tests SearchBar with autoFocus set to true", () => { it("Tests SearchBar with autoFocus set to true", () => {
const { input } = setup({ ...defaultProps, autoFocus: true }); const { input } = setup({ ...defaultProps, autoFocus: true });
expect(input.focus); expect(input).toHaveFocus();
}); });
it("Tests SearchBar with autoFocus set to false", () => { it("Tests SearchBar with autoFocus set to false", () => {
const { input } = setup({ ...defaultProps, autoFocus: false }); const { input } = setup({ ...defaultProps, autoFocus: false });
expect(!input.focus); expect(input).not.toHaveFocus();
}); });
it("Tests SearchBar component with default search", () => { it("Tests SearchBar component with default search", () => {

14545
yarn.lock

File diff suppressed because it is too large Load diff