ish_manager 0.1.8.466 → 0.1.8.468

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a683cfef772c003347453411d5e573a99e0e728dd991e8f8992fe6aa1f513cb
4
- data.tar.gz: cc083c29d80e582b0419d54416a795ea526786361486a615e445fc3e052439c1
3
+ metadata.gz: a492c50e41c699fff1935a0b1ad87337f6087cab2698ec5f5f3a6f4402db423f
4
+ data.tar.gz: 8fcde4b2cb64b7861af5f4833e5b45d8abdf716ebd8d35c79bda5262ac0775ce
5
5
  SHA512:
6
- metadata.gz: 05ca4a618c3395a1342c7a4707b81fa0e19d5718f3e97b113c93964bda85639936eed2a965ed392ea494bf52c8e215b30e80c969b552f5df0efdeed5efbfd352
7
- data.tar.gz: 43657b8c0a70855ad030dfb4438a28b9558ad88aba7e3bd57f8fc75ffb737ae2db5347f6a6d8037b99fdf1bd0915de3560217cb6dec69f1215ac0c55d1b00fa8
6
+ metadata.gz: 4a90d269c7d3290e3867d83e7bd47d2ec8f20c7505930f5d1e93155cc72ef7f722d6b2589adc27f3803d03b1fc0df2f607708c403ee904370e3cb6ce6e38636d
7
+ data.tar.gz: 16cd96ad71d52fcfda0f8753f2cdd21d1043aa0b28e114fe04c0c222b3f78654c1f615b08c48e440aadd08cb40b193d604164d6a621b5bdb5324cfd857c02664
@@ -161,6 +161,14 @@ $(function () {
161
161
  $( $(".n-selected")[0] ).html( $("input[type='checkbox'].i-sel:checked").length )
162
162
  })
163
163
 
164
+ // set jwt token
165
+ let jwt_token = localStorage.getItem('jwt_token')
166
+ $('.jwt-token').html( jwt_token )
167
+ $('button.set-jwt-token').click(function () {
168
+ localStorage.setItem('jwt_token', window.jwt_token)
169
+ $('button.set-jwt-token').html('set!')
170
+ })
171
+
164
172
 
165
173
  });
166
174
 
@@ -529,3 +529,14 @@ textarea.large {
529
529
  width: 100px;
530
530
  }
531
531
 
532
+ div.set-jwt-token {
533
+ border: 1px solid orange;
534
+ width: 100%;
535
+
536
+ display: flex;
537
+ overflow: hidden;
538
+
539
+ .jwt-token {
540
+ flex-grow: 1;
541
+ }
542
+ }
@@ -127,8 +127,8 @@ class ::IshManager::LeadsController < IshManager::ApplicationController
127
127
  end
128
128
 
129
129
  def new
130
- @new_lead = ::Lead.new
131
- authorize! :new, @new_lead
130
+ @lead = ::Lead.new
131
+ authorize! :new, @lead
132
132
  end
133
133
 
134
134
  def show
@@ -23,6 +23,10 @@
23
23
 
24
24
  .col-sm-4
25
25
  = button_to 'Logout', main_app.destroy_user_session_path, :method => :delete, data: { confirm: 'Are you sure?' }
26
+ .set-jwt-token
27
+
28
+ = button_tag 'Set JWT', class: 'set-jwt-token'
29
+ .jwt-token
26
30
  = form_for @current_profile, url: profile_path(@current_profile), as: :profile do |f|
27
31
  .flex-row
28
32
  = f.label :per_page
@@ -2,39 +2,50 @@
2
2
  .application-home.max-width
3
3
  %h5 Welcome home
4
4
 
5
- .bordered-card
6
- = form_tag "https://www.cgtrader.com/free-3d-models", method: :get, target: :_blank do
7
- %p Search CGTrader:
8
- = hidden_field_tag "polygons", "lt_5k"
9
- = text_field_tag "keywords"
10
- = submit_tag 'search'
11
-
12
- .bordered-card
13
- = form_tag "https://www.youtube.com/results", method: :get, target: :_blank do
14
- %p Search Youtube:
15
- = text_field_tag "search_query"
16
- = submit_tag 'search'
17
-
18
- .bordered-card
19
- = form_tag "https://wiki.wasya.co/index.php", method: :get, target: :_blank do
20
- %p Search wiki.wasya.co:
21
- = text_field_tag "search"
22
- = submit_tag 'search'
23
-
24
-
25
-
26
- .bordered-card
27
- %h5.center.text-center USD to COP
28
- #root{ width: 500, height: 300 }
29
- %script{src: "/recharts-example-out.js", type: "module"}
30
- %script{type: "module"}
31
-
32
-
33
- import App from '/recharts-example-out.js';
34
-
35
- const el = document.querySelector('#root')
36
- const e = React.createElement;
37
-
38
- const domContainer = document.querySelector('#root');
39
- const root = ReactDOM.createRoot(domContainer);
40
- root.render(e(App));
5
+ .a
6
+
7
+ .bordered-card
8
+ = form_tag "https://www.cgtrader.com/free-3d-models", method: :get, target: :_blank do
9
+ %p Search CGTrader:
10
+ = hidden_field_tag "polygons", "lt_5k"
11
+ = text_field_tag "keywords"
12
+ = submit_tag 'search'
13
+
14
+ .bordered-card
15
+ = form_tag "https://www.youtube.com/results", method: :get, target: :_blank do
16
+ %p Search Youtube:
17
+ = text_field_tag "search_query"
18
+ = submit_tag 'search'
19
+
20
+ .bordered-card
21
+ = form_tag "https://wiki.wasya.co/index.php", method: :get, target: :_blank do
22
+ %p Search wiki.wasya.co:
23
+ = text_field_tag "search"
24
+ = submit_tag 'search'
25
+
26
+
27
+ .bordered-card
28
+ %h5.center KPI's
29
+ %ul
30
+ %li= link_to 'WasyaCo Visits', '#'
31
+
32
+ .bordered-card
33
+ %h5.center KPI sent contexts
34
+ #kpiSentContexts{ width: 500, height: 300 }
35
+ %script{type: "module"}
36
+ import App from '/bundle-kpi-sent-contexts.js';
37
+ const el = document.querySelector('#kpiSentContexts')
38
+ const e = React.createElement;
39
+ const root = ReactDOM.createRoot(el);
40
+ root.render(e(App));
41
+
42
+
43
+ .bordered-card
44
+ %h5.center.text-center USD to COP
45
+ #root{ width: 500, height: 300 }
46
+ %script{type: "module"}
47
+ import App from '/recharts-example-out.js';
48
+ const e = React.createElement;
49
+ const el = document.querySelector('#root');
50
+ const root = ReactDOM.createRoot(el);
51
+ root.render(e(App));
@@ -3,7 +3,7 @@
3
3
  .row
4
4
  .col-sm-12.col-md-6
5
5
  %h1 New Lead
6
- = render 'form', :lead => @new_lead
6
+ = render 'form', lead: @lead
7
7
  .col-sm-12.col-md-6
8
8
  %h1 Import Leads
9
9
  = render 'form_import'
@@ -39,6 +39,7 @@
39
39
  %script{crossorigin: "", src: "https://unpkg.com/react@18/umd/react.development.js"}
40
40
  %script{crossorigin: "", src: "https://unpkg.com/react-dom@18/umd/react-dom.development.js"}
41
41
  %script{src: "https://unpkg.com/prop-types@15.6/prop-types.min.js"}
42
+ %script{src: "https://unpkg.com/axios/dist/axios.min.js"}
42
43
  %script{src: "https://unpkg.com/recharts/umd/Recharts.js"}
43
44
 
44
45
  = csrf_meta_tags
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.466
4
+ version: 0.1.8.468
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2023-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails