Skip to content

Commit 27288dc

Browse files
author
vikasrohit
authored
Merge pull request #2019 from appirio-tech/dev
Production release 2.4.2
2 parents d428582 + 8540da3 commit 27288dc

File tree

25 files changed

+1364
-1152
lines changed

25 files changed

+1364
-1152
lines changed

.circleci/config.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ version: 2
22
jobs:
33
test:
44
docker:
5-
- image: circleci/node:8.9.4
5+
- image: circleci/node:8.9.4-browsers
66
steps:
7+
- run:
8+
name: checking out qa framework repo
9+
command: git clone --branch develop https://$GITUSER:$GITPASSWD@github.com/appirio-tech/qa-framework-js.git ../qa-framework
710
- checkout
811
- restore_cache:
912
key: test-node-modules-{{ .Environment.CACHE_VERSION }}-{{ checksum "package-lock.json" }}
@@ -18,8 +21,28 @@ jobs:
1821
- persist_to_workspace:
1922
root: .
2023
paths:
21-
- dist
22-
24+
- dist
25+
- run:
26+
name: starting server locally
27+
command: npm run start
28+
background: true
29+
- run: sleep 90
30+
- run:
31+
name: Running qa frame work
32+
command: |
33+
cd $HOME/qa-framework
34+
sudo chmod 777 /usr/local/lib/node_modules
35+
sudo chmod 777 /usr/local/bin
36+
echo 127.0.0.1 local.topcoder-dev.com | sudo tee -a /etc/hosts
37+
echo 127.0.0.1 local.topcoder.com | sudo tee -a /etc/hosts
38+
cat /etc/hosts
39+
mv -f test/config/ci-config.js test/config/config.js
40+
npm install
41+
npm test
42+
pwd
43+
- store_artifacts:
44+
path: /home/circleci/qa-framework/allure-report
45+
2346
# Just tests commited code.
2447
deployDev:
2548
docker:
@@ -56,6 +79,7 @@ jobs:
5679
- attach_workspace:
5780
at: ./workspace
5881
- run: ./deploy.sh DISCOURSE
82+
5983

6084
workflows:
6185
version: 2

