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 +4 -4
- data/README.md +13 -0
- data/lib/browser_app_base/version.rb +1 -1
- data/lib/template/config.ru +1 -1
- data/lib/template/index.html +2 -2
- data/lib/template/js/main.js +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf40fc8ffcf491a1fba31012f2e8e3aba1089dc14a8de381f420b33a51d2ca3a
|
4
|
+
data.tar.gz: 3279233418b767f81a01350e5eb27f102f84f7b2c791d784ca0d25f8c58508c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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).
|
data/lib/template/config.ru
CHANGED
data/lib/template/index.html
CHANGED
@@ -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:
|
15
|
-
<link rel="stylesheet" href="http://localhost:
|
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>
|
data/lib/template/js/main.js
CHANGED
@@ -101,7 +101,7 @@ function autocomp(id, file_kind) {
|
|
101
101
|
},
|
102
102
|
source: function (req, resp) {
|
103
103
|
$.ajax({
|
104
|
-
url: "http://localhost:
|
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
|
-
$("#" +
|
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:
|
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.
|
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-
|
11
|
+
date: 2021-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|