chocomint 1.0.2 → 1.1.0
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 +4 -4
- data/README.md +27 -1
- data/THIRD_PARTY_LICENSES.md +1 -0
- data/lib/chocomint/edit_archive_handlers.rb +323 -0
- data/lib/chocomint/edit_handlers.rb +194 -55
- data/lib/chocomint/server.rb +5 -1
- data/lib/chocomint.rb +1 -1
- data/public/edit/edit.css +72 -3
- data/public/edit/edit.js +515 -118
- data/public/edit/index.html +9 -0
- metadata +16 -1
data/public/edit/index.html
CHANGED
|
@@ -115,6 +115,10 @@
|
|
|
115
115
|
<div id="editor-wrap">
|
|
116
116
|
<div id="editor-tabs" role="tablist"></div>
|
|
117
117
|
<div id="editor"></div>
|
|
118
|
+
<!-- 画像 / PDF / 動画 / 音声のプレビュー領域。メディアタブがアクティブなときだけ表示する。 -->
|
|
119
|
+
<div id="media-view"></div>
|
|
120
|
+
<!-- zip / tar 等アーカイブの第一階層 + メタデータ表示領域。 -->
|
|
121
|
+
<div id="archive-view"></div>
|
|
118
122
|
<div id="editor-empty">ファイルが開かれていません</div>
|
|
119
123
|
</div>
|
|
120
124
|
<div id="rr" class="resizer row" title="ドラッグでエディタ/コンソールの高さを変更"></div>
|
|
@@ -137,6 +141,11 @@
|
|
|
137
141
|
<button id="statusbar-branch" type="button" title="ブランチを切り替え/作成">
|
|
138
142
|
<span class="statusbar-branch-icon">⎇</span><span id="statusbar-branch-name">—</span>
|
|
139
143
|
</button>
|
|
144
|
+
<span class="statusbar-spacer"></span>
|
|
145
|
+
<!-- 改行コード表示。テキストファイルを開いているときだけ表示し、クリックで CRLF/LF を切り替える。 -->
|
|
146
|
+
<button id="statusbar-eol" type="button" title="改行コードを切り替え" hidden>
|
|
147
|
+
<span id="statusbar-eol-name">LF</span>
|
|
148
|
+
</button>
|
|
140
149
|
</div>
|
|
141
150
|
</div>
|
|
142
151
|
<div id="ctx-menu"></div>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chocomint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ひかり (Himeyama)
|
|
@@ -51,6 +51,20 @@ dependencies:
|
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '2.0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: rbzip2
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0.3'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0.3'
|
|
54
68
|
- !ruby/object:Gem::Dependency
|
|
55
69
|
name: sqlite3
|
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -148,6 +162,7 @@ files:
|
|
|
148
162
|
- lib/chocomint/console/server.rb
|
|
149
163
|
- lib/chocomint/console/worker.rb
|
|
150
164
|
- lib/chocomint/console/worker_process.rb
|
|
165
|
+
- lib/chocomint/edit_archive_handlers.rb
|
|
151
166
|
- lib/chocomint/edit_git_handlers.rb
|
|
152
167
|
- lib/chocomint/edit_handlers.rb
|
|
153
168
|
- lib/chocomint/edit_html.rb
|