Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shoonia committed Apr 29, 2024
1 parent 04934bd commit 5e811d0
Show file tree
Hide file tree
Showing 7 changed files with 230 additions and 135 deletions.
335 changes: 216 additions & 119 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@types/react-hint": "^3.2.3",
"@types/react-modal": "^3.16.3",
"@types/wicg-file-system-access": "^2023.10.5",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"autoprefixer": "^10.4.19",
"babel-loader": "^9.1.3",
"babel-plugin-transform-remove-polyfill": "^0.24.1",
Expand All @@ -52,7 +52,7 @@
"postcss-loader": "^8.1.1",
"postcss-simple-vars": "^7.0.1",
"style-loader": "^4.0.0",
"stylelint": "^16.3.1",
"stylelint": "^16.4.0",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-standard": "^36.0.0",
"terser-webpack-plugin": "^5.3.10",
Expand Down
8 changes: 4 additions & 4 deletions src/components/Editor/Buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { IconPlus } from '../Icons/IconPlus';
import { IconUpload } from '../Icons/IconUpload';
import { MAX_ITEMS, ROUTER } from '../../constants';

const openUploadModal: EventListener = () => {
location.hash = ROUTER.UPLOAD;
};

export const Buttons: FC = () => {
const { dispatch, items } = useStoreon('items');

const createItem: EventListener = () => {
dispatch('items/new');
};

const openUploadModal: EventListener = () => {
location.hash = ROUTER.UPLOAD;
};

return (
<ToolbarWrapper>
<ToolbarHint label="You can configure up to 20 jobs">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/StandWithUkraine.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import url("../../styles/vars.css");

.swu_box {
.box {
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -10,7 +10,7 @@
height: $swu-h;
}

.swu_link {
.link {
composes: link from './styles.css';
display: flex;
gap: 1em;
Expand Down
9 changes: 4 additions & 5 deletions src/components/Header/StandWithUkraine.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import s from './StandWithUkraine.css';

export const StandWithUkraine: FC = () => (
<div className={s.swu_box}>
export const StandWithUkraine: FC = () =>
<div className={s.box}>
<a
href="https://www.wix.com/stands-with-ukraine"
className={s.swu_link}
className={s.link}
>
<svg aria-label="the national flag of Ukraine" viewBox="0 0 3 2" width="1.4em">
<path d="M0 0h3v1H0z" fill="#005bbb" />
<path d="M0 1h3v1H0z" fill="#ffd500" />
</svg>
Support Ukraine
</a>
</div>
);
</div>;
2 changes: 1 addition & 1 deletion src/components/Jobs/CronExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BlankButton } from '../Button';
import { useFormScope } from '../../hooks/formScope';
import { KEYS } from '../../constants';

export const CronExamples: FC= () => {
export const CronExamples: FC = () => {
const { id } = useFormScope();

return (
Expand Down
1 change: 0 additions & 1 deletion src/components/Preview/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
margin: 0;
padding: 1em;
overflow: auto;
resize: none;
border: none;
outline: none;
white-space: pre;
Expand Down

0 comments on commit 5e811d0

Please sign in to comment.