skeleton-ui 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ee71bfc01e42e6ff6ec397b551558264a9050f81efd45b7bb8a54d6e76d8378
4
- data.tar.gz: 1062ce8e288cdb5988244cb6457d0410b23037ac95e957ca34be7fe8d63d914a
3
+ metadata.gz: 0e62376e2717c2c788568405072cd5f1b4ea43329d0a95105c5eeefd11dd0eaa
4
+ data.tar.gz: f88b62225cb6f511a7d9f977600c1cbea6533840309835331342a21cd6479ef0
5
5
  SHA512:
6
- metadata.gz: 394e2f7080f558ab68908183f2abfcb0bfb2fd14023d0e1d57b8b00415a055386c154a36e95c70497f52d0c562a2b07373ba5cdaf85d3e22076e301b4492916f
7
- data.tar.gz: 7a62665494d9fc6b86c7cbced266c921cc2b3c6324fe28c816c58460e5b0a314c33bac66ab47eaab6298893b97e9ed7c4b834a21ad1881499f128a22616499c6
6
+ metadata.gz: a6854756e571e31bf01941616708d9443471de9cf968d96dec0673ccf3639e3a77b02e524350e9bf7609ee8c4b1e0cce7558d643328da1a385970b54358a81d7
7
+ data.tar.gz: 1aeb603fa7ab0077882e9c4020f6587078ebb477d4cb9d6dc18a818a4c54f6728bcd0835dd2d044f23e6c4e789c4670d0677a627c23fe8dac0d9e5e21f7affca
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # skeleton
2
- CLI for fast generating multi language page objects from iOS and Android screens.
2
+ Tool for fast generating multi language page objects from iOS and Android screens.
3
3
 
4
4
 
5
5
  Prerequisites:
@@ -32,7 +32,7 @@ Usage:
32
32
 
33
33
  DESCRIPTION:
34
34
 
35
- CLI for fast generating multi language page objects from iOS and Android screens.
35
+ Tool for fast generating multi language page objects from iOS and Android screens.
36
36
 
37
37
  COMMANDS:
38
38
 
@@ -7,7 +7,7 @@ require_relative '../lib/skeleton/logger'
7
7
 
8
8
  module Skeleton
9
9
  program :version, VERSION
10
- program :description, 'CLI for fast generating multi language page objects from iOS and Android screens.'
10
+ program :description, 'Tool for fast generating multi language page objects from iOS and Android screens.'
11
11
 
12
12
  command :scan do |c|
13
13
  c.syntax = 'skeleton scan [options]'
@@ -1,4 +1,4 @@
1
1
  module Skeleton
2
- VERSION ||= '0.1.15'.freeze
2
+ VERSION ||= '0.1.16'.freeze
3
3
  GEM_NAME ||= 'skeleton-ui'.freeze
4
4
  end
@@ -2,24 +2,6 @@
2
2
  max-width: 1240px;
3
3
  }
4
4
 
5
- .aside {
6
- position: relative;
7
- height: 100%;
8
- }
9
-
10
- .aside__img {
11
- position: absolute;
12
- left: 0;
13
- right: 0;
14
- bottom: 0;
15
- top: 0;
16
- -webkit-background-size: cover;
17
- -o-background-size: cover;
18
- background-size: cover;
19
- background-position: center;
20
- background-repeat: no-repeat;
21
- }
22
-
23
5
  .content {
24
6
  background-color: #FFF;
25
7
  padding: 3rem;
@@ -4,6 +4,7 @@
4
4
  <title>Skeleton</title>
5
5
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7
+ <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
7
8
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
8
9
  <link rel="stylesheet" type="text/css" href="/index.css"/>
9
10
  </head>
@@ -13,15 +14,27 @@
13
14
  <div class="py-5 text-center">
14
15
  <h2>Skeleton</h2>
15
16
  </div>
16
- <div class="row" style="min-height: 666px;">
17
- <div class="col-md-4 mb-4">
18
- <div class="aside">
19
- <div class="aside__img" style="width:100%; height:100%; background-image: url(screenshot.png); outline: 1px solid gray;"></div>
20
- </div>
17
+ <div class="row">
18
+ <div class="col-md-3">
19
+ <img id="screenshot" src="screenshot.png" style="width:100%; outline: 1px solid gray;"/>
20
+ <div id="coordinates" class="md-3 text-right">💀</div>
21
+ <script>
22
+ $image = $('#screenshot');
23
+ imgPos = [
24
+ $image.offset().left,
25
+ $image.offset().top,
26
+ $image.offset().left + $image.outerWidth(),
27
+ $image.offset().top + $image.outerHeight()
28
+ ];
29
+
30
+ $image.mousemove(function(e){
31
+ $('#coordinates').html((e.pageX-imgPos[0] + 0.5) + ', '+ (Math.round((e.pageY-imgPos[1]) * 1.5)));
32
+ });
33
+ </script>
21
34
  </div>
22
- <div class="col-md-8">
35
+ <div class="col-md-9">
23
36
  <h4 class="mb-3">Screen Objects:</h4>
24
- <div class="content" id="content" style="max-height: 666px; overflow-y: auto;">
37
+ <div class="content" id="content" style="max-height: 456px; overflow-y: auto;">
25
38
  <pre><code><%= @screen_objects %></code></pre>
26
39
  </div>
27
40
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeleton-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - a.alterpesotskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-07 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler