Skip to content

Commit 0573123

Browse files
committed
fixed some small changes. add custom .vimrc file
1 parent 7d40641 commit 0573123

File tree

13 files changed

+590
-195
lines changed

13 files changed

+590
-195
lines changed

.nvimrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:nnoremap <F8> :silent !./node_modules/prettier/bin-prettier.js --parser babylon --no-semi --write --single-quote % <CR><CR>
2+
"autocmd BufWritePost *.jsx AsyncRun -post=checktime ./node_modules/prettier/bin-prettier.js --parser babylon --no-semi --write --single-quote %

.vimrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "red9_console",
3-
"version": "0.1.0",
4-
"homepage": "https://aparat.red9.ir",
3+
"version": "0.1.1",
4+
"homepage": "https://red9.ir",
55
"private": true,
66
"dependencies": {
77
"accounting-js": "^1.1.1",
@@ -12,20 +12,20 @@
1212
"jalali-date": "^1.0.2",
1313
"lato-font": "^3.0.0",
1414
"lodash": "^4.17.10",
15-
"office-ui-fabric-react": "^6.37.0",
16-
"react": "^16.4.1",
17-
"react-dom": "^16.4.1",
15+
"office-ui-fabric-react": "^6.48.0",
16+
"react": "^16.4.2",
17+
"react-dom": "^16.4.2",
1818
"react-gist": "^1.2.1",
1919
"react-highlight": "^0.12.0",
2020
"react-router-dom": "^4.3.1",
2121
"react-scripts": "1.1.4",
22-
"recharts": "^1.0.1",
22+
"recharts": "^1.1.0",
2323
"rxjs": "^6.2.2",
2424
"semantic-ui-css": "^2.3.3",
25-
"semantic-ui-react": "^0.82.0",
25+
"semantic-ui-react": "^0.82.2",
2626
"store": "^2.0.12",
2727
"string": "^3.3.3",
28-
"sweetalert2": "^7.25.6",
28+
"sweetalert2": "^7.26.11",
2929
"typeface-inconsolata": "^0.0.54"
3030
},
3131
"scripts": {
@@ -36,9 +36,14 @@
3636
"precommit": "lint-staged"
3737
},
3838
"devDependencies": {
39+
"babel-eslint": "^8.2.6",
40+
"eslint": "^5.3.0",
41+
"eslint-config-prettier": "^3.0.1",
42+
"eslint-plugin-prettier": "^2.6.2",
43+
"eslint-plugin-react": "^7.11.1",
3944
"husky": "^0.14.3",
40-
"lint-staged": "^7.2.0",
41-
"prettier": "^1.13.7"
45+
"lint-staged": "^7.2.2",
46+
"prettier": "^1.14.2"
4247
},
4348
"lint-staged": {
4449
"*.js": [

src/App.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
textarea:hover,
32
input:hover,
43
textarea:active,

src/App.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import S from 'string'
33
import { distinctUntilChanged, debounceTime } from 'rxjs/operators'
44
import { Route, Switch } from 'react-router-dom'
55
import store from 'store'
6+
67
import {
78
titleChangeSignal,
89
sendLoginRequest,
@@ -355,8 +356,8 @@ class App extends Component {
355356
<br />
356357
{browser.os === 'iOS' ? (
357358
<span>
358-
We have successfully tested the application on <b>iPad</b>,{' '}
359-
<b>iPad Mini</b> and <b>iPad Pro</b> on landscape mode.
359+
We have successfully tested the application on <b>iPad</b>
360+
, <b>iPad Mini</b> and <b>iPad Pro</b> on landscape mode.
360361
</span>
361362
) : null}
362363
{browser.os === 'Mac OS' ? (

src/apis.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { env } from './config'
22

3+
34
let CLIENTKEY = '00000000-0000-0000-0000-000000000000'
45
let APIKEY = '00000000-0000-0000-0000-000000000000'
56

src/apps.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ class Applications extends Component {
523523
{` curl -X POST \\
524524
${env.API_BASE}/api/app/messaging/send_sms_without_charge \\
525525
-H 'Content-Type: application/json' \\
526-
-H 'api-key: ${this.state.selected.apikeys}' \\
526+
-H 'api-key: ${this.state.selected.apikeys[0].key}' \\
527527
-d '{
528528
"message": "We like to think of ${env.company} ${
529529
env.product
@@ -553,7 +553,7 @@ class Applications extends Component {
553553
{` curl -X POST \\
554554
${env.API_BASE}/api/app/messaging/send_bulk_to_subs \\
555555
-H 'Content-Type: application/json' \\
556-
-H 'api-key: ${this.state.selected.apikeys}' \\
556+
-H 'api-key: ${this.state.selected.apikeys[0].key}' \\
557557
-d '{
558558
"message": "We like to think of ${env.company} ${
559559
env.product
@@ -588,7 +588,7 @@ class Applications extends Component {
588588
{` curl -X POST \\
589589
${env.API_BASE}/api/app/subscriptions/otp_subscribe \\
590590
-H 'Content-Type: application/json' \\
591-
-H 'api-key: ${this.state.selected.apikeys}' \\
591+
-H 'api-key: ${this.state.selected.apikeys[0].key}' \\
592592
-d '{
593593
"national_number":${env.company_contact_gsm},
594594
"country_code": 98
@@ -617,7 +617,7 @@ class Applications extends Component {
617617
{` curl -X POST \\
618618
${env.API_BASE}/api/app/subscriptions/otp_confirm_subscription \\
619619
-H 'Content-Type: application/json' \\
620-
-H 'api-key: ${this.state.selected.apikeys}' \\
620+
-H 'api-key: ${this.state.selected.apikeys[0].key}' \\
621621
-d '{
622622
"correlator": "3e34c2b0-cd6d-4a05-a3e7-0e806192272",
623623
"pin": "9527"

src/config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const browser =
44
detect() !== null ? detect() : { os: 'N/A', name: 'Unknown' }
55

66
const mode = 'rashavas'
7-
const servermode = 'local' // or production
7+
const servermode = 'production' // or production
88

99
const sabaidea_env = {
1010
company: 'SabaIdea',
@@ -19,8 +19,8 @@ const sabaidea_env = {
1919
FTP_BASE: 'https://aparat.red9.ir/imi_ftp/v1',
2020
CODE51_BASE: 'https://aparat.red9.ir/code51',
2121
CODE51_TOKEN: 'aa71ee01',
22-
product_version: '0.7.1 / 18 Jul 2018',
23-
codename: 'Ice Wicket',
22+
product_version: '0.7.4 / 12 Aug 2018',
23+
codename: 'Heavy Hurricane',
2424
logo: 'sabaidea',
2525
author: 'RmFyc2hlZWQgQXNob3VyaQ==',
2626
copyright_logo: 'rashavas.logo',
@@ -55,7 +55,7 @@ const rashavas_env = {
5555
FTP_BASE: 'https://ftp.red9.ir/imi_ftp/v1',
5656
CODE51_BASE: 'https://api.appido.ir/code51',
5757
CODE51_TOKEN: 'aa71ee01',
58-
product_version: '0.7.1 / 18 Jul 2018',
58+
product_version: '0.7.5 / 25 Jul 2018',
5959
codename: 'Ice Wicket',
6060
logo: 'red9',
6161
author: 'RmFyc2hlZWQgQXNob3VyaQ==',
@@ -112,7 +112,5 @@ const wat_env = {
112112
'#270d18'
113113
]
114114
}
115-
116115
*/
117-
118116
export const env = mode === 'rashavas' ? rashavas_env : sabaidea_env

src/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
@import url("https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/9.6.0/css/fabric.min.css");
2-
3-
4-
51
/* width */
62
::-webkit-scrollbar {
73
width: 4px !important;

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'semantic-ui-css/semantic.css'
44
import 'typeface-inconsolata/index.css'
55
import 'font-awesome/css/font-awesome.css'
66
import 'highlight.js/styles/solarized-dark.css'
7-
import 'lato-font/css/lato-font.css'
7+
import 'office-ui-fabric-react/dist/css/fabric.css'
88
import './index.css'
99
import './App.css'
1010
import './general'
@@ -63,7 +63,7 @@ registerServiceWorker()
6363
const is_devmode = process.env.NODE_ENV === 'development'
6464

6565
if (is_devmode === false) {
66-
const cst = 'color: green; font-size:12px;font-family:monospace'
66+
const cst = 'color: green; font-size:19px;font-family:monospace'
6767
console.debug(
6868
`Hey geek friend! ${env.company} ${
6969
env.product

0 commit comments

Comments
 (0)