Commit 38dc2163 authored by yPhil's avatar yPhil

Sys: PTL.src.js

parent c7f6051e
......@@ -15,11 +15,7 @@ app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.use('/static', express.static(__dirname + '/public'));
app.use('/dist', express.static(__dirname + '/dist'));
app.use('/tmp', express.static(__dirname + '/tmp'));
app.use('/bower', express.static(__dirname + '/bower_components'));
app.use('/', index);
module.exports = app;
......@@ -15,7 +15,7 @@
"start": "pm2 start -f bin/www --watch --log-date-format='YYYY-MM-DD HH:mm Z' --name PTL",
"stop": "pm2 stop PTL",
"build:pre": "uglifyjs public/js/PTL.main.js public/js/PTL.prefs.js public/js/PTL.i18n.js -m -o dist/js/PTL.pre.min.js",
"build:post": "uglifyjs public/js/PTL.utilities.js public/js/PTL.tab.js public/js/PTL.feed.js public/js/PTL.dialog.js public/js/PTL.sync.js -m -o dist/js/PTL.post.min.js",
"build:post": "uglifyjs public/js/PTL.utilities.js public/js/PTL.tab.js public/js/PTL.src.js public/js/PTL.dialog.js public/js/PTL.sync.js -m -o dist/js/PTL.post.min.js",
"build:js": "mkdir -p dist/js cache-favicons && npm run build:pre && npm run build:post",
"watch:js": "onchange 'public/js/*.js' -- npm run build:js",
"postinstall": "npm run build:js && bower install"
......
......@@ -105,8 +105,7 @@ PTL.col = {
}
}).disableSelection();
if (nbOfColumnsInTab > 1 || newCol)
$colLegend.append($colDelButton);
if (nbOfColumnsInTab > 1 || newCol) $colLegend.append($colDelButton);
$colLegend.append($colNewButton);
......
......@@ -136,7 +136,7 @@ PTL.dialog = {
} else {
PTL.feed.populate($button);
PTL.src.populate($button);
}
PTL.tab.saveTabs();
......@@ -286,7 +286,7 @@ PTL.dialog = {
});
$dialog.on('submit', function () {
PTL.feed.populate($sourceRefresh);
PTL.src.populate($sourceRefresh);
PTL.tab.saveTabs();
......@@ -541,7 +541,7 @@ PTL.dialog = {
title: PTL.tr('Add source'),
class: "translate",
click: function() {
PTL.feed.make($('.column').first(), sourceUrl, 'mixed', 8, true);
PTL.src.make($('.column').first(), sourceUrl, 'mixed', 8, true);
PTL.dialog.kill($dialog);
}
}
......
......@@ -48,7 +48,7 @@ var PTL = (function() {
$('body').on('click','#newSourceButton', function() {
var $openGroupPanel = $($('.ui-tabs-active').find('a').attr('href')).find('.column').first();
PTL.sideMenu('close');
PTL.feed.make($openGroupPanel, 'New Feed', 'mixed', 8, true);
PTL.src.make($openGroupPanel, 'New Feed', 'mixed', 8, true);
});
$sourceCodeButton.click(function(event) {
......
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
PTL.feed = {
PTL.src = {
make:function($tab, url, type, limit, clickNew, progress) {
......@@ -61,7 +61,7 @@ PTL.feed = {
});
$feedReload.click(function() {
PTL.feed.populate($(this), progress);
PTL.src.populate($(this), progress);
});
var $feedBody = $('<div>')
......
......@@ -201,7 +201,7 @@ PTL.tab = {
if (!newTab) {
sources.forEach(function(source) {
PTL.feed.make($column, source.url, source.type, source.limit, false, progress);
PTL.src.make($column, source.url, source.type, source.limit, false, progress);
});
}
......
......@@ -118,7 +118,7 @@
<script src="/static/js/PTL.utilities.js"></script>
<script src="/static/js/PTL.tab.js"></script>
<script src="/static/js/PTL.col.js"></script>
<script src="/static/js/PTL.feed.js"></script>
<script src="/static/js/PTL.src.js"></script>
<script src="/static/js/PTL.dialog.js"></script>
<script src="/static/js/PTL.sync.js"></script>
......
......@@ -130,9 +130,9 @@
</tr>
<tr>
<td><a href="/static/js/PTL.feed.js">PTL.feed.js</a></td>
<td><a href="/static/js/PTL.src.js">PTL.src.js</a></td>
<td><a href="http://www.gnu.org/licenses/gpl-3.0.html"> --- </a></td>
<td><a href="/static/js/PTL.feed.js">PTL.feed.js</a></td>
<td><a href="/static/js/PTL.src.js">PTL.src.js</a></td>
</tr>
<tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment