bunch o things

This commit is contained in:
gauthiier 2019-12-26 12:46:45 +01:00
parent ef62052984
commit 9c8f5b0e5e
7 changed files with 299 additions and 44 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
.DS_Store
archives/
export/
out/
config/__init.py

View File

@ -3,8 +3,8 @@ from selection import strutil
from threading import Lock
import config
sel = os.path.join(config.selection, "tm-selection.js")
sel_dump = os.path.join(config.selection, "tm-selection-dump.js")
sel = os.path.join(config.selection['path'], config.selection['sel'])
sel_dump = os.path.join(config.selection['path'], config.selection['sel_dump'])
LL = Lock()

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,40 @@
{
"list": "crumb",
"url": "https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1207&L=new-media-curating&F=&S=&P=1869"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00094.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00060.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00088.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00089.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9703/msg00096.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9704/msg00000.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9912/msg00099.html"
},
{
"list": "nettime_l",
"url": "https://nettime.org/Lists-Archives/nettime-l-9912/msg00106.html"
}
],
"desc": "..."
"desc": "something"
}
}

View File

@ -26,31 +26,4 @@ $(document).ready(function(){
});
});
$('#new').click(function(e) {
var v = $(this).text();
console.log(v)
if(v == "NEW") {
var form = $(this).parent("form");
form.append('<input name="tag" type="text" id="edit-tag" value="...">');
form.append('<textarea name="desc" id="edit-desc">...</textarea>');
$(this).text("ADD");
} else if (v == "ADD") {
if($("#edit-tag").val() === "..." & $("#edit-desc").text() === "...") {
$(this).text("NEW");
$("#edit-tag").remove()
$("#edit-desc").remove()
return;
}
var form = $(this).parent("form");
var g = form.serialize() + "&action=new";
$.post('/tags', g, function(d) {
if(d === 'ok') {
location.reload();
}
});
$(this).text("NEW");
$("#edit-tag").remove()
$("#edit-desc").remove()
}
});
});

View File

@ -8,6 +8,8 @@
</head>
<body>
<h1>Selection [tags]</h1>
<h2><a href="/search" target="_blank">SEARCH</a></h2>
<h2><a href="/tags_w_lists" target="_blank">TAGS_W_LISTS</a></h2>
<form class="tag_item">
<button id="new">NEW</button>
</form>

View File

@ -9,7 +9,9 @@
<body>
<h1>Selection [tags w lists]</h1>
<hr>
<button id="commit">commit</button>
<h2><a href="/search" target="_blank">SEARCH</a></h2>
<h2><a href="/tags" target="_blank">TAGS</a></h2>
<!-- <button id="commit">commit</button> -->
<div id="all">
{% for v in tags %}
<hr>