config/constants/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
module.exports = (() => {
22
const branch = process.env.CIRCLE_BRANCH || 'dev'
33

4-
if(branch === 'master-discourse-free') {
5-
return require('./master')
6-
}
7-
84
// for security reason don't let to require any arbitrary file defined in process.env
95
if (['master', 'qa'].indexOf(branch) < 0) {
106
return require('./dev')

package-lock.json

Lines changed: 958 additions & 958 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/icons/coder-welcome.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/BtnGroup/BtnGroup.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ class BtnGroup extends React.Component {
2424
<button
2525
key={item.value}
2626
className={cn('tc-btn tc-btn-sm tc-btn-default', { active: item.value === this.state.value })}
27-
onClick={() => {
27+
onClick={(evt) => {
28+
// prevent parent form to be submitted
29+
evt.preventDefault()
2830
if (item.value !== this.state.value) {
2931
this.setState({ value: item.value })
3032
if (this.props.onChange) {

src/components/BtnGroup/BtnGroup.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,34 @@
66
> .tc-btn {
77
border-radius: 0;
88
border-left-width: 0;
9+
margin: 0;
910
}
10-
11+
1112
> .tc-btn:first-child {
1213
border-radius: 2 * $corner-radius 0 0 2 * $corner-radius;
1314
border-left-width: 1px;
1415
}
15-
16+
1617
> .tc-btn:last-child {
1718
border-radius: 0 2 * $corner-radius 2 * $corner-radius 0;
1819
}
19-
20+
2021
> .tc-btn.active,
2122
> .tc-btn.active:hover,
2223
> .tc-btn.active:active {
2324
background: $tc-gray-20;
2425
box-shadow: inset 0 1px 3px 0 rgba($tc-gray-80, 0.38);
2526
cursor: default;
2627
}
28+
29+
@media screen and (max-width: $screen-md - 1px) {
30+
> .tc-btn,
31+
> .tc-btn:first-child,
32+
> .tc-btn:last-child {
33+
border-radius: 2 * $corner-radius;
34+
border-width: 1px;
35+
margin: 5px;
36+
}
37+
}
2738
}
2839
}
29-

src/components/CoderBot/CoderBot.scss

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,24 @@
1313
position: relative;
1414
padding-top: 55px;
1515
text-align: center;
16-
min-height: 606px;
17-
min-width: 768px;
18-
width: 970px;
16+
min-height: 706px;
17+
@media screen and (max-width: $screen-sm - 1px) {
18+
min-height: 780px;
19+
}
1920
margin: 20px auto 0;
2021
background: #ffffff;
2122
.icon-coder-broken {
2223
margin: 6% 20%;
2324
float: left;
25+
@media screen and (max-width: $screen-md - 1px) {
26+
margin: 6% 10%;
27+
}
28+
@media screen and (max-width: $screen-sm - 1px) {
29+
margin: 6% 5%;
30+
}
31+
@media screen and (max-width: 321px) {
32+
margin: 6% 1%;
33+
}
2434
}
2535
background-size: 307px 300px;
2636
a{
@@ -36,24 +46,52 @@
3646
letter-spacing: 0px;
3747
padding: 0 168px 25px 168px;
3848
line-height: inherit;
49+
@media screen and (max-width: 1000px - 1px) {
50+
padding: 0 100px 25px 100px;
51+
}
52+
@media screen and (max-width: $screen-md - 1px) {
53+
padding: 0 28px 25px 28px;
54+
}
55+
@media screen and (max-width: $screen-sm - 1px) {
56+
font-size: 30px;
57+
}
3958
}
4059
p{
4160
text-align: left;
61+
min-height: 120px;
4262
padding: 0 168px;
4363
@include roboto;
4464
font-size: $tc-label-lg;
4565
color: $tc-gray-70;
4666
letter-spacing: 0px;
4767
line-height: 23px;
68+
@media screen and (max-width: 1000px - 1px) {
69+
padding: 0 100px;
70+
}
71+
@media screen and (max-width: $screen-md - 1px) {
72+
padding: 0 28px;
73+
}
4874
}
4975
span{
5076
position: absolute;
5177
left: 49%;
52-
top: 45%;
78+
bottom: 25%;
5379
@include roboto-medium;
5480
font-size: 190px;
5581
color: $tc-orange-30;
5682
letter-spacing: 0px;
83+
@media screen and (max-width: $screen-md - 1px) {
84+
font-size: 150px;
85+
bottom: 30%;
86+
}
87+
@media screen and (max-width: $screen-sm - 1px) {
88+
font-size: 100px;
89+
bottom: 45%;
90+
}
91+
@media screen and (max-width: 400px) {
92+
font-size: 65px;
93+
left: 63%;
94+
}
5795
}
5896
}
5997
}

src/components/Grid/GridView.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@
599599
min-height: 0;
600600
min-width: 0;
601601
padding-bottom: 0;
602-
padding-right: 9 * $base-unit;
602+
padding-right: 0;
603603
}
604604

605605
.row:not(.header) .flex-item-title.item-customer {

src/components/Maintenance/Maintenance.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import React from 'react'
12
import './Maintenance.scss'
23

34
const Maintenance = () => {
45
return (
56
<section className="content content-error">
67
<div className="container">
7-
<div className="page-error">
8+
<div className="page-error-maintenance">
89
<h3>Welcome to Topcoder Connect</h3>
910
<p>We are temporarily down for maintenance. We will be back shortly, after Coder is done with all the amazing optimizations.</p>
1011
</div>

src/components/Maintenance/Maintenance.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
}
99
}
1010

11-
.page-error {
11+
.page-error-maintenance {
1212
border-radius:4px;
1313
position: relative;
1414
padding-top: 55px;
1515
text-align: center;
1616
min-height: 606px;
17-
min-width: 768px;
18-
width: 970px;
1917
margin: 20px auto 0;
18+
background: #ffffff;
2019
/* background: $tc-white url('../../assets/icons/coder-broken.svg') no-repeat 18% 85%; */
2120
background-size: 307px 300px;
2221
a{
@@ -30,17 +29,25 @@
3029
@include roboto-medium;
3130
font-size: 48px;
3231
letter-spacing: 0px;
33-
padding: 0 168px 25px 168px;
32+
padding: 0 28px 25px 28px;
3433
line-height: inherit;
34+
@media screen and (max-width: $screen-sm - 1px) {
35+
font-size: 30px;
36+
}
3537
}
3638
p{
37-
text-align: left;
39+
text-align: center;
3840
padding: 0 168px;
3941
@include roboto;
4042
font-size: $tc-label-lg;
4143
color: $tc-gray-70;
4244
letter-spacing: 0px;
4345
line-height: 23px;
46+
padding: 0 28px 25px 28px;
47+
48+
@media screen and (max-width: $screen-md - 1px) {
49+
text-align: justify;
50+
}
4451
}
4552
span{
4653
position: absolute;

0 commit comments

Comments
 (0)