browser_app_base 0.0.7 → 0.0.8

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: 70e5ff9237fd7823d8fef3d11b63e43cc65129318f9e77d161d835d0d769efda
4
- data.tar.gz: 547b18815dc4d1bd495fbaa894fbb61d94af21ae471ee6f05629fd819838b6dd
3
+ metadata.gz: bf40fc8ffcf491a1fba31012f2e8e3aba1089dc14a8de381f420b33a51d2ca3a
4
+ data.tar.gz: 3279233418b767f81a01350e5eb27f102f84f7b2c791d784ca0d25f8c58508c7
5
5
  SHA512:
6
- metadata.gz: 3ec9f83afee710c1fe4aa984823c7cded71ec3ca24dd586c24c428480156c4a37a7274de7feba4fd7890c7eae2964b6706fc83e53a3d9afe234f770b35323a91
7
- data.tar.gz: 49f96d43d8eab8f61ccfc60b7506302d137193965b0f47cdf794c914b7d73e9f232b07b3413d128c4e1e2117a4f52ea6dd15a03d1e0fec452d3736a48a278b4f
6
+ metadata.gz: d264ee2f1c8d9aed28ea36c523c400d445570fd219271eece7135655831bb02d75c1ad5e4b77eda4fbba7fdeb32ebc7986765c43cc9702e4b8a32ee1351bf199
7
+ data.tar.gz: 063d377c14dca4341cf963788c3de83a6bc7a6e6ddb93c5abc0bba06f40aa1cbb01596e19b95640ca7a99c11d5b996e1226c73326d9a95305351510dfb5e1a50
data/README.md CHANGED
@@ -61,6 +61,19 @@ ui application sample
61
61
  $ cd ~/test/
62
62
  $ ruby start.rb
63
63
 
64
+ ## browser setting
65
+
66
+ config/browser.json
67
+ Set the path for your Windows or Linux Chrome browser
68
+
69
+ ```json
70
+ {
71
+ "chrome_win": "start chrome",
72
+ "chrome_linux": "/bin/google-chrome"
73
+ }
74
+ ```
75
+
76
+
64
77
  ## Development
65
78
 
66
79
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrowserAppBase
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.8"
5
5
  end
@@ -74,6 +74,6 @@ configure do
74
74
 
75
75
  end
76
76
 
77
- #\ --port 55974
77
+ #\ --port 53492
78
78
 
79
79
  run Sinatra::Application
@@ -11,8 +11,8 @@
11
11
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
12
12
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
13
13
 
14
- <script src="http://localhost:55974/js/main.js"></script>
15
- <link rel="stylesheet" href="http://localhost:55974/css/index.css" type="text/css">
14
+ <script src="http://localhost:53492/js/main.js"></script>
15
+ <link rel="stylesheet" href="http://localhost:53492/css/index.css" type="text/css">
16
16
  </head>
17
17
 
18
18
  <body>
@@ -101,7 +101,7 @@ function autocomp(id, file_kind) {
101
101
  },
102
102
  source: function (req, resp) {
103
103
  $.ajax({
104
- url: "http://localhost:55974/search?path=" + $("#" + id).val() + "&kind=" + file_kind,
104
+ url: "http://localhost:53492/search?path=" + $("#" + id).val() + "&kind=" + file_kind,
105
105
  type: "GET",
106
106
  cache: false,
107
107
  dataType: "json",
@@ -127,7 +127,8 @@ function select_file_dialog(search_id, file_kind, dialog_id, select_file, file_n
127
127
  $("#" + select_file).click(function () {
128
128
  autocomp(search_id, file_kind);
129
129
  $(".ui-autocomplete").css("z-index", 1000);
130
- $("#" + search_id).val("/");
130
+ console.log("name=" + $("#" + file_name).val());
131
+ $("#" + search_id).val($("#" + file_name).val());
131
132
  $("#" + dialog_id).dialog({
132
133
  modal: true
133
134
  , show: "slide" //表示時のアニメーション
@@ -276,7 +277,7 @@ function openFile(file) {
276
277
  // 起動時の処理
277
278
  $(document).ready(function () {
278
279
  // サーバに接続
279
- server_connect("ws://localhost:55974/wsserver")
280
+ server_connect("ws://localhost:53492/wsserver")
280
281
  // ウインドウサイズ
281
282
  var width = 800;
282
283
  var height = 600;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser_app_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - masataka kuwayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-26 00:00:00.000000000 Z
11
+ date: 2021-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra