browser_app_base 0.0.6 → 0.0.7

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: ee14b20cd2c842b0c470d9b96f31549ae576912a5e79afcbb4b44b35d3cfc740
4
- data.tar.gz: 746081592fef24334ae14f50fbcddb672fa29103b800ea8bd84048711ff0ec9e
3
+ metadata.gz: 70e5ff9237fd7823d8fef3d11b63e43cc65129318f9e77d161d835d0d769efda
4
+ data.tar.gz: 547b18815dc4d1bd495fbaa894fbb61d94af21ae471ee6f05629fd819838b6dd
5
5
  SHA512:
6
- metadata.gz: a0360895d392e1fdbf2930c73c82ba09a8551ea15014ee30f5e71393b4b04d48ea52773f174cc4eb884eea85574e338bf0d8661362c3c4f1cda8512429466f4c
7
- data.tar.gz: a48af4eeb30f310d5f601e19a212fb2c4e4239b61952ab33b2cc50d9e2392dc14b7fec672abc64507aadf55d415831cb194048af9c8903e7fb7e604476895441
6
+ metadata.gz: 3ec9f83afee710c1fe4aa984823c7cded71ec3ca24dd586c24c428480156c4a37a7274de7feba4fd7890c7eae2964b6706fc83e53a3d9afe234f770b35323a91
7
+ data.tar.gz: 49f96d43d8eab8f61ccfc60b7506302d137193965b0f47cdf794c914b7d73e9f232b07b3413d128c4e1e2117a4f52ea6dd15a03d1e0fec452d3736a48a278b4f
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrowserAppBase
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
@@ -74,6 +74,6 @@ configure do
74
74
 
75
75
  end
76
76
 
77
- #\ --port 54068
77
+ #\ --port 55974
78
78
 
79
79
  run Sinatra::Application
@@ -11,12 +11,15 @@
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:54068/js/main.js"></script>
15
- <link rel="stylesheet" href="http://localhost:54068/css/index.css" type="text/css">
14
+ <script src="http://localhost:55974/js/main.js"></script>
15
+ <link rel="stylesheet" href="http://localhost:55974/css/index.css" type="text/css">
16
16
  </head>
17
17
 
18
18
  <body>
19
- <h4>サンプル</h4>
19
+ <div id="msg_dialog" style="display:none;">
20
+ <div id="msg_text">message</div>
21
+ </div>
22
+ <h4>GrepFind</h4>
20
23
  <hr>
21
24
  <table>
22
25
  <tr>
@@ -5,6 +5,27 @@ var $auto_scroll = true;
5
5
  var dialog = null;
6
6
 
7
7
  function open_dialog(msg) {
8
+ console.log("msg=" + msg);
9
+ $("#msg_text").html(msg);
10
+ $("#msg_dialog").dialog({
11
+ modal: true
12
+ , show: "slide" //表示時のアニメーション
13
+ , hide: "slide" //閉じた時のアニメーション
14
+ , title: "Message" //ダイアログのタイトル
15
+ , width: 400 //ダイアログの横幅
16
+ , height: 200 //ダイアログの高さ
17
+ , resizable: true //リサイズ可
18
+ , closeOnEscape: false //[ESC]キーで閉じられなくする
19
+ , draggable: true //ダイアログの移動を可に
20
+ , buttons: {
21
+ "OK": function () { //Cancelボタン
22
+ $(this).dialog("close");
23
+ }
24
+ }
25
+ });
26
+ }
27
+
28
+ function open_dialog_org(msg) {
8
29
  var top = window.screenTop + 10;
9
30
  var left = window.screenLeft + 10;
10
31
  if (dialog != null) {
@@ -80,7 +101,7 @@ function autocomp(id, file_kind) {
80
101
  },
81
102
  source: function (req, resp) {
82
103
  $.ajax({
83
- url: "http://localhost:54068/search?path=" + $("#" + id).val() + "&kind=" + file_kind,
104
+ url: "http://localhost:55974/search?path=" + $("#" + id).val() + "&kind=" + file_kind,
84
105
  type: "GET",
85
106
  cache: false,
86
107
  dataType: "json",
@@ -255,19 +276,19 @@ function openFile(file) {
255
276
  // 起動時の処理
256
277
  $(document).ready(function () {
257
278
  // サーバに接続
258
- server_connect("ws://localhost:54068/wsserver")
279
+ server_connect("ws://localhost:55974/wsserver")
259
280
  // ウインドウサイズ
260
281
  var width = 800;
261
282
  var height = 600;
262
- $(window).resize(function() {
263
- $(".outarea").height( $(window).height() - 250 );
283
+ $(window).resize(function () {
284
+ $(".outarea").height($(window).height() - 300);
264
285
  });
265
286
  // ウインドウの位置
266
287
  $(function () {
267
288
  window.resizeTo(width, height);
268
289
  window.moveTo((window.screen.width / 2) - (width / 2), (screen.height / 2) - (height / 2));
269
290
  //window.moveTo(0,0);
270
- $(".outarea").height( $(window).height() - 250 );
291
+ $(".outarea").height($(window).height() - 300);
271
292
  });
272
293
 
273
294
  $('.outarea').scroll(function () {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser_app_base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - masataka kuwayama