forked from Botanical/BotanJS
Minor bug fixes for astroedit
sitefile snippet cancel not work cannot delete Article syntaxhighlighter disable quick-code added rss button
This commit is contained in:
parent
73301ce88a
commit
33661021da
@ -48,16 +48,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Popup MessageBox
|
// Popup MessageBox
|
||||||
new MessageBox("Insert site file"
|
new MessageBox(
|
||||||
|
"Insert site file"
|
||||||
, Dand.wrape([
|
, Dand.wrape([
|
||||||
v_snippetInput
|
v_snippetInput
|
||||||
, Dand.wrape([ input_preferred, Dand.textNode( "Preferred" ) ])
|
, Dand.wrape([ input_preferred, Dand.textNode( "Preferred" ) ])
|
||||||
])
|
])
|
||||||
, "OK", "Cancel", visualizer.bind({
|
, "OK", "Cancel"
|
||||||
code: v_snippetInput
|
, visualizer.bind({
|
||||||
, preferred: input_preferred
|
code: v_snippetInput
|
||||||
, stage: this._stage
|
, preferred: input_preferred
|
||||||
})).show();
|
, stage: this._stage
|
||||||
|
})
|
||||||
|
).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
, __applyData = function (e)
|
, __applyData = function (e)
|
||||||
@ -210,16 +213,16 @@
|
|||||||
getData( config.path.info + hash, __applyData.bind({stage: temp, hash: hash}), loadFailed );
|
getData( config.path.info + hash, __applyData.bind({stage: temp, hash: hash}), loadFailed );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i = {
|
||||||
|
_content: hash
|
||||||
|
, _preferred: preferred || "off"
|
||||||
|
, _stage: temp
|
||||||
|
};
|
||||||
|
|
||||||
|
// Set context menu
|
||||||
|
createContext( i, j, handler );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i = {
|
|
||||||
_content: hash
|
|
||||||
, _preferred: preferred || "off"
|
|
||||||
, _stage: temp
|
|
||||||
};
|
|
||||||
|
|
||||||
// Set context menu
|
|
||||||
createContext( i, j, handler );
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (override)
|
if (override)
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
// Independent modules
|
// Independent modules
|
||||||
new Uploader( a_conf.paths.set_file );
|
new Uploader( a_conf.paths.set_file );
|
||||||
new SiteLibrary(
|
new SiteLibrary(
|
||||||
Config.get( "BasePath" )
|
base_path
|
||||||
, a_conf.paths.get_files
|
, a_conf.paths.get_files
|
||||||
, a_conf.paths.set_file
|
, a_conf.paths.set_file
|
||||||
);
|
);
|
||||||
|
@ -83,3 +83,7 @@
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
color: #76400C;
|
color: #76400C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlighter-wrapper {
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
var init = function()
|
var init = function()
|
||||||
{
|
{
|
||||||
|
var aid = Dand.id( "b_entry", true ).getDAttribute( "aid" );
|
||||||
var stage = Dand.glass( "b_delete", true, Dand.id( "b_entry" ) );
|
var stage = Dand.glass( "b_delete", true, Dand.id( "b_entry" ) );
|
||||||
if( !stage.length ) return;
|
if( !stage.length ) return;
|
||||||
|
|
||||||
@ -26,7 +27,7 @@
|
|||||||
|
|
||||||
if( confirmed ) postData(
|
if( confirmed ) postData(
|
||||||
"/ajax/del-article"
|
"/ajax/del-article"
|
||||||
, { "article_id": stage.getDAttribute( "aid" ) }
|
, { "article_id": aid }
|
||||||
, a_deleteSuccess
|
, a_deleteSuccess
|
||||||
, a_deleteFailed
|
, a_deleteFailed
|
||||||
);
|
);
|
||||||
|
@ -2,5 +2,4 @@
|
|||||||
var ns = __namespace( "Astro.Blog.Layout.Article.Latest" );
|
var ns = __namespace( "Astro.Blog.Layout.Article.Latest" );
|
||||||
|
|
||||||
// __import( "Astro.Blog.Components.Entry.Home" );
|
// __import( "Astro.Blog.Components.Entry.Home" );
|
||||||
// __import( "Astro.Blog.Components.Entry.Mega" );
|
|
||||||
})();
|
})();
|
||||||
|
5
botanjs/src/Astro/Blog/Layout/Article/Tag.js
Normal file
5
botanjs/src/Astro/Blog/Layout/Article/Tag.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
(function(){
|
||||||
|
var ns = __namespace( "Astro.Blog.Layout.Article.Tag" );
|
||||||
|
|
||||||
|
// __import( "Astro.Blog.Components.Entry.List" );
|
||||||
|
})();
|
6
botanjs/src/Astro/Blog/Layout/Article/_this.css
Normal file
6
botanjs/src/Astro/Blog/Layout/Article/_this.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.rss-icon circle, .rss-icon path {
|
||||||
|
fill: #444;
|
||||||
|
}
|
||||||
|
.rss-icon:hover circle, .rss-icon:hover path {
|
||||||
|
fill: orangered;
|
||||||
|
}
|
@ -43,6 +43,7 @@
|
|||||||
/** @type {Libraries.SyntaxHighlighter} */
|
/** @type {Libraries.SyntaxHighlighter} */
|
||||||
var synt = __import( SyntaxHighlighter );
|
var synt = __import( SyntaxHighlighter );
|
||||||
synt.defaults["toolbar"] = false;
|
synt.defaults["toolbar"] = false;
|
||||||
|
synt.defaults["quick-code"] = false;
|
||||||
synt.highlight();
|
synt.highlight();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user