Skip to content

Commit

Permalink
[DOP-16647] Add Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-pedchenko committed Jun 21, 2024
1 parent 8354623 commit c5bafa7
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 92 deletions.
6 changes: 3 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"tabWidth": 4,
"useTabs": false,
"printWidth": 80
"tabWidth": 4,
"useTabs": false,
"printWidth": 80
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This interface is designed to work with the SyncMaster service.
This interface contains 4 menu sections: Transfers, Connections, Queues, Groups.


To explore the source code, start with [src/App.tsx](https://github.com/MobileTeleSystems/syncmaster-ui/blob/develop/src/App.tsx).

## How to run
Expand All @@ -19,6 +18,7 @@ yarn build

yarn dev
```

These commands will install dependencies and launch the dev server, by going to localhost:3000 you can go to the SyncMaster_UI interface.

## How to format code
Expand All @@ -35,4 +35,4 @@ Run the following command at the root directory:

```sh
npx eslint --fix
```
```
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ services:
network: host
target: prod
ports:
- 3000:3000
- 3000:3000
24 changes: 18 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -55,7 +55,7 @@
.loader:before,
.loader:after {
position: absolute;
content: '';
content: "";
}

.loader:before {
Expand Down Expand Up @@ -111,10 +111,22 @@
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Gabarito:wght@500;600;700;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;500;600;700&display=swap" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Gabarito:wght@500;600;700;900&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;500;600;700&display=swap"
rel="stylesheet"
/>
</head>

<body>
Expand Down
10 changes: 5 additions & 5 deletions index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'proxy-polyfill';
import "proxy-polyfill";

import * as React from 'react';
import ReactDOM from 'react-dom';
import * as React from "react";
import ReactDOM from "react-dom";

import App from './src/App';
import App from "./src/App";

ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(<App />, document.getElementById("root"));
26 changes: 13 additions & 13 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
12 changes: 0 additions & 12 deletions src/shared/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,4 @@ export const getApiUrl = () => {
};
const _some_trash = "awddwa";













console.log(_some_trash);
80 changes: 37 additions & 43 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,41 @@
{
"compilerOptions": {
"target": "es5",
"baseUrl": ".",
"paths": {
"@/*": [
"src/*"
],
"@widgets/*": ["src/widgets/*"],
"@themes/*": ["src/themes/*"],
"@shared/*": ["src/shared/*"],
"@i18n/*": ["src/i18n/*"],
"@hooks/*": ["src/hooks/*"],
"@features/*": ["src/features/*"],
"@entities/*": ["src/entities/*"],
"compilerOptions": {
"target": "es5",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@widgets/*": ["src/widgets/*"],
"@themes/*": ["src/themes/*"],
"@shared/*": ["src/shared/*"],
"@i18n/*": ["src/i18n/*"],
"@hooks/*": ["src/hooks/*"],
"@features/*": ["src/features/*"],
"@entities/*": ["src/entities/*"]
},
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"lib": [
"dom",
"dom.iterable",
"esnext"
"include": [
"./src/**/*.ts",
"./src/**/*.d.ts",
"./src/**/*.tsx",
"./src/**/*.d.tsx"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"./src/**/*.ts",
"./src/**/*.d.ts",
"./src/**/*.tsx",
"./src/**/*.d.tsx",
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
11 changes: 5 additions & 6 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}

}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import alias from "@rollup/plugin-alias";
import react from "@vitejs/plugin-react";
import visualizer from "rollup-plugin-visualizer";
import { defineConfig } from "vite";
import path from 'path';
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit c5bafa7

Please sign in to comment.