sn-collab-editor 0.1.9 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 00bf1bffadbb93ee29df7bb020310d7b32eb3349
4
- data.tar.gz: 4a25dbedd626bb881add487c03c6f5a7f82b2e1f
2
+ SHA256:
3
+ metadata.gz: c0a98d64abe58588655852b1d68f8eb4efcb2c5db01a2e35dfea0b3c265ff290
4
+ data.tar.gz: bcaa52bfd373b2048a1c7abf64f908a5b7b0e9c393ea62c7c5a8141550a4d78d
5
5
  SHA512:
6
- metadata.gz: 23bee6eb6f7f001577c90688a85d20d2c5c6205277088d85b545656d55fb265edab285fbdbbefd14659d2cc1d4c9d20cdc8f274538ffab648dd64c5ce9c7899b
7
- data.tar.gz: dad73c9ec3641bb03ed3c93d5718ec500b8ee8bdab7ac36a4b40943277ca50cdf92d06fa172b7e4b7e06d6efb090bd9c9538cbb331a1b4ed0c6b11d97e8c96d0
6
+ metadata.gz: e769f65aed5c5fe70515421c74932a52d1760febe287414c94105de4b01679cfeaa1de5bfdf71c9e9866602f8e5c0f0bcd8fbdf9d1f2db47199105c19f5ba876
7
+ data.tar.gz: 8659819a8f4e464d463b8b0c7a7ef7a528825cb6b36894f1a2e6f86a2ec8309b17503ca1b8094e4a3a804fd6a71d1f5d1ca1aeac1a01736f2fe5e8fdb50fdad5
data/README.md CHANGED
@@ -1,28 +1 @@
1
- # Collab
2
- Short description and motivation.
3
-
4
- ## Usage
5
- How to use my plugin.
6
-
7
- ## Installation
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem 'collab'
12
- ```
13
-
14
- And then execute:
15
- ```bash
16
- $ bundle
17
- ```
18
-
19
- Or install it yourself as:
20
- ```bash
21
- $ gem install collab
22
- ```
23
-
24
- ## Contributing
25
- Contribution directions go here.
26
-
27
- ## License
28
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
1
+ More information can be found on the [Standard Notes website](https://standardnotes.org/extensions/collaborative-editor).
@@ -20,6 +20,8 @@ document.addEventListener("DOMContentLoaded", function(event) {
20
20
  mode: "markdown"
21
21
  });
22
22
 
23
+ editor.setSize("100%", "100%");
24
+
23
25
  editor.on("change", function(cm, change){
24
26
  if(isSubscribedToDoc) {
25
27
  App.textEditorDidMakeChanges(getEditorValue());
@@ -27,10 +27,12 @@ html, body {
27
27
  height: 100%;
28
28
  display: flex;
29
29
  flex-direction: column;
30
+ position: relative;
30
31
  }
31
32
 
32
33
  .CodeMirror {
33
- flex: 1;
34
+ flex: 1 1 auto;
35
+ flex-grow: 1;
34
36
  width: 100%;
35
37
  height: 100%;
36
38
  resize: none;
@@ -41,6 +43,8 @@ html, body {
41
43
  font-family: monospace;
42
44
  margin-top: 10px;
43
45
  padding: 0;
46
+ position: absolute;
47
+ top: 0; right: 0; bottom: 0; left: 0;
44
48
  }
45
49
 
46
50
  .url-wrapper {
@@ -49,7 +53,10 @@ html, body {
49
53
  font-size: 10px;
50
54
  margin-bottom: 3px;
51
55
 
52
- opacity: 0.3;
56
+ &.faded {
57
+ opacity: 0.3;
58
+ }
59
+
53
60
 
54
61
  &:hover {
55
62
  opacity: 1.0;
@@ -65,14 +72,32 @@ html, body {
65
72
  font-size: 10px;
66
73
  text-decoration: none;
67
74
 
68
-
69
- &:visited { text-decoration: none; color:black; }
70
75
  &:hover {
71
- text-decoration: underline;
72
76
  color: black;
77
+ text-decoration: underline;
73
78
  }
74
79
  }
75
80
  }
81
+ a {
82
+ text-decoration: none;
83
+ &:hover {
84
+ color: black;
85
+ text-decoration: underline;
86
+ }
87
+ }
88
+ a:visited { text-decoration: none; color:black; }
89
+
90
+ #footer {
91
+ margin-top: 16px;
92
+ #encryption-status {
93
+ float: left;
94
+ }
95
+
96
+ #more-info {
97
+ float: right;
98
+ }
99
+ }
100
+
76
101
 
77
102
  * {
78
103
  box-sizing: border-box;
@@ -3,17 +3,31 @@
3
3
  <div id="wrapper">
4
4
  <% if @doc %>
5
5
 
6
- <div id="viewing-url-wrapper" class="url-wrapper">
6
+ <div id="viewing-url-wrapper" class="url-wrapper faded">
7
7
  <span class="label">Viewing URL</span>:
8
8
  <a id="viewing-url" class="url" target="_blank"></a>
9
9
  </div>
10
10
 
11
- <div id="editing-url-wrapper" class="url-wrapper">
11
+ <div id="editing-url-wrapper" class="url-wrapper faded">
12
12
  <span class="label">Editing URL</span>:
13
13
  <a id="editing-url" class="url" target="_blank"></a>
14
14
  </div>
15
15
 
16
+ <div class="url-wrapper">
17
+ <a class="label url" href="/collab" target="_blank">Create new document</a>
18
+ </div>
19
+
16
20
  <textarea id="editor" name="editor"></textarea>
21
+
22
+ <div id="footer">
23
+ <div id="encryption-status" class="url-wrapper faded">
24
+ <span class="label">Encryption status: end-to-end.</span>
25
+ </div>
26
+ <div id="more-info" class="url-wrapper faded">
27
+ <a class="label" href="https://standardnotes.org/extensions/collaborative-editor" target="_blank">More Info</a>
28
+ <a class="label" style="margin-left: 4px;" href="https://github.com/standardnotes/collab-editor" target="_blank">Source</a>
29
+ </div>
30
+ </div>
17
31
  <% else %>
18
32
 
19
33
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Collab
2
- VERSION = '0.1.9'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sn-collab-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Standard Notes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-24 00:00:00.000000000 Z
11
+ date: 2020-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.1
19
+ version: '5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.1
26
+ version: '5'
27
27
  description: Standard Notes editor with collaboration abilities.
28
28
  email:
29
29
  - hello@standardnotes.org
@@ -90,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.4.8
93
+ rubygems_version: 3.0.3
95
94
  signing_key:
96
95
  specification_version: 4
97
96
  summary: Standard Notes editor with collaboration abilities.