Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit c80e149

Browse files
authored
Merging 1.2 features into Master
1 parent f4673a0 commit c80e149

29 files changed

+841
-142
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ WORKDIR /sherlock/frontsherlock/
1919
RUN apt-get update && \
2020
apt-get install -y curl && \
2121
curl -sL https://deb.nodesource.com/setup_8.x | bash && \
22-
apt-get install -y nodejs && \
22+
apt-get install -y nodejs bzip2 && \
2323
npm install && \
2424
npm run build && \
2525
rm -rf /sherlock/frontsherlock/node_modules && \

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,43 @@ others involved in regression testing.
77

88
Automated regression tests are ideal, but sometimes do not cover 100% of functionality. Additionally, it can be helpful for non-technical people to help test your code.
99

10+
1011
To run locally you will need to have the latest version of Docker Community Edition and docker-compose.
1112
Please, visit the following pages for information on how to install these tools.
1213

1314
- docker: https://docs.docker.com/engine/installation/
1415
- docker-compose: https://docs.docker.com/compose/install/
1516

17+
If you are using windows, consider installing 'bash' for windows (https://msdn.microsoft.com/en-us/commandline/wsl/about) in order to make use of the setup _bashscript_.
18+
1619
### Setup
1720

1821
As easy as this:
1922

20-
docker-compose up -d
23+
sh sherlock.sh fast-setup
2124

2225

2326
This will download the compiled version of Sherlock with all the dependencies. You will be ready to use Sherlock as soon the command finishes.
2427

2528
You can also build the image yourself, but it may take a while (if you build it on a small machine like the entry machine on digitalocean, you might face some troubles due to lack of memory):
2629

2730

28-
docker-compose -f docker-compose_build.yml build
29-
docker-compose -f docker-compose_build.ymlup -d
31+
sh sherlock.sh build-setup
32+
33+
34+
Don't delete the folders called 'database' inside the Sherlock folder, since it's used by the docker to persist the mysql data.
35+
36+
### Update
37+
38+
If you started to use Sherlock with the _build-setup_ or also want to add your local changes:
39+
40+
sh sherlock.sh build-upgrade
41+
3042

43+
If you used the _fast-setup_ option, you can update using:
3144

45+
sh sherlock.sh fast-upgrade
3246

33-
Don't delete the folder called 'database' inside the Sherlock folder, since it's used by the docker to persist the mysql data.
3447

3548
### Demo
3649

docs/index.rst

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SherlockQA
66
Deploy in production with Docker
77
------------
88

9-
To run locally you will need to have the last version of docker Comunity Edition and docker-compose. Please, visit the following pages to know how to install them in your system.
9+
To run locally you will need to have the last version of docker Community Edition and docker-compose. Please, visit the following pages to know how to install them in your system.
1010

1111
docker: https://docs.docker.com/engine/installation/
1212
docker-compose: https://docs.docker.com/compose/install/
@@ -15,21 +15,32 @@ After that you can:
1515

1616
.. code-block:: console
1717
18-
docker-compose up -d
18+
sh sherlock.sh fast-setup
1919
2020
2121
This will download the compiled version of Sherlock with all the dependencies and you will be ready to use as soon the command finish.
2222

23-
You can also build the image yourself, but it may take a while (if you build it on a small machine like the entry machine on digitalocean, you might face some troubles because of lack of memory):
23+
You can also build the image yourself, but it may take a while (if you build it on a small machine like the entry machine on digitalocean, you might face some troubles because lack of memory):
24+
2425

2526
.. code-block:: console
2627
27-
docker-compose -f docker-compose_build.yml build
28-
docker-compose -f docker-compose_build.ymlup -d
28+
sh sherlock.sh build-setup
29+
30+
31+
Don't delete the folders called 'database' inside the Sherlock folder, since it's used by the docker to persist the mysql data.
32+
33+
34+
/sUpdate
35+
36+
If you started to use Sherlock with the _build-setup_ or also want to add your local changes:
37+
38+
sh sherlock.sh build-upgrade
2939

3040

41+
If you used the _fast-setup_ option, you can update using:
3142

32-
Don't delete the folder called 'database' inside the Sherlock folder, since it's used by the docker to persist the MySQL data.
43+
sh sherlock.sh fast-upgrade
3344

3445

3546

frontsherlock/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
"chartist": "^0.11.0",
1717
"chartist-plugin-legend": "^0.6.2",
1818
"jquery": "^3.2.1",
19-
"uikit": "^3.0.0-beta.28",
20-
"vue": "^2.4.2",
19+
"uikit": "^3.0.0-beta.35",
20+
"vue": "^2.5.2",
2121
"vue-resource": "^1.3.4",
22-
"vue-router": "^2.7.0"
22+
"vue-router": "^3.0.1",
23+
"vue-select": "github:sagalbot/vue-select"
2324
},
2425
"devDependencies": {
2526
"autoprefixer": "^6.7.2",
@@ -73,7 +74,7 @@
7374
"sinon": "^2.1.0",
7475
"sinon-chai": "^2.8.0",
7576
"url-loader": "^0.5.8",
76-
"vue-loader": "^12.2.2",
77+
"vue-loader": "^13.5.0",
7778
"vue-style-loader": "^3.0.1",
7879
"vue-template-compiler": "^2.4.2",
7980
"webpack": "^2.7.0",

frontsherlock/src/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="menu_Component" style="padding-top:20px">
3-
<center><span style="font-size:12px"> sherlock qa testmanager - v1.1.0 | <a uk-icon="icon: github-alt" href="https://github.com/leoGalani/sherlock"> source code </a></span></center>
3+
<center><span style="font-size:12px"> sherlock qa testmanager - v1.2.0 | <a uk-icon="icon: github-alt" href="https://github.com/leoGalani/sherlock"> source code </a></span></center>
44
</div>
55
</template>
66

frontsherlock/src/Menu.vue

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<span>
2121
<i class="material-icons" style="color: rgb(248, 248, 248); margin-top:5px">build</i>
2222
</span>
23-
<span style="padding: 6px; color: rgb(248, 248, 248);">
24-
{{project_name}} Settings
23+
<span style="padding: 6px; color: rgb(248, 248, 248);" data-test-id="project_settings_dropdown">
24+
Project Settings
2525
</span>
2626
</span>
2727
</a>
@@ -75,32 +75,28 @@ export default {
7575
methods: {
7676
logoff () {
7777
UIkit.notification('See you later!', {timout: '700'})
78-
window.localStorage.removeItem('user')
79-
window.localStorage.removeItem('auth')
8078
this.$router.push({path: '/login'})
8179
},
8280
getUserInfo () {
8381
this.currentUser = JSON.parse(window.localStorage.getItem('user'))
8482
},
8583
getProjectInfo () {
86-
this.$http.get('project/show/' + this.$route.params.projectId).then(function (response) {
84+
this.$http.get('project/show/' + this.projectId).then(function (response) {
8785
this.project = response.body
8886
this.project_name = this.project.name
8987
},
9088
function (response) {
9189
})
9290
}
9391
},
94-
updated: function () {
95-
if (['login', 'register', 'dashboard'].indexOf(this.$route.name) === -1) {
96-
this.projectId = this.$route.params.projectId
97-
}
98-
},
9992
watch: {
10093
$route: function () {
10194
if (['login', 'register'].indexOf(this.$route.name) === -1) {
10295
this.getUserInfo()
103-
if (['dashboard', 'new_project', 'settings', 'user_edit'].indexOf(this.$route.name) === -1) {
96+
if (['dashboard'].indexOf(this.$route.name) === -1) {
97+
this.projectId = this.$route.params.projectId
98+
}
99+
if (['dashboard', 'new_project', 'settings', 'user_edit', '404'].indexOf(this.$route.name) === -1) {
104100
this.getProjectInfo()
105101
} else {
106102
this.project_name = ''
-1.68 KB
Binary file not shown.
-1.11 KB
Binary file not shown.
Loading

frontsherlock/src/assets/main.css

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,30 @@ h1, h2, h3, h4{
2525
font-size: 30px;
2626
}
2727

28+
#small_loading{
29+
background-color: #b2b2bb;
30+
border-radius: 10px;
31+
color: #fff;
32+
top: 0;
33+
bottom: 0;
34+
left: 0;
35+
right: 0;
36+
margin: 5px auto;
37+
position: absolute;
38+
width: 140px;
39+
height:28px;
40+
padding: 13px;
41+
font-size: 20px;
42+
}
43+
2844
#loading > center{
2945
margin-top: 20%;
3046
}
3147

48+
fieldset{
49+
border: 1px solid #ababab;
50+
}
51+
3252
/* HEADER */
3353
.uk-navbar-item, .uk-navbar-nav>li>a, .uk-navbar-toggle {
3454
height: 70px;
@@ -41,13 +61,10 @@ h1, h2, h3, h4{
4161
width:0;
4262
height:0;
4363
position:absolute;
44-
45-
4664
border-bottom: 8px solid gray;
4765
border-right:8px solid transparent;
4866
border-left:8px solid transparent;
4967
left:40%;
50-
5168
top:-8px;
5269
}
5370

@@ -61,24 +78,28 @@ h1, h2, h3, h4{
6178

6279
.project_box {
6380
background: #fff;
64-
border-radius: 2px;
81+
border-radius: 4px;
6582
display: inline-block;
6683
height: 230px;
6784
margin: 1rem;
6885
position: relative;
6986
width: 200px;
70-
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
87+
border: 1px solid #e6e6e6;
7188
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
7289
padding: 8px;
7390
}
7491

7592
.project_box:hover {
76-
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
93+
border: 1px solid #bdbdbd;
7794
}
7895

7996

8097
/* COMMON */
8198

99+
.uk-switcher>* {
100+
width: 98%;
101+
}
102+
82103
.uk-link, a {
83104
display:block;
84105
text-decoration: none !important;
@@ -168,4 +189,18 @@ input[type=number]:focus {
168189
border-color: #453d3f;
169190
}
170191

171-
/* SWITCHER */
192+
.fade-enter-active, .fade-leave-active {
193+
transition: opacity .5s;
194+
}
195+
.fade-enter, .fade-leave-to {
196+
opacity: 0;
197+
}
198+
199+
.uk-label {
200+
background: #546475;
201+
border-radius: 4px;
202+
}
203+
204+
.uk-input, .uk-button-default, .uk-textarea {
205+
border-radius: 4px;
206+
}

frontsherlock/src/components/Dashboard.vue

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,14 @@
6363
</transition>
6464
<div v-if="showGreetings">
6565
<hr>
66-
<center><h2 style="margin-left:20px"><span class="uk-margin-small-right" uk-icon="icon: heart"></span> Hey, this seems like a brand new installation! Thanks for giving sherlock a try! <span class="uk-margin-small-right" uk-icon="icon: heart"></span></h2>
66+
<center>
6767
<h3> Hmm seems like you don't have any project yet... </h3>
6868
<img src='../assets/img/sherlock_raposa_bored.png'>
6969
<h3>
70-
You can start creating your first one here: <router-link :to="{ name: 'new_project' }" title="New Project" uk-tooltip="delay: 300" > <i class="material-icons" style="color: rgb(117, 117, 117);">note_add</i> </router-link>
70+
You can start creating your first one here: <router-link :to="{ name: 'new_project' }" title="New Project">Add new Project <i class="material-icons" style="color: rgb(117, 117, 117);">note_add</i> </router-link>
7171
</h3>
72-
73-
<h3> Also checkout a demo on how to use Sherlock </h3>
74-
<iframe width="560" height="315" src="https://www.youtube.com/embed/bAMoUoXXLUU" frameborder="0" allowfullscreen></iframe>
75-
76-
7772
</center>
78-
79-
8073
</div>
81-
8274
</div>
8375
</template>
8476

@@ -152,7 +144,7 @@ export default {
152144
153145
.filter_state {
154146
border: solid 1px #333;
155-
border-radius: 7px;
147+
border-radius: 2px;
156148
padding: 0px 20px;
157149
line-height: 28px;
158150
text-transform: none;
@@ -161,14 +153,14 @@ export default {
161153
font-weight: 500;
162154
z-index: -1;
163155
transform: scale(1);
164-
box-shadow: 3px 4px 7px -4px #000000;
165-
-webkit-box-shadow: 3px 4px 7px -4px #000000;
166-
-moz-box-shadow: 3px 4px 7px -4px #000000;
167-
box-shadow: 3px 4px 7px -4px #444444;
156+
box-shadow: 0px 4px 9px -3px #3333;
157+
-webkit-box-shadow: 0px 4px 9px -3px #3333;
158+
-moz-box-shadow: 0px 4px 9px -3px #3333;
159+
box-shadow: 0px 4px 9px -3px #3333;
168160
}
169161
.filter_state_active{
170162
color: #fff !important;
171-
background-color: #2f5c86;
163+
background-color: #2578bf;
172164
font-weight: 500;
173165
z-index: -1;
174166
transform: scale(.9);
@@ -178,11 +170,4 @@ export default {
178170
box-shadow: 3px 4px 7px -4px #444444;
179171
}
180172
181-
.fade-enter-active, .fade-leave-active {
182-
transition: opacity .5s
183-
}
184-
.fade-enter, .fade-leave-to {
185-
opacity: 0
186-
}
187-
188173
</style>

frontsherlock/src/components/Login.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export default {
9191
}
9292
},
9393
created: function () {
94+
window.localStorage.removeItem('user')
95+
window.localStorage.removeItem('auth')
9496
this.interval = setInterval(function () {
9597
this.checkOpenRegister()
9698
}.bind(this), 7000)

0 commit comments

Comments
 (0)