Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
4fe8cff6
Commit
4fe8cff6
authored
Oct 25, 2016
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #12186
parent
41c3a37b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
160 deletions
+0
-160
src/main/webapp/plugins/symphony-news-getter/lang_en_US.properties
...webapp/plugins/symphony-news-getter/lang_en_US.properties
+0
-24
src/main/webapp/plugins/symphony-news-getter/lang_zh_CN.properties
...webapp/plugins/symphony-news-getter/lang_zh_CN.properties
+0
-24
src/main/webapp/plugins/symphony-news-getter/plugin.ftl
src/main/webapp/plugins/symphony-news-getter/plugin.ftl
+0
-64
src/main/webapp/plugins/symphony-news-getter/plugin.properties
...ain/webapp/plugins/symphony-news-getter/plugin.properties
+0
-32
src/main/webapp/plugins/symphony-news-getter/style.css
src/main/webapp/plugins/symphony-news-getter/style.css
+0
-16
No files found.
src/main/webapp/plugins/symphony-news-getter/lang_en_US.properties
deleted
100644 → 0
View file @
41c3a37b
#
# Copyright (c) 2010-2016, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: Language configurations(en_US) of plugin symphony-news-getter.
# Version: 1.0.0.2, Feb 20, 2016
# Author: Liang Ding
# Author: Liyuan Li
#
b3logAnnounceLabel
=
<a href="https://hacpai.com/tags/B3log%20Announcement" target="_blank">B3log Announcements</a>
\ No newline at end of file
src/main/webapp/plugins/symphony-news-getter/lang_zh_CN.properties
deleted
100644 → 0
View file @
41c3a37b
#
# Copyright (c) 2010-2016, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: Language configurations(zh_CN) of plugin symphony-news-getter.
# Version: 1.0.0.3, Feb 20, 2016
# Author: Liang Ding
# Author: Liyuan Li
#
b3logAnnounceLabel
=
<a href="https://hacpai.com/tags/B3log%20Announcement" target="_blank">B3log
\u
516c
\u
544a</a>
src/main/webapp/plugins/symphony-news-getter/plugin.ftl
deleted
100644 → 0
View file @
41c3a37b
<link type="text/css" rel="stylesheet" href="${staticServePath}/plugins/symphony-news-getter/style.css"/>
<div id="symphonyNewsGetterPanel">
<div class="module-panel">
<div class="module-header">
<h2>${b3logAnnounceLabel}</h2>
</div>
<div class="module-body padding12">
<div id="symphonyNewsGetter">
</div>
</div>
</div>
</div>
<script type="text/javascript">
plugins.symphonyNewsGetter = {
init: function () {
$("#loadMsg").text("${loadingLabel}");
$("#symphonyNewsGetter").css("background",
"url(${staticServePath}/images/loader.gif) no-repeat scroll center center transparent");
$.ajax({
url: "https://hacpai.com/apis/news",
type: "GET",
dataType:"jsonp",
jsonp: "callback",
error: function(){
$("#symphonyNewsGetter").html("Loading B3log Announcement failed :-(").css("background", "none");
},
success: function(data, textStatus){
var articles = data.articles;
if (0 === articles.length) {
return;
}
var listHTML = "<ul>";
for (var i = 0; i < articles.length; i++) {
var article = articles[i];
var articleLiHtml = "<li>"
+ "<a target='_blank' href='" + article.articlePermalink + "'>"
+ article.articleTitle + "</a> <span class='date'>" + $.bowknot.getDate(article.articleCreateTime, 1); + "</span></li>"
listHTML += articleLiHtml
}
listHTML += "</ul>";
$("#symphonyNewsGetter").html(listHTML).css("background", "none");
}
});
$("#loadMsg").text("");
}
};
/*
* 添加插件
*/
admin.plugin.add({
"id": "symphonyNewsGetter",
"path": "/main/panel1",
"content": $("#symphonyNewsGetterPanel").html()
});
// 移除现有内容
$("#symphonyNewsGetterPanel").remove();
</script>
src/main/webapp/plugins/symphony-news-getter/plugin.properties
deleted
100644 → 0
View file @
41c3a37b
#
# Copyright (c) 2010-2016, b3log.org & hacpai.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: Description of plugin symphony-news-getter.
# Version: 1.0.0.2, Nov 8, 2012
# Author: Liang Ding
#
rendererId
=
admin-main.ftl
author
=
<a href="http://88250.b3log.org">88250</a> & <a href="http://vanessa.b3log.org">Vanessa</a>
name
=
Symphony News Getter
version
=
0.0.3
types
=
ADMIN
classesDirPath
=
/WEB-INF/classes/
# TODO: libDirPath=/WEB-INF/lib/
pluginClass
=
eventListenerClasses
=
\ No newline at end of file
src/main/webapp/plugins/symphony-news-getter/style.css
deleted
100644 → 0
View file @
41c3a37b
/*
* plugin style for symphony-news-getter
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.0.0.1, Aug 9, 2011
*/
#symphonyNewsGetter
ul
{
list-style
:
none
;
}
#symphonyNewsGetter
a
{
text-decoration
:
none
;
}
#symphonyNewsGetter
.date
{
color
:
#686868
;
font-size
:
12px
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment