mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
prep for loading animation + notes + cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
91ed572a32
commit
8699e47376
@ -44,7 +44,12 @@
|
|||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
/* hide the root editor code... */
|
/* loading indicator */
|
||||||
|
&.loading {
|
||||||
|
/* XXX */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* editor code */
|
||||||
&>.code {
|
&>.code {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1907,6 +1907,7 @@ var Outline = {
|
|||||||
/*/ XXX
|
/*/ XXX
|
||||||
load: function(data){
|
load: function(data){
|
||||||
var that = this
|
var that = this
|
||||||
|
this.dom.classList.add('loading')
|
||||||
data = typeof(data) == 'string' ?
|
data = typeof(data) == 'string' ?
|
||||||
this.parse(data)
|
this.parse(data)
|
||||||
: data instanceof Array ?
|
: data instanceof Array ?
|
||||||
@ -1937,10 +1938,12 @@ var Outline = {
|
|||||||
// //var f = that._syncTextSize.bind(that)
|
// //var f = that._syncTextSize.bind(that)
|
||||||
// for(var e of [...that.outline.querySelectorAll('textarea')]){
|
// for(var e of [...that.outline.querySelectorAll('textarea')]){
|
||||||
// f(e) } }, 0)
|
// f(e) } }, 0)
|
||||||
|
this.dom.classList.remove('loading')
|
||||||
return this },
|
return this },
|
||||||
/*/ // XXX JSON version...
|
/*/ // XXX JSON version...
|
||||||
load: function(data){
|
load: function(data){
|
||||||
var that = this
|
var that = this
|
||||||
|
this.dom.classList.add('loading')
|
||||||
data = typeof(data) == 'string' ?
|
data = typeof(data) == 'string' ?
|
||||||
this.parse(data)
|
this.parse(data)
|
||||||
: data instanceof Array ?
|
: data instanceof Array ?
|
||||||
@ -1963,6 +1966,7 @@ var Outline = {
|
|||||||
// //var f = that._syncTextSize.bind(that)
|
// //var f = that._syncTextSize.bind(that)
|
||||||
// for(var e of [...that.outline.querySelectorAll('textarea')]){
|
// for(var e of [...that.outline.querySelectorAll('textarea')]){
|
||||||
// f(e) } }, 0)
|
// f(e) } }, 0)
|
||||||
|
this.dom.classList.remove('loading')
|
||||||
return this },
|
return this },
|
||||||
//*/
|
//*/
|
||||||
|
|
||||||
|
|||||||
@ -108,17 +108,9 @@ var setup = function(){
|
|||||||
- side margins are a bit too large
|
- side margins are a bit too large
|
||||||
- still need to account for toolbar to the right
|
- still need to account for toolbar to the right
|
||||||
- left side does not need to be as wide
|
- left side does not need to be as wide
|
||||||
- DONE TEST BUG: parser: code blocks do not ignore single back-quotes...
|
|
||||||
collapsed:: true
|
|
||||||
- ```
|
|
||||||
x = `moo`
|
|
||||||
```
|
|
||||||
- _this also leads to double quoting of html..._
|
|
||||||
```
|
|
||||||
x = `<i>moo</i>`
|
|
||||||
```
|
|
||||||
-
|
-
|
||||||
- ## ToDo:
|
- ## ToDo:
|
||||||
|
- add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
|
||||||
- clicking left of the block can select one of parent blocks -- bug or feature??
|
- clicking left of the block can select one of parent blocks -- bug or feature??
|
||||||
- `.json(..)`, `.data(..)`, ... should be signature compatible with `.get(..)` (???)
|
- `.json(..)`, `.data(..)`, ... should be signature compatible with `.get(..)` (???)
|
||||||
- _current state causes constant confusion..._
|
- _current state causes constant confusion..._
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user